@ganwei-web/ganwei-pc-cli 6.2.2 → 6.2.4
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/.gitignore +33 -0
- package/ganwei-app-6.2.1/.npmrc +1 -0
- package/ganwei-app-6.2.1/moduleConfiguration/.gitignore +27 -0
- 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/.gitignore +27 -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/.gitignore +27 -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/.gitignore +27 -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/.gitignore +27 -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/.gitignore +27 -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/.gitignore +27 -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/.gitignore +31 -0
- package/ganwei-iotcenter-index-6.2.1/.npmrc +1 -0
- package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/.gitignore +27 -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/App.vue +5 -0
- 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/index.vue +9 -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/.gitignore +27 -0
- 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/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-template/.gitignore +27 -0
- package/ganwei-pc.js +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
node_modules
|
|
10
|
+
dist
|
|
11
|
+
dist-ssr
|
|
12
|
+
*.local
|
|
13
|
+
|
|
14
|
+
# Editor directories and files
|
|
15
|
+
.vscode/*
|
|
16
|
+
!.vscode/extensions.json
|
|
17
|
+
.idea
|
|
18
|
+
.DS_Store
|
|
19
|
+
*.suo
|
|
20
|
+
*.ntvs*
|
|
21
|
+
*.njsproj
|
|
22
|
+
*.sln
|
|
23
|
+
*.sw?
|
|
24
|
+
vite.config.ts.timestamp-*.mjs
|
|
25
|
+
packages/*
|
|
26
|
+
!packages/ganwei-app-empty-page
|
|
27
|
+
!packages/ganwei-app-home
|
|
28
|
+
!packages/ganwei-app-index
|
|
29
|
+
!packages/ganwei-app-login
|
|
30
|
+
!packages/ganwei-app-set-page
|
|
31
|
+
!packages/ganwei-app-template
|
|
32
|
+
moduleConfiguration/addressMapping.json
|
|
33
|
+
/temp
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
registry=https://registry.npmjs.org
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
node_modules
|
|
10
|
+
dist
|
|
11
|
+
dist-ssr
|
|
12
|
+
*.local
|
|
13
|
+
|
|
14
|
+
# Editor directories and files
|
|
15
|
+
.vscode/*
|
|
16
|
+
!.vscode/extensions.json
|
|
17
|
+
.idea
|
|
18
|
+
.DS_Store
|
|
19
|
+
*.suo
|
|
20
|
+
*.ntvs*
|
|
21
|
+
*.njsproj
|
|
22
|
+
*.sln
|
|
23
|
+
*.sw?
|
|
24
|
+
vite.config.ts.timestamp-*.mjs
|
|
25
|
+
vite.config.ts.timestamp-*.js
|
|
26
|
+
|
|
27
|
+
.stylelintcache
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Description:
|
|
3
|
-
* @Version: v1
|
|
4
|
-
* @Author: zkx
|
|
5
|
-
* @LastEditTime: 2023-09-14 14:44:14
|
|
6
|
-
* Copyright (c) 2023 by 敢为软件, All Rights Reserved.
|
|
7
|
-
*/
|
|
1
|
+
|
|
8
2
|
import fs from 'fs'
|
|
9
3
|
import path from 'path'
|
|
10
4
|
import { fileURLToPath } from 'url'
|
|
@@ -47,7 +41,7 @@ fs.readdir(destPath, function (err, files) {
|
|
|
47
41
|
* status true/false
|
|
48
42
|
* }
|
|
49
43
|
*/
|
|
50
|
-
function copyFile
|
|
44
|
+
function copyFile(item, itemChild, port, status) {
|
|
51
45
|
let sourceFile = path.join(__DIRNAME, '', status ? itemChild + port : itemChild)
|
|
52
46
|
let destPathFile = path.join(__DIRNAME, '../packages/' + item, itemChild)
|
|
53
47
|
fs.copyFile(sourceFile, destPathFile, function (err) {
|
|
@@ -68,7 +62,7 @@ const SMEVER_REG = /^[\^>]?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-
|
|
|
68
62
|
* @param {string} string 版本号
|
|
69
63
|
* @return {number} number
|
|
70
64
|
*/
|
|
71
|
-
function getVueVersion
|
|
65
|
+
function getVueVersion(string) {
|
|
72
66
|
let res = 3;
|
|
73
67
|
if (SMEVER_REG.test(string)) {
|
|
74
68
|
let [, major, minor, patch] = string.match(SMEVER_REG)
|
|
@@ -82,7 +76,7 @@ function getVueVersion (string) {
|
|
|
82
76
|
* @param {string} item
|
|
83
77
|
* @param {string} content
|
|
84
78
|
*/
|
|
85
|
-
function generateLocalEnv
|
|
79
|
+
function generateLocalEnv(item, content) {
|
|
86
80
|
let destPathFile = path.join(__DIRNAME, '../packages/' + item, '.env.development.local')
|
|
87
81
|
fs.writeFileSync(destPathFile, content)
|
|
88
82
|
}
|
|
@@ -93,7 +87,7 @@ function generateLocalEnv (item, content) {
|
|
|
93
87
|
* @param {number} vue
|
|
94
88
|
* @return {string}
|
|
95
89
|
*/
|
|
96
|
-
function getLocalEnv
|
|
90
|
+
function getLocalEnv(port, vue) {
|
|
97
91
|
let localEnv = localEnvFactory({
|
|
98
92
|
VITE_APP_PORT: port,
|
|
99
93
|
VUE_VERSION: vue
|
|
@@ -106,13 +100,13 @@ function getLocalEnv (port, vue) {
|
|
|
106
100
|
* @param {*} config
|
|
107
101
|
* @return {*}
|
|
108
102
|
*/
|
|
109
|
-
function localEnvFactory
|
|
103
|
+
function localEnvFactory(config) {
|
|
110
104
|
if (!localEnvFactory.base) {
|
|
111
105
|
const sourceFileName = '.env.local.config'
|
|
112
106
|
let buffer = fs.readFileSync(path.join(moduleConfigurationPath, sourceFileName))
|
|
113
107
|
localEnvFactory.base = envParse(buffer)
|
|
114
108
|
}
|
|
115
|
-
function createLocalEnv
|
|
109
|
+
function createLocalEnv(config) {
|
|
116
110
|
const clone = JSON.parse(JSON.stringify(localEnvFactory.base))
|
|
117
111
|
Object.assign(clone, config)
|
|
118
112
|
return clone
|
|
@@ -127,7 +121,7 @@ let jsonObject = {}
|
|
|
127
121
|
* @param {string} item
|
|
128
122
|
* @param {number} port
|
|
129
123
|
*/
|
|
130
|
-
function writeAdressMapping
|
|
124
|
+
function writeAdressMapping(item, port) {
|
|
131
125
|
jsonObject[item] = 'http://localhost:' + port
|
|
132
126
|
fs.writeFile(moduleConfigurationPath + 'addressMapping.json', JSON.stringify(jsonObject), 'utf8', function (err, data) { })
|
|
133
127
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Description:
|
|
3
|
-
* @Version: v1
|
|
4
|
-
* @Author: zkx
|
|
5
|
-
* @LastEditTime: 2023-08-29 09:26:14
|
|
6
|
-
* Copyright (c) 2023 by 敢为软件, All Rights Reserved.
|
|
7
|
-
*/
|
|
1
|
+
|
|
8
2
|
import CHILDPROCESS from 'child_process';
|
|
9
3
|
import fs from 'fs';
|
|
10
4
|
import path from 'path';
|
|
@@ -37,7 +31,7 @@ fs.readFile(MODULE_PATH + 'moduleConfiguration.json', 'utf-8', (err, data) => {
|
|
|
37
31
|
* @description 获取当前 git 分支
|
|
38
32
|
* @return {string} `branch`
|
|
39
33
|
*/
|
|
40
|
-
function getCurrentBranch
|
|
34
|
+
function getCurrentBranch() {
|
|
41
35
|
let branch = 'master'
|
|
42
36
|
const cmd = CHILDPROCESS.spawnSync('git', ['branch', '--show-current'])
|
|
43
37
|
if (cmd.error) {
|
|
@@ -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,27 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
node_modules
|
|
10
|
+
dist
|
|
11
|
+
dist-ssr
|
|
12
|
+
*.local
|
|
13
|
+
|
|
14
|
+
# Editor directories and files
|
|
15
|
+
.vscode/*
|
|
16
|
+
!.vscode/extensions.json
|
|
17
|
+
.idea
|
|
18
|
+
.DS_Store
|
|
19
|
+
*.suo
|
|
20
|
+
*.ntvs*
|
|
21
|
+
*.njsproj
|
|
22
|
+
*.sln
|
|
23
|
+
*.sw?
|
|
24
|
+
vite.config.ts.timestamp-*.mjs
|
|
25
|
+
vite.config.ts.timestamp-*.js
|
|
26
|
+
|
|
27
|
+
.stylelintcache
|
|
@@ -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,42 @@
|
|
|
1
|
+
const fs = require('fs')
|
|
2
|
+
const path = require('path')
|
|
3
|
+
|
|
4
|
+
const nowVersion = new Date()
|
|
5
|
+
const version = nowVersion.getTime()
|
|
6
|
+
const content = "window._rx_getVersion('" + version + "')"
|
|
7
|
+
|
|
8
|
+
function isExit(filePath) {
|
|
9
|
+
let isExit = false
|
|
10
|
+
try {
|
|
11
|
+
const stat = fs.statSync(filePath)
|
|
12
|
+
if (stat && stat.isDirectory()) {
|
|
13
|
+
isExit = true
|
|
14
|
+
}
|
|
15
|
+
} catch (error) {
|
|
16
|
+
isExit = false
|
|
17
|
+
}
|
|
18
|
+
if (!isExit) {
|
|
19
|
+
fs.mkdirSync(filePath, 777)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function createVersion () {
|
|
24
|
+
// console.log('开始创建版本文件...')
|
|
25
|
+
const CommonPath = path.resolve(__dirname, '..', 'public/v')
|
|
26
|
+
isExit(CommonPath)
|
|
27
|
+
const versionPath = path.resolve(CommonPath, 'version.js')
|
|
28
|
+
|
|
29
|
+
fs.writeFile(versionPath, content, function(err) {
|
|
30
|
+
if (err) {
|
|
31
|
+
return console.log('\n' + err + '\n')
|
|
32
|
+
} else {
|
|
33
|
+
return console.log(`
|
|
34
|
+
Tip: version.js create success
|
|
35
|
+
version: ${version}
|
|
36
|
+
版本: ${nowVersion}
|
|
37
|
+
\n`)
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
createVersion()
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// 入口文件
|
|
2
|
+
// const getEntryPath = (glob) => {
|
|
3
|
+
// const pageEntry = [{
|
|
4
|
+
// filename: 'index', // filename 默认是template文件名,就是index.html
|
|
5
|
+
// entry: `main.js`,
|
|
6
|
+
// output: `../../dist`,
|
|
7
|
+
// template: `index.html`,
|
|
8
|
+
// chunks: ['chunk-vendors', 'chunk-common', 'index']
|
|
9
|
+
// }];
|
|
10
|
+
// // glob.sync("./src/pages/ganwe**/").forEach((entry) => {
|
|
11
|
+
// // const pathArr = entry.split("/");
|
|
12
|
+
// // const name = pathArr[pathArr.length - 2];
|
|
13
|
+
// // if (pathArr.length > 4) {
|
|
14
|
+
// // pageEntry.push({
|
|
15
|
+
// // filename: 'index', // filename 默认是template文件名,就是index.html${name}
|
|
16
|
+
// // entry: `${name}/main.js`,
|
|
17
|
+
// // output: `../../dist/${name}`,
|
|
18
|
+
// // template: `${name}/index.html`,
|
|
19
|
+
// // chunks: ['chunk-vendors', 'chunk-common', 'index']
|
|
20
|
+
// // });
|
|
21
|
+
// // }
|
|
22
|
+
// // })
|
|
23
|
+
// return pageEntry;
|
|
24
|
+
// }
|
|
25
|
+
const getEntryPath = 1;
|
|
26
|
+
export default getEntryPath;
|