添加移动端API和组件,包含文件上传、用户认证、主题设置等功能模块,同时更新相关依赖和配置,提升代码结构和可维护性。

This commit is contained in:
zyh
2025-04-10 03:34:55 +00:00
parent 0169ace61c
commit b3d024a50b
11 changed files with 2852 additions and 23 deletions

View File

@@ -439,6 +439,23 @@ export default function({ apiClient, app, moduleDir }: ModuleParams) {
prodPath: "admin/web_app.js"
}, GLOBAL_CONFIG.APP_NAME))
// 移动端路由
honoApp.get('/mobile', createHtmlWithConfig({
src: "https://esm.d8d.fun/xb",
href: "/client/mobile/mobile_app.tsx",
denoJson: "/client/mobile/deno.json",
refresh: true,
prodPath: "mobile/mobile_app.js"
}, GLOBAL_CONFIG.APP_NAME))
honoApp.get('/mobile/*', createHtmlWithConfig({
src: "https://esm.d8d.fun/xb",
href: "/client/mobile/mobile_app.tsx",
denoJson: "/client/mobile/deno.json",
refresh: true,
prodPath: "mobile/mobile_app.js"
}, GLOBAL_CONFIG.APP_NAME))
const staticRoutes = serveStatic({
root: moduleDir,
onFound: async (path: string, c: HonoContext) => {