Skip to content

Commit 86a6629

Browse files
committed
Refactor theme initialization and add NProgress support
Removed server-side PrimeVue theme initialization logic and improved client-side theme handling with localStorage. Added NProgress for better navigation feedback, replacing default Inertia progress behavior. Updated dependencies, including library versions and types.
1 parent 70e6a96 commit 86a6629

File tree

15 files changed

+9715
-352
lines changed

15 files changed

+9715
-352
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ yarn-error.log
2222
/.nova
2323
/.vscode
2424
/.zed
25-
composer.lock

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ To change default theme preset, change config in [useAppearance.ts](resources/js
4141

4242
```js
4343
const layoutConfig = reactive({
44-
preset: 'Aura',
45-
primary: 'noir',
46-
surface: 'soho',
47-
menuMode: 'static'
44+
preset: localStorage.getItem('layout_preset') || 'Aura',
45+
primary: localStorage.getItem('layout_primary') || 'noir',
46+
surface: localStorage.getItem('layout_surface') || 'soho',
47+
menuMode: localStorage.getItem('layout_menu_mode') || 'static'
4848
});
4949
```

components.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ export {}
88
declare module 'vue' {
99
export interface GlobalComponents {
1010
Avatar: typeof import('primevue/avatar')['default']
11-
Badge: typeof import('primevue/badge')['default']
1211
Button: typeof import('primevue/button')['default']
1312
Card: typeof import('primevue/card')['default']
1413
Checkbox: typeof import('primevue/checkbox')['default']
1514
Dialog: typeof import('primevue/dialog')['default']
16-
Form: typeof import('@primevue/forms/form')['default']
1715
InputText: typeof import('primevue/inputtext')['default']
1816
Menu: typeof import('primevue/menu')['default']
1917
Message: typeof import('primevue/message')['default']

0 commit comments

Comments
 (0)