@veristone/nuxt-v-app 0.2.0 → 0.2.2
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/app/components/V/A/Crud/Delete.vue +0 -1
- package/app/components/V/A/Modal/Base.vue +64 -167
- package/app/components/V/A/Modal/Form.vue +47 -21
- package/app/components/V/A/Slide.vue +17 -19
- package/app/components/V/Modal.vue +51 -18
- package/app/composables/useVCrud.ts +44 -6
- package/app/composables/useVToast.ts +10 -10
- package/app/layouts/default.vue +4 -2
- package/app/pages/playground/modals.vue +794 -557
- package/app/pages/test-api-auth.vue +186 -93
- package/package.json +1 -1
|
@@ -11,8 +11,8 @@ export function useVToast() {
|
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
13
13
|
icon: 'i-lucide-check-circle',
|
|
14
|
-
color: '
|
|
15
|
-
timeout
|
|
14
|
+
color: 'success',
|
|
15
|
+
duration: timeout
|
|
16
16
|
})
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -21,8 +21,8 @@ export function useVToast() {
|
|
|
21
21
|
title,
|
|
22
22
|
description,
|
|
23
23
|
icon: 'i-lucide-info',
|
|
24
|
-
color: '
|
|
25
|
-
timeout
|
|
24
|
+
color: 'info',
|
|
25
|
+
duration: timeout
|
|
26
26
|
})
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -31,8 +31,8 @@ export function useVToast() {
|
|
|
31
31
|
title,
|
|
32
32
|
description,
|
|
33
33
|
icon: 'i-lucide-alert-circle',
|
|
34
|
-
color: '
|
|
35
|
-
timeout
|
|
34
|
+
color: 'error',
|
|
35
|
+
duration: timeout
|
|
36
36
|
})
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -41,8 +41,8 @@ export function useVToast() {
|
|
|
41
41
|
title,
|
|
42
42
|
description,
|
|
43
43
|
icon: 'i-lucide-alert-triangle',
|
|
44
|
-
color: '
|
|
45
|
-
timeout
|
|
44
|
+
color: 'warning',
|
|
45
|
+
duration: timeout
|
|
46
46
|
})
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ export function useVToast() {
|
|
|
50
50
|
err: any,
|
|
51
51
|
friendlyName: string,
|
|
52
52
|
action: string,
|
|
53
|
-
successColor: string = '
|
|
53
|
+
successColor: string = 'success'
|
|
54
54
|
) => {
|
|
55
55
|
if (err.value) {
|
|
56
56
|
error(
|
|
@@ -63,7 +63,7 @@ export function useVToast() {
|
|
|
63
63
|
title: `${friendlyName} ${action} successful`,
|
|
64
64
|
icon: 'i-lucide-check-circle',
|
|
65
65
|
color: successColor as any,
|
|
66
|
-
timeout
|
|
66
|
+
duration: timeout
|
|
67
67
|
})
|
|
68
68
|
return true
|
|
69
69
|
}
|
package/app/layouts/default.vue
CHANGED
|
@@ -106,7 +106,7 @@ const groups = computed(() => [
|
|
|
106
106
|
</script>
|
|
107
107
|
|
|
108
108
|
<template>
|
|
109
|
-
<UDashboardGroup unit="rem">
|
|
109
|
+
<UDashboardGroup unit="rem" class="h-full overflow-hidden">
|
|
110
110
|
<UDashboardSidebar
|
|
111
111
|
resizable
|
|
112
112
|
collapsible
|
|
@@ -173,7 +173,9 @@ const groups = computed(() => [
|
|
|
173
173
|
|
|
174
174
|
<UDashboardSearch :groups="groups" />
|
|
175
175
|
|
|
176
|
-
<
|
|
176
|
+
<div class="flex-1 overflow-y-auto">
|
|
177
|
+
<slot />
|
|
178
|
+
</div>
|
|
177
179
|
<VaLayoutNotificationsSlideover />
|
|
178
180
|
</UDashboardGroup>
|
|
179
181
|
</template>
|