@ganwei-web/ganwei-pc-cli 6.2.0
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-iotcenter-index-6.2.0/.nvmrc +1 -0
- package/ganwei-iotcenter-index-6.2.0/configuration/cleanNodeModule.js +18 -0
- package/ganwei-iotcenter-index-6.2.0/configuration/gitClone.js +45 -0
- package/ganwei-iotcenter-index-6.2.0/configuration/moduleConfiguration.json +20 -0
- package/ganwei-iotcenter-index-6.2.0/configuration/updateModule.cjs +30 -0
- package/ganwei-iotcenter-index-6.2.0/init.cjs +30 -0
- package/ganwei-iotcenter-index-6.2.0/package.json +41 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.babelrc +4 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.editorconfig +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.env.development +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.env.production +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.env.test +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.eslintignore +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.eslintrc.cjs +176 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.prettierignore +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.prettierrc.cjs +19 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/auto-imports.d.ts +5 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/build/enteryJson.js +9 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/build/vite-addInfo-html.ts +38 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/build/vite-plugin-stats-html.js +595 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/components.d.ts +87 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/env.d.ts +7 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/index.html +31 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/package.json +89 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/element-plus/css-vars.css +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/element-plus/index.css +16959 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/element-ui/index.css +16075 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/equipStatus.css +70 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/index.css +15926 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/reset-6-1.css +155 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.css +1135 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.json +1969 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.woff2 +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/element-icons.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/element-icons.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.css +3779 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.json +6596 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.woff2 +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/http/createAxios.js +486 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/head-background.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-alarmIcon-dark.svg +48 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-alarmIcon-green.svg +42 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-alarmIcon-light.svg +26 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-apppreview-dark.svg +20 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-apppreview-green.svg +20 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-apppreview-light.svg +14 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull-dark.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull-green.svg +16 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull-light.svg +16 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen-dark.svg +19 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen-green.svg +14 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen-light.svg +12 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen.svg +19 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-loading.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-logo-src-dark.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-logo-src-green.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-logo-src-light.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-logo-src-small.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-logo-src.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-nopage-dark.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-nopage-green.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-nopage-light.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-normalIcon-dark.svg +32 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-normalIcon-green.svg +32 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-normalIcon-light.svg +9 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin-dark.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin-green.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin-light.svg +15 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping-dark.svg +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping-green.svg +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping-light.svg +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping.svg +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-upgrade.svg +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user-dark.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user-green.svg +27 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user-light.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user.svg +26 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-warningIcon-dark.svg +37 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-warningIcon-green.svg +37 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-warningIcon-light.svg +15 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/login-bg-img.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/logo.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/menu-background.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/renew-message-dark.svg +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/renew-message-green.svg +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/renew-message-light.svg +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/right-close.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/right-open.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/systemsnapshot-fullscreen.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/systemsnapshot-guzhang.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/systemsnapshot-jinggao.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/systemsnapshot-shezhi.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/systemsnapshot-xinxi.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/systemsnapshot-zichan.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/unread-message-dark.svg +19 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/unread-message-green.svg +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/unread-message-light.svg +17 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/webconfig-location.svg +17 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/axios.min.js +2 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/echarts.min.js +25 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/element-ui/index.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/element-ui/index.js.gz +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/enc-base64-min.js +86 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/filereader.js +455 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/font.js +56 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getConfigInfoData.js +57 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getLanguage.js +144 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getLanguageOptions.js +52 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getUserPermissionList.js +55 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/h5player.min.js +311 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/hmac-sha256.js +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/jquery.slim.min.js +2 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/jsencrypt.min.js +2 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/jszip.min.js +14 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/liveplayer-lib.min.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/moment.js +5670 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/pptxjs.min.js +14105 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/signalr.min.js +17 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/tXml.js +244 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/transformpcm.worker.js +58 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vue-i18n.min.js +6 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vue-router.min.js +11 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vue.min.js +11 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vuex.min.js +6 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/json/RAMScope.json +201 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/json/config.json +154 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/json/snapshot.json +34 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/lib/treeV2/treeV2.css +246 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/lib/treeV2/treeV2.js +5384 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/dark-6-1.css +430 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/dark.css +426 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/default-theme-6-1.js +48 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/default-theme.js +53 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/green-6-1.css +357 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/light-6-1.css +424 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/light.css +414 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/themeConfig.json +42 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/App.vue +52 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/assets/plugins/encrypt.js +122 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/auto-import.d.ts +61 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/asideMenu/contractMenu.vue +216 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/asideMenu/menu.vue +238 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/asideMenu/topNav.vue +238 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/contextMenu/index.js +42 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/contextMenu/index.vue +113 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexLeftContent/index.js +204 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexLeftContent/index.scss +258 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexLeftContent/index.vue +112 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/appPreview/images/appconnect.jpg +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/appPreview/index.vue +282 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/contentFullScreen/index.js +19 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/contentFullScreen/index.vue +10 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/fullScreen/index.js +50 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/fullScreen/index.vue +10 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/index.js +28 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/index.scss +137 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/index.vue +20 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/ApprovalDialog.vue +135 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/index.js +327 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/index.scss +253 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/index.vue +61 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/RenewDialog.vue +97 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/index.js +95 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/index.scss +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/index.vue +8 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/renew.vue +271 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/saveMode/index.js +45 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/saveMode/index.scss +36 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/saveMode/index.vue +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/switchTheme/index.js +70 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/switchTheme/index.scss +94 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/switchTheme/index.vue +35 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/unReadMessages/index.js +146 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/unReadMessages/index.scss +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/unReadMessages/index.vue +8 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/upgrade/index.js +81 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/upgrade/index.scss +147 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/upgrade/index.vue +30 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/forceEdit.js +78 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/index.js +265 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/index.scss +5 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/index.vue +39 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/index.js +94 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/index.scss +113 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/index.vue +90 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/logoutDialog/index.js +68 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/logoutDialog/index.vue +16 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/restartPlatformDialog/index.js +178 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/restartPlatformDialog/index.scss +16 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/restartPlatformDialog/index.vue +46 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/safeModeDialog/index.vue +195 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/switchPark/index.js +70 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/switchPark/index.scss +95 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/switchPark/index.vue +35 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/systemInfoDialog/index.js +240 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/systemInfoDialog/index.scss +158 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/systemInfoDialog/index.vue +50 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/index.js +63 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/index.scss +40 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/index.vue +20 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/labelPage/index.js +398 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/labelPage/index.scss +136 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/labelPage/index.vue +36 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/normalPage/index.js +34 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/normalPage/index.scss +44 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/normalPage/index.vue +21 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/inputPassword/index.vue +65 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/isDebug/isDebug.vue +57 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/isDebug/warning.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/noAccess/noAccess.vue +78 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/noAccess/noPage.vue +68 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/sceneMonitor/index.js +95 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/toast/index.js +65 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/toast/index.vue +136 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/unreadMsg/listItem.vue +36 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/unreadMsg/unread.vue +300 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/hostMap.js +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/main.js +50 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/mixins/judgePermission.js +29 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/publish/pub.ts +28 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/request/api/frame.js +142 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/request/api.js +14 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/router.js +34 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/store.js +221 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/types.js +16 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/MFEManager.js +156 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/gwEquipCache.js +325 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/gwSignalr.js +66 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/historyExport.js +158 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/setStorage.js +5 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/Index.vue +81 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/index.js +297 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/jumpIframe/index.vue +242 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/jumpIframe/preloadMethod.js +54 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/jumpIframe/queryParser.js +47 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/tsconfig.json +57 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/vite.config.ts +270 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.babelrc +8 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.editorconfig +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.env.development +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.env.production +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.env.test +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.eslintignore +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.eslintrc.cjs +162 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.prettierignore +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.prettierrc.cjs +37 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/auto-imports.d.ts +5 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/build/enteryJson.js +72 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/build/vite-addInfo-html.ts +38 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/build/vite-plugin-stats-html.js +595 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/env.d.ts +7 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/index.html +34 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/package.json +84 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/drag.css +140 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-plus/css-vars.css +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-plus/index.css +16957 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-ui/index.css +16075 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-ui/reset.css +1471 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/index.css +15926 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/reset-6-1.css +114 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.css +1135 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.json +1969 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.woff2 +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/element-icons.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/element-icons.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.css +4151 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.json +7247 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.woff2 +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/http/createAxios.js +316 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/center.svg +23 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/centerActive.svg +24 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/center_light.svg +15 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-loading.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-logo-src-dark.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-logo-src-green.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-logo-src-light.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-logo-src-small.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-logo-src.svg +67 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/left.svg +23 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/leftActive.svg +24 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/left_light.svg +15 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/login-bg-img.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/login-drag-start.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/login-drag-stop.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/logo.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/refresh.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/right.svg +23 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/rightActive.svg +24 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/right_light.svg +15 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/axios.min.js +3 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/drag.js +391 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/font.js +57 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/getConfigInfoData.js +57 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/getLanguage.js +143 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/getLanguageOptions.js +52 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/jquery.min.js +10716 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/dark-6-1.css +333 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/dark.css +426 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/default-theme-6-1.js +46 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/default-theme.js +53 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/green-6-1.css +336 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/light-6-1.css +338 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/light.css +414 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/themeConfig.json +42 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/App.vue +70 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/alertHandle.scss +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/browserScroll.scss +5 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/btnHandle.scss +36 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/containerHandle.scss +402 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/dialogStyle.scss +43 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/equipStatus.scss +88 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/index.scss +1358 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/inputStyle.scss +16 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/listHandle.scss +113 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/login.scss +335 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/mainInfo.scss +297 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/maintenanceInfo.scss +199 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/style.css +921 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/tableHandle.scss +147 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/txtHandle.scss +39 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/images/login-bg-img.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/images/login-sso-error.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/images/logo-bg.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/plugins/encrypt.js +122 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/declaration/declaration.scss +118 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/declaration/declaration.vue +109 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/declaration/declarationPacts.vue +42 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/checkEmailContainer.vue +134 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/inputEmailContainer.vue +128 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/modifyPasswordContainer.vue +138 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/passwordModification - /345/211/257/346/234/254.vue" +4 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/passwordModification.vue +223 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/directive/loadMore/loadMore.js +14 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/hostMap.js +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/main.js +39 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/mixins/setDefaultLanguage.js +87 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/request/api/login.js +95 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/request/api.js +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/router.js +48 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/types.js +16 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/formValidate.js +25 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/isApp.js +18 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/language.js +45 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/myUtils.js +646 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/timeFormat.js +23 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/timesYMDHMS.js +27 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/js/mainInfo.js +374 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/js/maintenanceInfo.js +202 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/login.vue +458 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/ssoLogin.vue +230 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/ssoLogout.vue +58 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/vite.config.ts +237 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.babelrc +8 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.editorconfig +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.env.development +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.env.production +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.env.test +22 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.eslintignore +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.eslintrc.cjs +162 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.prettierignore +13 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.prettierrc.cjs +37 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/auto-imports.d.ts +5 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/enteryJson.js +64 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-addInfo-html.js +15 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-addInfo-html.ts +38 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-plugin-stats-html +14 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-plugin-stats-html.js +595 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/env.d.ts +7 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/index.html +25 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/package.json +94 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/css/element-plus/css-vars.css +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/css/element-plus/index.css +16957 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/css/reset-6-1.css +114 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.css +1135 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.json +1969 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.woff2 +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/element-icons.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/element-icons.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.css +3535 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.js +1 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.json +6169 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.ttf +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.woff +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.woff2 +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/http/createAxios.js +372 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/images/index-loading.png +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/axios.min.js +3 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/font.js +58 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/getConfigInfoData.js +58 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/getLanguage.js +142 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/getLanguageOptions.js +51 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/dark-6-1.css +430 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/default-theme-6-1.js +48 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/light-6-1.css +424 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/themeConfig.json +42 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/App.vue +41 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/assets/images/template.jpg +0 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/hostMap.js +14 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/main.js +39 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/request/api/template.js +11 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/request/api.js +9 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/router.js +23 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/utils/setStorage.js +5 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/views/template.vue +49 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/tsconfig.json +21 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/tsconfig.node.json +10 -0
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/vite.config.ts +240 -0
- package/ganwei-iotcenter-index-6.2.0/pnpm-workspace.yaml +3 -0
- package/ganwei-pc.js +3 -0
- package/package.json +28 -0
- package/src/copyConfig.js +85 -0
- package/src/copyDemo.js +21 -0
- package/src/create-app.js +90 -0
- package/src/createQuestions.js +46 -0
- package/src/index.js +63 -0
- package/src/remove-depencies.js +27 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"jsx": "preserve",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noUnusedLocals": true,
|
|
16
|
+
"noUnusedParameters": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true
|
|
18
|
+
},
|
|
19
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "build/**/*.ts", "build/**/*.tsx"],
|
|
20
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
21
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { defineConfig, loadEnv } from "vite"
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import path, { resolve } from "path"
|
|
4
|
+
import autoprefixer from "autoprefixer"
|
|
5
|
+
import AutoImport from "unplugin-auto-import/vite"
|
|
6
|
+
import { visualizer } from "rollup-plugin-visualizer"
|
|
7
|
+
import { createHtmlPlugin } from "vite-plugin-html"
|
|
8
|
+
import { name } from "./package.json"
|
|
9
|
+
import stats from "./build/vite-plugin-stats-html"
|
|
10
|
+
import pageEntry from "./build/enteryJson.js"
|
|
11
|
+
import viteAddInfoHtml from './build/vite-addInfo-html'
|
|
12
|
+
|
|
13
|
+
import { externalTagPlugin, externalTag } from "./build/enteryJson.js";
|
|
14
|
+
|
|
15
|
+
const htmlParams = {
|
|
16
|
+
minify: true,
|
|
17
|
+
pages: pageEntry
|
|
18
|
+
}
|
|
19
|
+
import indexPort from "../../configuration/moduleConfiguration.json"
|
|
20
|
+
const VITE_APP_INDEX_PORT = indexPort.addressMapping['ganwei-iotcenter-index']
|
|
21
|
+
|
|
22
|
+
export default ({ mode }) => {
|
|
23
|
+
const VITE_APP_TARGET_URL = indexPort.proxyTarget || loadEnv(mode, process.cwd()).VITE_APP_TARGET_URL
|
|
24
|
+
const VITE_APP_THIS_URL = loadEnv(mode, process.cwd()).VITE_APP_THIS_URL;
|
|
25
|
+
const port = Number(indexPort.addressMapping?.[name].split(':').pop());
|
|
26
|
+
const VITE_APP_PORT = port || Number(loadEnv(mode, process.cwd()).VITE_APP_PORT)
|
|
27
|
+
return defineConfig({
|
|
28
|
+
root: __dirname, // 项目根目录(index.html 文件所在的位置),
|
|
29
|
+
base: mode == 'development' ? '' : `/${name}/`,
|
|
30
|
+
mode: "development", // 模式
|
|
31
|
+
publicDir: "public", // 静态资源服务的文件夹
|
|
32
|
+
// cacheDir: path.resolve(__dirname, '/node_modules/.vite'), // 存储缓存文件的目录
|
|
33
|
+
define: {
|
|
34
|
+
__INTLIFY_JIT_COMPILATION__: true,
|
|
35
|
+
'process.env.VITE_APP_INDEX_PORT': `"${VITE_APP_INDEX_PORT}"`
|
|
36
|
+
},
|
|
37
|
+
plugins: [
|
|
38
|
+
vue(),
|
|
39
|
+
visualizer({
|
|
40
|
+
open: false, //注意这里要设置为true,否则无效
|
|
41
|
+
gzipSize: true
|
|
42
|
+
}),
|
|
43
|
+
//plus按需引入
|
|
44
|
+
AutoImport(),
|
|
45
|
+
createHtmlPlugin(htmlParams),
|
|
46
|
+
stats({
|
|
47
|
+
filename: "stats.html"
|
|
48
|
+
}),
|
|
49
|
+
viteAddInfoHtml(),
|
|
50
|
+
externalTagPlugin(externalTag)
|
|
51
|
+
],
|
|
52
|
+
resolve: {
|
|
53
|
+
alias: [
|
|
54
|
+
{
|
|
55
|
+
find: "@",
|
|
56
|
+
replacement: resolve(__dirname, "src")
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
find: "@static",
|
|
60
|
+
replacement: resolve(__dirname, "static")
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
find: "@assets",
|
|
64
|
+
replacement: resolve(__dirname, "src/assets")
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
find: "@views",
|
|
68
|
+
replacement: resolve(__dirname, "src/views")
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
// 忽略后缀名的配置选项, 添加 .vue 选项时要记得原本默认忽略的选项也要手动写入
|
|
72
|
+
extensions: [".mjs", ".js", ".json", ".vue"]
|
|
73
|
+
},
|
|
74
|
+
css: {
|
|
75
|
+
postcss: {
|
|
76
|
+
plugins: [
|
|
77
|
+
autoprefixer({
|
|
78
|
+
overrideBrowserslist: ["Android 4.1", "iOS 7.1", "Chrome > 31", "ff > 31", "ie >= 8"]
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
preprocessorOptions: {
|
|
83
|
+
// 全局样式引入
|
|
84
|
+
scss: {
|
|
85
|
+
additionalData: '@use "@ganwei-web/gw-base-style-plus/style.scss" as *;',
|
|
86
|
+
javascriptEnabled: true
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
server: {
|
|
91
|
+
headers: {
|
|
92
|
+
"Access-Control-Allow-Origin": "*"
|
|
93
|
+
},
|
|
94
|
+
cors: { credentials: true, methods: "PUT,POST,GET,DELETE,OPTIONS", origin: VITE_APP_INDEX_PORT },
|
|
95
|
+
host: VITE_APP_THIS_URL, // 指定服务器应该监听哪个 IP 地址
|
|
96
|
+
port: VITE_APP_PORT, // 端口
|
|
97
|
+
strictPort: true, // 若端口已被占用,尝试下移一格端口
|
|
98
|
+
https: false, // 启用 TLS + HTTP/2
|
|
99
|
+
open: false,
|
|
100
|
+
proxy: {
|
|
101
|
+
"/api": {
|
|
102
|
+
target: VITE_APP_TARGET_URL,
|
|
103
|
+
changeOrigin: true,
|
|
104
|
+
secure: false,
|
|
105
|
+
rewrite: path => path.replace(/^\/api/, "/api"),
|
|
106
|
+
headers: {
|
|
107
|
+
Referer: VITE_APP_TARGET_URL
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"/IoT": {
|
|
111
|
+
target: VITE_APP_TARGET_URL,
|
|
112
|
+
changeOrigin: true,
|
|
113
|
+
secure: false,
|
|
114
|
+
rewrite: path => path.replace(/^\/IoT/, "/IoT"),
|
|
115
|
+
headers: {
|
|
116
|
+
Referer: VITE_APP_TARGET_URL
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"/monitor": {
|
|
120
|
+
target: VITE_APP_TARGET_URL,
|
|
121
|
+
changeOrigin: true,
|
|
122
|
+
secure: false,
|
|
123
|
+
ws: true,
|
|
124
|
+
rewrite: path => path.replace(/^\/monitor/, "/monitor"),
|
|
125
|
+
headers: {
|
|
126
|
+
Referer: VITE_APP_TARGET_URL
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"/downFileNotify": {
|
|
130
|
+
target: VITE_APP_TARGET_URL,
|
|
131
|
+
changeOrigin: true,
|
|
132
|
+
secure: false,
|
|
133
|
+
ws: true,
|
|
134
|
+
rewrite: path => path.replace(/^\/downFileNotify/, "/downFileNotify"),
|
|
135
|
+
headers: {
|
|
136
|
+
Referer: VITE_APP_TARGET_URL
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"/workOrder": {
|
|
140
|
+
target: VITE_APP_TARGET_URL,
|
|
141
|
+
changeOrigin: true,
|
|
142
|
+
secure: false,
|
|
143
|
+
ws: true,
|
|
144
|
+
rewrite: path => path.replace(/^\/workOrder/, "/workOrder"),
|
|
145
|
+
headers: {
|
|
146
|
+
Referer: VITE_APP_TARGET_URL
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"/DownloadFile": {
|
|
150
|
+
target: VITE_APP_TARGET_URL,
|
|
151
|
+
changeOrigin: true,
|
|
152
|
+
secure: false,
|
|
153
|
+
ws: true,
|
|
154
|
+
rewrite: path => path.replace(/^\/DownloadFile/, "/DownloadFile"),
|
|
155
|
+
headers: {
|
|
156
|
+
Referer: VITE_APP_TARGET_URL
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"/jdsso": {
|
|
160
|
+
target: VITE_APP_TARGET_URL,
|
|
161
|
+
changeOrigin: true,
|
|
162
|
+
secure: false,
|
|
163
|
+
ws: true,
|
|
164
|
+
rewrite: path => path.replace(/^\/jdsso/, "/jdsso"),
|
|
165
|
+
headers: {
|
|
166
|
+
Referer: VITE_APP_TARGET_URL
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"/eGroupNotify": {
|
|
170
|
+
target: VITE_APP_TARGET_URL,
|
|
171
|
+
changeOrigin: true,
|
|
172
|
+
secure: false,
|
|
173
|
+
ws: true,
|
|
174
|
+
rewrite: path => path.replace(/^\/eGroupNotify/, "/eGroupNotify"),
|
|
175
|
+
headers: {
|
|
176
|
+
Referer: VITE_APP_TARGET_URL
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"/equipStatusMonitor": {
|
|
180
|
+
target: VITE_APP_TARGET_URL,
|
|
181
|
+
changeOrigin: true,
|
|
182
|
+
secure: false,
|
|
183
|
+
ws: true,
|
|
184
|
+
rewrite: path => path.replace(/^\/equipStatusMonitor/, "/equipStatusMonitor"),
|
|
185
|
+
headers: {
|
|
186
|
+
Referer: VITE_APP_TARGET_URL
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
force: true, // 强制使依赖预构建
|
|
191
|
+
hmr: {},
|
|
192
|
+
watch: {},
|
|
193
|
+
fs: {
|
|
194
|
+
strict: false, // 限制为工作区 root 路径以外的文件的访问
|
|
195
|
+
allow: [], // 限制哪些文件可以通过 /@fs/ 路径提供服务
|
|
196
|
+
deny: [".env", ".env.*", "*.{pem,crt}"] // 用于限制 Vite 开发服务器提供敏感文件的黑名单
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
build: {
|
|
200
|
+
sourcemap: false, // 构建后是否生成 source map 文件
|
|
201
|
+
chunkSizeWarningLimit: 1500, // 规定触发警告的 chunk(文件块) 大小
|
|
202
|
+
cssCodeSplit: true,
|
|
203
|
+
// brotliSize: false, // 禁用压缩大小报告
|
|
204
|
+
minify: "esbuild",
|
|
205
|
+
terserOptions: {
|
|
206
|
+
compress: {
|
|
207
|
+
drop_console: true, // 生产环境去除console
|
|
208
|
+
drop_debugger: true // 生产环境去除debugger
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
//outDir: path.resolve(__dirname, `../../dist/${name}`),
|
|
212
|
+
rollupOptions: {
|
|
213
|
+
// 自定义底层的 Rollup 打包配置 ('[name]'.includes("ganwe")?'[name]/':'')
|
|
214
|
+
output: {
|
|
215
|
+
dir: path.resolve(__dirname, `../../dist/${name}`),
|
|
216
|
+
assetFileNames: assetInfo => {
|
|
217
|
+
if (!assetInfo.name) {
|
|
218
|
+
throw Error("assetInfo.name is empty")
|
|
219
|
+
}
|
|
220
|
+
const info = assetInfo.name.split(".")
|
|
221
|
+
let extType = info[info.length - 1]
|
|
222
|
+
if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType)) {
|
|
223
|
+
extType = "images"
|
|
224
|
+
}
|
|
225
|
+
return `assets/${extType}/[name]-[hash][extname]`
|
|
226
|
+
},
|
|
227
|
+
chunkFileNames: `assets/js/[name]-[hash].js`,
|
|
228
|
+
entryFileNames: `assets/js/[name]-[hash].js`,
|
|
229
|
+
compact: false,
|
|
230
|
+
manualChunks(id) {
|
|
231
|
+
if (id.includes("node_modules")) {
|
|
232
|
+
return "vendor"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
emptyOutDir: false
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
}
|
package/ganwei-pc.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ganwei-web/ganwei-pc-cli",
|
|
3
|
+
"version": "6.2.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "gw",
|
|
8
|
+
"bin": {
|
|
9
|
+
"ganwei-pc": "ganwei-pc.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"src",
|
|
13
|
+
"ganwei-pc.js",
|
|
14
|
+
"ganwei-iotcenter-index-6.2.0",
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"link": "npm unlink & npm link & ganwei-pc"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"prompts": "^2.4.2",
|
|
23
|
+
"commander": "^11.1.0",
|
|
24
|
+
"fast-glob": "^3.3.1",
|
|
25
|
+
"kolorist": "^1.8.0",
|
|
26
|
+
"minimist": "^1.2.8"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Description:
|
|
3
|
+
* @LastEditTime: 2024-09-24 10:00:39
|
|
4
|
+
*/
|
|
5
|
+
import { execSync } from 'child_process';
|
|
6
|
+
import { existsSync, readdirSync, readFileSync, copyFileSync } from 'fs'
|
|
7
|
+
import path from 'path'
|
|
8
|
+
import fastGlob from 'fast-glob'
|
|
9
|
+
|
|
10
|
+
import { copy } from './create-app.js'
|
|
11
|
+
|
|
12
|
+
export function copyConfig (source, dest, filter = "*") {
|
|
13
|
+
if (source && dest) {
|
|
14
|
+
if (!checkDest(dest)) {
|
|
15
|
+
return console.log('Target Address Exception:' + path.resolve(process.cwd(), dest));
|
|
16
|
+
}
|
|
17
|
+
let matchModules = fastGlob.globSync([`packages/${filter}/package.json`], {
|
|
18
|
+
cwd: process.cwd(),
|
|
19
|
+
ignore: [
|
|
20
|
+
'**/node_modules/**',
|
|
21
|
+
'**/bower_components/**',
|
|
22
|
+
'**/test/**',
|
|
23
|
+
'**/tests/**'
|
|
24
|
+
]
|
|
25
|
+
})
|
|
26
|
+
if (matchModules.length == 0) {
|
|
27
|
+
returnconsole.log('Module Not Matched')
|
|
28
|
+
}
|
|
29
|
+
const targets = getDestination(dest, matchModules)
|
|
30
|
+
const sourceFile = path.resolve(process.cwd(), source)
|
|
31
|
+
for (let target of targets) {
|
|
32
|
+
copy(sourceFile, target)
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
copyAllFile()
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function copyAllFile () {
|
|
40
|
+
const sourceDir = path.resolve(process.cwd(), 'moduleConfiguration/copyFile.js');
|
|
41
|
+
if (!checkFile(sourceDir)) {
|
|
42
|
+
console.log(sourceDir + ' file does not exist');
|
|
43
|
+
return false
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
execSync(`node ${sourceDir}`, { stdio: 'inherit' })
|
|
47
|
+
} catch (e) {
|
|
48
|
+
console.log(err);
|
|
49
|
+
return false
|
|
50
|
+
}
|
|
51
|
+
return true
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function copyFile (file) {
|
|
55
|
+
if (!checkFile(file)) {
|
|
56
|
+
console.log(file + ' file does not exist');
|
|
57
|
+
return
|
|
58
|
+
}
|
|
59
|
+
console.log(`源文件 ${file}`);
|
|
60
|
+
const fileName = path.basename(file)
|
|
61
|
+
const targetDir = path.resolve(process.cwd(), 'packages')
|
|
62
|
+
readdirSync(targetDir).forEach(module => {
|
|
63
|
+
const modulePath = path.resolve(targetDir, module, fileName)
|
|
64
|
+
console.log(` => ${modulePath}`);
|
|
65
|
+
copyFileSync(file, modulePath)
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function checkFile (file) {
|
|
70
|
+
const sourceDir = path.resolve(process.cwd(), 'moduleConfiguration/');
|
|
71
|
+
const sourceFile = path.resolve(sourceDir, file)
|
|
72
|
+
return existsSync(sourceFile)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function getDestination (target, matchModules) {
|
|
76
|
+
return matchModules.map(module => path.resolve(process.cwd(), path.dirname(module), target))
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function checkDest (dest) {
|
|
80
|
+
const destResolve = path.resolve(process.cwd(), dest)
|
|
81
|
+
if (destResolve.includes(process.cwd())) {
|
|
82
|
+
return true
|
|
83
|
+
}
|
|
84
|
+
return false
|
|
85
|
+
}
|
package/src/copyDemo.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import { copy } from './create-app.js'
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import { fileURLToPath } from 'url'
|
|
5
|
+
import { existsSync, readdirSync, mkdirSync } from 'fs'
|
|
6
|
+
import { red } from 'kolorist'
|
|
7
|
+
|
|
8
|
+
const templateBase = path.resolve(fileURLToPath(new URL(import.meta.url)), '../../')
|
|
9
|
+
|
|
10
|
+
export async function copyDemo () {
|
|
11
|
+
const root = path.resolve(process.cwd(), 'ganwei-iotcenter-index')
|
|
12
|
+
if (existsSync(root)) {
|
|
13
|
+
throw new Error(red('✖') + ` ${root} already exists`)
|
|
14
|
+
}
|
|
15
|
+
mkdirSync(root)
|
|
16
|
+
const files = readdirSync(path.resolve(templateBase, 'ganwei-iotcenter-index'))
|
|
17
|
+
for (const file of files) {
|
|
18
|
+
const targetPath = path.resolve(root, file)
|
|
19
|
+
copy(path.resolve(templateBase, 'ganwei-iotcenter-index', file), targetPath)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import prompts from 'prompts'
|
|
4
|
+
import path from 'path'
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
6
|
+
import { existsSync, writeFileSync, readdirSync, statSync, copyFileSync, mkdirSync, readFileSync } from 'fs'
|
|
7
|
+
import fs from 'fs'
|
|
8
|
+
import {
|
|
9
|
+
blue,
|
|
10
|
+
cyan,
|
|
11
|
+
green,
|
|
12
|
+
lightBlue,
|
|
13
|
+
lightGreen,
|
|
14
|
+
lightRed,
|
|
15
|
+
magenta,
|
|
16
|
+
red,
|
|
17
|
+
reset,
|
|
18
|
+
yellow,
|
|
19
|
+
} from 'kolorist'
|
|
20
|
+
import { createQuestions } from './createQuestions.js'
|
|
21
|
+
|
|
22
|
+
const templateBase = path.resolve(fileURLToPath(new URL(import.meta.url)), '../../')
|
|
23
|
+
|
|
24
|
+
export function getTemplate (vue) {
|
|
25
|
+
return path.resolve(templateBase, `ganwei-iotcenter-index-${vue}`)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export async function createApp (name, rootPath) {
|
|
29
|
+
let result = {}
|
|
30
|
+
try {
|
|
31
|
+
result = await prompts(createQuestions(name), {
|
|
32
|
+
onCancel: () => {
|
|
33
|
+
throw new Error(red('✖') + ' Operation cancelled')
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
} catch (cancelled) {
|
|
38
|
+
console.log(cancelled.message)
|
|
39
|
+
return
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const { projectName, Vue, language } = result
|
|
43
|
+
const root = path.resolve(rootPath, projectName)
|
|
44
|
+
if (existsSync(root)) {
|
|
45
|
+
console.log(templateBase +" Already Exists: "+ projectName);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
mkdirSync(root)
|
|
49
|
+
|
|
50
|
+
const write = (file, content) => {
|
|
51
|
+
const targetPath = path.join(root, file)
|
|
52
|
+
if (content) {
|
|
53
|
+
writeFileSync(targetPath, content)
|
|
54
|
+
} else {
|
|
55
|
+
copy(path.join(templateDir, file), targetPath)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const templateDir = getTemplate(Vue)
|
|
60
|
+
const files = readdirSync(templateDir)
|
|
61
|
+
for (const file of files.filter((f) => f !== 'package.json')) {
|
|
62
|
+
write(file)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const pkg = JSON.parse(
|
|
66
|
+
readFileSync(path.join(templateDir, `package.json`), 'utf-8'),
|
|
67
|
+
)
|
|
68
|
+
pkg.name = projectName
|
|
69
|
+
|
|
70
|
+
write('package.json', JSON.stringify(pkg, null, 2) + '\n')
|
|
71
|
+
console.log(`\nDone. \n`)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function copy (src, dest) {
|
|
75
|
+
const stat = statSync(src)
|
|
76
|
+
if (stat.isDirectory()) {
|
|
77
|
+
copyDir(src, dest)
|
|
78
|
+
} else {
|
|
79
|
+
copyFileSync(src, dest)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function copyDir (srcDir, destDir) {
|
|
84
|
+
mkdirSync(destDir, { recursive: true })
|
|
85
|
+
for (const file of readdirSync(srcDir)) {
|
|
86
|
+
const srcFile = path.resolve(srcDir, file)
|
|
87
|
+
const destFile = path.resolve(destDir, file)
|
|
88
|
+
copy(srcFile, destFile)
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Description:
|
|
3
|
+
* @LastEditTime: 2024-11-11 10:37:18
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
blue,
|
|
8
|
+
cyan,
|
|
9
|
+
green,
|
|
10
|
+
lightBlue,
|
|
11
|
+
lightGreen,
|
|
12
|
+
lightRed,
|
|
13
|
+
magenta,
|
|
14
|
+
red,
|
|
15
|
+
reset,
|
|
16
|
+
yellow,
|
|
17
|
+
} from 'kolorist'
|
|
18
|
+
|
|
19
|
+
export function createQuestions(projectName) {
|
|
20
|
+
return [
|
|
21
|
+
{
|
|
22
|
+
type: 'text',
|
|
23
|
+
name: 'projectName',
|
|
24
|
+
message: 'projectName',
|
|
25
|
+
initial: projectName || 'template',
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
// {
|
|
29
|
+
// type: 'select',
|
|
30
|
+
// name: 'language',
|
|
31
|
+
// message: 'language type',
|
|
32
|
+
// choices: [
|
|
33
|
+
// { title: yellow('JavaScript'), value: 'JS' },
|
|
34
|
+
// { title: blue('TypeScript'), value: 'TS' },
|
|
35
|
+
// ],
|
|
36
|
+
// },
|
|
37
|
+
{
|
|
38
|
+
type: 'select',
|
|
39
|
+
name: 'Vue',
|
|
40
|
+
message: 'Scaffold Version',
|
|
41
|
+
choices: [
|
|
42
|
+
{ title: yellow('6.2.0'), value: '6.2.0' },
|
|
43
|
+
],
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Description:
|
|
3
|
+
* @LastEditTime: 2024-09-14 14:55:54
|
|
4
|
+
*/
|
|
5
|
+
import { Command } from 'commander'
|
|
6
|
+
import { readFile } from 'fs/promises';
|
|
7
|
+
import path from 'path'
|
|
8
|
+
|
|
9
|
+
import { copyConfig } from './copyConfig.js'
|
|
10
|
+
import { createApp } from './create-app.js'
|
|
11
|
+
import { remove } from './remove-depencies.js'
|
|
12
|
+
import { copyDemo } from './copyDemo.js'
|
|
13
|
+
|
|
14
|
+
const packageJson = JSON.parse(await readFile(new URL('../package.json', import.meta.url)));
|
|
15
|
+
const program = new Command()
|
|
16
|
+
program
|
|
17
|
+
.version(`ganwei-pc-cli ${packageJson.version}`)
|
|
18
|
+
.usage('<command> [options]')
|
|
19
|
+
|
|
20
|
+
// ⭐ 注册主命令相关选项
|
|
21
|
+
program
|
|
22
|
+
.description('ganwei-pc-cli')
|
|
23
|
+
|
|
24
|
+
program
|
|
25
|
+
.command('cp [source] [destination]')
|
|
26
|
+
.description('Synchronize Files')
|
|
27
|
+
.option('-a, --all', 'Synchronize All Files')
|
|
28
|
+
.option('-f, --filter [pattern]', 'Matching Submodule')
|
|
29
|
+
.action(async (source, dest, options) => {
|
|
30
|
+
if (source && dest && options.filter) {
|
|
31
|
+
copyConfig(source, dest, options.filter)
|
|
32
|
+
return
|
|
33
|
+
}
|
|
34
|
+
if (options.all) {
|
|
35
|
+
copyConfig()
|
|
36
|
+
return
|
|
37
|
+
}
|
|
38
|
+
console.log('ganwei cp -h View Help')
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
program
|
|
42
|
+
.command('create [web-name]')
|
|
43
|
+
.description('Generate Template Project')
|
|
44
|
+
.action(async (name) => {
|
|
45
|
+
await createApp(name, process.cwd())
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
// program
|
|
49
|
+
// .command('demo')
|
|
50
|
+
// .description('生成完整项目文件')
|
|
51
|
+
// .action(async (name) => {
|
|
52
|
+
// await copyDemo();
|
|
53
|
+
// await createApp('ganwei-demo', path.resolve(process.cwd(), 'ganwei/packages'));
|
|
54
|
+
// })
|
|
55
|
+
|
|
56
|
+
// program
|
|
57
|
+
// .command('clean')
|
|
58
|
+
// .description('清除所有依赖')
|
|
59
|
+
// .action(async (name) => {
|
|
60
|
+
// // await createApp(name)
|
|
61
|
+
// remove()
|
|
62
|
+
// })
|
|
63
|
+
program.parse(process.argv)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import path from 'path'
|
|
2
|
+
import fastGlob from 'fast-glob'
|
|
3
|
+
import { rmdirSync } from 'fs'
|
|
4
|
+
export function remove (filter = "*") {
|
|
5
|
+
let matchModules = fastGlob.globSync([`packages/${filter}/package.json`], {
|
|
6
|
+
cwd: process.cwd(),
|
|
7
|
+
ignore: [
|
|
8
|
+
'**/node_modules/**',
|
|
9
|
+
'**/bower_components/**',
|
|
10
|
+
'**/test/**',
|
|
11
|
+
'**/tests/**'
|
|
12
|
+
]
|
|
13
|
+
})
|
|
14
|
+
if (matchModules.length == 0) {
|
|
15
|
+
return console.log('未匹配到模块')
|
|
16
|
+
}
|
|
17
|
+
matchModules = matchModules.map(module => path.resolve(process.cwd(), path.dirname(module), 'node_modules'))
|
|
18
|
+
removeDirectory(matchModules)
|
|
19
|
+
removeDirectory([path.resolve(process.cwd(), 'node_modules')])
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function removeDirectory (matchModules) {
|
|
23
|
+
for (let module of matchModules) {
|
|
24
|
+
console.log('remove ' + module)
|
|
25
|
+
rmdirSync(module, { recursive: true, force: true })
|
|
26
|
+
}
|
|
27
|
+
}
|