19 lines
888 B
JavaScript
19 lines
888 B
JavaScript
;(function (global) {
|
|
'use strict'
|
|
const fallback = {
|
|
app: '3.4.0',
|
|
// 图库上限与默认保留策略(maxFiles:500)对齐;仅当 maxFiles=0(不限)时作为兜底上限,避免图库无界膨胀。
|
|
outputLimit: 500,
|
|
galleryRanges: { today: 86400e3, '7d': 7 * 86400e3, '30d': 30 * 86400e3 },
|
|
// 组合节点固定分隔符(2026-10-30 用户裁定:只保留逗号,其余选项基本不用 ⇒ UI 去掉,统一逗号)
|
|
combineSep: ', ',
|
|
}
|
|
const existing = global.IWBRuntimeConstants || {}
|
|
global.IWBRuntimeConstants = {
|
|
app: existing.app || fallback.app,
|
|
outputLimit: existing.outputLimit || fallback.outputLimit,
|
|
galleryRanges: Object.assign({}, fallback.galleryRanges, existing.galleryRanges || {}),
|
|
combineSep: existing.combineSep || fallback.combineSep,
|
|
}
|
|
})(typeof window !== 'undefined' ? window : globalThis)
|