@ganwei-web/ganwei-pc-cli 6.2.2 → 6.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/ganwei-app-6.2.1/moduleConfiguration/copyFile.js +8 -14
  2. package/ganwei-app-6.2.1/moduleConfiguration/init.js +2 -8
  3. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.babelrc +4 -0
  4. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.editorconfig +22 -0
  5. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.env.development +23 -0
  6. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.env.production +29 -0
  7. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.env.test +22 -0
  8. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.eslintignore +13 -0
  9. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.eslintrc.cjs +178 -0
  10. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.prettierignore +13 -0
  11. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/.prettierrc.cjs +37 -0
  12. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/auto-imports.d.ts +5 -0
  13. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/banner.js +9 -0
  14. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/build-version.js +42 -0
  15. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/bulidList.js +26 -0
  16. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/enteryJson.js +108 -0
  17. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/filterStatic.js +64 -0
  18. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/init.js +27 -0
  19. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/look-dir.js +24 -0
  20. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/rollup-options.js +35 -0
  21. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/test.js +3 -0
  22. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/build/vite-plugin-stats-html.js +595 -0
  23. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/components.d.ts +20 -0
  24. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/env.d.ts +7 -0
  25. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/index.html +20 -0
  26. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/package-lock.json +3965 -0
  27. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/package.json +69 -0
  28. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/pnpm-lock.yaml +5034 -0
  29. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/index-plus-vars.css +93 -0
  30. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/index-plus.css +1 -0
  31. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/index.css +15926 -0
  32. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/css/pptxjs.css +161 -0
  33. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.css +1135 -0
  34. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.js +1 -0
  35. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.json +1969 -0
  36. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.ttf +0 -0
  37. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.woff +0 -0
  38. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/font/iconfont.woff2 +0 -0
  39. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/language/en-US/noPage.json +3 -0
  40. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/language/zh-CN/noPage.json +3 -0
  41. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/language/zh-HK/noPage.json +3 -0
  42. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/themes/dark.css +77 -0
  43. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/themes/default-theme.js +34 -0
  44. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/public/static/themes/light.css +79 -0
  45. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/App.vue +198 -0
  46. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/index.scssc +0 -0
  47. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/linkSetting.scssc +0 -0
  48. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/sceneSetting.scssc +0 -0
  49. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/specialTask.scssc +0 -0
  50. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/style.scssc +0 -0
  51. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/.sass-cache/59ae6c3370e48597956c7d0775238711a2c22a84/weekTask.scssc +0 -0
  52. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/VideoSystem.scss +397 -0
  53. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/el-dialog.scss +58 -0
  54. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/el-drawer.scss +41 -0
  55. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/index.scss +1052 -0
  56. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/login.scss +320 -0
  57. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/mobileStyle.scss +332 -0
  58. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/noDataTips.scss +57 -0
  59. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/reset.scss +1192 -0
  60. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/style-black.scss +1 -0
  61. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/style-white.scss +1 -0
  62. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/style.scss +633 -0
  63. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/videoPlaybackCom.scss +468 -0
  64. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/css/videoPlayer.scss +441 -0
  65. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/images/logo.png +0 -0
  66. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/assets/plugins/encrypt.js +122 -0
  67. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/appFrame.vue +163 -0
  68. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/bottom.vue +15 -0
  69. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/css/bottom.scss +381 -0
  70. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/css/top.scss +49 -0
  71. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/js/Voice.js +345 -0
  72. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/js/bottom.js +102 -0
  73. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/appFrame/top.vue +114 -0
  74. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/i18n/i18n.js +42 -0
  75. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/i18n/i18nObserver.js +39 -0
  76. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/i18n/vueI18n.js +17 -0
  77. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/toast/index.js +64 -0
  78. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/components/toast/index.vue +152 -0
  79. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/hostMap.js +9 -0
  80. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/main.js +39 -0
  81. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/Auth.js +83 -0
  82. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/BA.js +81 -0
  83. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/EquipList.js +127 -0
  84. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/Event.js +34 -0
  85. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/GwEcharts.js +9 -0
  86. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/PPT.js +5 -0
  87. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/RealTime.js +43 -0
  88. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/SystemConfig.js +177 -0
  89. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/Video.js +57 -0
  90. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/VideoTour.js +129 -0
  91. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/WelcomeWord.js +24 -0
  92. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/WorkOrder.js +265 -0
  93. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api/videoSystem.js +81 -0
  94. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/api.js +35 -0
  95. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/apiFunction.js +200 -0
  96. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/encrypt.js +14 -0
  97. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/request/http.js +186 -0
  98. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/router.js +31 -0
  99. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/store.js +189 -0
  100. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/types.js +16 -0
  101. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/formValidate.js +25 -0
  102. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/isApp.js +18 -0
  103. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/language.js +45 -0
  104. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/myUtils.js +643 -0
  105. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/timeFormat.js +23 -0
  106. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/utils/timesYMDHMS.js +27 -0
  107. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/src/views/ganwei-app-empty-page/src/noPage.vue +22 -0
  108. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/stats.html +356 -0
  109. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/vite.base.config.js +244 -0
  110. package/ganwei-app-6.2.1/packages/ganwei-app-empty-page/vite.config.ts +44 -0
  111. package/ganwei-app-6.2.1/packages/ganwei-app-home/.babelrc +4 -0
  112. package/ganwei-app-6.2.1/packages/ganwei-app-home/.editorconfig +22 -0
  113. package/ganwei-app-6.2.1/packages/ganwei-app-home/.env.development +23 -0
  114. package/ganwei-app-6.2.1/packages/ganwei-app-home/.env.production +29 -0
  115. package/ganwei-app-6.2.1/packages/ganwei-app-home/.env.test +22 -0
  116. package/ganwei-app-6.2.1/packages/ganwei-app-home/.eslintignore +13 -0
  117. package/ganwei-app-6.2.1/packages/ganwei-app-home/.eslintrc.cjs +178 -0
  118. package/ganwei-app-6.2.1/packages/ganwei-app-home/.prettierignore +13 -0
  119. package/ganwei-app-6.2.1/packages/ganwei-app-home/.prettierrc.cjs +37 -0
  120. package/ganwei-app-6.2.1/packages/ganwei-app-home/.stylelintrc.cjs +18 -0
  121. package/ganwei-app-6.2.1/packages/ganwei-app-home/auto-imports.d.ts +56 -0
  122. package/ganwei-app-6.2.1/packages/ganwei-app-home/components.d.ts +25 -0
  123. package/ganwei-app-6.2.1/packages/ganwei-app-home/env.d.ts +21 -0
  124. package/ganwei-app-6.2.1/packages/ganwei-app-home/index.html +20 -0
  125. package/ganwei-app-6.2.1/packages/ganwei-app-home/package.json +87 -0
  126. package/ganwei-app-6.2.1/packages/ganwei-app-home/public/static/language/en-US/home.json +39 -0
  127. package/ganwei-app-6.2.1/packages/ganwei-app-home/public/static/language/zh-CN/home.json +39 -0
  128. package/ganwei-app-6.2.1/packages/ganwei-app-home/public/static/language/zh-HK/home.json +39 -0
  129. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/App.vue +203 -0
  130. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/assets/images/logo.png +0 -0
  131. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/components/Layout/TitleList.vue +20 -0
  132. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/enums/index.ts +24 -0
  133. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/main.ts +29 -0
  134. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/models/index.ts +91 -0
  135. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/request/api/RealTime.ts +27 -0
  136. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/request/api.ts +5 -0
  137. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/router.ts +30 -0
  138. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/store.js +189 -0
  139. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/types.js +16 -0
  140. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeMenuItem.vue +95 -0
  141. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeMenus.vue +118 -0
  142. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeMenusEditDrawer.vue +119 -0
  143. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/HomeSnapshots.vue +109 -0
  144. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/chatbot.vue +96 -0
  145. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/components/eslint.config.js +10 -0
  146. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/css/index.scss +5 -0
  147. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/img/chatbot.gif +0 -0
  148. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/img/six.png +0 -0
  149. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/index.vue +42 -0
  150. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useLanguageStyle.ts +21 -0
  151. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useManageMenus.ts +38 -0
  152. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useMenus.ts +49 -0
  153. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/usePolling.ts +38 -0
  154. package/ganwei-app-6.2.1/packages/ganwei-app-home/src/views/ganwei-app-home/src/js/useRealTime.ts +128 -0
  155. package/ganwei-app-6.2.1/packages/ganwei-app-home/stats.html +4975 -0
  156. package/ganwei-app-6.2.1/packages/ganwei-app-home/tsconfig.json +58 -0
  157. package/ganwei-app-6.2.1/packages/ganwei-app-home/types/gw-app-public.d.ts +4 -0
  158. package/ganwei-app-6.2.1/packages/ganwei-app-home/vite.base.config.ts +233 -0
  159. package/ganwei-app-6.2.1/packages/ganwei-app-home/vite.config.ts +49 -0
  160. package/ganwei-app-6.2.1/packages/ganwei-app-index/index.html +1 -2
  161. package/ganwei-app-6.2.1/packages/ganwei-app-index/public/static/json/config.json +2 -2
  162. package/ganwei-app-6.2.1/packages/ganwei-app-index/src/components/vue-qrcode-reader/src/misc/util.js +4 -10
  163. package/ganwei-app-6.2.1/packages/ganwei-app-index/src/types.js +1 -1
  164. package/ganwei-app-6.2.1/packages/ganwei-app-login/.babelrc +4 -0
  165. package/ganwei-app-6.2.1/packages/ganwei-app-login/.editorconfig +22 -0
  166. package/ganwei-app-6.2.1/packages/ganwei-app-login/.env.development +23 -0
  167. package/ganwei-app-6.2.1/packages/ganwei-app-login/.env.production +29 -0
  168. package/ganwei-app-6.2.1/packages/ganwei-app-login/.env.test +22 -0
  169. package/ganwei-app-6.2.1/packages/ganwei-app-login/.eslintignore +13 -0
  170. package/ganwei-app-6.2.1/packages/ganwei-app-login/.eslintrc.cjs +178 -0
  171. package/ganwei-app-6.2.1/packages/ganwei-app-login/.prettierignore +13 -0
  172. package/ganwei-app-6.2.1/packages/ganwei-app-login/.prettierrc.cjs +37 -0
  173. package/ganwei-app-6.2.1/packages/ganwei-app-login/.stylelintrc.cjs +16 -0
  174. package/ganwei-app-6.2.1/packages/ganwei-app-login/auto-imports.d.ts +5 -0
  175. package/ganwei-app-6.2.1/packages/ganwei-app-login/env.d.ts +67 -0
  176. package/ganwei-app-6.2.1/packages/ganwei-app-login/index.html +20 -0
  177. package/ganwei-app-6.2.1/packages/ganwei-app-login/package.json +79 -0
  178. package/ganwei-app-6.2.1/packages/ganwei-app-login/public/static/language/en-US/login.json +48 -0
  179. package/ganwei-app-6.2.1/packages/ganwei-app-login/public/static/language/zh-CN/login.json +48 -0
  180. package/ganwei-app-6.2.1/packages/ganwei-app-login/public/static/language/zh-HK/login.json +48 -0
  181. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/App.vue +225 -0
  182. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/assets/images/bg.png +0 -0
  183. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/assets/images/logo.png +0 -0
  184. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/assets/images/refresh.png +0 -0
  185. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/components/app-drag/index.vue +183 -0
  186. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/hostMap.ts +11 -0
  187. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/main.ts +19 -0
  188. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/models/index.ts +48 -0
  189. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/request/api/Auth.ts +27 -0
  190. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/request/api.ts +5 -0
  191. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/router.ts +30 -0
  192. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/Login.vue +99 -0
  193. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/css/login.scss +78 -0
  194. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/js/useLogin.ts +73 -0
  195. package/ganwei-app-6.2.1/packages/ganwei-app-login/src/views/login/js/useRememberPassword.ts +48 -0
  196. package/ganwei-app-6.2.1/packages/ganwei-app-login/stats.html +4975 -0
  197. package/ganwei-app-6.2.1/packages/ganwei-app-login/tsconfig.json +56 -0
  198. package/ganwei-app-6.2.1/packages/ganwei-app-login/types/gw-app-public.d.ts +4 -0
  199. package/ganwei-app-6.2.1/packages/ganwei-app-login/vite.base.config.ts +233 -0
  200. package/ganwei-app-6.2.1/packages/ganwei-app-login/vite.config.ts +51 -0
  201. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.babelrc +4 -0
  202. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.editorconfig +22 -0
  203. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.env.development +23 -0
  204. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.env.production +29 -0
  205. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.env.test +22 -0
  206. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.eslintignore +13 -0
  207. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.eslintrc.cjs +178 -0
  208. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.prettierignore +13 -0
  209. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.prettierrc.cjs +37 -0
  210. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/.stylelintrc.cjs +17 -0
  211. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/auto-imports.d.ts +5 -0
  212. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/env.d.ts +21 -0
  213. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/index.html +20 -0
  214. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/package.json +85 -0
  215. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/public/static/language/en-US/setPage.json +25 -0
  216. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/public/static/language/zh-CN/setPage.json +25 -0
  217. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/public/static/language/zh-HK/setPage.json +25 -0
  218. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/App.vue +202 -0
  219. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/assets/images/logo.png +0 -0
  220. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/components/buttonModeSelect/index.vue +190 -0
  221. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/hostMap.ts +11 -0
  222. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/main.ts +24 -0
  223. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/models/index.ts +0 -0
  224. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/request/api/Auth.ts +21 -0
  225. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/request/api.ts +5 -0
  226. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/router.ts +29 -0
  227. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/store.js +189 -0
  228. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/types.js +16 -0
  229. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useChangeLanguage.ts +19 -0
  230. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useChangeTheme.ts +16 -0
  231. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useClearCache.ts +26 -0
  232. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useJavaFunc.ts +146 -0
  233. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/js/useLogout.ts +52 -0
  234. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/src/views/ganwei-app-setPage/src/setPage.vue +120 -0
  235. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/stats.html +4975 -0
  236. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/tsconfig.json +58 -0
  237. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/types/gw-app-public.d.ts +4 -0
  238. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/vite.base.config.ts +233 -0
  239. package/ganwei-app-6.2.1/packages/ganwei-app-set-page/vite.config.ts +49 -0
  240. package/ganwei-app-6.2.1/packages/ganwei-app-template/.babelrc +4 -0
  241. package/ganwei-app-6.2.1/packages/ganwei-app-template/.editorconfig +22 -0
  242. package/ganwei-app-6.2.1/packages/ganwei-app-template/.env.development +23 -0
  243. package/ganwei-app-6.2.1/packages/ganwei-app-template/.env.production +29 -0
  244. package/ganwei-app-6.2.1/packages/ganwei-app-template/.env.test +22 -0
  245. package/ganwei-app-6.2.1/packages/ganwei-app-template/.eslintignore +13 -0
  246. package/ganwei-app-6.2.1/packages/ganwei-app-template/.eslintrc.cjs +178 -0
  247. package/ganwei-app-6.2.1/packages/ganwei-app-template/.prettierignore +13 -0
  248. package/ganwei-app-6.2.1/packages/ganwei-app-template/.prettierrc.cjs +37 -0
  249. package/ganwei-app-6.2.1/packages/ganwei-app-template/auto-imports.d.ts +5 -0
  250. package/ganwei-app-6.2.1/packages/ganwei-app-template/components.d.ts +14 -0
  251. package/ganwei-app-6.2.1/packages/ganwei-app-template/env.d.ts +7 -0
  252. package/ganwei-app-6.2.1/packages/ganwei-app-template/index.html +18 -0
  253. package/ganwei-app-6.2.1/packages/ganwei-app-template/package.json +77 -0
  254. package/ganwei-app-6.2.1/packages/ganwei-app-template/public/static/language/en-US/template.json +3 -0
  255. package/ganwei-app-6.2.1/packages/ganwei-app-template/public/static/language/zh-CN/template.json +3 -0
  256. package/ganwei-app-6.2.1/packages/ganwei-app-template/public/static/language/zh-HK/template.json +3 -0
  257. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/App.vue +202 -0
  258. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/assets/images/logo.png +0 -0
  259. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/components/buttonModeSelect/index.vue +190 -0
  260. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/hostMap.ts +11 -0
  261. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/main.ts +24 -0
  262. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/models/index.ts +0 -0
  263. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/request/api/Auth.ts +21 -0
  264. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/request/api.ts +5 -0
  265. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/router.ts +29 -0
  266. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/store.js +189 -0
  267. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/types.js +16 -0
  268. package/ganwei-app-6.2.1/packages/ganwei-app-template/src/views/ganwei-app-template/src/template.vue +22 -0
  269. package/ganwei-app-6.2.1/packages/ganwei-app-template/tsconfig.json +58 -0
  270. package/ganwei-app-6.2.1/packages/ganwei-app-template/types/gw-app-public.d.ts +4 -0
  271. package/ganwei-app-6.2.1/packages/ganwei-app-template/vite.base.config.js +246 -0
  272. package/ganwei-app-6.2.1/packages/ganwei-app-template/vite.config.ts +44 -0
  273. package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/public/static/json/config.json +47 -43
  274. package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/components/isDebug/isDebug.vue +2 -9
  275. package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/types.js +1 -1
  276. package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/views/index.js +0 -3
  277. package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-index/src/views/jumpIframe/preloadMethod.js +3 -3
  278. package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-login/src/assets/css/login.scss +50 -30
  279. package/ganwei-iotcenter-index-6.2.1/packages/ganwei-iotcenter-login/src/types.js +1 -1
  280. package/package.json +1 -1
@@ -0,0 +1,225 @@
1
+ <template>
2
+ <div class="app">
3
+ <router-view v-cloak />
4
+ </div>
5
+ </template>
6
+ <script setup lang="ts">
7
+ import { onBeforeMount } from 'vue'
8
+ onBeforeMount(() => {
9
+ document.documentElement.setAttribute('data-theme', localStorage.theme || 'dark')
10
+ document.documentElement.setAttribute('class', localStorage.theme || 'dark')
11
+ })
12
+ </script>
13
+ <style>
14
+ #app {
15
+ width: 100%;
16
+ height: 100%;
17
+ }
18
+
19
+ html body {
20
+ position: relative;
21
+
22
+ overflow: hidden;
23
+
24
+ height: 100vh;
25
+ min-height: 100vh;
26
+
27
+ font-family: 'Microsoft YaHei', Arial, sans-serif;
28
+
29
+ background-color: var(--appFrameMain-bg);
30
+ }
31
+
32
+ html body div {
33
+ box-sizing: border-box;
34
+ }
35
+
36
+ a:focus,
37
+ input:focus,
38
+ p:focus,
39
+ div:focus,
40
+ span:focus,
41
+ button:focus,
42
+ i:focus,
43
+ label:focus,
44
+ .el-checkbox:focus {
45
+ -webkit-tap-highlight-color: transparent;
46
+ }
47
+
48
+ .noData {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+
53
+ width: 100%;
54
+ height: 100%;
55
+
56
+ color: white;
57
+ }
58
+
59
+ .noData span {
60
+ font-size: 16px;
61
+ }
62
+
63
+ .app {
64
+ overflow: hidden;
65
+ overflow: -moz-scrollbars-none;
66
+ height: 100%;
67
+
68
+ -ms-overflow-style: none;
69
+ }
70
+
71
+ @supports(-webkit-touch-callout:none) {
72
+ .app {
73
+ padding-top: constant(safe-area-inset-top);
74
+ padding-top: env(safe-area-inset-top);
75
+ padding-bottom: constant(safe-area-inset-bottom);
76
+ padding-bottom: env(safe-area-inset-bottom);
77
+ }
78
+ }
79
+
80
+ .loginSet {
81
+ top: 38px !important;
82
+ }
83
+
84
+ .loginSet .el-button {
85
+ width: 100% !important;
86
+ }
87
+
88
+ .flex-start {
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: flex-start;
92
+ }
93
+
94
+ .flex-start-start {
95
+ display: flex;
96
+ align-items: flex-start;
97
+ justify-content: flex-start;
98
+ }
99
+
100
+ .flex-end {
101
+ display: flex;
102
+ align-items: center;
103
+ justify-content: flex-end;
104
+ }
105
+
106
+ .flex-center {
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ }
111
+
112
+ .flex-column {
113
+ flex-direction: column;
114
+ }
115
+
116
+ .flex-between-center {
117
+ display: flex;
118
+ align-items: center;
119
+ justify-content: space-between;
120
+ }
121
+
122
+ .flex1 {
123
+ flex: 1;
124
+ }
125
+
126
+ .flex-shrink0 {
127
+ flex-shrink: 0;
128
+ }
129
+
130
+ .flex-wrap {
131
+ flex-wrap: wrap;
132
+ }
133
+
134
+ .line1 {
135
+ overflow: hidden;
136
+ display: -webkit-box;
137
+ -webkit-box-orient: vertical;
138
+
139
+ word-break: break-all;
140
+
141
+ -webkit-line-clamp: 1;
142
+ }
143
+
144
+ .line2 {
145
+ overflow: hidden;
146
+ display: -webkit-box;
147
+ -webkit-box-orient: vertical;
148
+
149
+ word-break: break-all;
150
+
151
+ -webkit-line-clamp: 2;
152
+ }
153
+
154
+ .w100 {
155
+ width: 100%;
156
+ }
157
+
158
+ .wh100 {
159
+ width: 100%;
160
+ height: 100%;
161
+ }
162
+
163
+ .editBaseCheckBox {
164
+ width: 370px !important;
165
+ padding: 12px;
166
+ }
167
+
168
+ .editBaseCheckBox .el-checkbox-group {
169
+ display: flex;
170
+ flex-flow: row wrap;
171
+ justify-content: flex-start;
172
+ }
173
+
174
+ .editBaseCheckBox .el-autocomplete {
175
+ width: 100%;
176
+ height: 32px;
177
+ margin-bottom: 12px;
178
+ }
179
+
180
+ .editBaseCheckBox .el-autocomplete .el-input,
181
+ .editBaseCheckBox .el-autocomplete div {
182
+ height: 32px;
183
+ }
184
+
185
+ .editBaseCheckBox .el-autocomplete input {
186
+ height: 100% !important;
187
+ background-color: black;
188
+ }
189
+
190
+ .conditionAnalysePopper {
191
+ width: 300px !important;
192
+ }
193
+
194
+ .conditionAnalysePopper .conditionAnalyse {
195
+ /* width: 400px; */
196
+ padding: 7px 12px;
197
+ }
198
+
199
+ .conditionAnalysePopper .conditionAnalyse .el-row {
200
+ margin-top: 12px;
201
+ padding-bottom: 4px;
202
+
203
+ color: #f0f4ff;
204
+
205
+ border-color: rgb(240 244 255 / 16%);
206
+ border-bottom: 1px dashed;
207
+ }
208
+
209
+ .conditionAnalysePopper .conditionAnalyse .el-row .el-col {
210
+ text-align: left;
211
+ }
212
+
213
+ .conditionAnalysePopper .conditionAnalyse .el-row:first-child {
214
+ margin-top: 0 !important;
215
+ }
216
+
217
+ .el-message-box .el-message-box__btns .el-button:first-child {
218
+ color: var(--dialog-header-color)
219
+ }
220
+
221
+ .el-message-box .el-message-box__btns .el-button:last-child {
222
+ border: 0;
223
+ outline: none;
224
+ }
225
+ </style>
@@ -0,0 +1,183 @@
1
+ <template>
2
+ <el-dialog class="drapElDialog" v-model:visible="showDragDialog" @close="closeDragDialog(false)"
3
+ :close-on-click-modal="true" width="300px" center>
4
+ <div class="verification" data-action="loginVerification">
5
+ <div id="__Verification" class="__Verification" data-action="loginVerificationContainer">
6
+ </div>
7
+ </div>
8
+ </el-dialog>
9
+ </template>
10
+
11
+ <script>
12
+ import $ from 'jquery';
13
+ export default {
14
+ name: 'app-drag',
15
+ components: {},
16
+ props: {
17
+ dragCodeFlag: {
18
+ type: Boolean,
19
+ default: false
20
+ }
21
+ },
22
+ data() {
23
+ return {
24
+ dragLoading: false,
25
+ showDragDialog: false
26
+ }
27
+ },
28
+ computed: {
29
+
30
+ },
31
+ created() {
32
+ this.showDragDialog = this.dragCodeFlag;
33
+ },
34
+ watch: {
35
+ dragCodeFlag(newValue) {
36
+ this.showDragDialog = newValue;
37
+ this.initDrag();
38
+ }
39
+ },
40
+ methods: {
41
+ closeDragDialog(isFlag) {
42
+ setTimeout(() => {
43
+ this.showDragDialog = false;
44
+ this.$emit('reLogin', isFlag);
45
+ }, 1000);
46
+
47
+ },
48
+ initDrag() {
49
+ if (!this.showDragDialog) { return; }
50
+ let addressIp = document.location.origin;
51
+ this.$nextTick(function () {
52
+ $('#__Verification').slide({
53
+ imgspec: '300*200',
54
+ __url: addressIp,
55
+ successCallBack: () => {
56
+ this.closeDragDialog(true);
57
+
58
+ }
59
+ });
60
+ });
61
+
62
+ }
63
+ }
64
+ }
65
+ </script>
66
+
67
+ <style lang='scss' scoped>
68
+ .app-drag {
69
+ .verification {
70
+ width: 100%;
71
+ height: 250px;
72
+ }
73
+
74
+ .__Verification {
75
+ width: 100%;
76
+ height: 100%;
77
+ border-radius: 6px;
78
+ }
79
+ }
80
+
81
+ .drapElDialog {
82
+ :deep(.el-dialog__header) {
83
+ display: none;
84
+ }
85
+
86
+ :deep(.el-dialog__body) {
87
+ padding: 0 !important;
88
+
89
+ #drag {
90
+ position: relative;
91
+ background-color: #e8e8e8;
92
+ height: 50px;
93
+ line-height: 50px;
94
+ text-align: center;
95
+ z-index: 9999;
96
+ }
97
+
98
+ #drag .handler {
99
+ position: absolute;
100
+ top: 0px;
101
+ left: 0px;
102
+ width: 36px;
103
+ height: 50px;
104
+ border: 1px solid #ccc;
105
+ cursor: move;
106
+ }
107
+
108
+ .handler_bg {
109
+ background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ZDhlNWY5My05NmI0LTRlNWQtOGFjYi03ZTY4OGYyMTU2ZTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTEyNTVEMURGMkVFMTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTEyNTVEMUNGMkVFMTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MTc5NzNmZS02OTQxLTQyOTYtYTIwNi02NDI2YTNkOWU5YmUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NGQ4ZTVmOTMtOTZiNC00ZTVkLThhY2ItN2U2ODhmMjE1NmU2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+YiRG4AAAALFJREFUeNpi/P//PwMlgImBQkA9A+bOnfsIiBOxKcInh+yCaCDuByoswaIOpxwjciACFegBqZ1AvBSIS5OTk/8TkmNEjwWgQiUgtQuIjwAxUF3yX3xyGIEIFLwHpKyAWB+I1xGSwxULIGf9A7mQkBwTlhBXAFLHgPgqEAcTkmNCU6AL9d8WII4HOvk3ITkWJAXWUMlOoGQHmsE45ViQ2KuBuASoYC4Wf+OUYxz6mQkgwAAN9mIrUReCXgAAAABJRU5ErkJggg==") no-repeat center;
110
+ }
111
+
112
+ .handler_ok_bg {
113
+ background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ZDhlNWY5My05NmI0LTRlNWQtOGFjYi03ZTY4OGYyMTU2ZTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDlBRDI3NjVGMkQ2MTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDlBRDI3NjRGMkQ2MTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDphNWEzMWNhMC1hYmViLTQxNWEtYTEwZS04Y2U5NzRlN2Q4YTEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NGQ4ZTVmOTMtOTZiNC00ZTVkLThhY2ItN2U2ODhmMjE1NmU2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+k+sHwwAAASZJREFUeNpi/P//PwMyKD8uZw+kUoDYEYgloMIvgHg/EM/ptHx0EFk9I8wAoEZ+IDUPiIMY8IN1QJwENOgj3ACo5gNAbMBAHLgAxA4gQ5igAnNJ0MwAVTsX7IKyY7L2UNuJAf+AmAmJ78AEDTBiwGYg5gbifCSxFCZoaBMCy4A4GOjnH0D6DpK4IxNSVIHAfSDOAeLraJrjgJp/AwPbHMhejiQnwYRmUzNQ4VQgDQqXK0ia/0I17wJiPmQNTNBEAgMlQIWiQA2vgWw7QppBekGxsAjIiEUSBNnsBDWEAY9mEFgMMgBk00E0iZtA7AHEctDQ58MRuA6wlLgGFMoMpIG1QFeGwAIxGZo8GUhIysmwQGSAZgwHaEZhICIzOaBkJkqyM0CAAQDGx279Jf50AAAAAABJRU5ErkJggg==") no-repeat center;
114
+ }
115
+
116
+ #drag .drag_bg {
117
+ background-color: #7ac23c;
118
+ height: 50px;
119
+ width: 0px;
120
+ position: absolute;
121
+ left: 0;
122
+ top: 0;
123
+ }
124
+
125
+ #drag .drag_text {
126
+ font-size: 13px;
127
+ color: #4a4a4a;
128
+ position: absolute;
129
+ top: 0px;
130
+ -moz-user-select: none;
131
+ -webkit-user-select: none;
132
+ user-select: none;
133
+ -o-user-select: none;
134
+ -ms-user-select: none;
135
+ }
136
+
137
+ .cut_bg {
138
+ float: left;
139
+ margin: 0 !important;
140
+ border: 0px;
141
+ padding: 0 !important;
142
+ }
143
+
144
+ .xy_img_bord {
145
+ -webkit-box-shadow: 0 0 15px #0cc;
146
+ -moz-box-shadow: 0 0 15px #0cc;
147
+ box-shadow: 0 0 15px #0cc;
148
+ top: 32px;
149
+ left: 0px;
150
+ display: none;
151
+ border: 1px solid rgb(255, 255, 255);
152
+ }
153
+
154
+ #xy_img {
155
+ z-index: 999;
156
+ width: 40px;
157
+ height: 40px;
158
+ position: relative;
159
+ }
160
+
161
+ .refesh_bg {
162
+ height: 30px;
163
+ width: 30px;
164
+ background: url(../../assets/images/refresh.png) no-repeat center/100%;
165
+ position: absolute;
166
+ top: 10px;
167
+ display: none;
168
+ }
169
+
170
+ .vcode-hints {
171
+ position: absolute;
172
+ z-index: 0;
173
+ text-align: center;
174
+ color: rgba(74, 74, 74, 0.7);
175
+ font-size: 15px;
176
+ }
177
+
178
+ #__Verification {
179
+ overflow: hidden;
180
+ }
181
+ }
182
+ }
183
+ </style>
@@ -0,0 +1,11 @@
1
+ import addressMapping from '../../../moduleConfiguration/addressMapping.json'
2
+ const map = {
3
+ // eslint-disable-next-line @typescript-eslint/naming-convention
4
+ 'ganwei-app-index': addressMapping['ganwei-app-index'] || "http://localhost:7146/"
5
+ }
6
+
7
+ export default function hostMap(host: string) {
8
+ if (process.env.NODE_ENV === 'production') return '/APP/index.html'
9
+ return map[host as keyof typeof map]
10
+ }
11
+ hostMap._map = map;
@@ -0,0 +1,19 @@
1
+
2
+ import { createApp } from "vue";
3
+ import ElementPlus from 'element-plus';
4
+
5
+ import { adapterInstall } from '@ganwei-web/element-plus-adapter'
6
+ import { createAxios, getCode } from "@ganwei-web/gw-app-api/dist/index.es.js";
7
+ import i18n from "@ganwei-web/gw-app-components/i18n/i18n";
8
+ import toast from "@ganwei-web/gw-app-components/toast/index";
9
+
10
+ import App from "./App.vue";
11
+ import hostMap from "./hostMap";
12
+ import router from "./router";
13
+
14
+ const app = createApp(App);
15
+ app.use(i18n('ganwei-app-login', app)).use(ElementPlus).use(router).use(adapterInstall).use(createAxios).mount("#app");
16
+
17
+ app.config.globalProperties.$message = toast
18
+ app.config.globalProperties.$hostMap = hostMap
19
+ app.config.globalProperties.$getCode = getCode
@@ -0,0 +1,48 @@
1
+ import { Type } from '@ganwei-web/gw-app-ts/dist/index.es.js'
2
+
3
+ class PasswordPolicy {
4
+ passwordPolicy = 0;
5
+ reminderDaysInAdvance!: boolean;
6
+ }
7
+
8
+ export class LoginResponse {
9
+
10
+ /**
11
+ * @description 账户角色
12
+ * @memberof LoginResponse
13
+ */
14
+ roleName = '';
15
+
16
+ /**
17
+ * @description 是否已阅读隐私声明
18
+ * @memberof LoginResponse
19
+ */
20
+ userTermsService = true;
21
+
22
+ /**
23
+ * @description 系统安全策略
24
+ * @type {PasswordPolicy}
25
+ * @memberof LoginResponse
26
+ */
27
+ @Type(PasswordPolicy, false)
28
+ passwordPolicy!: PasswordPolicy;
29
+
30
+ token = ''
31
+ }
32
+
33
+ export interface ILoginModel {
34
+
35
+ /**
36
+ * @description 账号
37
+ * @type {string}
38
+ * @memberof ILoginModel
39
+ */
40
+ userName: string,
41
+
42
+ /**
43
+ * @description 密码
44
+ * @type {string}
45
+ * @memberof ILoginModel
46
+ */
47
+ password: string
48
+ }
@@ -0,0 +1,27 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * 登录鉴权
4
+ */
5
+
6
+ import { baseService, BaseService } from '@ganwei-web/gw-app-api/dist/index.es.js';
7
+ import { Post, ResponseResult, ResponseType, Service } from '@ganwei-web/gw-app-ts/dist/index.es.js';
8
+
9
+ import { ILoginModel, LoginResponse } from '@/models'
10
+
11
+ @Service(baseService)
12
+ class Auth extends BaseService {
13
+
14
+ /**
15
+ * @description 用户登录,获取token
16
+ * @param {ILoginModel} params
17
+ * @return {LoginResponse}
18
+ * @memberof Auth
19
+ */
20
+ @Post('/IoT/api/v3/Auth/Login')
21
+ @ResponseType(LoginResponse)
22
+ login(params: ILoginModel) {
23
+ return ResponseResult<LoginResponse>()
24
+ }
25
+ }
26
+
27
+ export default new Auth();
@@ -0,0 +1,5 @@
1
+ /**
2
+ * api模块接口列表
3
+ */
4
+ export { default as authService } from './api/Auth';
5
+ export { baseService } from '@ganwei-web/gw-app-api/dist/index.es.js';
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import {
3
+ createRouter,
4
+ createWebHashHistory
5
+ } from 'vue-router'
6
+ const LOGIN = () => import('./views/login/Login.vue')
7
+ import { getLanguage } from '@ganwei-web/gw-app-components/i18n/i18n'
8
+
9
+ const router = createRouter({
10
+ history: createWebHashHistory(),
11
+ routes: [
12
+ {
13
+ path: '/',
14
+ redirect: '/Login'
15
+ },
16
+ {
17
+ path: '/Login',
18
+ name: 'login',
19
+ component: LOGIN
20
+ }
21
+ ]
22
+ })
23
+
24
+ router.beforeEach(async (to, from, next) => {
25
+ const pageName = to.name as string
26
+ await getLanguage(localStorage.languageType || 'zh-CN', pageName)
27
+ next()
28
+ })
29
+ router.afterEach((to, from, next) => { })
30
+ export default router
@@ -0,0 +1,99 @@
1
+ <template>
2
+ <div class="login" v-cloak>
3
+ <img src="@assets/images/bg.png" />
4
+ <main class="main">
5
+ <i class="iconfont-app icongw-icon-shezhi" @click.stop="loginOutServerContent"></i>
6
+ <aside class="login_form">
7
+ <h2>
8
+ <h3>{{ $t('login.main.title') }}</h3>
9
+ <h5>{{ $t('login.main.subTitle') }}</h5>
10
+ </h2>
11
+ <el-form label-position="top" label-width="100px" :model="loginModel" :rules="rules">
12
+ <el-form-item prop="userName">
13
+ <template v-slot:label>
14
+ <i class="iconfont-app icongw-icon-shezhi-renyuan"></i>
15
+ <span class="label">{{ $t('login.main.formItem[0]') }}</span>
16
+ </template>
17
+ <el-input size="large" v-model="loginModel.userName"
18
+ :placeholder="$t('login.main.placeholder[0]')" autocomplete="off" clearable />
19
+ </el-form-item>
20
+ <el-form-item prop="password">
21
+ <template v-slot:label>
22
+ <i class="iconfont-app iconmima"></i>
23
+ <span class="label">{{ $t('login.main.formItem[1]') }}</span>
24
+ </template>
25
+ <el-input size="large" type="password" show-password v-model="loginModel.password"
26
+ @keyup.enter="login" :placeholder="$t('login.main.placeholder[1]')" autocomplete="off"
27
+ clearable />
28
+ </el-form-item>
29
+ </el-form>
30
+ <el-button type="primary" class="loginButton" @click.stop="login">
31
+ {{ $t('login.main.button[1]') }}
32
+ </el-button>
33
+ </aside>
34
+ </main>
35
+ </div>
36
+ </template>
37
+
38
+ <script setup lang="ts">
39
+ import { computed, reactive } from 'vue'
40
+ import { useI18n } from "vue-i18n";
41
+ import { ElMessageBox } from 'element-plus'
42
+
43
+ import { MyJavaFun } from '@ganwei-web/gw-app-mfe/dist/index.es.js';
44
+
45
+ import { type ILoginModel } from '@/models';
46
+
47
+ import useLogin from './js/useLogin'
48
+ import useRememberPassword from './js/useRememberPassword'
49
+
50
+ const { t } = useI18n()
51
+
52
+ const loginModel = reactive<ILoginModel>({
53
+ userName: '',
54
+ password: ''
55
+ })
56
+ const { saveUser } = useRememberPassword(loginModel)
57
+
58
+ const { login: loginApi } = useLogin(loginModel)
59
+
60
+ const rules = reactive({
61
+ userName: [
62
+ { required: true, message: computed(() => t('login.msg.beforeLogin[2]')), trigger: 'blur' },
63
+ ],
64
+ password: [
65
+ { required: true, message: computed(() => t('login.msg.beforeLogin[3]')), trigger: 'blur' },
66
+ ]
67
+ })
68
+
69
+ /**
70
+ * @function login
71
+ * @descriptions: 登录,后记住账号
72
+ */
73
+ async function login() {
74
+ await loginApi()
75
+ saveUser(loginModel.userName, loginModel.password)
76
+ }
77
+
78
+ /**
79
+ * @function loginOutServerContent
80
+ * @descriptions: 退出到APP登录页
81
+ */
82
+ function loginOutServerContent() {
83
+ ElMessageBox.confirm(
84
+ t('login.tips.toConnectPage'),
85
+ t('login.tips.tip'),
86
+ {
87
+ type: 'warning',
88
+ confirmButtonText: t('login.button.confirm'),
89
+ cancelButtonText: t('login.button.cancel'),
90
+ customClass: 'logout-msg'
91
+ }
92
+ ).then(() => {
93
+ try {
94
+ MyJavaFun.OpenLocalUrl('login');
95
+ } catch (e) { /* empty */ }
96
+ }).catch(() => { /* empty */ });
97
+ }
98
+ </script>
99
+ <style lang="scss" src="./css/login.scss" scoped></style>