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.
Files changed (58) hide show
  1. package/package.json +13 -3
  2. package/src/components/internal/README.md +27 -0
  3. package/src/layouts/4.vue +17 -0
  4. package/src/layouts/{0.vue → internal/0.vue} +1 -1
  5. package/src/layouts/internal/README.md +27 -0
  6. package/src/main.ts +2 -2
  7. package/src/plugins/internal/README.md +36 -0
  8. package/src/styles/internal/README.md +27 -0
  9. package/src/types/auto-imports.d.ts +652 -0
  10. package/src/types/components.d.ts +46 -0
  11. package/src/utils/README.md +37 -0
  12. package/src/utils/index.ts +12 -0
  13. package/src/utils/internal/README.md +21 -0
  14. package/src/{util.ts → utils/internal/index.ts} +3 -1
  15. package/src/views/internal/README.md +27 -0
  16. package/src/views/{role → internal/role}/components/menu.vue +1 -1
  17. package/vite.config.ts +4 -4
  18. package/libs/icons.ts +0 -543
  19. /package/src/components/{Icon.vue → internal/Icon.vue} +0 -0
  20. /package/src/layouts/{1.vue → internal/1.vue} +0 -0
  21. /package/src/layouts/{2.vue → internal/2.vue} +0 -0
  22. /package/src/plugins/{http.ts → internal/http.ts} +0 -0
  23. /package/src/plugins/{router.ts → internal/router.ts} +0 -0
  24. /package/src/plugins/{storage.ts → internal/storage.ts} +0 -0
  25. /package/src/plugins/{store.ts → internal/store.ts} +0 -0
  26. /package/src/styles/{index.scss → internal/index.scss} +0 -0
  27. /package/src/styles/{mixins.scss → internal/mixins.scss} +0 -0
  28. /package/src/styles/{variables.scss → internal/variables.scss} +0 -0
  29. /package/src/views/{403 → internal/403}/403.vue +0 -0
  30. /package/src/views/{admin → internal/admin}/components/edit.vue +0 -0
  31. /package/src/views/{admin → internal/admin}/components/role.vue +0 -0
  32. /package/src/views/{admin → internal/admin}/index.vue +0 -0
  33. /package/src/views/{dict → internal/dict}/components/edit.vue +0 -0
  34. /package/src/views/{dict → internal/dict}/index.vue +0 -0
  35. /package/src/views/{index → internal/index}/components/addonList.vue +0 -0
  36. /package/src/views/{index → internal/index}/components/environmentInfo.vue +0 -0
  37. /package/src/views/{index → internal/index}/components/operationLogs.vue +0 -0
  38. /package/src/views/{index → internal/index}/components/performanceMetrics.vue +0 -0
  39. /package/src/views/{index → internal/index}/components/quickActions.vue +0 -0
  40. /package/src/views/{index → internal/index}/components/serviceStatus.vue +0 -0
  41. /package/src/views/{index → internal/index}/components/systemNotifications.vue +0 -0
  42. /package/src/views/{index → internal/index}/components/systemOverview.vue +0 -0
  43. /package/src/views/{index → internal/index}/components/systemResources.vue +0 -0
  44. /package/src/views/{index → internal/index}/components/userInfo.vue +0 -0
  45. /package/src/views/{index → internal/index}/index.vue +0 -0
  46. /package/src/views/{login → internal/login}/components/emailLoginForm.vue +0 -0
  47. /package/src/views/{login → internal/login}/components/registerForm.vue +0 -0
  48. /package/src/views/{login → internal/login}/components/welcomePanel.vue +0 -0
  49. /package/src/views/{login → internal/login}/index_1.vue +0 -0
  50. /package/src/views/{menu → internal/menu}/components/edit.vue +0 -0
  51. /package/src/views/{menu → internal/menu}/index.vue +0 -0
  52. /package/src/views/{news → internal/news}/detail/detail_2.vue +0 -0
  53. /package/src/views/{news → internal/news}/detail/index.vue +0 -0
  54. /package/src/views/{news → internal/news}/news.vue +0 -0
  55. /package/src/views/{role → internal/role}/components/api.vue +0 -0
  56. /package/src/views/{role → internal/role}/components/edit.vue +0 -0
  57. /package/src/views/{role → internal/role}/index.vue +0 -0
  58. /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,12 @@
1
+ /**
2
+ * 用户自定义工具函数
3
+ * 可以在这里添加项目特定的工具函数
4
+ *
5
+ * 示例:
6
+ * export function formatDate(date: Date): string {
7
+ * return date.toISOString().split('T')[0];
8
+ * }
9
+ */
10
+
11
+ // 导出框架工具(可选)
12
+ export * from './internal';
@@ -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
+ ```
@@ -1,5 +1,7 @@
1
1
  /**
2
- * 工具函数集合
2
+ * 框架核心工具函数
3
+ * ⚠️ 此文件由 befly-admin 包管理,请勿修改
4
+ * 运行 `befly sync:admin` 会自动更新此文件
3
5
  */
4
6
 
5
7
  /**
@@ -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
+ 📚 更多信息请查看项目文档
@@ -11,7 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script setup>
14
- import { arrayToTree } from '../../../util';
14
+ import { arrayToTree } from '@/utils';
15
15
 
16
16
  const $Prop = defineProps({
17
17
  modelValue: {
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
  },