@fy-/fws-vue 2.3.65 → 2.3.67

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.3.65",
3
+ "version": "2.3.67",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",
@@ -5,7 +5,7 @@ export interface ServerRouterState {
5
5
  _router: any | null
6
6
  status: number
7
7
  redirect?: string
8
- results: Map<number, any>
8
+ results: Record<number, any | undefined>
9
9
  }
10
10
 
11
11
  export const useServerRouter = defineStore('routerStore', {
@@ -15,7 +15,7 @@ export const useServerRouter = defineStore('routerStore', {
15
15
  _router: null,
16
16
  status: 200,
17
17
  redirect: undefined,
18
- results: new Map(),
18
+ results: {},
19
19
  }) as ServerRouterState,
20
20
  getters: {
21
21
  currentRoute: state => state._router?.currentRoute,
@@ -49,21 +49,23 @@ export const useServerRouter = defineStore('routerStore', {
49
49
  },
50
50
  addResult(id: number, result: any) {
51
51
  // Limit results cache size to prevent memory leaks
52
- if (this.results.size > 100) {
52
+ const keys = Object.keys(this.results)
53
+ if (keys.length > 100) {
53
54
  // Remove oldest entries (first 10)
54
- const keysToDelete = Array.from(this.results.keys()).slice(0, 10)
55
- keysToDelete.forEach(key => this.results.delete(key))
55
+ keys.slice(0, 10).forEach((key) => {
56
+ delete this.results[Number(key)]
57
+ })
56
58
  }
57
- this.results.set(id, result)
59
+ this.results[id] = result
58
60
  },
59
61
  hasResult(id: number) {
60
- return this.results.has(id)
62
+ return this.results[id] !== undefined
61
63
  },
62
64
  getResult(id: number) {
63
- return this.results.get(id)
65
+ return this.results[id]
64
66
  },
65
67
  removeResult(id: number) {
66
- this.results.delete(id)
68
+ delete this.results[id]
67
69
  },
68
70
  },
69
71
  })
package/style.css CHANGED
@@ -1,6 +1,8 @@
1
+ /* Component-specific styles */
1
2
  :root {
2
3
  --surface-0: (255 255 255);
3
4
  }
5
+
4
6
  .fws-error-text {
5
7
  @apply text-red-700 dark:text-red-500;
6
8
  }
package/tailwind.css ADDED
@@ -0,0 +1,53 @@
1
+ /* Import Tailwind CSS v4 */
2
+ @import "tailwindcss";
3
+
4
+ /*
5
+ * Source detection for this component library
6
+ * This tells Tailwind to scan our components when used in other projects
7
+ */
8
+ @source "./components/**/*.{vue,ts}";
9
+ @source "./composables/**/*.ts";
10
+ @source "./stores/**/*.ts";
11
+
12
+ /* Custom theme configuration */
13
+ @theme {
14
+ /* Custom color palette for fws-vue */
15
+ --color-fv-primary-50: #eff6ff;
16
+ --color-fv-primary-100: #dbeafe;
17
+ --color-fv-primary-200: #bfdbfe;
18
+ --color-fv-primary-300: #93c5fd;
19
+ --color-fv-primary-400: #60a5fa;
20
+ --color-fv-primary-500: #3b82f6;
21
+ --color-fv-primary-600: #2563eb;
22
+ --color-fv-primary-700: #1d4ed8;
23
+ --color-fv-primary-800: #1e40af;
24
+ --color-fv-primary-900: #1e3a8a;
25
+ --color-fv-primary-950: #172554;
26
+
27
+ --color-fv-accent-50: #fdf2f8;
28
+ --color-fv-accent-100: #fce7f3;
29
+ --color-fv-accent-200: #fbcfe8;
30
+ --color-fv-accent-300: #f9a8d4;
31
+ --color-fv-accent-400: #f472b6;
32
+ --color-fv-accent-500: #ec4899;
33
+ --color-fv-accent-600: #db2777;
34
+ --color-fv-accent-700: #be185d;
35
+ --color-fv-accent-800: #9d174d;
36
+ --color-fv-accent-900: #831843;
37
+ --color-fv-accent-950: #500724;
38
+
39
+ --color-fv-neutral-50: #f9fafb;
40
+ --color-fv-neutral-100: #f3f4f6;
41
+ --color-fv-neutral-200: #e5e7eb;
42
+ --color-fv-neutral-300: #d1d5db;
43
+ --color-fv-neutral-400: #9ca3af;
44
+ --color-fv-neutral-500: #6b7280;
45
+ --color-fv-neutral-600: #4b5563;
46
+ --color-fv-neutral-700: #374151;
47
+ --color-fv-neutral-800: #1f2937;
48
+ --color-fv-neutral-900: #111827;
49
+ --color-fv-neutral-950: #030712;
50
+ }
51
+
52
+ /* Import the existing styles */
53
+ @import "./style.css";