@maizzle/framework 6.0.8 → 6.0.9
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.
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
{
|
|
2
|
-
"hash": "
|
|
3
|
-
"configHash": "
|
|
2
|
+
"hash": "b4b60ec2",
|
|
3
|
+
"configHash": "09dd6fb0",
|
|
4
4
|
"lockfileHash": "e3b0c442",
|
|
5
|
-
"browserHash": "
|
|
5
|
+
"browserHash": "cfed9a1f",
|
|
6
6
|
"optimized": {
|
|
7
7
|
"@lucide/vue": {
|
|
8
8
|
"src": "../../../../../node_modules/@lucide/vue/dist/esm/lucide-vue.mjs",
|
|
9
9
|
"file": "@lucide_vue.js",
|
|
10
|
-
"fileHash": "
|
|
10
|
+
"fileHash": "a3d54b31",
|
|
11
11
|
"needsInterop": false
|
|
12
12
|
},
|
|
13
13
|
"@vueuse/core": {
|
|
14
14
|
"src": "../../../../../node_modules/@vueuse/core/dist/index.js",
|
|
15
15
|
"file": "@vueuse_core.js",
|
|
16
|
-
"fileHash": "
|
|
16
|
+
"fileHash": "9ac6c9e8",
|
|
17
17
|
"needsInterop": false
|
|
18
18
|
},
|
|
19
19
|
"@vueuse/shared": {
|
|
20
20
|
"src": "../../../../../node_modules/@vueuse/shared/dist/index.js",
|
|
21
21
|
"file": "@vueuse_shared.js",
|
|
22
|
-
"fileHash": "
|
|
22
|
+
"fileHash": "9a9286c4",
|
|
23
23
|
"needsInterop": false
|
|
24
24
|
},
|
|
25
25
|
"class-variance-authority": {
|
|
26
26
|
"src": "../../../../../node_modules/class-variance-authority/dist/index.mjs",
|
|
27
27
|
"file": "class-variance-authority.js",
|
|
28
|
-
"fileHash": "
|
|
28
|
+
"fileHash": "a2ba5bd0",
|
|
29
29
|
"needsInterop": false
|
|
30
30
|
},
|
|
31
31
|
"clsx": {
|
|
32
32
|
"src": "../../../../../node_modules/clsx/dist/clsx.mjs",
|
|
33
33
|
"file": "clsx.js",
|
|
34
|
-
"fileHash": "
|
|
34
|
+
"fileHash": "7f88946c",
|
|
35
35
|
"needsInterop": false
|
|
36
36
|
},
|
|
37
37
|
"culori": {
|
|
38
38
|
"src": "../../../../../node_modules/culori/src/index.js",
|
|
39
39
|
"file": "culori.js",
|
|
40
|
-
"fileHash": "
|
|
40
|
+
"fileHash": "798fcb02",
|
|
41
41
|
"needsInterop": false
|
|
42
42
|
},
|
|
43
43
|
"reka-ui": {
|
|
44
44
|
"src": "../../../../../node_modules/reka-ui/dist/index.js",
|
|
45
45
|
"file": "reka-ui.js",
|
|
46
|
-
"fileHash": "
|
|
46
|
+
"fileHash": "78f37cba",
|
|
47
47
|
"needsInterop": false
|
|
48
48
|
},
|
|
49
49
|
"tailwind-merge": {
|
|
50
50
|
"src": "../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js",
|
|
51
51
|
"file": "tailwind-merge.js",
|
|
52
|
-
"fileHash": "
|
|
52
|
+
"fileHash": "7fd733dd",
|
|
53
53
|
"needsInterop": true
|
|
54
54
|
},
|
|
55
55
|
"vue-router": {
|
|
56
56
|
"src": "../../../../../node_modules/vue-router/dist/vue-router.js",
|
|
57
57
|
"file": "vue-router.js",
|
|
58
|
-
"fileHash": "
|
|
58
|
+
"fileHash": "605db2ca",
|
|
59
59
|
"needsInterop": false
|
|
60
60
|
},
|
|
61
61
|
"vue": {
|
|
62
62
|
"src": "../../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
|
63
63
|
"file": "vue.js",
|
|
64
|
-
"fileHash": "
|
|
64
|
+
"fileHash": "f7a8609e",
|
|
65
65
|
"needsInterop": false
|
|
66
66
|
}
|
|
67
67
|
},
|
package/dist/server/ui/App.vue
CHANGED
|
@@ -290,6 +290,31 @@ function toggleDarkMode() {
|
|
|
290
290
|
darkMode.value = !darkMode.value
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
const vFade = {
|
|
294
|
+
mounted(el: HTMLElement) {
|
|
295
|
+
const update = () => {
|
|
296
|
+
const max = el.scrollWidth - el.clientWidth
|
|
297
|
+
el.style.setProperty('--fade-l', el.scrollLeft > 1 ? 'transparent' : '#000')
|
|
298
|
+
el.style.setProperty('--fade-r', el.scrollLeft < max - 1 ? 'transparent' : '#000')
|
|
299
|
+
}
|
|
300
|
+
;(el as any)._fade = update
|
|
301
|
+
el.addEventListener('scroll', update, { passive: true })
|
|
302
|
+
window.addEventListener('resize', update)
|
|
303
|
+
const observer = new ResizeObserver(update)
|
|
304
|
+
observer.observe(el)
|
|
305
|
+
;(el as any)._fadeObserver = observer
|
|
306
|
+
requestAnimationFrame(update)
|
|
307
|
+
},
|
|
308
|
+
updated(el: HTMLElement) {
|
|
309
|
+
requestAnimationFrame((el as any)._fade)
|
|
310
|
+
},
|
|
311
|
+
unmounted(el: HTMLElement) {
|
|
312
|
+
el.removeEventListener('scroll', (el as any)._fade)
|
|
313
|
+
window.removeEventListener('resize', (el as any)._fade)
|
|
314
|
+
;(el as any)._fadeObserver?.disconnect()
|
|
315
|
+
},
|
|
316
|
+
}
|
|
317
|
+
|
|
293
318
|
onMounted(() => {
|
|
294
319
|
document.addEventListener('keydown', onKeydown)
|
|
295
320
|
window.addEventListener('blur', onWindowBlur)
|
|
@@ -329,7 +354,9 @@ onUnmounted(() => {
|
|
|
329
354
|
</SidebarGroup>
|
|
330
355
|
|
|
331
356
|
<SidebarGroup v-for="(items, dir) in grouped" :key="dir" v-else>
|
|
332
|
-
<SidebarGroupLabel>
|
|
357
|
+
<SidebarGroupLabel>
|
|
358
|
+
<span v-fade class="min-w-0 overflow-x-auto whitespace-nowrap scrollbar-hide fade-scroll">{{ dir }}</span>
|
|
359
|
+
</SidebarGroupLabel>
|
|
333
360
|
<SidebarGroupContent>
|
|
334
361
|
<SidebarMenu>
|
|
335
362
|
<SidebarMenuItem v-for="t in items" :key="t.path">
|
package/dist/server/ui/main.css
CHANGED
|
@@ -152,3 +152,18 @@
|
|
|
152
152
|
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M3 22V14l4 4 4-4v8'/%3E%3C/svg%3E");
|
|
153
153
|
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M3 22V14l4 4 4-4v8'/%3E%3C/svg%3E");
|
|
154
154
|
}
|
|
155
|
+
|
|
156
|
+
@utility scrollbar-hide {
|
|
157
|
+
-ms-overflow-style: none;
|
|
158
|
+
scrollbar-width: none;
|
|
159
|
+
&::-webkit-scrollbar {
|
|
160
|
+
display: none;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@utility fade-scroll {
|
|
165
|
+
--fade-l: #000;
|
|
166
|
+
--fade-r: #000;
|
|
167
|
+
-webkit-mask-image: linear-gradient(to right, var(--fade-l) 0, #000 1.5rem, #000 calc(100% - 1.5rem), var(--fade-r) 100%);
|
|
168
|
+
mask-image: linear-gradient(to right, var(--fade-l) 0, #000 1.5rem, #000 calc(100% - 1.5rem), var(--fade-r) 100%);
|
|
169
|
+
}
|