Skip to content

Commit 58f6fda

Browse files
committed
Updated to latest nuxt and primevue modules.
1 parent 0c3dcc8 commit 58f6fda

File tree

15 files changed

+7190
-6946
lines changed

15 files changed

+7190
-6946
lines changed
File renamed without changes.

app/pages/cronjobs/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<Pager :kind="cronjobs" />
2929
</PanelZone>
3030
<PanelZone title="Create Cron Job">
31-
<Form :send="() => cronjobs.create()">
31+
<VForm :send="() => cronjobs.create()">
3232

3333
<FormInput name="schedule" type="text" v-model="cronjobs.new.schedule" required label="Schedule" class="mb-4" />
3434
<FormInput name="handler" type="select" v-model="cronjobs.new.handler" :options="cronjobs.propsOptions?.handler" required label="Handler" class="mb-4" />
@@ -37,7 +37,7 @@
3737
<Icon name="ph:plus" class="mr-1"/> Create Cron Job
3838
</Button>
3939
</div>
40-
</Form>
40+
</VForm>
4141
</PanelZone>
4242
</template>
4343
</PanelFrame>

app/pages/users/[id]/reset-password.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</NuxtLink>
1010
</div>
1111
<PanelZone>
12-
<Form :send="resetPassword">
12+
<VForm :send="resetPassword">
1313
<div class="flex gap-5 flex-col-reverse md:flex-row">
1414
<div class="flex-auto">
1515
<FormInput name="code" type="text" v-model="newPassword.code" required readonly
@@ -28,7 +28,7 @@
2828
</div>
2929

3030
</div>
31-
</Form>
31+
</VForm>
3232
</PanelZone>
3333
</div>
3434
</template>

app/pages/users/admin/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</PanelZone>
5454
<PanelZone title="Create User">
5555

56-
<Form :send="() => users.create()">
56+
<VForm :send="() => users.create()">
5757

5858
<FormInput name="nausernameme" type="text" v-model="users.new.username" required
5959
label="Username" class="mb-4" />
@@ -67,7 +67,7 @@
6767
<Icon name="ph:plus" class="mr-1"/> Create User
6868
</Button>
6969

70-
</Form>
70+
</VForm>
7171
</PanelZone>
7272
</template>
7373
</PanelFrame>

app/pages/users/create.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</NuxtLink>
1010
</div>
1111
<PanelZone>
12-
<Form :send="createAccount">
12+
<VForm :send="createAccount">
1313
<FormInput name="username" v-model="newUser.username" required label="Username" autocomplete="username"
1414
type="text" class="mb-3" />
1515

@@ -27,7 +27,7 @@
2727
class="mb-3" />
2828

2929
<Button type="submit" class="w-full"><span class="text-center w-full"><Icon name="ph:user" class="mr-1"/><span class="align-middle">Create Account</span></span></Button>
30-
</Form>
30+
</VForm>
3131

3232
<Divider align="center" class="my-4">
3333
<span >OR</span>

app/pages/users/login.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
</div>
1111
<PanelZone>
1212

13-
<Form :send="tryLogin">
13+
<VForm :send="tryLogin">
1414
<FormInput name="login" v-model="login" id="login1" required label="Email or Username" autocomplete="email"
1515
class="mb-3" />
1616

1717
<FormInput name="password" v-model="password" required label="Password" autocomplete="current-password"
1818
type="password" class="mb-3" />
1919

2020
<Button type="submit" class="w-full"><span class="text-center w-full"><Icon name="ph:user" class="mr-1"/><span class="align-middle">Sign in with Password</span></span></Button>
21-
</Form>
21+
</VForm>
2222

2323
<div class="mt-3">
2424
<span class="text-600 font-medium line-height-3">Forgot your password?</span>

app/pages/users/reset-password.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</NuxtLink>
1010
</div>
1111
<PanelZone info="Where should we send the password reset email?">
12-
<Form :send="sendPasswordReset">
12+
<VForm :send="sendPasswordReset">
1313
<div class="flex gap-5 flex-col-reverse md:flex-row">
1414
<div class="flex-auto">
1515
<FormInput name="email" type="email" v-model="email" required label="Email Address" class="mb-4" />
@@ -20,7 +20,7 @@
2020
</div>
2121

2222
</div>
23-
</Form>
23+
</VForm>
2424
</PanelZone>
2525
</div>
2626
</template>

app/pages/users/settings/account.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
autocomplete="name" @change="currentUser.save('realName')" class="mb-4" />
1717
</PanelZone>
1818
<PanelZone title="Change Password" info="Alter your credentials.">
19-
<Form :send="changePassword">
19+
<VForm :send="changePassword">
2020
<FormInput name="password" type="password" v-model="newPassword.password" required
2121
label="New Password" autocomplete="new-password" class="mb-4" />
2222

@@ -28,7 +28,7 @@
2828
Change Password
2929
</Button>
3030

31-
</Form>
31+
</VForm>
3232
</PanelZone>
3333

3434
</template>

app/pages/users/settings/apikeys.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</PanelZone>
6363

6464
<PanelZone title="Create API Key" info="Make a new API Key.">
65-
<Form :send="() => apikeys.create()">
65+
<VForm :send="() => apikeys.create()">
6666

6767
<FormInput name="name" type="text" v-model="apikeys.new.name" required
6868
label="Name" class="mb-4" />
@@ -76,7 +76,7 @@
7676
<Icon name="ph:plus" class="mr-1"/> Create API Key
7777
</Button>
7878

79-
</Form>
79+
</VForm>
8080
</PanelZone>
8181

8282
</template>

nuxt.config.mjs

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,37 @@ ving.site.url = process.env.VING_SITE_URL;
77

88
export default defineNuxtConfig({
99
devtools: false,
10+
1011
future: {
1112
compatibilityVersion: 4,
1213
},
14+
1315
modules: [
1416
'@pinia/nuxt',
1517
'nuxt-icon',
1618
'@nuxtjs/tailwindcss',
1719
'@primevue/nuxt-module',
1820
'@vueuse/nuxt',
1921
],
22+
2023
primevue: {
2124
importTheme: { from: "@/themes/ving-theme.mjs" },
2225
},
26+
2327
imports: {
2428
dirs: [
2529
'composables/**',
2630
'utils/**',
2731
],
2832
},
33+
2934
components: [
3035
{
3136
path: '~/components',
3237
pathPrefix: false,
3338
},
3439
],
40+
3541
app: {
3642
head: {
3743
link: [
@@ -69,16 +75,21 @@ export default defineNuxtConfig({
6975
]
7076
},
7177
},
78+
7279
css: [
7380
'primeicons/primeicons.css',
7481
],
82+
7583
runtimeConfig: {
7684
public: ving,
7785
},
86+
7887
hooks: {
7988
'nitro:build:public-assets': (nitro) => {
8089
const targetPath = path.join(nitro.options.output.dir, 'ving.json');
8190
cpSync('./ving.json', targetPath, { recursive: true });
8291
}
83-
}
92+
},
93+
94+
compatibilityDate: '2025-01-21'
8495
})

0 commit comments

Comments
 (0)