@liujitcn/kratos-admin-core 0.0.90 → 0.0.92
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 +3 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -66,6 +66,7 @@ packages/core
|
|
|
66
66
|
| `src/navigation.ts` | 业务模块使用的路由与跳转入口。 |
|
|
67
67
|
| `src/request.ts` | 业务模块使用的请求客户端入口。 |
|
|
68
68
|
| `src/security.ts` | OAuth、密码加密、密码强度和 WebAuthn 入口。 |
|
|
69
|
+
| `src/utils/index.ts` | 浏览器存储、UUID、路由菜单和通用数据处理工具入口。 |
|
|
69
70
|
| `src/table.ts` | ProTable 请求和选择值处理入口。 |
|
|
70
71
|
| `src/tenant.ts` | 租户上下文、租户选项、查询范围转换以及租户列/表单字段生成入口。 |
|
|
71
72
|
| `src/components/ProTable.ts` | ProTable 对外 Adapter,稳定组件入口为 `components/ProTable`。 |
|
|
@@ -162,6 +163,7 @@ core 通过 `ADMIN_STATIC_VIEWS` 注册全部默认静态页面,后注册业
|
|
|
162
163
|
| 权限 | `@liujitcn/kratos-admin-core/auth` |
|
|
163
164
|
| 格式化 | `@liujitcn/kratos-admin-core/format` |
|
|
164
165
|
| 密码与 OAuth | `@liujitcn/kratos-admin-core/security` |
|
|
166
|
+
| 公共工具 | `@liujitcn/kratos-admin-core/utils` |
|
|
165
167
|
| 表格工具 | `@liujitcn/kratos-admin-core/table` |
|
|
166
168
|
| 租户选项 | `@liujitcn/kratos-admin-core/tenant` |
|
|
167
169
|
| 运行时 Store | `@liujitcn/kratos-admin-core/stores/runtime` |
|
|
@@ -170,7 +172,7 @@ core 通过 `ADMIN_STATIC_VIEWS` 注册全部默认静态页面,后注册业
|
|
|
170
172
|
| SearchForm | `@liujitcn/kratos-admin-core/components/SearchForm/index.vue` |
|
|
171
173
|
| YamlEditor | `@liujitcn/kratos-admin-core/components/YamlEditor/index.vue` |
|
|
172
174
|
|
|
173
|
-
其他 Vue 组件以 `package.json#exports` 中的明确白名单为准。禁止使用 `components/ProTable/index.vue`、`utils/*`、`hooks/*`、`stores/modules/*`
|
|
175
|
+
其他 Vue 组件以 `package.json#exports` 中的明确白名单为准。禁止使用 `components/ProTable/index.vue`、`utils/*`、`hooks/*`、`stores/modules/*` 等未公开实现路径;公共工具统一从 `@liujitcn/kratos-admin-core/utils` 导入。发布构建会把内部 `@/` 别名转换成包内相对路径,内部实现不占用公共子路径。
|
|
174
176
|
|
|
175
177
|
`setAdminDocumentTitle` 使用公共配置接口返回的 `sysName` 作为应用名称,配置接口失败或未返回名称时回退宿主的 `VITE_GLOB_APP_TITLE`。
|
|
176
178
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liujitcn/kratos-admin-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.92",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "kratos-admin frontend runtime and base modules",
|
|
7
7
|
"author": {
|
|
@@ -232,6 +232,10 @@
|
|
|
232
232
|
"default": "./vite.config.ts"
|
|
233
233
|
},
|
|
234
234
|
"./package.json": "./package.json",
|
|
235
|
+
"./utils": {
|
|
236
|
+
"types": "./dist/package/declarations/src/utils/index.d.ts",
|
|
237
|
+
"default": "./dist/package/src/utils/index.ts"
|
|
238
|
+
},
|
|
235
239
|
"./utils/secretCrypto": {
|
|
236
240
|
"types": "./dist/package/declarations/src/utils/secretCrypto.d.ts",
|
|
237
241
|
"default": "./dist/package/src/utils/secretCrypto.ts"
|