fred-admin 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fred_admin/__init__.py +91 -0
- fred_admin/common/AliyunSms.py +66 -0
- fred_admin/common/Blueprints.py +99 -0
- fred_admin/common/Email.py +23 -0
- fred_admin/common/Extensions.py +319 -0
- fred_admin/common/HandleExcetion.py +204 -0
- fred_admin/common/ImageVerification.py +117 -0
- fred_admin/common/IoTDBClient.py +698 -0
- fred_admin/common/PageSchema.py +65 -0
- fred_admin/common/Response.py +251 -0
- fred_admin/common/Route.py +390 -0
- fred_admin/common/RuntimeHook.py +111 -0
- fred_admin/common/SchedulerLog.py +277 -0
- fred_admin/common/Sqlacodegen.py +170 -0
- fred_admin/common/Swagger.py +77 -0
- fred_admin/common/SystemLog.py +80 -0
- fred_admin/common/Utils.py +1060 -0
- fred_admin/common/WechatLogin.py +97 -0
- fred_admin/common/__init__.py +3 -0
- fred_admin/config/Config.py +104 -0
- fred_admin/config/Logger.py +34 -0
- fred_admin/config/__init__.py +3 -0
- fred_admin/create_module.py +787 -0
- fred_admin/demo/app.py +6 -0
- fred_admin/demo/common/__init__.py +1 -0
- fred_admin/demo/common/config/Config.py +82 -0
- fred_admin/demo/common/config/README.md +8 -0
- fred_admin/demo/common/config/__init__.py +1 -0
- fred_admin/demo/common/config/__pycache__/Config.cpython-312.pyc +0 -0
- fred_admin/demo/common/config/__pycache__/__init__.cpython-312.pyc +0 -0
- fred_admin/demo/common/config/jwt_secret_key +1 -0
- fred_admin/demo/common/config/session_secret_key +1 -0
- fred_admin/demo/common/model/__pycache__/__init__.cpython-312.pyc +0 -0
- fred_admin/demo/common/model/__pycache__/model.cpython-312.pyc +0 -0
- fred_admin/demo/common/model/model.py +274 -0
- fred_admin/demo/demo_.gitignore +42 -0
- fred_admin/demo/modules/__init__.py +1 -0
- fred_admin/demo/modules/admin/README.md +38 -0
- fred_admin/demo/modules/admin/__init__.py +3 -0
- fred_admin/demo/modules/admin/backend/__init__.py +7 -0
- fred_admin/demo/modules/admin/backend/constant/RedisKey.py +10 -0
- fred_admin/demo/modules/admin/backend/controller/AdminAuthController.py +39 -0
- fred_admin/demo/modules/admin/backend/controller/AdminController.py +226 -0
- fred_admin/demo/modules/admin/backend/controller/ApiAuthController.py +93 -0
- fred_admin/demo/modules/admin/backend/controller/ButtonManageController.py +90 -0
- fred_admin/demo/modules/admin/backend/controller/FileController.py +28 -0
- fred_admin/demo/modules/admin/backend/controller/OrganizationController.py +218 -0
- fred_admin/demo/modules/admin/backend/controller/RoleController.py +143 -0
- fred_admin/demo/modules/admin/backend/controller/SystemController.py +112 -0
- fred_admin/demo/modules/admin/backend/controller/SystemLogController.py +63 -0
- fred_admin/demo/modules/admin/backend/controller/TableController.py +175 -0
- fred_admin/demo/modules/admin/backend/controller/__init__.py +55 -0
- fred_admin/demo/modules/admin/backend/schema/AdminSchema.py +356 -0
- fred_admin/demo/modules/admin/backend/schema/ApiAuthSchema.py +72 -0
- fred_admin/demo/modules/admin/backend/schema/AuthMenuSchema.py +79 -0
- fred_admin/demo/modules/admin/backend/schema/ButtonManageSchema.py +98 -0
- fred_admin/demo/modules/admin/backend/schema/OrganizationSchema.py +134 -0
- fred_admin/demo/modules/admin/backend/schema/RoleSchema.py +94 -0
- fred_admin/demo/modules/admin/backend/schema/SystemConfigSchema.py +115 -0
- fred_admin/demo/modules/admin/backend/schema/TableSchema.py +153 -0
- fred_admin/demo/modules/admin/backend/schema/UploadImg.py +35 -0
- fred_admin/demo/modules/admin/backend/schema/__init__.py +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/AdminSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/ApiAuthSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/AuthMenuSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/ButtonManageSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/OrganizationSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/RoleSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/SystemConfigSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/TableSchema.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/UploadImg.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/schema/__pycache__/__init__.cpython-312.pyc +0 -0
- fred_admin/demo/modules/admin/backend/service/AdminService.py +377 -0
- fred_admin/demo/modules/admin/backend/service/ApiAuthService.py +237 -0
- fred_admin/demo/modules/admin/backend/service/AuthButtonsService.py +155 -0
- fred_admin/demo/modules/admin/backend/service/AuthMenuService.py +265 -0
- fred_admin/demo/modules/admin/backend/service/ButtonManageService.py +386 -0
- fred_admin/demo/modules/admin/backend/service/ButtonManageService.py.broken +113 -0
- fred_admin/demo/modules/admin/backend/service/FileService.py +33 -0
- fred_admin/demo/modules/admin/backend/service/OrganizationService.py +465 -0
- fred_admin/demo/modules/admin/backend/service/RoleService.py +445 -0
- fred_admin/demo/modules/admin/backend/service/SystemConfigService.py +89 -0
- fred_admin/demo/modules/admin/backend/service/SystemLogService.py +142 -0
- fred_admin/demo/modules/admin/backend/service/TableService.py +978 -0
- fred_admin/demo/modules/admin/backend/service/__init__.py +1 -0
- fred_admin/demo/modules/admin/backend/sql/app.db +0 -0
- fred_admin/demo/modules/admin/backend/sql/fred.sql +3780 -0
- fred_admin/demo/modules/admin/frontend/LICENSE +21 -0
- fred_admin/demo/modules/admin/frontend/build/getEnv.ts +46 -0
- fred_admin/demo/modules/admin/frontend/build/plugins.ts +118 -0
- fred_admin/demo/modules/admin/frontend/build/proxy.ts +30 -0
- fred_admin/demo/modules/admin/frontend/commitlint.config.cjs +162 -0
- fred_admin/demo/modules/admin/frontend/demo_editorconfig +15 -0
- fred_admin/demo/modules/admin/frontend/demo_env +15 -0
- fred_admin/demo/modules/admin/frontend/demo_env.development +21 -0
- fred_admin/demo/modules/admin/frontend/demo_env.production +25 -0
- fred_admin/demo/modules/admin/frontend/demo_eslintignore +15 -0
- fred_admin/demo/modules/admin/frontend/demo_eslintrc.cjs +61 -0
- fred_admin/demo/modules/admin/frontend/demo_gitignore +27 -0
- fred_admin/demo/modules/admin/frontend/demo_prettierignore +9 -0
- fred_admin/demo/modules/admin/frontend/demo_prettierrc.cjs +41 -0
- fred_admin/demo/modules/admin/frontend/demo_stylelintignore +4 -0
- fred_admin/demo/modules/admin/frontend/demo_stylelintrc.cjs +40 -0
- fred_admin/demo/modules/admin/frontend/index.html +105 -0
- fred_admin/demo/modules/admin/frontend/lint-staged.config.cjs +8 -0
- fred_admin/demo/modules/admin/frontend/package.json +129 -0
- fred_admin/demo/modules/admin/frontend/pnpm-lock.yaml +11150 -0
- fred_admin/demo/modules/admin/frontend/postcss.config.cjs +5 -0
- fred_admin/demo/modules/admin/frontend/public/logo.png +0 -0
- fred_admin/demo/modules/admin/frontend/public/vue.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/App.vue +44 -0
- fred_admin/demo/modules/admin/frontend/src/api/config/servicePort.ts +2 -0
- fred_admin/demo/modules/admin/frontend/src/api/helper/axiosCancel.ts +57 -0
- fred_admin/demo/modules/admin/frontend/src/api/helper/checkStatus.ts +43 -0
- fred_admin/demo/modules/admin/frontend/src/api/index.ts +167 -0
- fred_admin/demo/modules/admin/frontend/src/api/interface/index.ts +179 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/adminModel.ts +135 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/apiAuthModel.ts +72 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/index.ts +24 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/loginModel.ts +79 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/roleModel.ts +68 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/storeModel.ts +80 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/systemModel.ts +162 -0
- fred_admin/demo/modules/admin/frontend/src/api/model/uploadModel.ts +153 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/admin.ts +76 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/apiAuth.ts +53 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/buttonManage.ts +119 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/dataBase.ts +60 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/login.ts +54 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/organization.ts +123 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/role.ts +61 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/store.ts +303 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/system.ts +125 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/upload.ts +132 -0
- fred_admin/demo/modules/admin/frontend/src/api/modules/user.ts +63 -0
- fred_admin/demo/modules/admin/frontend/src/assets/fonts/DIN.otf +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/fonts/MetroDF.ttf +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/fonts/YouSheBiaoTiHei.ttf +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/fonts/font.scss +14 -0
- fred_admin/demo/modules/admin/frontend/src/assets/iconfont/iconfont.scss +51 -0
- fred_admin/demo/modules/admin/frontend/src/assets/iconfont/iconfont.ttf +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingdaoyu.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingdiqiu.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingditu.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingfanchuan.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingfeiji.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxinglvhangriji.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingtianqiyubao.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingxiangjipaizhao.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingxiarilengyin.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingyoulun.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/icons/xianxingzijiayou.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/403.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/404.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/500.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/avatar.gif +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/login_bg.svg +33 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/login_left.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/login_left1.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/login_left2.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/login_left3.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/login_left4.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/login_left5.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/logo.svg +1 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/msg01.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/msg02.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/msg03.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/msg04.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/msg05.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/notData.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/images/welcome.png +0 -0
- fred_admin/demo/modules/admin/frontend/src/assets/json/authButtonList.json +8 -0
- fred_admin/demo/modules/admin/frontend/src/assets/json/authMenuList.json +1075 -0
- fred_admin/demo/modules/admin/frontend/src/assets/mock/Easy-Mock-API.zip +0 -0
- fred_admin/demo/modules/admin/frontend/src/components/ECharts/config/index.ts +72 -0
- fred_admin/demo/modules/admin/frontend/src/components/ECharts/index.vue +104 -0
- fred_admin/demo/modules/admin/frontend/src/components/ErrorMessage/403.vue +19 -0
- fred_admin/demo/modules/admin/frontend/src/components/ErrorMessage/404.vue +19 -0
- fred_admin/demo/modules/admin/frontend/src/components/ErrorMessage/500.vue +19 -0
- fred_admin/demo/modules/admin/frontend/src/components/ErrorMessage/index.scss +32 -0
- fred_admin/demo/modules/admin/frontend/src/components/Grid/components/GridItem.vue +68 -0
- fred_admin/demo/modules/admin/frontend/src/components/Grid/index.vue +167 -0
- fred_admin/demo/modules/admin/frontend/src/components/Grid/interface/index.ts +6 -0
- fred_admin/demo/modules/admin/frontend/src/components/ImageCaptcha/index.vue +71 -0
- fred_admin/demo/modules/admin/frontend/src/components/ImportExcel/index.scss +3 -0
- fred_admin/demo/modules/admin/frontend/src/components/ImportExcel/index.vue +151 -0
- fred_admin/demo/modules/admin/frontend/src/components/JsonViewer/index.vue +249 -0
- fred_admin/demo/modules/admin/frontend/src/components/Loading/fullScreen.ts +45 -0
- fred_admin/demo/modules/admin/frontend/src/components/Loading/index.scss +67 -0
- fred_admin/demo/modules/admin/frontend/src/components/Loading/index.vue +13 -0
- fred_admin/demo/modules/admin/frontend/src/components/ProTable/components/ColSetting.vue +45 -0
- fred_admin/demo/modules/admin/frontend/src/components/ProTable/components/Pagination.vue +101 -0
- fred_admin/demo/modules/admin/frontend/src/components/ProTable/components/TableColumn.vue +58 -0
- fred_admin/demo/modules/admin/frontend/src/components/ProTable/index.vue +348 -0
- fred_admin/demo/modules/admin/frontend/src/components/ProTable/interface/index.ts +87 -0
- fred_admin/demo/modules/admin/frontend/src/components/SearchForm/components/SearchFormItem.vue +96 -0
- fred_admin/demo/modules/admin/frontend/src/components/SearchForm/index.vue +98 -0
- fred_admin/demo/modules/admin/frontend/src/components/SelectFilter/index.scss +63 -0
- fred_admin/demo/modules/admin/frontend/src/components/SelectFilter/index.vue +110 -0
- fred_admin/demo/modules/admin/frontend/src/components/SelectIcon/index.scss +39 -0
- fred_admin/demo/modules/admin/frontend/src/components/SelectIcon/index.vue +90 -0
- fred_admin/demo/modules/admin/frontend/src/components/StoreFilter/index.vue +356 -0
- fred_admin/demo/modules/admin/frontend/src/components/SvgIcon/index.vue +22 -0
- fred_admin/demo/modules/admin/frontend/src/components/SwitchDark/index.vue +12 -0
- fred_admin/demo/modules/admin/frontend/src/components/TreeFilter/index.scss +44 -0
- fred_admin/demo/modules/admin/frontend/src/components/TreeFilter/index.vue +165 -0
- fred_admin/demo/modules/admin/frontend/src/components/Upload/Img.vue +304 -0
- fred_admin/demo/modules/admin/frontend/src/components/Upload/Imgs.vue +316 -0
- fred_admin/demo/modules/admin/frontend/src/components/WangEditor/index.scss +28 -0
- fred_admin/demo/modules/admin/frontend/src/components/WangEditor/index.vue +154 -0
- fred_admin/demo/modules/admin/frontend/src/config/amapMap.ts +11 -0
- fred_admin/demo/modules/admin/frontend/src/config/index.ts +16 -0
- fred_admin/demo/modules/admin/frontend/src/config/nprogress.ts +12 -0
- fred_admin/demo/modules/admin/frontend/src/directives/index.ts +28 -0
- fred_admin/demo/modules/admin/frontend/src/directives/modules/auth.ts +26 -0
- fred_admin/demo/modules/admin/frontend/src/directives/modules/copy.ts +37 -0
- fred_admin/demo/modules/admin/frontend/src/directives/modules/debounce.ts +31 -0
- fred_admin/demo/modules/admin/frontend/src/directives/modules/draggable.ts +49 -0
- fred_admin/demo/modules/admin/frontend/src/directives/modules/longpress.ts +49 -0
- fred_admin/demo/modules/admin/frontend/src/directives/modules/throttle.ts +41 -0
- fred_admin/demo/modules/admin/frontend/src/directives/modules/waterMarker.ts +36 -0
- fred_admin/demo/modules/admin/frontend/src/enums/httpEnum.ts +35 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/interface/index.ts +32 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useAuthButtons.ts +22 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useDownload.ts +42 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useHandleData.ts +41 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useI18n.ts +51 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useOnline.ts +31 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useSelection.ts +34 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useTable.ts +150 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useTheme.ts +111 -0
- fred_admin/demo/modules/admin/frontend/src/hooks/useTime.ts +38 -0
- fred_admin/demo/modules/admin/frontend/src/languages/index.ts +32 -0
- fred_admin/demo/modules/admin/frontend/src/languages/modules/en.ts +978 -0
- fred_admin/demo/modules/admin/frontend/src/languages/modules/zh.ts +996 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutClassic/index.scss +60 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutClassic/index.vue +62 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutColumns/index.scss +95 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutColumns/index.vue +103 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutTransverse/index.scss +60 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutTransverse/index.vue +61 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutVertical/index.scss +48 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/LayoutVertical/index.vue +56 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Footer/index.scss +11 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Footer/index.vue +9 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/ToolBarLeft.vue +23 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/ToolBarRight.vue +51 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/AssemblySize.vue +37 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/Avatar.vue +79 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/Breadcrumb.vue +122 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/CollapseIcon.vue +21 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/Fullscreen.vue +25 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/InfoDialog.vue +22 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/Language.vue +38 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/Message.vue +109 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/PasswordDialog.vue +81 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/SearchMenu.vue +183 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Header/components/ThemeSetting.vue +12 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Main/components/Maximize.vue +39 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Main/index.scss +10 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Main/index.vue +88 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Menu/SubMenu.vue +85 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Tabs/components/MoreButton.vue +85 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Tabs/index.scss +69 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/Tabs/index.vue +115 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/ThemeDrawer/index.scss +137 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/components/ThemeDrawer/index.vue +191 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/index.vue +42 -0
- fred_admin/demo/modules/admin/frontend/src/layouts/indexAsync.vue +46 -0
- fred_admin/demo/modules/admin/frontend/src/main.ts +45 -0
- fred_admin/demo/modules/admin/frontend/src/routers/index.ts +106 -0
- fred_admin/demo/modules/admin/frontend/src/routers/modules/dynamicRouter.ts +99 -0
- fred_admin/demo/modules/admin/frontend/src/routers/modules/staticRouter.ts +63 -0
- fred_admin/demo/modules/admin/frontend/src/stores/helper/persist.ts +19 -0
- fred_admin/demo/modules/admin/frontend/src/stores/index.ts +8 -0
- fred_admin/demo/modules/admin/frontend/src/stores/interface/index.ts +63 -0
- fred_admin/demo/modules/admin/frontend/src/stores/modules/auth.ts +50 -0
- fred_admin/demo/modules/admin/frontend/src/stores/modules/global.ts +55 -0
- fred_admin/demo/modules/admin/frontend/src/stores/modules/keepAlive.ts +25 -0
- fred_admin/demo/modules/admin/frontend/src/stores/modules/tabs.ts +78 -0
- fred_admin/demo/modules/admin/frontend/src/stores/modules/user.ts +23 -0
- fred_admin/demo/modules/admin/frontend/src/styles/common.scss +129 -0
- fred_admin/demo/modules/admin/frontend/src/styles/element-dark.scss +28 -0
- fred_admin/demo/modules/admin/frontend/src/styles/element.scss +264 -0
- fred_admin/demo/modules/admin/frontend/src/styles/modules/annotation.scss +746 -0
- fred_admin/demo/modules/admin/frontend/src/styles/modules/assembly.scss +714 -0
- fred_admin/demo/modules/admin/frontend/src/styles/modules/device-manager.scss +659 -0
- fred_admin/demo/modules/admin/frontend/src/styles/modules/directives.scss +381 -0
- fred_admin/demo/modules/admin/frontend/src/styles/reset.scss +143 -0
- fred_admin/demo/modules/admin/frontend/src/styles/table-optimization.scss +242 -0
- fred_admin/demo/modules/admin/frontend/src/styles/theme/aside.ts +16 -0
- fred_admin/demo/modules/admin/frontend/src/styles/theme/header.ts +25 -0
- fred_admin/demo/modules/admin/frontend/src/styles/theme/menu.ts +31 -0
- fred_admin/demo/modules/admin/frontend/src/styles/var.scss +2 -0
- fred_admin/demo/modules/admin/frontend/src/typings/global.d.ts +74 -0
- fred_admin/demo/modules/admin/frontend/src/typings/utils.d.ts +17 -0
- fred_admin/demo/modules/admin/frontend/src/typings/window.d.ts +8 -0
- fred_admin/demo/modules/admin/frontend/src/utils/color.ts +59 -0
- fred_admin/demo/modules/admin/frontend/src/utils/dict.ts +17 -0
- fred_admin/demo/modules/admin/frontend/src/utils/eleValidate.ts +14 -0
- fred_admin/demo/modules/admin/frontend/src/utils/errorHandler.ts +28 -0
- fred_admin/demo/modules/admin/frontend/src/utils/index.ts +327 -0
- fred_admin/demo/modules/admin/frontend/src/utils/is/index.ts +125 -0
- fred_admin/demo/modules/admin/frontend/src/utils/mittBus.ts +5 -0
- fred_admin/demo/modules/admin/frontend/src/utils/svg.ts +13 -0
- fred_admin/demo/modules/admin/frontend/src/views/dataBase/fieldType/components/FieldTypeDrawer.vue +89 -0
- fred_admin/demo/modules/admin/frontend/src/views/dataBase/fieldType/index.vue +99 -0
- fred_admin/demo/modules/admin/frontend/src/views/dataBase/tableManage/components/DataBaseDrawer.vue +254 -0
- fred_admin/demo/modules/admin/frontend/src/views/dataBase/tableManage/components/IndexDrawer.vue +226 -0
- fred_admin/demo/modules/admin/frontend/src/views/dataBase/tableManage/components/TableDataDrawer.vue +136 -0
- fred_admin/demo/modules/admin/frontend/src/views/dataBase/tableManage/index.vue +234 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/columnChart/index.scss +0 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/columnChart/index.vue +139 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/lineChart/index.scss +0 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/lineChart/index.vue +123 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/nestedChart/index.scss +0 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/nestedChart/index.vue +97 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/pieChart/index.scss +0 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/pieChart/index.vue +68 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/radarChart/index.scss +0 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/radarChart/index.vue +56 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/waterChart/index.scss +0 -0
- fred_admin/demo/modules/admin/frontend/src/views/echarts/waterChart/index.vue +298 -0
- fred_admin/demo/modules/admin/frontend/src/views/home/index.scss +12 -0
- fred_admin/demo/modules/admin/frontend/src/views/home/index.vue +11 -0
- fred_admin/demo/modules/admin/frontend/src/views/login/components/LoginForm.vue +147 -0
- fred_admin/demo/modules/admin/frontend/src/views/login/index.scss +83 -0
- fred_admin/demo/modules/admin/frontend/src/views/login/index.vue +27 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/complexProTable/index.vue +176 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/components/UserDrawer.vue +152 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/document/index.vue +13 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/treeProTable/index.vue +129 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/useProTable/detail.vue +12 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/useProTable/index.vue +258 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/useSelectFilter/index.vue +184 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/useTreeFilter/detail.vue +12 -0
- fred_admin/demo/modules/admin/frontend/src/views/proTable/useTreeFilter/index.vue +147 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/accountManage/index.vue +244 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/apiAuth/components/ApiDrawer.vue +114 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/apiAuth/components/TokenDrawer.vue +160 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/apiAuth/index.vue +354 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/buttonManage/components/ButtonDrawer.vue +460 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/buttonManage/index.vue +426 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/configManage/components/ConfigDrawer.vue +106 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/configManage/index.vue +116 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/departmentManage/index.vue +7 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/dictManage/index.vue +7 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/menuManage/components/MenuDrawer.vue +262 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/menuManage/index.vue +310 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/organizationManage/components/CompanyDrawer.vue +72 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/organizationManage/components/DepartmentDrawer.vue +120 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/organizationManage/components/TeamDrawer.vue +162 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/organizationManage/components/TeamMemberDrawer.vue +243 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/organizationManage/index.vue +414 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/roleManage/components/RoleButtonDrawer.vue +587 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/roleManage/components/RoleDrawer.vue +77 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/roleManage/components/RoleMenuDrawer.vue +236 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/roleManage/components/RoleUserDrawer.vue +125 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/roleManage/index.vue +143 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/systemLog/components/SystemLogDrawer.vue +207 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/systemLog/index.vue +219 -0
- fred_admin/demo/modules/admin/frontend/src/views/system/timingTask/index.vue +7 -0
- fred_admin/demo/modules/admin/frontend/src/vite-env.d.ts +7 -0
- fred_admin/demo/modules/admin/frontend/tsconfig.json +42 -0
- fred_admin/demo/modules/admin/frontend/vite.config.ts +91 -0
- fred_admin/demo/modules/admin/frontend//321/205/320/231/320/235/321/207/320/273/320/277/321/204/342/225/227/320/263/321/207/320/260/320/221/321/210/320/277/342/224/244/321/206/320/250/320/236.md +100 -0
- fred_admin/demo/requirements.txt +1 -0
- fred_admin/fonts/NotoSansSC-VariableFont_wght.ttf +0 -0
- fred_admin/install_hook.py +1633 -0
- fred_admin/setup.py +18 -0
- fred_admin-1.0.0.dist-info/METADATA +97 -0
- fred_admin-1.0.0.dist-info/RECORD +376 -0
- fred_admin-1.0.0.dist-info/WHEEL +5 -0
- fred_admin-1.0.0.dist-info/entry_points.txt +3 -0
- fred_admin-1.0.0.dist-info/licenses/LICENSE +21 -0
- fred_admin-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineStore } from "pinia";
|
|
2
|
+
import { AuthState } from "@/stores/interface";
|
|
3
|
+
import { getAuthButtonListApi, getAuthMenuListApi } from "@/api/modules/login";
|
|
4
|
+
import { getFlatMenuList, getShowMenuList, getAllBreadcrumbList } from "@/utils";
|
|
5
|
+
|
|
6
|
+
export const useAuthStore = defineStore({
|
|
7
|
+
id: "geeker-auth",
|
|
8
|
+
state: (): AuthState => ({
|
|
9
|
+
// 按钮权限列表
|
|
10
|
+
authButtonList: {},
|
|
11
|
+
// 菜单权限列表
|
|
12
|
+
authMenuList: [],
|
|
13
|
+
// 当前页面的 router name,用来做按钮权限筛选
|
|
14
|
+
routeName: "",
|
|
15
|
+
// 当前页面的菜单名称,用来做按钮权限筛选
|
|
16
|
+
menuName: ""
|
|
17
|
+
}),
|
|
18
|
+
getters: {
|
|
19
|
+
// 按钮权限列表
|
|
20
|
+
authButtonListGet: state => state.authButtonList,
|
|
21
|
+
// 菜单权限列表 ==> 这里的菜单没有经过任何处理
|
|
22
|
+
authMenuListGet: state => state.authMenuList,
|
|
23
|
+
// 菜单权限列表 ==> 左侧菜单栏渲染,需要剔除 isHide == true
|
|
24
|
+
showMenuListGet: state => getShowMenuList(state.authMenuList),
|
|
25
|
+
// 菜单权限列表 ==> 扁平化之后的一维数组菜单,主要用来添加动态路由
|
|
26
|
+
flatMenuListGet: state => getFlatMenuList(state.authMenuList),
|
|
27
|
+
// 递归处理后的所有面包屑导航列表
|
|
28
|
+
breadcrumbListGet: state => getAllBreadcrumbList(state.authMenuList)
|
|
29
|
+
},
|
|
30
|
+
actions: {
|
|
31
|
+
// Get AuthButtonList
|
|
32
|
+
async getAuthButtonList() {
|
|
33
|
+
const { data } = await getAuthButtonListApi();
|
|
34
|
+
this.authButtonList = data;
|
|
35
|
+
},
|
|
36
|
+
// Get AuthMenuList
|
|
37
|
+
async getAuthMenuList() {
|
|
38
|
+
const { data } = await getAuthMenuListApi();
|
|
39
|
+
this.authMenuList = data;
|
|
40
|
+
},
|
|
41
|
+
// Set RouteName
|
|
42
|
+
async setRouteName(name: string) {
|
|
43
|
+
this.routeName = name;
|
|
44
|
+
},
|
|
45
|
+
// Set MenuName
|
|
46
|
+
async setMenuName(name: string) {
|
|
47
|
+
this.menuName = name;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineStore } from "pinia";
|
|
2
|
+
import { GlobalState } from "@/stores/interface";
|
|
3
|
+
import { DEFAULT_PRIMARY } from "@/config";
|
|
4
|
+
import piniaPersistConfig from "@/stores/helper/persist";
|
|
5
|
+
|
|
6
|
+
export const useGlobalStore = defineStore({
|
|
7
|
+
id: "geeker-global",
|
|
8
|
+
// 修改默认值之后,需清除 localStorage 数据
|
|
9
|
+
state: (): GlobalState => ({
|
|
10
|
+
// 布局模式 (纵向:vertical | 经典:classic | 横向:transverse | 分栏:columns)
|
|
11
|
+
layout: "vertical",
|
|
12
|
+
// element 组件大小
|
|
13
|
+
assemblySize: "default",
|
|
14
|
+
// 当前系统语言
|
|
15
|
+
language: null,
|
|
16
|
+
// 当前页面是否全屏
|
|
17
|
+
maximize: false,
|
|
18
|
+
// 主题颜色
|
|
19
|
+
primary: DEFAULT_PRIMARY,
|
|
20
|
+
// 深色模式
|
|
21
|
+
isDark: false,
|
|
22
|
+
// 灰色模式
|
|
23
|
+
isGrey: false,
|
|
24
|
+
// 色弱模式
|
|
25
|
+
isWeak: false,
|
|
26
|
+
// 侧边栏反转
|
|
27
|
+
asideInverted: false,
|
|
28
|
+
// 头部反转
|
|
29
|
+
headerInverted: false,
|
|
30
|
+
// 折叠菜单
|
|
31
|
+
isCollapse: false,
|
|
32
|
+
// 菜单手风琴
|
|
33
|
+
accordion: true,
|
|
34
|
+
// 页面水印
|
|
35
|
+
watermark: false,
|
|
36
|
+
// 面包屑导航
|
|
37
|
+
breadcrumb: true,
|
|
38
|
+
// 面包屑导航图标
|
|
39
|
+
breadcrumbIcon: true,
|
|
40
|
+
// 标签页
|
|
41
|
+
tabs: true,
|
|
42
|
+
// 标签页图标
|
|
43
|
+
tabsIcon: true,
|
|
44
|
+
// 页脚
|
|
45
|
+
footer: true
|
|
46
|
+
}),
|
|
47
|
+
getters: {},
|
|
48
|
+
actions: {
|
|
49
|
+
// Set GlobalState
|
|
50
|
+
setGlobalState(...args: ObjToKeyValArray<GlobalState>) {
|
|
51
|
+
this.$patch({ [args[0]]: args[1] });
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
persist: piniaPersistConfig("geeker-global")
|
|
55
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { KeepAliveState } from "@/stores/interface";
|
|
2
|
+
import { defineStore } from "pinia";
|
|
3
|
+
|
|
4
|
+
export const useKeepAliveStore = defineStore({
|
|
5
|
+
id: "geeker-keepAlive",
|
|
6
|
+
state: (): KeepAliveState => ({
|
|
7
|
+
keepAliveName: []
|
|
8
|
+
}),
|
|
9
|
+
actions: {
|
|
10
|
+
// Add KeepAliveName
|
|
11
|
+
async addKeepAliveName(name: string) {
|
|
12
|
+
if (!this.keepAliveName.includes(name)) {
|
|
13
|
+
this.keepAliveName.push(name);
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
// Remove KeepAliveName
|
|
17
|
+
async removeKeepAliveName(name: string) {
|
|
18
|
+
this.keepAliveName = this.keepAliveName.filter(item => item !== name);
|
|
19
|
+
},
|
|
20
|
+
// Set KeepAliveName
|
|
21
|
+
async setKeepAliveName(keepAliveName: string[] = []) {
|
|
22
|
+
this.keepAliveName = keepAliveName;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import router from "@/routers";
|
|
2
|
+
import piniaPersistConfig from "@/stores/helper/persist";
|
|
3
|
+
import { TabsMenuProps, TabsState } from "@/stores/interface";
|
|
4
|
+
import { getUrlWithParams } from "@/utils";
|
|
5
|
+
import { defineStore } from "pinia";
|
|
6
|
+
import { useKeepAliveStore } from "./keepAlive";
|
|
7
|
+
|
|
8
|
+
const keepAliveStore = useKeepAliveStore();
|
|
9
|
+
|
|
10
|
+
export const useTabsStore = defineStore({
|
|
11
|
+
id: "geeker-tabs",
|
|
12
|
+
state: (): TabsState => ({
|
|
13
|
+
tabsMenuList: []
|
|
14
|
+
}),
|
|
15
|
+
actions: {
|
|
16
|
+
// Add Tabs
|
|
17
|
+
async addTabs(tabItem: TabsMenuProps) {
|
|
18
|
+
if (this.tabsMenuList.every(item => item.path !== tabItem.path)) {
|
|
19
|
+
this.tabsMenuList.push(tabItem);
|
|
20
|
+
}
|
|
21
|
+
// add keepalive
|
|
22
|
+
if (!keepAliveStore.keepAliveName.includes(tabItem.name) && tabItem.isKeepAlive) {
|
|
23
|
+
keepAliveStore.addKeepAliveName(tabItem.path);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
// Remove Tabs
|
|
27
|
+
async removeTabs(tabPath: string, isCurrent: boolean = true) {
|
|
28
|
+
if (isCurrent) {
|
|
29
|
+
this.tabsMenuList.forEach((item, index) => {
|
|
30
|
+
if (item.path !== tabPath) return;
|
|
31
|
+
const nextTab = this.tabsMenuList[index + 1] || this.tabsMenuList[index - 1];
|
|
32
|
+
if (!nextTab) return;
|
|
33
|
+
router.push(nextTab.path);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
// remove keepalive
|
|
37
|
+
const tabItem = this.tabsMenuList.find(item => item.path === tabPath);
|
|
38
|
+
if (tabItem?.isKeepAlive) {
|
|
39
|
+
keepAliveStore.removeKeepAliveName(tabItem.path);
|
|
40
|
+
}
|
|
41
|
+
// set tabs
|
|
42
|
+
this.tabsMenuList = this.tabsMenuList.filter(item => item.path !== tabPath);
|
|
43
|
+
},
|
|
44
|
+
// Close Tabs On Side
|
|
45
|
+
async closeTabsOnSide(path: string, type: "left" | "right") {
|
|
46
|
+
const currentIndex = this.tabsMenuList.findIndex(item => item.path === path);
|
|
47
|
+
if (currentIndex !== -1) {
|
|
48
|
+
const range = type === "left" ? [0, currentIndex] : [currentIndex + 1, this.tabsMenuList.length];
|
|
49
|
+
this.tabsMenuList = this.tabsMenuList.filter((item, index) => {
|
|
50
|
+
return index < range[0] || index >= range[1] || !item.close;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// set keepalive
|
|
54
|
+
const KeepAliveList = this.tabsMenuList.filter(item => item.isKeepAlive);
|
|
55
|
+
keepAliveStore.setKeepAliveName(KeepAliveList.map(item => item.path));
|
|
56
|
+
},
|
|
57
|
+
// Close MultipleTab
|
|
58
|
+
async closeMultipleTab(tabsMenuValue?: string) {
|
|
59
|
+
this.tabsMenuList = this.tabsMenuList.filter(item => {
|
|
60
|
+
return item.path === tabsMenuValue || !item.close;
|
|
61
|
+
});
|
|
62
|
+
// set keepalive
|
|
63
|
+
const KeepAliveList = this.tabsMenuList.filter(item => item.isKeepAlive);
|
|
64
|
+
keepAliveStore.setKeepAliveName(KeepAliveList.map(item => item.path));
|
|
65
|
+
},
|
|
66
|
+
// Set Tabs
|
|
67
|
+
async setTabs(tabsMenuList: TabsMenuProps[]) {
|
|
68
|
+
this.tabsMenuList = tabsMenuList;
|
|
69
|
+
},
|
|
70
|
+
// Set Tabs Title
|
|
71
|
+
async setTabsTitle(title: string) {
|
|
72
|
+
this.tabsMenuList.forEach(item => {
|
|
73
|
+
if (item.path == getUrlWithParams()) item.title = title;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
persist: piniaPersistConfig("geeker-tabs")
|
|
78
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineStore } from "pinia";
|
|
2
|
+
import { UserState } from "@/stores/interface";
|
|
3
|
+
import piniaPersistConfig from "@/stores/helper/persist";
|
|
4
|
+
|
|
5
|
+
export const useUserStore = defineStore({
|
|
6
|
+
id: "fred-user",
|
|
7
|
+
state: (): UserState => ({
|
|
8
|
+
token: "",
|
|
9
|
+
userInfo: { name: "fred" }
|
|
10
|
+
}),
|
|
11
|
+
getters: {},
|
|
12
|
+
actions: {
|
|
13
|
+
// Set Token
|
|
14
|
+
setToken(token: string) {
|
|
15
|
+
this.token = token;
|
|
16
|
+
},
|
|
17
|
+
// Set setUserInfo
|
|
18
|
+
setUserInfo(userInfo: UserState["userInfo"]) {
|
|
19
|
+
this.userInfo = userInfo;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
persist: piniaPersistConfig("fred-user")
|
|
23
|
+
});
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// 模块样式导入
|
|
2
|
+
@use "./modules/annotation";
|
|
3
|
+
@use "./modules/device-manager";
|
|
4
|
+
@use "./modules/assembly";
|
|
5
|
+
@use "./modules/directives";
|
|
6
|
+
|
|
7
|
+
/* flex */
|
|
8
|
+
.flx-center {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
}
|
|
13
|
+
.flx-justify-between {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
}
|
|
18
|
+
.flx-align-center {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* clearfix */
|
|
24
|
+
.clearfix::after {
|
|
25
|
+
display: block;
|
|
26
|
+
height: 0;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
clear: both;
|
|
29
|
+
content: "";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* 文字单行省略号 */
|
|
33
|
+
.sle {
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* 文字多行省略号 */
|
|
40
|
+
.mle {
|
|
41
|
+
display: -webkit-box;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
-webkit-box-orient: vertical;
|
|
44
|
+
-webkit-line-clamp: 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* 文字多了自动換行 */
|
|
48
|
+
.break-word {
|
|
49
|
+
word-break: break-all;
|
|
50
|
+
word-wrap: break-word;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* fade-transform */
|
|
54
|
+
.fade-transform-leave-active,
|
|
55
|
+
.fade-transform-enter-active {
|
|
56
|
+
transition: all 0.2s;
|
|
57
|
+
}
|
|
58
|
+
.fade-transform-enter-from {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
transition: all 0.2s;
|
|
61
|
+
transform: translateX(-30px);
|
|
62
|
+
}
|
|
63
|
+
.fade-transform-leave-to {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transition: all 0.2s;
|
|
66
|
+
transform: translateX(30px);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* breadcrumb-transform */
|
|
70
|
+
.breadcrumb-enter-active {
|
|
71
|
+
transition: all 0.2s;
|
|
72
|
+
}
|
|
73
|
+
.breadcrumb-enter-from,
|
|
74
|
+
.breadcrumb-leave-active {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
transform: translateX(10px);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* scroll bar */
|
|
80
|
+
::-webkit-scrollbar {
|
|
81
|
+
width: 6px;
|
|
82
|
+
height: 6px;
|
|
83
|
+
}
|
|
84
|
+
::-webkit-scrollbar-thumb {
|
|
85
|
+
background-color: var(--el-border-color-darker);
|
|
86
|
+
border-radius: 20px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* nprogress */
|
|
90
|
+
#nprogress .bar {
|
|
91
|
+
background: var(--el-color-primary) !important;
|
|
92
|
+
}
|
|
93
|
+
#nprogress .spinner-icon {
|
|
94
|
+
border-top-color: var(--el-color-primary) !important;
|
|
95
|
+
border-left-color: var(--el-color-primary) !important;
|
|
96
|
+
}
|
|
97
|
+
#nprogress .peg {
|
|
98
|
+
box-shadow:
|
|
99
|
+
0 0 10px var(--el-color-primary),
|
|
100
|
+
0 0 5px var(--el-color-primary) !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* 外边距、内边距全局样式 */
|
|
104
|
+
@for $i from 0 through 100 {
|
|
105
|
+
.mt#{$i} {
|
|
106
|
+
margin-top: #{$i}px !important;
|
|
107
|
+
}
|
|
108
|
+
.mr#{$i} {
|
|
109
|
+
margin-right: #{$i}px !important;
|
|
110
|
+
}
|
|
111
|
+
.mb#{$i} {
|
|
112
|
+
margin-bottom: #{$i}px !important;
|
|
113
|
+
}
|
|
114
|
+
.ml#{$i} {
|
|
115
|
+
margin-left: #{$i}px !important;
|
|
116
|
+
}
|
|
117
|
+
.pt#{$i} {
|
|
118
|
+
padding-top: #{$i}px !important;
|
|
119
|
+
}
|
|
120
|
+
.pr#{$i} {
|
|
121
|
+
padding-right: #{$i}px !important;
|
|
122
|
+
}
|
|
123
|
+
.pb#{$i} {
|
|
124
|
+
padding-bottom: #{$i}px !important;
|
|
125
|
+
}
|
|
126
|
+
.pl#{$i} {
|
|
127
|
+
padding-left: #{$i}px !important;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* 自定义 element 暗黑模式 */
|
|
2
|
+
html.dark {
|
|
3
|
+
/* wangEditor */
|
|
4
|
+
--w-e-toolbar-color: #eeeeee;
|
|
5
|
+
--w-e-toolbar-bg-color: #141414;
|
|
6
|
+
--w-e-textarea-bg-color: #141414;
|
|
7
|
+
--w-e-textarea-color: #eeeeee;
|
|
8
|
+
--w-e-toolbar-active-bg-color: #464646;
|
|
9
|
+
--w-e-toolbar-border-color: var(--el-border-color-darker);
|
|
10
|
+
.w-e-bar-item button:hover,
|
|
11
|
+
.w-e-menu-tooltip-v5::before {
|
|
12
|
+
color: #eeeeee;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* login */
|
|
16
|
+
.login-container {
|
|
17
|
+
background-color: #191919 !important;
|
|
18
|
+
.login-box {
|
|
19
|
+
background-color: rgb(0 0 0 / 80%) !important;
|
|
20
|
+
.login-form {
|
|
21
|
+
box-shadow: rgb(255 255 255 / 12%) 0 2px 10px 2px !important;
|
|
22
|
+
.logo-text {
|
|
23
|
+
color: var(--el-text-color-primary) !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/* el-alert */
|
|
2
|
+
.el-alert {
|
|
3
|
+
border: 1px solid;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* 当前页面最大化 css */
|
|
7
|
+
.main-maximize {
|
|
8
|
+
.aside-split,
|
|
9
|
+
.el-aside,
|
|
10
|
+
.el-header,
|
|
11
|
+
.el-footer,
|
|
12
|
+
.tabs-box {
|
|
13
|
+
display: none !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* mask image */
|
|
18
|
+
.mask-image {
|
|
19
|
+
padding-right: 50px;
|
|
20
|
+
mask-image: linear-gradient(90deg, #000000 0%, #000000 calc(100% - 50px), transparent);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* custom card */
|
|
24
|
+
.card {
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
padding: 20px;
|
|
27
|
+
overflow-x: hidden;
|
|
28
|
+
background-color: var(--el-bg-color);
|
|
29
|
+
border: 1px solid var(--el-border-color-light);
|
|
30
|
+
border-radius: 6px;
|
|
31
|
+
box-shadow: 0 0 12px rgb(0 0 0 / 5%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* ProTable 不需要 card 样式(在组件内使用 ProTable 会使用到) */
|
|
35
|
+
.no-card {
|
|
36
|
+
.card {
|
|
37
|
+
padding: 0;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
border: none;
|
|
40
|
+
border-radius: 0;
|
|
41
|
+
box-shadow: none;
|
|
42
|
+
}
|
|
43
|
+
.table-search {
|
|
44
|
+
padding: 18px 0 0 !important;
|
|
45
|
+
margin-bottom: 0 !important;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* content-box (常用内容盒子) */
|
|
50
|
+
.content-box {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
height: 100%;
|
|
55
|
+
.text {
|
|
56
|
+
margin: 20px 0 30px;
|
|
57
|
+
font-size: 23px;
|
|
58
|
+
font-weight: bold;
|
|
59
|
+
color: var(--el-text-color-regular);
|
|
60
|
+
}
|
|
61
|
+
.el-descriptions {
|
|
62
|
+
width: 100%;
|
|
63
|
+
padding: 40px 0 0;
|
|
64
|
+
.el-descriptions__title {
|
|
65
|
+
font-size: 18px;
|
|
66
|
+
}
|
|
67
|
+
.el-descriptions__label {
|
|
68
|
+
width: 200px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* main-box (树形表格 treeFilter 页面会使用,左右布局 flex) */
|
|
74
|
+
.main-box {
|
|
75
|
+
display: flex;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
.table-box {
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* proTable */
|
|
84
|
+
.table-box,
|
|
85
|
+
.table-main {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex: 1;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 100%;
|
|
91
|
+
|
|
92
|
+
// table-search 表格搜索样式
|
|
93
|
+
.table-search {
|
|
94
|
+
padding: 18px 18px 0;
|
|
95
|
+
margin-bottom: 10px;
|
|
96
|
+
.el-form {
|
|
97
|
+
.el-form-item__content > * {
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 去除时间选择器上下 padding
|
|
102
|
+
.el-range-editor.el-input__wrapper {
|
|
103
|
+
padding: 0 10px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
.operation {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: flex-end;
|
|
110
|
+
margin-bottom: 18px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 表格 header 样式
|
|
115
|
+
.table-header {
|
|
116
|
+
.header-button-lf,
|
|
117
|
+
.header-button-ri {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-wrap: wrap;
|
|
120
|
+
gap: 15px 12px;
|
|
121
|
+
margin-bottom: 15px;
|
|
122
|
+
.el-button:not(.el-input .el-button) {
|
|
123
|
+
margin-left: 0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.header-button-lf {
|
|
127
|
+
float: left;
|
|
128
|
+
}
|
|
129
|
+
.header-button-ri {
|
|
130
|
+
float: right;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// el-table 表格样式
|
|
135
|
+
.el-table {
|
|
136
|
+
flex: 1;
|
|
137
|
+
|
|
138
|
+
// 修复 safari 浏览器表格错位 https://github.com/HalseySpicy/Geeker-Admin/issues/83
|
|
139
|
+
table {
|
|
140
|
+
width: 100%;
|
|
141
|
+
}
|
|
142
|
+
.el-table__header th {
|
|
143
|
+
height: 45px;
|
|
144
|
+
font-size: 15px;
|
|
145
|
+
font-weight: bold;
|
|
146
|
+
color: var(--el-text-color-primary);
|
|
147
|
+
background: var(--el-fill-color-light);
|
|
148
|
+
}
|
|
149
|
+
.el-table__row {
|
|
150
|
+
height: 45px;
|
|
151
|
+
font-size: 14px;
|
|
152
|
+
.move {
|
|
153
|
+
cursor: move;
|
|
154
|
+
.el-icon {
|
|
155
|
+
cursor: move;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// 设置 el-table 中 header 文字不换行,并省略
|
|
161
|
+
.el-table__header .el-table__cell > .cell {
|
|
162
|
+
// white-space: nowrap;
|
|
163
|
+
white-space: wrap;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// 解决表格数据为空时样式不居中问题(仅在element-plus中)
|
|
167
|
+
.el-table__empty-block {
|
|
168
|
+
position: absolute;
|
|
169
|
+
.table-empty {
|
|
170
|
+
line-height: 30px;
|
|
171
|
+
img {
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// table 中 image 图片样式
|
|
178
|
+
.table-image {
|
|
179
|
+
width: 50px;
|
|
180
|
+
height: 50px;
|
|
181
|
+
border-radius: 50%;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// 表格 pagination 样式
|
|
186
|
+
.el-pagination {
|
|
187
|
+
display: flex;
|
|
188
|
+
justify-content: flex-end;
|
|
189
|
+
margin-top: 20px;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* el-table 组件大小 */
|
|
194
|
+
.el-table--small {
|
|
195
|
+
.el-table__header th {
|
|
196
|
+
height: 40px !important;
|
|
197
|
+
font-size: 14px !important;
|
|
198
|
+
}
|
|
199
|
+
.el-table__row {
|
|
200
|
+
height: 40px !important;
|
|
201
|
+
font-size: 13px !important;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
.el-table--large {
|
|
205
|
+
.el-table__header th {
|
|
206
|
+
height: 50px !important;
|
|
207
|
+
font-size: 16px !important;
|
|
208
|
+
}
|
|
209
|
+
.el-table__row {
|
|
210
|
+
height: 50px !important;
|
|
211
|
+
font-size: 15px !important;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* el-drawer */
|
|
216
|
+
.el-drawer {
|
|
217
|
+
.el-drawer__header {
|
|
218
|
+
padding: 16px 20px;
|
|
219
|
+
margin-bottom: 0;
|
|
220
|
+
border-bottom: 1px solid var(--el-border-color-lighter);
|
|
221
|
+
span {
|
|
222
|
+
font-size: 17px;
|
|
223
|
+
line-height: 17px;
|
|
224
|
+
color: var(--el-text-color-primary) !important;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
.el-drawer__footer {
|
|
228
|
+
border-top: 1px solid var(--el-border-color-lighter);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// select 样式
|
|
232
|
+
.el-select {
|
|
233
|
+
width: 100%;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// drawer-form 中存在两列 form-item 样式
|
|
237
|
+
.drawer-multiColumn-form {
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-wrap: wrap;
|
|
240
|
+
.el-form-item {
|
|
241
|
+
width: 47%;
|
|
242
|
+
&:nth-child(2n-1) {
|
|
243
|
+
margin-right: 5%;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* el-dialog */
|
|
250
|
+
.el-dialog {
|
|
251
|
+
padding: 0;
|
|
252
|
+
.el-dialog__header {
|
|
253
|
+
padding: 15px 20px;
|
|
254
|
+
margin: 0;
|
|
255
|
+
border-bottom: 1px solid var(--el-border-color-lighter);
|
|
256
|
+
.el-dialog__title {
|
|
257
|
+
font-size: 17px;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
.el-dialog__body,
|
|
261
|
+
.el-dialog__footer {
|
|
262
|
+
padding: 15px 20px;
|
|
263
|
+
}
|
|
264
|
+
}
|