@ganwei-web/ganwei-pc-cli 6.3.7 → 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 (16) 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/themes/dark-6-1.css +892 -885
  3. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/green-6-1.css +16 -0
  4. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/light-6-1.css +8 -1
  5. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/src/components/layouts/Navigation/TopNav.vue +10 -18
  6. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/src/views/index.js +4 -5
  7. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-login/public/static/themes/light-6-1.css +1 -1
  8. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/env.d.ts +1 -0
  9. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/package.json +3 -3
  10. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/public/static/themes/dark-6-1.css +892 -885
  11. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/public/static/themes/light-6-1.css +8 -1
  12. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/dom.ts +3 -11
  13. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/performance.ts +2 -2
  14. package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/string.ts +0 -14
  15. package/package.json +1 -1
  16. package/ganwei-iotcenter-index-6.2.3/pnpm-lock.yaml +0 -9063
@@ -222,7 +222,7 @@
222
222
 
223
223
  /*el-input 基础*/
224
224
  --input-color: var(--gw-color-Neutrals2);
225
- --input-background: var(--gw-color-Neutrals19);
225
+ --input-background: var(--gw-color-Neutrals25);
226
226
  --input-background__disabled: var(--gw-color-Neutrals20);
227
227
  --input-placeholder: var(--gw-color-Neutrals13);
228
228
  --input-border: var(--gw-color-Neutrals18);
@@ -399,6 +399,13 @@
399
399
  --collapse-color__hover: var(--frame-main-color);
400
400
  --collapse-content-background: transparent;
401
401
 
402
+ /* descriptions */
403
+ --descriptions-border: var(--gw-color-Neutrals18);
404
+ --descriptions-label-color: var(--frame-main-color);
405
+ --descriptions-label-background: var(--gw-color-Neutrals21);
406
+ --descriptions-content-color: var(--frame-main-color);
407
+ --descriptions-content-background: var(--frame-main-background-2);
408
+
402
409
  /* 穿梭框 */
403
410
  --transfer-background: var(--gw-color-Neutrals25);
404
411
  --transfer-border: var(--gw-color-Neutrals18);
@@ -70,9 +70,9 @@ export function toggleFullscreen(element?: HTMLElement): Promise<void> {
70
70
 
71
71
  if (!document.fullscreenElement) {
72
72
  return target.requestFullscreen()
73
- }
74
- return document.exitFullscreen()
75
-
73
+ }
74
+ return document.exitFullscreen()
75
+
76
76
  }
77
77
 
78
78
  /**
@@ -89,11 +89,3 @@ export function setCssVariable(name: string, value: string): void {
89
89
  document.documentElement.style.setProperty(name, value)
90
90
  }
91
91
 
92
- /**
93
- * 设置主题
94
- */
95
- export const setTheme = (theme: string): void => {
96
- localStorage.setItem('theme', theme)
97
- sessionStorage.setItem('theme', theme)
98
- window.document.documentElement.setAttribute('data-theme', theme)
99
- }
@@ -8,7 +8,7 @@ export function debounce<T extends (...args: any[]) => any>(
8
8
  func: T,
9
9
  wait: number,
10
10
  immediate = false
11
- ): (...args: Parameters<T>) => ReturnType<T> | undefined {
11
+ ): (...args: Parameters<T>) => void {
12
12
  let timeout: ReturnType<typeof setTimeout> | null = null
13
13
 
14
14
  return function (this: any, ...args: Parameters<T>) {
@@ -43,7 +43,7 @@ export function debounce<T extends (...args: any[]) => any>(
43
43
  export function throttle<T extends (...args: any[]) => any>(
44
44
  func: T,
45
45
  wait: number
46
- ): (...args: Parameters<T>) => ReturnType<T> | undefined {
46
+ ): (...args: Parameters<T>) => void {
47
47
  let timeout: ReturnType<typeof setTimeout> | null = null
48
48
  let previous = 0
49
49
 
@@ -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 参数
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganwei-web/ganwei-pc-cli",
3
- "version": "6.3.7",
3
+ "version": "6.3.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",