feat: PDF 转换前端(epub 上传/进度轮询/下载/用户软删,复用 zTools2 API)
便携式 Vue3 前端:上传 epub 转 PDF,显示上传与转换进度,完成后下载; 用户可软删任务(不再对自己展示,管理员仍可见)。凭 cookie 标识用户。 复用 zTools2 后端 /api/pdf/*(同源),独立 i18n(中英懒加载), 可独立运行或经 mainPage iframe 同源集成。含 vitest 单测 20 项。
This commit is contained in:
12
vite.config.js
Normal file
12
vite.config.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
// 便携式构建:base './' 使产物可被任意路径托管(含 zTools2 /static 与 mainPage iframe)。
|
||||
// preview 开放 f.zikai.wang 便于线上预览校验。
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
base: './',
|
||||
preview: {
|
||||
allowedHosts: ['f.zikai.wang'],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user