通用评论

123456789101112131415161718192021222324
  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";