@liujitcn/kratos-uni-app-system 0.0.28 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/index.mjs +246 -519
- package/dist/module.mjs +454 -0
- package/package.json +8 -3
- package/src/api/base/notification.ts +95 -0
- package/src/index.ts +14 -15
- package/src/locales/README.md +3 -2
- package/src/locales/en-US.json +12 -6
- package/src/locales/ja-JP.json +12 -6
- package/src/locales/zh-CN.json +12 -6
- package/src/locales/zh-TW.json +12 -6
- package/src/module.ts +20 -0
- package/src/notification.ts +101 -0
- package/src/pages.ts +2 -0
- package/src/rpc/base/v1/notification.ts +315 -0
- package/src/rpc/google/protobuf/empty.ts +19 -0
- package/src/views/pages/my/my.vue +4 -1
- package/src/views/pagesMember/message/detail.vue +110 -0
- package/src/views/pagesMember/message/index.vue +281 -0
- package/src/views/pagesMember/profile/profile.vue +3 -0
- package/src/views/pagesMember/settings/settings.vue +2 -171
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @liujitcn/kratos-uni-app-system
|
|
2
2
|
|
|
3
|
-
`@liujitcn/kratos-uni-app-system` 是内置 system
|
|
3
|
+
`@liujitcn/kratos-uni-app-system` 是内置 system 业务模块。个人中心、个人资料、默认设置页装配和 AI 能力都归属本模块,并沿用 core 的登录态、请求、导航和页面装配协议。
|
|
4
4
|
|
|
5
5
|
## 目录结构
|
|
6
6
|
|
|
@@ -11,19 +11,20 @@ packages/modules/system
|
|
|
11
11
|
│ ├── rpc # system 相关 Buf 生成类型
|
|
12
12
|
│ ├── views
|
|
13
13
|
│ │ ├── pages/my # 个人中心主页
|
|
14
|
-
│ │ └── pagesMember # AI
|
|
14
|
+
│ │ └── pagesMember # AI、个人资料和默认设置包装页
|
|
15
15
|
│ ├── index.ts # systemModule 定义和公开入口
|
|
16
16
|
│ └── pages.ts # 页面样式与分包声明
|
|
17
17
|
├── tsconfig.json
|
|
18
18
|
└── package.json
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
`src/rpc` 是生成产物,只能通过 workspace 根目录的 `pnpm generate:rpc` 更新;该命令委托
|
|
21
|
+
`src/rpc` 是生成产物,只能通过 workspace 根目录的 `pnpm generate:rpc` 更新;该命令委托 Frontend 的 `make ts-uni-app` 和 `backend/api/buf.uni-app.core.typescript.gen.yaml` 生成。MFA 类型和请求统一从 `@liujitcn/kratos-uni-app-core/rpc/base/v1/mfa` 与 `@liujitcn/kratos-uni-app-core/api/base/mfa` 复用。
|
|
22
22
|
|
|
23
23
|
## 功能
|
|
24
24
|
|
|
25
25
|
- 注册 `PROFILE_HOME`、`PROFILE`、`SETTINGS` 和 `AI` 四个稳定 `viewKey`。
|
|
26
|
-
-
|
|
26
|
+
- 提供个人中心、资料维护、默认应用设置包装和 AI 助手页面。
|
|
27
|
+
- 默认设置页直接装配 core 的 `KratosSettingsPage`;产品模块可用同一公共设置页的顶部 `extensions` 插槽追加业务设置。
|
|
27
28
|
- 通过 core 的公开 service、store 和工具复用底座能力。
|
|
28
29
|
- 允许后续模块按相同物理路由或 `viewKey` 覆盖 system 静态视图。
|
|
29
30
|
- npm 根入口使用 `dist/index.mjs`;workspace 的 Turbo 任务和 `prepare:modules` 会先构建 system 及其依赖的 core Node 入口,干净安装后不依赖历史 dist。
|