@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,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"rootDir": ".",
|
|
4
|
+
"target": "esnext",
|
|
5
|
+
/** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */
|
|
6
|
+
"useDefineForClassFields": true,
|
|
7
|
+
"module": "esnext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
/** TS 严格模式 */
|
|
10
|
+
"strict": true,
|
|
11
|
+
"jsx": "preserve",
|
|
12
|
+
"importHelpers": true,
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
/** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"esModuleInterop": true,
|
|
20
|
+
"lib": [
|
|
21
|
+
"esnext",
|
|
22
|
+
"dom"
|
|
23
|
+
],
|
|
24
|
+
"skipLibCheck": true,
|
|
25
|
+
"types": [
|
|
26
|
+
"node",
|
|
27
|
+
"vite/client",
|
|
28
|
+
/** Element Plus 的 Volar 插件支持 */
|
|
29
|
+
"element-plus/global",
|
|
30
|
+
"vue",
|
|
31
|
+
"@ganwei-web/gw-app-mfe"
|
|
32
|
+
],
|
|
33
|
+
/** baseUrl 用来告诉编译器到哪里去查找模块,使用非相对模块时必须配置此项 */
|
|
34
|
+
"baseUrl": ".",
|
|
35
|
+
/** 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算 */
|
|
36
|
+
"paths": {
|
|
37
|
+
"@/*": [
|
|
38
|
+
"src/*"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"include": [
|
|
43
|
+
"src/**/*.ts",
|
|
44
|
+
"src/**/*.d.ts",
|
|
45
|
+
"src/**/*.tsx",
|
|
46
|
+
"src/**/*.vue",
|
|
47
|
+
"tests/**/*.ts",
|
|
48
|
+
"types/**/*.d.ts",
|
|
49
|
+
"vite.config.ts",
|
|
50
|
+
"env.d.ts"
|
|
51
|
+
],
|
|
52
|
+
/** 编译器默认排除的编译文件 */
|
|
53
|
+
"exclude": [
|
|
54
|
+
"node_modules",
|
|
55
|
+
"dist",
|
|
56
|
+
"public"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import autoprefixer from 'autoprefixer';
|
|
2
|
+
import path, { resolve } from 'path'
|
|
3
|
+
import { visualizer } from "rollup-plugin-visualizer"
|
|
4
|
+
import type { UserConfig } from 'vite'
|
|
5
|
+
import { loadEnv, mergeConfig } from 'vite'
|
|
6
|
+
import { DynamicPublicDirectory } from "vite-multiple-assets"
|
|
7
|
+
import { viteExternalsPlugin } from 'vite-plugin-externals'
|
|
8
|
+
|
|
9
|
+
import { Externals, externalTag, externalTagPlugin } from "@ganwei-web/gw-app-public/build/enteryJson";
|
|
10
|
+
|
|
11
|
+
import addressMapping from '../../moduleConfiguration/addressMapping.json'
|
|
12
|
+
import { name } from './package.json'
|
|
13
|
+
|
|
14
|
+
const ENV = loadEnv('development', process.cwd())
|
|
15
|
+
|
|
16
|
+
const VITE_APP_TARGET_URL = ENV.VITE_APP_TARGET_URL
|
|
17
|
+
const VITE_APP_THIS_URL = ENV.VITE_APP_THIS_URL
|
|
18
|
+
const VITE_APP_PORT = Number(ENV.VITE_APP_PORT) || 7200
|
|
19
|
+
const VITE_APP_FRAME = ENV.VITE_APP_FRAME
|
|
20
|
+
const VITE_APP_LOGIN = ENV.VITE_APP_LOGIN
|
|
21
|
+
const VITE_APP_INDEX_PORT = addressMapping[VITE_APP_FRAME as keyof typeof addressMapping] || 'http://localhost:7140'
|
|
22
|
+
|
|
23
|
+
const IS_FRAME = name === VITE_APP_FRAME
|
|
24
|
+
const IS_LOGIN = name === VITE_APP_LOGIN
|
|
25
|
+
|
|
26
|
+
export const baseConfig: UserConfig = {
|
|
27
|
+
build: {
|
|
28
|
+
sourcemap: false, // 构建后是否生成 source map 文件
|
|
29
|
+
chunkSizeWarningLimit: 1500, // 规定触发警告的 chunk(文件块) 大小
|
|
30
|
+
cssCodeSplit: false,
|
|
31
|
+
minify: 'esbuild',
|
|
32
|
+
terserOptions: {
|
|
33
|
+
compress: {
|
|
34
|
+
drop_console: true, // 生产环境去除console
|
|
35
|
+
drop_debugger: true, // 生产环境去除debugger
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
rollupOptions: { // 自定义底层的 Rollup 打包配置 ('[name]'.includes("ganwe")?'[name]/':'')
|
|
39
|
+
output: {
|
|
40
|
+
dir: IS_FRAME ? path.resolve(__dirname, "../../dist/") : path.resolve(__dirname, `../../dist/${name}`),
|
|
41
|
+
assetFileNames: (assetInfo) => {
|
|
42
|
+
if (!assetInfo.name) {
|
|
43
|
+
throw Error("assetInfo.name is empty")
|
|
44
|
+
}
|
|
45
|
+
const info = assetInfo.name.split(".");
|
|
46
|
+
let extType = info[info.length - 1];
|
|
47
|
+
if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType)) {
|
|
48
|
+
extType = 'Images';
|
|
49
|
+
}
|
|
50
|
+
return `assets/${extType}/[name]-[hash][extname]`;
|
|
51
|
+
},
|
|
52
|
+
chunkFileNames: 'assets/js/[name]-[hash].js',
|
|
53
|
+
entryFileNames: 'assets/js/[name]-[hash].js',
|
|
54
|
+
compact: false,
|
|
55
|
+
manualChunks(id) {
|
|
56
|
+
if (id.includes('node_modules')) {
|
|
57
|
+
return 'vendor';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
emptyOutDir: true,
|
|
64
|
+
},
|
|
65
|
+
resolve: {
|
|
66
|
+
alias: [
|
|
67
|
+
{
|
|
68
|
+
find: "@",
|
|
69
|
+
replacement: resolve(__dirname, "src")
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
find: "@static",
|
|
73
|
+
replacement: resolve(__dirname, "static")
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
find: "@assets",
|
|
77
|
+
replacement: resolve(__dirname, "src/assets")
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
find: "@views",
|
|
81
|
+
replacement: resolve(__dirname, "src/views")
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
// 忽略后缀名的配置选项, 添加 .vue 选项时要记得原本默认忽略的选项也要手动写入
|
|
85
|
+
extensions: ['.mjs', '.js', '.ts', '.json', '.vue']
|
|
86
|
+
},
|
|
87
|
+
css: {
|
|
88
|
+
postcss: {
|
|
89
|
+
plugins: [
|
|
90
|
+
autoprefixer({
|
|
91
|
+
overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8'],
|
|
92
|
+
}),
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
preprocessorOptions: {
|
|
96
|
+
// 全局样式引入
|
|
97
|
+
scss: {
|
|
98
|
+
additionalData: '@use "./node_modules/@ganwei-web/gw-app-styles/style.scss" as *;',
|
|
99
|
+
javascriptEnabled: true
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export const development: UserConfig = mergeConfig<UserConfig, UserConfig>(baseConfig, {
|
|
106
|
+
base: '',
|
|
107
|
+
mode: 'development', // 模式
|
|
108
|
+
define: {
|
|
109
|
+
"process.env.NODE_ENV": "'development'"
|
|
110
|
+
},
|
|
111
|
+
server: {
|
|
112
|
+
headers: {
|
|
113
|
+
"Access-Control-Allow-Origin": "*"
|
|
114
|
+
},
|
|
115
|
+
cors: { credentials: true, methods: "PUT,POST,GET,DELETE,OPTIONS", origin: VITE_APP_INDEX_PORT },
|
|
116
|
+
host: VITE_APP_THIS_URL, // 指定服务器应该监听哪个 IP 地址
|
|
117
|
+
port: VITE_APP_PORT, // 端口
|
|
118
|
+
strictPort: true, // 若端口已被占用,尝试下移一格端口
|
|
119
|
+
https: false, // 启用 TLS + HTTP/2
|
|
120
|
+
open: IS_LOGIN,
|
|
121
|
+
proxy: {
|
|
122
|
+
'/api': {
|
|
123
|
+
target: VITE_APP_TARGET_URL,
|
|
124
|
+
changeOrigin: true,
|
|
125
|
+
secure: false,
|
|
126
|
+
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
|
127
|
+
headers: {
|
|
128
|
+
Referer: VITE_APP_TARGET_URL
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
'/IoT': {
|
|
132
|
+
target: VITE_APP_TARGET_URL,
|
|
133
|
+
changeOrigin: true,
|
|
134
|
+
secure: false,
|
|
135
|
+
rewrite: (path) => path.replace(/^\/IoT/, '/IoT'),
|
|
136
|
+
headers: {
|
|
137
|
+
Referer: VITE_APP_TARGET_URL
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
'/monitor': {
|
|
141
|
+
target: VITE_APP_TARGET_URL,
|
|
142
|
+
changeOrigin: true,
|
|
143
|
+
secure: false,
|
|
144
|
+
ws: true,
|
|
145
|
+
rewrite: (path) => path.replace(/^\/monitor/, '/monitor'),
|
|
146
|
+
headers: {
|
|
147
|
+
Referer: VITE_APP_TARGET_URL
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
'/downFileNotify': {
|
|
151
|
+
target: VITE_APP_TARGET_URL,
|
|
152
|
+
changeOrigin: true,
|
|
153
|
+
secure: false,
|
|
154
|
+
ws: true,
|
|
155
|
+
rewrite: (path) => path.replace(/^\/downFileNotify/, '/downFileNotify'),
|
|
156
|
+
headers: {
|
|
157
|
+
Referer: VITE_APP_TARGET_URL
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
'/workOrder': {
|
|
161
|
+
target: VITE_APP_TARGET_URL,
|
|
162
|
+
changeOrigin: true,
|
|
163
|
+
secure: false,
|
|
164
|
+
ws: true,
|
|
165
|
+
rewrite: (path) => path.replace(/^\/workOrder/, '/workOrder'),
|
|
166
|
+
headers: {
|
|
167
|
+
Referer: VITE_APP_TARGET_URL
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
'/DownloadFile': {
|
|
171
|
+
target: VITE_APP_TARGET_URL,
|
|
172
|
+
changeOrigin: true,
|
|
173
|
+
secure: false,
|
|
174
|
+
ws: true,
|
|
175
|
+
rewrite: (path) => path.replace(/^\/DownloadFile/, '/DownloadFile'),
|
|
176
|
+
headers: {
|
|
177
|
+
Referer: VITE_APP_TARGET_URL
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
'/jdsso': {
|
|
181
|
+
target: VITE_APP_TARGET_URL,
|
|
182
|
+
changeOrigin: true,
|
|
183
|
+
secure: false,
|
|
184
|
+
ws: true,
|
|
185
|
+
rewrite: (path) => path.replace(/^\/jdsso/, '/jdsso'),
|
|
186
|
+
headers: {
|
|
187
|
+
Referer: VITE_APP_TARGET_URL
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
'/eGroupNotify': {
|
|
191
|
+
target: VITE_APP_TARGET_URL,
|
|
192
|
+
changeOrigin: true,
|
|
193
|
+
secure: false,
|
|
194
|
+
ws: true,
|
|
195
|
+
rewrite: (path) => path.replace(/^\/eGroupNotify/, '/eGroupNotify'),
|
|
196
|
+
headers: {
|
|
197
|
+
Referer: VITE_APP_TARGET_URL
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
force: true, // 强制使依赖预构建
|
|
202
|
+
hmr: { // 禁用或配置 HMR 连接
|
|
203
|
+
|
|
204
|
+
},
|
|
205
|
+
watch: {},
|
|
206
|
+
fs: {
|
|
207
|
+
strict: false, // 限制为工作区 root 路径以外的文件的访问
|
|
208
|
+
allow: [], // 限制哪些文件可以通过 /@fs/ 路径提供服务
|
|
209
|
+
deny: ['.env', '.env.*', '*.{pem,crt}'], // 用于限制 Vite 开发服务器提供敏感文件的黑名单
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
plugins: [
|
|
213
|
+
DynamicPublicDirectory(['./node_modules/@ganwei-web/gw-app-public/public']),
|
|
214
|
+
externalTagPlugin(externalTag.filter(i => i.mode === 'dev'))
|
|
215
|
+
]
|
|
216
|
+
})
|
|
217
|
+
|
|
218
|
+
export const production = mergeConfig(baseConfig, {
|
|
219
|
+
base: IS_FRAME ? `` : `/APP/${name}/`,
|
|
220
|
+
mode: 'production', // 模式,
|
|
221
|
+
define: {
|
|
222
|
+
"process.env.NODE_ENV": "'production'"
|
|
223
|
+
},
|
|
224
|
+
plugins: [
|
|
225
|
+
IS_FRAME ? DynamicPublicDirectory(['./node_modules/@ganwei-web/gw-app-public/public']) : {},
|
|
226
|
+
visualizer({
|
|
227
|
+
open: false, //注意这里要设置为true,否则无效
|
|
228
|
+
gzipSize: true,
|
|
229
|
+
}),
|
|
230
|
+
viteExternalsPlugin(Externals),
|
|
231
|
+
externalTagPlugin(externalTag)
|
|
232
|
+
]
|
|
233
|
+
})
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import vue from '@vitejs/plugin-vue'
|
|
2
|
+
import { defineConfig, loadEnv } from 'vite'
|
|
3
|
+
import eslintPlugin from 'vite-plugin-eslint'
|
|
4
|
+
import { createHtmlPlugin } from 'vite-plugin-html'
|
|
5
|
+
import stylelint from 'vite-plugin-stylelint';
|
|
6
|
+
|
|
7
|
+
import getEntryPath from "@ganwei-web/gw-app-public/build/enteryJson";
|
|
8
|
+
|
|
9
|
+
import { development, production } from './vite.base.config';
|
|
10
|
+
|
|
11
|
+
const htmlParams = {
|
|
12
|
+
minify: true,
|
|
13
|
+
pages: getEntryPath
|
|
14
|
+
}
|
|
15
|
+
const Vue3Plugins = [
|
|
16
|
+
vue(),
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
export default ({ mode }) => {
|
|
20
|
+
const baseConfig = mode === 'development' ? development : production
|
|
21
|
+
|
|
22
|
+
return defineConfig({
|
|
23
|
+
root: __dirname, // 项目根目录(index.html 文件所在的位置),
|
|
24
|
+
base: baseConfig.base,
|
|
25
|
+
mode: baseConfig.mode,
|
|
26
|
+
publicDir: 'public', // 静态资源服务的文件夹
|
|
27
|
+
// cacheDir: path.resolve(__dirname, '/node_modules/.vite'), // 存储缓存文件的目录
|
|
28
|
+
define: baseConfig.define,
|
|
29
|
+
plugins: [
|
|
30
|
+
...Vue3Plugins,
|
|
31
|
+
// 增加下面的配置项,这样在运行时就能检查eslint规范
|
|
32
|
+
eslintPlugin({
|
|
33
|
+
include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue'],
|
|
34
|
+
exclude: ['./node_modules/**', './src/types/**', '/static/**', './src/components/qrcodeReader/**', './src/components/vue-qrcode-reader/**'],
|
|
35
|
+
cache: false
|
|
36
|
+
}),
|
|
37
|
+
// stylelint({
|
|
38
|
+
// fix: true
|
|
39
|
+
// }),
|
|
40
|
+
createHtmlPlugin(htmlParams),
|
|
41
|
+
...baseConfig.plugins
|
|
42
|
+
],
|
|
43
|
+
resolve: baseConfig.resolve,
|
|
44
|
+
// transpileDependencies: ["webrtc-adapter"],
|
|
45
|
+
css: baseConfig.css,
|
|
46
|
+
server: baseConfig.server,
|
|
47
|
+
build: baseConfig.build
|
|
48
|
+
})
|
|
49
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
1
|
<!DOCTYPE html>
|
|
3
2
|
<html>
|
|
4
3
|
|
|
5
4
|
<head id="indexHead">
|
|
6
5
|
<meta charset="utf-8" />
|
|
7
|
-
<title
|
|
6
|
+
<title>脚手架</title>
|
|
8
7
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no, viewport-fit=cover" />
|
|
9
8
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
|
10
9
|
<meta http-equiv="Pragma" content="no-cache" />
|
package/ganwei-app-6.2.1/packages/ganwei-app-index/src/components/vue-qrcode-reader/src/misc/util.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Description:
|
|
3
|
-
* @Version: v1
|
|
4
|
-
* @Author: zkx
|
|
5
|
-
* @LastEditTime: 2023-09-07 11:31:44
|
|
6
|
-
* Copyright (c) 2023 by 敢为软件, All Rights Reserved.
|
|
7
|
-
*/
|
|
1
|
+
|
|
8
2
|
export const indempotent = action => {
|
|
9
3
|
let called = false;
|
|
10
4
|
let result = undefined;
|
|
@@ -13,10 +7,10 @@ export const indempotent = action => {
|
|
|
13
7
|
if (called) {
|
|
14
8
|
return result;
|
|
15
9
|
}
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
result = action(...args);
|
|
11
|
+
called = true;
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
return result;
|
|
20
14
|
|
|
21
15
|
};
|
|
22
16
|
};
|
|
@@ -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 = ''
|