-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
88 lines (82 loc) · 2.6 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import './bootstrap';
import '../css/app.css';
import Lara from '@primevue/themes/lara';
import 'primeicons/primeicons.css'
import { definePreset } from '@primevue/themes';
import { createApp, h } from 'vue';
import { createInertiaApp } from '@inertiajs/vue3';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { ZiggyVue } from '../../vendor/tightenco/ziggy';
import PrimeVue from 'primevue/config';
import Tooltip from 'primevue/tooltip';
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
const MyPreset = definePreset(Lara, {
semantic: {
primary: {
50: '{amber.50}',
100: '{amber.100}',
200: '{amber.200}',
300: '{amber.300}',
400: '{amber.400}',
500: '{amber.500}',
600: '{amber.600}',
700: '{amber.700}',
800: '{amber.800}',
900: '{amber.900}',
950: '{amber.950}'
},
colorScheme: {
light: {
surface: {
0: '#ffffff',
50: '{zinc.50}',
100: '{zinc.100}',
200: '{zinc.200}',
300: '{zinc.300}',
400: '{zinc.400}',
500: '{zinc.500}',
600: '{zinc.600}',
700: '{zinc.700}',
800: '{zinc.800}',
900: '{zinc.900}',
950: '{zinc.950}'
}
},
dark: {
surface: {
0: '#ffffff',
50: '{gray.50}',
100: '{gray.100}',
200: '{gray.200}',
300: '{gray.300}',
400: '{gray.400}',
500: '{gray.500}',
600: '{gray.600}',
700: '{gray.700}',
800: '{gray.800}',
900: '{gray.800}',
950: '#192332'
}
}
}
}
});
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')),
setup({ el, App, props, plugin }) {
return createApp({ render: () => h(App, props) })
.use(plugin)
.use(ZiggyVue)
.use(PrimeVue, {
theme: {
preset: MyPreset
}
})
.directive('tooltip', Tooltip)
.mount(el);
},
progress: {
color: '#e98e06',
},
});