通用评论

constant.js 869B

1234567891011121314151617181920212223242526272829
  1. export const ERROR_DEFAULT = "出错了!";
  2. export const LIMIT = 10; // 默认 limit
  3. export const OSS_ENDPOINT = "oss-cn-beijing.aliyuncs.com";
  4. export const OSS_BUCKET = "links-comment";
  5. export const DRIVER_LICENSE_PATH = "/comment";
  6. export const OSS_LINK = "//links-comment.oss-cn-beijing.aliyuncs.com";
  7. export const MAX_UPLOAD_NUMBER = 4;
  8. export const URL_REGEXP = /((http(s)?:)?\/\/)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g;
  9. export const REGEXP = /\[[^[\]]+?\]/g;
  10. export const AVATAR = "";
  11. export const IMAGE_SPLIT = "IMAGE_SPLIT";
  12. export const IMAGE_PROCESS = "?x-oss-process=image/resize,h_350";
  13. export const IMAGE_PROCESS_SMALL = "?x-oss-process=image/resize,h_100";
  14. export const IMAGE_PROCESS_LARGE = "?x-oss-process=image/resize,h_500";
  15. export const COMMENT_TYPE = {
  16. COMMENT: "comment",
  17. REPLY: "reply"
  18. };