feat: 新增共享记事本页签(iframe 嵌入 + 存活校验)与集中配置
- 新增 whiteboard 模块:iframe 嵌入 f.zikai.wang/wb/shared,骨架屏+降级外链 - 存活校验:模块声明 requiresAlive,启动时 no-cors 探测 /health 一次, 服务挂掉则隐藏页签(刷新页面才重探) - 集中配置 src/config/app.config.js:白板 URL/探针/默认记事本 id 统一管理 - 容错强化:注册表/路由/useProjects 单模块异常不影响其他页签,删除一个页签 仅需删其模块文件夹并重新 build - i18n:tabs.whiteboard / common.serviceUnavailable / whiteboard.openExternal - README 精简重写:仅保留项目结构、基础设施、Ubuntu 从0安装、新增页签
This commit is contained in:
14
src/modules/whiteboard/index.js
Normal file
14
src/modules/whiteboard/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// 模块元数据 -- 共享记事本(白板)页签
|
||||
// requiresAlive 指向存活探针 URL:启动时探测,服务不可达则隐藏该页签。
|
||||
// 删除本目录即可移除此页签,其余模块不受影响。
|
||||
import { healthUrl } from '../../config/app.config.js'
|
||||
|
||||
export default {
|
||||
id: 'whiteboard',
|
||||
tabKey: 'tabs.whiteboard',
|
||||
order: 2,
|
||||
// 存活探针 URL;useProjects 启动时探测一次,挂掉则不显示页签
|
||||
requiresAlive: healthUrl('whiteboard'),
|
||||
// 懒加载组件 -> 独立 chunk
|
||||
component: () => import('./Whiteboard.vue')
|
||||
}
|
||||
Reference in New Issue
Block a user