File tree 5 files changed +30
-30
lines changed
5 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"devDependencies" : {
3
- "@heroicons/vue" : " ^2.2.0" ,
4
3
"@inertiajs/vue3" : " ^2.0.3" ,
5
4
"@sentry/vue" : " ^8.54.0" ,
6
5
"@tailwindcss/forms" : " ^0.5.10" ,
20
19
},
21
20
"type" : " module" ,
22
21
"dependencies" : {
23
- "caniuse-lite" : " ^1.0.30001697"
22
+ "caniuse-lite" : " ^1.0.30001697" ,
23
+ "lucide-vue-next" : " ^0.479.0"
24
24
}
25
25
}
Original file line number Diff line number Diff line change 5
5
<div class =" flex h-16 items-center justify-between" >
6
6
<div class =" flex items-center" >
7
7
<Link :href =" route('home')" >
8
- <SparklesIcon class =" h-8 w-8 shrink-0 text-brand-800" />
8
+ <SparklesIcon class =" size-7 shrink-0 text-brand-800" />
9
9
</Link >
10
10
</div >
11
11
38
38
class =" relative inline-flex items-center justify-center rounded-md bg-brand-100 p-2 text-brand-900 hover:bg-brand-900 hover:text-white cursor-pointer"
39
39
>
40
40
<span class =" sr-only" >Open main menu</span >
41
- <XMarkIcon
41
+ <CloseIcon
42
42
v-if =" mobileMenuOpen"
43
- class =" block h-6 w -6"
43
+ class =" block size -6"
44
44
/>
45
- <Bars3Icon
45
+ <MenuIcon
46
46
v-else
47
- class =" block h-6 w -6"
47
+ class =" block size -6"
48
48
/>
49
49
</button >
50
50
</div >
82
82
import { ref , onMounted } from " vue" ;
83
83
import { router } from ' @inertiajs/vue3'
84
84
85
+ import {
86
+ Sparkles as SparklesIcon ,
87
+ Menu as MenuIcon ,
88
+ X as CloseIcon ,
89
+ } from ' lucide-vue-next' ;
90
+
85
91
const props = defineProps ({
86
92
menu: Array ,
87
93
});
Original file line number Diff line number Diff line change 9
9
}'
10
10
role =" alert"
11
11
>
12
- <component
13
- v-if =" icon"
14
- :is =" icon"
15
- class =" shrink-0 inline w-6 h-6 me-3"
12
+ <CircleCheckIcon
13
+ v-if =" type === 'success'"
14
+ class =" shrink-0 inline size-5 me-3"
15
+ />
16
+ <CircleXIcon
17
+ v-else-if =" type === 'error'"
18
+ class =" shrink-0 inline size-5 me-3"
19
+ />
20
+ <CircleAlertIcon
21
+ v-else
22
+ class =" shrink-0 inline size-5 me-3"
16
23
/>
17
24
<p v-text =" message" ></p >
18
25
</div >
22
29
import { ref , onMounted } from ' vue' ;
23
30
import { router , usePage } from " @inertiajs/vue3" ;
24
31
32
+ import {
33
+ CircleCheck as CircleCheckIcon ,
34
+ CircleX as CircleXIcon ,
35
+ CircleAlert as CircleAlertIcon ,
36
+ } from ' lucide-vue-next' ;
37
+
25
38
const page = usePage ();
26
39
27
40
const active = ref (false );
34
47
let error = Object .values (page .props .errors )[0 ] || page .props .error ;
35
48
36
49
if (page .props .success ) {
37
- icon .value = " CheckCircleIcon" ;
38
50
type .value = " success" ;
39
51
message .value = page .props .success ;
40
52
} else if (error) {
41
- icon .value = " XCircleIcon" ;
42
53
type .value = " error" ;
43
54
message .value = error;
44
55
} else if (page .props .warning ) {
45
- icon .value = " ExclamationCircleIcon" ;
46
56
type .value = " warning" ;
47
57
message .value = page .props .warning ;
48
58
}
Original file line number Diff line number Diff line change @@ -5,15 +5,6 @@ import { route, ZiggyVue } from 'ziggy-js';
5
5
import { createApp , defineAsyncComponent , h } from 'vue' ;
6
6
import { createInertiaApp , Link , Head } from '@inertiajs/vue3' ;
7
7
8
- import {
9
- Bars3Icon ,
10
- XMarkIcon ,
11
- SparklesIcon ,
12
- CheckCircleIcon ,
13
- XCircleIcon ,
14
- ExclamationCircleIcon ,
15
- } from '@heroicons/vue/24/outline' ;
16
-
17
8
import { userCan } from "@js/utilities/permissions.js" ;
18
9
19
10
const AppLayout = defineAsyncComponent ( ( ) => import ( '@js/Layouts/App.vue' ) ) ;
@@ -42,13 +33,6 @@ createInertiaApp({
42
33
43
34
VueApp . mixin ( { methods : { userCan } } ) ;
44
35
45
- VueApp . component ( 'Bars3Icon' , Bars3Icon )
46
- . component ( 'XMarkIcon' , XMarkIcon )
47
- . component ( 'SparklesIcon' , SparklesIcon )
48
- . component ( 'CheckCircleIcon' , CheckCircleIcon )
49
- . component ( 'XCircleIcon' , XCircleIcon )
50
- . component ( 'ExclamationCircleIcon' , ExclamationCircleIcon ) ;
51
-
52
36
VueApp . component ( 'Head' , Head )
53
37
. component ( 'Link' , Link )
54
38
. component ( 'PageTitle' , defineAsyncComponent ( ( ) => import ( '@js/Components/PageTitle.vue' ) ) )
You can’t perform that action at this time.
0 commit comments