Skip to content

Commit

Permalink
Bump PrimeVue version from 3 to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireAotD committed Sep 29, 2024
1 parent a1c7b09 commit d4f11ea
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"importOrder": [
"^(vue|@vue|vitest)",
"^primevue",
"^(primevue|@primevue|primeicons)",
"<THIRD_PARTY_MODULES>",
"^@/(entities|features|shared|widgets|pages|types)",
"^[./]"
Expand Down
3 changes: 2 additions & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
"ziggy-js": "^2.3.0"
},
"dependencies": {
"@primevue/themes": "^4.0.7",
"@vueuse/core": "^11.1.0",
"chart.js": "^4.4.4",
"primeicons": "^7.0.0",
"primevue": "^3.53.0"
"primevue": "^4.0.7"
}
}
68 changes: 60 additions & 8 deletions src/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/resources/js/app.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { DefineComponent, createApp, h } from 'vue';

import Aura from '@primevue/themes/aura';
import 'primeicons/primeicons.css';
import PrimeVue from 'primevue/config';
import Tailwind from 'primevue/passthrough/tailwind';
import 'primevue/resources/themes/lara-dark-indigo/theme.css';
import Toast from 'primevue/toast';
import ToastService from 'primevue/toastservice';

import { createInertiaApp } from '@inertiajs/vue3';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import 'primeicons/primeicons.css';
import { ZiggyVue } from 'ziggy-js';

import { HasRolePlugin } from '@/shared/plugins/user/authorize';
Expand All @@ -31,8 +30,10 @@ createInertiaApp({
.use(ZiggyVue)
.use(HasRolePlugin)
.use(PrimeVue, {
theme: {
preset: Aura,
},
ripple: true,
pt: Tailwind,
ptOptions: { mergeProps: false },
})
.use(ToastService)
Expand Down

0 comments on commit d4f11ea

Please sign in to comment.