@pubinfo/core 2.0.0-rc.2 → 2.0.0-rc.4
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/dist/{AppSetting-D2RJrc9O.js → AppSetting-BI-oNc4e.js} +19 -19
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-DusVz35O.js → HCheckList.vue_vue_type_script_setup_true_lang-BdLpkcoh.js} +1 -1
- package/dist/{HToggle-DMcVgMVY.js → HToggle-DxdWLgp-.js} +1 -1
- package/dist/{PreferencesContent-Dtd9rtew.js → PreferencesContent-CCYkZeCT.js} +52 -52
- package/dist/{SettingBreadcrumb-QSCSviKM.js → SettingBreadcrumb-BTyfiy4k.js} +5 -5
- package/dist/{SettingCopyright-Dr5P6yfq.js → SettingCopyright-g6UHi8pZ.js} +2 -2
- package/dist/{SettingEnableTransition-DGiHEbCI.js → SettingEnableTransition-Ci-5bhbR.js} +12 -12
- package/dist/{SettingHome-CEPcBlds.js → SettingHome-K4Iel0Hr.js} +8 -8
- package/dist/{SettingMenu-BJdjnRA6.js → SettingMenu-BYLWzA5i.js} +14 -14
- package/dist/{SettingMode-BnuCHoEY.js → SettingMode-tRisyKtg.js} +3 -3
- package/dist/{SettingNavSearch-CiU4BmlU.js → SettingNavSearch-CSM6mPf8.js} +6 -6
- package/dist/{SettingOther-DTHjVlFe.js → SettingOther-Bj5KF_vC.js} +11 -11
- package/dist/{SettingPage-D75_Nf05.js → SettingPage-CFjmrVI7.js} +2 -2
- package/dist/{SettingTabbar-D48dzvgA.js → SettingTabbar-uFYiaZhK.js} +13 -13
- package/dist/{SettingThemes-D-8vTs5n.js → SettingThemes-C-tMq9o5.js} +12 -12
- package/dist/{SettingToolbar-DjIjm9V-.js → SettingToolbar-BfDzijNU.js} +10 -10
- package/dist/{SettingTopbar-Cg30OTH3.js → SettingTopbar-DTDv4NXD.js} +6 -6
- package/dist/{SettingWidthMode-BKV_7kb8.js → SettingWidthMode-PkiwrHe3.js} +11 -11
- package/dist/{TopThinMode-JFYsp_lJ.js → TopThinMode-BrvA8pV0.js} +3 -3
- package/dist/built-in/authentication/alova/helper.d.ts +34 -0
- package/dist/built-in/authentication/alova/token.d.ts +16 -0
- package/dist/built-in/authentication/helper.d.ts +10 -1
- package/dist/built-in/index.d.ts +0 -1
- package/dist/built-in/layout-component/Layout.vue.d.ts +1 -0
- package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +47 -1
- package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
- package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +2 -7
- package/dist/built-in/layout-component/components/ui/HSlideover.vue.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useContext.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -5
- package/dist/built-in/layout-component/composables/useMainPage.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useMenu.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTabbar.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTitle.d.ts +3 -2
- package/dist/built-in/layout-component/composables/useWatermark.d.ts +3 -1
- package/dist/built-in/layout-component/index.d.ts +9 -6
- package/dist/built-in/layout-component/utils/index.d.ts +0 -1
- package/dist/{colors-CODcBxrF.js → colors-VoaDbOhe.js} +1 -1
- package/dist/core/interface.d.ts +14 -5
- package/dist/core/request.d.ts +2 -8
- package/dist/features/api/modules/auth/renzhengfuwu.d.ts +8 -8
- package/dist/features/api/modules/configData/heibaimingdanfuwu.d.ts +5 -5
- package/dist/features/api/modules/configData/xitongpeizhifuwu.d.ts +14 -14
- package/dist/features/api/modules/configData/zidifuwu.d.ts +10 -10
- package/dist/features/api/modules/rbac/gangweijiekou.d.ts +6 -6
- package/dist/features/api/modules/rbac/jiaosejiekou.d.ts +7 -7
- package/dist/features/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -7
- package/dist/features/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +9 -9
- package/dist/features/api/modules/rbac/yonghujiekou.d.ts +15 -15
- package/dist/features/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +5 -5
- package/dist/features/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +4 -4
- package/dist/features/api/modules/rbac/ziyuanjiekou.d.ts +13 -13
- package/dist/features/api/modules/rbac/zuhuguanlijiekou.d.ts +5 -5
- package/dist/features/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +4 -4
- package/dist/features/api/modules/rbac/zuzhijiekou.d.ts +9 -9
- package/dist/features/api/system/user.d.ts +4 -4
- package/dist/{index-RT-QBzm0.js → index-BSevJVD5.js} +10 -15
- package/dist/{index-BVLkBCRY.js → index-BfGqLWFB.js} +6418 -6439
- package/dist/{index-DQn1WFMa.js → index-CYoFRwvw.js} +2 -2
- package/dist/{index-DmcblkoZ.js → index-ConeY38N.js} +13 -13
- package/dist/{index-BAoB7aoj.js → index-DV3hkzKA.js} +1 -1
- package/dist/{index-D4_xmL_A.js → index-Ddw98rJ5.js} +25 -25
- package/dist/{index-DvJr0paY.js → index-DrC787X_.js} +2 -2
- package/dist/{index-BROqFYXS.js → index-Dv9ndBoi.js} +1 -1
- package/dist/{index-Jd3PYkpj.js → index-IAYhIBQH.js} +16815 -16694
- package/dist/index.d.ts +4 -2
- package/dist/index.js +53 -55
- package/dist/{pick-BLJM77QN.js → pick-vpv9EEvu.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
- package/src/built-in/authentication/alova/helper.ts +158 -0
- package/src/built-in/authentication/alova/token.ts +122 -0
- package/src/built-in/authentication/helper.ts +7 -3
- package/src/built-in/authentication/index.ts +6 -20
- package/src/built-in/index.ts +0 -1
- package/src/built-in/layout-component/Layout.vue +11 -22
- package/src/built-in/layout-component/components/Header/TopMode/index.vue +4 -4
- package/src/built-in/layout-component/components/Menu/item.vue +3 -3
- package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +4 -4
- package/src/built-in/layout-component/components/Sidebar/index.vue +1 -1
- package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +108 -0
- package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
- package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
- package/src/built-in/layout-component/components/Tools/SearchBar.vue +42 -0
- package/src/built-in/layout-component/components/Tools/{Search.vue → SearchPanel.vue} +13 -21
- package/src/built-in/layout-component/components/Tools/index.vue +71 -142
- package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
- package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +9 -12
- package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +12 -15
- package/src/built-in/layout-component/components/Topbar/Toolbar/Favorites.vue +4 -7
- package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +6 -6
- package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +19 -26
- package/src/built-in/layout-component/composables/useContext.ts +1 -1
- package/src/built-in/layout-component/composables/useGetComputedStyle.ts +2 -3
- package/src/built-in/layout-component/composables/useHotkey.ts +6 -10
- package/src/built-in/layout-component/composables/useMainPage.ts +5 -6
- package/src/built-in/layout-component/composables/useMenu.ts +3 -5
- package/src/built-in/layout-component/composables/useTabbar.ts +3 -5
- package/src/built-in/layout-component/composables/useTitle.ts +10 -17
- package/src/built-in/layout-component/composables/useWatermark.ts +25 -12
- package/src/built-in/layout-component/index.ts +21 -12
- package/src/built-in/layout-component/provider.ts +7 -3
- package/src/built-in/layout-component/utils/index.ts +0 -1
- package/src/built-in/settings/router.ts +5 -1
- package/src/core/interface.ts +18 -5
- package/src/core/request.ts +35 -15
- package/src/features/router/systemRoutes.ts +0 -1
- package/src/features/stores/modules/favorites.ts +0 -1
- package/src/features/stores/modules/route.ts +2 -9
- package/src/features/stores/modules/tabbar.ts +0 -3
- package/src/features/stores/utils/routerHelper.ts +38 -4
- package/src/index.ts +7 -11
- package/types/vue-router.d.ts +0 -3
- package/dist/built-in/layout-component/utils/eventBus.d.ts +0 -5
- package/dist/built-in/locales/helpler.d.ts +0 -594
- package/dist/built-in/locales/index.d.ts +0 -5
- package/dist/built-in/locales/lang/en.json.d.ts +0 -99
- package/dist/built-in/locales/lang/zh-cn.json.d.ts +0 -100
- package/dist/built-in/locales/lang/zh-tw.json.d.ts +0 -100
- package/dist/built-in/locales/ui.d.ts +0 -3
- package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +0 -70
- package/src/built-in/layout-component/utils/eventBus.ts +0 -8
- package/src/built-in/locales/helpler.ts +0 -76
- package/src/built-in/locales/index.ts +0 -20
- package/src/built-in/locales/lang/en.json +0 -96
- package/src/built-in/locales/lang/zh-cn.json +0 -97
- package/src/built-in/locales/lang/zh-tw.json +0 -97
- package/src/built-in/locales/ui.ts +0 -3
- /package/dist/built-in/layout-component/components/Tools/{DayNightSwitch.vue.d.ts → DarkModeToggle.vue.d.ts} +0 -0
- /package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts} +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"app": {
|
|
3
|
-
"account": "用户名",
|
|
4
|
-
"captcha": "验证码",
|
|
5
|
-
"check": "确认",
|
|
6
|
-
"goLogin": "去登录",
|
|
7
|
-
"hotkeys": "快捷键介绍",
|
|
8
|
-
"login": "登录",
|
|
9
|
-
"logout": "退出登录",
|
|
10
|
-
"newPassword": "新密码",
|
|
11
|
-
"changePassword": "修改密码",
|
|
12
|
-
"password": "密码",
|
|
13
|
-
"preferences": "个人偏好设置",
|
|
14
|
-
"changeOrg": "切换组织",
|
|
15
|
-
"search": {
|
|
16
|
-
"enter": "访问",
|
|
17
|
-
"esc": "退出",
|
|
18
|
-
"input": "搜索页面,支持标题、URL模糊查询",
|
|
19
|
-
"text": "搜索",
|
|
20
|
-
"type": {
|
|
21
|
-
"menu": "搜索导航菜单",
|
|
22
|
-
"tab": "搜索标签页"
|
|
23
|
-
},
|
|
24
|
-
"up_down": "切换"
|
|
25
|
-
},
|
|
26
|
-
"sendCaptcha": "发送验证码",
|
|
27
|
-
"tabbar": {
|
|
28
|
-
"close": "关闭标签页",
|
|
29
|
-
"closeLeftSide": "关闭左侧标签页",
|
|
30
|
-
"closeOtherSide": "关闭其它标签页",
|
|
31
|
-
"closeRightSide": "关闭右侧标签页",
|
|
32
|
-
"favorites": {
|
|
33
|
-
"add": "添加到收藏夹",
|
|
34
|
-
"my-favorites": "我的收藏夾",
|
|
35
|
-
"remove": "从收藏夹移除"
|
|
36
|
-
},
|
|
37
|
-
"maximize": "最大化",
|
|
38
|
-
"pin": "固定",
|
|
39
|
-
"reload": "重新加载",
|
|
40
|
-
"searchTabs": "搜索标签页",
|
|
41
|
-
"unpin": "取消固定"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"route": {
|
|
45
|
-
"demo": "演示管理系统",
|
|
46
|
-
"home": "主页",
|
|
47
|
-
"login": "登录",
|
|
48
|
-
"multimenu": {
|
|
49
|
-
"level2": {
|
|
50
|
-
"level3": {
|
|
51
|
-
"page1": "导航2-2-1",
|
|
52
|
-
"page2": "导航2-2-2",
|
|
53
|
-
"root": "导航3"
|
|
54
|
-
},
|
|
55
|
-
"page": "导航2-1",
|
|
56
|
-
"root": "导航2"
|
|
57
|
-
},
|
|
58
|
-
"page": "导航1",
|
|
59
|
-
"root": "多级导航"
|
|
60
|
-
},
|
|
61
|
-
"personal": {
|
|
62
|
-
"notification": "通知中心",
|
|
63
|
-
"profile": "个人中心"
|
|
64
|
-
},
|
|
65
|
-
"rbac": {
|
|
66
|
-
"dictionary": "字典管理",
|
|
67
|
-
"organization": "组织管理",
|
|
68
|
-
"permission": "权限管理",
|
|
69
|
-
"resource": "资源管理",
|
|
70
|
-
"role": "角色管理",
|
|
71
|
-
"roleGroup": "角色组管理",
|
|
72
|
-
"dataPermission": "数据权限管理",
|
|
73
|
-
"title": "权限管理系统",
|
|
74
|
-
"blacklist": "黑名单管理",
|
|
75
|
-
"whitelist": "白名单管理",
|
|
76
|
-
"user": "用户管理",
|
|
77
|
-
"tenant": "租户管理",
|
|
78
|
-
"position": "岗位管理",
|
|
79
|
-
"group": "群组管理",
|
|
80
|
-
"region": "区域管理",
|
|
81
|
-
"layoutSetting": "布局配置",
|
|
82
|
-
"themeSetting": "主题配置",
|
|
83
|
-
"pageSizeSetting": "页宽配置",
|
|
84
|
-
"pageAnimationSetting": "页面动画配置",
|
|
85
|
-
"menuSetting": "导航栏配置",
|
|
86
|
-
"tabbarSetting": "标签栏配置",
|
|
87
|
-
"toolbarSetting": "工具栏配置",
|
|
88
|
-
"breadcrumbSetting": "面包屑配置",
|
|
89
|
-
"watermarkSetting": "页面水印配置",
|
|
90
|
-
"otherSetting": "其他配置",
|
|
91
|
-
"loginHistory": "登录日志",
|
|
92
|
-
"operateHistory": "操作日志",
|
|
93
|
-
"safeSetting": "安全配置"
|
|
94
|
-
},
|
|
95
|
-
"undefined": "[ 无标题 ]"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
;
|
|
99
|
-
|
|
100
|
-
export default _default;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"app": {
|
|
3
|
-
"account": "賬號",
|
|
4
|
-
"captcha": "驗證碼",
|
|
5
|
-
"changeOrg": "切換組織",
|
|
6
|
-
"changePassword": "修改密碼",
|
|
7
|
-
"check": "確 認",
|
|
8
|
-
"goLogin": "去登錄",
|
|
9
|
-
"hotkeys": "熱鍵介紹",
|
|
10
|
-
"login": "登 錄",
|
|
11
|
-
"logout": "退出登錄",
|
|
12
|
-
"newPassword": "新密碼",
|
|
13
|
-
"password": "密碼",
|
|
14
|
-
"preferences": "偏好設置",
|
|
15
|
-
"search": {
|
|
16
|
-
"enter": "訪問",
|
|
17
|
-
"esc": "退出",
|
|
18
|
-
"input": "搜索頁面,支持標題、URL模糊查詢",
|
|
19
|
-
"text": "搜索",
|
|
20
|
-
"type": {
|
|
21
|
-
"menu": "搜索導航菜單",
|
|
22
|
-
"tab": "搜索標籤頁"
|
|
23
|
-
},
|
|
24
|
-
"up_down": "切換"
|
|
25
|
-
},
|
|
26
|
-
"sendCaptcha": "發送驗證碼",
|
|
27
|
-
"tabbar": {
|
|
28
|
-
"close": "關閉標籤頁",
|
|
29
|
-
"closeLeftSide": "關閉左側標籤頁",
|
|
30
|
-
"closeOtherSide": "關閉其它標籤頁",
|
|
31
|
-
"closeRightSide": "關閉右側標籤頁",
|
|
32
|
-
"favorites": {
|
|
33
|
-
"add": "加入收藏夾",
|
|
34
|
-
"my-favorites": "我的收藏夾",
|
|
35
|
-
"remove": "從收藏夾移除"
|
|
36
|
-
},
|
|
37
|
-
"maximize": "最大化",
|
|
38
|
-
"pin": "固定",
|
|
39
|
-
"reload": "重新載入",
|
|
40
|
-
"searchTabs": "搜索標籤頁",
|
|
41
|
-
"unpin": "取消固定"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"route": {
|
|
45
|
-
"demo": "演示管理系統",
|
|
46
|
-
"home": "主頁",
|
|
47
|
-
"login": "登錄",
|
|
48
|
-
"multimenu": {
|
|
49
|
-
"level2": {
|
|
50
|
-
"level3": {
|
|
51
|
-
"page1": "導航2-2-1",
|
|
52
|
-
"page2": "導航2-2-2",
|
|
53
|
-
"root": "導航3"
|
|
54
|
-
},
|
|
55
|
-
"page": "導航2-1",
|
|
56
|
-
"root": "導航2"
|
|
57
|
-
},
|
|
58
|
-
"page": "導航1",
|
|
59
|
-
"root": "多級導航"
|
|
60
|
-
},
|
|
61
|
-
"personal": {
|
|
62
|
-
"notification": "通知中心",
|
|
63
|
-
"profile": "個人中心"
|
|
64
|
-
},
|
|
65
|
-
"rbac": {
|
|
66
|
-
"dictionary": "字典管理",
|
|
67
|
-
"organization": "組織管理",
|
|
68
|
-
"permission": "權限管理",
|
|
69
|
-
"resource": "資源管理",
|
|
70
|
-
"role": "角色管理",
|
|
71
|
-
"roleGroup": "角色组管理",
|
|
72
|
-
"dataPermission": "數據權限管理",
|
|
73
|
-
"title": "權限管理系統",
|
|
74
|
-
"blacklist": "黑名單管理",
|
|
75
|
-
"whitelist": "白名單管理",
|
|
76
|
-
"user": "使用者管理",
|
|
77
|
-
"tenant": "租戶管理",
|
|
78
|
-
"position": "崗位管理",
|
|
79
|
-
"group": "群組管理",
|
|
80
|
-
"region": "區域管理",
|
|
81
|
-
"layoutSetting": "布局配置",
|
|
82
|
-
"themeSetting": "主題配置",
|
|
83
|
-
"pageSizeSetting": "頁寬配置",
|
|
84
|
-
"pageAnimationSetting": "頁麵動畫配置",
|
|
85
|
-
"menuSetting": "導航欄配置",
|
|
86
|
-
"tabbarSetting": "標簽欄配置",
|
|
87
|
-
"toolbarSetting": "工具欄配置",
|
|
88
|
-
"breadcrumbSetting": "麵包屑配置",
|
|
89
|
-
"watermarkSetting": "頁麵水印配置",
|
|
90
|
-
"otherSetting": "其他配置",
|
|
91
|
-
"loginHistory": "登錄日志",
|
|
92
|
-
"operateHistory": "操作日志",
|
|
93
|
-
"safeSetting": "安全配置"
|
|
94
|
-
},
|
|
95
|
-
"undefined": "[ 無標題 ]"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
;
|
|
99
|
-
|
|
100
|
-
export default _default;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useContext } from '../../composables/useContext';
|
|
3
|
-
|
|
4
|
-
defineOptions({
|
|
5
|
-
name: 'DayNightSwitch',
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
const { settingsStore } = useContext();
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<label v-if="settingsStore.settings.toolbar.enableColorScheme" class="day-night">
|
|
13
|
-
<div
|
|
14
|
-
class="animate-icon"
|
|
15
|
-
:class="{
|
|
16
|
-
'animate-icon-day': settingsStore.settings.app.colorScheme !== 'dark',
|
|
17
|
-
}"
|
|
18
|
-
/>
|
|
19
|
-
</label>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<style scoped>
|
|
23
|
-
.day-night {
|
|
24
|
-
--at-apply: size-11 cursor-pointer scale-45;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.animate-icon {
|
|
28
|
-
--at-apply: relative size-38px rounded-1/2 ;
|
|
29
|
-
box-shadow: inset 16px -16px 0 0 #fff;
|
|
30
|
-
transition: box-shadow 0.5s ease 0s, transform 0.4s ease 0.1s;
|
|
31
|
-
transform: scale(1) rotate(-2deg);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.animate-icon::before {
|
|
35
|
-
--at-apply: absolute w-[inherit] h-[inherit] content-empty rounded-[inherit] left-0 top-0;
|
|
36
|
-
transition: background 0.3s ease;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.animate-icon::after {
|
|
40
|
-
--at-apply: absolute top-1/2 left-1/2 size-2 -ml-1 mr-0 -mt-1 mb-0 rounded-[50%] content-empty;
|
|
41
|
-
box-shadow:
|
|
42
|
-
0 -23px 0 #ffce6e,
|
|
43
|
-
0 23px 0 #ffce6e,
|
|
44
|
-
23px 0 0 #ffce6e,
|
|
45
|
-
-23px 0 0 #ffce6e,
|
|
46
|
-
15px 15px 0 #ffce6e,
|
|
47
|
-
-15px 15px 0 #ffce6e,
|
|
48
|
-
15px -15px 0 #ffce6e,
|
|
49
|
-
-15px -15px 0 #ffce6e;
|
|
50
|
-
transition: all 0.3s ease;
|
|
51
|
-
transform: scale(0);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.animate-icon-day {
|
|
55
|
-
--at-apply: size-11;
|
|
56
|
-
box-shadow: inset 32px -32px 0 0 #fff;
|
|
57
|
-
transition: transform 0.3s ease 0.1s, box-shadow 0.2s ease 0s;
|
|
58
|
-
transform: scale(0.5) rotate(0deg);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.animate-icon-day::before {
|
|
62
|
-
background: #ffce6e;
|
|
63
|
-
transition: background 0.3s ease 0.1s;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.animate-icon-day::after {
|
|
67
|
-
transition: transform 0.5s ease 0.15s;
|
|
68
|
-
transform: scale(1.5);
|
|
69
|
-
}
|
|
70
|
-
</style>
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import type { RequestMethod } from '@/core';
|
|
2
|
-
import { cloneDeep } from 'lodash-es';
|
|
3
|
-
import { createI18n as _createI18n } from 'vue-i18n';
|
|
4
|
-
import { useSettingsStore } from '@/features/stores';
|
|
5
|
-
import _en from './lang/en.json';
|
|
6
|
-
import _zhCN from './lang/zh-cn.json';
|
|
7
|
-
import _zhTW from './lang/zh-tw.json';
|
|
8
|
-
import { en, zhCN, zhTW } from './ui';
|
|
9
|
-
|
|
10
|
-
const messages = {
|
|
11
|
-
'en': _en,
|
|
12
|
-
'zh-cn': _zhCN,
|
|
13
|
-
'zh-tw': _zhTW,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export function createI18n() {
|
|
17
|
-
const settingsStore = useSettingsStore();
|
|
18
|
-
// 如果没设置默认语言,则根据当前浏览器语言设置默认语言
|
|
19
|
-
if (!settingsStore.settings.app.defaultLang) {
|
|
20
|
-
const lang = navigator.language.toLowerCase();
|
|
21
|
-
for (const key in messages) {
|
|
22
|
-
if (lang.includes(key)) {
|
|
23
|
-
settingsStore.setDefaultLang(key);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const locale = settingsStore.settings.app.defaultLang;
|
|
28
|
-
const i18n = _createI18n({
|
|
29
|
-
legacy: false,
|
|
30
|
-
locale,
|
|
31
|
-
flatJson: true,
|
|
32
|
-
fallbackLocale: 'zh-cn',
|
|
33
|
-
messages,
|
|
34
|
-
globalInjection: true,
|
|
35
|
-
});
|
|
36
|
-
return i18n;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function getLocales() {
|
|
40
|
-
return cloneDeep(messages);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function getUILocales() {
|
|
44
|
-
const locales: {
|
|
45
|
-
[key: string]: any
|
|
46
|
-
} = {};
|
|
47
|
-
for (const key in messages) {
|
|
48
|
-
locales[key] = {};
|
|
49
|
-
switch (key) {
|
|
50
|
-
case 'zh-cn':
|
|
51
|
-
Object.assign(locales[key], { labelName: '中文(简体)' }, { ui: zhCN });
|
|
52
|
-
break;
|
|
53
|
-
case 'zh-tw':
|
|
54
|
-
Object.assign(locales[key], { labelName: '中文(繁體)' }, { ui: zhTW });
|
|
55
|
-
break;
|
|
56
|
-
case 'en':
|
|
57
|
-
Object.assign(locales[key], { labelName: 'English' }, { ui: en });
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return locales;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// 用于路由 meta.i18n 配置,方便在 VSCode I18n Ally 插件进行显示,无实际作用
|
|
65
|
-
export function $t(key: string) {
|
|
66
|
-
return key;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* 根据请求方法设置语言。
|
|
71
|
-
* @param method 请求方法
|
|
72
|
-
*/
|
|
73
|
-
export function maybeSetLanguage(method: RequestMethod) {
|
|
74
|
-
const settingsStore = useSettingsStore();
|
|
75
|
-
method.config.headers['Accept-Language'] = settingsStore.settings.app.defaultLang;
|
|
76
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ModuleOptions } from '@/core';
|
|
2
|
-
import { createI18n, maybeSetLanguage } from './helpler';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 国际化多语言
|
|
6
|
-
*/
|
|
7
|
-
export function Locales(): ModuleOptions {
|
|
8
|
-
return {
|
|
9
|
-
name: 'built-in:locales',
|
|
10
|
-
setup(ctx) {
|
|
11
|
-
const { app } = ctx;
|
|
12
|
-
app.use(createI18n());
|
|
13
|
-
},
|
|
14
|
-
hooks: {
|
|
15
|
-
'http:request': (method) => {
|
|
16
|
-
maybeSetLanguage(method);
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"app": {
|
|
3
|
-
"account": "account",
|
|
4
|
-
"captcha": "captcha",
|
|
5
|
-
"changeOrg": "Switch",
|
|
6
|
-
"changePassword": "change Password",
|
|
7
|
-
"check": "Submit",
|
|
8
|
-
"goLogin": "go login",
|
|
9
|
-
"hotkeys": "Hotkeys Introduction",
|
|
10
|
-
"login": "Login",
|
|
11
|
-
"logout": "Logout",
|
|
12
|
-
"newPassword": "new password",
|
|
13
|
-
"password": "password",
|
|
14
|
-
"preferences": "Preferences",
|
|
15
|
-
"search": {
|
|
16
|
-
"enter": "Enter",
|
|
17
|
-
"esc": "Exit",
|
|
18
|
-
"input": "Search page, support title, URL fuzzy query",
|
|
19
|
-
"text": "Search",
|
|
20
|
-
"type": {
|
|
21
|
-
"menu": "Search menus",
|
|
22
|
-
"tab": "Search tabs"
|
|
23
|
-
},
|
|
24
|
-
"up_down": "Choice"
|
|
25
|
-
},
|
|
26
|
-
"sendCaptcha": "send captcha",
|
|
27
|
-
"tabbar": {
|
|
28
|
-
"close": "Close",
|
|
29
|
-
"closeLeftSide": "Close Leftside Tabs",
|
|
30
|
-
"closeOtherSide": "Close Otherside Tabs",
|
|
31
|
-
"closeRightSide": "Close Rightside Tabs",
|
|
32
|
-
"favorites": {
|
|
33
|
-
"add": "Add to Favorites",
|
|
34
|
-
"my-favorites": "my favorites",
|
|
35
|
-
"remove": "Remove from favorites"
|
|
36
|
-
},
|
|
37
|
-
"maximize": "Maximize",
|
|
38
|
-
"pin": "Pin",
|
|
39
|
-
"reload": "Reload",
|
|
40
|
-
"searchTabs": "Search Tabs",
|
|
41
|
-
"unpin": "Unpin"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"route": {
|
|
45
|
-
"demo": "Example",
|
|
46
|
-
"home": "Home",
|
|
47
|
-
"login": "Login",
|
|
48
|
-
"multimenu": {
|
|
49
|
-
"level2": {
|
|
50
|
-
"level3": {
|
|
51
|
-
"page1": "Navigation 2-2-1",
|
|
52
|
-
"page2": "Navigation 2-2-2",
|
|
53
|
-
"root": "Navigation 3"
|
|
54
|
-
},
|
|
55
|
-
"page": "Navigation 2-1",
|
|
56
|
-
"root": "Navigation 2"
|
|
57
|
-
},
|
|
58
|
-
"page": "Navigation 1",
|
|
59
|
-
"root": "Multi-level navigation"
|
|
60
|
-
},
|
|
61
|
-
"personal": {
|
|
62
|
-
"notification": "Notification",
|
|
63
|
-
"profile": "personal center"
|
|
64
|
-
},
|
|
65
|
-
"rbac": {
|
|
66
|
-
"dictionary": "Dictionary",
|
|
67
|
-
"organization": "Organizational",
|
|
68
|
-
"permission": "Authority",
|
|
69
|
-
"resource": "Resource",
|
|
70
|
-
"role": "Role",
|
|
71
|
-
"dataPermission": "DataPermission",
|
|
72
|
-
"title": "Rbac",
|
|
73
|
-
"blacklist": "Blacklist",
|
|
74
|
-
"whitelist": "WhiteList",
|
|
75
|
-
"user": "User",
|
|
76
|
-
"tenant": "Tenant",
|
|
77
|
-
"position": "Position",
|
|
78
|
-
"group": "Group",
|
|
79
|
-
"region": "Region",
|
|
80
|
-
"layoutSetting": "LayoutSetting",
|
|
81
|
-
"themeSetting": "ThemeSetting",
|
|
82
|
-
"pageSizeSetting": "PageSizeSetting",
|
|
83
|
-
"pageAnimationSetting": "PageAnimationSetting",
|
|
84
|
-
"menuSetting": "MenuSetting",
|
|
85
|
-
"tabbarSetting": "TabbarSetting",
|
|
86
|
-
"toolbarSetting": "ToolbarSetting",
|
|
87
|
-
"breadcrumbSetting": "BreadcrumbSetting",
|
|
88
|
-
"watermarkSetting": "WatermarkSetting",
|
|
89
|
-
"otherSetting": "OtherSetting",
|
|
90
|
-
"loginHistory": "LoginHistory",
|
|
91
|
-
"operateHistory": "OperateHistory",
|
|
92
|
-
"safeSetting": "SafeSetting"
|
|
93
|
-
},
|
|
94
|
-
"undefined": "[ No title ]"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"app": {
|
|
3
|
-
"account": "用户名",
|
|
4
|
-
"captcha": "验证码",
|
|
5
|
-
"check": "确认",
|
|
6
|
-
"goLogin": "去登录",
|
|
7
|
-
"hotkeys": "快捷键介绍",
|
|
8
|
-
"login": "登录",
|
|
9
|
-
"logout": "退出登录",
|
|
10
|
-
"newPassword": "新密码",
|
|
11
|
-
"changePassword": "修改密码",
|
|
12
|
-
"password": "密码",
|
|
13
|
-
"preferences": "个人偏好设置",
|
|
14
|
-
"changeOrg": "切换组织",
|
|
15
|
-
"search": {
|
|
16
|
-
"enter": "访问",
|
|
17
|
-
"esc": "退出",
|
|
18
|
-
"input": "搜索页面,支持标题、URL模糊查询",
|
|
19
|
-
"text": "搜索",
|
|
20
|
-
"type": {
|
|
21
|
-
"menu": "搜索导航菜单",
|
|
22
|
-
"tab": "搜索标签页"
|
|
23
|
-
},
|
|
24
|
-
"up_down": "切换"
|
|
25
|
-
},
|
|
26
|
-
"sendCaptcha": "发送验证码",
|
|
27
|
-
"tabbar": {
|
|
28
|
-
"close": "关闭标签页",
|
|
29
|
-
"closeLeftSide": "关闭左侧标签页",
|
|
30
|
-
"closeOtherSide": "关闭其它标签页",
|
|
31
|
-
"closeRightSide": "关闭右侧标签页",
|
|
32
|
-
"favorites": {
|
|
33
|
-
"add": "添加到收藏夹",
|
|
34
|
-
"my-favorites": "我的收藏夾",
|
|
35
|
-
"remove": "从收藏夹移除"
|
|
36
|
-
},
|
|
37
|
-
"maximize": "最大化",
|
|
38
|
-
"pin": "固定",
|
|
39
|
-
"reload": "重新加载",
|
|
40
|
-
"searchTabs": "搜索标签页",
|
|
41
|
-
"unpin": "取消固定"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"route": {
|
|
45
|
-
"demo": "演示管理系统",
|
|
46
|
-
"home": "主页",
|
|
47
|
-
"login": "登录",
|
|
48
|
-
"multimenu": {
|
|
49
|
-
"level2": {
|
|
50
|
-
"level3": {
|
|
51
|
-
"page1": "导航2-2-1",
|
|
52
|
-
"page2": "导航2-2-2",
|
|
53
|
-
"root": "导航3"
|
|
54
|
-
},
|
|
55
|
-
"page": "导航2-1",
|
|
56
|
-
"root": "导航2"
|
|
57
|
-
},
|
|
58
|
-
"page": "导航1",
|
|
59
|
-
"root": "多级导航"
|
|
60
|
-
},
|
|
61
|
-
"personal": {
|
|
62
|
-
"notification": "通知中心",
|
|
63
|
-
"profile": "个人中心"
|
|
64
|
-
},
|
|
65
|
-
"rbac": {
|
|
66
|
-
"dictionary": "字典管理",
|
|
67
|
-
"organization": "组织管理",
|
|
68
|
-
"permission": "权限管理",
|
|
69
|
-
"resource": "资源管理",
|
|
70
|
-
"role": "角色管理",
|
|
71
|
-
"roleGroup": "角色组管理",
|
|
72
|
-
"dataPermission": "数据权限管理",
|
|
73
|
-
"title": "权限管理系统",
|
|
74
|
-
"blacklist": "黑名单管理",
|
|
75
|
-
"whitelist": "白名单管理",
|
|
76
|
-
"user": "用户管理",
|
|
77
|
-
"tenant": "租户管理",
|
|
78
|
-
"position": "岗位管理",
|
|
79
|
-
"group": "群组管理",
|
|
80
|
-
"region": "区域管理",
|
|
81
|
-
"layoutSetting": "布局配置",
|
|
82
|
-
"themeSetting": "主题配置",
|
|
83
|
-
"pageSizeSetting": "页宽配置",
|
|
84
|
-
"pageAnimationSetting": "页面动画配置",
|
|
85
|
-
"menuSetting": "导航栏配置",
|
|
86
|
-
"tabbarSetting": "标签栏配置",
|
|
87
|
-
"toolbarSetting": "工具栏配置",
|
|
88
|
-
"breadcrumbSetting": "面包屑配置",
|
|
89
|
-
"watermarkSetting": "页面水印配置",
|
|
90
|
-
"otherSetting": "其他配置",
|
|
91
|
-
"loginHistory": "登录日志",
|
|
92
|
-
"operateHistory": "操作日志",
|
|
93
|
-
"safeSetting": "安全配置"
|
|
94
|
-
},
|
|
95
|
-
"undefined": "[ 无标题 ]"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"app": {
|
|
3
|
-
"account": "賬號",
|
|
4
|
-
"captcha": "驗證碼",
|
|
5
|
-
"changeOrg": "切換組織",
|
|
6
|
-
"changePassword": "修改密碼",
|
|
7
|
-
"check": "確 認",
|
|
8
|
-
"goLogin": "去登錄",
|
|
9
|
-
"hotkeys": "熱鍵介紹",
|
|
10
|
-
"login": "登 錄",
|
|
11
|
-
"logout": "退出登錄",
|
|
12
|
-
"newPassword": "新密碼",
|
|
13
|
-
"password": "密碼",
|
|
14
|
-
"preferences": "偏好設置",
|
|
15
|
-
"search": {
|
|
16
|
-
"enter": "訪問",
|
|
17
|
-
"esc": "退出",
|
|
18
|
-
"input": "搜索頁面,支持標題、URL模糊查詢",
|
|
19
|
-
"text": "搜索",
|
|
20
|
-
"type": {
|
|
21
|
-
"menu": "搜索導航菜單",
|
|
22
|
-
"tab": "搜索標籤頁"
|
|
23
|
-
},
|
|
24
|
-
"up_down": "切換"
|
|
25
|
-
},
|
|
26
|
-
"sendCaptcha": "發送驗證碼",
|
|
27
|
-
"tabbar": {
|
|
28
|
-
"close": "關閉標籤頁",
|
|
29
|
-
"closeLeftSide": "關閉左側標籤頁",
|
|
30
|
-
"closeOtherSide": "關閉其它標籤頁",
|
|
31
|
-
"closeRightSide": "關閉右側標籤頁",
|
|
32
|
-
"favorites": {
|
|
33
|
-
"add": "加入收藏夾",
|
|
34
|
-
"my-favorites": "我的收藏夾",
|
|
35
|
-
"remove": "從收藏夾移除"
|
|
36
|
-
},
|
|
37
|
-
"maximize": "最大化",
|
|
38
|
-
"pin": "固定",
|
|
39
|
-
"reload": "重新載入",
|
|
40
|
-
"searchTabs": "搜索標籤頁",
|
|
41
|
-
"unpin": "取消固定"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"route": {
|
|
45
|
-
"demo": "演示管理系統",
|
|
46
|
-
"home": "主頁",
|
|
47
|
-
"login": "登錄",
|
|
48
|
-
"multimenu": {
|
|
49
|
-
"level2": {
|
|
50
|
-
"level3": {
|
|
51
|
-
"page1": "導航2-2-1",
|
|
52
|
-
"page2": "導航2-2-2",
|
|
53
|
-
"root": "導航3"
|
|
54
|
-
},
|
|
55
|
-
"page": "導航2-1",
|
|
56
|
-
"root": "導航2"
|
|
57
|
-
},
|
|
58
|
-
"page": "導航1",
|
|
59
|
-
"root": "多級導航"
|
|
60
|
-
},
|
|
61
|
-
"personal": {
|
|
62
|
-
"notification": "通知中心",
|
|
63
|
-
"profile": "個人中心"
|
|
64
|
-
},
|
|
65
|
-
"rbac": {
|
|
66
|
-
"dictionary": "字典管理",
|
|
67
|
-
"organization": "組織管理",
|
|
68
|
-
"permission": "權限管理",
|
|
69
|
-
"resource": "資源管理",
|
|
70
|
-
"role": "角色管理",
|
|
71
|
-
"roleGroup": "角色组管理",
|
|
72
|
-
"dataPermission": "數據權限管理",
|
|
73
|
-
"title": "權限管理系統",
|
|
74
|
-
"blacklist": "黑名單管理",
|
|
75
|
-
"whitelist": "白名單管理",
|
|
76
|
-
"user": "使用者管理",
|
|
77
|
-
"tenant": "租戶管理",
|
|
78
|
-
"position": "崗位管理",
|
|
79
|
-
"group": "群組管理",
|
|
80
|
-
"region": "區域管理",
|
|
81
|
-
"layoutSetting": "布局配置",
|
|
82
|
-
"themeSetting": "主題配置",
|
|
83
|
-
"pageSizeSetting": "頁寬配置",
|
|
84
|
-
"pageAnimationSetting": "頁麵動畫配置",
|
|
85
|
-
"menuSetting": "導航欄配置",
|
|
86
|
-
"tabbarSetting": "標簽欄配置",
|
|
87
|
-
"toolbarSetting": "工具欄配置",
|
|
88
|
-
"breadcrumbSetting": "麵包屑配置",
|
|
89
|
-
"watermarkSetting": "頁麵水印配置",
|
|
90
|
-
"otherSetting": "其他配置",
|
|
91
|
-
"loginHistory": "登錄日志",
|
|
92
|
-
"operateHistory": "操作日志",
|
|
93
|
-
"safeSetting": "安全配置"
|
|
94
|
-
},
|
|
95
|
-
"undefined": "[ 無標題 ]"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
File without changes
|
/package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts}
RENAMED
|
File without changes
|