通用评论

constant.js 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var ERROR_DEFAULT = exports.ERROR_DEFAULT = "出错了!";
  6. var LIMIT = exports.LIMIT = 10; // 默认 limit
  7. var OSS_ENDPOINT = exports.OSS_ENDPOINT = "oss-cn-beijing.aliyuncs.com";
  8. var OSS_BUCKET = exports.OSS_BUCKET = "links-comment";
  9. var DRIVER_LICENSE_PATH = exports.DRIVER_LICENSE_PATH = "/comment";
  10. var OSS_LINK = exports.OSS_LINK = "//links-comment.oss-cn-beijing.aliyuncs.com";
  11. var MAX_UPLOAD_NUMBER = exports.MAX_UPLOAD_NUMBER = 4;
  12. var URL_REGEXP = exports.URL_REGEXP = /((http(s)?:)?\/\/)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g;
  13. var REGEXP = exports.REGEXP = /\[[^[\]]+?\]/g;
  14. var AVATAR = exports.AVATAR = "";
  15. var IMAGE_SPLIT = exports.IMAGE_SPLIT = "IMAGE_SPLIT";
  16. var IMAGE_PROCESS = exports.IMAGE_PROCESS = "?x-oss-process=image/resize,h_350";
  17. var IMAGE_PROCESS_SMALL = exports.IMAGE_PROCESS_SMALL = "?x-oss-process=image/resize,h_100";
  18. var IMAGE_PROCESS_LARGE = exports.IMAGE_PROCESS_LARGE = "?x-oss-process=image/resize,h_500";
  19. var COMMENT_TYPE = exports.COMMENT_TYPE = {
  20. COMMENT: "comment",
  21. REPLY: "reply"
  22. };
  23. // 线上静态库地址
  24. var LANGUAGE_LINK = exports.LANGUAGE_LINK = process.env.NODE_ENV === "production" ? "//a.links123.cn/lang" : "//a.links123.net/lang";
  25. //# sourceMappingURL=constant.js.map