feat(shop): 新增商城基础设置组件

- 新增商城基础信息配置界面支持店铺名称、Logo、描述、电话、地址和开关配置
- 实现图片选择和删除功能,支持Logo的上传回显
- 集成表单校验和保存接口调用,提供保存状态反馈
- 优化响应式布局适配不同屏幕尺寸

fix(cms): 防止文章编辑内容的XSS攻击

- 在文章编辑组件中对动态HTML内容添加DOMPurify消毒
- 替换 v-html 渲染为安全消毒后的内容展现
- 确保富文本内容安全,防止跨站脚本漏洞

refactor(system-setting): 优化系统设置基本信息组件逻辑

- 替换ico文件上传组件,改用SelectFile实现图片选择和删除功能
- 简化图标上传流程,移除上传接口调用相关代码
- 统一表单数据处理,增强设置数据解析和回显兼容性
- 调整保存逻辑,支持根据是否存在主键调用新增或更新接口
- 改进watch数据响应逻辑,支持多种数据结构兼容

fix(system-setting): 修正清理设置组件数据重置逻辑

- 统一清理设置组件的 settingKey 值为 clear,避免混淆
- 优化数据监听回调,支持不同数据结构和空数据重置表单
- 确保组件初始化状态正确,避免遗留数据影响展示

fix(store): 修正 chat store 定义方式

- 按 pinia 官方规范简化 store 定义参数
- 修复 store id 错误传递问题,确保正确注册和使用
This commit is contained in:
2026-06-16 12:52:30 +08:00
parent c82ae7ee06
commit de93292fa2
313 changed files with 44898 additions and 25567 deletions

View File

@@ -0,0 +1,123 @@
/**
* TinyMCE version 6.8.6 (TBD)
*/
(function () {
'use strict';
var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
const isSimpleType = type => value => typeof value === type;
const isBoolean = isSimpleType('boolean');
const isNumber = isSimpleType('number');
const option = name => editor => editor.options.get(name);
const register$2 = editor => {
const registerOption = editor.options.register;
registerOption('nonbreaking_force_tab', {
processor: value => {
if (isBoolean(value)) {
return {
value: value ? 3 : 0,
valid: true
};
} else if (isNumber(value)) {
return {
value,
valid: true
};
} else {
return {
valid: false,
message: 'Must be a boolean or number.'
};
}
},
default: false
});
registerOption('nonbreaking_wrap', {
processor: 'boolean',
default: true
});
};
const getKeyboardSpaces = option('nonbreaking_force_tab');
const wrapNbsps = option('nonbreaking_wrap');
const stringRepeat = (string, repeats) => {
let str = '';
for (let index = 0; index < repeats; index++) {
str += string;
}
return str;
};
const isVisualCharsEnabled = editor => editor.plugins.visualchars ? editor.plugins.visualchars.isEnabled() : false;
const insertNbsp = (editor, times) => {
const classes = () => isVisualCharsEnabled(editor) ? 'mce-nbsp-wrap mce-nbsp' : 'mce-nbsp-wrap';
const nbspSpan = () => `<span class="${ classes() }" contenteditable="false">${ stringRepeat('&nbsp;', times) }</span>`;
const shouldWrap = wrapNbsps(editor);
const html = shouldWrap || editor.plugins.visualchars ? nbspSpan() : stringRepeat('&nbsp;', times);
editor.undoManager.transact(() => editor.insertContent(html));
};
const register$1 = editor => {
editor.addCommand('mceNonBreaking', () => {
insertNbsp(editor, 1);
});
};
var global = tinymce.util.Tools.resolve('tinymce.util.VK');
const setup = editor => {
const spaces = getKeyboardSpaces(editor);
if (spaces > 0) {
editor.on('keydown', e => {
if (e.keyCode === global.TAB && !e.isDefaultPrevented()) {
if (e.shiftKey) {
return;
}
e.preventDefault();
e.stopImmediatePropagation();
insertNbsp(editor, spaces);
}
});
}
};
const onSetupEditable = editor => api => {
const nodeChanged = () => {
api.setEnabled(editor.selection.isEditable());
};
editor.on('NodeChange', nodeChanged);
nodeChanged();
return () => {
editor.off('NodeChange', nodeChanged);
};
};
const register = editor => {
const onAction = () => editor.execCommand('mceNonBreaking');
editor.ui.registry.addButton('nonbreaking', {
icon: 'non-breaking',
tooltip: 'Nonbreaking space',
onAction,
onSetup: onSetupEditable(editor)
});
editor.ui.registry.addMenuItem('nonbreaking', {
icon: 'non-breaking',
text: 'Nonbreaking space',
onAction,
onSetup: onSetupEditable(editor)
});
};
var Plugin = () => {
global$1.add('nonbreaking', editor => {
register$2(editor);
register$1(editor);
register(editor);
setup(editor);
});
};
Plugin();
})();