befly-admin 3.3.8 → 3.4.1
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/package.json +13 -3
- package/src/components/internal/README.md +27 -0
- package/src/layouts/4.vue +17 -0
- package/src/layouts/{0.vue → internal/0.vue} +1 -1
- package/src/layouts/internal/README.md +27 -0
- package/src/main.ts +2 -2
- package/src/plugins/internal/README.md +36 -0
- package/src/styles/internal/README.md +27 -0
- package/src/types/auto-imports.d.ts +652 -0
- package/src/types/components.d.ts +46 -0
- package/src/utils/README.md +37 -0
- package/src/utils/index.ts +12 -0
- package/src/utils/internal/README.md +21 -0
- package/src/{util.ts → utils/internal/index.ts} +3 -1
- package/src/views/internal/README.md +27 -0
- package/src/views/{role → internal/role}/components/menu.vue +1 -1
- package/vite.config.ts +4 -4
- package/libs/icons.ts +0 -543
- /package/src/components/{Icon.vue → internal/Icon.vue} +0 -0
- /package/src/layouts/{1.vue → internal/1.vue} +0 -0
- /package/src/layouts/{2.vue → internal/2.vue} +0 -0
- /package/src/plugins/{http.ts → internal/http.ts} +0 -0
- /package/src/plugins/{router.ts → internal/router.ts} +0 -0
- /package/src/plugins/{storage.ts → internal/storage.ts} +0 -0
- /package/src/plugins/{store.ts → internal/store.ts} +0 -0
- /package/src/styles/{index.scss → internal/index.scss} +0 -0
- /package/src/styles/{mixins.scss → internal/mixins.scss} +0 -0
- /package/src/styles/{variables.scss → internal/variables.scss} +0 -0
- /package/src/views/{403 → internal/403}/403.vue +0 -0
- /package/src/views/{admin → internal/admin}/components/edit.vue +0 -0
- /package/src/views/{admin → internal/admin}/components/role.vue +0 -0
- /package/src/views/{admin → internal/admin}/index.vue +0 -0
- /package/src/views/{dict → internal/dict}/components/edit.vue +0 -0
- /package/src/views/{dict → internal/dict}/index.vue +0 -0
- /package/src/views/{index → internal/index}/components/addonList.vue +0 -0
- /package/src/views/{index → internal/index}/components/environmentInfo.vue +0 -0
- /package/src/views/{index → internal/index}/components/operationLogs.vue +0 -0
- /package/src/views/{index → internal/index}/components/performanceMetrics.vue +0 -0
- /package/src/views/{index → internal/index}/components/quickActions.vue +0 -0
- /package/src/views/{index → internal/index}/components/serviceStatus.vue +0 -0
- /package/src/views/{index → internal/index}/components/systemNotifications.vue +0 -0
- /package/src/views/{index → internal/index}/components/systemOverview.vue +0 -0
- /package/src/views/{index → internal/index}/components/systemResources.vue +0 -0
- /package/src/views/{index → internal/index}/components/userInfo.vue +0 -0
- /package/src/views/{index → internal/index}/index.vue +0 -0
- /package/src/views/{login → internal/login}/components/emailLoginForm.vue +0 -0
- /package/src/views/{login → internal/login}/components/registerForm.vue +0 -0
- /package/src/views/{login → internal/login}/components/welcomePanel.vue +0 -0
- /package/src/views/{login → internal/login}/index_1.vue +0 -0
- /package/src/views/{menu → internal/menu}/components/edit.vue +0 -0
- /package/src/views/{menu → internal/menu}/index.vue +0 -0
- /package/src/views/{news → internal/news}/detail/detail_2.vue +0 -0
- /package/src/views/{news → internal/news}/detail/index.vue +0 -0
- /package/src/views/{news → internal/news}/news.vue +0 -0
- /package/src/views/{role → internal/role}/components/api.vue +0 -0
- /package/src/views/{role → internal/role}/components/edit.vue +0 -0
- /package/src/views/{role → internal/role}/index.vue +0 -0
- /package/src/views/{user → internal/user}/user.vue +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// biome-ignore lint: disable
|
|
4
|
+
// oxlint-disable
|
|
5
|
+
// ------
|
|
6
|
+
// Generated by unplugin-vue-components
|
|
7
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
8
|
+
|
|
9
|
+
export {}
|
|
10
|
+
|
|
11
|
+
/* prettier-ignore */
|
|
12
|
+
declare module 'vue' {
|
|
13
|
+
export interface GlobalComponents {
|
|
14
|
+
Icon: typeof import('./../components/internal/Icon.vue')['default']
|
|
15
|
+
RouterLink: typeof import('vue-router')['RouterLink']
|
|
16
|
+
RouterView: typeof import('vue-router')['RouterView']
|
|
17
|
+
TinyButton: typeof import('@opentiny/vue-button')['default']
|
|
18
|
+
TinyCheckbox: typeof import('@opentiny/vue-checkbox')['default']
|
|
19
|
+
TinyCheckboxGroup: typeof import('@opentiny/vue-checkbox-group')['default']
|
|
20
|
+
TinyCol: typeof import('@opentiny/vue-col')['default']
|
|
21
|
+
TinyCollapse: typeof import('@opentiny/vue-collapse')['default']
|
|
22
|
+
TinyCollapseItem: typeof import('@opentiny/vue-collapse-item')['default']
|
|
23
|
+
TinyDialogBox: typeof import('@opentiny/vue-dialog-box')['default']
|
|
24
|
+
TinyDivider: typeof import('@opentiny/vue-divider')['default']
|
|
25
|
+
TinyDropdown: typeof import('@opentiny/vue-dropdown')['default']
|
|
26
|
+
TinyDropdownItem: typeof import('@opentiny/vue-dropdown-item')['default']
|
|
27
|
+
TinyDropdownMenu: typeof import('@opentiny/vue-dropdown-menu')['default']
|
|
28
|
+
TinyForm: typeof import('@opentiny/vue-form')['default']
|
|
29
|
+
TinyFormItem: typeof import('@opentiny/vue-form-item')['default']
|
|
30
|
+
TinyGrid: typeof import('@opentiny/vue-grid')['default']
|
|
31
|
+
TinyGridColumn: typeof import('@opentiny/vue-grid-column')['default']
|
|
32
|
+
TinyInput: typeof import('@opentiny/vue-input')['default']
|
|
33
|
+
TinyNumeric: typeof import('@opentiny/vue-numeric')['default']
|
|
34
|
+
TinyPager: typeof import('@opentiny/vue-pager')['default']
|
|
35
|
+
TinyProgress: typeof import('@opentiny/vue-progress')['default']
|
|
36
|
+
TinyQrcode: typeof import('@opentiny/vue-qrcode')['default']
|
|
37
|
+
TinyRadio: typeof import('@opentiny/vue-radio')['default']
|
|
38
|
+
TinyRadioGroup: typeof import('@opentiny/vue-radio-group')['default']
|
|
39
|
+
TinyRow: typeof import('@opentiny/vue-row')['default']
|
|
40
|
+
TinySearch: typeof import('@opentiny/vue-search')['default']
|
|
41
|
+
TinySelect: typeof import('@opentiny/vue-select')['default']
|
|
42
|
+
TinyTag: typeof import('@opentiny/vue-tag')['default']
|
|
43
|
+
TinyTree: typeof import('@opentiny/vue-tree')['default']
|
|
44
|
+
TinyTreeMenu: typeof import('@opentiny/vue-tree-menu')['default']
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Utils 目录说明
|
|
2
|
+
|
|
3
|
+
## 目录结构
|
|
4
|
+
|
|
5
|
+
- `internal.ts` - 框架核心工具函数(由 befly-admin 管理)
|
|
6
|
+
- `index.ts` - 用户自定义工具函数
|
|
7
|
+
|
|
8
|
+
## 使用说明
|
|
9
|
+
|
|
10
|
+
### 框架工具函数
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { arrayToTree } from '@/utils/internal';
|
|
14
|
+
// 或者
|
|
15
|
+
import { arrayToTree } from '@/utils';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### 自定义工具函数
|
|
19
|
+
|
|
20
|
+
在 `index.ts` 中添加您的工具函数:
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
/**
|
|
24
|
+
* 格式化日期
|
|
25
|
+
*/
|
|
26
|
+
export function formatDate(date: Date): string {
|
|
27
|
+
return date.toISOString().split('T')[0];
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 注意事项
|
|
32
|
+
|
|
33
|
+
⚠️ **请勿修改** `internal.ts` 文件,运行 `befly sync:admin` 会自动更新此文件
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
📚 更多信息请查看项目文档
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Internal Utils
|
|
2
|
+
|
|
3
|
+
⚠️ **框架核心工具目录**
|
|
4
|
+
|
|
5
|
+
此目录由 `befly-admin` 包管理,请勿手动修改。
|
|
6
|
+
|
|
7
|
+
运行 `befly sync:admin` 会自动更新此目录。
|
|
8
|
+
|
|
9
|
+
## 文件说明
|
|
10
|
+
|
|
11
|
+
- `index.ts` - 核心工具函数(如 `arrayToTree`)
|
|
12
|
+
|
|
13
|
+
## 使用方式
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
// 从 utils 导入(推荐)
|
|
17
|
+
import { arrayToTree } from '@/utils';
|
|
18
|
+
|
|
19
|
+
// 直接从 internal 导入
|
|
20
|
+
import { arrayToTree } from '@/utils/internal';
|
|
21
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Internal 目录说明
|
|
2
|
+
|
|
3
|
+
⚠️ **重要提示**
|
|
4
|
+
|
|
5
|
+
此目录下的所有文件由 **befly-admin** 框架管理,请勿修改!
|
|
6
|
+
|
|
7
|
+
## 自动更新
|
|
8
|
+
|
|
9
|
+
运行以下命令会自动更新此目录:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
befly sync:admin
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 注意事项
|
|
16
|
+
|
|
17
|
+
1. ❌ **请勿修改** internal 目录下的任何文件
|
|
18
|
+
2. ❌ **请勿删除** internal 目录
|
|
19
|
+
3. ✅ 如需创建业务页面,请在 internal 目录外创建文件
|
|
20
|
+
|
|
21
|
+
## 文件用途
|
|
22
|
+
|
|
23
|
+
此目录包含框架提供的管理页面(用户管理、角色管理、菜单管理等),确保管理系统的基础功能正常运行。
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
📚 更多信息请查看项目文档
|
package/vite.config.ts
CHANGED
|
@@ -26,8 +26,8 @@ export default defineConfig({
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
resolvers: [TinyVueSingleResolver],
|
|
29
|
-
// 自动导入 plugins
|
|
30
|
-
dirs: ['./src/plugins'],
|
|
29
|
+
// 自动导入 plugins 目录下的所有导出(internal 优先)
|
|
30
|
+
dirs: ['./src/plugins/internal', './src/plugins'],
|
|
31
31
|
dts: 'src/types/auto-imports.d.ts',
|
|
32
32
|
eslintrc: {
|
|
33
33
|
enabled: false
|
|
@@ -36,7 +36,7 @@ export default defineConfig({
|
|
|
36
36
|
// 自动导入 OpenTiny 组件
|
|
37
37
|
Components({
|
|
38
38
|
resolvers: [TinyVueSingleResolver],
|
|
39
|
-
dirs: ['src/components'],
|
|
39
|
+
dirs: ['src/components/internal', 'src/components'],
|
|
40
40
|
dts: 'src/types/components.d.ts'
|
|
41
41
|
})
|
|
42
42
|
],
|
|
@@ -52,7 +52,7 @@ export default defineConfig({
|
|
|
52
52
|
preprocessorOptions: {
|
|
53
53
|
scss: {
|
|
54
54
|
api: 'modern-compiler',
|
|
55
|
-
additionalData: `@use "@/styles/variables.scss" as *;`
|
|
55
|
+
additionalData: `@use "@/styles/internal/variables.scss" as *;`
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
},
|