Compare commits

..

45 Commits

Author SHA1 Message Date
xiaoxian521
d203222acf release: update 5.4.0 2024-04-18 15:34:36 +08:00
xiaoxian521
07ad01ebee style: update 2024-04-18 13:47:13 +08:00
xiaoxian521
ed71fe708d chore: update 2024-04-18 12:20:08 +08:00
xiaoxian521
29b06c5285 chore(deps): update 2024-04-17 18:37:45 +08:00
fangcy
9ad00d97ee fix: 修复调用刷新token接口时,refreshToken参数为空的问题 2024-04-17 18:17:39 +08:00
xiaoming
a402d33b89 perf: 框架核心代码国际化全量覆盖(仅需处理业务代码国际化即可) (#1082) 2024-04-17 15:41:37 +08:00
xiaoxian521
d1d2bcaa11 feat: 添加全局配置MaxTagsLevel属性,可设置打开标签页最大数 2024-04-16 19:34:57 +08:00
xiaoxian521
abd042afe8 types: 优src/utils/http文件中postget工具函数的类型 2024-04-16 14:01:36 +08:00
xiaoxian521
cd42dbf188 chore: 移除非必要的cloc工具依赖包,它使用GPL开源许可证具有争议性 2024-04-16 11:59:11 +08:00
xiaoxian521
4cbf9056b1 perf: 简化store文件中导出和导入用法 2024-04-16 11:49:15 +08:00
xiaoxian521
5d3a9dff46 fix: 修复账户设置页面,刷新后字体颜色未生效的问题 2024-04-15 17:52:51 +08:00
xiaoxian521
dbb05f4166 fix: 修复三级菜单向左折叠后图标显示样式问题 2024-04-15 16:25:01 +08:00
xiaoxian521
ea36e260e2 fix: 修复当一个页面存在多个RePureTableBar组件,列无法正常拖动问题 2024-04-15 12:52:01 +08:00
xiaoxian521
a5b57908ec perf: 优化请求白名单逻辑,兼容更多场景 2024-04-15 11:40:15 +08:00
xiaoxian521
699b174f95 perf: 优化获取顶级菜单逻辑 2024-04-15 11:15:57 +08:00
xiaoxian521
0934c97413 chore: 升级eslint9,相关兼容处理 2024-04-13 11:21:06 +08:00
xiaoxian521
0dc979eec0 chore(deps): update 2024-04-13 09:37:18 +08:00
xiaoxian521
7ed0e8f89f docs: 更新特别代码贡献名单 2024-04-12 21:34:45 +08:00
EchoByte
332678ba88 feat: 添加账户设置功能页面且兼容移动端 (#1022) 2024-04-12 16:20:33 +08:00
xiaoming
296db3789b feat: 路由添加可配置的fixedTag属性,作用为当前菜单名称是否固定显示在标签页且不可关闭 (#1047) 2024-04-09 17:07:05 +08:00
xiaoxian521
c0a1b918aa feat: pure-table添加headerSlot自定义表头插槽用法示例 2024-04-06 12:25:13 +08:00
xiaoxian521
bf874276f3 chore(deps): update 2024-04-06 10:44:08 +08:00
hb0730
f120467fc8 feat: 函数式弹框ReDialog添加Popconfirm气泡确认框 (#1046) 2024-04-04 22:14:24 +08:00
xiaoxian521
8d2ef1f644 perf: 优化登录接口 2024-04-04 15:23:02 +08:00
hb0730
fcd0fc9d65 workflow: update node-version (#1051) 2024-04-03 12:23:16 +08:00
xiaoxian521
d685a18b9e feat: 添加思维导图示例 2024-03-31 14:38:15 +08:00
hb0730
e0f52fc379 feat: 分段控制器组件添加全局禁用属性disabled (#1043)
* feat: segmented component global disabled
2024-03-31 12:37:10 +08:00
xiaoxian521
53e3e601fb chore: 升级依赖,相关兼容处理 2024-03-30 23:45:56 +08:00
xiaoxian521
adc82644cb chore(deps): update 2024-03-29 20:17:51 +08:00
xiaoxian521
ee89a864db chore(deps): update 2024-03-29 10:11:06 +08:00
Fifteen
75fad304e7 chore: revise typo (#1039) 2024-03-29 10:06:35 +08:00
xiaoxian521
48d90af81b release: update 5.3.0 2024-03-28 23:28:29 +08:00
xiaoxian521
b1fccc06d8 docs: update 2024-03-28 22:56:41 +08:00
xiaoming
fbacf8e85e refactor: 重构国际化文件命名规范以及演示页加上代码位置提示 (#1034)
* refactor: 重构国际化文件命名规范以及演示页加上代码位置提示
2024-03-27 10:21:15 +08:00
xiaoxian521
52103ab52d feat: RePureTableBar组件搭配pure-admin-table支持表头国际化切换 2024-03-26 16:07:35 +08:00
ZM25XC
bc1da0b759 perf: 优化用户管理-裁剪图片上传功能 (#1027)
* perf: 优化用户管理-裁剪图片上传功能
2024-03-25 14:57:10 +08:00
EchoByte
e38610ff67 chore: update mqtt v4 (#1024)
* fix: change mqtt to version 4
2024-03-24 20:59:46 +08:00
EchoByte
69bc6602d0 feat: 添加MQTT示例 (#1021)
* feat: add mqtt client demo use mqtt.js and emqx broker
2024-03-24 19:31:19 +08:00
xiaoxian521
eeb09a8da2 docs: 更新特别代码贡献名单 2024-03-24 14:02:03 +08:00
Fifteen
f486ba60a0 feat: ReSegmented分段控制器新增size属性,以便适配不同的场景 (#1016)
* feat: `ReSegmented`分段控制器新增`size`属性,以便适配不同的场景
2024-03-24 13:55:44 +08:00
xiaoxian521
4f44f72a2c feat: 添加WordExcel预览示例 2024-03-23 15:28:42 +08:00
xiaoxian521
51ef3647fc perf: 当浏览器窗口的可视区域小于或等于1280时隐藏页宽 2024-03-23 08:19:37 +08:00
xiaoxian521
97f167825d chore: update 2024-03-23 00:38:16 +08:00
Pan Zhou Dan
c53b7bec0a types: update global-components.d (#1015) 2024-03-22 23:55:36 +08:00
Pan Zhou Dan
135cfe0693 chore: update plugins/elementPlus.ts (#1014)
* chore: update `plugins/elementPlus.ts`
2024-03-22 22:57:36 +08:00
231 changed files with 4787 additions and 2102 deletions

View File

@@ -1,13 +0,0 @@
public
dist
*.d.ts
/src/assets
package.json
eslint.config.js
.prettierrc.js
commitlint.config.js
postcss.config.js
tailwind.config.ts
stylelint.config.js
src/components/ReSplitPane/iconfont
src/components/ReFlowChart/src/assets/iconfont

View File

@@ -13,14 +13,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v3
name: Install pnpm name: Install pnpm
id: pnpm-install id: pnpm-install
with: with:
@@ -33,7 +33,7 @@ jobs:
run: | run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3 - uses: actions/cache@v4
name: Setup pnpm cache name: Setup pnpm cache
with: with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}

2
.nvmrc
View File

@@ -1 +1 @@
v20.11.1 v20.12.2

10
.vscode/settings.json vendored
View File

@@ -35,5 +35,13 @@
"i18n-ally.sourceLanguage": "en", "i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN", "i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue"], "i18n-ally.enabledFrameworks": ["vue"],
"iconify.excludes": ["el"] "iconify.excludes": ["el"],
"vsmqtt.brokerProfiles": [
{
"name": "broker.emqx.io",
"host": "broker.emqx.io/mqtt",
"port": 1883,
"clientId": "vsmqtt_client_db34"
}
]
} }

View File

@@ -1,3 +1,46 @@
# 5.4.0 (2024-04-18)
### 🎫 Feat
- Add global disabled attribute `disabled` to `ReSegmented` component
- Added mind map examples
- Functional pop-up box `ReDialog` adds `Popconfirm` bubble confirmation box
- `pure-table` adds `headerSlot` custom header slot usage example
- The route adds a configurable `fixedTag` attribute, which determines whether the current menu name is fixedly displayed on the tab and cannot be closed.
- Added account setting function page and compatible with mobile terminals
- Upgrade `eslint9` and related compatibility processing
- Added global configuration `MaxTagsLevel` property to set the maximum number of open tabs
- Full coverage of the internationalization of the core code of the framework (only the internationalization of the business code needs to be processed)
### 🐞 Bug fixes
- Fixed the issue where columns cannot be dragged normally when there are multiple `RePureTableBar` components on a page
- Fixed the problem of icon display style after the third-level menu is folded to the left
- Fixed the issue where the font color does not take effect after refreshing the account settings page
- Fixed the issue where the `refreshToken` parameter is empty when calling the refresh `token` interface
### 🍏 Perf
- Optimize login interface
- Optimize the logic of obtaining the top menu
- Optimize request whitelist logic and be compatible with more scenarios
- Simplified export and import usage in `store` files
- Removed unnecessary `cloc` tool dependency package, which uses the `GPL` open source license and is controversial
- Optimize the types of `post` and `get` utility functions in `src/utils/http` files
# 5.3.0 (2024-03-28)
### ✔️ refactor
- Reconstruct internationalized file naming conventions and demo pages with code location hints
### 🎫 Feat
- Add `MQTT` example
- Added `docx` and `excel` file preview examples
- The `ReSegmented` segmented controller has a new `size` attribute, which can set three sizes
- The `RePureTableBar` component and `pure-admin-table` support international switching of table headers
# 5.2.0 (2024-03-22) # 5.2.0 (2024-03-22)
### ✔️ refactor ### ✔️ refactor

View File

@@ -1,3 +1,46 @@
# 5.4.0 (2024-04-18)
### 🎫 Feat
- Add global disabled attribute `disabled` to `ReSegmented` component
- Added mind map examples
- Functional pop-up box `ReDialog` adds `Popconfirm` bubble confirmation box
- `pure-table` adds `headerSlot` custom header slot usage example
- The route adds a configurable `fixedTag` attribute, which determines whether the current menu name is fixedly displayed on the tab and cannot be closed.
- Added account setting function page and compatible with mobile terminals
- Upgrade `eslint9` and related compatibility processing
- Added global configuration `MaxTagsLevel` property to set the maximum number of open tabs
- Full coverage of the internationalization of the core code of the framework (only the internationalization of the business code needs to be processed)
### 🐞 Bug fixes
- Fixed the issue where columns cannot be dragged normally when there are multiple `RePureTableBar` components on a page
- Fixed the problem of icon display style after the third-level menu is folded to the left
- Fixed the issue where the font color does not take effect after refreshing the account settings page
- Fixed the issue where the `refreshToken` parameter is empty when calling the refresh `token` interface
### 🍏 Perf
- Optimize login interface
- Optimize the logic of obtaining the top menu
- Optimize request whitelist logic and be compatible with more scenarios
- Simplified export and import usage in `store` files
- Removed unnecessary `cloc` tool dependency package, which uses the `GPL` open source license and is controversial
- Optimize the types of `post` and `get` utility functions in `src/utils/http` files
# 5.3.0 (2024-03-28)
### ✔️ refactor
- Reconstruct internationalized file naming conventions and demo pages with code location hints
### 🎫 Feat
- Add `MQTT` example
- Added `docx` and `excel` file preview examples
- The `ReSegmented` segmented controller has a new `size` attribute, which can set three sizes
- The `RePureTableBar` component and `pure-admin-table` support international switching of table headers
# 5.2.0 (2024-03-22) # 5.2.0 (2024-03-22)
### ✔️ refactor ### ✔️ refactor

View File

@@ -1,3 +1,46 @@
# 5.4.0 (2024-04-18)
### 🎫 Feat
- 分段控制器组件添加全局禁用属性`disabled`
- 添加思维导图示例
- 函数式弹框`ReDialog`添加`Popconfirm`气泡确认框
- `pure-table`添加`headerSlot`自定义表头插槽用法示例
- 路由添加可配置的`fixedTag`属性,作用为当前菜单名称是否固定显示在标签页且不可关闭
- 添加账户设置功能页面且兼容移动端
- 升级`eslint9`,相关兼容处理
- 添加全局配置`MaxTagsLevel`属性,可设置打开标签页最大数
- 框架核心代码国际化全量覆盖(仅需处理业务代码国际化即可)
### 🐞 Bug fixes
- 修复当一个页面存在多个`RePureTableBar`组件,列无法正常拖动问题
- 修复三级菜单向左折叠后图标显示样式问题
- 修复账户设置页面,刷新后字体颜色未生效的问题
- 修复调用刷新`token`接口时,`refreshToken`参数为空的问题
### 🍏 Perf
- 优化登录接口
- 优化获取顶级菜单逻辑
- 优化请求白名单逻辑,兼容更多场景
- 简化`store`文件中导出和导入用法
- 移除非必要的`cloc`工具依赖包,它使用`GPL`开源许可证具有争议性
- 优化`src/utils/http`文件中`post``get`工具函数的类型
# 5.3.0 (2024-03-28)
### ✔️ refactor
- 重构国际化文件命名规范以及演示页加上代码位置提示
### 🎫 Feat
- 添加`MQTT`示例
- 添加`docx``excel`文件预览示例
- `ReSegmented`分段控制器新增`size`属性,可设置三种尺寸
- `RePureTableBar`组件搭配`pure-admin-table`支持表头国际化切换
# 5.2.0 (2024-03-22) # 5.2.0 (2024-03-22)
### ✔️ refactor ### ✔️ refactor
@@ -28,7 +71,7 @@
- 修复`windwos`下点击注册页面会出现滚动条问题 - 修复`windwos`下点击注册页面会出现滚动条问题
- 修复`windows`下页面切换,内容区会出现滚动条问题 - 修复`windows`下页面切换,内容区会出现滚动条问题
- 修复`pure-table`带状态表格在深色整体风格下状态样式消失的问题 - 修复`pure-table`带状态表格在深色整体风格下状态样式消失的问题
- 修复项目配置中开启灰色模式和深色整体风格,刷新页面整体风格异常 - 修复系统配置中开启灰色模式和深色整体风格,刷新页面整体风格异常
### 🍏 Perf ### 🍏 Perf
@@ -71,7 +114,7 @@
- 所有`search`搜索图标统一替换为`@iconify-icons/ri/search-line`它比较常用将其放入全局离线图标中 - 所有`search`搜索图标统一替换为`@iconify-icons/ri/search-line`它比较常用将其放入全局离线图标中
- 移除`iframe`在暗模式下的滤镜效果 - 移除`iframe`在暗模式下的滤镜效果
- 带来更美观精致的首页 - 带来更美观精致的首页
- 更干净整洁的项目配置右侧弹出面板 - 更干净整洁的系统配置右侧弹出面板
- 重构关于页面,整体更紧致,关键信息更突出 - 重构关于页面,整体更紧致,关键信息更突出
### 🎫 Feat ### 🎫 Feat

View File

@@ -23,15 +23,15 @@ The simplified version is based on the shelf extracted from [vue-pure-admin](htt
[Click to view the non-internationalized version](https://github.com/pure-admin/pure-admin-thin) [Click to view the non-internationalized version](https://github.com/pure-admin/pure-admin-thin)
[Click to view Internationalization version](https://github.com/pure-admin/pure-admin-thin/tree/i18n) [Click to view Internationalization version](https://github.com/pure-admin/pure-admin-thin/tree/i18n)
## Supporting Video ## Supporting video
[Click Watch Tutorial](https://www.bilibili.com/video/BV1kg411v7QT) [Click me to view UI design](https://www.bilibili.com/video/BV17g411T7rq)
[Click Watch UI Design](https://www.bilibili.com/video/BV17g411T7rq) [Click me to view the rapid development tutorial](https://www.bilibili.com/video/BV1kg411v7QT)
## Docs ## Nanny-level documents
[View vue-pure-admin documentation](https://yiming_chang.gitee.io/pure-admin-doc) [Click me to view vue-pure-admin documentation](https://yiming_chang.gitee.io/pure-admin-doc)
[View @pureadmin/utils documentation](https://pure-admin-utils.netlify.app) [Click me to view @pureadmin/utils documentation](https://pure-admin-utils.netlify.app)
## Quality service, software outsourcing, sponsorship support ## Quality service, software outsourcing, sponsorship support
@@ -176,12 +176,14 @@ Thank you very much for your in-depth understanding of the source code and your
| **Contributor** | **SpecificCode** | | **Contributor** | **SpecificCode** |
| :---------------------------------------------: | :------------------------------------------------------------------------------: | | :---------------------------------------------: | :------------------------------------------------------------------------------: |
| [hb0730](https://github.com/hb0730) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=hb0730) | | [hb0730](https://github.com/hb0730) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=hb0730) |
| [o-cc](https://github.com/o-cc) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=o-cc) | | [o-cc](https://github.com/o-cc) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=o-cc) |
| [yj-liuzepeng](https://github.com/yj-liuzepeng) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=yj-liuzepeng) | | [yj-liuzepeng](https://github.com/yj-liuzepeng) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=yj-liuzepeng) |
| [skyline523](https://github.com/skyline523) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=skyline523) | | [skyline523](https://github.com/skyline523) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=skyline523) |
| [shark-lajiao](https://github.com/shark-lajiao) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=shark-lajiao) | | [shark-lajiao](https://github.com/shark-lajiao) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=shark-lajiao) |
| [WitMiao](https://github.com/WitMiao) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=WitMiao) | | [WitMiao](https://github.com/WitMiao) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=WitMiao) |
| [QFifteen](https://github.com/QFifteen) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=QFifteen) |
| [edgexie](https://github.com/edgexie) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=edgexie) |
## Git Contribution submission specification ## Git Contribution submission specification

View File

@@ -26,8 +26,8 @@
## 配套视频 ## 配套视频
[点我查看快速开发教程](https://www.bilibili.com/video/BV1kg411v7QT)
[点我查看 UI 设计](https://www.bilibili.com/video/BV17g411T7rq) [点我查看 UI 设计](https://www.bilibili.com/video/BV17g411T7rq)
[点我查看快速开发教程](https://www.bilibili.com/video/BV1kg411v7QT)
## 配套保姆级文档 ## 配套保姆级文档
@@ -183,6 +183,8 @@ docker run -dp 8080:80 --name pure-admin vue-pure-admin
| [skyline523](https://github.com/skyline523) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=skyline523) | | [skyline523](https://github.com/skyline523) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=skyline523) |
| [shark-lajiao](https://github.com/shark-lajiao) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=shark-lajiao) | | [shark-lajiao](https://github.com/shark-lajiao) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=shark-lajiao) |
| [WitMiao](https://github.com/WitMiao) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=WitMiao) | | [WitMiao](https://github.com/WitMiao) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=WitMiao) |
| [QFifteen](https://github.com/QFifteen) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=QFifteen) |
| [edgexie](https://github.com/edgexie) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=edgexie) |
## `Git` 贡献提交规范 ## `Git` 贡献提交规范

View File

@@ -36,6 +36,8 @@ const include = [
"vue-json-pretty", "vue-json-pretty",
"@logicflow/core", "@logicflow/core",
"@pureadmin/utils", "@pureadmin/utils",
"@vue-office/docx",
"@vue-office/excel",
"@wangeditor/editor", "@wangeditor/editor",
"responsive-storage", "responsive-storage",
"plus-pro-components", "plus-pro-components",

View File

@@ -24,8 +24,7 @@ export function getPluginsList(
// jsx、tsx语法支持 // jsx、tsx语法支持
vueJsx(), vueJsx(),
VueI18nPlugin({ VueI18nPlugin({
runtimeOnly: true, jitCompilation: false,
compositionOnly: true,
include: [pathResolve("../locales/**")] include: [pathResolve("../locales/**")]
}), }),
viteBuildInfo(), viteBuildInfo(),

View File

@@ -10,7 +10,14 @@ import pluginTypeScript from "@typescript-eslint/eslint-plugin";
export default defineFlatConfig([ export default defineFlatConfig([
{ {
...js.configs.recommended, ...js.configs.recommended,
ignores: ["src/assets/**", "src/**/iconfont/**"], ignores: [
"**/.*",
"dist/*",
"*.d.ts",
"public/*",
"src/assets/**",
"src/**/iconfont/**"
],
languageOptions: { languageOptions: {
globals: { globals: {
// index.d.ts // index.d.ts

View File

@@ -1,184 +1,229 @@
buttons: buttons:
hsLoginOut: LoginOut pureAccountSettings: Account
hsfullscreen: FullScreen pureLoginOut: LoginOut
hsexitfullscreen: ExitFullscreen pureLogin: Login
hsrefreshRoute: RefreshRoute pureOpenSystemSet: Open System Configs
hslogin: Login pureReload: Reload
hsadd: Add pureCloseCurrentTab: Close CurrentTab
hsmark: Mark/Cancel pureCloseLeftTabs: Close LeftTabs
hssave: Save pureCloseRightTabs: Close RightTabs
hssearch: Search pureCloseOtherTabs: Close OtherTabs
hsexpendAll: Expand All pureCloseAllTabs: Close AllTabs
hscollapseAll: Collapse All pureContentFullScreen: Content FullScreen
hssystemSet: Open ProjectConfig pureContentExitFullScreen: Content ExitFullScreen
hsdelete: Delete pureClickCollapse: Collapse
hsreload: Reload pureClickExpand: Expand
hscloseCurrentTab: Close CurrentTab pureConfirm: Confirm
hscloseLeftTabs: Close LeftTabs pureSwitch: Switch
hscloseRightTabs: Close RightTabs pureClose: Close
hscloseOtherTabs: Close OtherTabs pureBackTop: BackTop
hscloseAllTabs: Close AllTabs pureOpenText: Open
hswholeFullScreen: FullScreen pureCloseText: Close
hswholeExitFullScreen: ExitFull search:
hscontentFullScreen: Content FullScreen pureTotal: Total
hscontentExitFullScreen: Content ExitFullScreen pureHistory: History
pureCollect: Collect
pureDragSort: Drag Sort
pureEmpty: Empty
purePlaceholder: Search Menu
panel:
pureSystemSet: System Configs
pureCloseSystemSet: Close System Configs
pureClearCacheAndToLogin: Clear cache and return to login page
pureClearCache: Clear Cache
pureOverallStyle: Overall Style
pureOverallStyleLight: Light
pureOverallStyleLightTip: Set sail freshly and light up the comfortable work interface
pureOverallStyleDark: Dark
pureOverallStyleDarkTip: Moonlight Overture, indulge in the tranquility and elegance of the night
pureOverallStyleSystem: Auto
pureOverallStyleSystemTip: Synchronize time, the interface naturally responds to morning and dusk
pureThemeColor: Theme Color
pureLayoutModel: Layout Model
pureVerticalTip: The menu on the left is familiar and friendly
pureHorizontalTip: Top menu, concise overview
pureMixTip: Mixed menu, flexible
pureStretch: Stretch Page
pureStretchFixed: Fixed
pureStretchFixedTip: Compact pages make it easy to find the information you need
pureStretchCustom: Custom
pureStretchCustomTip: Minimum 1280, maximum 1600
pureTagsStyle: Tags Style
pureTagsStyleSmart: Smart
pureTagsStyleSmartTip: Smart tags add fun and brilliance
pureTagsStyleCard: Card
pureTagsStyleCardTip: Card tags for efficient browsing
pureInterfaceDisplay: Interface Display
pureGreyModel: Grey Model
pureWeakModel: Weak Model
pureHiddenTags: Hidden Tags
pureHiddenFooter: Hidden Footer
pureMultiTagsCache: MultiTags Cache
menus: menus:
hshome: Home pureHome: Home
hslogin: Login pureLogin: Login
hsempty: Empty Page pureEmpty: Empty Page
hstable: Table pureTable: Table
hssysManagement: System Manage pureSysManagement: System Manage
hsUser: User Manage pureUser: User Manage
hsRole: Role Manage pureRole: Role Manage
hsSystemMenu: Menu Manage pureSystemMenu: Menu Manage
hsDept: Dept Manage pureDept: Dept Manage
hssysMonitor: System Monitor pureSysMonitor: System Monitor
hsOnlineUser: Online User pureOnlineUser: Online User
hsLoginLog: Login Log pureLoginLog: Login Log
hsOperationLog: Operation Log pureOperationLog: Operation Log
hsSystemLog: System Log pureSystemLog: System Log
hseditor: Editor pureEditor: Editor
hsabnormal: Abnormal Page pureAbnormal: Abnormal Page
hsfourZeroFour: "404" pureFourZeroFour: "404"
hsfourZeroOne: "403" pureFourZeroOne: "403"
hsFive: "500" pureFive: "500"
hscomponents: Components pureComponents: Components
hsdialog: Dialog pureDialog: Dialog
hsmessage: Message Tips pureMessage: Message Tips
hsvideo: Video pureVideo: Video
hssegmented: Segmented pureSegmented: Segmented
hswaterfall: Waterfall pureWaterfall: Waterfall
hsmap: Map pureMap: Map
hsdraggable: Draggable pureDraggable: Draggable
hssplitPane: Split Pane pureSplitPane: Split Pane
hsText: Text Ellipsis pureText: Text Ellipsis
hsElButton: Button pureElButton: Button
hsbutton: Button Animation pureButton: Button Animation
hsCheckButton: Check Button pureCheckButton: Check Button
hscropping: Picture Cropping pureCropping: Picture Cropping
hsanimatecss: AnimateCss Selector pureAnimatecss: AnimateCss Selector
hscountTo: Digital Animation pureCountTo: Digital Animation
hsselector: Scope Selector pureSelector: Scope Selector
hsflowChart: Flow Chart pureFlowChart: Flow Chart
hsseamless: Seamless Scroll pureSeamless: Seamless Scroll
hscontextmenu: Context Menu pureContextmenu: Context Menu
hstypeit: Typeit pureTypeit: Typeit
hsjsoneditor: JSON Editor pureJsonEditor: JSON Editor
hsColorPicker: Color Picker pureColorPicker: Color Picker
hsDatePicker: Date Picker pureDatePicker: Date Picker
hsDateTimePicker: DateTimePicker pureDateTimePicker: DateTimePicker
hsTimePicker: TimePicker pureTimePicker: TimePicker
hsTag: Tag pureTag: Tag
hsStatistic: Statistic pureStatistic: Statistic
hsCollapse: Collapse pureCollapse: Collapse
hsGanttastic: Gantt Chart pureGanttastic: Gantt Chart
hsProgress: Progress pureProgress: Progress
hsUpload: File Upload pureUpload: File Upload
hsCheckCard: CheckCard pureCheckCard: CheckCard
hsmenus: MultiLevel Menu pureMenus: MultiLevel Menu
hsmenu1: Menu1 pureMenu1: Menu1
hsmenu1-1: Menu1-1 pureMenu1-1: Menu1-1
hsmenu1-2: Menu1-2 pureMenu1-2: Menu1-2
hsmenu1-2-1: Menu1-2-1 pureMenu1-2-1: Menu1-2-1
hsmenu1-2-2: Menu1-2-2 pureMenu1-2-2: Menu1-2-2
hsmenu1-3: Menu1-3 pureMenu1-3: Menu1-3
hsmenu2: Menu2 pureMenu2: Menu2
permission: Permission Manage purePermission: Permission Manage
permissionPage: Page Permission purePermissionPage: Page Permission
permissionButton: Button Permission purePermissionButton: Button Permission
hstabs: Tabs Operate pureTabs: Tabs Operate
hsguide: Guide pureGuide: Guide
hsAble: Able pureAble: Able
hsMenuTree: Menu Tree pureMenuTree: Menu Tree
hsVideoFrame: Video Frame Capture pureVideoFrame: Video Frame Capture
hsWavesurfer: Audio Visualization pureWavesurfer: Audio Visualization
hsRipple: Ripple pureRipple: Ripple
hsOptimize: Debounce、Throttle、Copy、Longpress Directives pureMqtt: Mqtt Client
hsVerify: Captcha pureOptimize: Debounce、Throttle、Copy、Longpress Directives
hsWatermark: Water Mark pureVerify: Captcha
hsPrint: Print pureWatermark: Water Mark
hsDownload: Download purePrint: Print
hsExternalPage: External Page pureDownload: Download
hsExternalDoc: Docs External pureExternalPage: External Page
hsEmbeddedDoc: Docs Embedded pureExternalDoc: Docs External
externalLink: Vue-Pure-Admin pureEmbeddedDoc: Docs Embedded
pureutilsLink: Pure-Admin-Utils pureExternalLink: Vue-Pure-Admin
hsEpDocument: Element-Plus pureUtilsLink: Pure-Admin-Utils
hsTailwindcssDocument: Tailwindcss pureColorHuntDoc: ColorHunt
hsVueDocument: Vue3 pureUiGradients: UiGradients
hsViteDocument: Vite pureEpDoc: Element-Plus
hsPiniaDocument: Pinia pureTailwindcssDoc: Tailwindcss
hsRouterDocument: Vue-Router pureVueDoc: Vue3
hsAbout: About pureViteDoc: Vite
hsResult: Result Page purePiniaDoc: Pinia
hsSuccess: Success Page pureRouterDoc: Vue-Router
hsFail: Fail Page pureAbout: About
hsIconSelect: Icon Select pureResult: Result Page
hsTimeline: Time Line pureSuccess: Success Page
hsLineTree: LineTree pureFail: Fail Page
hsList: List Page pureIconSelect: Icon Select
hsListCard: Card List Page pureTimeline: Time Line
hsDebounce: Debounce & Throttle pureLineTree: LineTree
hsFormDesign: Form Design pureList: List Page
hsBarcode: Barcode pureCardList: Card List Page
hsQrcode: Qrcode pureDebounce: Debounce & Throttle
hsCascader: Area Cascader pureFormDesign: Form Design
hsSwiper: Swiper Plugin pureBarcode: Barcode
hsVirtualList: Virtual List pureQrcode: Qrcode
hsPdf: PDF Preview pureCascader: Area Cascader
hsExcel: Export Excel pureSwiper: Swiper Plugin
hsInfiniteScroll: Table Infinite Scroll pureVirtualList: Virtual List
hsSensitive: Sensitive Filter purePdf: PDF Preview
hsPinyin: PinYin pureWord: Word Preview
hsdanmaku: Danmaku pureExcels: Excel Preview
hsSchemaForm: Form pureExcel: Export Excel
hsPureTableBase: Base Usage pureInfiniteScroll: Table Infinite Scroll
hsPureTableHigh: High Usage pureSensitive: Sensitive Filter
hsPureTableEdit: Edit Usage purePinyin: PinYin
hsVxeTable: Virtual Usage pureDanmaku: Danmaku
hsboard: Paint Board pureSchemaForm: Form
hsMenuoverflow: Menu Overflow Show Tooltip Text pureTableBase: Base Usage
hsChildMenuoverflow: Child Menu Overflow Show Tooltip Text pureTableHigh: High Usage
pureTableEdit: Edit Usage
pureVxeTable: Virtual Usage
pureBoard: Paint Board
pureMindMap: Mind Map
pureMenuOverflow: Menu Overflow Show Tooltip Text
pureChildMenuOverflow: Child Menu Overflow Show Tooltip Text
status: status:
hsLoad: Loading... pureLoad: Loading...
pureNoMessage: No Message
login: login:
username: Username pureUsername: Username
password: Password purePassword: Password
verifyCode: VerifyCode pureVerifyCode: VerifyCode
remember: days no need to login pureRemember: days no need to login
rememberInfo: After checking and logging in, will automatically log in to the system without entering your username and password within the specified number of days. pureRememberInfo: After checking and logging in, will automatically log in to the system without entering your username and password within the specified number of days.
sure: Sure Password pureSure: Sure Password
forget: Forget Password? pureForget: Forget Password?
login: Login pureLogin: Login
thirdLogin: Third Login pureThirdLogin: Third Login
phoneLogin: Phone Login purePhoneLogin: Phone Login
qRCodeLogin: QRCode Login pureQRCodeLogin: QRCode Login
register: Register pureRegister: Register
weChatLogin: WeChat Login pureWeChatLogin: WeChat Login
alipayLogin: Alipay Login pureAlipayLogin: Alipay Login
qqLogin: QQ Login pureQQLogin: QQ Login
weiboLogin: Weibo Login pureWeiBoLogin: Weibo Login
phone: Phone purePhone: Phone
smsVerifyCode: SMS VerifyCode pureSmsVerifyCode: SMS VerifyCode
back: Back pureBack: Back
test: Mock Test pureTest: Mock Test
tip: After scanning the code, click "Confirm" to complete the login pureTip: After scanning the code, click "Confirm" to complete the login
definite: Definite pureDefinite: Definite
loginSuccess: Login Success pureLoginSuccess: Login Success
registerSuccess: Regist Success pureLoginFail: Login Fail
tickPrivacy: Please tick Privacy Policy pureRegisterSuccess: Regist Success
readAccept: I have read it carefully and accept pureTickPrivacy: Please tick Privacy Policy
privacyPolicy: Privacy Policy pureReadAccept: I have read it carefully and accept
getVerifyCode: Get VerifyCode purePrivacyPolicy: Privacy Policy
info: Seconds pureGetVerifyCode: Get VerifyCode
usernameReg: Please enter username pureInfo: Seconds
passwordReg: Please enter password pureUsernameReg: Please enter username
verifyCodeReg: Please enter verify code purePassWordReg: Please enter password
verifyCodeCorrectReg: Please enter correct verify code pureVerifyCodeReg: Please enter verify code
verifyCodeSixReg: Please enter a 6-digit verify code pureVerifyCodeCorrectReg: Please enter correct verify code
phoneReg: Please enter the phone pureVerifyCodeSixReg: Please enter a 6-digit verify code
phoneCorrectReg: Please enter the correct phone number format purePhoneReg: Please enter the phone
passwordRuleReg: The password format should be any combination of 8-18 digits purePhoneCorrectReg: Please enter the correct phone number format
passwordSureReg: Please enter confirm password purePassWordRuleReg: The password format should be any combination of 8-18 digits
passwordDifferentReg: The two passwords do not match! purePassWordSureReg: Please enter confirm password
passwordUpdateReg: Password has been updated purePassWordDifferentReg: The two passwords do not match!
purePassWordUpdateReg: Password has been updated

View File

@@ -1,184 +1,229 @@
buttons: buttons:
hsLoginOut: 退出系统 pureAccountSettings: 账户设置
hsfullscreen: 全屏 pureLoginOut: 退出系统
hsexitfullscreen: 退出全屏 pureLogin: 登录
hsrefreshRoute: 刷新路由 pureOpenSystemSet: 打开系统配置
hslogin: 登录 pureReload: 重新加载
hsadd: 新增 pureCloseCurrentTab: 关闭当前标签页
hsmark: 标记/取消 pureCloseLeftTabs: 关闭左侧标签页
hssave: 保存 pureCloseRightTabs: 关闭右侧标签页
hssearch: 搜索 pureCloseOtherTabs: 关闭其他标签页
hsexpendAll: 全部展开 pureCloseAllTabs: 关闭全部标签页
hscollapseAll: 全部折叠 pureContentFullScreen: 内容区全屏
hssystemSet: 打开项目配置 pureContentExitFullScreen: 内容区退出全屏
hsdelete: 删除 pureClickCollapse: 点击折叠
hsreload: 重新加载 pureClickExpand: 点击展开
hscloseCurrentTab: 关闭当前标签页 pureConfirm: 确认
hscloseLeftTabs: 关闭左侧标签页 pureSwitch: 切换
hscloseRightTabs: 关闭右侧标签页 pureClose: 关闭
hscloseOtherTabs: 关闭其他标签页 pureBackTop: 回到顶部
hscloseAllTabs: 关闭全部标签页 pureOpenText:
hswholeFullScreen: 全屏 pureCloseText:
hswholeExitFullScreen: 退出全屏 search:
hscontentFullScreen: 内容区全屏 pureTotal:
hscontentExitFullScreen: 内容区退出全屏 pureHistory: 搜索历史
pureCollect: 收藏
pureDragSort: (可拖拽排序)
pureEmpty: 暂无搜索结果
purePlaceholder: 搜索菜单(支持拼音搜索)
panel:
pureSystemSet: 系统配置
pureCloseSystemSet: 关闭配置
pureClearCacheAndToLogin: 清空缓存并返回登录页
pureClearCache: 清空缓存
pureOverallStyle: 整体风格
pureOverallStyleLight: 浅色
pureOverallStyleLightTip: 清新启航,点亮舒适的工作界面
pureOverallStyleDark: 深色
pureOverallStyleDarkTip: 月光序曲,沉醉于夜的静谧雅致
pureOverallStyleSystem: 自动
pureOverallStyleSystemTip: 同步时光,界面随晨昏自然呼应
pureThemeColor: 主题色
pureLayoutModel: 导航模式
pureVerticalTip: 左侧菜单,亲切熟悉
pureHorizontalTip: 顶部菜单,简洁概览
pureMixTip: 混合菜单,灵活多变
pureStretch: 页宽
pureStretchFixed: 固定
pureStretchFixedTip: 紧凑页面,轻松找到所需信息
pureStretchCustom: 自定义
pureStretchCustomTip: 最小1280、最大1600
pureTagsStyle: 页签风格
pureTagsStyleSmart: 灵动
pureTagsStyleSmartTip: 灵动标签,添趣生辉
pureTagsStyleCard: 卡片
pureTagsStyleCardTip: 卡片标签,高效浏览
pureInterfaceDisplay: 界面显示
pureGreyModel: 灰色模式
pureWeakModel: 色弱模式
pureHiddenTags: 隐藏标签页
pureHiddenFooter: 隐藏页脚
pureMultiTagsCache: 页签持久化
menus: menus:
hshome: 首页 pureHome: 首页
hslogin: 登录 pureLogin: 登录
hsempty: 无Layout页 pureEmpty: 无Layout页
hstable: 表格 pureTable: 表格
hssysManagement: 系统管理 pureSysManagement: 系统管理
hsUser: 用户管理 pureUser: 用户管理
hsRole: 角色管理 pureRole: 角色管理
hsSystemMenu: 菜单管理 pureSystemMenu: 菜单管理
hsDept: 部门管理 pureDept: 部门管理
hssysMonitor: 系统监控 pureSysMonitor: 系统监控
hsOnlineUser: 在线用户 pureOnlineUser: 在线用户
hsLoginLog: 登录日志 pureLoginLog: 登录日志
hsOperationLog: 操作日志 pureOperationLog: 操作日志
hsSystemLog: 系统日志 pureSystemLog: 系统日志
hseditor: 编辑器 pureEditor: 编辑器
hsabnormal: 异常页面 pureAbnormal: 异常页面
hsfourZeroFour: "404" pureFourZeroFour: "404"
hsfourZeroOne: "403" pureFourZeroOne: "403"
hsFive: "500" pureFive: "500"
hscomponents: 组件 pureComponents: 组件
hsdialog: 函数式弹框 pureDialog: 函数式弹框
hsmessage: 消息提示 pureMessage: 消息提示
hsvideo: 视频 pureVideo: 视频
hssegmented: 分段控制器 pureSegmented: 分段控制器
hswaterfall: 瀑布流无限滚动 pureWaterfall: 瀑布流无限滚动
hsmap: 地图 pureMap: 地图
hsdraggable: 拖拽 pureDraggable: 拖拽
hssplitPane: 切割面板 pureSplitPane: 切割面板
hsText: 文本省略 pureText: 文本省略
hsElButton: 按钮 pureElButton: 按钮
hsCheckButton: 可选按钮 pureCheckButton: 可选按钮
hsbutton: 按钮动效 pureButton: 按钮动效
hscropping: 图片裁剪 pureCropping: 图片裁剪
hsanimatecss: animate.css选择器 pureAnimatecss: animate.css选择器
hscountTo: 数字动画 pureCountTo: 数字动画
hsselector: 范围选择器 pureSelector: 范围选择器
hsflowChart: 流程图 pureFlowChart: 流程图
hsseamless: 无缝滚动 pureSeamless: 无缝滚动
hscontextmenu: 右键菜单 pureContextmenu: 右键菜单
hstypeit: 打字机 pureTypeit: 打字机
hsjsoneditor: JSON编辑器 pureJsonEditor: JSON编辑器
hsColorPicker: 颜色选择器 pureColorPicker: 颜色选择器
hsDatePicker: 日期选择器 pureDatePicker: 日期选择器
hsDateTimePicker: 日期时间选择器 pureDateTimePicker: 日期时间选择器
hsTimePicker: 时间选择器 pureTimePicker: 时间选择器
hsTag: 标签 pureTag: 标签
hsStatistic: 统计组件 pureStatistic: 统计组件
hsCollapse: 折叠面板 pureCollapse: 折叠面板
hsGanttastic: 甘特图 pureGanttastic: 甘特图
hsProgress: 进度条 pureProgress: 进度条
hsUpload: 文件上传 pureUpload: 文件上传
hsCheckCard: 多选卡片 pureCheckCard: 多选卡片
hsmenus: 多级菜单 pureMenus: 多级菜单
hsmenu1: 菜单1 pureMenu1: 菜单1
hsmenu1-1: 菜单1-1 pureMenu1-1: 菜单1-1
hsmenu1-2: 菜单1-2 pureMenu1-2: 菜单1-2
hsmenu1-2-1: 菜单1-2-1 pureMenu1-2-1: 菜单1-2-1
hsmenu1-2-2: 菜单1-2-2 pureMenu1-2-2: 菜单1-2-2
hsmenu1-3: 菜单1-3 pureMenu1-3: 菜单1-3
hsmenu2: 菜单2 pureMenu2: 菜单2
permission: 权限管理 purePermission: 权限管理
permissionPage: 页面权限 purePermissionPage: 页面权限
permissionButton: 按钮权限 purePermissionButton: 按钮权限
hstabs: 标签页操作 pureTabs: 标签页操作
hsguide: 引导页 pureGuide: 引导页
hsAble: 功能 pureAble: 功能
hsMenuTree: 菜单树结构 pureMenuTree: 菜单树结构
hsVideoFrame: 视频帧截取-wasm版 pureVideoFrame: 视频帧截取-wasm版
hsWavesurfer: 音频可视化 pureWavesurfer: 音频可视化
hsRipple: 波纹(Ripple) pureRipple: 波纹(Ripple)
hsOptimize: 防抖、截流、复制、长按指令 pureMqtt: MQTT客户端(mqtt)
hsVerify: 图形验证码 pureOptimize: 防抖、截流、复制、长按指令
hsWatermark: 水印 pureVerify: 图形验证码
hsPrint: pureWatermark:
hsDownload: 下载 purePrint: 打印
hsExternalPage: 外部页面 pureDownload: 下载
hsExternalDoc: 文档外链 pureExternalPage: 外部页面
hsEmbeddedDoc: 文档内嵌 pureExternalDoc: 文档外链
externalLink: vue-pure-admin pureEmbeddedDoc: 文档内嵌
pureutilsLink: pure-admin-utils pureExternalLink: vue-pure-admin
hsEpDocument: element-plus pureUtilsLink: pure-admin-utils
hsTailwindcssDocument: tailwindcss pureColorHuntDoc: 调色板
hsVueDocument: vue3 pureUiGradients: 渐变色
hsViteDocument: vite pureEpDoc: element-plus
hsPiniaDocument: pinia pureTailwindcssDoc: tailwindcss
hsRouterDocument: vue-router pureVueDoc: vue3
hsAbout: 关于 pureViteDoc: vite
hsResult: 结果页面 purePiniaDoc: pinia
hsSuccess: 成功页面 pureRouterDoc: vue-router
hsFail: 失败页面 pureAbout: 关于
hsIconSelect: 图标选择器 pureResult: 结果页面
hsTimeline: 时间线 pureSuccess: 成功页面
hsLineTree: 树形连接线 pureFail: 失败页面
hsList: 列表页面 pureIconSelect: 图标选择器
hsListCard: 卡片列表页 pureTimeline: 时间线
hsDebounce: 防抖节流 pureLineTree: 树形连接线
hsFormDesign: 表单设计器 pureList: 列表页面
hsBarcode: 条形码 pureCardList: 卡片列表页
hsQrcode: 二维码 pureDebounce: 防抖节流
hsCascader: 区域级联选择 pureFormDesign: 表单设计
hsSwiper: Swiper插件 pureBarcode: 条形码
hsVirtualList: 虚拟列表 pureQrcode: 二维码
hsPdf: PDF预览 pureCascader: 区域级联选择器
hsExcel: 导出Excel pureSwiper: Swiper插件
hsInfiniteScroll: 格无限滚动 pureVirtualList: 虚拟列
hsSensitive: 敏感词过滤 purePdf: PDF预览
hsPinyin: 汉语拼音 pureWord: Word预览
hsdanmaku: 弹幕 pureExcels: Excel预览
hsSchemaForm: 表单 pureExcel: 导出Excel
hsPureTableBase: 基础用法 pureInfiniteScroll: 表格无限滚动
hsPureTableHigh: 高级用法 pureSensitive: 敏感词过滤
hsPureTableEdit: 可编辑用法 purePinyin: 汉语拼音
hsVxeTable: 虚拟滚动 pureDanmaku: 弹幕
hsboard: 艺术画板 pureSchemaForm: 表单
hsMenuoverflow: 目录超出显示 Tooltip 文字提示 pureTableBase: 基础用法
hsChildMenuoverflow: 菜单超出显示 Tooltip 文字提示 pureTableHigh: 高级用法
pureTableEdit: 可编辑用法
pureVxeTable: 虚拟滚动
pureBoard: 艺术画板
pureMindMap: 思维导图
pureMenuOverflow: 目录超出显示 Tooltip 文字提示
pureChildMenuOverflow: 菜单超出显示 Tooltip 文字提示
status: status:
hsLoad: 加载中... pureLoad: 加载中...
pureNoMessage: 暂无消息
login: login:
username: 账号 pureUsername: 账号
password: 密码 purePassword: 密码
verifyCode: 验证码 pureVerifyCode: 验证码
remember: 天内免登录 pureRemember: 天内免登录
rememberInfo: 勾选并登录后,规定天数内无需输入用户名和密码会自动登入系统 pureRememberInfo: 勾选并登录后,规定天数内无需输入用户名和密码会自动登入系统
sure: 确认密码 pureSure: 确认密码
forget: 忘记密码? pureForget: 忘记密码?
login: 登录 pureLogin: 登录
thirdLogin: 第三方登录 pureThirdLogin: 第三方登录
phoneLogin: 手机登录 purePhoneLogin: 手机登录
qRCodeLogin: 二维码登录 pureQRCodeLogin: 二维码登录
register: 注册 pureRegister: 注册
weChatLogin: 微信登录 pureWeChatLogin: 微信登录
alipayLogin: 支付宝登录 pureAlipayLogin: 支付宝登录
qqLogin: QQ登录 pureQQLogin: QQ登录
weiboLogin: 微博登录 pureWeiBoLogin: 微博登录
phone: 手机号码 purePhone: 手机号码
smsVerifyCode: 短信验证码 pureSmsVerifyCode: 短信验证码
back: 返回 pureBack: 返回
test: 模拟测试 pureTest: 模拟测试
tip: 扫码后点击"确认",即可完成登录 pureTip: 扫码后点击"确认",即可完成登录
definite: 确定 pureDefinite: 确定
loginSuccess: 登录成功 pureLoginSuccess: 登录成功
registerSuccess: 注册成功 pureLoginFail: 登录失败
tickPrivacy: 请勾选隐私政策 pureRegisterSuccess: 注册成功
readAccept: 我已仔细阅读并接受 pureTickPrivacy: 请勾选隐私政策
privacyPolicy: 《隐私政策》 pureReadAccept: 我已仔细阅读并接受
getVerifyCode: 获取验证码 purePrivacyPolicy: 《隐私政策》
info: 秒后重新获取 pureGetVerifyCode: 获取验证码
usernameReg: 请输入账号 pureInfo: 秒后重新获取
passwordReg: 请输入密码 pureUsernameReg: 请输入账号
verifyCodeReg: 请输入验证 purePassWordReg: 请输入
verifyCodeCorrectReg: 请输入正确的验证码 pureVerifyCodeReg: 请输入验证码
verifyCodeSixReg: 请输入6位数字验证码 pureVerifyCodeCorrectReg: 请输入正确的验证码
phoneReg: 请输入手机号 pureVerifyCodeSixReg: 请输入6位数字验证
phoneCorrectReg: 请输入正确的手机号码格式 purePhoneReg: 请输入手机号码
passwordRuleReg: 密码格式应为8-18位数字、字母、符号的任意两种组合 purePhoneCorrectReg: 请输入正确的手机号码格式
passwordSureReg: 请输入确认密码 purePassWordRuleReg: 密码格式应为8-18位数字、字母、符号的任意两种组合
passwordDifferentReg: 两次密码不一致! purePassWordSureReg: 请输入确认密码
passwordUpdateReg: 修改密码成功 purePassWordDifferentReg: 两次密码不一致!
purePassWordUpdateReg: 修改密码成功

View File

@@ -12,7 +12,7 @@ const systemManagementRouter = {
path: "/system", path: "/system",
meta: { meta: {
icon: "ri:settings-3-line", icon: "ri:settings-3-line",
title: "menus.hssysManagement", title: "menus.pureSysManagement",
rank: system rank: system
}, },
children: [ children: [
@@ -21,7 +21,7 @@ const systemManagementRouter = {
name: "SystemUser", name: "SystemUser",
meta: { meta: {
icon: "ri:admin-line", icon: "ri:admin-line",
title: "menus.hsUser", title: "menus.pureUser",
roles: ["admin"] roles: ["admin"]
} }
}, },
@@ -30,7 +30,7 @@ const systemManagementRouter = {
name: "SystemRole", name: "SystemRole",
meta: { meta: {
icon: "ri:admin-fill", icon: "ri:admin-fill",
title: "menus.hsRole", title: "menus.pureRole",
roles: ["admin"] roles: ["admin"]
} }
}, },
@@ -39,7 +39,7 @@ const systemManagementRouter = {
name: "SystemMenu", name: "SystemMenu",
meta: { meta: {
icon: "ep:menu", icon: "ep:menu",
title: "menus.hsSystemMenu", title: "menus.pureSystemMenu",
roles: ["admin"] roles: ["admin"]
} }
}, },
@@ -48,7 +48,7 @@ const systemManagementRouter = {
name: "SystemDept", name: "SystemDept",
meta: { meta: {
icon: "ri:git-branch-line", icon: "ri:git-branch-line",
title: "menus.hsDept", title: "menus.pureDept",
roles: ["admin"] roles: ["admin"]
} }
} }
@@ -59,7 +59,7 @@ const systemMonitorRouter = {
path: "/monitor", path: "/monitor",
meta: { meta: {
icon: "ep:monitor", icon: "ep:monitor",
title: "menus.hssysMonitor", title: "menus.pureSysMonitor",
rank: monitor rank: monitor
}, },
children: [ children: [
@@ -69,7 +69,7 @@ const systemMonitorRouter = {
name: "OnlineUser", name: "OnlineUser",
meta: { meta: {
icon: "ri:user-voice-line", icon: "ri:user-voice-line",
title: "menus.hsOnlineUser", title: "menus.pureOnlineUser",
roles: ["admin"] roles: ["admin"]
} }
}, },
@@ -79,7 +79,7 @@ const systemMonitorRouter = {
name: "LoginLog", name: "LoginLog",
meta: { meta: {
icon: "ri:window-line", icon: "ri:window-line",
title: "menus.hsLoginLog", title: "menus.pureLoginLog",
roles: ["admin"] roles: ["admin"]
} }
}, },
@@ -89,7 +89,7 @@ const systemMonitorRouter = {
name: "OperationLog", name: "OperationLog",
meta: { meta: {
icon: "ri:history-fill", icon: "ri:history-fill",
title: "menus.hsOperationLog", title: "menus.pureOperationLog",
roles: ["admin"] roles: ["admin"]
} }
}, },
@@ -99,7 +99,7 @@ const systemMonitorRouter = {
name: "SystemLog", name: "SystemLog",
meta: { meta: {
icon: "ri:file-search-line", icon: "ri:file-search-line",
title: "menus.hsSystemLog", title: "menus.pureSystemLog",
roles: ["admin"] roles: ["admin"]
} }
} }
@@ -109,7 +109,7 @@ const systemMonitorRouter = {
const permissionRouter = { const permissionRouter = {
path: "/permission", path: "/permission",
meta: { meta: {
title: "menus.permission", title: "menus.purePermission",
icon: "ep:lollipop", icon: "ep:lollipop",
rank: permission rank: permission
}, },
@@ -118,7 +118,7 @@ const permissionRouter = {
path: "/permission/page/index", path: "/permission/page/index",
name: "PermissionPage", name: "PermissionPage",
meta: { meta: {
title: "menus.permissionPage", title: "menus.purePermissionPage",
roles: ["admin", "common"] roles: ["admin", "common"]
} }
}, },
@@ -126,7 +126,7 @@ const permissionRouter = {
path: "/permission/button/index", path: "/permission/button/index",
name: "PermissionButton", name: "PermissionButton",
meta: { meta: {
title: "menus.permissionButton", title: "menus.purePermissionButton",
roles: ["admin", "common"], roles: ["admin", "common"],
auths: [ auths: [
"permission:btn:add", "permission:btn:add",
@@ -142,29 +142,29 @@ const frameRouter = {
path: "/iframe", path: "/iframe",
meta: { meta: {
icon: "ri:links-fill", icon: "ri:links-fill",
title: "menus.hsExternalPage", title: "menus.pureExternalPage",
rank: frame rank: frame
}, },
children: [ children: [
{ {
path: "/iframe/external", path: "/iframe/external",
meta: { meta: {
title: "menus.hsExternalDoc" title: "menus.pureExternalDoc"
}, },
children: [ children: [
{ {
path: "/external", path: "/external",
name: "https://yiming_chang.gitee.io/pure-admin-doc", name: "https://yiming_chang.gitee.io/pure-admin-doc",
meta: { meta: {
title: "menus.externalLink", title: "menus.pureExternalLink",
roles: ["admin", "common"] roles: ["admin", "common"]
} }
}, },
{ {
path: "/pureutilsLink", path: "/pureUtilsLink",
name: "https://pure-admin-utils.netlify.app/", name: "https://pure-admin-utils.netlify.app/",
meta: { meta: {
title: "menus.pureutilsLink", title: "menus.pureUtilsLink",
roles: ["admin", "common"] roles: ["admin", "common"]
} }
} }
@@ -173,14 +173,34 @@ const frameRouter = {
{ {
path: "/iframe/embedded", path: "/iframe/embedded",
meta: { meta: {
title: "menus.hsEmbeddedDoc" title: "menus.pureEmbeddedDoc"
}, },
children: [ children: [
{
path: "/iframe/colorhunt",
name: "FrameColorHunt",
meta: {
title: "menus.pureColorHuntDoc",
frameSrc: "https://colorhunt.co/",
keepAlive: true,
roles: ["admin", "common"]
}
},
{
path: "/iframe/uigradients",
name: "FrameUiGradients",
meta: {
title: "menus.pureUiGradients",
frameSrc: "https://uigradients.com/",
keepAlive: true,
roles: ["admin", "common"]
}
},
{ {
path: "/iframe/ep", path: "/iframe/ep",
name: "FrameEp", name: "FrameEp",
meta: { meta: {
title: "menus.hsEpDocument", title: "menus.pureEpDoc",
frameSrc: "https://element-plus.org/zh-CN/", frameSrc: "https://element-plus.org/zh-CN/",
keepAlive: true, keepAlive: true,
roles: ["admin", "common"] roles: ["admin", "common"]
@@ -190,7 +210,7 @@ const frameRouter = {
path: "/iframe/tailwindcss", path: "/iframe/tailwindcss",
name: "FrameTailwindcss", name: "FrameTailwindcss",
meta: { meta: {
title: "menus.hsTailwindcssDocument", title: "menus.pureTailwindcssDoc",
frameSrc: "https://tailwindcss.com/docs/installation", frameSrc: "https://tailwindcss.com/docs/installation",
keepAlive: true, keepAlive: true,
roles: ["admin", "common"] roles: ["admin", "common"]
@@ -200,7 +220,7 @@ const frameRouter = {
path: "/iframe/vue3", path: "/iframe/vue3",
name: "FrameVue", name: "FrameVue",
meta: { meta: {
title: "menus.hsVueDocument", title: "menus.pureVueDoc",
frameSrc: "https://cn.vuejs.org/", frameSrc: "https://cn.vuejs.org/",
keepAlive: true, keepAlive: true,
roles: ["admin", "common"] roles: ["admin", "common"]
@@ -210,7 +230,7 @@ const frameRouter = {
path: "/iframe/vite", path: "/iframe/vite",
name: "FrameVite", name: "FrameVite",
meta: { meta: {
title: "menus.hsViteDocument", title: "menus.pureViteDoc",
frameSrc: "https://cn.vitejs.dev/", frameSrc: "https://cn.vitejs.dev/",
keepAlive: true, keepAlive: true,
roles: ["admin", "common"] roles: ["admin", "common"]
@@ -220,7 +240,7 @@ const frameRouter = {
path: "/iframe/pinia", path: "/iframe/pinia",
name: "FramePinia", name: "FramePinia",
meta: { meta: {
title: "menus.hsPiniaDocument", title: "menus.purePiniaDoc",
frameSrc: "https://pinia.vuejs.org/zh/index.html", frameSrc: "https://pinia.vuejs.org/zh/index.html",
keepAlive: true, keepAlive: true,
roles: ["admin", "common"] roles: ["admin", "common"]
@@ -230,7 +250,7 @@ const frameRouter = {
path: "/iframe/vue-router", path: "/iframe/vue-router",
name: "FrameRouter", name: "FrameRouter",
meta: { meta: {
title: "menus.hsRouterDocument", title: "menus.pureRouterDoc",
frameSrc: "https://router.vuejs.org/zh/", frameSrc: "https://router.vuejs.org/zh/",
keepAlive: true, keepAlive: true,
roles: ["admin", "common"] roles: ["admin", "common"]
@@ -245,7 +265,7 @@ const tabsRouter = {
path: "/tabs", path: "/tabs",
meta: { meta: {
icon: "ri:bookmark-2-line", icon: "ri:bookmark-2-line",
title: "menus.hstabs", title: "menus.pureTabs",
rank: tabs rank: tabs
}, },
children: [ children: [
@@ -253,7 +273,7 @@ const tabsRouter = {
path: "/tabs/index", path: "/tabs/index",
name: "Tabs", name: "Tabs",
meta: { meta: {
title: "menus.hstabs", title: "menus.pureTabs",
roles: ["admin", "common"] roles: ["admin", "common"]
} }
}, },

View File

@@ -10,7 +10,9 @@ export default defineFakeRoute([
return { return {
success: true, success: true,
data: { data: {
avatar: "https://avatars.githubusercontent.com/u/44761321",
username: "admin", username: "admin",
nickname: "小铭",
// 一个用户可能有多个角色 // 一个用户可能有多个角色
roles: ["admin"], roles: ["admin"],
accessToken: "eyJhbGciOiJIUzUxMiJ9.admin", accessToken: "eyJhbGciOiJIUzUxMiJ9.admin",
@@ -22,8 +24,9 @@ export default defineFakeRoute([
return { return {
success: true, success: true,
data: { data: {
avatar: "https://avatars.githubusercontent.com/u/52823142",
username: "common", username: "common",
// 一个用户可能有多个角色 nickname: "小林",
roles: ["common"], roles: ["common"],
accessToken: "eyJhbGciOiJIUzUxMiJ9.common", accessToken: "eyJhbGciOiJIUzUxMiJ9.common",
refreshToken: "eyJhbGciOiJIUzUxMiJ9.commonRefresh", refreshToken: "eyJhbGciOiJIUzUxMiJ9.commonRefresh",

59
mock/mine.ts Normal file
View File

@@ -0,0 +1,59 @@
import { defineFakeRoute } from "vite-plugin-fake-server/client";
import { faker } from "@faker-js/faker/locale/zh_CN";
export default defineFakeRoute([
// 账户设置-个人信息
{
url: "/mine",
method: "get",
response: () => {
return {
success: true,
data: {
avatar: "https://avatars.githubusercontent.com/u/44761321",
username: "admin",
nickname: "小铭",
email: "pureadmin@163.com",
phone: "15888886789",
description: "一个热爱开源的前端工程师"
}
};
}
},
// 账户设置-个人安全日志
{
url: "/mine-logs",
method: "get",
response: () => {
let list = [
{
id: 1,
ip: faker.internet.ipv4(),
address: "中国河南省信阳市",
system: "macOS",
browser: "Chrome",
summary: "账户登录", // 详情
operatingTime: new Date() // 时间
},
{
id: 2,
ip: faker.internet.ipv4(),
address: "中国广东省深圳市",
system: "Windows",
browser: "Firefox",
summary: "绑定了手机号码",
operatingTime: new Date().setDate(new Date().getDate() - 1)
}
];
return {
success: true,
data: {
list,
total: list.length, // 总条目数
pageSize: 10, // 每页显示条目个数
currentPage: 1 // 当前页数
}
};
}
}
]);

View File

@@ -9,9 +9,9 @@ export default defineFakeRoute([
response: ({ body }) => { response: ({ body }) => {
let list = [ let list = [
{ {
username: "admin",
nickname: "admin",
avatar: "https://avatars.githubusercontent.com/u/44761321", avatar: "https://avatars.githubusercontent.com/u/44761321",
username: "admin",
nickname: "小铭",
phone: "15888886789", phone: "15888886789",
email: faker.internet.email(), email: faker.internet.email(),
sex: 0, sex: 0,
@@ -27,9 +27,9 @@ export default defineFakeRoute([
createTime: 1605456000000 createTime: 1605456000000
}, },
{ {
username: "common",
nickname: "common",
avatar: "https://avatars.githubusercontent.com/u/52823142", avatar: "https://avatars.githubusercontent.com/u/52823142",
username: "common",
nickname: "小林",
phone: "18288882345", phone: "18288882345",
email: faker.internet.email(), email: faker.internet.email(),
sex: 1, sex: 1,
@@ -153,86 +153,86 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 100, id: 100,
menuType: 0, // 菜单类型0代表菜单、1代表iframe、2代表外链、3代表按钮 menuType: 0, // 菜单类型0代表菜单、1代表iframe、2代表外链、3代表按钮
title: "menus.hsExternalPage" title: "menus.pureExternalPage"
}, },
{ {
parentId: 100, parentId: 100,
id: 101, id: 101,
menuType: 0, menuType: 0,
title: "menus.hsExternalDoc" title: "menus.pureExternalDoc"
}, },
{ {
parentId: 101, parentId: 101,
id: 102, id: 102,
menuType: 2, menuType: 2,
title: "menus.externalLink" title: "menus.pureExternalLink"
}, },
{ {
parentId: 101, parentId: 101,
id: 103, id: 103,
menuType: 2, menuType: 2,
title: "menus.pureutilsLink" title: "menus.pureUtilsLink"
}, },
{ {
parentId: 100, parentId: 100,
id: 104, id: 104,
menuType: 1, menuType: 1,
title: "menus.hsEmbeddedDoc" title: "menus.pureEmbeddedDoc"
}, },
{ {
parentId: 104, parentId: 104,
id: 105, id: 105,
menuType: 1, menuType: 1,
title: "menus.hsEpDocument" title: "menus.pureEpDoc"
}, },
{ {
parentId: 104, parentId: 104,
id: 106, id: 106,
menuType: 1, menuType: 1,
title: "menus.hsTailwindcssDocument" title: "menus.pureTailwindcssDoc"
}, },
{ {
parentId: 104, parentId: 104,
id: 107, id: 107,
menuType: 1, menuType: 1,
title: "menus.hsVueDocument" title: "menus.pureVueDoc"
}, },
{ {
parentId: 104, parentId: 104,
id: 108, id: 108,
menuType: 1, menuType: 1,
title: "menus.hsViteDocument" title: "menus.pureViteDoc"
}, },
{ {
parentId: 104, parentId: 104,
id: 109, id: 109,
menuType: 1, menuType: 1,
title: "menus.hsPiniaDocument" title: "menus.purePiniaDoc"
}, },
{ {
parentId: 104, parentId: 104,
id: 110, id: 110,
menuType: 1, menuType: 1,
title: "menus.hsRouterDocument" title: "menus.pureRouterDoc"
}, },
// 权限管理 // 权限管理
{ {
parentId: 0, parentId: 0,
id: 200, id: 200,
menuType: 0, menuType: 0,
title: "menus.permission" title: "menus.purePermission"
}, },
{ {
parentId: 200, parentId: 200,
id: 201, id: 201,
menuType: 0, menuType: 0,
title: "menus.permissionPage" title: "menus.purePermissionPage"
}, },
{ {
parentId: 200, parentId: 200,
id: 202, id: 202,
menuType: 0, menuType: 0,
title: "menus.permissionButton" title: "menus.purePermissionButton"
}, },
{ {
parentId: 202, parentId: 202,
@@ -257,75 +257,75 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 300, id: 300,
menuType: 0, menuType: 0,
title: "menus.hssysManagement" title: "menus.pureSysManagement"
}, },
{ {
parentId: 300, parentId: 300,
id: 301, id: 301,
menuType: 0, menuType: 0,
title: "menus.hsUser" title: "menus.pureUser"
}, },
{ {
parentId: 300, parentId: 300,
id: 302, id: 302,
menuType: 0, menuType: 0,
title: "menus.hsRole" title: "menus.pureRole"
}, },
{ {
parentId: 300, parentId: 300,
id: 303, id: 303,
menuType: 0, menuType: 0,
title: "menus.hsSystemMenu" title: "menus.pureSystemMenu"
}, },
{ {
parentId: 300, parentId: 300,
id: 304, id: 304,
menuType: 0, menuType: 0,
title: "menus.hsDept" title: "menus.pureDept"
}, },
// 系统监控 // 系统监控
{ {
parentId: 0, parentId: 0,
id: 400, id: 400,
menuType: 0, menuType: 0,
title: "menus.hssysMonitor" title: "menus.pureSysMonitor"
}, },
{ {
parentId: 400, parentId: 400,
id: 401, id: 401,
menuType: 0, menuType: 0,
title: "menus.hsOnlineUser" title: "menus.pureOnlineUser"
}, },
{ {
parentId: 400, parentId: 400,
id: 402, id: 402,
menuType: 0, menuType: 0,
title: "menus.hsLoginLog" title: "menus.pureLoginLog"
}, },
{ {
parentId: 400, parentId: 400,
id: 403, id: 403,
menuType: 0, menuType: 0,
title: "menus.hsOperationLog" title: "menus.pureOperationLog"
}, },
{ {
parentId: 400, parentId: 400,
id: 404, id: 404,
menuType: 0, menuType: 0,
title: "menus.hsSystemLog" title: "menus.pureSystemLog"
}, },
// 标签页操作 // 标签页操作
{ {
parentId: 0, parentId: 0,
id: 500, id: 500,
menuType: 0, menuType: 0,
title: "menus.hstabs" title: "menus.pureTabs"
}, },
{ {
parentId: 500, parentId: 500,
id: 501, id: 501,
menuType: 0, menuType: 0,
title: "menus.hstabs" title: "menus.pureTabs"
}, },
{ {
parentId: 500, parentId: 500,
@@ -381,7 +381,7 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 100, id: 100,
menuType: 0, // 菜单类型0代表菜单、1代表iframe、2代表外链、3代表按钮 menuType: 0, // 菜单类型0代表菜单、1代表iframe、2代表外链、3代表按钮
title: "menus.hsExternalPage", title: "menus.pureExternalPage",
name: "PureIframe", name: "PureIframe",
path: "/iframe", path: "/iframe",
component: "", component: "",
@@ -397,6 +397,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -404,7 +405,7 @@ export default defineFakeRoute([
parentId: 100, parentId: 100,
id: 101, id: 101,
menuType: 0, menuType: 0,
title: "menus.hsExternalDoc", title: "menus.pureExternalDoc",
name: "PureIframeExternal", name: "PureIframeExternal",
path: "/iframe/external", path: "/iframe/external",
component: "", component: "",
@@ -420,6 +421,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -427,7 +429,7 @@ export default defineFakeRoute([
parentId: 101, parentId: 101,
id: 102, id: 102,
menuType: 2, menuType: 2,
title: "menus.externalLink", title: "menus.pureExternalLink",
name: "https://yiming_chang.gitee.io/pure-admin-doc", name: "https://yiming_chang.gitee.io/pure-admin-doc",
path: "/external", path: "/external",
component: "", component: "",
@@ -443,6 +445,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -450,9 +453,9 @@ export default defineFakeRoute([
parentId: 101, parentId: 101,
id: 103, id: 103,
menuType: 2, menuType: 2,
title: "menus.pureutilsLink", title: "menus.pureUtilsLink",
name: "https://pure-admin-utils.netlify.app/", name: "https://pure-admin-utils.netlify.app/",
path: "/pureutilsLink", path: "/pureUtilsLink",
component: "", component: "",
rank: null, rank: null,
redirect: "", redirect: "",
@@ -466,6 +469,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -473,7 +477,7 @@ export default defineFakeRoute([
parentId: 100, parentId: 100,
id: 104, id: 104,
menuType: 1, menuType: 1,
title: "menus.hsEmbeddedDoc", title: "menus.pureEmbeddedDoc",
name: "PureIframeEmbedded", name: "PureIframeEmbedded",
path: "/iframe/embedded", path: "/iframe/embedded",
component: "", component: "",
@@ -489,6 +493,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -496,7 +501,7 @@ export default defineFakeRoute([
parentId: 104, parentId: 104,
id: 105, id: 105,
menuType: 1, menuType: 1,
title: "menus.hsEpDocument", title: "menus.pureEpDoc",
name: "FrameEp", name: "FrameEp",
path: "/iframe/ep", path: "/iframe/ep",
component: "", component: "",
@@ -512,6 +517,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: true, keepAlive: true,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -519,7 +525,7 @@ export default defineFakeRoute([
parentId: 104, parentId: 104,
id: 106, id: 106,
menuType: 1, menuType: 1,
title: "menus.hsTailwindcssDocument", title: "menus.pureTailwindcssDoc",
name: "FrameTailwindcss", name: "FrameTailwindcss",
path: "/iframe/tailwindcss", path: "/iframe/tailwindcss",
component: "", component: "",
@@ -535,6 +541,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: true, keepAlive: true,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -542,7 +549,7 @@ export default defineFakeRoute([
parentId: 104, parentId: 104,
id: 107, id: 107,
menuType: 1, menuType: 1,
title: "menus.hsVueDocument", title: "menus.pureVueDoc",
name: "FrameVue", name: "FrameVue",
path: "/iframe/vue3", path: "/iframe/vue3",
component: "", component: "",
@@ -558,6 +565,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: true, keepAlive: true,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -565,7 +573,7 @@ export default defineFakeRoute([
parentId: 104, parentId: 104,
id: 108, id: 108,
menuType: 1, menuType: 1,
title: "menus.hsViteDocument", title: "menus.pureViteDoc",
name: "FrameVite", name: "FrameVite",
path: "/iframe/vite", path: "/iframe/vite",
component: "", component: "",
@@ -581,6 +589,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: true, keepAlive: true,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -588,7 +597,7 @@ export default defineFakeRoute([
parentId: 104, parentId: 104,
id: 109, id: 109,
menuType: 1, menuType: 1,
title: "menus.hsPiniaDocument", title: "menus.purePiniaDoc",
name: "FramePinia", name: "FramePinia",
path: "/iframe/pinia", path: "/iframe/pinia",
component: "", component: "",
@@ -604,6 +613,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: true, keepAlive: true,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -611,7 +621,7 @@ export default defineFakeRoute([
parentId: 104, parentId: 104,
id: 110, id: 110,
menuType: 1, menuType: 1,
title: "menus.hsRouterDocument", title: "menus.pureRouterDoc",
name: "FrameRouter", name: "FrameRouter",
path: "/iframe/vue-router", path: "/iframe/vue-router",
component: "", component: "",
@@ -627,6 +637,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: true, keepAlive: true,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -635,7 +646,7 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 200, id: 200,
menuType: 0, menuType: 0,
title: "menus.permission", title: "menus.purePermission",
name: "PurePermission", name: "PurePermission",
path: "/permission", path: "/permission",
component: "", component: "",
@@ -651,6 +662,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -658,7 +670,7 @@ export default defineFakeRoute([
parentId: 200, parentId: 200,
id: 201, id: 201,
menuType: 0, menuType: 0,
title: "menus.permissionPage", title: "menus.purePermissionPage",
name: "PermissionPage", name: "PermissionPage",
path: "/permission/page/index", path: "/permission/page/index",
component: "", component: "",
@@ -674,6 +686,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -681,7 +694,7 @@ export default defineFakeRoute([
parentId: 200, parentId: 200,
id: 202, id: 202,
menuType: 0, menuType: 0,
title: "menus.permissionButton", title: "menus.purePermissionButton",
name: "PermissionButton", name: "PermissionButton",
path: "/permission/button/index", path: "/permission/button/index",
component: "", component: "",
@@ -697,6 +710,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -720,6 +734,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -743,6 +758,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -766,6 +782,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -774,7 +791,7 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 300, id: 300,
menuType: 0, menuType: 0,
title: "menus.hssysManagement", title: "menus.pureSysManagement",
name: "PureSystem", name: "PureSystem",
path: "/system", path: "/system",
component: "", component: "",
@@ -790,6 +807,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -797,7 +815,7 @@ export default defineFakeRoute([
parentId: 300, parentId: 300,
id: 301, id: 301,
menuType: 0, menuType: 0,
title: "menus.hsUser", title: "menus.pureUser",
name: "SystemUser", name: "SystemUser",
path: "/system/user/index", path: "/system/user/index",
component: "", component: "",
@@ -813,6 +831,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -820,7 +839,7 @@ export default defineFakeRoute([
parentId: 300, parentId: 300,
id: 302, id: 302,
menuType: 0, menuType: 0,
title: "menus.hsRole", title: "menus.pureRole",
name: "SystemRole", name: "SystemRole",
path: "/system/role/index", path: "/system/role/index",
component: "", component: "",
@@ -836,6 +855,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -843,7 +863,7 @@ export default defineFakeRoute([
parentId: 300, parentId: 300,
id: 303, id: 303,
menuType: 0, menuType: 0,
title: "menus.hsSystemMenu", title: "menus.pureSystemMenu",
name: "SystemMenu", name: "SystemMenu",
path: "/system/menu/index", path: "/system/menu/index",
component: "", component: "",
@@ -859,6 +879,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -866,7 +887,7 @@ export default defineFakeRoute([
parentId: 300, parentId: 300,
id: 304, id: 304,
menuType: 0, menuType: 0,
title: "menus.hsDept", title: "menus.pureDept",
name: "SystemDept", name: "SystemDept",
path: "/system/dept/index", path: "/system/dept/index",
component: "", component: "",
@@ -882,6 +903,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -890,7 +912,7 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 400, id: 400,
menuType: 0, menuType: 0,
title: "menus.hssysMonitor", title: "menus.pureSysMonitor",
name: "PureMonitor", name: "PureMonitor",
path: "/monitor", path: "/monitor",
component: "", component: "",
@@ -906,6 +928,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -913,7 +936,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 401, id: 401,
menuType: 0, menuType: 0,
title: "menus.hsOnlineUser", title: "menus.pureOnlineUser",
name: "OnlineUser", name: "OnlineUser",
path: "/monitor/online-user", path: "/monitor/online-user",
component: "monitor/online/index", component: "monitor/online/index",
@@ -929,6 +952,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -936,7 +960,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 402, id: 402,
menuType: 0, menuType: 0,
title: "menus.hsLoginLog", title: "menus.pureLoginLog",
name: "LoginLog", name: "LoginLog",
path: "/monitor/login-logs", path: "/monitor/login-logs",
component: "monitor/logs/login/index", component: "monitor/logs/login/index",
@@ -952,6 +976,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -959,7 +984,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 403, id: 403,
menuType: 0, menuType: 0,
title: "menus.hsOperationLog", title: "menus.pureOperationLog",
name: "OperationLog", name: "OperationLog",
path: "/monitor/operation-logs", path: "/monitor/operation-logs",
component: "monitor/logs/operation/index", component: "monitor/logs/operation/index",
@@ -975,6 +1000,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -982,7 +1008,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 404, id: 404,
menuType: 0, menuType: 0,
title: "menus.hsSystemLog", title: "menus.pureSystemLog",
name: "SystemLog", name: "SystemLog",
path: "/monitor/system-logs", path: "/monitor/system-logs",
component: "monitor/logs/system/index", component: "monitor/logs/system/index",
@@ -998,6 +1024,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -1006,7 +1033,7 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 500, id: 500,
menuType: 0, menuType: 0,
title: "menus.hstabs", title: "menus.pureTabs",
name: "PureTabs", name: "PureTabs",
path: "/tabs", path: "/tabs",
component: "", component: "",
@@ -1022,6 +1049,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -1029,7 +1057,7 @@ export default defineFakeRoute([
parentId: 500, parentId: 500,
id: 501, id: 501,
menuType: 0, menuType: 0,
title: "menus.hstabs", title: "menus.pureTabs",
name: "Tabs", name: "Tabs",
path: "/tabs/index", path: "/tabs/index",
component: "", component: "",
@@ -1045,6 +1073,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -1068,6 +1097,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: false, showLink: false,
showParent: false showParent: false
}, },
@@ -1091,6 +1121,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: false, showLink: false,
showParent: false showParent: false
} }
@@ -1456,7 +1487,7 @@ export default defineFakeRoute([
parentId: 0, parentId: 0,
id: 400, id: 400,
menuType: 0, menuType: 0,
title: "menus.hssysMonitor", title: "menus.pureSysMonitor",
name: "PureMonitor", name: "PureMonitor",
path: "/monitor", path: "/monitor",
component: "", component: "",
@@ -1472,6 +1503,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -1479,7 +1511,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 401, id: 401,
menuType: 0, menuType: 0,
title: "menus.hsOnlineUser", title: "menus.pureOnlineUser",
name: "OnlineUser", name: "OnlineUser",
path: "/monitor/online-user", path: "/monitor/online-user",
component: "monitor/online/index", component: "monitor/online/index",
@@ -1495,6 +1527,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -1502,7 +1535,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 402, id: 402,
menuType: 0, menuType: 0,
title: "menus.hsLoginLog", title: "menus.pureLoginLog",
name: "LoginLog", name: "LoginLog",
path: "/monitor/login-logs", path: "/monitor/login-logs",
component: "monitor/logs/login/index", component: "monitor/logs/login/index",
@@ -1518,6 +1551,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -1525,7 +1559,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 403, id: 403,
menuType: 0, menuType: 0,
title: "menus.hsOperationLog", title: "menus.pureOperationLog",
name: "OperationLog", name: "OperationLog",
path: "/monitor/operation-logs", path: "/monitor/operation-logs",
component: "monitor/logs/operation/index", component: "monitor/logs/operation/index",
@@ -1541,6 +1575,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
}, },
@@ -1548,7 +1583,7 @@ export default defineFakeRoute([
parentId: 400, parentId: 400,
id: 404, id: 404,
menuType: 0, menuType: 0,
title: "menus.hsSystemLog", title: "menus.pureSystemLog",
name: "SystemLog", name: "SystemLog",
path: "/monitor/system-logs", path: "/monitor/system-logs",
component: "monitor/logs/system/index", component: "monitor/logs/system/index",
@@ -1564,6 +1599,7 @@ export default defineFakeRoute([
frameLoading: true, frameLoading: true,
keepAlive: false, keepAlive: false,
hiddenTag: false, hiddenTag: false,
fixedTag: false,
showLink: true, showLink: true,
showParent: false showParent: false
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "vue-pure-admin", "name": "vue-pure-admin",
"version": "5.2.0", "version": "5.4.0",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -13,7 +13,6 @@
"preview:build": "pnpm build && vite preview", "preview:build": "pnpm build && vite preview",
"typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck", "typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
"svgo": "svgo -f . -r", "svgo": "svgo -f . -r",
"cloc": "NODE_OPTIONS=--max-old-space-size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML",
"clean:cache": "rimraf .eslintcache && rimraf pnpm-lock.yaml && rimraf node_modules && pnpm store prune && pnpm install", "clean:cache": "rimraf .eslintcache && rimraf pnpm-lock.yaml && rimraf node_modules && pnpm store prune && pnpm install",
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix", "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix",
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"", "lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"",
@@ -50,14 +49,16 @@
"dependencies": { "dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
"@howdyjs/mouse-menu": "^2.1.3", "@howdyjs/mouse-menu": "^2.1.3",
"@infectoone/vue-ganttastic": "^2.3.1", "@infectoone/vue-ganttastic": "^2.3.2",
"@logicflow/core": "^1.2.23", "@logicflow/core": "^1.2.26",
"@logicflow/extension": "^1.2.23", "@logicflow/extension": "^1.2.26",
"@pureadmin/descriptions": "^1.2.1", "@pureadmin/descriptions": "^1.2.1",
"@pureadmin/table": "^3.1.2", "@pureadmin/table": "^3.1.2",
"@pureadmin/utils": "^2.4.7", "@pureadmin/utils": "^2.4.7",
"@vue-flow/background": "^1.3.0", "@vue-flow/background": "^1.3.0",
"@vue-flow/core": "^1.33.4", "@vue-flow/core": "^1.33.5",
"@vue-office/docx": "^1.6.0",
"@vue-office/excel": "^1.7.6",
"@vueuse/core": "^10.9.0", "@vueuse/core": "^10.9.0",
"@vueuse/motion": "^2.1.0", "@vueuse/motion": "^2.1.0",
"@wangeditor/editor": "^5.1.23", "@wangeditor/editor": "^5.1.23",
@@ -70,32 +71,33 @@
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"echarts": "^5.5.0", "echarts": "^5.5.0",
"el-table-infinite-scroll": "^3.0.3", "el-table-infinite-scroll": "^3.0.3",
"element-plus": "^2.6.1", "element-plus": "2.6.3",
"intro.js": "^7.2.0", "intro.js": "^7.2.0",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"jsbarcode": "^3.11.6", "jsbarcode": "^3.11.6",
"localforage": "^1.10.0", "localforage": "^1.10.0",
"mint-filter": "^4.0.3", "mint-filter": "^4.0.3",
"mitt": "^3.0.1", "mitt": "^3.0.1",
"mqtt": "4.3.7",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"path": "^0.12.7", "path": "^0.12.7",
"pinia": "^2.1.7", "pinia": "^2.1.7",
"pinyin-pro": "^3.19.6", "pinyin-pro": "^3.20.1",
"plus-pro-components": "^0.0.5", "plus-pro-components": "^0.0.11",
"qrcode": "^1.5.3", "qrcode": "^1.5.3",
"qs": "^6.12.0", "qs": "^6.12.1",
"responsive-storage": "^2.2.0", "responsive-storage": "^2.2.0",
"sortablejs": "^1.15.2", "sortablejs": "^1.15.2",
"swiper": "^11.0.7", "swiper": "^11.1.1",
"typeit": "^8.8.3", "typeit": "^8.8.3",
"v-contextmenu": "^3.2.0", "v-contextmenu": "^3.2.0",
"v3-infinite-loading": "^1.3.1", "v3-infinite-loading": "^1.3.1",
"version-rocket": "^1.7.1", "version-rocket": "^1.7.1",
"vue": "^3.4.21", "vue": "^3.4.23",
"vue-i18n": "^9.10.2", "vue-i18n": "^9.12.1",
"vue-json-pretty": "^2.4.0", "vue-json-pretty": "^2.4.0",
"vue-pdf-embed": "^2.0.3", "vue-pdf-embed": "^2.0.3",
"vue-router": "^4.3.0", "vue-router": "^4.3.1",
"vue-tippy": "^6.4.1", "vue-tippy": "^6.4.1",
"vue-types": "^5.1.1", "vue-types": "^5.1.1",
"vue-virtual-scroller": "2.0.0-beta.8", "vue-virtual-scroller": "2.0.0-beta.8",
@@ -103,45 +105,44 @@
"vue3-danmaku": "^1.6.0", "vue3-danmaku": "^1.6.0",
"vue3-puzzle-vcode": "^1.1.7", "vue3-puzzle-vcode": "^1.1.7",
"vuedraggable": "^4.1.0", "vuedraggable": "^4.1.0",
"vxe-table": "^4.5.21", "vxe-table": "^4.5.22",
"wavesurfer.js": "^7.7.5", "wavesurfer.js": "^7.7.11",
"xgplayer": "^3.0.14", "xgplayer": "^3.0.16",
"xlsx": "^0.18.5" "xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.2.1", "@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.1.0", "@commitlint/config-conventional": "^19.2.2",
"@commitlint/types": "^19.0.3", "@commitlint/types": "^19.0.3",
"@eslint/js": "^8.57.0", "@eslint/js": "^9.0.0",
"@faker-js/faker": "^8.4.1", "@faker-js/faker": "^8.4.1",
"@iconify-icons/ep": "^1.2.12", "@iconify-icons/ep": "^1.2.12",
"@iconify-icons/ri": "^1.2.10", "@iconify-icons/ri": "^1.2.10",
"@iconify/vue": "^4.1.1", "@iconify/vue": "^4.1.1",
"@intlify/unplugin-vue-i18n": "^2.0.0", "@intlify/unplugin-vue-i18n": "^4.0.0",
"@pureadmin/theme": "^3.2.0", "@pureadmin/theme": "^3.2.0",
"@types/dagre": "^0.7.52", "@types/dagre": "^0.7.52",
"@types/gradient-string": "^1.1.5", "@types/gradient-string": "^1.1.6",
"@types/intro.js": "^5.1.5", "@types/intro.js": "^5.1.5",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/node": "^20.11.30", "@types/node": "^20.12.7",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@types/qrcode": "^1.5.5", "@types/qrcode": "^1.5.5",
"@types/qs": "^6.9.14", "@types/qs": "^6.9.15",
"@types/sortablejs": "^1.15.8", "@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^7.3.1", "@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.3.1", "@typescript-eslint/parser": "^7.7.0",
"@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0", "@vitejs/plugin-vue-jsx": "^3.1.0",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"boxen": "^7.1.1", "boxen": "^7.1.1",
"cloc": "^2.11.0", "cssnano": "^6.1.2",
"cssnano": "^6.1.1",
"dagre": "^0.8.5", "dagre": "^0.8.5",
"eslint": "^8.57.0", "eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0", "eslint-define-config": "^2.1.0",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.23.0", "eslint-plugin-vue": "^9.25.0",
"gradient-string": "^2.0.2", "gradient-string": "^2.0.2",
"husky": "^9.0.11", "husky": "^9.0.11",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.2",
@@ -152,16 +153,16 @@
"prettier": "^3.2.5", "prettier": "^3.2.5",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.72.0", "sass": "^1.75.0",
"stylelint": "^16.2.1", "stylelint": "^16.3.1",
"stylelint-config-recess-order": "^5.0.0", "stylelint-config-recess-order": "^5.0.1",
"stylelint-config-recommended-vue": "^1.5.0", "stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard-scss": "^13.0.0", "stylelint-config-standard-scss": "^13.1.0",
"stylelint-prettier": "^5.0.0", "stylelint-prettier": "^5.0.0",
"svgo": "^3.2.0", "svgo": "^3.2.0",
"tailwindcss": "^3.4.1", "tailwindcss": "^3.4.3",
"typescript": "^5.4.3", "typescript": "^5.4.5",
"vite": "^5.2.2", "vite": "^5.2.9",
"vite-plugin-cdn-import": "^0.3.5", "vite-plugin-cdn-import": "^0.3.5",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-fake-server": "^2.1.1", "vite-plugin-fake-server": "^2.1.1",
@@ -183,6 +184,11 @@
"w3c-hr-time": "*", "w3c-hr-time": "*",
"stable": "*", "stable": "*",
"abab": "*" "abab": "*"
},
"peerDependencyRules": {
"allowedVersions": {
"eslint": "9"
}
} }
} }
} }

1802
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
{ {
"Version": "5.2.0", "Version": "5.4.0",
"Title": "PureAdmin", "Title": "PureAdmin",
"FixedHeader": true, "FixedHeader": true,
"HiddenSideBar": false, "HiddenSideBar": false,

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

@@ -10,10 +10,10 @@ import { defineComponent } from "vue";
import { checkVersion } from "version-rocket"; import { checkVersion } from "version-rocket";
import { ElConfigProvider } from "element-plus"; import { ElConfigProvider } from "element-plus";
import { ReDialog } from "@/components/ReDialog"; import { ReDialog } from "@/components/ReDialog";
import en from "element-plus/dist/locale/en.mjs"; import en from "element-plus/es/locale/lang/en";
import zhCn from "element-plus/dist/locale/zh-cn.mjs"; import zhCn from "element-plus/es/locale/lang/zh-cn";
import plusEn from "plus-pro-components/locale/en.mjs"; import plusEn from "plus-pro-components/es/locale/lang/en";
import plusZhCn from "plus-pro-components/locale/zh-cn.mjs"; import plusZhCn from "plus-pro-components/es/locale/lang/zh-cn";
export default defineComponent({ export default defineComponent({
name: "app", name: "app",

View File

@@ -5,7 +5,7 @@ export type UserResult = {
data: { data: {
/** 用户名 */ /** 用户名 */
username: string; username: string;
/** 当前登用户的角色 */ /** 当前登用户的角色 */
roles: Array<string>; roles: Array<string>;
/** `token` */ /** `token` */
accessToken: string; accessToken: string;
@@ -28,12 +28,56 @@ export type RefreshTokenResult = {
}; };
}; };
export type UserInfo = {
/** 头像 */
avatar: string;
/** 用户名 */
username: string;
/** 昵称 */
nickname: string;
/** 邮箱 */
email: string;
/** 联系电话 */
phone: string;
/** 简介 */
description: string;
};
export type UserInfoResult = {
success: boolean;
data: UserInfo;
};
type ResultTable = {
success: boolean;
data?: {
/** 列表数据 */
list: Array<any>;
/** 总条目数 */
total?: number;
/** 每页显示条目个数 */
pageSize?: number;
/** 当前页数 */
currentPage?: number;
};
};
/** 登录 */ /** 登录 */
export const getLogin = (data?: object) => { export const getLogin = (data?: object) => {
return http.request<UserResult>("post", "/login", { data }); return http.request<UserResult>("post", "/login", { data });
}; };
/** 刷新token */ /** 刷新`token` */
export const refreshTokenApi = (data?: object) => { export const refreshTokenApi = (data?: object) => {
return http.request<RefreshTokenResult>("post", "/refresh-token", { data }); return http.request<RefreshTokenResult>("post", "/refresh-token", { data });
}; };
/** 账户设置-个人信息 */
export const getMine = (data?: object) => {
return http.request<UserInfoResult>("get", "/mine", { data });
};
/** 账户设置-个人安全日志 */
export const getMineLogs = (data?: object) => {
return http.request<ResultTable>("get", "/mine-logs", { data });
};

View File

@@ -1,5 +1,5 @@
import reAnimateSelector from "./src/index.vue";
import { withInstall } from "@pureadmin/utils"; import { withInstall } from "@pureadmin/utils";
import reAnimateSelector from "./src/index.vue";
/** [animate.css](https://animate.style/) 选择器组件 */ /** [animate.css](https://animate.style/) 选择器组件 */
export const ReAnimateSelector = withInstall(reAnimateSelector); export const ReAnimateSelector = withInstall(reAnimateSelector);

View File

@@ -1,5 +1,5 @@
import reBarcode from "./src/index.vue";
import { withInstall } from "@pureadmin/utils"; import { withInstall } from "@pureadmin/utils";
import reBarcode from "./src/index.vue";
/** 条形码组件 */ /** 条形码组件 */
export const ReBarcode = withInstall(reBarcode); export const ReBarcode = withInstall(reBarcode);

View File

@@ -1,10 +1,10 @@
import { import {
defineComponent,
reactive,
computed,
watch, watch,
unref,
computed,
reactive,
onMounted, onMounted,
unref defineComponent
} from "vue"; } from "vue";
import { countToProps } from "./props"; import { countToProps } from "./props";
import { isNumber } from "@pureadmin/utils"; import { isNumber } from "@pureadmin/utils";
@@ -61,7 +61,7 @@ export default defineComponent({
state.rAF = requestAnimationFrame(count); state.rAF = requestAnimationFrame(count);
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
function pauseResume() { function pauseResume() {
if (state.paused) { if (state.paused) {
resume(); resume();
@@ -83,7 +83,7 @@ export default defineComponent({
requestAnimationFrame(count); requestAnimationFrame(count);
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
function reset() { function reset() {
state.startTime = null; state.startTime = null;
cancelAnimationFrame(state.rAF); cancelAnimationFrame(state.rAF);

View File

@@ -1,5 +1,6 @@
import type { PropType } from "vue"; import type { PropType } from "vue";
import propTypes from "@/utils/propTypes"; import propTypes from "@/utils/propTypes";
export const countToProps = { export const countToProps = {
startVal: propTypes.number.def(0), startVal: propTypes.number.def(0),
endVal: propTypes.number.def(2020), endVal: propTypes.number.def(2020),

View File

@@ -1,9 +1,9 @@
import "./rebound.css"; import "./rebound.css";
import { import {
defineComponent,
ref, ref,
unref, unref,
onBeforeMount, onBeforeMount,
defineComponent,
onBeforeUnmount onBeforeUnmount
} from "vue"; } from "vue";
import { reboundProps } from "./props"; import { reboundProps } from "./props";

View File

@@ -1,5 +1,6 @@
import type { PropType } from "vue"; import type { PropType } from "vue";
import propTypes from "@/utils/propTypes"; import propTypes from "@/utils/propTypes";
export const reboundProps = { export const reboundProps = {
delay: propTypes.number.def(1), delay: propTypes.number.def(1),
blur: propTypes.number.def(2), blur: propTypes.number.def(2),

View File

@@ -6,10 +6,10 @@ import { useEventListener } from "@vueuse/core";
import { longpress } from "@/directives/longpress"; import { longpress } from "@/directives/longpress";
import { useTippy, directive as tippy } from "vue-tippy"; import { useTippy, directive as tippy } from "vue-tippy";
import { import {
type PropType,
ref, ref,
unref, unref,
computed, computed,
type PropType,
onMounted, onMounted,
onUnmounted, onUnmounted,
defineComponent defineComponent

View File

@@ -0,0 +1,7 @@
import reCropperPreview from "./src/index.vue";
import { withInstall } from "@pureadmin/utils";
/** 图片裁剪预览组件 */
export const ReCropperPreview = withInstall(reCropperPreview);
export default ReCropperPreview;

View File

@@ -3,6 +3,10 @@ import { ref } from "vue";
import ReCropper from "@/components/ReCropper"; import ReCropper from "@/components/ReCropper";
import { formatBytes } from "@pureadmin/utils"; import { formatBytes } from "@pureadmin/utils";
defineOptions({
name: "ReCropperPreview"
});
const props = defineProps({ const props = defineProps({
imgSrc: String imgSrc: String
}); });

View File

@@ -51,8 +51,8 @@ const closeAllDialog = () => {
/** 千万别忘了在下面这三处引入并注册下,放心注册,不使用`addDialog`调用就不会被挂载 /** 千万别忘了在下面这三处引入并注册下,放心注册,不使用`addDialog`调用就不会被挂载
* https://github.com/pure-admin/vue-pure-admin/blob/main/src/App.vue#L4 * https://github.com/pure-admin/vue-pure-admin/blob/main/src/App.vue#L4
* https://github.com/pure-admin/vue-pure-admin/blob/main/src/App.vue#L13 * https://github.com/pure-admin/vue-pure-admin/blob/main/src/App.vue#L12
* https://github.com/pure-admin/vue-pure-admin/blob/main/src/App.vue#L20 * https://github.com/pure-admin/vue-pure-admin/blob/main/src/App.vue#L22
*/ */
const ReDialog = withInstall(reDialog); const ReDialog = withInstall(reDialog);

View File

@@ -1,16 +1,20 @@
<script setup lang="ts"> <script setup lang="ts">
import { import {
closeDialog,
dialogStore,
type EventType, type EventType,
type ButtonProps, type ButtonProps,
type DialogOptions type DialogOptions,
closeDialog,
dialogStore
} from "./index"; } from "./index";
import { ref, computed } from "vue"; import { ref, computed } from "vue";
import { isFunction } from "@pureadmin/utils"; import { isFunction } from "@pureadmin/utils";
import Fullscreen from "@iconify-icons/ri/fullscreen-fill"; import Fullscreen from "@iconify-icons/ri/fullscreen-fill";
import ExitFullscreen from "@iconify-icons/ri/fullscreen-exit-fill"; import ExitFullscreen from "@iconify-icons/ri/fullscreen-exit-fill";
defineOptions({
name: "ReDialog"
});
const fullscreen = ref(false); const fullscreen = ref(false);
const footerButtons = computed(() => { const footerButtons = computed(() => {
@@ -37,6 +41,7 @@ const footerButtons = computed(() => {
type: "primary", type: "primary",
text: true, text: true,
bg: true, bg: true,
popconfirm: options?.popconfirm,
btnClick: ({ dialog: { options, index } }) => { btnClick: ({ dialog: { options, index } }) => {
const done = () => const done = () =>
closeDialog(options, index, { command: "sure" }); closeDialog(options, index, { command: "sure" });
@@ -149,9 +154,23 @@ function handleClose(
<component :is="options?.footerRenderer({ options, index })" /> <component :is="options?.footerRenderer({ options, index })" />
</template> </template>
<span v-else> <span v-else>
<template v-for="(btn, key) in footerButtons(options)" :key="key">
<el-popconfirm
v-if="btn.popconfirm"
v-bind="btn.popconfirm"
@confirm="
btn.btnClick({
dialog: { options, index },
button: { btn, index: key }
})
"
>
<template #reference>
<el-button v-bind="btn">{{ btn?.label }}</el-button>
</template>
</el-popconfirm>
<el-button <el-button
v-for="(btn, key) in footerButtons(options)" v-else
:key="key"
v-bind="btn" v-bind="btn"
@click=" @click="
btn.btnClick({ btn.btnClick({
@@ -162,6 +181,7 @@ function handleClose(
> >
{{ btn?.label }} {{ btn?.label }}
</el-button> </el-button>
</template>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>

View File

@@ -11,6 +11,13 @@ type ArgsType = {
/** `cancel` 点击取消按钮、`sure` 点击确定按钮、`close` 点击右上角关闭按钮或空白页或按下了esc键 */ /** `cancel` 点击取消按钮、`sure` 点击确定按钮、`close` 点击右上角关闭按钮或空白页或按下了esc键 */
command: "cancel" | "sure" | "close"; command: "cancel" | "sure" | "close";
}; };
type ButtonType =
| "primary"
| "success"
| "warning"
| "danger"
| "info"
| "text";
/** https://element-plus.org/zh-CN/component/dialog.html#attributes */ /** https://element-plus.org/zh-CN/component/dialog.html#attributes */
type DialogProps = { type DialogProps = {
@@ -58,6 +65,34 @@ type DialogProps = {
destroyOnClose?: boolean; destroyOnClose?: boolean;
}; };
//element-plus.org/zh-CN/component/popconfirm.html#attributes
type Popconfirm = {
/** 标题 */
title?: string;
/** 确认按钮文字 */
confirmButtonText?: string;
/** 取消按钮文字 */
cancelButtonText?: string;
/** 确认按钮类型,默认 `primary` */
confirmButtonType?: ButtonType;
/** 取消按钮类型,默认 `text` */
cancelButtonType?: ButtonType;
/** 自定义图标,默认 `QuestionFilled` */
icon?: string | Component;
/** `Icon` 颜色,默认 `#f90` */
iconColor?: string;
/** 是否隐藏 `Icon`,默认 `false` */
hideIcon?: boolean;
/** 关闭时的延迟,默认 `200` */
hideAfter?: number;
/** 是否将 `popover` 的下拉列表插入至 `body` 元素,默认 `true` */
teleported?: boolean;
/** 当 `popover` 组件长时间不触发且 `persistent` 属性设置为 `false` 时, `popover` 将会被删除,默认 `false` */
persistent?: boolean;
/** 弹层宽度,最小宽度 `150px`,默认 `150` */
width?: string | number;
};
type BtnClickDialog = { type BtnClickDialog = {
options?: DialogOptions; options?: DialogOptions;
index?: number; index?: number;
@@ -86,6 +121,8 @@ type ButtonProps = {
round?: boolean; round?: boolean;
/** 是否为圆形按钮,默认 `false` */ /** 是否为圆形按钮,默认 `false` */
circle?: boolean; circle?: boolean;
/** 确认按钮的 `Popconfirm` 气泡确认框相关配置 */
popconfirm?: Popconfirm;
/** 是否为加载中状态,默认 `false` */ /** 是否为加载中状态,默认 `false` */
loading?: boolean; loading?: boolean;
/** 自定义加载中状态图标组件 */ /** 自定义加载中状态图标组件 */
@@ -123,6 +160,8 @@ interface DialogOptions extends DialogProps {
props?: any; props?: any;
/** 是否隐藏 `Dialog` 按钮操作区的内容 */ /** 是否隐藏 `Dialog` 按钮操作区的内容 */
hideFooter?: boolean; hideFooter?: boolean;
/** 确认按钮的 `Popconfirm` 气泡确认框相关配置 */
popconfirm?: Popconfirm;
/** /**
* @description 自定义对话框标题的内容渲染器 * @description 自定义对话框标题的内容渲染器
* @see {@link https://element-plus.org/zh-CN/component/dialog.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%A4%B4%E9%83%A8} * @see {@link https://element-plus.org/zh-CN/component/dialog.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%A4%B4%E9%83%A8}

View File

@@ -1,5 +1,5 @@
import "./index.css"; import "./index.css";
import { h, defineComponent, type Component } from "vue"; import { type Component, h, defineComponent } from "vue";
export interface attrsType { export interface attrsType {
width?: string; width?: string;

View File

@@ -1,6 +1,6 @@
import { defineComponent, ref } from "vue";
import propTypes from "@/utils/propTypes";
import "./filpper.css"; import "./filpper.css";
import propTypes from "@/utils/propTypes";
import { defineComponent, ref } from "vue";
const props = { const props = {
// front paper text // front paper text

View File

@@ -1,6 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, unref, nextTick, onUnmounted } from "vue";
import flippers from "./filpper"; import flippers from "./filpper";
import { ref, unref, nextTick, onUnmounted } from "vue";
defineOptions({
name: "ReFlop"
});
const timer = ref(null); const timer = ref(null);
const flipObjs = ref([]); const flipObjs = ref([]);

View File

@@ -104,14 +104,12 @@ onMounted(() => {
class="dark:text-bg_color" class="dark:text-bg_color"
@mouseenter.prevent="onEnter(key)" @mouseenter.prevent="onEnter(key)"
@mouseleave.prevent="focusIndex = -1" @mouseleave.prevent="focusIndex = -1"
>
<el-tooltip
:content="item.text"
:visible="focusIndex === key"
placement="right"
> >
<button <button
:ref="'controlButton' + key" :ref="'controlButton' + key"
v-tippy="{
content: item.text
}"
:disabled="item.disabled" :disabled="item.disabled"
:style="{ :style="{
cursor: item.disabled === false ? 'pointer' : 'not-allowed', cursor: item.disabled === false ? 'pointer' : 'not-allowed',
@@ -125,7 +123,6 @@ onMounted(() => {
:style="{ fontSize: `${item.size}px` }" :style="{ fontSize: `${item.size}px` }"
/> />
</button> </button>
</el-tooltip>
</li> </li>
</ul> </ul>
</div> </div>

View File

@@ -31,6 +31,7 @@ import Links from "@iconify-icons/ri/links-fill";
import Search from "@iconify-icons/ri/search-line"; import Search from "@iconify-icons/ri/search-line";
import FlUser from "@iconify-icons/ri/admin-line"; import FlUser from "@iconify-icons/ri/admin-line";
import Setting from "@iconify-icons/ri/settings-3-line"; import Setting from "@iconify-icons/ri/settings-3-line";
import MindMap from "@iconify-icons/ri/mind-map";
import BarChart from "@iconify-icons/ri/bar-chart-horizontal-line"; import BarChart from "@iconify-icons/ri/bar-chart-horizontal-line";
import LoginLog from "@iconify-icons/ri/window-line"; import LoginLog from "@iconify-icons/ri/window-line";
import Artboard from "@iconify-icons/ri/artboard-line"; import Artboard from "@iconify-icons/ri/artboard-line";
@@ -54,6 +55,7 @@ addIcon("ri:table-line", Table);
addIcon("ri:search-line", Search); addIcon("ri:search-line", Search);
addIcon("ri:admin-line", FlUser); addIcon("ri:admin-line", FlUser);
addIcon("ri:settings-3-line", Setting); addIcon("ri:settings-3-line", Setting);
addIcon("ri:mind-map", MindMap);
addIcon("ri:bar-chart-horizontal-line", BarChart); addIcon("ri:bar-chart-horizontal-line", BarChart);
addIcon("ri:window-line", LoginLog); addIcon("ri:window-line", LoginLog);
addIcon("ri:file-search-line", SystemLog); addIcon("ri:file-search-line", SystemLog);

View File

@@ -1,5 +1,15 @@
import Sortable from "sortablejs";
import { transformI18n } from "@/plugins/i18n";
import { useEpThemeStoreHook } from "@/store/modules/epTheme"; import { useEpThemeStoreHook } from "@/store/modules/epTheme";
import { defineComponent, ref, computed, type PropType, nextTick } from "vue"; import {
type PropType,
ref,
unref,
computed,
nextTick,
defineComponent,
getCurrentInstance
} from "vue";
import { import {
delay, delay,
cloneDeep, cloneDeep,
@@ -8,7 +18,6 @@ import {
getKeyList getKeyList
} from "@pureadmin/utils"; } from "@pureadmin/utils";
import Sortable from "sortablejs";
import DragIcon from "./svg/drag.svg?component"; import DragIcon from "./svg/drag.svg?component";
import ExpandIcon from "./svg/expand.svg?component"; import ExpandIcon from "./svg/expand.svg?component";
import RefreshIcon from "./svg/refresh.svg?component"; import RefreshIcon from "./svg/refresh.svg?component";
@@ -33,6 +42,10 @@ const props = {
isExpandAll: { isExpandAll: {
type: Boolean, type: Boolean,
default: true default: true
},
tableKey: {
type: [String, Number] as PropType<string | number>,
default: "0"
} }
}; };
@@ -45,6 +58,7 @@ export default defineComponent({
const loading = ref(false); const loading = ref(false);
const checkAll = ref(true); const checkAll = ref(true);
const isIndeterminate = ref(false); const isIndeterminate = ref(false);
const instance = getCurrentInstance()!;
const isExpandAll = ref(props.isExpandAll); const isExpandAll = ref(props.isExpandAll);
const filterColumns = cloneDeep(props?.columns).filter(column => const filterColumns = cloneDeep(props?.columns).filter(column =>
isBoolean(column?.hide) isBoolean(column?.hide)
@@ -118,6 +132,7 @@ export default defineComponent({
} }
function handleCheckedColumnsChange(value: string[]) { function handleCheckedColumnsChange(value: string[]) {
checkedColumns.value = value;
const checkedCount = value.length; const checkedCount = value.length;
checkAll.value = checkedCount === checkColumnList.length; checkAll.value = checkedCount === checkColumnList.length;
isIndeterminate.value = isIndeterminate.value =
@@ -125,7 +140,9 @@ export default defineComponent({
} }
function handleCheckColumnListChange(val: boolean, label: string) { function handleCheckColumnListChange(val: boolean, label: string) {
dynamicColumns.value.filter(item => item.label === label)[0].hide = !val; dynamicColumns.value.filter(
item => transformI18n(item.label) === transformI18n(label)
)[0].hide = !val;
} }
async function onReset() { async function onReset() {
@@ -166,9 +183,9 @@ export default defineComponent({
const rowDrop = (event: { preventDefault: () => void }) => { const rowDrop = (event: { preventDefault: () => void }) => {
event.preventDefault(); event.preventDefault();
nextTick(() => { nextTick(() => {
const wrapper: HTMLElement = document.querySelector( const wrapper: HTMLElement = (
".el-checkbox-group>div" instance?.proxy?.$refs[`GroupRef${unref(props.tableKey)}`] as any
); ).$el.firstElementChild;
Sortable.create(wrapper, { Sortable.create(wrapper, {
animation: 300, animation: 300,
handle: ".drag-btn", handle: ".drag-btn",
@@ -198,7 +215,9 @@ export default defineComponent({
}; };
const isFixedColumn = (label: string) => { const isFixedColumn = (label: string) => {
return dynamicColumns.value.filter(item => item.label === label)[0].fixed return dynamicColumns.value.filter(
item => transformI18n(item.label) === transformI18n(label)
)[0].fixed
? true ? true
: false; : false;
}; };
@@ -293,7 +312,8 @@ export default defineComponent({
<div class="pt-[6px] pl-[11px]"> <div class="pt-[6px] pl-[11px]">
<el-scrollbar max-height="36vh"> <el-scrollbar max-height="36vh">
<el-checkbox-group <el-checkbox-group
v-model={checkedColumns.value} ref={`GroupRef${unref(props.tableKey)}`}
modelValue={checkedColumns.value}
onChange={value => handleCheckedColumnsChange(value)} onChange={value => handleCheckedColumnsChange(value)}
> >
<el-space <el-space
@@ -301,7 +321,7 @@ export default defineComponent({
alignment="flex-start" alignment="flex-start"
size={0} size={0}
> >
{checkColumnList.map(item => { {checkColumnList.map((item, index) => {
return ( return (
<div class="flex items-center"> <div class="flex items-center">
<DragIcon <DragIcon
@@ -316,17 +336,18 @@ export default defineComponent({
}) => rowDrop(event)} }) => rowDrop(event)}
/> />
<el-checkbox <el-checkbox
key={item} key={index}
label={item}
value={item} value={item}
onChange={value => onChange={value =>
handleCheckColumnListChange(value, item) handleCheckColumnListChange(value, item)
} }
> >
<span <span
title={item} title={transformI18n(item)}
class="inline-block w-[120px] truncate hover:text-text_color_primary" class="inline-block w-[120px] truncate hover:text-text_color_primary"
> >
{item} {transformI18n(item)}
</span> </span>
</el-checkbox> </el-checkbox>
</div> </div>

View File

@@ -1,10 +1,10 @@
import { import {
type PropType,
ref, ref,
unref, unref,
watch, watch,
nextTick, nextTick,
computed, computed,
type PropType,
defineComponent defineComponent
} from "vue"; } from "vue";
import "./index.scss"; import "./index.scss";

View File

@@ -1,6 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, ref, unref, nextTick } from "vue"; import {
import type { CSSProperties, PropType } from "vue"; type PropType,
type CSSProperties,
ref,
unref,
nextTick,
computed
} from "vue";
import { import {
tryOnMounted, tryOnMounted,
tryOnUnmounted, tryOnUnmounted,
@@ -301,7 +307,7 @@ function touchMove(e) {
function touchEnd() { function touchEnd() {
if (!unref(canTouchScroll)) return; if (!unref(canTouchScroll)) return;
// eslint-disable-next-line prefer-const
let timer: any; let timer: any;
const direction = unref(options).direction; const direction = unref(options).direction;
delay.value = 50; delay.value = 50;

View File

@@ -60,14 +60,12 @@ export function copyObj() {
copyIsArray, copyIsArray,
clone, clone,
i = 1, i = 1,
// eslint-disable-next-line prefer-rest-params
target = arguments[0] || {}, // 使用||运算符排除隐式强制类型转换为false的数据类型 target = arguments[0] || {}, // 使用||运算符排除隐式强制类型转换为false的数据类型
deep = false, deep = false,
// eslint-disable-next-line prefer-const
len = arguments.length; len = arguments.length;
if (typeof target === "boolean") { if (typeof target === "boolean") {
deep = target; deep = target;
// eslint-disable-next-line prefer-rest-params
target = arguments[1] || {}; target = arguments[1] || {};
i++; i++;
} }
@@ -80,7 +78,7 @@ export function copyObj() {
} }
for (; i < len; i++) { for (; i < len; i++) {
//所以如果源对象中数据类型为Undefined或Null那么就会跳过本次循环接着循环下一个源对象 //所以如果源对象中数据类型为Undefined或Null那么就会跳过本次循环接着循环下一个源对象
// eslint-disable-next-line prefer-rest-params
if ((options = arguments[i]) != null) { if ((options = arguments[i]) != null) {
// 如果遇到源对象的数据类型为Boolean, Number for in循环会被跳过不执行for in循环// src用于判断target对象是否存在name属性 // 如果遇到源对象的数据类型为Boolean, Number for in循环会被跳过不执行for in循环// src用于判断target对象是否存在name属性
for (name in options) { for (name in options) {

View File

@@ -1,11 +1,20 @@
.pure-segmented { .pure-segmented {
--pure-control-padding-horizontal: 12px;
--pure-control-padding-horizontal-sm: 8px;
--pure-segmented-track-padding: 2px;
--pure-segmented-line-width: 1px;
--pure-segmented-border-radius-small: 4px;
--pure-segmented-border-radius-base: 6px;
--pure-segmented-border-radius-large: 8px;
box-sizing: border-box; box-sizing: border-box;
display: inline-block; display: inline-block;
padding: 2px; padding: var(--pure-segmented-track-padding);
font-size: 14px; font-size: var(--el-font-size-base);
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
background-color: rgb(0 0 0 / 4%); background-color: rgb(0 0 0 / 4%);
border-radius: 2px; border-radius: var(--pure-segmented-border-radius-base);
} }
.pure-segmented-block { .pure-segmented-block {
@@ -23,6 +32,75 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
/* small */
.pure-segmented.pure-segmented--small {
border-radius: var(--pure-segmented-border-radius-small);
}
.pure-segmented.pure-segmented--small .pure-segmented-item {
border-radius: var(--el-border-radius-small);
}
.pure-segmented.pure-segmented--small .pure-segmented-item > div {
min-height: calc(
var(--el-component-size-small) - var(--pure-segmented-track-padding) * 2
);
line-height: calc(
var(--el-component-size-small) - var(--pure-segmented-track-padding) * 2
);
padding: 0
calc(
var(--pure-control-padding-horizontal-sm) -
var(--pure-segmented-line-width)
);
}
/* large */
.pure-segmented.pure-segmented--large {
border-radius: var(--pure-segmented-border-radius-large);
}
.pure-segmented.pure-segmented--large .pure-segmented-item {
border-radius: calc(
var(--el-border-radius-base) + var(--el-border-radius-small)
);
}
.pure-segmented.pure-segmented--large .pure-segmented-item > div {
min-height: calc(
var(--el-component-size-large) - var(--pure-segmented-track-padding) * 2
);
line-height: calc(
var(--el-component-size-large) - var(--pure-segmented-track-padding) * 2
);
padding: 0
calc(
var(--pure-control-padding-horizontal) - var(--pure-segmented-line-width)
);
font-size: var(--el-font-size-medium);
}
/* default */
.pure-segmented-item {
position: relative;
text-align: center;
cursor: pointer;
border-radius: var(--el-border-radius-base);
transition: all 0.1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.pure-segmented .pure-segmented-item > div {
min-height: calc(
var(--el-component-size) - var(--pure-segmented-track-padding) * 2
);
line-height: calc(
var(--el-component-size) - var(--pure-segmented-track-padding) * 2
);
padding: 0
calc(
var(--pure-control-padding-horizontal) - var(--pure-segmented-line-width)
);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
transition: 0.1s;
}
.pure-segmented-group { .pure-segmented-group {
position: relative; position: relative;
display: flex; display: flex;
@@ -52,23 +130,6 @@
will-change: transform, width; will-change: transform, width;
} }
.pure-segmented-item {
position: relative;
text-align: center;
cursor: pointer;
border-radius: 4px;
transition: all 0.1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.pure-segmented-item > div {
min-height: 28px;
line-height: 28px;
padding: 0 11px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.pure-segmented-item > input { .pure-segmented-item > input {
position: absolute; position: absolute;
inset-block-start: 0; inset-block-start: 0;

View File

@@ -1,5 +1,14 @@
import "./index.css"; import "./index.css";
import type { OptionsType } from "./type";
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
import { import {
useDark,
isNumber,
isFunction,
useResizeObserver
} from "@pureadmin/utils";
import {
type PropType,
h, h,
ref, ref,
toRef, toRef,
@@ -8,14 +17,6 @@ import {
defineComponent, defineComponent,
getCurrentInstance getCurrentInstance
} from "vue"; } from "vue";
import type { OptionsType } from "./type";
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
import {
isFunction,
isNumber,
useDark,
useResizeObserver
} from "@pureadmin/utils";
const props = { const props = {
options: { options: {
@@ -32,6 +33,20 @@ const props = {
block: { block: {
type: Boolean, type: Boolean,
default: false default: false
},
/** 控件尺寸 */
size: {
type: String as PropType<"small" | "default" | "large">
},
/** 是否全局禁用,默认 `false` */
disabled: {
type: Boolean,
default: false
},
/** 当内容发生变化时,设置 `resize` 可使其自适应容器位置 */
resize: {
type: Boolean,
default: false
} }
}; };
@@ -52,7 +67,7 @@ export default defineComponent({
: ref(0); : ref(0);
function handleChange({ option, index }, event: Event) { function handleChange({ option, index }, event: Event) {
if (option.disabled) return; if (props.disabled || option.disabled) return;
event.preventDefault(); event.preventDefault();
isNumber(props.modelValue) isNumber(props.modelValue)
? emit("update:modelValue", index) ? emit("update:modelValue", index)
@@ -62,6 +77,7 @@ export default defineComponent({
} }
function handleMouseenter({ option, index }, event: Event) { function handleMouseenter({ option, index }, event: Event) {
if (props.disabled) return;
event.preventDefault(); event.preventDefault();
curMouseActive.value = index; curMouseActive.value = index;
if (option.disabled || curIndex.value === index) { if (option.disabled || curIndex.value === index) {
@@ -74,6 +90,7 @@ export default defineComponent({
} }
function handleMouseleave(_, event: Event) { function handleMouseleave(_, event: Event) {
if (props.disabled) return;
event.preventDefault(); event.preventDefault();
curMouseActive.value = -1; curMouseActive.value = -1;
} }
@@ -81,13 +98,14 @@ export default defineComponent({
function handleInit(index = curIndex.value) { function handleInit(index = curIndex.value) {
nextTick(() => { nextTick(() => {
const curLabelRef = instance?.proxy?.$refs[`labelRef${index}`] as ElRef; const curLabelRef = instance?.proxy?.$refs[`labelRef${index}`] as ElRef;
if (!curLabelRef) return;
width.value = curLabelRef.clientWidth; width.value = curLabelRef.clientWidth;
translateX.value = curLabelRef.offsetLeft; translateX.value = curLabelRef.offsetLeft;
initStatus.value = true; initStatus.value = true;
}); });
} }
if (props.block) { function handleResizeInit() {
useResizeObserver(".pure-segmented", () => { useResizeObserver(".pure-segmented", () => {
nextTick(() => { nextTick(() => {
handleInit(curIndex.value); handleInit(curIndex.value);
@@ -95,6 +113,8 @@ export default defineComponent({
}); });
} }
(props.block || props.resize) && handleResizeInit();
watch( watch(
() => curIndex.value, () => curIndex.value,
index => { index => {
@@ -103,11 +123,12 @@ export default defineComponent({
}); });
}, },
{ {
deep: true,
immediate: true immediate: true
} }
); );
watch(() => props.size, handleResizeInit);
const rendLabel = () => { const rendLabel = () => {
return props.options.map((option, index) => { return props.options.map((option, index) => {
return ( return (
@@ -115,13 +136,15 @@ export default defineComponent({
ref={`labelRef${index}`} ref={`labelRef${index}`}
class={[ class={[
"pure-segmented-item", "pure-segmented-item",
option?.disabled && "pure-segmented-item-disabled" (props.disabled || option?.disabled) &&
"pure-segmented-item-disabled"
]} ]}
style={{ style={{
background: background:
curMouseActive.value === index ? segmentedItembg.value : "", curMouseActive.value === index ? segmentedItembg.value : "",
color: color: props.disabled
!option.disabled && ? null
: !option.disabled &&
(curIndex.value === index || curMouseActive.value === index) (curIndex.value === index || curMouseActive.value === index)
? isDark.value ? isDark.value
? "rgba(255, 255, 255, 0.85)" ? "rgba(255, 255, 255, 0.85)"
@@ -167,7 +190,12 @@ export default defineComponent({
return () => ( return () => (
<div <div
class={["pure-segmented", props.block ? "pure-segmented-block" : ""]} class={{
"pure-segmented": true,
"pure-segmented-block": props.block,
"pure-segmented--large": props.size === "large",
"pure-segmented--small": props.size === "small"
}}
> >
<div class="pure-segmented-group"> <div class="pure-segmented-group">
<div <div

View File

@@ -1,13 +1,13 @@
import "./index.css";
import { import {
defineComponent, unref,
computed, computed,
nextTick, nextTick,
onBeforeMount, onBeforeMount,
getCurrentInstance, defineComponent,
unref getCurrentInstance
} from "vue"; } from "vue";
import { addClass, removeClass, toggleClass } from "@pureadmin/utils"; import { addClass, removeClass, toggleClass } from "@pureadmin/utils";
import "./index.css";
const stayClass = "stay"; //鼠标点击 const stayClass = "stay"; //鼠标点击
const activeClass = "hs-on"; //鼠标移动上去 const activeClass = "hs-on"; //鼠标移动上去

View File

@@ -44,7 +44,6 @@
(t.style.width = 0), (t.style.width = 0),
(t.style.height = 0), (t.style.height = 0),
(t.style.overflow = "hidden"), (t.style.overflow = "hidden"),
// eslint-disable-next-line no-self-assign
(t = t), (t = t),
(e = document.body).firstChild ? m(t, e.firstChild) : e.appendChild(t)); (e = document.body).firstChild ? m(t, e.firstChild) : e.appendChild(t));
}), }),

View File

@@ -1,6 +1,6 @@
import { defineComponent, ref, unref, computed, type PropType } from "vue";
import resizer from "./resizer";
import "./index.css"; import "./index.css";
import resizer from "./resizer";
import { type PropType, defineComponent, ref, unref, computed } from "vue";
export interface ContextProps { export interface ContextProps {
minPercent: number; minPercent: number;

View File

@@ -1,5 +1,5 @@
import { computed, unref, defineComponent } from "vue";
import "./resizer.css"; import "./resizer.css";
import { computed, unref, defineComponent } from "vue";
export default defineComponent({ export default defineComponent({
name: "Resizer", name: "Resizer",

View File

@@ -1,6 +1,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { h, onMounted, ref, useSlots } from "vue"; import { h, onMounted, ref, useSlots } from "vue";
import { useTippy, type TippyOptions } from "vue-tippy"; import { type TippyOptions, useTippy } from "vue-tippy";
defineOptions({
name: "ReText"
});
const props = defineProps({ const props = defineProps({
// 行数 // 行数

View File

@@ -1,8 +1,7 @@
// 参考https://www.npmjs.com/package/element-tree-line (主要是替换需要通过函数传参的方式去注册组件并添加更好的类型支持并移除this.$scopedSlots在3.x中,将所有this.$scopedSlots替换为this.$slots) // 参考https://www.npmjs.com/package/element-tree-line (主要是替换需要通过函数传参的方式去注册组件并添加更好的类型支持并移除this.$scopedSlots在3.x中,将所有this.$scopedSlots替换为this.$slots)
import { isFunction } from "@pureadmin/utils";
import { h, defineComponent } from "vue";
import type { PropType } from "vue";
import "./index.scss"; import "./index.scss";
import { isFunction } from "@pureadmin/utils";
import { type PropType, h, defineComponent } from "vue";
import type { import type {
TreeNode, TreeNode,
TreeData, TreeData,

View File

@@ -1,6 +1,6 @@
import type { El } from "typeit/dist/types"; import type { El } from "typeit/dist/types";
import TypeIt, { type Options as TypeItOptions } from "typeit"; import TypeIt, { type Options as TypeItOptions } from "typeit";
import { ref, defineComponent, onMounted, type PropType } from "vue"; import { type PropType, ref, defineComponent, onMounted } from "vue";
// 打字机效果组件(配置项详情请查阅 https://www.typeitjs.com/docs/vanilla/usage#options // 打字机效果组件(配置项详情请查阅 https://www.typeitjs.com/docs/vanilla/usage#options
export default defineComponent({ export default defineComponent({

View File

@@ -1,5 +1,5 @@
import type { App } from "vue";
import axios from "axios"; import axios from "axios";
import type { App } from "vue";
let config: object = {}; let config: object = {};
const { VITE_PUBLIC_PATH } = import.meta.env; const { VITE_PUBLIC_PATH } = import.meta.env;
@@ -35,7 +35,7 @@ export const getPlatformConfig = async (app: App): Promise<undefined> => {
}) })
.then(({ data: config }) => { .then(({ data: config }) => {
let $config = app.config.globalProperties.$config; let $config = app.config.globalProperties.$config;
// 自动注入项目配置 // 自动注入系统配置
if (app && $config && typeof config === "object") { if (app && $config && typeof config === "object") {
$config = Object.assign($config, config); $config = Object.assign($config, config);
app.config.globalProperties.$config = $config; app.config.globalProperties.$config = $config;

View File

@@ -1,9 +1,9 @@
import { import {
isFunction,
isObject,
isArray, isArray,
throttle,
debounce, debounce,
throttle isObject,
isFunction
} from "@pureadmin/utils"; } from "@pureadmin/utils";
import { useEventListener } from "@vueuse/core"; import { useEventListener } from "@vueuse/core";
import type { Directive, DirectiveBinding } from "vue"; import type { Directive, DirectiveBinding } from "vue";

View File

@@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { useI18n } from "vue-i18n";
import Footer from "./footer/index.vue"; import Footer from "./footer/index.vue";
import { useGlobal, isNumber } from "@pureadmin/utils"; import { useGlobal, isNumber } from "@pureadmin/utils";
import KeepAliveFrame from "./keepAliveFrame/index.vue"; import KeepAliveFrame from "./keepAliveFrame/index.vue";
@@ -10,6 +11,7 @@ const props = defineProps({
fixedHeader: Boolean fixedHeader: Boolean
}); });
const { t } = useI18n();
const { $storage, $config } = useGlobal<GlobalPropertiesApi>(); const { $storage, $config } = useGlobal<GlobalPropertiesApi>();
const isKeepAlive = computed(() => { const isKeepAlive = computed(() => {
@@ -121,7 +123,7 @@ const transitionMain = defineComponent({
}" }"
> >
<el-backtop <el-backtop
title="回到顶部" :title="t('buttons.pureBackTop')"
target=".app-main .el-scrollbar__wrap" target=".app-main .el-scrollbar__wrap"
> >
<backTop /> <backTop />

View File

@@ -8,9 +8,11 @@ import Breadcrumb from "./sidebar/breadCrumb.vue";
import topCollapse from "./sidebar/topCollapse.vue"; import topCollapse from "./sidebar/topCollapse.vue";
import { useTranslationLang } from "../hooks/useTranslationLang"; import { useTranslationLang } from "../hooks/useTranslationLang";
import globalization from "@/assets/svg/globalization.svg?component"; import globalization from "@/assets/svg/globalization.svg?component";
import AccountSettingsIcon from "@iconify-icons/ri/user-settings-line";
import LogoutCircleRLine from "@iconify-icons/ri/logout-circle-r-line"; import LogoutCircleRLine from "@iconify-icons/ri/logout-circle-r-line";
import Setting from "@iconify-icons/ri/settings-3-line"; import Setting from "@iconify-icons/ri/settings-3-line";
import Check from "@iconify-icons/ep/check"; import Check from "@iconify-icons/ep/check";
const { const {
layout, layout,
device, device,
@@ -21,6 +23,7 @@ const {
userAvatar, userAvatar,
avatarsStyle, avatarsStyle,
toggleSideBar, toggleSideBar,
toAccountSettings,
getDropdownItemStyle, getDropdownItemStyle,
getDropdownItemClass getDropdownItemClass
} = useNav(); } = useNav();
@@ -91,19 +94,26 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
</span> </span>
<template #dropdown> <template #dropdown>
<el-dropdown-menu class="logout"> <el-dropdown-menu class="logout">
<el-dropdown-item @click="toAccountSettings">
<IconifyIconOffline
:icon="AccountSettingsIcon"
style="margin: 5px"
/>
{{ t("buttons.pureAccountSettings") }}
</el-dropdown-item>
<el-dropdown-item @click="logout"> <el-dropdown-item @click="logout">
<IconifyIconOffline <IconifyIconOffline
:icon="LogoutCircleRLine" :icon="LogoutCircleRLine"
style="margin: 5px" style="margin: 5px"
/> />
{{ t("buttons.hsLoginOut") }} {{ t("buttons.pureLoginOut") }}
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>
<span <span
class="set-icon navbar-bg-hover" class="set-icon navbar-bg-hover"
:title="t('buttons.hssystemSet')" :title="t('buttons.pureOpenSystemSet')"
@click="onPanel" @click="onPanel"
> >
<IconifyIconOffline :icon="Setting" /> <IconifyIconOffline :icon="Setting" />
@@ -177,7 +187,7 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
} }
.logout { .logout {
max-width: 120px; width: 120px;
::v-deep(.el-dropdown-menu__item) { ::v-deep(.el-dropdown-menu__item) {
display: inline-flex; display: inline-flex;

View File

@@ -1,9 +1,11 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from "vue"; import { ref } from "vue";
import { useI18n } from "vue-i18n";
import { noticesData } from "./data"; import { noticesData } from "./data";
import NoticeList from "./noticeList.vue"; import NoticeList from "./noticeList.vue";
import Bell from "@iconify-icons/ep/bell"; import Bell from "@iconify-icons/ep/bell";
const { t } = useI18n();
const noticesNum = ref(0); const noticesNum = ref(0);
const notices = ref(noticesData); const notices = ref(noticesData);
const activeKey = ref(noticesData[0].key); const activeKey = ref(noticesData[0].key);
@@ -30,7 +32,7 @@ notices.value.map(v => (noticesNum.value += v.list.length));
> >
<el-empty <el-empty
v-if="notices.length === 0" v-if="notices.length === 0"
description="暂无消息" :description="t('status.pureNoMessage')"
:image-size="60" :image-size="60"
/> />
<span v-else> <span v-else>

View File

@@ -1,6 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { PropType } from "vue"; import { PropType } from "vue";
import { ListItem } from "./data"; import { ListItem } from "./data";
import { useI18n } from "vue-i18n";
import NoticeItem from "./noticeItem.vue"; import NoticeItem from "./noticeItem.vue";
const props = defineProps({ const props = defineProps({
@@ -9,6 +10,8 @@ const props = defineProps({
default: () => [] default: () => []
} }
}); });
const { t } = useI18n();
</script> </script>
<template> <template>
@@ -19,5 +22,5 @@ const props = defineProps({
:noticeItem="item" :noticeItem="item"
/> />
</div> </div>
<el-empty v-else description="暂无消息" /> <el-empty v-else :description="t('status.pureNoMessage')" />
</template> </template>

View File

@@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { useI18n } from "vue-i18n";
import { emitter } from "@/utils/mitt"; import { emitter } from "@/utils/mitt";
import { onClickOutside } from "@vueuse/core"; import { onClickOutside } from "@vueuse/core";
import { ref, computed, onMounted, onBeforeUnmount } from "vue"; import { ref, computed, onMounted, onBeforeUnmount } from "vue";
@@ -25,6 +26,7 @@ const iconClass = computed(() => {
]; ];
}); });
const { t } = useI18n();
const { onReset } = useDataThemeChange(); const { onReset } = useDataThemeChange();
onClickOutside(target, (event: any) => { onClickOutside(target, (event: any) => {
@@ -51,10 +53,12 @@ onBeforeUnmount(() => {
<div <div
class="project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]" class="project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"
> >
<h4 class="dark:text-white">项目配置</h4> <h4 class="dark:text-white">
{{ t("panel.pureSystemSet") }}
</h4>
<span <span
v-tippy="{ v-tippy="{
content: '关闭配置', content: t('panel.pureCloseSystemSet'),
placement: 'bottom-start', placement: 'bottom-start',
zIndex: 41000 zIndex: 41000
}" }"
@@ -78,7 +82,7 @@ onBeforeUnmount(() => {
> >
<el-button <el-button
v-tippy="{ v-tippy="{
content: '清空缓存并返回登录页', content: t('panel.pureClearCacheAndToLogin'),
placement: 'left-start', placement: 'left-start',
zIndex: 41000 zIndex: 41000
}" }"
@@ -87,7 +91,7 @@ onBeforeUnmount(() => {
bg bg
@click="onReset" @click="onReset"
> >
清空缓存 {{ t("panel.pureClearCache") }}
</el-button> </el-button>
</div> </div>
</div> </div>

View File

@@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { useI18n } from "vue-i18n";
import { useNav } from "@/layout/hooks/useNav"; import { useNav } from "@/layout/hooks/useNav";
import mdiKeyboardEsc from "@/assets/svg/keyboard_esc.svg?component"; import mdiKeyboardEsc from "@/assets/svg/keyboard_esc.svg?component";
import enterOutlined from "@/assets/svg/enter_outlined.svg?component"; import enterOutlined from "@/assets/svg/enter_outlined.svg?component";
@@ -9,6 +10,7 @@ const props = withDefaults(defineProps<{ total: number }>(), {
total: 0 total: 0
}); });
const { t } = useI18n();
const { device } = useNav(); const { device } = useNav();
</script> </script>
@@ -16,22 +18,22 @@ const { device } = useNav();
<div class="search-footer text-[#333] dark:text-white"> <div class="search-footer text-[#333] dark:text-white">
<span class="search-footer-item"> <span class="search-footer-item">
<enterOutlined class="icon" /> <enterOutlined class="icon" />
确认 {{ t("buttons.pureConfirm") }}
</span> </span>
<span class="search-footer-item"> <span class="search-footer-item">
<IconifyIconOffline :icon="ArrowUpLine" class="icon" /> <IconifyIconOffline :icon="ArrowUpLine" class="icon" />
<IconifyIconOffline :icon="ArrowDownLine" class="icon" /> <IconifyIconOffline :icon="ArrowDownLine" class="icon" />
切换 {{ t("buttons.pureSwitch") }}
</span> </span>
<span class="search-footer-item"> <span class="search-footer-item">
<mdiKeyboardEsc class="icon" /> <mdiKeyboardEsc class="icon" />
关闭 {{ t("buttons.pureClose") }}
</span> </span>
<p <p
v-if="device !== 'mobile' && props.total > 0" v-if="device !== 'mobile' && props.total > 0"
class="search-footer-total" class="search-footer-total"
> >
{{ props.total }} {{ `${t("search.pureTotal")} ${props.total}` }}
</p> </p>
</div> </div>
</template> </template>

View File

@@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import Sortable from "sortablejs"; import Sortable from "sortablejs";
import { useI18n } from "vue-i18n";
import SearchHistoryItem from "./SearchHistoryItem.vue"; import SearchHistoryItem from "./SearchHistoryItem.vue";
import type { optionsItem, dragItem, Props } from "../types"; import type { optionsItem, dragItem, Props } from "../types";
import { useEpThemeStoreHook } from "@/store/modules/epTheme"; import { useEpThemeStoreHook } from "@/store/modules/epTheme";
@@ -19,6 +20,7 @@ const innerHeight = ref();
/** 判断是否停止鼠标移入事件处理 */ /** 判断是否停止鼠标移入事件处理 */
const stopMouseEvent = ref(false); const stopMouseEvent = ref(false);
const { t } = useI18n();
const emit = defineEmits<Emits>(); const emit = defineEmits<Emits>();
const instance = getCurrentInstance()!; const instance = getCurrentInstance()!;
const props = withDefaults(defineProps<Props>(), {}); const props = withDefaults(defineProps<Props>(), {});
@@ -141,7 +143,9 @@ defineExpose({ handleScroll });
<template> <template>
<div ref="historyRef" class="history"> <div ref="historyRef" class="history">
<template v-if="historyList.length"> <template v-if="historyList.length">
<div :style="titleStyle">搜索历史</div> <div :style="titleStyle">
{{ t("search.pureHistory") }}
</div>
<div <div
v-for="(item, index) in historyList" v-for="(item, index) in historyList"
:key="item.path" :key="item.path"
@@ -160,7 +164,9 @@ defineExpose({ handleScroll });
</template> </template>
<template v-if="collectList.length"> <template v-if="collectList.length">
<div :style="titleStyle"> <div :style="titleStyle">
收藏{{ collectList.length > 1 ? "(可拖拽排序)" : "" }} {{
`${t("search.pureCollect")}${collectList.length > 1 ? t("search.pureDragSort") : ""}`
}}
</div> </div>
<div class="collect-container"> <div class="collect-container">
<div <div

View File

@@ -6,8 +6,8 @@ import { useRouter } from "vue-router";
import SearchResult from "./SearchResult.vue"; import SearchResult from "./SearchResult.vue";
import SearchFooter from "./SearchFooter.vue"; import SearchFooter from "./SearchFooter.vue";
import { useNav } from "@/layout/hooks/useNav"; import { useNav } from "@/layout/hooks/useNav";
import { transformI18n } from "@/plugins/i18n";
import SearchHistory from "./SearchHistory.vue"; import SearchHistory from "./SearchHistory.vue";
import { transformI18n, $t } from "@/plugins/i18n";
import type { optionsItem, dragItem } from "../types"; import type { optionsItem, dragItem } from "../types";
import { ref, computed, shallowRef, watch } from "vue"; import { ref, computed, shallowRef, watch } from "vue";
import { useDebounceFn, onKeyStroke } from "@vueuse/core"; import { useDebounceFn, onKeyStroke } from "@vueuse/core";
@@ -29,7 +29,7 @@ const emit = defineEmits<Emits>();
const props = withDefaults(defineProps<Props>(), {}); const props = withDefaults(defineProps<Props>(), {});
const router = useRouter(); const router = useRouter();
const { locale } = useI18n(); const { t, locale } = useI18n();
const HISTORY_TYPE = "history"; const HISTORY_TYPE = "history";
const COLLECT_TYPE = "collect"; const COLLECT_TYPE = "collect";
@@ -293,7 +293,7 @@ onKeyStroke("ArrowDown", handleDown);
v-model="keyword" v-model="keyword"
size="large" size="large"
clearable clearable
placeholder="搜索菜单(中文模式下支持拼音搜索)" :placeholder="t('search.purePlaceholder')"
@input="handleSearch" @input="handleSearch"
> >
<template #prefix> <template #prefix>
@@ -305,7 +305,7 @@ onKeyStroke("ArrowDown", handleDown);
</el-input> </el-input>
<div class="search-content"> <div class="search-content">
<el-scrollbar ref="scrollbarRef" max-height="calc(90vh - 140px)"> <el-scrollbar ref="scrollbarRef" max-height="calc(90vh - 140px)">
<el-empty v-if="showEmpty" description="暂无搜索结果" /> <el-empty v-if="showEmpty" :description="t('search.pureEmpty')" />
<SearchHistory <SearchHistory
v-if="showSearchHistory" v-if="showSearchHistory"
ref="historyRef" ref="historyRef"

View File

@@ -9,6 +9,7 @@ import {
onUnmounted, onUnmounted,
onBeforeMount onBeforeMount
} from "vue"; } from "vue";
import { useI18n } from "vue-i18n";
import panel from "../panel/index.vue"; import panel from "../panel/index.vue";
import { emitter } from "@/utils/mitt"; import { emitter } from "@/utils/mitt";
import { useNav } from "@/layout/hooks/useNav"; import { useNav } from "@/layout/hooks/useNav";
@@ -26,6 +27,7 @@ import dayIcon from "@/assets/svg/day.svg?component";
import darkIcon from "@/assets/svg/dark.svg?component"; import darkIcon from "@/assets/svg/dark.svg?component";
import systemIcon from "@/assets/svg/system.svg?component"; import systemIcon from "@/assets/svg/system.svg?component";
const { t } = useI18n();
const { device } = useNav(); const { device } = useNav();
const { isDark } = useDark(); const { isDark } = useDark();
const { $storage } = useGlobal<GlobalPropertiesApi>(); const { $storage } = useGlobal<GlobalPropertiesApi>();
@@ -145,18 +147,20 @@ function setFalse(Doms): any {
} }
/** 页宽 */ /** 页宽 */
const stretchTypeOptions: Array<OptionsType> = [ const stretchTypeOptions = computed<Array<OptionsType>>(() => {
return [
{ {
label: "固定", label: t("panel.pureStretchFixed"),
tip: "紧凑页面,轻松找到所需信息", tip: t("panel.pureStretchFixedTip"),
value: "fixed" value: "fixed"
}, },
{ {
label: "自定义", label: t("panel.pureStretchCustom"),
tip: "最小1280、最大1600", tip: t("panel.pureStretchCustomTip"),
value: "custom" value: "custom"
} }
]; ];
});
const setStretch = value => { const setStretch = value => {
settings.stretch = value; settings.stretch = value;
@@ -194,41 +198,43 @@ const pClass = computed(() => {
const themeOptions = computed<Array<OptionsType>>(() => { const themeOptions = computed<Array<OptionsType>>(() => {
return [ return [
{ {
label: "浅色", label: t("panel.pureOverallStyleLight"),
icon: dayIcon, icon: dayIcon,
theme: "light", theme: "light",
tip: "清新启航,点亮舒适的工作界面", tip: t("panel.pureOverallStyleLightTip"),
iconAttrs: { fill: isDark.value ? "#fff" : "#000" } iconAttrs: { fill: isDark.value ? "#fff" : "#000" }
}, },
{ {
label: "深色", label: t("panel.pureOverallStyleDark"),
icon: darkIcon, icon: darkIcon,
theme: "dark", theme: "dark",
tip: "月光序曲,沉醉于夜的静谧雅致", tip: t("panel.pureOverallStyleDarkTip"),
iconAttrs: { fill: isDark.value ? "#fff" : "#000" } iconAttrs: { fill: isDark.value ? "#fff" : "#000" }
}, },
{ {
label: "自动", label: t("panel.pureOverallStyleSystem"),
icon: systemIcon, icon: systemIcon,
theme: "system", theme: "system",
tip: "同步时光,界面随晨昏自然呼应", tip: t("panel.pureOverallStyleSystemTip"),
iconAttrs: { fill: isDark.value ? "#fff" : "#000" } iconAttrs: { fill: isDark.value ? "#fff" : "#000" }
} }
]; ];
}); });
const markOptions: Array<OptionsType> = [ const markOptions = computed<Array<OptionsType>>(() => {
return [
{ {
label: "灵动", label: t("panel.pureTagsStyleSmart"),
tip: "灵动标签,添趣生辉", tip: t("panel.pureTagsStyleSmartTip"),
value: "smart" value: "smart"
}, },
{ {
label: "卡片", label: t("panel.pureTagsStyleCard"),
tip: "卡片标签,高效浏览", tip: t("panel.pureTagsStyleCardTip"),
value: "card" value: "card"
} }
]; ];
});
/** 设置导航模式 */ /** 设置导航模式 */
function setLayoutModel(layout: string) { function setLayoutModel(layout: string) {
@@ -291,7 +297,7 @@ function watchSystemThemeChange() {
} }
onBeforeMount(() => { onBeforeMount(() => {
/* 初始化项目配置 */ /* 初始化系统配置 */
nextTick(() => { nextTick(() => {
watchSystemThemeChange(); watchSystemThemeChange();
settings.greyVal && settings.greyVal &&
@@ -309,8 +315,9 @@ onUnmounted(() => removeMatchMedia);
<template> <template>
<panel> <panel>
<div class="p-5"> <div class="p-5">
<p :class="pClass">整体风格</p> <p :class="pClass">{{ t("panel.pureOverallStyle") }}</p>
<Segmented <Segmented
resize
class="select-none" class="select-none"
:modelValue="overallStyle === 'system' ? 2 : dataTheme ? 1 : 0" :modelValue="overallStyle === 'system' ? 2 : dataTheme ? 1 : 0"
:options="themeOptions" :options="themeOptions"
@@ -326,7 +333,7 @@ onUnmounted(() => removeMatchMedia);
" "
/> />
<p :class="['mt-5', pClass]">主题色</p> <p :class="['mt-5', pClass]">{{ t("panel.pureThemeColor") }}</p>
<ul class="theme-color"> <ul class="theme-color">
<li <li
v-for="(item, index) in themeColors" v-for="(item, index) in themeColors"
@@ -345,12 +352,12 @@ onUnmounted(() => removeMatchMedia);
</li> </li>
</ul> </ul>
<p :class="['mt-5', pClass]">导航模式</p> <p :class="['mt-5', pClass]">{{ t("panel.pureLayoutModel") }}</p>
<ul class="pure-theme"> <ul class="pure-theme">
<li <li
ref="verticalRef" ref="verticalRef"
v-tippy="{ v-tippy="{
content: '左侧菜单,亲切熟悉', content: t('panel.pureVerticalTip'),
zIndex: 41000 zIndex: 41000
}" }"
:class="layoutTheme.layout === 'vertical' ? 'is-select' : ''" :class="layoutTheme.layout === 'vertical' ? 'is-select' : ''"
@@ -363,7 +370,7 @@ onUnmounted(() => removeMatchMedia);
v-if="device !== 'mobile'" v-if="device !== 'mobile'"
ref="horizontalRef" ref="horizontalRef"
v-tippy="{ v-tippy="{
content: '顶部菜单,简洁概览', content: t('panel.pureHorizontalTip'),
zIndex: 41000 zIndex: 41000
}" }"
:class="layoutTheme.layout === 'horizontal' ? 'is-select' : ''" :class="layoutTheme.layout === 'horizontal' ? 'is-select' : ''"
@@ -376,7 +383,7 @@ onUnmounted(() => removeMatchMedia);
v-if="device !== 'mobile'" v-if="device !== 'mobile'"
ref="mixRef" ref="mixRef"
v-tippy="{ v-tippy="{
content: '混合菜单,灵活多变', content: t('panel.pureMixTip'),
zIndex: 41000 zIndex: 41000
}" }"
:class="layoutTheme.layout === 'mix' ? 'is-select' : ''" :class="layoutTheme.layout === 'mix' ? 'is-select' : ''"
@@ -387,9 +394,10 @@ onUnmounted(() => removeMatchMedia);
</li> </li>
</ul> </ul>
<span v-if="device !== 'mobile'"> <span v-if="useAppStoreHook().getViewportWidth > 1280">
<p :class="['mt-5', pClass]">页宽</p> <p :class="['mt-5', pClass]">{{ t("panel.pureStretch") }}</p>
<Segmented <Segmented
resize
class="mb-2 select-none" class="mb-2 select-none"
:modelValue="isNumber(settings.stretch) ? 1 : 0" :modelValue="isNumber(settings.stretch) ? 1 : 0"
:options="stretchTypeOptions" :options="stretchTypeOptions"
@@ -406,7 +414,7 @@ onUnmounted(() => removeMatchMedia);
<button <button
v-else v-else
v-ripple="{ class: 'text-gray-300' }" v-ripple="{ class: 'text-gray-300' }"
class="bg-transparent flex-c w-full h-20 rounded-md border border-gray-100" class="bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]"
@click="setStretch(!settings.stretch)" @click="setStretch(!settings.stretch)"
> >
<div <div
@@ -430,53 +438,56 @@ onUnmounted(() => removeMatchMedia);
</button> </button>
</span> </span>
<p :class="['mt-4', pClass]">页签风格</p> <p :class="['mt-4', pClass]">{{ t("panel.pureTagsStyle") }}</p>
<Segmented <Segmented
resize
class="select-none" class="select-none"
:modelValue="markValue === 'smart' ? 0 : 1" :modelValue="markValue === 'smart' ? 0 : 1"
:options="markOptions" :options="markOptions"
@change="onChange" @change="onChange"
/> />
<p class="mt-5 font-medium text-sm dark:text-white">界面显示</p> <p class="mt-5 font-medium text-sm dark:text-white">
{{ t("panel.pureInterfaceDisplay") }}
</p>
<ul class="setting"> <ul class="setting">
<li> <li>
<span class="dark:text-white">灰色模式</span> <span class="dark:text-white">{{ t("panel.pureGreyModel") }}</span>
<el-switch <el-switch
v-model="settings.greyVal" v-model="settings.greyVal"
inline-prompt inline-prompt
active-text="" :active-text="t('buttons.pureOpenText')"
inactive-text="" :inactive-text="t('buttons.pureCloseText')"
@change="greyChange" @change="greyChange"
/> />
</li> </li>
<li> <li>
<span class="dark:text-white">色弱模式</span> <span class="dark:text-white">{{ t("panel.pureWeakModel") }}</span>
<el-switch <el-switch
v-model="settings.weakVal" v-model="settings.weakVal"
inline-prompt inline-prompt
active-text="" :active-text="t('buttons.pureOpenText')"
inactive-text="" :inactive-text="t('buttons.pureCloseText')"
@change="weekChange" @change="weekChange"
/> />
</li> </li>
<li> <li>
<span class="dark:text-white">隐藏标签页</span> <span class="dark:text-white">{{ t("panel.pureHiddenTags") }}</span>
<el-switch <el-switch
v-model="settings.tabsVal" v-model="settings.tabsVal"
inline-prompt inline-prompt
active-text="" :active-text="t('buttons.pureOpenText')"
inactive-text="" :inactive-text="t('buttons.pureCloseText')"
@change="tagsChange" @change="tagsChange"
/> />
</li> </li>
<li> <li>
<span class="dark:text-white">隐藏页脚</span> <span class="dark:text-white">{{ t("panel.pureHiddenFooter") }}</span>
<el-switch <el-switch
v-model="settings.hideFooter" v-model="settings.hideFooter"
inline-prompt inline-prompt
active-text="" :active-text="t('buttons.pureOpenText')"
inactive-text="" :inactive-text="t('buttons.pureCloseText')"
@change="hideFooterChange" @change="hideFooterChange"
/> />
</li> </li>
@@ -487,18 +498,20 @@ onUnmounted(() => removeMatchMedia);
inline-prompt inline-prompt
:active-value="true" :active-value="true"
:inactive-value="false" :inactive-value="false"
active-text="" :active-text="t('buttons.pureOpenText')"
inactive-text="" :inactive-text="t('buttons.pureCloseText')"
@change="logoChange" @change="logoChange"
/> />
</li> </li>
<li> <li>
<span class="dark:text-white">页签持久化</span> <span class="dark:text-white">
{{ t("panel.pureMultiTagsCache") }}
</span>
<el-switch <el-switch
v-model="settings.multiTagsCache" v-model="settings.multiTagsCache"
inline-prompt inline-prompt
active-text="" :active-text="t('buttons.pureOpenText')"
inactive-text="" :inactive-text="t('buttons.pureCloseText')"
@change="multiTagsCacheChange" @change="multiTagsCacheChange"
/> />
</li> </li>

View File

@@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed } from "vue"; import { computed } from "vue";
import { useI18n } from "vue-i18n";
import { useGlobal } from "@pureadmin/utils"; import { useGlobal } from "@pureadmin/utils";
import { useNav } from "@/layout/hooks/useNav"; import { useNav } from "@/layout/hooks/useNav";
@@ -13,6 +14,7 @@ const props = withDefaults(defineProps<Props>(), {
isActive: false isActive: false
}); });
const { t } = useI18n();
const { tooltipEffect } = useNav(); const { tooltipEffect } = useNav();
const iconClass = computed(() => { const iconClass = computed(() => {
@@ -34,7 +36,9 @@ const toggleClick = () => {
<template> <template>
<div <div
v-tippy="{ v-tippy="{
content: props.isActive ? '点击折叠' : '点击展开', content: props.isActive
? t('buttons.pureClickCollapse')
: t('buttons.pureClickExpand'),
theme: tooltipEffect, theme: tooltipEffect,
hideOnClick: 'toggle', hideOnClick: 'toggle',
placement: 'right' placement: 'right'

View File

@@ -9,6 +9,7 @@ import { useNav } from "@/layout/hooks/useNav";
import { useTranslationLang } from "../../hooks/useTranslationLang"; import { useTranslationLang } from "../../hooks/useTranslationLang";
import { usePermissionStoreHook } from "@/store/modules/permission"; import { usePermissionStoreHook } from "@/store/modules/permission";
import globalization from "@/assets/svg/globalization.svg?component"; import globalization from "@/assets/svg/globalization.svg?component";
import AccountSettingsIcon from "@iconify-icons/ri/user-settings-line";
import LogoutCircleRLine from "@iconify-icons/ri/logout-circle-r-line"; import LogoutCircleRLine from "@iconify-icons/ri/logout-circle-r-line";
import Setting from "@iconify-icons/ri/settings-3-line"; import Setting from "@iconify-icons/ri/settings-3-line";
import Check from "@iconify-icons/ep/check"; import Check from "@iconify-icons/ep/check";
@@ -26,6 +27,7 @@ const {
username, username,
userAvatar, userAvatar,
avatarsStyle, avatarsStyle,
toAccountSettings,
getDropdownItemStyle, getDropdownItemStyle,
getDropdownItemClass getDropdownItemClass
} = useNav(); } = useNav();
@@ -107,20 +109,27 @@ nextTick(() => {
<p v-if="username" class="dark:text-white">{{ username }}</p> <p v-if="username" class="dark:text-white">{{ username }}</p>
</span> </span>
<template #dropdown> <template #dropdown>
<el-dropdown-item @click="toAccountSettings">
<IconifyIconOffline
:icon="AccountSettingsIcon"
style="margin: 5px"
/>
{{ t("buttons.pureAccountSettings") }}
</el-dropdown-item>
<el-dropdown-menu class="logout"> <el-dropdown-menu class="logout">
<el-dropdown-item @click="logout"> <el-dropdown-item @click="logout">
<IconifyIconOffline <IconifyIconOffline
:icon="LogoutCircleRLine" :icon="LogoutCircleRLine"
style="margin: 5px" style="margin: 5px"
/> />
{{ t("buttons.hsLoginOut") }} {{ t("buttons.pureLoginOut") }}
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>
<span <span
class="set-icon navbar-bg-hover" class="set-icon navbar-bg-hover"
:title="t('buttons.hssystemSet')" :title="t('buttons.pureOpenSystemSet')"
@click="onPanel" @click="onPanel"
> >
<IconifyIconOffline :icon="Setting" /> <IconifyIconOffline :icon="Setting" />
@@ -151,7 +160,7 @@ nextTick(() => {
} }
.logout { .logout {
max-width: 120px; width: 120px;
::v-deep(.el-dropdown-menu__item) { ::v-deep(.el-dropdown-menu__item) {
display: inline-flex; display: inline-flex;

View File

@@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed } from "vue"; import { computed } from "vue";
import { useI18n } from "vue-i18n";
import { useGlobal } from "@pureadmin/utils"; import { useGlobal } from "@pureadmin/utils";
import { useNav } from "@/layout/hooks/useNav"; import { useNav } from "@/layout/hooks/useNav";
@@ -13,6 +14,7 @@ const props = withDefaults(defineProps<Props>(), {
isActive: false isActive: false
}); });
const { t } = useI18n();
const { tooltipEffect } = useNav(); const { tooltipEffect } = useNav();
const iconClass = computed(() => { const iconClass = computed(() => {
@@ -44,7 +46,9 @@ const toggleClick = () => {
<div class="left-collapse"> <div class="left-collapse">
<IconifyIconOffline <IconifyIconOffline
v-tippy="{ v-tippy="{
content: props.isActive ? '点击折叠' : '点击展开', content: props.isActive
? t('buttons.pureClickCollapse')
: t('buttons.pureClickExpand'),
theme: tooltipEffect, theme: tooltipEffect,
hideOnClick: 'toggle', hideOnClick: 'toggle',
placement: 'right' placement: 'right'

View File

@@ -12,6 +12,7 @@ import { getParentPaths, findRouteByPath } from "@/router/utils";
import { useTranslationLang } from "../../hooks/useTranslationLang"; import { useTranslationLang } from "../../hooks/useTranslationLang";
import { usePermissionStoreHook } from "@/store/modules/permission"; import { usePermissionStoreHook } from "@/store/modules/permission";
import globalization from "@/assets/svg/globalization.svg?component"; import globalization from "@/assets/svg/globalization.svg?component";
import AccountSettingsIcon from "@iconify-icons/ri/user-settings-line";
import LogoutCircleRLine from "@iconify-icons/ri/logout-circle-r-line"; import LogoutCircleRLine from "@iconify-icons/ri/logout-circle-r-line";
import Setting from "@iconify-icons/ri/settings-3-line"; import Setting from "@iconify-icons/ri/settings-3-line";
import Check from "@iconify-icons/ep/check"; import Check from "@iconify-icons/ep/check";
@@ -30,6 +31,7 @@ const {
userAvatar, userAvatar,
getDivStyle, getDivStyle,
avatarsStyle, avatarsStyle,
toAccountSettings,
getDropdownItemStyle, getDropdownItemStyle,
getDropdownItemClass getDropdownItemClass
} = useNav(); } = useNav();
@@ -140,20 +142,27 @@ watch(
<p v-if="username" class="dark:text-white">{{ username }}</p> <p v-if="username" class="dark:text-white">{{ username }}</p>
</span> </span>
<template #dropdown> <template #dropdown>
<el-dropdown-item @click="toAccountSettings">
<IconifyIconOffline
:icon="AccountSettingsIcon"
style="margin: 5px"
/>
{{ t("buttons.pureAccountSettings") }}
</el-dropdown-item>
<el-dropdown-menu class="logout"> <el-dropdown-menu class="logout">
<el-dropdown-item @click="logout"> <el-dropdown-item @click="logout">
<IconifyIconOffline <IconifyIconOffline
:icon="LogoutCircleRLine" :icon="LogoutCircleRLine"
style="margin: 5px" style="margin: 5px"
/> />
{{ t("buttons.hsLoginOut") }} {{ t("buttons.pureLoginOut") }}
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>
<span <span
class="set-icon navbar-bg-hover" class="set-icon navbar-bg-hover"
:title="t('buttons.hssystemSet')" :title="t('buttons.pureOpenSystemSet')"
@click="onPanel" @click="onPanel"
> >
<IconifyIconOffline :icon="Setting" /> <IconifyIconOffline :icon="Setting" />
@@ -184,7 +193,7 @@ watch(
} }
.logout { .logout {
max-width: 120px; width: 120px;
::v-deep(.el-dropdown-menu__item) { ::v-deep(.el-dropdown-menu__item) {
display: inline-flex; display: inline-flex;

View File

@@ -145,7 +145,7 @@ function resolvePath(routePath) {
props.item?.pathList?.length === 2) props.item?.pathList?.length === 2)
" "
truncated truncated
class="!px-4 !text-inherit" class="!w-full !px-4 !text-inherit"
> >
{{ transformI18n(onlyOneChild.meta.title) }} {{ transformI18n(onlyOneChild.meta.title) }}
</el-text> </el-text>
@@ -157,7 +157,7 @@ function resolvePath(routePath) {
offset: [0, -10], offset: [0, -10],
theme: tooltipEffect theme: tooltipEffect
}" }"
class="!text-inherit" class="!w-full !text-inherit"
> >
{{ transformI18n(onlyOneChild.meta.title) }} {{ transformI18n(onlyOneChild.meta.title) }}
</ReText> </ReText>
@@ -185,7 +185,9 @@ function resolvePath(routePath) {
</div> </div>
<ReText <ReText
v-if=" v-if="
!( layout === 'mix' && toRaw(props.item.meta.icon)
? !isCollapse || props.item?.pathList?.length !== 2
: !(
layout === 'vertical' && layout === 'vertical' &&
isCollapse && isCollapse &&
toRaw(props.item.meta.icon) && toRaw(props.item.meta.icon) &&
@@ -197,6 +199,7 @@ function resolvePath(routePath) {
theme: tooltipEffect theme: tooltipEffect
}" }"
:class="{ :class="{
'!w-full': true,
'!text-inherit': true, '!text-inherit': true,
'!px-4': '!px-4':
layout !== 'horizontal' && layout !== 'horizontal' &&

View File

@@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { useI18n } from "vue-i18n";
import MenuFold from "@iconify-icons/ri/menu-fold-fill"; import MenuFold from "@iconify-icons/ri/menu-fold-fill";
import MenuUnfold from "@iconify-icons/ri/menu-unfold-fill"; import MenuUnfold from "@iconify-icons/ri/menu-unfold-fill";
@@ -10,6 +11,8 @@ const props = withDefaults(defineProps<Props>(), {
isActive: false isActive: false
}); });
const { t } = useI18n();
const emit = defineEmits<{ const emit = defineEmits<{
(e: "toggleClick"): void; (e: "toggleClick"): void;
}>(); }>();
@@ -22,7 +25,11 @@ const toggleClick = () => {
<template> <template>
<div <div
class="px-3 mr-1 navbar-bg-hover" class="px-3 mr-1 navbar-bg-hover"
:title="props.isActive ? '点击折叠' : '点击展开'" :title="
props.isActive
? t('buttons.pureClickCollapse')
: t('buttons.pureClickExpand')
"
@click="toggleClick" @click="toggleClick"
> >
<IconifyIconOffline <IconifyIconOffline

View File

@@ -90,6 +90,10 @@
padding: 0 12px; padding: 0 12px;
} }
} }
.fixed-tag {
padding: 0 12px;
}
} }
} }

View File

@@ -8,6 +8,7 @@ import { onClickOutside } from "@vueuse/core";
import { handleAliveRoute, getTopMenu } from "@/router/utils"; import { handleAliveRoute, getTopMenu } from "@/router/utils";
import { useSettingStoreHook } from "@/store/modules/settings"; import { useSettingStoreHook } from "@/store/modules/settings";
import { useMultiTagsStoreHook } from "@/store/modules/multiTags"; import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
import { usePermissionStoreHook } from "@/store/modules/permission";
import { ref, watch, unref, toRaw, nextTick, onBeforeUnmount } from "vue"; import { ref, watch, unref, toRaw, nextTick, onBeforeUnmount } from "vue";
import { import {
delay, delay,
@@ -59,6 +60,10 @@ const contextmenuRef = ref();
const isShowArrow = ref(false); const isShowArrow = ref(false);
const topPath = getTopMenu()?.path; const topPath = getTopMenu()?.path;
const { VITE_HIDE_HOME } = import.meta.env; const { VITE_HIDE_HOME } = import.meta.env;
const fixedTags = [
...routerArrays,
...usePermissionStoreHook().flatteningRoutes.filter(v => v?.meta?.fixedTag)
];
const dynamicTagView = async () => { const dynamicTagView = async () => {
await nextTick(); await nextTick();
@@ -228,10 +233,13 @@ function deleteDynamicTag(obj: any, current: any, tag?: string) {
other?: boolean other?: boolean
): void => { ): void => {
if (other) { if (other) {
useMultiTagsStoreHook().handleTags("equal", [ useMultiTagsStoreHook().handleTags(
VITE_HIDE_HOME === "false" ? routerArrays[0] : toRaw(getTopMenu()), "equal",
[
VITE_HIDE_HOME === "false" ? fixedTags : toRaw(getTopMenu()),
obj obj
]); ].flat()
);
} else { } else {
useMultiTagsStoreHook().handleTags("splice", "", { useMultiTagsStoreHook().handleTags("splice", "", {
startIndex, startIndex,
@@ -244,7 +252,7 @@ function deleteDynamicTag(obj: any, current: any, tag?: string) {
if (tag === "other") { if (tag === "other") {
spliceRoute(1, 1, true); spliceRoute(1, 1, true);
} else if (tag === "left") { } else if (tag === "left") {
spliceRoute(1, valueIndex - 1); spliceRoute(fixedTags.length, valueIndex - 1, true);
} else if (tag === "right") { } else if (tag === "right") {
spliceRoute(valueIndex + 1, multiTags.value.length); spliceRoute(valueIndex + 1, multiTags.value.length);
} else { } else {
@@ -321,10 +329,11 @@ function onClickDrop(key, item, selectRoute?: RouteConfigs) {
case 5: case 5:
// 关闭全部标签页 // 关闭全部标签页
useMultiTagsStoreHook().handleTags("splice", "", { useMultiTagsStoreHook().handleTags("splice", "", {
startIndex: 1, startIndex: fixedTags.length,
length: multiTags.value.length length: multiTags.value.length
}); });
router.push(topPath); router.push(topPath);
// router.push(fixedTags[fixedTags.length - 1]?.path);
handleAliveRoute(route as ToRouteType); handleAliveRoute(route as ToRouteType);
break; break;
case 6: case 6:
@@ -333,10 +342,10 @@ function onClickDrop(key, item, selectRoute?: RouteConfigs) {
setTimeout(() => { setTimeout(() => {
if (pureSetting.hiddenSideBar) { if (pureSetting.hiddenSideBar) {
tagsViews[6].icon = ExitFullscreen; tagsViews[6].icon = ExitFullscreen;
tagsViews[6].text = $t("buttons.hscontentExitFullScreen"); tagsViews[6].text = $t("buttons.pureContentExitFullScreen");
} else { } else {
tagsViews[6].icon = Fullscreen; tagsViews[6].icon = Fullscreen;
tagsViews[6].text = $t("buttons.hscontentFullScreen"); tagsViews[6].text = $t("buttons.pureContentFullScreen");
} }
}, 100); }, 100);
break; break;
@@ -363,10 +372,14 @@ function showMenus(value: boolean) {
}); });
} }
function disabledMenus(value: boolean) { function disabledMenus(value: boolean, fixedTag = false) {
Array.of(1, 2, 3, 4, 5).forEach(v => { Array.of(1, 2, 3, 4, 5).forEach(v => {
tagsViews[v].disabled = value; tagsViews[v].disabled = value;
}); });
if (fixedTag) {
tagsViews[2].show = false;
tagsViews[2].disabled = true;
}
} }
/** 检查当前右键的菜单两边是否存在别的菜单,如果左侧的菜单是顶级菜单,则不显示关闭左侧标签页,如果右侧没有菜单,则不显示关闭右侧标签页 */ /** 检查当前右键的菜单两边是否存在别的菜单,如果左侧的菜单是顶级菜单,则不显示关闭左侧标签页,如果右侧没有菜单,则不显示关闭右侧标签页 */
@@ -383,6 +396,13 @@ function showMenuModel(
} else { } else {
currentIndex = allRoute.findIndex(v => isEqual(v.query, query)); currentIndex = allRoute.findIndex(v => isEqual(v.query, query));
} }
function fixedTagDisabled() {
if (allRoute[currentIndex]?.meta?.fixedTag) {
Array.of(1, 2, 3, 4, 5).forEach(v => {
tagsViews[v].disabled = true;
});
}
}
showMenus(true); showMenus(true);
@@ -401,6 +421,7 @@ function showMenuModel(
tagsViews[v].disabled = false; tagsViews[v].disabled = false;
}); });
tagsViews[2].disabled = true; tagsViews[2].disabled = true;
fixedTagDisabled();
} else if (currentIndex === 1 && routeLength === 2) { } else if (currentIndex === 1 && routeLength === 2) {
disabledMenus(false); disabledMenus(false);
// 左侧的菜单是顶级菜单,右侧不存在别的菜单 // 左侧的菜单是顶级菜单,右侧不存在别的菜单
@@ -408,6 +429,7 @@ function showMenuModel(
tagsViews[v].show = false; tagsViews[v].show = false;
tagsViews[v].disabled = true; tagsViews[v].disabled = true;
}); });
fixedTagDisabled();
} else if (routeLength - 1 === currentIndex && currentIndex !== 0) { } else if (routeLength - 1 === currentIndex && currentIndex !== 0) {
// 当前路由是所有路由中的最后一个 // 当前路由是所有路由中的最后一个
tagsViews[3].show = false; tagsViews[3].show = false;
@@ -415,29 +437,31 @@ function showMenuModel(
tagsViews[v].disabled = false; tagsViews[v].disabled = false;
}); });
tagsViews[3].disabled = true; tagsViews[3].disabled = true;
if (allRoute[currentIndex - 1]?.meta?.fixedTag) {
tagsViews[2].show = false;
tagsViews[2].disabled = true;
}
fixedTagDisabled();
} else if (currentIndex === 0 || currentPath === `/redirect${topPath}`) { } else if (currentIndex === 0 || currentPath === `/redirect${topPath}`) {
// 当前路由为顶级菜单 // 当前路由为顶级菜单
disabledMenus(true); disabledMenus(true);
} else { } else {
disabledMenus(false); disabledMenus(false, allRoute[currentIndex - 1]?.meta?.fixedTag);
fixedTagDisabled();
} }
} }
function openMenu(tag, e) { function openMenu(tag, e) {
closeMenu(); closeMenu();
if (tag.path === topPath) { if (tag.path === topPath || tag?.meta?.fixedTag) {
// 右键菜单为顶级菜单,只显示刷新 // 右键菜单为顶级菜单或拥有 fixedTag 属性,只显示刷新
showMenus(false); showMenus(false);
tagsViews[0].show = true; tagsViews[0].show = true;
} else if (route.path !== tag.path && route.name !== tag.name) { } else if (route.path !== tag.path && route.name !== tag.name) {
// 右键菜单不匹配当前路由,隐藏刷新 // 右键菜单不匹配当前路由,隐藏刷新
tagsViews[0].show = false; tagsViews[0].show = false;
showMenuModel(tag.path, tag.query); showMenuModel(tag.path, tag.query);
} else if ( } else if (multiTags.value.length === 2 && route.path !== tag.path) {
// eslint-disable-next-line no-dupe-else-if
multiTags.value.length === 2 &&
route.path !== tag.path
) {
showMenus(true); showMenus(true);
// 只有两个标签时不显示关闭其他标签页 // 只有两个标签时不显示关闭其他标签页
tagsViews[4].show = false; tagsViews[4].show = false;
@@ -485,7 +509,6 @@ function tagOnClick(item) {
} else { } else {
router.push({ path }); router.push({ path });
} }
// showMenuModel(item?.path, item?.query);
} }
onClickOutside(contextmenuRef, closeMenu, { onClickOutside(contextmenuRef, closeMenu, {
@@ -549,7 +572,11 @@ onBeforeUnmount(() => {
v-for="(item, index) in multiTags" v-for="(item, index) in multiTags"
:ref="'dynamic' + index" :ref="'dynamic' + index"
:key="index" :key="index"
:class="['scroll-item is-closable', linkIsActive(item)]" :class="[
'scroll-item is-closable',
linkIsActive(item),
!isAllEmpty(item?.meta?.fixedTag) && 'fixed-tag'
]"
@contextmenu.prevent="openMenu(item, $event)" @contextmenu.prevent="openMenu(item, $event)"
@mouseenter.prevent="onMouseenter(index)" @mouseenter.prevent="onMouseenter(index)"
@mouseleave.prevent="onMouseleave(index)" @mouseleave.prevent="onMouseleave(index)"
@@ -562,8 +589,10 @@ onBeforeUnmount(() => {
</span> </span>
<span <span
v-if=" v-if="
iconIsActive(item, index) || isAllEmpty(item?.meta?.fixedTag)
? iconIsActive(item, index) ||
(index === activeIndex && index !== 0) (index === activeIndex && index !== 0)
: false
" "
class="el-icon-close" class="el-icon-close"
@click.stop="deleteMenu(item)" @click.stop="deleteMenu(item)"

View File

@@ -71,7 +71,7 @@ onMounted(() => {
<div <div
v-loading="loading" v-loading="loading"
class="frame" class="frame"
:element-loading-text="t('status.hsLoad')" :element-loading-text="t('status.pureLoad')"
> >
<iframe ref="frameRef" :src="frameSrc" class="frame-iframe" /> <iframe ref="frameRef" :src="frameSrc" class="frame-iframe" />
</div> </div>

View File

@@ -2,22 +2,23 @@ import { storeToRefs } from "pinia";
import { getConfig } from "@/config"; import { getConfig } from "@/config";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { emitter } from "@/utils/mitt"; import { emitter } from "@/utils/mitt";
import userAvatar from "@/assets/user.jpg"; import Avatar from "@/assets/user.jpg";
import { getTopMenu } from "@/router/utils"; import { getTopMenu } from "@/router/utils";
import { useFullscreen } from "@vueuse/core"; import { useFullscreen } from "@vueuse/core";
import { useGlobal } from "@pureadmin/utils";
import type { routeMetaType } from "../types"; import type { routeMetaType } from "../types";
import { transformI18n } from "@/plugins/i18n"; import { transformI18n } from "@/plugins/i18n";
import { router, remainingPaths } from "@/router"; import { router, remainingPaths } from "@/router";
import { computed, type CSSProperties } from "vue"; import { computed, type CSSProperties } from "vue";
import { useAppStoreHook } from "@/store/modules/app"; import { useAppStoreHook } from "@/store/modules/app";
import { useUserStoreHook } from "@/store/modules/user"; import { useUserStoreHook } from "@/store/modules/user";
import { useGlobal, isAllEmpty } from "@pureadmin/utils";
import { useEpThemeStoreHook } from "@/store/modules/epTheme"; import { useEpThemeStoreHook } from "@/store/modules/epTheme";
import { usePermissionStoreHook } from "@/store/modules/permission"; import { usePermissionStoreHook } from "@/store/modules/permission";
import ExitFullscreen from "@iconify-icons/ri/fullscreen-exit-fill"; import ExitFullscreen from "@iconify-icons/ri/fullscreen-exit-fill";
import Fullscreen from "@iconify-icons/ri/fullscreen-fill"; import Fullscreen from "@iconify-icons/ri/fullscreen-fill";
const errorInfo = "当前路由配置不正确,请检查配置"; const errorInfo =
"The current routing configuration is incorrect, please check the configuration";
export function useNav() { export function useNav() {
const pureApp = useAppStoreHook(); const pureApp = useAppStoreHook();
@@ -37,9 +38,18 @@ export function useNav() {
}; };
}); });
/** 用户名 */ /** 头像(如果头像为空则使用 src/assets/user.jpg */
const userAvatar = computed(() => {
return isAllEmpty(useUserStoreHook()?.avatar)
? Avatar
: useUserStoreHook()?.avatar;
});
/** 昵称(如果昵称为空则显示用户名) */
const username = computed(() => { const username = computed(() => {
return useUserStoreHook()?.username; return isAllEmpty(useUserStoreHook()?.nickname)
? useUserStoreHook()?.username
: useUserStoreHook()?.nickname;
}); });
/** 设置国际化选中后的样式 */ /** 设置国际化选中后的样式 */
@@ -99,6 +109,10 @@ export function useNav() {
emitter.emit("openPanel"); emitter.emit("openPanel");
} }
function toAccountSettings() {
router.push({ name: "AccountSettings" });
}
function toggleSideBar() { function toggleSideBar() {
pureApp.toggleSideBar(); pureApp.toggleSideBar();
} }
@@ -159,6 +173,7 @@ export function useNav() {
userAvatar, userAvatar,
avatarsStyle, avatarsStyle,
tooltipEffect, tooltipEffect,
toAccountSettings,
getDropdownItemStyle, getDropdownItemStyle,
getDropdownItemClass getDropdownItemClass
}; };

View File

@@ -64,49 +64,49 @@ export function useTags() {
const tagsViews = reactive<Array<tagsViewsType>>([ const tagsViews = reactive<Array<tagsViewsType>>([
{ {
icon: RefreshRight, icon: RefreshRight,
text: $t("buttons.hsreload"), text: $t("buttons.pureReload"),
divided: false, divided: false,
disabled: false, disabled: false,
show: true show: true
}, },
{ {
icon: Close, icon: Close,
text: $t("buttons.hscloseCurrentTab"), text: $t("buttons.pureCloseCurrentTab"),
divided: false, divided: false,
disabled: multiTags.value.length > 1 ? false : true, disabled: multiTags.value.length > 1 ? false : true,
show: true show: true
}, },
{ {
icon: CloseLeftTags, icon: CloseLeftTags,
text: $t("buttons.hscloseLeftTabs"), text: $t("buttons.pureCloseLeftTabs"),
divided: true, divided: true,
disabled: multiTags.value.length > 1 ? false : true, disabled: multiTags.value.length > 1 ? false : true,
show: true show: true
}, },
{ {
icon: CloseRightTags, icon: CloseRightTags,
text: $t("buttons.hscloseRightTabs"), text: $t("buttons.pureCloseRightTabs"),
divided: false, divided: false,
disabled: multiTags.value.length > 1 ? false : true, disabled: multiTags.value.length > 1 ? false : true,
show: true show: true
}, },
{ {
icon: CloseOtherTags, icon: CloseOtherTags,
text: $t("buttons.hscloseOtherTabs"), text: $t("buttons.pureCloseOtherTabs"),
divided: true, divided: true,
disabled: multiTags.value.length > 2 ? false : true, disabled: multiTags.value.length > 2 ? false : true,
show: true show: true
}, },
{ {
icon: CloseAllTags, icon: CloseAllTags,
text: $t("buttons.hscloseAllTabs"), text: $t("buttons.pureCloseAllTabs"),
divided: false, divided: false,
disabled: multiTags.value.length > 1 ? false : true, disabled: multiTags.value.length > 1 ? false : true,
show: true show: true
}, },
{ {
icon: Fullscreen, icon: Fullscreen,
text: $t("buttons.hscontentFullScreen"), text: $t("buttons.pureContentFullScreen"),
divided: true, divided: true,
disabled: false, disabled: false,
show: true show: true

View File

@@ -3,6 +3,7 @@ import "animate.css";
// 引入 src/components/ReIcon/src/offlineIcon.ts 文件中所有使用addIcon添加过的本地图标 // 引入 src/components/ReIcon/src/offlineIcon.ts 文件中所有使用addIcon添加过的本地图标
import "@/components/ReIcon/src/offlineIcon"; import "@/components/ReIcon/src/offlineIcon";
import { setType } from "./types"; import { setType } from "./types";
import { useI18n } from "vue-i18n";
import { useLayout } from "./hooks/useLayout"; import { useLayout } from "./hooks/useLayout";
import { useAppStoreHook } from "@/store/modules/app"; import { useAppStoreHook } from "@/store/modules/app";
import { useSettingStoreHook } from "@/store/modules/settings"; import { useSettingStoreHook } from "@/store/modules/settings";
@@ -31,6 +32,7 @@ import Vertical from "./components/sidebar/vertical.vue";
import Horizontal from "./components/sidebar/horizontal.vue"; import Horizontal from "./components/sidebar/horizontal.vue";
import backTop from "@/assets/svg/back_top.svg?component"; import backTop from "@/assets/svg/back_top.svg?component";
const { t } = useI18n();
const appWrapperRef = ref(); const appWrapperRef = ref();
const { isDark } = useDark(); const { isDark } = useDark();
const { layout } = useLayout(); const { layout } = useLayout();
@@ -89,7 +91,8 @@ let isAutoCloseSidebar = true;
useResizeObserver(appWrapperRef, entries => { useResizeObserver(appWrapperRef, entries => {
if (isMobile) return; if (isMobile) return;
const entry = entries[0]; const entry = entries[0];
const [{ inlineSize: width }] = entry.borderBoxSize; const [{ inlineSize: width, blockSize: height }] = entry.borderBoxSize;
useAppStoreHook().setViewportSize({ width, height });
width <= 760 ? setTheme("vertical") : setTheme(useAppStoreHook().layout); width <= 760 ? setTheme("vertical") : setTheme(useAppStoreHook().layout);
/** width app-wrapper类容器宽度 /** width app-wrapper类容器宽度
* 0 < width <= 760 隐藏侧边栏 * 0 < width <= 760 隐藏侧边栏
@@ -184,7 +187,7 @@ const layoutHeader = defineComponent({
</div> </div>
<el-scrollbar v-else> <el-scrollbar v-else>
<el-backtop <el-backtop
title="回到顶部" :title="t('buttons.pureBackTop')"
target=".main-container .el-scrollbar__wrap" target=".main-container .el-scrollbar__wrap"
> >
<backTop /> <backTop />

View File

@@ -7,7 +7,7 @@ export const routerArrays: Array<RouteConfigs> =
{ {
path: "/welcome", path: "/welcome",
meta: { meta: {
title: "menus.hshome", title: "menus.pureHome",
icon: "ep:home-filled" icon: "ep:home-filled"
} }
} }

View File

@@ -10,6 +10,8 @@ import {
ElAutocomplete, ElAutocomplete,
ElAutoResizer, ElAutoResizer,
ElAvatar, ElAvatar,
ElAnchor,
ElAnchorLink,
ElBacktop, ElBacktop,
ElBadge, ElBadge,
ElBreadcrumb, ElBreadcrumb,
@@ -123,6 +125,8 @@ const components = [
ElAutocomplete, ElAutocomplete,
ElAutoResizer, ElAutoResizer,
ElAvatar, ElAvatar,
ElAnchor,
ElAnchorLink,
ElBacktop, ElBacktop,
ElBadge, ElBadge,
ElBreadcrumb, ElBreadcrumb,

View File

@@ -5,8 +5,8 @@ import { responsiveStorageNameSpace } from "@/config";
import { storageLocal, isObject } from "@pureadmin/utils"; import { storageLocal, isObject } from "@pureadmin/utils";
// element-plus国际化 // element-plus国际化
import enLocale from "element-plus/dist/locale/en.mjs"; import enLocale from "element-plus/es/locale/lang/en";
import zhLocale from "element-plus/dist/locale/zh-cn.mjs"; import zhLocale from "element-plus/es/locale/lang/zh-cn";
const siphonI18n = (function () { const siphonI18n = (function () {
// 仅初始化一次国际化配置 // 仅初始化一次国际化配置

View File

@@ -22,8 +22,9 @@ const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以
formdesign = 19, formdesign = 19,
board = 20, board = 20,
ppt = 21, ppt = 21,
guide = 22, mind = 22,
menuoverflow = 23; guide = 23,
menuoverflow = 24;
export { export {
home, home,
@@ -48,6 +49,7 @@ export {
formdesign, formdesign,
board, board,
ppt, ppt,
mind,
guide, guide,
menuoverflow menuoverflow
}; };

View File

@@ -6,17 +6,25 @@ export default {
redirect: "/able/watermark", redirect: "/able/watermark",
meta: { meta: {
icon: "ri:ubuntu-fill", icon: "ri:ubuntu-fill",
title: $t("menus.hsAble"), title: $t("menus.pureAble"),
rank: able rank: able
}, },
children: [ children: [
{
path: "/able/mqtt-client",
name: "MqttClient",
component: () => import("@/views/able/mqtt-client.vue"),
meta: {
title: $t("menus.pureMqtt"),
extraIcon: "IF-pure-iconfont-new svg"
}
},
{ {
path: "/able/verify", path: "/able/verify",
name: "Verify", name: "Verify",
component: () => import("@/views/able/verify.vue"), component: () => import("@/views/able/verify.vue"),
meta: { meta: {
title: $t("menus.hsVerify"), title: $t("menus.pureVerify")
extraIcon: "IF-pure-iconfont-new svg"
} }
}, },
{ {
@@ -24,7 +32,7 @@ export default {
name: "WaterMark", name: "WaterMark",
component: () => import("@/views/able/watermark.vue"), component: () => import("@/views/able/watermark.vue"),
meta: { meta: {
title: $t("menus.hsWatermark") title: $t("menus.pureWatermark")
} }
}, },
{ {
@@ -32,7 +40,7 @@ export default {
name: "Print", name: "Print",
component: () => import("@/views/able/print/index.vue"), component: () => import("@/views/able/print/index.vue"),
meta: { meta: {
title: $t("menus.hsPrint") title: $t("menus.purePrint")
} }
}, },
{ {
@@ -40,7 +48,7 @@ export default {
name: "Download", name: "Download",
component: () => import("@/views/able/download.vue"), component: () => import("@/views/able/download.vue"),
meta: { meta: {
title: $t("menus.hsDownload") title: $t("menus.pureDownload")
} }
}, },
{ {
@@ -48,7 +56,7 @@ export default {
name: "Excel", name: "Excel",
component: () => import("@/views/able/excel.vue"), component: () => import("@/views/able/excel.vue"),
meta: { meta: {
title: $t("menus.hsExcel") title: $t("menus.pureExcel")
} }
}, },
{ {
@@ -56,8 +64,7 @@ export default {
name: "Ripple", name: "Ripple",
component: () => import("@/views/able/ripple.vue"), component: () => import("@/views/able/ripple.vue"),
meta: { meta: {
title: $t("menus.hsRipple"), title: $t("menus.pureRipple")
extraIcon: "IF-pure-iconfont-new svg"
} }
}, },
{ {
@@ -65,7 +72,7 @@ export default {
name: "Debounce", name: "Debounce",
component: () => import("@/views/able/debounce.vue"), component: () => import("@/views/able/debounce.vue"),
meta: { meta: {
title: $t("menus.hsDebounce") title: $t("menus.pureDebounce")
} }
}, },
{ {
@@ -73,7 +80,7 @@ export default {
name: "Directives", name: "Directives",
component: () => import("@/views/able/directives.vue"), component: () => import("@/views/able/directives.vue"),
meta: { meta: {
title: $t("menus.hsOptimize") title: $t("menus.pureOptimize")
} }
}, },
{ {
@@ -81,19 +88,35 @@ export default {
name: "Draggable", name: "Draggable",
component: () => import("@/views/able/draggable.vue"), component: () => import("@/views/able/draggable.vue"),
meta: { meta: {
title: $t("menus.hsdraggable"), title: $t("menus.pureDraggable"),
transition: { transition: {
enterTransition: "animate__zoomIn", enterTransition: "animate__zoomIn",
leaveTransition: "animate__zoomOut" leaveTransition: "animate__zoomOut"
} }
} }
}, },
{
path: "/able/word",
name: "Word",
component: () => import("@/views/able/word.vue"),
meta: {
title: $t("menus.pureWord")
}
},
{
path: "/able/excels",
name: "Excels",
component: () => import("@/views/able/excels.vue"),
meta: {
title: $t("menus.pureExcels")
}
},
{ {
path: "/able/pdf", path: "/able/pdf",
name: "Pdf", name: "Pdf",
component: () => import("@/views/able/pdf.vue"), component: () => import("@/views/able/pdf.vue"),
meta: { meta: {
title: $t("menus.hsPdf") title: $t("menus.purePdf")
} }
}, },
{ {
@@ -101,7 +124,7 @@ export default {
name: "BarCode", name: "BarCode",
component: () => import("@/views/able/barcode.vue"), component: () => import("@/views/able/barcode.vue"),
meta: { meta: {
title: $t("menus.hsBarcode") title: $t("menus.pureBarcode")
} }
}, },
{ {
@@ -109,7 +132,7 @@ export default {
name: "QrCode", name: "QrCode",
component: () => import("@/views/able/qrcode.vue"), component: () => import("@/views/able/qrcode.vue"),
meta: { meta: {
title: $t("menus.hsQrcode") title: $t("menus.pureQrcode")
} }
}, },
{ {
@@ -117,7 +140,7 @@ export default {
name: "MapPage", name: "MapPage",
component: () => import("@/views/able/map.vue"), component: () => import("@/views/able/map.vue"),
meta: { meta: {
title: $t("menus.hsmap"), title: $t("menus.pureMap"),
keepAlive: true, keepAlive: true,
transition: { transition: {
name: "fade" name: "fade"
@@ -129,7 +152,7 @@ export default {
name: "Wavesurfer", name: "Wavesurfer",
component: () => import("@/views/able/wavesurfer/index.vue"), component: () => import("@/views/able/wavesurfer/index.vue"),
meta: { meta: {
title: $t("menus.hsWavesurfer") title: $t("menus.pureWavesurfer")
} }
}, },
{ {
@@ -137,7 +160,7 @@ export default {
name: "VideoPage", name: "VideoPage",
component: () => import("@/views/able/video.vue"), component: () => import("@/views/able/video.vue"),
meta: { meta: {
title: $t("menus.hsvideo") title: $t("menus.pureVideo")
} }
}, },
{ {
@@ -145,7 +168,7 @@ export default {
name: "VideoFrame", name: "VideoFrame",
component: () => import("@/views/able/video-frame/index.vue"), component: () => import("@/views/able/video-frame/index.vue"),
meta: { meta: {
title: $t("menus.hsVideoFrame") title: $t("menus.pureVideoFrame")
} }
}, },
{ {
@@ -153,7 +176,7 @@ export default {
name: "Danmaku", name: "Danmaku",
component: () => import("@/views/able/danmaku/index.vue"), component: () => import("@/views/able/danmaku/index.vue"),
meta: { meta: {
title: $t("menus.hsdanmaku") title: $t("menus.pureDanmaku")
} }
}, },
{ {
@@ -161,7 +184,7 @@ export default {
name: "InfiniteScroll", name: "InfiniteScroll",
component: () => import("@/views/able/infinite-scroll.vue"), component: () => import("@/views/able/infinite-scroll.vue"),
meta: { meta: {
title: $t("menus.hsInfiniteScroll") title: $t("menus.pureInfiniteScroll")
} }
}, },
{ {
@@ -169,7 +192,7 @@ export default {
name: "MenuTree", name: "MenuTree",
component: () => import("@/views/able/menu-tree.vue"), component: () => import("@/views/able/menu-tree.vue"),
meta: { meta: {
title: $t("menus.hsMenuTree") title: $t("menus.pureMenuTree")
} }
}, },
{ {
@@ -177,7 +200,7 @@ export default {
name: "LineTree", name: "LineTree",
component: () => import("@/views/able/line-tree.vue"), component: () => import("@/views/able/line-tree.vue"),
meta: { meta: {
title: $t("menus.hsLineTree") title: $t("menus.pureLineTree")
} }
}, },
{ {
@@ -185,7 +208,7 @@ export default {
name: "Typeit", name: "Typeit",
component: () => import("@/views/able/typeit.vue"), component: () => import("@/views/able/typeit.vue"),
meta: { meta: {
title: $t("menus.hstypeit") title: $t("menus.pureTypeit")
} }
}, },
{ {
@@ -193,7 +216,7 @@ export default {
name: "Sensitive", name: "Sensitive",
component: () => import("@/views/able/sensitive.vue"), component: () => import("@/views/able/sensitive.vue"),
meta: { meta: {
title: $t("menus.hsSensitive") title: $t("menus.pureSensitive")
} }
}, },
{ {
@@ -201,7 +224,7 @@ export default {
name: "Pinyin", name: "Pinyin",
component: () => import("@/views/able/pinyin.vue"), component: () => import("@/views/able/pinyin.vue"),
meta: { meta: {
title: $t("menus.hsPinyin") title: $t("menus.purePinyin")
} }
} }
] ]

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/about/index", redirect: "/about/index",
meta: { meta: {
icon: "ri:file-info-line", icon: "ri:file-info-line",
title: $t("menus.hsAbout"), title: $t("menus.pureAbout"),
rank: about rank: about
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "About", name: "About",
component: () => import("@/views/about/index.vue"), component: () => import("@/views/about/index.vue"),
meta: { meta: {
title: $t("menus.hsAbout") title: $t("menus.pureAbout")
} }
} }
] ]

View File

@@ -7,7 +7,7 @@ export default {
redirect: "/board/index", redirect: "/board/index",
meta: { meta: {
icon: "ri:artboard-line", icon: "ri:artboard-line",
title: $t("menus.hsboard"), title: $t("menus.pureBoard"),
rank: board rank: board
}, },
children: [ children: [
@@ -16,7 +16,8 @@ export default {
name: "FrameBoard", name: "FrameBoard",
component: IFrame, component: IFrame,
meta: { meta: {
title: $t("menus.hsboard"), title: $t("menus.pureBoard"),
keepAlive: true,
frameSrc: "https://songlh.top/paint-board/" frameSrc: "https://songlh.top/paint-board/"
} }
} }

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/components/dialog", redirect: "/components/dialog",
meta: { meta: {
icon: "ep:menu", icon: "ep:menu",
title: $t("menus.hscomponents"), title: $t("menus.pureComponents"),
rank: components rank: components
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "DialogPage", name: "DialogPage",
component: () => import("@/views/components/dialog/index.vue"), component: () => import("@/views/components/dialog/index.vue"),
meta: { meta: {
title: $t("menus.hsdialog") title: $t("menus.pureDialog")
} }
}, },
{ {
@@ -23,7 +23,7 @@ export default {
name: "Message", name: "Message",
component: () => import("@/views/components/message.vue"), component: () => import("@/views/components/message.vue"),
meta: { meta: {
title: $t("menus.hsmessage") title: $t("menus.pureMessage")
} }
}, },
{ {
@@ -31,7 +31,7 @@ export default {
name: "PureUpload", name: "PureUpload",
component: () => import("@/views/components/upload/index.vue"), component: () => import("@/views/components/upload/index.vue"),
meta: { meta: {
title: $t("menus.hsUpload") title: $t("menus.pureUpload")
} }
}, },
{ {
@@ -39,7 +39,7 @@ export default {
name: "CheckCard", name: "CheckCard",
component: () => import("@/views/components/check-card.vue"), component: () => import("@/views/components/check-card.vue"),
meta: { meta: {
title: $t("menus.hsCheckCard"), title: $t("menus.pureCheckCard"),
extraIcon: "IF-pure-iconfont-new svg" extraIcon: "IF-pure-iconfont-new svg"
} }
}, },
@@ -48,7 +48,7 @@ export default {
name: "DatePicker", name: "DatePicker",
component: () => import("@/views/components/date-picker.vue"), component: () => import("@/views/components/date-picker.vue"),
meta: { meta: {
title: $t("menus.hsDatePicker") title: $t("menus.pureDatePicker")
} }
}, },
{ {
@@ -56,7 +56,7 @@ export default {
name: "DateTimePicker", name: "DateTimePicker",
component: () => import("@/views/components/datetime-picker.vue"), component: () => import("@/views/components/datetime-picker.vue"),
meta: { meta: {
title: $t("menus.hsDateTimePicker") title: $t("menus.pureDateTimePicker")
} }
}, },
{ {
@@ -64,7 +64,7 @@ export default {
name: "TimePicker", name: "TimePicker",
component: () => import("@/views/components/time-picker.vue"), component: () => import("@/views/components/time-picker.vue"),
meta: { meta: {
title: $t("menus.hsTimePicker") title: $t("menus.pureTimePicker")
} }
}, },
{ {
@@ -72,7 +72,7 @@ export default {
name: "IconSelect", name: "IconSelect",
component: () => import("@/views/components/icon-select.vue"), component: () => import("@/views/components/icon-select.vue"),
meta: { meta: {
title: $t("menus.hsIconSelect") title: $t("menus.pureIconSelect")
} }
}, },
{ {
@@ -80,7 +80,7 @@ export default {
name: "AnimateCss", name: "AnimateCss",
component: () => import("@/views/components/animatecss.vue"), component: () => import("@/views/components/animatecss.vue"),
meta: { meta: {
title: $t("menus.hsanimatecss") title: $t("menus.pureAnimatecss")
} }
}, },
{ {
@@ -88,7 +88,7 @@ export default {
name: "Cropping", name: "Cropping",
component: () => import("@/views/components/cropping/index.vue"), component: () => import("@/views/components/cropping/index.vue"),
meta: { meta: {
title: $t("menus.hscropping") title: $t("menus.pureCropping")
} }
}, },
{ {
@@ -96,7 +96,7 @@ export default {
name: "Segmented", name: "Segmented",
component: () => import("@/views/components/segmented.vue"), component: () => import("@/views/components/segmented.vue"),
meta: { meta: {
title: $t("menus.hssegmented") title: $t("menus.pureSegmented")
} }
}, },
{ {
@@ -104,7 +104,7 @@ export default {
name: "PureText", name: "PureText",
component: () => import("@/views/components/text.vue"), component: () => import("@/views/components/text.vue"),
meta: { meta: {
title: $t("menus.hsText"), title: $t("menus.pureText"),
extraIcon: "IF-pure-iconfont-new svg" extraIcon: "IF-pure-iconfont-new svg"
} }
}, },
@@ -113,7 +113,7 @@ export default {
name: "PureButton", name: "PureButton",
component: () => import("@/views/components/el-button.vue"), component: () => import("@/views/components/el-button.vue"),
meta: { meta: {
title: $t("menus.hsElButton") title: $t("menus.pureElButton")
} }
}, },
{ {
@@ -121,7 +121,7 @@ export default {
name: "CheckButton", name: "CheckButton",
component: () => import("@/views/components/check-button.vue"), component: () => import("@/views/components/check-button.vue"),
meta: { meta: {
title: $t("menus.hsCheckButton"), title: $t("menus.pureCheckButton"),
extraIcon: "IF-pure-iconfont-new svg" extraIcon: "IF-pure-iconfont-new svg"
} }
}, },
@@ -130,7 +130,7 @@ export default {
name: "ButtonPage", name: "ButtonPage",
component: () => import("@/views/components/button.vue"), component: () => import("@/views/components/button.vue"),
meta: { meta: {
title: $t("menus.hsbutton") title: $t("menus.pureButton")
} }
}, },
{ {
@@ -138,7 +138,7 @@ export default {
name: "PureProgress", name: "PureProgress",
component: () => import("@/views/components/progress.vue"), component: () => import("@/views/components/progress.vue"),
meta: { meta: {
title: $t("menus.hsProgress") title: $t("menus.pureProgress")
} }
}, },
{ {
@@ -146,7 +146,7 @@ export default {
name: "PureTag", name: "PureTag",
component: () => import("@/views/components/tag.vue"), component: () => import("@/views/components/tag.vue"),
meta: { meta: {
title: $t("menus.hsTag") title: $t("menus.pureTag")
} }
}, },
{ {
@@ -154,7 +154,7 @@ export default {
name: "Statistic", name: "Statistic",
component: () => import("@/views/components/statistic.vue"), component: () => import("@/views/components/statistic.vue"),
meta: { meta: {
title: $t("menus.hsStatistic") title: $t("menus.pureStatistic")
} }
}, },
{ {
@@ -162,7 +162,7 @@ export default {
name: "Collapse", name: "Collapse",
component: () => import("@/views/components/collapse.vue"), component: () => import("@/views/components/collapse.vue"),
meta: { meta: {
title: $t("menus.hsCollapse") title: $t("menus.pureCollapse")
} }
}, },
{ {
@@ -170,7 +170,7 @@ export default {
name: "Cascader", name: "Cascader",
component: () => import("@/views/components/cascader.vue"), component: () => import("@/views/components/cascader.vue"),
meta: { meta: {
title: $t("menus.hsCascader") title: $t("menus.pureCascader")
} }
}, },
{ {
@@ -178,7 +178,7 @@ export default {
name: "ColorPicker", name: "ColorPicker",
component: () => import("@/views/components/color-picker.vue"), component: () => import("@/views/components/color-picker.vue"),
meta: { meta: {
title: $t("menus.hsColorPicker") title: $t("menus.pureColorPicker")
} }
}, },
{ {
@@ -186,7 +186,7 @@ export default {
name: "Selector", name: "Selector",
component: () => import("@/views/components/selector.vue"), component: () => import("@/views/components/selector.vue"),
meta: { meta: {
title: $t("menus.hsselector") title: $t("menus.pureSelector")
} }
}, },
{ {
@@ -194,7 +194,7 @@ export default {
name: "Waterfall", name: "Waterfall",
component: () => import("@/views/components/waterfall/index.vue"), component: () => import("@/views/components/waterfall/index.vue"),
meta: { meta: {
title: $t("menus.hswaterfall") title: $t("menus.pureWaterfall")
} }
}, },
{ {
@@ -202,7 +202,7 @@ export default {
name: "SplitPane", name: "SplitPane",
component: () => import("@/views/components/split-pane.vue"), component: () => import("@/views/components/split-pane.vue"),
meta: { meta: {
title: $t("menus.hssplitPane") title: $t("menus.pureSplitPane")
} }
}, },
{ {
@@ -210,7 +210,7 @@ export default {
name: "Swiper", name: "Swiper",
component: () => import("@/views/components/swiper.vue"), component: () => import("@/views/components/swiper.vue"),
meta: { meta: {
title: $t("menus.hsSwiper") title: $t("menus.pureSwiper")
} }
}, },
{ {
@@ -218,7 +218,7 @@ export default {
name: "TimeLine", name: "TimeLine",
component: () => import("@/views/components/timeline.vue"), component: () => import("@/views/components/timeline.vue"),
meta: { meta: {
title: $t("menus.hsTimeline") title: $t("menus.pureTimeline")
} }
}, },
{ {
@@ -226,7 +226,7 @@ export default {
name: "CountTo", name: "CountTo",
component: () => import("@/views/components/count-to.vue"), component: () => import("@/views/components/count-to.vue"),
meta: { meta: {
title: $t("menus.hscountTo") title: $t("menus.pureCountTo")
} }
}, },
{ {
@@ -234,7 +234,7 @@ export default {
name: "ContextMenu", name: "ContextMenu",
component: () => import("@/views/components/contextmenu/index.vue"), component: () => import("@/views/components/contextmenu/index.vue"),
meta: { meta: {
title: $t("menus.hscontextmenu") title: $t("menus.pureContextmenu")
} }
}, },
{ {
@@ -242,7 +242,7 @@ export default {
name: "JsonEditor", name: "JsonEditor",
component: () => import("@/views/components/json-editor.vue"), component: () => import("@/views/components/json-editor.vue"),
meta: { meta: {
title: $t("menus.hsjsoneditor") title: $t("menus.pureJsonEditor")
} }
}, },
{ {
@@ -250,7 +250,7 @@ export default {
name: "SeamlessScroll", name: "SeamlessScroll",
component: () => import("@/views/components/seamless-scroll.vue"), component: () => import("@/views/components/seamless-scroll.vue"),
meta: { meta: {
title: $t("menus.hsseamless") title: $t("menus.pureSeamless")
} }
}, },
{ {
@@ -258,7 +258,7 @@ export default {
name: "VirtualList", name: "VirtualList",
component: () => import("@/views/components/virtual-list/index.vue"), component: () => import("@/views/components/virtual-list/index.vue"),
meta: { meta: {
title: $t("menus.hsVirtualList") title: $t("menus.pureVirtualList")
} }
} }
] ]

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/editor/index", redirect: "/editor/index",
meta: { meta: {
icon: "ep:edit", icon: "ep:edit",
title: $t("menus.hseditor"), title: $t("menus.pureEditor"),
rank: editor rank: editor
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "Editor", name: "Editor",
component: () => import("@/views/editor/index.vue"), component: () => import("@/views/editor/index.vue"),
meta: { meta: {
title: $t("menus.hseditor"), title: $t("menus.pureEditor"),
keepAlive: true keepAlive: true
} }
} }

View File

@@ -7,7 +7,7 @@ export default {
meta: { meta: {
icon: "ri:information-line", icon: "ri:information-line",
// showLink: false, // showLink: false,
title: $t("menus.hsabnormal"), title: $t("menus.pureAbnormal"),
rank: error rank: error
}, },
children: [ children: [
@@ -16,7 +16,7 @@ export default {
name: "403", name: "403",
component: () => import("@/views/error/403.vue"), component: () => import("@/views/error/403.vue"),
meta: { meta: {
title: $t("menus.hsfourZeroOne") title: $t("menus.pureFourZeroOne")
} }
}, },
{ {
@@ -24,7 +24,7 @@ export default {
name: "404", name: "404",
component: () => import("@/views/error/404.vue"), component: () => import("@/views/error/404.vue"),
meta: { meta: {
title: $t("menus.hsfourZeroFour") title: $t("menus.pureFourZeroFour")
} }
}, },
{ {
@@ -32,7 +32,7 @@ export default {
name: "500", name: "500",
component: () => import("@/views/error/500.vue"), component: () => import("@/views/error/500.vue"),
meta: { meta: {
title: $t("menus.hsFive") title: $t("menus.pureFive")
} }
} }
] ]

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/flow-chart/index", redirect: "/flow-chart/index",
meta: { meta: {
icon: "ep:set-up", icon: "ep:set-up",
title: $t("menus.hsflowChart"), title: $t("menus.pureFlowChart"),
rank: flowchart rank: flowchart
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "FlowChart", name: "FlowChart",
component: () => import("@/views/flow-chart/index.vue"), component: () => import("@/views/flow-chart/index.vue"),
meta: { meta: {
title: $t("menus.hsflowChart") title: $t("menus.pureFlowChart")
} }
} }
] ]

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/form/index", redirect: "/form/index",
meta: { meta: {
icon: "ri:edit-box-line", icon: "ri:edit-box-line",
title: $t("menus.hsSchemaForm"), title: $t("menus.pureSchemaForm"),
rank: form rank: form
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "SchemaForm", name: "SchemaForm",
component: () => import("@/views/schema-form/index.vue"), component: () => import("@/views/schema-form/index.vue"),
meta: { meta: {
title: $t("menus.hsSchemaForm"), title: $t("menus.pureSchemaForm"),
extraIcon: "IF-pure-iconfont-new svg" extraIcon: "IF-pure-iconfont-new svg"
} }
} }

View File

@@ -7,7 +7,7 @@ export default {
redirect: "/form-design/index", redirect: "/form-design/index",
meta: { meta: {
icon: "ri:terminal-window-line", icon: "ri:terminal-window-line",
title: $t("menus.hsFormDesign"), title: $t("menus.pureFormDesign"),
rank: formdesign rank: formdesign
}, },
children: [ children: [
@@ -16,7 +16,8 @@ export default {
name: "FormDesign", name: "FormDesign",
component: IFrame, component: IFrame,
meta: { meta: {
title: $t("menus.hsFormDesign"), title: $t("menus.pureFormDesign"),
keepAlive: true,
frameSrc: frameSrc:
"https://haixin-fang.github.io/vue-form-design/playground/index.html", "https://haixin-fang.github.io/vue-form-design/playground/index.html",
frameLoading: false frameLoading: false

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/ganttastic/index", redirect: "/ganttastic/index",
meta: { meta: {
icon: "ri:bar-chart-horizontal-line", icon: "ri:bar-chart-horizontal-line",
title: $t("menus.hsGanttastic"), title: $t("menus.pureGanttastic"),
rank: ganttastic rank: ganttastic
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "Ganttastic", name: "Ganttastic",
component: () => import("@/views/ganttastic/index.vue"), component: () => import("@/views/ganttastic/index.vue"),
meta: { meta: {
title: $t("menus.hsGanttastic"), title: $t("menus.pureGanttastic"),
extraIcon: "IF-pure-iconfont-new svg" extraIcon: "IF-pure-iconfont-new svg"
} }
} }

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/guide/index", redirect: "/guide/index",
meta: { meta: {
icon: "ep:guide", icon: "ep:guide",
title: $t("menus.hsguide"), title: $t("menus.pureGuide"),
rank: guide rank: guide
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "Guide", name: "Guide",
component: () => import("@/views/guide/index.vue"), component: () => import("@/views/guide/index.vue"),
meta: { meta: {
title: $t("menus.hsguide") title: $t("menus.pureGuide")
} }
} }
] ]

View File

@@ -10,7 +10,7 @@ export default {
redirect: "/welcome", redirect: "/welcome",
meta: { meta: {
icon: "ep:home-filled", icon: "ep:home-filled",
title: $t("menus.hshome"), title: $t("menus.pureHome"),
rank: home rank: home
}, },
children: [ children: [
@@ -19,7 +19,7 @@ export default {
name: "Welcome", name: "Welcome",
component: () => import("@/views/welcome/index.vue"), component: () => import("@/views/welcome/index.vue"),
meta: { meta: {
title: $t("menus.hshome"), title: $t("menus.pureHome"),
showLink: VITE_HIDE_HOME === "true" ? false : true showLink: VITE_HIDE_HOME === "true" ? false : true
} }
} }

View File

@@ -6,17 +6,17 @@ export default {
redirect: "/list/card", redirect: "/list/card",
meta: { meta: {
icon: "ri:list-check", icon: "ri:list-check",
title: $t("menus.hsList"), title: $t("menus.pureList"),
rank: list rank: list
}, },
children: [ children: [
{ {
path: "/list/card", path: "/list/card",
name: "ListCard", name: "CardList",
component: () => import("@/views/list/card/index.vue"), component: () => import("@/views/list/card/index.vue"),
meta: { meta: {
icon: "ri:bank-card-line", icon: "ri:bank-card-line",
title: $t("menus.hsListCard"), title: $t("menus.pureCardList"),
showParent: true showParent: true
} }
} }

View File

@@ -5,7 +5,7 @@ export default {
path: "/menuoverflow", path: "/menuoverflow",
redirect: "/menuoverflow/index", redirect: "/menuoverflow/index",
meta: { meta: {
title: $t("menus.hsMenuoverflow"), title: $t("menus.pureMenuOverflow"),
rank: menuoverflow rank: menuoverflow
}, },
children: [ children: [
@@ -14,7 +14,7 @@ export default {
name: "MenuOverflow", name: "MenuOverflow",
component: () => import("@/views/menuoverflow/index.vue"), component: () => import("@/views/menuoverflow/index.vue"),
meta: { meta: {
title: $t("menus.hsChildMenuoverflow"), title: $t("menus.pureChildMenuOverflow"),
showParent: true showParent: true
} }
} }

View File

@@ -0,0 +1,25 @@
import { $t } from "@/plugins/i18n";
import { mind } from "@/router/enums";
const IFrame = () => import("@/layout/frameView.vue");
export default {
path: "/mind-map",
redirect: "/mind-map/index",
meta: {
icon: "ri:mind-map",
title: $t("menus.pureMindMap"),
rank: mind
},
children: [
{
path: "/mind-map/index",
name: "FrameMindMap",
component: IFrame,
meta: {
title: $t("menus.pureMindMap"),
keepAlive: true,
frameSrc: "https://wanglin2.github.io/mind-map/#/"
}
}
]
} satisfies RouteConfigsTable;

View File

@@ -5,7 +5,7 @@ export default {
path: "/nested", path: "/nested",
redirect: "/nested/menu1/menu1-1", redirect: "/nested/menu1/menu1-1",
meta: { meta: {
title: $t("menus.hsmenus"), title: $t("menus.pureMenus"),
icon: "ep:histogram", icon: "ep:histogram",
rank: nested rank: nested
}, },
@@ -13,7 +13,7 @@ export default {
{ {
path: "/nested/menu1", path: "/nested/menu1",
meta: { meta: {
title: $t("menus.hsmenu1"), title: $t("menus.pureMenu1"),
keepAlive: true keepAlive: true
}, },
redirect: "/nested/menu1/menu1-1", redirect: "/nested/menu1/menu1-1",
@@ -23,7 +23,7 @@ export default {
component: () => import("@/views/nested/menu1/menu1-1/index.vue"), component: () => import("@/views/nested/menu1/menu1-1/index.vue"),
name: "Menu1-1", name: "Menu1-1",
meta: { meta: {
title: $t("menus.hsmenu1-1"), title: $t("menus.pureMenu1-1"),
keepAlive: true keepAlive: true
} }
}, },
@@ -31,7 +31,7 @@ export default {
path: "/nested/menu1/menu1-2", path: "/nested/menu1/menu1-2",
redirect: "/nested/menu1/menu1-2/menu1-2-1", redirect: "/nested/menu1/menu1-2/menu1-2-1",
meta: { meta: {
title: $t("menus.hsmenu1-2"), title: $t("menus.pureMenu1-2"),
keepAlive: true keepAlive: true
}, },
children: [ children: [
@@ -41,7 +41,7 @@ export default {
import("@/views/nested/menu1/menu1-2/menu1-2-1/index.vue"), import("@/views/nested/menu1/menu1-2/menu1-2-1/index.vue"),
name: "Menu1-2-1", name: "Menu1-2-1",
meta: { meta: {
title: $t("menus.hsmenu1-2-1"), title: $t("menus.pureMenu1-2-1"),
keepAlive: true keepAlive: true
} }
}, },
@@ -51,7 +51,7 @@ export default {
import("@/views/nested/menu1/menu1-2/menu1-2-2/index.vue"), import("@/views/nested/menu1/menu1-2/menu1-2-2/index.vue"),
name: "Menu1-2-2", name: "Menu1-2-2",
meta: { meta: {
title: $t("menus.hsmenu1-2-2"), title: $t("menus.pureMenu1-2-2"),
keepAlive: true keepAlive: true
} }
} }
@@ -62,7 +62,7 @@ export default {
component: () => import("@/views/nested/menu1/menu1-3/index.vue"), component: () => import("@/views/nested/menu1/menu1-3/index.vue"),
name: "Menu1-3", name: "Menu1-3",
meta: { meta: {
title: $t("menus.hsmenu1-3"), title: $t("menus.pureMenu1-3"),
keepAlive: true keepAlive: true
} }
} }
@@ -73,7 +73,7 @@ export default {
name: "Menu2", name: "Menu2",
component: () => import("@/views/nested/menu2/index.vue"), component: () => import("@/views/nested/menu2/index.vue"),
meta: { meta: {
title: $t("menus.hsmenu2"), title: $t("menus.pureMenu2"),
keepAlive: true keepAlive: true
} }
} }

View File

@@ -16,6 +16,7 @@ export default {
component: IFrame, component: IFrame,
meta: { meta: {
title: "PPT", title: "PPT",
keepAlive: true,
frameSrc: "https://pipipi-pikachu.github.io/PPTist/", frameSrc: "https://pipipi-pikachu.github.io/PPTist/",
frameLoading: false frameLoading: false
} }

View File

@@ -7,7 +7,7 @@ export default [
name: "Login", name: "Login",
component: () => import("@/views/login/index.vue"), component: () => import("@/views/login/index.vue"),
meta: { meta: {
title: $t("menus.hslogin"), title: $t("menus.pureLogin"),
showLink: false, showLink: false,
rank: 101 rank: 101
} }
@@ -16,7 +16,7 @@ export default [
path: "/redirect", path: "/redirect",
component: Layout, component: Layout,
meta: { meta: {
title: $t("status.hsLoad"), title: $t("status.pureLoad"),
showLink: false, showLink: false,
rank: 102 rank: 102
}, },
@@ -34,9 +34,19 @@ export default [
name: "Empty", name: "Empty",
component: () => import("@/views/empty/index.vue"), component: () => import("@/views/empty/index.vue"),
meta: { meta: {
title: $t("menus.hsempty"), title: $t("menus.pureEmpty"),
showLink: false, showLink: false,
rank: 103 rank: 103
} }
},
{
path: "/account-settings",
name: "AccountSettings",
component: () => import("@/views/account-settings/index.vue"),
meta: {
title: $t("buttons.pureAccountSettings"),
showLink: false,
rank: 104
}
} }
] satisfies Array<RouteConfigsTable>; ] satisfies Array<RouteConfigsTable>;

View File

@@ -6,7 +6,7 @@ export default {
redirect: "/result/success", redirect: "/result/success",
meta: { meta: {
icon: "ri:checkbox-circle-line", icon: "ri:checkbox-circle-line",
title: $t("menus.hsResult"), title: $t("menus.pureResult"),
rank: result rank: result
}, },
children: [ children: [
@@ -15,7 +15,7 @@ export default {
name: "Success", name: "Success",
component: () => import("@/views/result/success.vue"), component: () => import("@/views/result/success.vue"),
meta: { meta: {
title: $t("menus.hsSuccess") title: $t("menus.pureSuccess")
} }
}, },
{ {
@@ -23,7 +23,7 @@ export default {
name: "Fail", name: "Fail",
component: () => import("@/views/result/fail.vue"), component: () => import("@/views/result/fail.vue"),
meta: { meta: {
title: $t("menus.hsFail") title: $t("menus.pureFail")
} }
} }
] ]

Some files were not shown because too many files have changed in this diff Show More