@ganwei-web/ganwei-pc-cli 6.3.6 → 6.3.8

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 (26) hide show
  1. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/css/ElementPlusAdapter.css +89 -443
  2. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.css +7 -3
  3. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.js +1 -1
  4. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.json +7 -0
  5. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.ttf +0 -0
  6. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.woff +0 -0
  7. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/fonts/font/iconfont.woff2 +0 -0
  8. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/dark-6-1.css +15 -0
  9. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/green-6-1.css +24 -0
  10. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/light-6-1.css +16 -1
  11. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/src/components/layouts/Navigation/TopNav.vue +10 -18
  12. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/src/views/index.js +4 -5
  13. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-login/public/static/themes/light-6-1.css +1 -1
  14. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-login/src/views/ssoLogin.vue +15 -11
  15. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/env.d.ts +7 -0
  16. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/package.json +3 -3
  17. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/public/static/themes/dark-6-1.css +443 -3
  18. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/public/static/themes/light-6-1.css +435 -1
  19. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/main.ts +2 -2
  20. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/dom.ts +3 -11
  21. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/performance.ts +2 -2
  22. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/signalr.ts +49 -22
  23. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/string.ts +0 -14
  24. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/vite.config.ts +10 -0
  25. package/package.json +1 -1
  26. package/ganwei-iotcenter-index-6.2.3/pnpm-lock.yaml +0 -9063
@@ -76,20 +76,6 @@ export function stripHtml(html: string): string {
76
76
  return html.replace(/<[^>]*>/g, '')
77
77
  }
78
78
 
79
- /**
80
- * 转义 HTML 特殊字符
81
- */
82
- export function escapeHtml(str: string): string {
83
- const escapeMap: Record<string, string> = {
84
- '&': '&amp;',
85
- '<': '&lt;',
86
- '>': '&gt;',
87
- '"': '&quot;',
88
- "'": '&#39;'
89
- }
90
-
91
- return str.replace(/[&<>"']/g, char => escapeMap[char])
92
- }
93
79
 
94
80
  /**
95
81
  * 解析 URL 参数
@@ -180,6 +180,16 @@ export default ({ mode }) => {
180
180
  Referer: VITE_APP_TARGET_URL
181
181
  }
182
182
  },
183
+ "/file": {
184
+ target: VITE_APP_TARGET_URL,
185
+ changeOrigin: true,
186
+ secure: false,
187
+ ws: true,
188
+ rewrite: path => path.replace(/^\/file/, "/file"),
189
+ headers: {
190
+ Referer: VITE_APP_TARGET_URL
191
+ }
192
+ },
183
193
  },
184
194
  force: true, // 强制使依赖预构建
185
195
  hmr: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganwei-web/ganwei-pc-cli",
3
- "version": "6.3.6",
3
+ "version": "6.3.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",