⚡ 全面优化 2026 前端响应式体验与加载性能

完成 FileCodeBox 2026 全站桌面端、平板和移动端的视觉交互复核,补齐文件选择后的批量操作闭环,并降低公共首屏的字体与低频依赖成本。

- 为移动文件列表增加全选、已选数量、批量编辑、策略与删除固定栏,并补充详情删除和空筛选重置
- 优化设置保存栏、分区导航、发送过期控件、仪表盘日期与图表操作、分页和记录抽屉
- 为后台侧栏增加遮罩、滚动锁定、Escape 关闭和焦点返回,完善登录密码可见性与国际化
- 移除全站强制 DingTalk 字体,按需加载 JSZip、Marked 和 DOMPurify,并停止空闲提示定时器
- 已通过架构检查、Vue 类型检查、ESLint、生产构建、48 组多视口明暗模式矩阵及核心流程回归
This commit is contained in:
orion committed 2026-07-21 16:44:45 +08:00
1 parent fa6b484d17
commit aa3743b42d
26 files changed
+488 -441

No files matched your search

+4 -3
View File
@@ -1,6 +1,3 @@
import { marked } from 'marked'
import DOMPurify from 'dompurify'
const MARKDOWN_ALLOWED_TAGS = [
'p',
'br',
@@ -27,6 +24,10 @@ const MARKDOWN_ALLOWED_ATTR = ['href', 'src', 'alt', 'title', 'class']
export async function renderMarkdownPreview(content: string): Promise<string> {
try {
const [{ marked }, { default: DOMPurify }] = await Promise.all([
import('marked'),
import('dompurify')
])
const rawHtml = await marked(content)
return DOMPurify.sanitize(rawHtml, {
ALLOWED_TAGS: MARKDOWN_ALLOWED_TAGS,
+1 -2
View File
@@ -1,5 +1,3 @@
import JSZip from 'jszip'
const SMALL_FILE_HASH_LIMIT = 10 * 1024 * 1024
const LARGE_FILE_HASH_CHUNK_SIZE = 5 * 1024 * 1024
@@ -47,6 +45,7 @@ export const calculateFileHash = async (file: File): Promise<string> => {
}
export const packFilesAsZip = async (files: File[]): Promise<File> => {
const { default: JSZip } = await import('jszip')
const zip = new JSZip()
for (const file of files) {
zip.file(file.name, file)