zhou zhou
18 小时以前 5454bbe86b1a22e9f05b6bc43f7ed7e9d6c4dc14
rsf-design/src/views/system/config/configPage.helpers.js
@@ -5,6 +5,10 @@
  { labelKey: 'pages.system.config.types.json', fallback: 'json', value: 4 },
  { labelKey: 'pages.system.config.types.date', fallback: 'date', value: 5 }
]
const IMAGE_VALUE_RE = /(^data:image\/)|(\.(png|jpe?g|gif|bmp|webp|svg|ico)(\?.*)?$)|(([?&]path=).*?\.(png|jpe?g|gif|bmp|webp|svg|ico)($|&))/i
export const PROJECT_LOGO_FLAG = 'PROJECT_LOGO'
export const PROJECT_COPYRIGHT_FLAG = 'PROJECT_COPYRIGHT'
export function createConfigSearchState() {
  return {
@@ -108,6 +112,10 @@
  }
}
export function isImageConfigValue(value) {
  return IMAGE_VALUE_RE.test(String(value || '').trim())
}
export function normalizeConfigListRow(record = {}) {
  const typeMeta = getConfigTypeMeta(record.type)
  const statusMeta = getConfigStatusMeta(record.status)