From 25cd96e6d9165caec22760deeea740aff7b5808c Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Thu, 26 Sep 2024 09:38:02 +0800 Subject: [PATCH] init --- .browserslistrc | 4 + .dockerignore | 21 + .editorconfig | 14 + .env | 34 + .env.development | 34 + .env.production | 34 + .gitignore | 22 + .husky/pre-commit | 4 + .lintstagedrc | 20 + .markdownlint.json | 11 + .npmrc | 4 + .nvmrc | 1 + .prettierrc.js | 9 + .stylelintignore | 4 + LICENSE | 21 + README.md | 19 + build/buildEnv.ts | 52 + build/cdn.ts | 60 + build/compress.ts | 63 + build/info.ts | 62 + build/optimize.ts | 34 + build/plugins.ts | 66 + build/server.ts | 31 + build/utils.ts | 111 + commitlint.config.js | 122 + docker/Dockerfile | 27 + docker/nginx.conf | 43 + eslint.config.js | 181 + index.html | 87 + lint-staged.config.js | 10 + mock/asyncRoutes.ts | 61 + mock/i18n.ts | 16 + mock/i18n/en.ts | 20 + mock/i18n/en/buttons.ts | 25 + mock/i18n/en/login.ts | 40 + mock/i18n/en/menus.ts | 120 + mock/i18n/en/panel.ts | 38 + mock/i18n/en/search.ts | 8 + mock/i18n/en/status.ts | 11 + mock/i18n/en/style.ts | 5 + mock/i18n/en/system.ts | 8 + mock/i18n/zh.ts | 20 + mock/i18n/zh/buttons.ts | 26 + mock/i18n/zh/login.ts | 38 + mock/i18n/zh/menus.ts | 120 + mock/i18n/zh/panel.ts | 34 + mock/i18n/zh/search.ts | 10 + mock/i18n/zh/status.ts | 11 + mock/i18n/zh/style.ts | 5 + mock/i18n/zh/system.ts | 8 + mock/login.ts | 42 + mock/refreshToken.ts | 27 + package.json | 204 + pnpm-lock.yaml | 12422 ++++++++++++++++ postcss.config.js | 12 + public/favicon.ico | Bin 0 -> 9608 bytes public/html/button.html | 740 + public/logo.png | Bin 0 -> 25782 bytes public/logo.svg | 1 + public/platform-config.json | 27 + src/App.vue | 60 + src/api/service/index.ts | 198 + src/api/service/mockRequest.ts | 191 + src/api/service/types.d.ts | 47 + src/api/v1/i18n.ts | 9 + src/api/v1/routes.ts | 10 + src/api/v1/system.ts | 85 + src/api/v1/user.ts | 45 + src/assets/iconfont/iconfont.css | 27 + src/assets/iconfont/iconfont.js | 69 + src/assets/iconfont/iconfont.json | 30 + src/assets/iconfont/iconfont.ttf | Bin 0 -> 3904 bytes src/assets/iconfont/iconfont.woff | Bin 0 -> 2484 bytes src/assets/iconfont/iconfont.woff2 | Bin 0 -> 2016 bytes src/assets/login/avatar.svg | 1 + src/assets/login/bg.png | Bin 0 -> 17468 bytes src/assets/login/illustration.svg | 1 + src/assets/status/403.svg | 1 + src/assets/status/404.svg | 1 + src/assets/status/500.svg | 1 + src/assets/svg/back_top.svg | 1 + src/assets/svg/dark.svg | 1 + src/assets/svg/day.svg | 1 + src/assets/svg/enter_outlined.svg | 1 + src/assets/svg/exit_screen.svg | 1 + src/assets/svg/full_screen.svg | 1 + src/assets/svg/globalization.svg | 1 + src/assets/svg/keyboard_esc.svg | 1 + src/assets/svg/system.svg | 1 + src/assets/table-bar/collapse.svg | 1 + src/assets/table-bar/drag.svg | 1 + src/assets/table-bar/expand.svg | 1 + src/assets/table-bar/refresh.svg | 1 + src/assets/table-bar/settings.svg | 1 + src/assets/user.jpg | Bin 0 -> 3694 bytes src/components/AnimateSelector/index.ts | 7 + src/components/AnimateSelector/src/animate.ts | 114 + src/components/AnimateSelector/src/index.vue | 136 + src/components/Auth/index.ts | 5 + src/components/Auth/src/auth.tsx | 20 + src/components/BaseDialog/index.ts | 69 + src/components/BaseDialog/index.vue | 206 + src/components/BaseDialog/type.ts | 275 + src/components/CommonIcon/index.ts | 12 + src/components/CommonIcon/src/hooks.ts | 61 + src/components/CommonIcon/src/iconfont.ts | 48 + .../CommonIcon/src/iconifyIconOffline.ts | 30 + .../CommonIcon/src/iconifyIconOnline.ts | 30 + src/components/CommonIcon/src/offlineIcon.ts | 14 + src/components/CommonIcon/src/types.ts | 20 + src/components/CountTo/README.md | 2 + src/components/CountTo/index.ts | 11 + src/components/CountTo/src/normal/index.tsx | 154 + src/components/CountTo/src/normal/props.ts | 30 + src/components/CountTo/src/rebound/index.tsx | 60 + src/components/CountTo/src/rebound/props.ts | 15 + .../CountTo/src/rebound/rebound.css | 76 + src/components/MyCol/index.ts | 29 + src/components/Perms/index.ts | 5 + src/components/Perms/src/perms.tsx | 20 + src/components/ReCropperPreview/index.ts | 7 + src/components/ReCropperPreview/src/index.vue | 76 + src/components/ReIcon/data.ts | 3869 +++++ src/components/ReIcon/index.ts | 15 + src/components/ReIcon/src/Select.vue | 268 + src/components/ReIcon/src/hooks.ts | 61 + src/components/ReIcon/src/iconfont.ts | 48 + .../ReIcon/src/iconifyIconOffline.ts | 30 + .../ReIcon/src/iconifyIconOnline.ts | 30 + src/components/ReIcon/src/offlineIcon.ts | 70 + src/components/ReIcon/src/types.ts | 20 + src/components/ReSegmented/index.ts | 8 + src/components/ReSegmented/src/index.css | 157 + src/components/ReSegmented/src/index.tsx | 216 + src/components/ReSegmented/src/type.ts | 20 + src/components/Segmented/index.ts | 8 + src/components/Segmented/src/index.css | 157 + src/components/Segmented/src/index.tsx | 216 + src/components/Segmented/src/type.ts | 20 + src/components/TableBar/index.ts | 5 + src/components/TableBar/src/TablePlus.vue | 48 + src/components/TableBar/src/TablePlusBar.vue | 466 + src/components/TableBar/src/TablePlusPage.vue | 75 + .../TableBar/src/TablePlusQuery.vue | 100 + src/components/TableBar/utils/tableConfig.ts | 7 + src/components/TableBar/utils/tableStyle.ts | 28 + src/components/Text/index.ts | 7 + src/components/Text/src/index.vue | 66 + src/config/index.ts | 55 + src/directives/auth/index.ts | 15 + src/directives/copy/index.ts | 33 + src/directives/index.ts | 6 + src/directives/longpress/index.ts | 63 + src/directives/optimize/index.ts | 68 + src/directives/perms/index.ts | 15 + src/directives/ripple/index.scss | 48 + src/directives/ripple/index.ts | 229 + src/layout/components/lay-content/index.vue | 215 + src/layout/components/lay-footer/index.vue | 31 + src/layout/components/lay-frame/index.vue | 79 + src/layout/components/lay-navbar/index.vue | 191 + .../lay-notice/components/NoticeItem.vue | 177 + .../lay-notice/components/NoticeList.vue | 23 + src/layout/components/lay-notice/data.ts | 99 + src/layout/components/lay-notice/index.vue | 98 + src/layout/components/lay-panel/index.vue | 149 + .../lay-search/components/SearchFooter.vue | 63 + .../lay-search/components/SearchHistory.vue | 204 + .../components/SearchHistoryItem.vue | 54 + .../lay-search/components/SearchModal.vue | 340 + .../lay-search/components/SearchResult.vue | 115 + src/layout/components/lay-search/index.vue | 21 + src/layout/components/lay-search/types.ts | 20 + src/layout/components/lay-setting/index.vue | 642 + .../components/lay-sidebar/NavHorizontal.vue | 176 + src/layout/components/lay-sidebar/NavMix.vue | 197 + .../components/lay-sidebar/NavVertical.vue | 137 + .../components/SidebarBreadCrumb.vue | 121 + .../components/SidebarCenterCollapse.vue | 74 + .../components/SidebarExtraIcon.vue | 20 + .../components/SidebarFullScreen.vue | 30 + .../lay-sidebar/components/SidebarItem.vue | 223 + .../components/SidebarLeftCollapse.vue | 73 + .../components/SidebarLinkItem.vue | 32 + .../lay-sidebar/components/SidebarLogo.vue | 72 + .../components/SidebarTopCollapse.vue | 38 + .../lay-tag/components/TagChrome.vue | 33 + src/layout/components/lay-tag/index.scss | 371 + src/layout/components/lay-tag/index.vue | 686 + src/layout/frame.vue | 97 + src/layout/hooks/useBoolean.ts | 26 + src/layout/hooks/useDataThemeChange.ts | 145 + src/layout/hooks/useLayout.ts | 64 + src/layout/hooks/useMultiFrame.ts | 25 + src/layout/hooks/useNav.ts | 173 + src/layout/hooks/useTag.ts | 247 + src/layout/hooks/useTranslationLang.ts | 40 + src/layout/index.vue | 237 + src/layout/redirect.vue | 24 + src/layout/theme/index.ts | 129 + src/layout/types.ts | 93 + src/main.ts | 68 + src/plugins/echarts.ts | 44 + src/plugins/elementPlus.ts | 248 + src/plugins/i18n.ts | 24 + src/router/index.ts | 209 + src/router/modules/error.ts | 38 + src/router/modules/home.ts | 25 + src/router/modules/remaining.ts | 32 + src/router/utils.ts | 408 + src/store/i18n/i18n.ts | 34 + src/store/index.ts | 12 + src/store/modules/app.ts | 89 + src/store/modules/epTheme.ts | 50 + src/store/modules/multiTags.ts | 146 + src/store/modules/permission.ts | 75 + src/store/modules/settings.ts | 36 + src/store/modules/user.ts | 110 + src/store/types.ts | 47 + src/store/utils.ts | 28 + src/style/dark.scss | 182 + src/style/element-plus.scss | 188 + src/style/index.scss | 26 + src/style/login.css | 96 + src/style/reset.scss | 257 + src/style/sidebar.scss | 729 + src/style/tailwind.css | 21 + src/style/transition.scss | 54 + src/types/directives.d.ts | 28 + src/types/global-components.d.ts | 134 + src/types/global.d.ts | 194 + src/types/index.d.ts | 82 + src/types/router.d.ts | 108 + src/types/shims-tsx.d.ts | 22 + src/types/shims-vue.d.ts | 10 + src/types/store/baseStoreState.ts | 6 + src/types/store/i18n.d.ts | 4 + src/utils/auth.ts | 141 + src/utils/globalPolyfills.ts | 7 + src/utils/localforage/index.ts | 109 + src/utils/localforage/types.d.ts | 166 + src/utils/message.ts | 85 + src/utils/mitt.ts | 13 + src/utils/preventDefault.ts | 28 + src/utils/print.ts | 213 + src/utils/progress/index.ts | 17 + src/utils/propTypes.ts | 39 + src/utils/responsive.ts | 46 + src/utils/sso.ts | 59 + src/utils/tree.ts | 188 + src/views/dept/form.vue | 139 + src/views/dept/index.vue | 172 + src/views/dept/utils/hook.tsx | 180 + src/views/dept/utils/rule.ts | 37 + src/views/dept/utils/types.ts | 16 + src/views/error/403.vue | 70 + src/views/error/404.vue | 70 + src/views/error/500.vue | 70 + src/views/hooks.ts | 39 + src/views/login/index.vue | 223 + src/views/login/utils/motion.ts | 40 + src/views/login/utils/rule.ts | 27 + src/views/login/utils/static.ts | 5 + src/views/menu/README.md | 26 + src/views/menu/form.vue | 342 + src/views/menu/index.vue | 163 + src/views/menu/utils/enums.ts | 108 + src/views/menu/utils/hook.tsx | 222 + src/views/menu/utils/rule.ts | 10 + src/views/menu/utils/types.ts | 31 + src/views/permission/button/index.vue | 99 + src/views/permission/button/perms.vue | 109 + src/views/permission/page/index.vue | 66 + src/views/role/form.vue | 55 + src/views/role/index.vue | 344 + src/views/role/utils/hook.tsx | 318 + src/views/role/utils/rule.ts | 8 + src/views/role/utils/types.ts | 15 + src/views/user/form/index.vue | 176 + src/views/user/form/role.vue | 53 + src/views/user/index.vue | 275 + src/views/user/svg/expand.svg | 1 + src/views/user/svg/unexpand.svg | 1 + src/views/user/tree.vue | 215 + src/views/user/utils/hook.tsx | 538 + src/views/user/utils/reset.css | 5 + src/views/user/utils/rule.ts | 39 + src/views/user/utils/types.ts | 36 + .../welcome/components/charts/ChartBar.vue | 107 + .../welcome/components/charts/ChartLine.vue | 62 + .../welcome/components/charts/ChartRound.vue | 73 + src/views/welcome/components/charts/index.ts | 3 + .../welcome/components/table/columns.tsx | 104 + src/views/welcome/components/table/empty.svg | 1 + src/views/welcome/components/table/index.vue | 71 + src/views/welcome/data.ts | 134 + src/views/welcome/index.vue | 213 + src/views/welcome/utils.ts | 6 + stylelint.config.js | 87 + tailwind.config.ts | 19 + tsconfig.json | 53 + vite.config.ts | 32 + 302 files changed, 40560 insertions(+) create mode 100644 .browserslistrc create mode 100644 .dockerignore create mode 100644 .editorconfig create mode 100644 .env create mode 100644 .env.development create mode 100644 .env.production create mode 100644 .gitignore create mode 100644 .husky/pre-commit create mode 100644 .lintstagedrc create mode 100644 .markdownlint.json create mode 100644 .npmrc create mode 100644 .nvmrc create mode 100644 .prettierrc.js create mode 100644 .stylelintignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 build/buildEnv.ts create mode 100644 build/cdn.ts create mode 100644 build/compress.ts create mode 100644 build/info.ts create mode 100644 build/optimize.ts create mode 100644 build/plugins.ts create mode 100644 build/server.ts create mode 100644 build/utils.ts create mode 100644 commitlint.config.js create mode 100644 docker/Dockerfile create mode 100644 docker/nginx.conf create mode 100644 eslint.config.js create mode 100644 index.html create mode 100644 lint-staged.config.js create mode 100644 mock/asyncRoutes.ts create mode 100644 mock/i18n.ts create mode 100644 mock/i18n/en.ts create mode 100644 mock/i18n/en/buttons.ts create mode 100644 mock/i18n/en/login.ts create mode 100644 mock/i18n/en/menus.ts create mode 100644 mock/i18n/en/panel.ts create mode 100644 mock/i18n/en/search.ts create mode 100644 mock/i18n/en/status.ts create mode 100644 mock/i18n/en/style.ts create mode 100644 mock/i18n/en/system.ts create mode 100644 mock/i18n/zh.ts create mode 100644 mock/i18n/zh/buttons.ts create mode 100644 mock/i18n/zh/login.ts create mode 100644 mock/i18n/zh/menus.ts create mode 100644 mock/i18n/zh/panel.ts create mode 100644 mock/i18n/zh/search.ts create mode 100644 mock/i18n/zh/status.ts create mode 100644 mock/i18n/zh/style.ts create mode 100644 mock/i18n/zh/system.ts create mode 100644 mock/login.ts create mode 100644 mock/refreshToken.ts create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 postcss.config.js create mode 100644 public/favicon.ico create mode 100644 public/html/button.html create mode 100644 public/logo.png create mode 100644 public/logo.svg create mode 100644 public/platform-config.json create mode 100644 src/App.vue create mode 100644 src/api/service/index.ts create mode 100644 src/api/service/mockRequest.ts create mode 100644 src/api/service/types.d.ts create mode 100644 src/api/v1/i18n.ts create mode 100644 src/api/v1/routes.ts create mode 100644 src/api/v1/system.ts create mode 100644 src/api/v1/user.ts create mode 100644 src/assets/iconfont/iconfont.css create mode 100644 src/assets/iconfont/iconfont.js create mode 100644 src/assets/iconfont/iconfont.json create mode 100644 src/assets/iconfont/iconfont.ttf create mode 100644 src/assets/iconfont/iconfont.woff create mode 100644 src/assets/iconfont/iconfont.woff2 create mode 100644 src/assets/login/avatar.svg create mode 100644 src/assets/login/bg.png create mode 100644 src/assets/login/illustration.svg create mode 100644 src/assets/status/403.svg create mode 100644 src/assets/status/404.svg create mode 100644 src/assets/status/500.svg create mode 100644 src/assets/svg/back_top.svg create mode 100644 src/assets/svg/dark.svg create mode 100644 src/assets/svg/day.svg create mode 100644 src/assets/svg/enter_outlined.svg create mode 100644 src/assets/svg/exit_screen.svg create mode 100644 src/assets/svg/full_screen.svg create mode 100644 src/assets/svg/globalization.svg create mode 100644 src/assets/svg/keyboard_esc.svg create mode 100644 src/assets/svg/system.svg create mode 100644 src/assets/table-bar/collapse.svg create mode 100644 src/assets/table-bar/drag.svg create mode 100644 src/assets/table-bar/expand.svg create mode 100644 src/assets/table-bar/refresh.svg create mode 100644 src/assets/table-bar/settings.svg create mode 100644 src/assets/user.jpg create mode 100644 src/components/AnimateSelector/index.ts create mode 100644 src/components/AnimateSelector/src/animate.ts create mode 100644 src/components/AnimateSelector/src/index.vue create mode 100644 src/components/Auth/index.ts create mode 100644 src/components/Auth/src/auth.tsx create mode 100644 src/components/BaseDialog/index.ts create mode 100644 src/components/BaseDialog/index.vue create mode 100644 src/components/BaseDialog/type.ts create mode 100644 src/components/CommonIcon/index.ts create mode 100644 src/components/CommonIcon/src/hooks.ts create mode 100644 src/components/CommonIcon/src/iconfont.ts create mode 100644 src/components/CommonIcon/src/iconifyIconOffline.ts create mode 100644 src/components/CommonIcon/src/iconifyIconOnline.ts create mode 100644 src/components/CommonIcon/src/offlineIcon.ts create mode 100644 src/components/CommonIcon/src/types.ts create mode 100644 src/components/CountTo/README.md create mode 100644 src/components/CountTo/index.ts create mode 100644 src/components/CountTo/src/normal/index.tsx create mode 100644 src/components/CountTo/src/normal/props.ts create mode 100644 src/components/CountTo/src/rebound/index.tsx create mode 100644 src/components/CountTo/src/rebound/props.ts create mode 100644 src/components/CountTo/src/rebound/rebound.css create mode 100644 src/components/MyCol/index.ts create mode 100644 src/components/Perms/index.ts create mode 100644 src/components/Perms/src/perms.tsx create mode 100644 src/components/ReCropperPreview/index.ts create mode 100644 src/components/ReCropperPreview/src/index.vue create mode 100644 src/components/ReIcon/data.ts create mode 100644 src/components/ReIcon/index.ts create mode 100644 src/components/ReIcon/src/Select.vue create mode 100644 src/components/ReIcon/src/hooks.ts create mode 100644 src/components/ReIcon/src/iconfont.ts create mode 100644 src/components/ReIcon/src/iconifyIconOffline.ts create mode 100644 src/components/ReIcon/src/iconifyIconOnline.ts create mode 100644 src/components/ReIcon/src/offlineIcon.ts create mode 100644 src/components/ReIcon/src/types.ts create mode 100644 src/components/ReSegmented/index.ts create mode 100644 src/components/ReSegmented/src/index.css create mode 100644 src/components/ReSegmented/src/index.tsx create mode 100644 src/components/ReSegmented/src/type.ts create mode 100644 src/components/Segmented/index.ts create mode 100644 src/components/Segmented/src/index.css create mode 100644 src/components/Segmented/src/index.tsx create mode 100644 src/components/Segmented/src/type.ts create mode 100644 src/components/TableBar/index.ts create mode 100644 src/components/TableBar/src/TablePlus.vue create mode 100644 src/components/TableBar/src/TablePlusBar.vue create mode 100644 src/components/TableBar/src/TablePlusPage.vue create mode 100644 src/components/TableBar/src/TablePlusQuery.vue create mode 100644 src/components/TableBar/utils/tableConfig.ts create mode 100644 src/components/TableBar/utils/tableStyle.ts create mode 100644 src/components/Text/index.ts create mode 100644 src/components/Text/src/index.vue create mode 100644 src/config/index.ts create mode 100644 src/directives/auth/index.ts create mode 100644 src/directives/copy/index.ts create mode 100644 src/directives/index.ts create mode 100644 src/directives/longpress/index.ts create mode 100644 src/directives/optimize/index.ts create mode 100644 src/directives/perms/index.ts create mode 100644 src/directives/ripple/index.scss create mode 100644 src/directives/ripple/index.ts create mode 100644 src/layout/components/lay-content/index.vue create mode 100644 src/layout/components/lay-footer/index.vue create mode 100644 src/layout/components/lay-frame/index.vue create mode 100644 src/layout/components/lay-navbar/index.vue create mode 100644 src/layout/components/lay-notice/components/NoticeItem.vue create mode 100644 src/layout/components/lay-notice/components/NoticeList.vue create mode 100644 src/layout/components/lay-notice/data.ts create mode 100644 src/layout/components/lay-notice/index.vue create mode 100644 src/layout/components/lay-panel/index.vue create mode 100644 src/layout/components/lay-search/components/SearchFooter.vue create mode 100644 src/layout/components/lay-search/components/SearchHistory.vue create mode 100644 src/layout/components/lay-search/components/SearchHistoryItem.vue create mode 100644 src/layout/components/lay-search/components/SearchModal.vue create mode 100644 src/layout/components/lay-search/components/SearchResult.vue create mode 100644 src/layout/components/lay-search/index.vue create mode 100644 src/layout/components/lay-search/types.ts create mode 100644 src/layout/components/lay-setting/index.vue create mode 100644 src/layout/components/lay-sidebar/NavHorizontal.vue create mode 100644 src/layout/components/lay-sidebar/NavMix.vue create mode 100644 src/layout/components/lay-sidebar/NavVertical.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarBreadCrumb.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarCenterCollapse.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarExtraIcon.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarFullScreen.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarItem.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarLeftCollapse.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarLinkItem.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarLogo.vue create mode 100644 src/layout/components/lay-sidebar/components/SidebarTopCollapse.vue create mode 100644 src/layout/components/lay-tag/components/TagChrome.vue create mode 100644 src/layout/components/lay-tag/index.scss create mode 100644 src/layout/components/lay-tag/index.vue create mode 100644 src/layout/frame.vue create mode 100644 src/layout/hooks/useBoolean.ts create mode 100644 src/layout/hooks/useDataThemeChange.ts create mode 100644 src/layout/hooks/useLayout.ts create mode 100644 src/layout/hooks/useMultiFrame.ts create mode 100644 src/layout/hooks/useNav.ts create mode 100644 src/layout/hooks/useTag.ts create mode 100644 src/layout/hooks/useTranslationLang.ts create mode 100644 src/layout/index.vue create mode 100644 src/layout/redirect.vue create mode 100644 src/layout/theme/index.ts create mode 100644 src/layout/types.ts create mode 100644 src/main.ts create mode 100644 src/plugins/echarts.ts create mode 100644 src/plugins/elementPlus.ts create mode 100644 src/plugins/i18n.ts create mode 100644 src/router/index.ts create mode 100644 src/router/modules/error.ts create mode 100644 src/router/modules/home.ts create mode 100644 src/router/modules/remaining.ts create mode 100644 src/router/utils.ts create mode 100644 src/store/i18n/i18n.ts create mode 100644 src/store/index.ts create mode 100644 src/store/modules/app.ts create mode 100644 src/store/modules/epTheme.ts create mode 100644 src/store/modules/multiTags.ts create mode 100644 src/store/modules/permission.ts create mode 100644 src/store/modules/settings.ts create mode 100644 src/store/modules/user.ts create mode 100644 src/store/types.ts create mode 100644 src/store/utils.ts create mode 100644 src/style/dark.scss create mode 100644 src/style/element-plus.scss create mode 100644 src/style/index.scss create mode 100644 src/style/login.css create mode 100644 src/style/reset.scss create mode 100644 src/style/sidebar.scss create mode 100644 src/style/tailwind.css create mode 100644 src/style/transition.scss create mode 100644 src/types/directives.d.ts create mode 100644 src/types/global-components.d.ts create mode 100644 src/types/global.d.ts create mode 100644 src/types/index.d.ts create mode 100644 src/types/router.d.ts create mode 100644 src/types/shims-tsx.d.ts create mode 100644 src/types/shims-vue.d.ts create mode 100644 src/types/store/baseStoreState.ts create mode 100644 src/types/store/i18n.d.ts create mode 100644 src/utils/auth.ts create mode 100644 src/utils/globalPolyfills.ts create mode 100644 src/utils/localforage/index.ts create mode 100644 src/utils/localforage/types.d.ts create mode 100644 src/utils/message.ts create mode 100644 src/utils/mitt.ts create mode 100644 src/utils/preventDefault.ts create mode 100644 src/utils/print.ts create mode 100644 src/utils/progress/index.ts create mode 100644 src/utils/propTypes.ts create mode 100644 src/utils/responsive.ts create mode 100644 src/utils/sso.ts create mode 100644 src/utils/tree.ts create mode 100644 src/views/dept/form.vue create mode 100644 src/views/dept/index.vue create mode 100644 src/views/dept/utils/hook.tsx create mode 100644 src/views/dept/utils/rule.ts create mode 100644 src/views/dept/utils/types.ts create mode 100644 src/views/error/403.vue create mode 100644 src/views/error/404.vue create mode 100644 src/views/error/500.vue create mode 100644 src/views/hooks.ts create mode 100644 src/views/login/index.vue create mode 100644 src/views/login/utils/motion.ts create mode 100644 src/views/login/utils/rule.ts create mode 100644 src/views/login/utils/static.ts create mode 100644 src/views/menu/README.md create mode 100644 src/views/menu/form.vue create mode 100644 src/views/menu/index.vue create mode 100644 src/views/menu/utils/enums.ts create mode 100644 src/views/menu/utils/hook.tsx create mode 100644 src/views/menu/utils/rule.ts create mode 100644 src/views/menu/utils/types.ts create mode 100644 src/views/permission/button/index.vue create mode 100644 src/views/permission/button/perms.vue create mode 100644 src/views/permission/page/index.vue create mode 100644 src/views/role/form.vue create mode 100644 src/views/role/index.vue create mode 100644 src/views/role/utils/hook.tsx create mode 100644 src/views/role/utils/rule.ts create mode 100644 src/views/role/utils/types.ts create mode 100644 src/views/user/form/index.vue create mode 100644 src/views/user/form/role.vue create mode 100644 src/views/user/index.vue create mode 100644 src/views/user/svg/expand.svg create mode 100644 src/views/user/svg/unexpand.svg create mode 100644 src/views/user/tree.vue create mode 100644 src/views/user/utils/hook.tsx create mode 100644 src/views/user/utils/reset.css create mode 100644 src/views/user/utils/rule.ts create mode 100644 src/views/user/utils/types.ts create mode 100644 src/views/welcome/components/charts/ChartBar.vue create mode 100644 src/views/welcome/components/charts/ChartLine.vue create mode 100644 src/views/welcome/components/charts/ChartRound.vue create mode 100644 src/views/welcome/components/charts/index.ts create mode 100644 src/views/welcome/components/table/columns.tsx create mode 100644 src/views/welcome/components/table/empty.svg create mode 100644 src/views/welcome/components/table/index.vue create mode 100644 src/views/welcome/data.ts create mode 100644 src/views/welcome/index.vue create mode 100644 src/views/welcome/utils.ts create mode 100644 stylelint.config.js create mode 100644 tailwind.config.ts create mode 100644 tsconfig.json create mode 100644 vite.config.ts diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..40bd99c --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,4 @@ +> 1% +last 2 versions +not dead +not ie 11 \ No newline at end of file diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0376edd --- /dev/null +++ b/.dockerignore @@ -0,0 +1,21 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local +.eslintcache +report.html + +yarn.lock +npm-debug.log* +.pnpm-error.log* +.pnpm-debug.log +tests/**/coverage/ + +# Editor directories and files +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +tsconfig.tsbuildinfo diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ea6e20f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +insert_final_newline = false +trim_trailing_whitespace = false diff --git a/.env b/.env new file mode 100644 index 0000000..28a09df --- /dev/null +++ b/.env @@ -0,0 +1,34 @@ +# 平台本地运行端口号 +VITE_PORT=8201 + +# 预发布环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") +VITE_ROUTER_HISTORY="hash" + +# 基础请求路径 +VITE_BASE_API=/api + +# 跨域代理地址 +VITE_APP_URL=http://localhost:8801 + +# mock地址 +VITE_MOCK_BASE_API=/mock + +# 网络请求延迟时间 +VITE_BASE_API_TIMEOUT=60000 + +# 失败重试次数 +VITE_BASE_API_RETRY=5 + +# 失败重试时间 +VITE_BASE_API_RETRY_DELAY=3000 + +# 是否在打包时使用cdn替换本地库 替换 true 不替换 false +VITE_CDN=false + +# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件) +# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) +# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) +VITE_COMPRESSION="none" + +# 开发环境读取配置文件路径 +VITE_PUBLIC_PATH=/ diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..28a09df --- /dev/null +++ b/.env.development @@ -0,0 +1,34 @@ +# 平台本地运行端口号 +VITE_PORT=8201 + +# 预发布环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") +VITE_ROUTER_HISTORY="hash" + +# 基础请求路径 +VITE_BASE_API=/api + +# 跨域代理地址 +VITE_APP_URL=http://localhost:8801 + +# mock地址 +VITE_MOCK_BASE_API=/mock + +# 网络请求延迟时间 +VITE_BASE_API_TIMEOUT=60000 + +# 失败重试次数 +VITE_BASE_API_RETRY=5 + +# 失败重试时间 +VITE_BASE_API_RETRY_DELAY=3000 + +# 是否在打包时使用cdn替换本地库 替换 true 不替换 false +VITE_CDN=false + +# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件) +# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) +# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) +VITE_COMPRESSION="none" + +# 开发环境读取配置文件路径 +VITE_PUBLIC_PATH=/ diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..28a09df --- /dev/null +++ b/.env.production @@ -0,0 +1,34 @@ +# 平台本地运行端口号 +VITE_PORT=8201 + +# 预发布环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") +VITE_ROUTER_HISTORY="hash" + +# 基础请求路径 +VITE_BASE_API=/api + +# 跨域代理地址 +VITE_APP_URL=http://localhost:8801 + +# mock地址 +VITE_MOCK_BASE_API=/mock + +# 网络请求延迟时间 +VITE_BASE_API_TIMEOUT=60000 + +# 失败重试次数 +VITE_BASE_API_RETRY=5 + +# 失败重试时间 +VITE_BASE_API_RETRY_DELAY=3000 + +# 是否在打包时使用cdn替换本地库 替换 true 不替换 false +VITE_CDN=false + +# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件) +# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) +# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) +VITE_COMPRESSION="none" + +# 开发环境读取配置文件路径 +VITE_PUBLIC_PATH=/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..423ed2b --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local +.eslintcache +report.html +vite.config.*.timestamp* + +yarn.lock +npm-debug.log* +.pnpm-error.log* +.pnpm-debug.log +tests/**/coverage/ + +# Editor directories and files +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +tsconfig.tsbuildinfo \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..08d8ec7 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname -- "$0")/_/husky.sh" + +pnpm exec lint-staged diff --git a/.lintstagedrc b/.lintstagedrc new file mode 100644 index 0000000..ebf359a --- /dev/null +++ b/.lintstagedrc @@ -0,0 +1,20 @@ +{ + "*.{js,jsx,ts,tsx}": [ + "prettier --cache --ignore-unknown --write", + "eslint --cache --fix" + ], + "{!(package)*.json,*.code-snippets,.!({browserslist,npm,nvm})*rc}": [ + "prettier --cache --write--parser json" + ], + "package.json": ["prettier --cache --write"], + "*.vue": [ + "prettier --write", + "eslint --cache --fix", + "stylelint --fix --allow-empty-input" + ], + "*.{css,scss,html}": [ + "prettier --cache --ignore-unknown --write", + "stylelint --fix --allow-empty-input" + ], + "*.md": ["prettier --cache --ignore-unknown --write"] +} diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..d628d44 --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,11 @@ +{ + "default": true, + "MD003": false, + "MD033": false, + "MD013": false, + "MD001": false, + "MD025": false, + "MD024": false, + "MD007": { "indent": 4 }, + "no-hard-tabs": false +} diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..dddf8bc --- /dev/null +++ b/.npmrc @@ -0,0 +1,4 @@ +shell-emulator=true +shamefully-hoist=true +enable-pre-post-scripts=false +strict-peer-dependencies=false \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..4746584 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.15.0 \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..775d970 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,9 @@ +// @ts-check + +/** @type {import("prettier").Config} */ +export default { + bracketSpacing: true, + singleQuote: false, + arrowParens: "avoid", + trailingComma: "none" +}; diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 0000000..0c34e61 --- /dev/null +++ b/.stylelintignore @@ -0,0 +1,4 @@ +/dist/* +/public/* +public/* +src/style/reset.scss \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6d4889d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020-present, pure-admin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b6d3eb --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +
^an$oVtrl1P8fs4>(Yh#qa2e7Gh6Qaj9^62G%=KWm-3(oy$D33`=Ihu9y^
zf|te`12I%{0#Gue2h?wwGn*E5>{aVp+;U3KE1rXUEtOvyQa;s~Q+gtVS1!+bUH;t5
z=KV>gh) ,
+ config?: PureHttpRequestConfig
+ ): Promise ,
+ config?: PureHttpRequestConfig
+ ): Promise ,
+ config?: PureHttpRequestConfig
+ ): Promise ,
+ config?: PureHttpRequestConfig
+ ): Promise hZNfoKmsJ|*y*V+^mER;BJs&ls
zM6%Nk+E=3qHwi_JAV!5To@`)~Jo%CzqcHkkzb_{=uo==3q(^g6BTEicXZ>P=1JX~JWTGf$EMbIQRx6Dv{aj=w_q%#(4|`}Ia9_J011z8+LtYg5
z1Xr`FuM-603#bY%{@%$$9qE>{Tx+r&IV+)YybXt5haUXyrZML=!
zh7aObrHp{F5>0CHq@BMx98P3HftXS+y^t;d_