@ganwei-web/ganwei-pc-cli 6.2.2 → 6.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ganwei-app-6.2.1/moduleConfiguration/copyFile.js +8 -14
- package/ganwei-app-6.2.1/moduleConfiguration/init.js +2 -8
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.babelrc +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.editorconfig +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.env.development +23 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.env.production +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.env.test +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.eslintignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.eslintrc.cjs +178 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.prettierignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.prettierrc.cjs +37 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/auto-imports.d.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/banner.js +9 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/build-version.js +42 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/bulidList.js +26 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/enteryJson.js +108 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/filterStatic.js +64 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/init.js +27 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/look-dir.js +24 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/rollup-options.js +35 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/test.js +3 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/vite-plugin-stats-html.js +595 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/components.d.ts +20 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/env.d.ts +7 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/index.html +20 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/package-lock.json +3965 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/package.json +69 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/pnpm-lock.yaml +5034 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/index-plus-vars.css +93 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/index-plus.css +1 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/index.css +15926 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/pptxjs.css +161 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.css +1135 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.js +1 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.json +1969 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.ttf +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.woff +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.woff2 +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/language/en-US/noPage.json +3 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/language/zh-CN/noPage.json +3 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/language/zh-HK/noPage.json +3 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/themes/dark.css +77 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/themes/default-theme.js +34 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/themes/light.css +79 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/App.vue +198 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/index.scssc +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/linkSetting.scssc +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/sceneSetting.scssc +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/specialTask.scssc +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/style.scssc +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/weekTask.scssc +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/VideoSystem.scss +397 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/el-dialog.scss +58 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/el-drawer.scss +41 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/index.scss +1052 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/login.scss +320 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/mobileStyle.scss +332 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/noDataTips.scss +57 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/reset.scss +1192 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/style-black.scss +1 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/style-white.scss +1 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/style.scss +633 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/videoPlaybackCom.scss +468 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/videoPlayer.scss +441 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/images/logo.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/plugins/encrypt.js +122 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/appFrame.vue +163 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/bottom.vue +15 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/css/bottom.scss +381 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/css/top.scss +49 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/js/Voice.js +345 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/js/bottom.js +102 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/top.vue +114 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/i18n/i18n.js +42 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/i18n/i18nObserver.js +39 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/i18n/vueI18n.js +17 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/toast/index.js +64 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/toast/index.vue +152 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/hostMap.js +9 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/main.js +39 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/Auth.js +83 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/BA.js +81 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/EquipList.js +127 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/Event.js +34 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/GwEcharts.js +9 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/PPT.js +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/RealTime.js +43 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/SystemConfig.js +177 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/Video.js +57 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/VideoTour.js +129 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/WelcomeWord.js +24 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/WorkOrder.js +265 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/videoSystem.js +81 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api.js +35 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/apiFunction.js +200 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/encrypt.js +14 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/http.js +186 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/router.js +31 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/store.js +189 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/types.js +16 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/formValidate.js +25 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/isApp.js +18 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/language.js +45 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/myUtils.js +643 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/timeFormat.js +23 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/timesYMDHMS.js +27 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/views/ganwei-app-empty-page/src/noPage.vue +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/stats.html +356 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/vite.base.config.js +244 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/vite.config.ts +44 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.babelrc +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.editorconfig +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.env.development +23 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.env.production +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.env.test +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.eslintignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.eslintrc.cjs +178 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.prettierignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.prettierrc.cjs +37 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/.stylelintrc.cjs +18 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/auto-imports.d.ts +56 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/components.d.ts +25 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/env.d.ts +21 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/index.html +20 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/package.json +87 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/public/static/language/en-US/home.json +39 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/public/static/language/zh-CN/home.json +39 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/public/static/language/zh-HK/home.json +39 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/App.vue +203 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/assets/images/logo.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/components/Layout/TitleList.vue +20 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/enums/index.ts +24 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/main.ts +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/models/index.ts +91 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/request/api/RealTime.ts +27 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/request/api.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/router.ts +30 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/store.js +189 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/types.js +16 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeMenuItem.vue +95 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeMenus.vue +118 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeMenusEditDrawer.vue +119 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeSnapshots.vue +109 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/chatbot.vue +96 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/eslint.config.js +10 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/css/index.scss +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/img/chatbot.gif +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/img/six.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/index.vue +42 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useLanguageStyle.ts +21 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useManageMenus.ts +38 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useMenus.ts +49 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/usePolling.ts +38 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useRealTime.ts +128 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/stats.html +4975 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/tsconfig.json +58 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/types/gw-app-public.d.ts +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/vite.base.config.ts +233 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-home/vite.config.ts +49 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-index/index.html +1 -2
- package/ganwei-app-6.2.1/packages/ganwei-app-index/public/static/json/config.json +2 -2
- package/ganwei-app-6.2.1/packages/ganwei-app-index/src/components/vue-qrcode-reader/src/misc/util.js +4 -10
- package/ganwei-app-6.2.1/packages/ganwei-app-index/src/types.js +1 -1
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.babelrc +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.editorconfig +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.env.development +23 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.env.production +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.env.test +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.eslintignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.eslintrc.cjs +178 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.prettierignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.prettierrc.cjs +37 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/.stylelintrc.cjs +16 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/auto-imports.d.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/env.d.ts +67 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/index.html +20 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/package.json +79 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/public/static/language/en-US/login.json +48 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/public/static/language/zh-CN/login.json +48 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/public/static/language/zh-HK/login.json +48 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/App.vue +225 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/assets/images/bg.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/assets/images/logo.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/assets/images/refresh.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/components/app-drag/index.vue +183 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/hostMap.ts +11 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/main.ts +19 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/models/index.ts +48 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/request/api/Auth.ts +27 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/request/api.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/router.ts +30 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/Login.vue +99 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/css/login.scss +78 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/js/useLogin.ts +73 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/js/useRememberPassword.ts +48 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/stats.html +4975 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/tsconfig.json +56 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/types/gw-app-public.d.ts +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/vite.base.config.ts +233 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-login/vite.config.ts +51 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.babelrc +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.editorconfig +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.env.development +23 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.env.production +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.env.test +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.eslintignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.eslintrc.cjs +178 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.prettierignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.prettierrc.cjs +37 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.stylelintrc.cjs +17 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/auto-imports.d.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/env.d.ts +21 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/index.html +20 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/package.json +85 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/public/static/language/en-US/setPage.json +25 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/public/static/language/zh-CN/setPage.json +25 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/public/static/language/zh-HK/setPage.json +25 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/App.vue +202 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/assets/images/logo.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/components/buttonModeSelect/index.vue +190 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/hostMap.ts +11 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/main.ts +24 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/models/index.ts +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/request/api/Auth.ts +21 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/request/api.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/router.ts +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/store.js +189 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/types.js +16 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useChangeLanguage.ts +19 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useChangeTheme.ts +16 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useClearCache.ts +26 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useJavaFunc.ts +146 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useLogout.ts +52 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/setPage.vue +120 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/stats.html +4975 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/tsconfig.json +58 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/types/gw-app-public.d.ts +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/vite.base.config.ts +233 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-set-page/vite.config.ts +49 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.babelrc +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.editorconfig +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.env.development +23 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.env.production +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.env.test +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.eslintignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.eslintrc.cjs +178 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.prettierignore +13 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/.prettierrc.cjs +37 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/auto-imports.d.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/components.d.ts +14 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/env.d.ts +7 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/index.html +18 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/package.json +77 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/public/static/language/en-US/template.json +3 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/public/static/language/zh-CN/template.json +3 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/public/static/language/zh-HK/template.json +3 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/App.vue +202 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/assets/images/logo.png +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/components/buttonModeSelect/index.vue +190 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/hostMap.ts +11 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/main.ts +24 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/models/index.ts +0 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/request/api/Auth.ts +21 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/request/api.ts +5 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/router.ts +29 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/store.js +189 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/types.js +16 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/src/views/ganwei-app-template/src/template.vue +22 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/tsconfig.json +58 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/types/gw-app-public.d.ts +4 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/vite.base.config.js +246 -0
- package/ganwei-app-6.2.1/packages/ganwei-app-template/vite.config.ts +44 -0
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/public/static/json/config.json +47 -43
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/components/isDebug/isDebug.vue +2 -9
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/types.js +1 -1
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/views/index.js +0 -3
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/views/jumpIframe/preloadMethod.js +3 -3
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-login/src/assets/css/login.scss +50 -30
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-login/src/types.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import path, { resolve } from 'path'
|
|
2
|
+
import { loadEnv } from 'vite'
|
|
3
|
+
import { visualizer } from "rollup-plugin-visualizer"
|
|
4
|
+
import { viteExternalsPlugin } from 'vite-plugin-externals'
|
|
5
|
+
import viteCompression from "vite-plugin-compression";
|
|
6
|
+
import autoprefixer from 'autoprefixer';
|
|
7
|
+
import stats from "./build/vite-plugin-stats-html"
|
|
8
|
+
import { externalTagPlugin, externalTag } from "./build/enteryJson.js";
|
|
9
|
+
|
|
10
|
+
import { name } from './package.json'
|
|
11
|
+
import addressMapping from '../../moduleConfiguration/addressMapping.json'
|
|
12
|
+
const VITE_APP_INDEX_PORT = addressMapping['ganwei-app-index']
|
|
13
|
+
const isFrame = name === 'ganwei-app-index'
|
|
14
|
+
|
|
15
|
+
const VITE_APP_TARGET_URL = loadEnv('development', process.cwd()).VITE_APP_TARGET_URL
|
|
16
|
+
const VITE_APP_THIS_URL = loadEnv('development', process.cwd()).VITE_APP_THIS_URL
|
|
17
|
+
const VITE_APP_PORT = Number(loadEnv('development', process.cwd()).VITE_APP_PORT)
|
|
18
|
+
|
|
19
|
+
export const baseConfig = {
|
|
20
|
+
build: {
|
|
21
|
+
sourcemap: false, // 构建后是否生成 source map 文件
|
|
22
|
+
chunkSizeWarningLimit: 1500, // 规定触发警告的 chunk(文件块) 大小
|
|
23
|
+
cssCodeSplit: false,
|
|
24
|
+
// brotliSize: false, // 禁用压缩大小报告
|
|
25
|
+
minify: 'esbuild',
|
|
26
|
+
terserOptions: {
|
|
27
|
+
compress: {
|
|
28
|
+
drop_console: true, // 生产环境去除console
|
|
29
|
+
drop_debugger: true, // 生产环境去除debugger
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
rollupOptions: { // 自定义底层的 Rollup 打包配置 ('[name]'.includes("ganwe")?'[name]/':'')
|
|
33
|
+
output: {
|
|
34
|
+
dir: isFrame ? path.resolve(__dirname, "../../dist/") : path.resolve(__dirname, `../../dist/${name}`),
|
|
35
|
+
assetFileNames: (assetInfo) => {
|
|
36
|
+
if (!assetInfo.name) {
|
|
37
|
+
throw Error("assetInfo.name is empty")
|
|
38
|
+
}
|
|
39
|
+
const info = assetInfo.name.split(".");
|
|
40
|
+
let extType = info[info.length - 1];
|
|
41
|
+
if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType)) {
|
|
42
|
+
extType = 'Images';
|
|
43
|
+
}
|
|
44
|
+
return `assets/${extType}/[name]-[hash][extname]`;
|
|
45
|
+
},
|
|
46
|
+
chunkFileNames: 'assets/js/[name]-[hash].js',
|
|
47
|
+
entryFileNames: 'assets/js/[name]-[hash].js',
|
|
48
|
+
compact: false,
|
|
49
|
+
manualChunks (id) {
|
|
50
|
+
if (id.includes('node_modules')) {
|
|
51
|
+
return 'vendor';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
emptyOutDir: true,
|
|
58
|
+
},
|
|
59
|
+
resolve: {
|
|
60
|
+
alias: [
|
|
61
|
+
{
|
|
62
|
+
find: "@",
|
|
63
|
+
replacement: resolve(__dirname, "src")
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
find: "@static",
|
|
67
|
+
replacement: resolve(__dirname, "static")
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
find: "@assets",
|
|
71
|
+
replacement: resolve(__dirname, "src/assets")
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
find: "@views",
|
|
75
|
+
replacement: resolve(__dirname, "src/views")
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
// 忽略后缀名的配置选项, 添加 .vue 选项时要记得原本默认忽略的选项也要手动写入
|
|
79
|
+
extensions: ['.mjs', '.js', '.json', '.vue']
|
|
80
|
+
},
|
|
81
|
+
css: {
|
|
82
|
+
postcss: {
|
|
83
|
+
plugins: [
|
|
84
|
+
autoprefixer({
|
|
85
|
+
overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8'],
|
|
86
|
+
}),
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
preprocessorOptions: {
|
|
90
|
+
// 全局样式引入
|
|
91
|
+
scss: {
|
|
92
|
+
additionalData: '@use "./src/assets/css/style.scss" as *;',
|
|
93
|
+
javascriptEnabled: true
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const development = {
|
|
100
|
+
base: '',
|
|
101
|
+
mode: 'development', // 模式
|
|
102
|
+
define: {
|
|
103
|
+
"process.env.NODE_ENV": "'development'"
|
|
104
|
+
},
|
|
105
|
+
server: {
|
|
106
|
+
headers: {
|
|
107
|
+
"Access-Control-Allow-Origin": "*"
|
|
108
|
+
},
|
|
109
|
+
cors: { credentials: true, methods: "PUT,POST,GET,DELETE,OPTIONS", origin: VITE_APP_INDEX_PORT },
|
|
110
|
+
host: VITE_APP_THIS_URL, // 指定服务器应该监听哪个 IP 地址
|
|
111
|
+
port: VITE_APP_PORT, // 端口
|
|
112
|
+
strictPort: true, // 若端口已被占用,尝试下移一格端口
|
|
113
|
+
https: false, // 启用 TLS + HTTP/2
|
|
114
|
+
open: name === 'ganwei-app-login',
|
|
115
|
+
proxy: {
|
|
116
|
+
'/api': {
|
|
117
|
+
target: VITE_APP_TARGET_URL,
|
|
118
|
+
changeOrigin: true,
|
|
119
|
+
secure: false,
|
|
120
|
+
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
|
121
|
+
headers: {
|
|
122
|
+
Referer: VITE_APP_TARGET_URL
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
'/IoT': {
|
|
126
|
+
target: VITE_APP_TARGET_URL,
|
|
127
|
+
changeOrigin: true,
|
|
128
|
+
secure: false,
|
|
129
|
+
rewrite: (path) => path.replace(/^\/IoT/, '/IoT'),
|
|
130
|
+
headers: {
|
|
131
|
+
Referer: VITE_APP_TARGET_URL
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
'/monitor': {
|
|
135
|
+
target: VITE_APP_TARGET_URL,
|
|
136
|
+
changeOrigin: true,
|
|
137
|
+
secure: false,
|
|
138
|
+
ws: true,
|
|
139
|
+
rewrite: (path) => path.replace(/^\/monitor/, '/monitor'),
|
|
140
|
+
headers: {
|
|
141
|
+
Referer: VITE_APP_TARGET_URL
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
'/downFileNotify': {
|
|
145
|
+
target: VITE_APP_TARGET_URL,
|
|
146
|
+
changeOrigin: true,
|
|
147
|
+
secure: false,
|
|
148
|
+
ws: true,
|
|
149
|
+
rewrite: (path) => path.replace(/^\/downFileNotify/, '/downFileNotify'),
|
|
150
|
+
headers: {
|
|
151
|
+
Referer: VITE_APP_TARGET_URL
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
'/workOrder': {
|
|
155
|
+
target: VITE_APP_TARGET_URL,
|
|
156
|
+
changeOrigin: true,
|
|
157
|
+
secure: false,
|
|
158
|
+
ws: true,
|
|
159
|
+
rewrite: (path) => path.replace(/^\/workOrder/, '/workOrder'),
|
|
160
|
+
headers: {
|
|
161
|
+
Referer: VITE_APP_TARGET_URL
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
'/DownloadFile': {
|
|
165
|
+
target: VITE_APP_TARGET_URL,
|
|
166
|
+
changeOrigin: true,
|
|
167
|
+
secure: false,
|
|
168
|
+
ws: true,
|
|
169
|
+
rewrite: (path) => path.replace(/^\/DownloadFile/, '/DownloadFile'),
|
|
170
|
+
headers: {
|
|
171
|
+
Referer: VITE_APP_TARGET_URL
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
'/jdsso': {
|
|
175
|
+
target: VITE_APP_TARGET_URL,
|
|
176
|
+
changeOrigin: true,
|
|
177
|
+
secure: false,
|
|
178
|
+
ws: true,
|
|
179
|
+
rewrite: (path) => path.replace(/^\/jdsso/, '/jdsso'),
|
|
180
|
+
headers: {
|
|
181
|
+
Referer: VITE_APP_TARGET_URL
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
'/eGroupNotify': {
|
|
185
|
+
target: VITE_APP_TARGET_URL,
|
|
186
|
+
changeOrigin: true,
|
|
187
|
+
secure: false,
|
|
188
|
+
ws: true,
|
|
189
|
+
rewrite: (path) => path.replace(/^\/eGroupNotify/, '/eGroupNotify'),
|
|
190
|
+
headers: {
|
|
191
|
+
Referer: VITE_APP_TARGET_URL
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
force: true, // 强制使依赖预构建
|
|
196
|
+
hmr: { // 禁用或配置 HMR 连接
|
|
197
|
+
|
|
198
|
+
},
|
|
199
|
+
watch: {},
|
|
200
|
+
fs: {
|
|
201
|
+
strict: false, // 限制为工作区 root 路径以外的文件的访问
|
|
202
|
+
allow: [], // 限制哪些文件可以通过 /@fs/ 路径提供服务
|
|
203
|
+
deny: ['.env', '.env.*', '*.{pem,crt}'], // 用于限制 Vite 开发服务器提供敏感文件的黑名单
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
plugins: [
|
|
207
|
+
externalTagPlugin(externalTag.filter(i => i.mode === 'dev'))
|
|
208
|
+
],
|
|
209
|
+
...baseConfig
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export const production = {
|
|
213
|
+
base: isFrame ? `` : `/APP/${name}/`,
|
|
214
|
+
mode: 'production', // 模式,
|
|
215
|
+
define: {
|
|
216
|
+
"process.env.NODE_ENV": "'production'"
|
|
217
|
+
},
|
|
218
|
+
plugins: [
|
|
219
|
+
visualizer({
|
|
220
|
+
open: false, //注意这里要设置为true,否则无效
|
|
221
|
+
gzipSize: true,
|
|
222
|
+
}),
|
|
223
|
+
viteExternalsPlugin({
|
|
224
|
+
vue: 'Vue',
|
|
225
|
+
'element-plus': 'ElementPlus',
|
|
226
|
+
axios: 'axios',
|
|
227
|
+
'vue-i18n': 'VueI18n',
|
|
228
|
+
'vue-router': 'VueRouter',
|
|
229
|
+
}),
|
|
230
|
+
// gzip压缩 生产环境生成 .gz 文件
|
|
231
|
+
viteCompression({
|
|
232
|
+
verbose: true,
|
|
233
|
+
disable: false,
|
|
234
|
+
threshold: 10240,
|
|
235
|
+
algorithm: "gzip",
|
|
236
|
+
ext: ".gz",
|
|
237
|
+
}),
|
|
238
|
+
stats({
|
|
239
|
+
filename: "stats.html",
|
|
240
|
+
}),
|
|
241
|
+
externalTagPlugin(externalTag)
|
|
242
|
+
],
|
|
243
|
+
...baseConfig
|
|
244
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineConfig, loadEnv } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
// import eslintPlugin from 'vite-plugin-eslint' //导入包
|
|
4
|
+
import { createHtmlPlugin } from 'vite-plugin-html'
|
|
5
|
+
import getEntryPath from "./build/enteryJson.js";
|
|
6
|
+
|
|
7
|
+
import { development, production } from './vite.base.config';
|
|
8
|
+
|
|
9
|
+
const htmlParams = {
|
|
10
|
+
minify: true,
|
|
11
|
+
pages: getEntryPath
|
|
12
|
+
}
|
|
13
|
+
const Vue3Plugins = [
|
|
14
|
+
vue(),
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
export default ({ mode }) => {
|
|
18
|
+
const baseConfig = mode === 'development' ? development : production
|
|
19
|
+
|
|
20
|
+
return defineConfig({
|
|
21
|
+
root: __dirname, // 项目根目录(index.html 文件所在的位置),
|
|
22
|
+
base: baseConfig.base,
|
|
23
|
+
mode: baseConfig.mode,
|
|
24
|
+
publicDir: 'public', // 静态资源服务的文件夹
|
|
25
|
+
// cacheDir: path.resolve(__dirname, '/node_modules/.vite'), // 存储缓存文件的目录
|
|
26
|
+
define: baseConfig.define,
|
|
27
|
+
plugins: [
|
|
28
|
+
...Vue3Plugins,
|
|
29
|
+
// 增加下面的配置项,这样在运行时就能检查eslint规范
|
|
30
|
+
// eslintPlugin({
|
|
31
|
+
// include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue'],
|
|
32
|
+
// exclude: ['./node_modules/**', './src/types/**', '/static/**', './src/components/qrcodeReader/**', './src/components/vue-qrcode-reader/**'],
|
|
33
|
+
// cache: false
|
|
34
|
+
// }),
|
|
35
|
+
createHtmlPlugin(htmlParams),
|
|
36
|
+
...baseConfig.plugins
|
|
37
|
+
],
|
|
38
|
+
resolve: baseConfig.resolve,
|
|
39
|
+
// transpileDependencies: ["webrtc-adapter"],
|
|
40
|
+
css: baseConfig.css,
|
|
41
|
+
server: baseConfig.server,
|
|
42
|
+
build: baseConfig.build
|
|
43
|
+
})
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# https://editorconfig.org
|
|
2
|
+
root = true # 根目录的配置文件,编辑器会由当前目录向上查找,如果找到 `roor = true` 的文件,则不再查找
|
|
3
|
+
|
|
4
|
+
[*] # 匹配所有的文件
|
|
5
|
+
indent_style = space # 空格缩进
|
|
6
|
+
indent_size = 4 # 缩进空格为4个
|
|
7
|
+
end_of_line = lf # 文件换行符是 linux 的 `\n`
|
|
8
|
+
charset = utf-8 # 文件编码是 utf-8
|
|
9
|
+
trim_trailing_whitespace = true # 不保留行末的空格
|
|
10
|
+
insert_final_newline = true # 文件末尾添加一个空行
|
|
11
|
+
curly_bracket_next_line = false # 大括号不另起一行
|
|
12
|
+
spaces_around_operators = true # 运算符两遍都有空格
|
|
13
|
+
indent_brace_style = 1tbs # 条件语句格式是 1tbs
|
|
14
|
+
|
|
15
|
+
[*.js] # 对所有的 js 文件生效
|
|
16
|
+
quote_type = single # 字符串使用单引号
|
|
17
|
+
|
|
18
|
+
[*.{html,less,css,json}] # 对所有 html, less, css, json 文件生效
|
|
19
|
+
quote_type = double # 字符串使用双引号
|
|
20
|
+
|
|
21
|
+
[package.json] # 对 package.json 生效
|
|
22
|
+
indent_size = 2 # 使用2个空格缩进
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## 开发环境
|
|
2
|
+
|
|
3
|
+
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
|
|
4
|
+
NODE_ENV = "development"
|
|
5
|
+
|
|
6
|
+
# 图片路径
|
|
7
|
+
VITE_IMAGE_BASE = "/static/images/"
|
|
8
|
+
|
|
9
|
+
# 根路径
|
|
10
|
+
VITE_BASE_URL = ""
|
|
11
|
+
|
|
12
|
+
# 标题
|
|
13
|
+
VITE_APP_TITLE = ''
|
|
14
|
+
|
|
15
|
+
# API请求前缀
|
|
16
|
+
VITE_APP_BASE_API = ''
|
|
17
|
+
|
|
18
|
+
# 本地地址
|
|
19
|
+
VITE_APP_THIS_URL = '127.0.0.1'
|
|
20
|
+
|
|
21
|
+
VITE_APP_FRAME = 'ganwei-app-index'
|
|
22
|
+
|
|
23
|
+
VITE_APP_LOGIN = 'ganwei-app-login'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
## 生产环境
|
|
2
|
+
|
|
3
|
+
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
|
|
4
|
+
NODE_ENV = "production"
|
|
5
|
+
|
|
6
|
+
# 图片路径
|
|
7
|
+
VITE_IMAGE_BASE = "/APP/static/images/"
|
|
8
|
+
|
|
9
|
+
# 根路径
|
|
10
|
+
VITE_BASE_URL = "/APP"
|
|
11
|
+
|
|
12
|
+
# 标题
|
|
13
|
+
VITE_APP_TITLE = ''
|
|
14
|
+
|
|
15
|
+
# 端口
|
|
16
|
+
VITE_APP_PORT = 0
|
|
17
|
+
|
|
18
|
+
# API请求前缀
|
|
19
|
+
VITE_APP_BASE_API = ''
|
|
20
|
+
|
|
21
|
+
# proxy代理配置
|
|
22
|
+
VITE_APP_TARGET_URL = 'https://139.159.205.154:44380/'
|
|
23
|
+
|
|
24
|
+
# 本地地址
|
|
25
|
+
VITE_APP_THIS_URL = '127.0.0.1'
|
|
26
|
+
|
|
27
|
+
VITE_APP_FRAME = 'ganwei-app-index'
|
|
28
|
+
|
|
29
|
+
VITE_APP_LOGIN = 'ganwei-app-login'
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## 测试环境
|
|
2
|
+
|
|
3
|
+
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
|
|
4
|
+
NODE_ENV = "test"
|
|
5
|
+
|
|
6
|
+
# 图片路径
|
|
7
|
+
VITE_IMAGE_BASE = "/APP/static/images/"
|
|
8
|
+
|
|
9
|
+
# 标题
|
|
10
|
+
VITE_APP_TITLE = ''
|
|
11
|
+
|
|
12
|
+
# 端口
|
|
13
|
+
VITE_APP_PORT = 7777
|
|
14
|
+
|
|
15
|
+
# API请求前缀
|
|
16
|
+
VITE_APP_BASE_API = ''
|
|
17
|
+
|
|
18
|
+
# proxy代理配置
|
|
19
|
+
VITE_APP_TARGET_URL = ''
|
|
20
|
+
|
|
21
|
+
# 本地地址
|
|
22
|
+
VITE_APP_THIS_URL = ''
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
+
module.exports = {
|
|
3
|
+
globals: {
|
|
4
|
+
myJavaFun: 'readonly'
|
|
5
|
+
},
|
|
6
|
+
env: {
|
|
7
|
+
browser: true,
|
|
8
|
+
es2021: true,
|
|
9
|
+
node: true
|
|
10
|
+
},
|
|
11
|
+
extends: [
|
|
12
|
+
'eslint:recommended',
|
|
13
|
+
'plugin:vue/vue3-essential',
|
|
14
|
+
'plugin:@typescript-eslint/recommended'
|
|
15
|
+
// 'plugin:prettier/recommended' // 解决ESlint和Prettier冲突
|
|
16
|
+
],
|
|
17
|
+
overrides: [],
|
|
18
|
+
parser: 'vue-eslint-parser',
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 'latest',
|
|
21
|
+
sourceType: 'module',
|
|
22
|
+
parser: '@typescript-eslint/parser',
|
|
23
|
+
ecmaFeatures: {
|
|
24
|
+
jsx: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
plugins: ['vue', '@typescript-eslint', 'simple-import-sort'],
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
下面这些rules是用来设置从插件来的规范代码的规则,使用必须去掉前缀eslint-plugin-
|
|
31
|
+
主要有如下的设置规则,可以设置字符串也可以设置数字,两者效果一致
|
|
32
|
+
"off" -> 0 关闭规则
|
|
33
|
+
"warn" -> 1 开启警告规则
|
|
34
|
+
"error" -> 2 开启错误规则
|
|
35
|
+
*/
|
|
36
|
+
// 参数说明:
|
|
37
|
+
// 参数1 : 错误等级
|
|
38
|
+
// 参数2 : 处理方式
|
|
39
|
+
rules: {
|
|
40
|
+
"simple-import-sort/imports": [
|
|
41
|
+
"error",
|
|
42
|
+
{
|
|
43
|
+
groups: [
|
|
44
|
+
// node_modulse packages
|
|
45
|
+
["^vue", "^element", "^@(?!ganwei)\\w", '^@?\\w'],
|
|
46
|
+
// @ganwei private packages
|
|
47
|
+
["^@ganwei"],
|
|
48
|
+
// alias or relative path
|
|
49
|
+
["^@/", "'^\\.\\.(?!/?$)', '^\\.\\./?$'"]
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"simple-import-sort/exports": "error",
|
|
54
|
+
// allow async-await
|
|
55
|
+
'generator-star-spacing': 'off',
|
|
56
|
+
// allow debugger during development
|
|
57
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
58
|
+
|
|
59
|
+
'prefer-promise-reject-errors': 0,
|
|
60
|
+
'space-unary-ops': 0,
|
|
61
|
+
'no-unused-expressions': 0,
|
|
62
|
+
'no-useless-return': 0,
|
|
63
|
+
'standard/no-callback-literal': 0,
|
|
64
|
+
'import/first': 0,
|
|
65
|
+
'import/export': 0,
|
|
66
|
+
'no-mixed-operators': 0,
|
|
67
|
+
'no-use-before-define': 0,
|
|
68
|
+
'no-useless-escape': 0,
|
|
69
|
+
// 允许使用分号
|
|
70
|
+
semi: [0, 'never'],
|
|
71
|
+
// 取消文件结尾处需要换行符
|
|
72
|
+
'eol-last': 0,
|
|
73
|
+
// 允许使用==
|
|
74
|
+
eqeqeq: 0,
|
|
75
|
+
// 缩进使用不做限制
|
|
76
|
+
indent: 0,
|
|
77
|
+
// 允许使用tab
|
|
78
|
+
'no-tabs': 0,
|
|
79
|
+
// 函数圆括号之前没有空格
|
|
80
|
+
//'space-before-function-paren': [2, "never"],
|
|
81
|
+
'space-before-function-paren': 0, //这句话表示在函数后可以不加空格
|
|
82
|
+
// 不要求块内空格填充格式
|
|
83
|
+
'padded-blocks': 0,
|
|
84
|
+
// 不限制变量一起声明
|
|
85
|
+
'one-var': 0,
|
|
86
|
+
// debugger使用
|
|
87
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
88
|
+
// 开发模式允许使用console
|
|
89
|
+
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
90
|
+
// 条件语句中复制操作符需要用圆括号括起来
|
|
91
|
+
'no-cond-assign': [2, 'except-parens'],
|
|
92
|
+
// 允许使用条件表达式使用常量
|
|
93
|
+
'no-constant-condition': 0,
|
|
94
|
+
// 单行可忽略大括号,多行不可忽略
|
|
95
|
+
curly: [2, 'multi-line'],
|
|
96
|
+
// 不允许使用var变量
|
|
97
|
+
'no-var': 2,
|
|
98
|
+
// 不允许出现多个空格
|
|
99
|
+
'no-multi-spaces': [
|
|
100
|
+
'error',
|
|
101
|
+
{
|
|
102
|
+
ignoreEOLComments: true
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
camelcase: 0,
|
|
106
|
+
// 对象字面量的键值空格风格
|
|
107
|
+
'key-spacing': 2,
|
|
108
|
+
// if语句包含一个return语句, else就多余
|
|
109
|
+
'no-else-return': 2,
|
|
110
|
+
// 建议将经常出现的数字提取为变量
|
|
111
|
+
'no-magic-numbers': [
|
|
112
|
+
0,
|
|
113
|
+
{
|
|
114
|
+
ignoreArrayIndexes: true
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
// 不允许重复声明变量
|
|
118
|
+
'no-redeclare': [
|
|
119
|
+
2,
|
|
120
|
+
{
|
|
121
|
+
builtinGlobals: true
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
// 立即执行函数风格
|
|
125
|
+
'wrap-iife': [2, 'inside'],
|
|
126
|
+
// 不允许圆括号中出现空格
|
|
127
|
+
'space-in-parens': [2, 'never'],
|
|
128
|
+
// 确保运算符周围有空格
|
|
129
|
+
'space-infix-ops': 2,
|
|
130
|
+
// 强制点号与属性同一行
|
|
131
|
+
'dot-location': [2, 'property'],
|
|
132
|
+
// 强制单行代码使用空格
|
|
133
|
+
'block-spacing': [2, 'always'],
|
|
134
|
+
// 约束for-in使用hasOwnProperty判断
|
|
135
|
+
'guard-for-in': 0,
|
|
136
|
+
// 采用one true brace style大括号风格
|
|
137
|
+
'brace-style': [
|
|
138
|
+
2,
|
|
139
|
+
'1tbs',
|
|
140
|
+
{
|
|
141
|
+
allowSingleLine: true
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
// 统一逗号周围空格风格
|
|
145
|
+
'comma-spacing': [
|
|
146
|
+
2,
|
|
147
|
+
{
|
|
148
|
+
before: false,
|
|
149
|
+
after: true
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
// 禁止出现多个空行
|
|
153
|
+
'no-multiple-empty-lines': [
|
|
154
|
+
2,
|
|
155
|
+
{
|
|
156
|
+
max: 1,
|
|
157
|
+
maxEOF: 2
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
// 允许箭头函数不使用圆括号
|
|
161
|
+
'arrow-parens': 0,
|
|
162
|
+
// 规范generator函数的使用
|
|
163
|
+
//'generator-star-spacing': [2, {'before': false, 'after': true}],
|
|
164
|
+
// 要求在块级
|
|
165
|
+
'lines-around-comment': [
|
|
166
|
+
2,
|
|
167
|
+
{
|
|
168
|
+
beforeBlockComment: true,
|
|
169
|
+
afterBlockComment: false,
|
|
170
|
+
beforeLineComment: false,
|
|
171
|
+
afterLineComment: false
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"@typescript-eslint/no-this-alias": ["off"],
|
|
175
|
+
'vue/multi-word-component-names': 'off', //关闭组件命名规则,
|
|
176
|
+
'new-cap': ['error', { "newIsCap": true, capIsNew: false }]
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// (x)=>{},单个参数箭头函数是否显示小括号。(always:始终显示;avoid:省略括号。默认:always)
|
|
3
|
+
arrowParens: "avoid",
|
|
4
|
+
// 开始标签的右尖括号是否跟随在最后一行属性末尾,默认false
|
|
5
|
+
bracketSameLine: false,
|
|
6
|
+
// 对象字面量的括号之间打印空格 (true - Example: { foo: bar } ; false - Example: {foo:bar})
|
|
7
|
+
bracketSpacing: false,
|
|
8
|
+
// 是否格式化一些文件中被嵌入的代码片段的风格(auto|off;默认auto)
|
|
9
|
+
embeddedLanguageFormatting: "off",
|
|
10
|
+
// 指定 HTML 文件的空格敏感度 (css|strict|ignore;默认css)
|
|
11
|
+
htmlWhitespaceSensitivity: "css",
|
|
12
|
+
// 当文件已经被 Prettier 格式化之后,是否会在文件顶部插入一个特殊的 @format 标记,默认false
|
|
13
|
+
insertPragma: false,
|
|
14
|
+
// 在 JSX 中使用单引号替代双引号,默认false
|
|
15
|
+
jsxSingleQuote: false,
|
|
16
|
+
// 每行最多字符数量,超出换行(默认80)
|
|
17
|
+
printWidth: 200,
|
|
18
|
+
// 超出打印宽度 (always | never | preserve )
|
|
19
|
+
proseWrap: "preserve",
|
|
20
|
+
// 对象属性是否使用引号(as-needed | consistent | preserve;默认as-needed:对象的属性需要加引号才添加;)
|
|
21
|
+
quoteProps: "as-needed",
|
|
22
|
+
// 是否只格式化在文件顶部包含特定注释(@prettier| @format)的文件,默认false
|
|
23
|
+
requirePragma: false,
|
|
24
|
+
// 结尾添加分号
|
|
25
|
+
semi: false,
|
|
26
|
+
// 使用单引号 (true:单引号;false:双引号)
|
|
27
|
+
singleQuote: false,
|
|
28
|
+
// 缩进空格数,默认2个空格
|
|
29
|
+
tabWidth: 4,
|
|
30
|
+
// 元素末尾是否加逗号,默认es5: ES5中的 objects, arrays 等会添加逗号,TypeScript 中的 type 后不加逗号
|
|
31
|
+
trailingComma: "none",
|
|
32
|
+
// 指定缩进方式,空格或tab,默认false,即使用空格
|
|
33
|
+
useTabs: false,
|
|
34
|
+
// vue 文件中是否缩进 <style> 和 <script> 标签,默认 false
|
|
35
|
+
vueIndentScriptAndStyle: false,
|
|
36
|
+
singleAttributePerLine: false
|
|
37
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"fix": true,
|
|
3
|
+
"extends": ["stylelint-config-standard-scss", "stylelint-config-clean-order", "stylelint-config-recommended-vue"],
|
|
4
|
+
rules: {
|
|
5
|
+
'selector-pseudo-element-no-unknown': [
|
|
6
|
+
true,
|
|
7
|
+
{ ignorePseudoElements: ['v-deep'] },
|
|
8
|
+
],
|
|
9
|
+
"function-no-unknown": [
|
|
10
|
+
true,
|
|
11
|
+
{ ignoreFunctions: ['constant'] }
|
|
12
|
+
],
|
|
13
|
+
// TODO
|
|
14
|
+
'selector-class-pattern': null,
|
|
15
|
+
"custom-property-pattern": null,
|
|
16
|
+
'no-descending-specificity': null
|
|
17
|
+
}
|
|
18
|
+
}
|