@ganwei-web/ganwei-pc-cli 6.2.0 → 6.2.1
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/package.json +3 -3
- package/src/create-app.js +7 -7
- package/src/createQuestions.js +7 -16
- package/ganwei-iotcenter-index-6.2.0/.nvmrc +0 -1
- package/ganwei-iotcenter-index-6.2.0/configuration/cleanNodeModule.js +0 -18
- package/ganwei-iotcenter-index-6.2.0/configuration/gitClone.js +0 -45
- package/ganwei-iotcenter-index-6.2.0/configuration/moduleConfiguration.json +0 -20
- package/ganwei-iotcenter-index-6.2.0/configuration/updateModule.cjs +0 -30
- package/ganwei-iotcenter-index-6.2.0/init.cjs +0 -30
- package/ganwei-iotcenter-index-6.2.0/package.json +0 -41
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.babelrc +0 -4
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.editorconfig +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.env.development +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.env.production +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.env.test +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.eslintignore +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.eslintrc.cjs +0 -176
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.prettierignore +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/.prettierrc.cjs +0 -19
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/auto-imports.d.ts +0 -5
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/build/enteryJson.js +0 -9
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/build/vite-addInfo-html.ts +0 -38
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/build/vite-plugin-stats-html.js +0 -595
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/components.d.ts +0 -87
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/env.d.ts +0 -7
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/index.html +0 -31
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/package.json +0 -89
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/element-plus/css-vars.css +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/element-plus/index.css +0 -16959
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/element-ui/index.css +0 -16075
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/equipStatus.css +0 -70
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/index.css +0 -15926
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/css/reset-6-1.css +0 -155
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.css +0 -1135
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.js +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/appFont/iconfont.json +0 -1969
- 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 +0 -3779
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.js +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.json +0 -6596
- 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 +0 -486
- 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 +0 -48
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-alarmIcon-green.svg +0 -42
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-alarmIcon-light.svg +0 -26
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-apppreview-dark.svg +0 -20
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-apppreview-green.svg +0 -20
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-apppreview-light.svg +0 -14
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull-dark.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull-green.svg +0 -16
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull-light.svg +0 -16
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-contentfull.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen-dark.svg +0 -19
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen-green.svg +0 -14
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen-light.svg +0 -12
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-fullscreen.svg +0 -19
- 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 +0 -67
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-logo-src-green.svg +0 -67
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-logo-src-light.svg +0 -67
- 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 +0 -67
- 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 +0 -32
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-normalIcon-green.svg +0 -32
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-normalIcon-light.svg +0 -9
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin-dark.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin-green.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin-light.svg +0 -15
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-skin.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping-dark.svg +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping-green.svg +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping-light.svg +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-tuchuquanping.svg +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-upgrade.svg +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user-dark.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user-green.svg +0 -27
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user-light.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-user.svg +0 -26
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-warningIcon-dark.svg +0 -37
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-warningIcon-green.svg +0 -37
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/index-warningIcon-light.svg +0 -15
- 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 +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/renew-message-green.svg +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/renew-message-light.svg +0 -1
- 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 +0 -19
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/unread-message-green.svg +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/unread-message-light.svg +0 -17
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/images/webconfig-location.svg +0 -17
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/axios.min.js +0 -2
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/echarts.min.js +0 -25
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/element-ui/index.js +0 -1
- 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 +0 -86
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/filereader.js +0 -455
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/font.js +0 -56
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getConfigInfoData.js +0 -57
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getLanguage.js +0 -144
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getLanguageOptions.js +0 -52
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/getUserPermissionList.js +0 -55
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/h5player.min.js +0 -311
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/hmac-sha256.js +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/jquery.slim.min.js +0 -2
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/jsencrypt.min.js +0 -2
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/jszip.min.js +0 -14
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/liveplayer-lib.min.js +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/moment.js +0 -5670
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/pptxjs.min.js +0 -14105
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/signalr.min.js +0 -17
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/tXml.js +0 -244
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/transformpcm.worker.js +0 -58
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vue-i18n.min.js +0 -6
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vue-router.min.js +0 -11
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vue.min.js +0 -11
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/vuex.min.js +0 -6
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/json/RAMScope.json +0 -201
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/json/config.json +0 -154
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/json/snapshot.json +0 -34
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/lib/treeV2/treeV2.css +0 -246
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/lib/treeV2/treeV2.js +0 -5384
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/dark-6-1.css +0 -430
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/dark.css +0 -426
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/default-theme-6-1.js +0 -48
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/default-theme.js +0 -53
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/green-6-1.css +0 -357
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/light-6-1.css +0 -424
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/light.css +0 -414
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/themes/themeConfig.json +0 -42
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/App.vue +0 -52
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/assets/plugins/encrypt.js +0 -122
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/auto-import.d.ts +0 -61
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/asideMenu/contractMenu.vue +0 -216
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/asideMenu/menu.vue +0 -238
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/asideMenu/topNav.vue +0 -238
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/contextMenu/index.js +0 -42
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/contextMenu/index.vue +0 -113
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexLeftContent/index.js +0 -204
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexLeftContent/index.scss +0 -258
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexLeftContent/index.vue +0 -112
- 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 +0 -282
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/contentFullScreen/index.js +0 -19
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/contentFullScreen/index.vue +0 -10
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/fullScreen/index.js +0 -50
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/fullScreen/index.vue +0 -10
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/index.js +0 -28
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/index.scss +0 -137
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/index.vue +0 -20
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/ApprovalDialog.vue +0 -135
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/index.js +0 -327
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/index.scss +0 -253
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/processDesign/index.vue +0 -61
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/RenewDialog.vue +0 -97
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/index.js +0 -95
- 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 +0 -8
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/renewMessages/renew.vue +0 -271
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/saveMode/index.js +0 -45
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/saveMode/index.scss +0 -36
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/saveMode/index.vue +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/switchTheme/index.js +0 -70
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/switchTheme/index.scss +0 -94
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/switchTheme/index.vue +0 -35
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/unReadMessages/index.js +0 -146
- 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 +0 -8
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/upgrade/index.js +0 -81
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/upgrade/index.scss +0 -147
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/upgrade/index.vue +0 -30
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/forceEdit.js +0 -78
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/index.js +0 -265
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/index.scss +0 -5
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/PWEditDialog/index.vue +0 -39
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/index.js +0 -94
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/index.scss +0 -113
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/index.vue +0 -90
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/logoutDialog/index.js +0 -68
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/logoutDialog/index.vue +0 -16
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/restartPlatformDialog/index.js +0 -178
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/restartPlatformDialog/index.scss +0 -16
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/restartPlatformDialog/index.vue +0 -46
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/safeModeDialog/index.vue +0 -195
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/switchPark/index.js +0 -70
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/switchPark/index.scss +0 -95
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/switchPark/index.vue +0 -35
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/systemInfoDialog/index.js +0 -240
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/systemInfoDialog/index.scss +0 -158
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/headerRight/userInfo/systemInfoDialog/index.vue +0 -50
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/index.js +0 -63
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/index.scss +0 -40
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/index.vue +0 -20
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/labelPage/index.js +0 -398
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/labelPage/index.scss +0 -136
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/labelPage/index.vue +0 -36
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/normalPage/index.js +0 -34
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/normalPage/index.scss +0 -44
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/indexRightContent/normalPage/index.vue +0 -21
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/inputPassword/index.vue +0 -65
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/isDebug/isDebug.vue +0 -57
- 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 +0 -78
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/noAccess/noPage.vue +0 -68
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/sceneMonitor/index.js +0 -95
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/toast/index.js +0 -65
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/toast/index.vue +0 -136
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/unreadMsg/listItem.vue +0 -36
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/components/unreadMsg/unread.vue +0 -300
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/hostMap.js +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/main.js +0 -50
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/mixins/judgePermission.js +0 -29
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/publish/pub.ts +0 -28
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/request/api/frame.js +0 -142
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/request/api.js +0 -14
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/router.js +0 -34
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/store.js +0 -221
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/types.js +0 -16
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/MFEManager.js +0 -156
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/gwEquipCache.js +0 -325
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/gwSignalr.js +0 -66
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/historyExport.js +0 -158
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/utils/setStorage.js +0 -5
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/Index.vue +0 -81
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/index.js +0 -297
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/jumpIframe/index.vue +0 -242
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/jumpIframe/preloadMethod.js +0 -54
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/src/views/jumpIframe/queryParser.js +0 -47
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/tsconfig.json +0 -57
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/vite.config.ts +0 -270
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.babelrc +0 -8
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.editorconfig +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.env.development +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.env.production +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.env.test +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.eslintignore +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.eslintrc.cjs +0 -162
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.prettierignore +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/.prettierrc.cjs +0 -37
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/auto-imports.d.ts +0 -5
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/build/enteryJson.js +0 -72
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/build/vite-addInfo-html.ts +0 -38
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/build/vite-plugin-stats-html.js +0 -595
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/env.d.ts +0 -7
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/index.html +0 -34
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/package.json +0 -84
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/drag.css +0 -140
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-plus/css-vars.css +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-plus/index.css +0 -16957
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-ui/index.css +0 -16075
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/element-ui/reset.css +0 -1471
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/index.css +0 -15926
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/css/reset-6-1.css +0 -114
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.css +0 -1135
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.js +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/appFont/iconfont.json +0 -1969
- 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 +0 -4151
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.js +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/fonts/font/iconfont.json +0 -7247
- 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 +0 -316
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/center.svg +0 -23
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/centerActive.svg +0 -24
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/center_light.svg +0 -15
- 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 +0 -67
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-logo-src-green.svg +0 -67
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/index-logo-src-light.svg +0 -67
- 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 +0 -67
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/left.svg +0 -23
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/leftActive.svg +0 -24
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/left_light.svg +0 -15
- 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 +0 -23
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/rightActive.svg +0 -24
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/images/right_light.svg +0 -15
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/axios.min.js +0 -3
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/drag.js +0 -391
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/font.js +0 -57
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/getConfigInfoData.js +0 -57
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/getLanguage.js +0 -143
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/getLanguageOptions.js +0 -52
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/js/jquery.min.js +0 -10716
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/dark-6-1.css +0 -333
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/dark.css +0 -426
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/default-theme-6-1.js +0 -46
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/default-theme.js +0 -53
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/green-6-1.css +0 -336
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/light-6-1.css +0 -338
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/light.css +0 -414
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/public/static/themes/themeConfig.json +0 -42
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/App.vue +0 -70
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/alertHandle.scss +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/browserScroll.scss +0 -5
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/btnHandle.scss +0 -36
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/containerHandle.scss +0 -402
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/dialogStyle.scss +0 -43
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/equipStatus.scss +0 -88
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/index.scss +0 -1358
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/inputStyle.scss +0 -16
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/listHandle.scss +0 -113
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/login.scss +0 -335
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/mainInfo.scss +0 -297
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/maintenanceInfo.scss +0 -199
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/style.css +0 -921
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/tableHandle.scss +0 -147
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/assets/css/txtHandle.scss +0 -39
- 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 +0 -122
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/declaration/declaration.scss +0 -118
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/declaration/declaration.vue +0 -109
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/declaration/declarationPacts.vue +0 -42
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/checkEmailContainer.vue +0 -134
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/inputEmailContainer.vue +0 -128
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/modifyPasswordContainer.vue +0 -138
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/passwordModification - /345/211/257/346/234/254.vue" +0 -4
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/components/passwordModification/passwordModification.vue +0 -223
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/directive/loadMore/loadMore.js +0 -14
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/hostMap.js +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/main.js +0 -39
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/mixins/setDefaultLanguage.js +0 -87
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/request/api/login.js +0 -95
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/request/api.js +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/router.js +0 -48
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/types.js +0 -16
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/formValidate.js +0 -25
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/isApp.js +0 -18
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/language.js +0 -45
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/myUtils.js +0 -646
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/timeFormat.js +0 -23
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/utils/timesYMDHMS.js +0 -27
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/js/mainInfo.js +0 -374
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/js/maintenanceInfo.js +0 -202
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/login.vue +0 -458
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/ssoLogin.vue +0 -230
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/src/views/ssoLogout.vue +0 -58
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-login/vite.config.ts +0 -237
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.babelrc +0 -8
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.editorconfig +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.env.development +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.env.production +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.env.test +0 -22
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.eslintignore +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.eslintrc.cjs +0 -162
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.prettierignore +0 -13
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/.prettierrc.cjs +0 -37
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/auto-imports.d.ts +0 -5
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/enteryJson.js +0 -64
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-addInfo-html.js +0 -15
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-addInfo-html.ts +0 -38
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-plugin-stats-html +0 -14
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/build/vite-plugin-stats-html.js +0 -595
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/env.d.ts +0 -7
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/index.html +0 -25
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/package.json +0 -94
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/css/element-plus/css-vars.css +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/css/element-plus/index.css +0 -16957
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/css/reset-6-1.css +0 -114
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.css +0 -1135
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.js +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/appFont/iconfont.json +0 -1969
- 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 +0 -3535
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.js +0 -1
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/fonts/font/iconfont.json +0 -6169
- 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 +0 -372
- 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 +0 -3
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/font.js +0 -58
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/getConfigInfoData.js +0 -58
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/getLanguage.js +0 -142
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/js/getLanguageOptions.js +0 -51
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/dark-6-1.css +0 -430
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/default-theme-6-1.js +0 -48
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/light-6-1.css +0 -424
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/public/static/themes/themeConfig.json +0 -42
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/App.vue +0 -41
- 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 +0 -14
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/main.js +0 -39
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/request/api/template.js +0 -11
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/request/api.js +0 -9
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/router.js +0 -23
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/utils/setStorage.js +0 -5
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/src/views/template.vue +0 -49
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/tsconfig.json +0 -21
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/tsconfig.node.json +0 -10
- package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-template/vite.config.ts +0 -240
- package/ganwei-iotcenter-index-6.2.0/pnpm-workspace.yaml +0 -3
|
Binary file
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
CryptoJS v3.1.2
|
|
3
|
-
code.google.com/p/crypto-js
|
|
4
|
-
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
|
5
|
-
code.google.com/p/crypto-js/wiki/License
|
|
6
|
-
*/
|
|
7
|
-
var CryptoJS = CryptoJS || function (h, s) {
|
|
8
|
-
var f = {}, g = f.lib = {}, q = function () { }, m = g.Base = { extend: function (a) { q.prototype = this; var c = new q; a && c.mixIn(a); c.hasOwnProperty("init") || (c.init = function () { c.$super.init.apply(this, arguments) }); c.init.prototype = c; c.$super = this; return c }, create: function () { var a = this.extend(); a.init.apply(a, arguments); return a }, init: function () { }, mixIn: function (a) { for (var c in a) a.hasOwnProperty(c) && (this[c] = a[c]); a.hasOwnProperty("toString") && (this.toString = a.toString) }, clone: function () { return this.init.prototype.extend(this) } },
|
|
9
|
-
r = g.WordArray = m.extend({
|
|
10
|
-
init: function (a, c) { a = this.words = a || []; this.sigBytes = c != s ? c : 4 * a.length }, toString: function (a) { return (a || k).stringify(this) }, concat: function (a) { var c = this.words, d = a.words, b = this.sigBytes; a = a.sigBytes; this.clamp(); if (b % 4) for (var e = 0; e < a; e++)c[b + e >>> 2] |= (d[e >>> 2] >>> 24 - 8 * (e % 4) & 255) << 24 - 8 * ((b + e) % 4); else if (65535 < d.length) for (e = 0; e < a; e += 4)c[b + e >>> 2] = d[e >>> 2]; else c.push.apply(c, d); this.sigBytes += a; return this }, clamp: function () {
|
|
11
|
-
var a = this.words, c = this.sigBytes; a[c >>> 2] &= 4294967295 <<
|
|
12
|
-
32 - 8 * (c % 4); a.length = h.ceil(c / 4)
|
|
13
|
-
}, clone: function () { var a = m.clone.call(this); a.words = this.words.slice(0); return a }, random: function (a) { for (var c = [], d = 0; d < a; d += 4)c.push(4294967296 * h.random() | 0); return new r.init(c, a) }
|
|
14
|
-
}), l = f.enc = {}, k = l.Hex = {
|
|
15
|
-
stringify: function (a) { var c = a.words; a = a.sigBytes; for (var d = [], b = 0; b < a; b++) { var e = c[b >>> 2] >>> 24 - 8 * (b % 4) & 255; d.push((e >>> 4).toString(16)); d.push((e & 15).toString(16)) } return d.join("") }, parse: function (a) {
|
|
16
|
-
for (var c = a.length, d = [], b = 0; b < c; b += 2)d[b >>> 3] |= parseInt(a.substr(b,
|
|
17
|
-
2), 16) << 24 - 4 * (b % 8); return new r.init(d, c / 2)
|
|
18
|
-
}
|
|
19
|
-
}, n = l.Latin1 = { stringify: function (a) { var c = a.words; a = a.sigBytes; for (var d = [], b = 0; b < a; b++)d.push(String.fromCharCode(c[b >>> 2] >>> 24 - 8 * (b % 4) & 255)); return d.join("") }, parse: function (a) { for (var c = a.length, d = [], b = 0; b < c; b++)d[b >>> 2] |= (a.charCodeAt(b) & 255) << 24 - 8 * (b % 4); return new r.init(d, c) } }, j = l.Utf8 = { stringify: function (a) { try { return decodeURIComponent(escape(n.stringify(a))) } catch (c) { throw Error("Malformed UTF-8 data"); } }, parse: function (a) { return n.parse(unescape(encodeURIComponent(a))) } },
|
|
20
|
-
u = g.BufferedBlockAlgorithm = m.extend({
|
|
21
|
-
reset: function () { this._data = new r.init; this._nDataBytes = 0 }, _append: function (a) { "string" == typeof a && (a = j.parse(a)); this._data.concat(a); this._nDataBytes += a.sigBytes }, _process: function (a) { var c = this._data, d = c.words, b = c.sigBytes, e = this.blockSize, f = b / (4 * e), f = a ? h.ceil(f) : h.max((f | 0) - this._minBufferSize, 0); a = f * e; b = h.min(4 * a, b); if (a) { for (var g = 0; g < a; g += e)this._doProcessBlock(d, g); g = d.splice(0, a); c.sigBytes -= b } return new r.init(g, b) }, clone: function () {
|
|
22
|
-
var a = m.clone.call(this);
|
|
23
|
-
a._data = this._data.clone(); return a
|
|
24
|
-
}, _minBufferSize: 0
|
|
25
|
-
}); g.Hasher = u.extend({
|
|
26
|
-
cfg: m.extend(), init: function (a) { this.cfg = this.cfg.extend(a); this.reset() }, reset: function () { u.reset.call(this); this._doReset() }, update: function (a) { this._append(a); this._process(); return this }, finalize: function (a) { a && this._append(a); return this._doFinalize() }, blockSize: 16, _createHelper: function (a) { return function (c, d) { return (new a.init(d)).finalize(c) } }, _createHmacHelper: function (a) {
|
|
27
|
-
return function (c, d) {
|
|
28
|
-
return (new t.HMAC.init(a,
|
|
29
|
-
d)).finalize(c)
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}); var t = f.algo = {}; return f
|
|
33
|
-
}(Math);
|
|
34
|
-
(function (h) {
|
|
35
|
-
for (var s = CryptoJS, f = s.lib, g = f.WordArray, q = f.Hasher, f = s.algo, m = [], r = [], l = function (a) { return 4294967296 * (a - (a | 0)) | 0 }, k = 2, n = 0; 64 > n;) { var j; a: { j = k; for (var u = h.sqrt(j), t = 2; t <= u; t++)if (!(j % t)) { j = !1; break a } j = !0 } j && (8 > n && (m[n] = l(h.pow(k, 0.5))), r[n] = l(h.pow(k, 1 / 3)), n++); k++ } var a = [], f = f.SHA256 = q.extend({
|
|
36
|
-
_doReset: function () { this._hash = new g.init(m.slice(0)) }, _doProcessBlock: function (c, d) {
|
|
37
|
-
for (var b = this._hash.words, e = b[0], f = b[1], g = b[2], j = b[3], h = b[4], m = b[5], n = b[6], q = b[7], p = 0; 64 > p; p++) {
|
|
38
|
-
if (16 > p) a[p] =
|
|
39
|
-
c[d + p] | 0; else { var k = a[p - 15], l = a[p - 2]; a[p] = ((k << 25 | k >>> 7) ^ (k << 14 | k >>> 18) ^ k >>> 3) + a[p - 7] + ((l << 15 | l >>> 17) ^ (l << 13 | l >>> 19) ^ l >>> 10) + a[p - 16] } k = q + ((h << 26 | h >>> 6) ^ (h << 21 | h >>> 11) ^ (h << 7 | h >>> 25)) + (h & m ^ ~h & n) + r[p] + a[p]; l = ((e << 30 | e >>> 2) ^ (e << 19 | e >>> 13) ^ (e << 10 | e >>> 22)) + (e & f ^ e & g ^ f & g); q = n; n = m; m = h; h = j + k | 0; j = g; g = f; f = e; e = k + l | 0
|
|
40
|
-
} b[0] = b[0] + e | 0; b[1] = b[1] + f | 0; b[2] = b[2] + g | 0; b[3] = b[3] + j | 0; b[4] = b[4] + h | 0; b[5] = b[5] + m | 0; b[6] = b[6] + n | 0; b[7] = b[7] + q | 0
|
|
41
|
-
}, _doFinalize: function () {
|
|
42
|
-
var a = this._data, d = a.words, b = 8 * this._nDataBytes, e = 8 * a.sigBytes;
|
|
43
|
-
d[e >>> 5] |= 128 << 24 - e % 32; d[(e + 64 >>> 9 << 4) + 14] = h.floor(b / 4294967296); d[(e + 64 >>> 9 << 4) + 15] = b; a.sigBytes = 4 * d.length; this._process(); return this._hash
|
|
44
|
-
}, clone: function () { var a = q.clone.call(this); a._hash = this._hash.clone(); return a }
|
|
45
|
-
}); s.SHA256 = q._createHelper(f); s.HmacSHA256 = q._createHmacHelper(f)
|
|
46
|
-
})(Math);
|
|
47
|
-
(function () {
|
|
48
|
-
var h = CryptoJS, s = h.enc.Utf8; h.algo.HMAC = h.lib.Base.extend({
|
|
49
|
-
init: function (f, g) { f = this._hasher = new f.init; "string" == typeof g && (g = s.parse(g)); var h = f.blockSize, m = 4 * h; g.sigBytes > m && (g = f.finalize(g)); g.clamp(); for (var r = this._oKey = g.clone(), l = this._iKey = g.clone(), k = r.words, n = l.words, j = 0; j < h; j++)k[j] ^= 1549556828, n[j] ^= 909522486; r.sigBytes = l.sigBytes = m; this.reset() }, reset: function () { var f = this._hasher; f.reset(); f.update(this._iKey) }, update: function (f) { this._hasher.update(f); return this }, finalize: function (f) {
|
|
50
|
-
var g =
|
|
51
|
-
this._hasher; f = g.finalize(f); g.reset(); return g.finalize(this._oKey.clone().concat(f))
|
|
52
|
-
}
|
|
53
|
-
})
|
|
54
|
-
})();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/*
|
|
58
|
-
CryptoJS v3.1.2
|
|
59
|
-
code.google.com/p/crypto-js
|
|
60
|
-
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
|
61
|
-
code.google.com/p/crypto-js/wiki/License
|
|
62
|
-
*/
|
|
63
|
-
(function () {
|
|
64
|
-
var h = CryptoJS, j = h.lib.WordArray
|
|
65
|
-
h.enc.Base64 = {
|
|
66
|
-
stringify: function (b) {
|
|
67
|
-
var e = b.words, f = b.sigBytes, c = this._map
|
|
68
|
-
b.clamp()
|
|
69
|
-
b = []
|
|
70
|
-
for (var a = 0; a < f; a += 3)for (var d = (e[a >>> 2] >>> 24 - 8 * (a % 4) & 255) << 16 | (e[a + 1 >>> 2] >>> 24 - 8 * ((a + 1) % 4) & 255) << 8 | e[a + 2 >>> 2] >>> 24 - 8 * ((a + 2) % 4) & 255,
|
|
71
|
-
g = 0; 4 > g && a + 0.75 * g < f; g++)b.push(c.charAt(d >>> 6 * (3 - g) & 63))
|
|
72
|
-
if (e = c.charAt(64)) for (; b.length % 4;)b.push(e);
|
|
73
|
-
return b.join('')
|
|
74
|
-
}, parse: function (b) {
|
|
75
|
-
var e = b.length, f = this._map, c = f.charAt(64)
|
|
76
|
-
c && (c = b.indexOf(c), -1 != c && (e = c))
|
|
77
|
-
for (var c = [], a = 0, d = 0; d <
|
|
78
|
-
e; d++)if (d % 4) {
|
|
79
|
-
var g = f.indexOf(b.charAt(d - 1)) << 2 * (d % 4), h = f.indexOf(b.charAt(d)) >>> 6 - 2 * (d % 4)
|
|
80
|
-
c[a >>> 2] |= (g | h) << 24 - 8 * (a % 4)
|
|
81
|
-
a++
|
|
82
|
-
}
|
|
83
|
-
return j.create(c, a)
|
|
84
|
-
}, _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
|
|
85
|
-
}
|
|
86
|
-
})()
|
package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/filereader.js
DELETED
|
@@ -1,455 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
FileReader.js - v0.99
|
|
3
|
-
A lightweight wrapper for common FileReader usage.
|
|
4
|
-
Copyright 2014 Brian Grinstead - MIT License.
|
|
5
|
-
See http://github.com/bgrins/filereader.js for documentation.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
(function(window, document) {
|
|
9
|
-
|
|
10
|
-
var FileReader = window.FileReader;
|
|
11
|
-
var FileReaderSyncSupport = false;
|
|
12
|
-
var workerScript = "self.addEventListener('message', function(e) { var data=e.data; try { var reader = new FileReaderSync; postMessage({ result: reader[data.readAs](data.file), extra: data.extra, file: data.file})} catch(e){ postMessage({ result:'error', extra:data.extra, file:data.file}); } }, false);";
|
|
13
|
-
var syncDetectionScript = "onmessage = function(e) { postMessage(!!FileReaderSync); };";
|
|
14
|
-
var fileReaderEvents = ['loadstart', 'progress', 'load', 'abort', 'error', 'loadend'];
|
|
15
|
-
var sync = false;
|
|
16
|
-
var FileReaderJS = window.FileReaderJS = {
|
|
17
|
-
enabled: false,
|
|
18
|
-
setupInput: setupInput,
|
|
19
|
-
setupBlob: setupBlob,
|
|
20
|
-
setupDrop: setupDrop,
|
|
21
|
-
setupClipboard: setupClipboard,
|
|
22
|
-
setSync: function (value) {
|
|
23
|
-
sync = value;
|
|
24
|
-
|
|
25
|
-
if (sync && !FileReaderSyncSupport) {
|
|
26
|
-
checkFileReaderSyncSupport();
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
getSync: function() {
|
|
30
|
-
return sync && FileReaderSyncSupport;
|
|
31
|
-
},
|
|
32
|
-
output: [],
|
|
33
|
-
opts: {
|
|
34
|
-
dragClass: "drag",
|
|
35
|
-
accept: false,
|
|
36
|
-
readAsDefault: 'DataURL',
|
|
37
|
-
readAsMap: {
|
|
38
|
-
},
|
|
39
|
-
on: {
|
|
40
|
-
loadstart: noop,
|
|
41
|
-
progress: noop,
|
|
42
|
-
load: noop,
|
|
43
|
-
abort: noop,
|
|
44
|
-
error: noop,
|
|
45
|
-
loadend: noop,
|
|
46
|
-
skip: noop,
|
|
47
|
-
groupstart: noop,
|
|
48
|
-
groupend: noop,
|
|
49
|
-
beforestart: noop
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
// Setup jQuery plugin (if available)
|
|
55
|
-
if (typeof(jQuery) !== "undefined") {
|
|
56
|
-
jQuery.fn.fileReaderJS = function(opts) {
|
|
57
|
-
return this.each(function() {
|
|
58
|
-
if (jQuery(this).is("input")) {
|
|
59
|
-
setupInput(this, opts);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
setupDrop(this, opts);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
jQuery.fn.fileClipboard = function(opts) {
|
|
68
|
-
return this.each(function() {
|
|
69
|
-
setupClipboard(this, opts);
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Not all browsers support the FileReader interface. Return with the enabled bit = false.
|
|
75
|
-
if (!FileReader) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// makeWorker is a little wrapper for generating web workers from strings
|
|
81
|
-
function makeWorker(script) {
|
|
82
|
-
var URL = window.URL || window.webkitURL;
|
|
83
|
-
var Blob = window.Blob;
|
|
84
|
-
var Worker = window.Worker;
|
|
85
|
-
|
|
86
|
-
if (!URL || !Blob || !Worker || !script) {
|
|
87
|
-
return null;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
var blob = new Blob([script]);
|
|
91
|
-
var worker = new Worker(URL.createObjectURL(blob));
|
|
92
|
-
return worker;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// setupClipboard: bind to clipboard events (intended for document.body)
|
|
96
|
-
function setupClipboard(element, opts) {
|
|
97
|
-
|
|
98
|
-
if (!FileReaderJS.enabled) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
var instanceOptions = extend(extend({}, FileReaderJS.opts), opts);
|
|
102
|
-
|
|
103
|
-
element.addEventListener("paste", onpaste, false);
|
|
104
|
-
|
|
105
|
-
function onpaste(e) {
|
|
106
|
-
var files = [];
|
|
107
|
-
var clipboardData = e.clipboardData || {};
|
|
108
|
-
var items = clipboardData.items || [];
|
|
109
|
-
|
|
110
|
-
for (var i = 0; i < items.length; i++) {
|
|
111
|
-
var file = items[i].getAsFile();
|
|
112
|
-
|
|
113
|
-
if (file) {
|
|
114
|
-
|
|
115
|
-
// Create a fake file name for images from clipboard, since this data doesn't get sent
|
|
116
|
-
var matches = new RegExp("/\(.*\)").exec(file.type);
|
|
117
|
-
if (!file.name && matches) {
|
|
118
|
-
var extension = matches[1];
|
|
119
|
-
file.name = "clipboard" + i + "." + extension;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
files.push(file);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (files.length) {
|
|
127
|
-
processFileList(e, files, instanceOptions);
|
|
128
|
-
e.preventDefault();
|
|
129
|
-
e.stopPropagation();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// setupInput: bind the 'change' event to an input[type=file]
|
|
135
|
-
function setupInput(input, opts) {
|
|
136
|
-
|
|
137
|
-
if (!FileReaderJS.enabled) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
var instanceOptions = extend(extend({}, FileReaderJS.opts), opts);
|
|
141
|
-
|
|
142
|
-
input.addEventListener("change", inputChange, false);
|
|
143
|
-
input.addEventListener("drop", inputDrop, false);
|
|
144
|
-
|
|
145
|
-
function inputChange(e) {
|
|
146
|
-
processFileList(e, input.files, instanceOptions);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function inputDrop(e) {
|
|
150
|
-
e.stopPropagation();
|
|
151
|
-
e.preventDefault();
|
|
152
|
-
processFileList(e, e.dataTransfer.files, instanceOptions);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
// setupFile: bind the 'change' event to an input[type=file]
|
|
156
|
-
function setupBlob(blob, opts) {
|
|
157
|
-
|
|
158
|
-
if (!FileReaderJS.enabled) {
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
if(blob.constructor !== Array && blob.constructor !== Function){
|
|
163
|
-
if(blob.name === undefined){
|
|
164
|
-
blob.name = "blob";
|
|
165
|
-
}
|
|
166
|
-
blob = [blob];
|
|
167
|
-
}else{
|
|
168
|
-
|
|
169
|
-
if(blob[0].name === undefined){
|
|
170
|
-
blob[0].name = "blob";
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
var instanceOptions = extend(extend({}, FileReaderJS.opts), opts);
|
|
175
|
-
|
|
176
|
-
processFileList(null, blob, instanceOptions);
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
// setupDrop: bind the 'drop' event for a DOM element
|
|
180
|
-
function setupDrop(dropbox, opts) {
|
|
181
|
-
|
|
182
|
-
if (!FileReaderJS.enabled) {
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
var instanceOptions = extend(extend({}, FileReaderJS.opts), opts);
|
|
186
|
-
var dragClass = instanceOptions.dragClass;
|
|
187
|
-
var initializedOnBody = false;
|
|
188
|
-
|
|
189
|
-
// Bind drag events to the dropbox to add the class while dragging, and accept the drop data transfer.
|
|
190
|
-
dropbox.addEventListener("dragenter", onlyWithFiles(dragenter), false);
|
|
191
|
-
dropbox.addEventListener("dragleave", onlyWithFiles(dragleave), false);
|
|
192
|
-
dropbox.addEventListener("dragover", onlyWithFiles(dragover), false);
|
|
193
|
-
dropbox.addEventListener("drop", onlyWithFiles(drop), false);
|
|
194
|
-
|
|
195
|
-
// Bind to body to prevent the dropbox events from firing when it was initialized on the page.
|
|
196
|
-
document.body.addEventListener("dragstart", bodydragstart, true);
|
|
197
|
-
document.body.addEventListener("dragend", bodydragend, true);
|
|
198
|
-
document.body.addEventListener("drop", bodydrop, false);
|
|
199
|
-
|
|
200
|
-
function bodydragend(e) {
|
|
201
|
-
initializedOnBody = false;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
function bodydragstart(e) {
|
|
205
|
-
initializedOnBody = true;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function bodydrop(e) {
|
|
209
|
-
if (e.dataTransfer.files && e.dataTransfer.files.length ){
|
|
210
|
-
e.stopPropagation();
|
|
211
|
-
e.preventDefault();
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function onlyWithFiles(fn) {
|
|
216
|
-
return function() {
|
|
217
|
-
if (!initializedOnBody) {
|
|
218
|
-
fn.apply(this, arguments);
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
function drop(e) {
|
|
224
|
-
e.stopPropagation();
|
|
225
|
-
e.preventDefault();
|
|
226
|
-
if (dragClass) {
|
|
227
|
-
removeClass(dropbox, dragClass);
|
|
228
|
-
}
|
|
229
|
-
processFileList(e, e.dataTransfer.files, instanceOptions);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
function dragenter(e) {
|
|
233
|
-
e.stopPropagation();
|
|
234
|
-
e.preventDefault();
|
|
235
|
-
if (dragClass) {
|
|
236
|
-
addClass(dropbox, dragClass);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
function dragleave(e) {
|
|
241
|
-
if (dragClass) {
|
|
242
|
-
removeClass(dropbox, dragClass);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
function dragover(e) {
|
|
247
|
-
e.stopPropagation();
|
|
248
|
-
e.preventDefault();
|
|
249
|
-
if (dragClass) {
|
|
250
|
-
addClass(dropbox, dragClass);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// setupCustomFileProperties: modify the file object with extra properties
|
|
256
|
-
function setupCustomFileProperties(files, groupID) {
|
|
257
|
-
for (var i = 0; i < files.length; i++) {
|
|
258
|
-
var file = files[i];
|
|
259
|
-
file.extra = {
|
|
260
|
-
nameNoExtension: file.name.substring(0, file.name.lastIndexOf('.')),
|
|
261
|
-
extension: file.name.substring(file.name.lastIndexOf('.') + 1),
|
|
262
|
-
fileID: i,
|
|
263
|
-
uniqueID: getUniqueID(),
|
|
264
|
-
groupID: groupID,
|
|
265
|
-
prettySize: prettySize(file.size)
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// getReadAsMethod: return method name for 'readAs*' - http://www.w3.org/TR/FileAPI/#reading-a-file
|
|
271
|
-
function getReadAsMethod(type, readAsMap, readAsDefault) {
|
|
272
|
-
for (var r in readAsMap) {
|
|
273
|
-
if (type.match(new RegExp(r))) {
|
|
274
|
-
return 'readAs' + readAsMap[r];
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
return 'readAs' + readAsDefault;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
// processFileList: read the files with FileReader, send off custom events.
|
|
281
|
-
function processFileList(e, files, opts) {
|
|
282
|
-
var filesLeft = files.length;
|
|
283
|
-
var group = {
|
|
284
|
-
groupID: getGroupID(),
|
|
285
|
-
files: files,
|
|
286
|
-
started: new Date()
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
function groupEnd() {
|
|
290
|
-
group.ended = new Date();
|
|
291
|
-
opts.on.groupend(group);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
function groupFileDone() {
|
|
295
|
-
if (--filesLeft === 0) {
|
|
296
|
-
groupEnd();
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
FileReaderJS.output.push(group);
|
|
301
|
-
setupCustomFileProperties(files, group.groupID);
|
|
302
|
-
|
|
303
|
-
opts.on.groupstart(group);
|
|
304
|
-
|
|
305
|
-
// No files in group - end immediately
|
|
306
|
-
if (!files.length) {
|
|
307
|
-
groupEnd();
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
var supportsSync = sync && FileReaderSyncSupport;
|
|
312
|
-
var syncWorker;
|
|
313
|
-
|
|
314
|
-
// Only initialize the synchronous worker if the option is enabled - to prevent the overhead
|
|
315
|
-
if (supportsSync) {
|
|
316
|
-
syncWorker = makeWorker(workerScript);
|
|
317
|
-
syncWorker.onmessage = function(e) {
|
|
318
|
-
var file = e.data.file;
|
|
319
|
-
var result = e.data.result;
|
|
320
|
-
|
|
321
|
-
// Workers seem to lose the custom property on the file object.
|
|
322
|
-
if (!file.extra) {
|
|
323
|
-
file.extra = e.data.extra;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
file.extra.ended = new Date();
|
|
327
|
-
|
|
328
|
-
// Call error or load event depending on success of the read from the worker.
|
|
329
|
-
opts.on[result === "error" ? "error" : "load"]({ target: { result: result } }, file);
|
|
330
|
-
groupFileDone();
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
Array.prototype.forEach.call(files, function(file) {
|
|
335
|
-
|
|
336
|
-
file.extra.started = new Date();
|
|
337
|
-
|
|
338
|
-
if (opts.accept && !file.type.match(new RegExp(opts.accept))) {
|
|
339
|
-
opts.on.skip(file);
|
|
340
|
-
groupFileDone();
|
|
341
|
-
return;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
if (opts.on.beforestart(file) === false) {
|
|
345
|
-
opts.on.skip(file);
|
|
346
|
-
groupFileDone();
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
var readAs = getReadAsMethod(file.type, opts.readAsMap, opts.readAsDefault);
|
|
351
|
-
|
|
352
|
-
if (syncWorker) {
|
|
353
|
-
syncWorker.postMessage({
|
|
354
|
-
file: file,
|
|
355
|
-
extra: file.extra,
|
|
356
|
-
readAs: readAs
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
|
|
361
|
-
var reader = new FileReader();
|
|
362
|
-
reader.originalEvent = e;
|
|
363
|
-
|
|
364
|
-
fileReaderEvents.forEach(function(eventName) {
|
|
365
|
-
reader['on' + eventName] = function(e) {
|
|
366
|
-
if (eventName == 'load' || eventName == 'error') {
|
|
367
|
-
file.extra.ended = new Date();
|
|
368
|
-
}
|
|
369
|
-
opts.on[eventName](e, file);
|
|
370
|
-
if (eventName == 'loadend') {
|
|
371
|
-
groupFileDone();
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
});
|
|
375
|
-
reader[readAs](file);
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
// checkFileReaderSyncSupport: Create a temporary worker and see if FileReaderSync exists
|
|
381
|
-
function checkFileReaderSyncSupport() {
|
|
382
|
-
var worker = makeWorker(syncDetectionScript);
|
|
383
|
-
if (worker) {
|
|
384
|
-
worker.onmessage =function(e) {
|
|
385
|
-
FileReaderSyncSupport = e.data;
|
|
386
|
-
};
|
|
387
|
-
worker.postMessage({});
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
// noop: do nothing
|
|
392
|
-
function noop() {
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
// extend: used to make deep copies of options object
|
|
397
|
-
function extend(destination, source) {
|
|
398
|
-
for (var property in source) {
|
|
399
|
-
if (source[property] && source[property].constructor &&
|
|
400
|
-
source[property].constructor === Object) {
|
|
401
|
-
destination[property] = destination[property] || {};
|
|
402
|
-
arguments.callee(destination[property], source[property]);
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
destination[property] = source[property];
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
return destination;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
// hasClass: does an element have the css class?
|
|
412
|
-
function hasClass(el, name) {
|
|
413
|
-
return new RegExp("(?:^|\\s+)" + name + "(?:\\s+|$)").test(el.className);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
// addClass: add the css class for the element.
|
|
417
|
-
function addClass(el, name) {
|
|
418
|
-
if (!hasClass(el, name)) {
|
|
419
|
-
el.className = el.className ? [el.className, name].join(' ') : name;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// removeClass: remove the css class from the element.
|
|
424
|
-
function removeClass(el, name) {
|
|
425
|
-
if (hasClass(el, name)) {
|
|
426
|
-
var c = el.className;
|
|
427
|
-
el.className = c.replace(new RegExp("(?:^|\\s+)" + name + "(?:\\s+|$)", "g"), " ").replace(/^\s\s*/, '').replace(/\s\s*$/, '');
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
// prettySize: convert bytes to a more readable string.
|
|
432
|
-
function prettySize(bytes) {
|
|
433
|
-
var s = ['bytes', 'kb', 'MB', 'GB', 'TB', 'PB'];
|
|
434
|
-
var e = Math.floor(Math.log(bytes)/Math.log(1024));
|
|
435
|
-
return (bytes/Math.pow(1024, Math.floor(e))).toFixed(2)+" "+s[e];
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
// getGroupID: generate a unique int ID for groups.
|
|
439
|
-
var getGroupID = (function(id) {
|
|
440
|
-
return function() {
|
|
441
|
-
return id++;
|
|
442
|
-
};
|
|
443
|
-
})(0);
|
|
444
|
-
|
|
445
|
-
// getUniqueID: generate a unique int ID for files
|
|
446
|
-
var getUniqueID = (function(id) {
|
|
447
|
-
return function() {
|
|
448
|
-
return id++;
|
|
449
|
-
};
|
|
450
|
-
})(0);
|
|
451
|
-
|
|
452
|
-
// The interface is supported, bind the FileReaderJS callbacks
|
|
453
|
-
FileReaderJS.enabled = true;
|
|
454
|
-
|
|
455
|
-
})(this, document);
|
package/ganwei-iotcenter-index-6.2.0/packages/ganwei-iotcenter-index/public/static/js/font.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
; ((_this) => {
|
|
3
|
-
_this.isGetIconfontList = _this.isGetIconfontList || false
|
|
4
|
-
function setIcon() {
|
|
5
|
-
let iconfontList = _this.iconfontList || []
|
|
6
|
-
iconfontList.forEach(item => {
|
|
7
|
-
try {
|
|
8
|
-
let style = document.createElement('link')
|
|
9
|
-
style.rel = 'stylesheet'
|
|
10
|
-
style.id = `${item}-${item}`
|
|
11
|
-
style.href = `/static/fonts/${item}/iconfont.css`
|
|
12
|
-
document.head.prepend(style)
|
|
13
|
-
} catch (error) {
|
|
14
|
-
console.log(error)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
if (_this.iconfontList) {
|
|
20
|
-
setIcon()
|
|
21
|
-
} else {
|
|
22
|
-
if (!_this.isGetIconfontList) {
|
|
23
|
-
_this.isGetIconfontList = true
|
|
24
|
-
_this.axios && _this.axios({
|
|
25
|
-
method: 'get',
|
|
26
|
-
url: '/IoT/api/v3/Auth/icon-fonts',
|
|
27
|
-
headers: {
|
|
28
|
-
'Content-Type': 'application/json;charset=UTF-8',
|
|
29
|
-
'X-Requested-With': 'IoT-XMLHttpRequest',
|
|
30
|
-
'Accept-Language': _this.localStorage.languageType || 'zh-CN',
|
|
31
|
-
}
|
|
32
|
-
}).then(res => {
|
|
33
|
-
if (res.data && res.data.code == 200) {
|
|
34
|
-
let iconfontList = res.data.data || []
|
|
35
|
-
_this.iconfontList = iconfontList
|
|
36
|
-
setIcon()
|
|
37
|
-
}
|
|
38
|
-
}).catch(err => {
|
|
39
|
-
console.log(err)
|
|
40
|
-
})
|
|
41
|
-
} else {
|
|
42
|
-
let times = 0
|
|
43
|
-
let time = _this.setInterval(
|
|
44
|
-
() => {
|
|
45
|
-
if (_this.iconfontList || times > 300) {
|
|
46
|
-
_this.clearInterval(time)
|
|
47
|
-
time = null
|
|
48
|
-
setIcon()
|
|
49
|
-
}
|
|
50
|
-
times = times + 1
|
|
51
|
-
}, 100
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
})(window)
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// sessionStorage.isGetConfigInfoData = sessionStorage.isGetConfigInfoData == 'true' || 'false'
|
|
3
|
-
window.getConfigInfoData = function () {
|
|
4
|
-
return new Promise((resolve, reject) => {
|
|
5
|
-
let configInfoData = sessionStorage.configInfoData || null
|
|
6
|
-
if (configInfoData) {
|
|
7
|
-
resolve(JSON.parse(configInfoData))
|
|
8
|
-
} else {
|
|
9
|
-
if (window.AxiosBuilder.axios) {
|
|
10
|
-
// if (sessionStorage.isGetConfigInfoData == 'false') {
|
|
11
|
-
// sessionStorage.isGetConfigInfoData = true
|
|
12
|
-
window.AxiosBuilder.axios({
|
|
13
|
-
methed: 'get',
|
|
14
|
-
url: '/IoT/api/v3/Frontconfiguration/GetFrontconfigurationData',
|
|
15
|
-
headers: {
|
|
16
|
-
'Content-Type': 'application/json;charset=UTF-8',
|
|
17
|
-
'Accept-Language': window.sessionStorage.languageType || 'zh-CN'
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
.then(res => {
|
|
21
|
-
const { code, data } = res ? (res.data || {}) : {}
|
|
22
|
-
if (code == 200 && data) {
|
|
23
|
-
sessionStorage.configInfoData = data
|
|
24
|
-
try {
|
|
25
|
-
resolve(JSON.parse(data))
|
|
26
|
-
} catch (error) {
|
|
27
|
-
resolve({})
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
} else {
|
|
31
|
-
reject({})
|
|
32
|
-
}
|
|
33
|
-
})
|
|
34
|
-
.catch(err => {
|
|
35
|
-
reject({})
|
|
36
|
-
})
|
|
37
|
-
// } else {
|
|
38
|
-
// let times = 0
|
|
39
|
-
// let time = window.setInterval(
|
|
40
|
-
// () => {
|
|
41
|
-
// let configInfoData = sessionStorage.configInfoData
|
|
42
|
-
// if (configInfoData || times > 300) {
|
|
43
|
-
// window.clearInterval(time)
|
|
44
|
-
// time = null
|
|
45
|
-
// configInfoData ? resolve(JSON.parse(configInfoData)) : reject({})
|
|
46
|
-
// }
|
|
47
|
-
// times = times + 1
|
|
48
|
-
// }, 100
|
|
49
|
-
// )
|
|
50
|
-
// }
|
|
51
|
-
|
|
52
|
-
} else {
|
|
53
|
-
reject({})
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
})
|
|
57
|
-
}
|