1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 20:15:24 +02:00

feat: Migrate to Nuxt 3 framework (#5184)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
Hoa (Kyle) Trinh 2025-06-20 00:09:12 +07:00 committed by GitHub
parent 89ab7fac25
commit c24d532608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
403 changed files with 23959 additions and 19557 deletions

View file

@ -2,19 +2,30 @@
<v-container class="narrow-container">
<BasePageTitle class="mb-5">
<template #header>
<v-img max-height="100" max-width="100" :src="require('~/static/svgs/manage-group-settings.svg')"></v-img>
<v-img
width="100%"
max-height="100"
max-width="100"
:src="require('~/static/svgs/manage-group-settings.svg')"
/>
</template>
<template #title>
{{ $t("profile.group-settings") }}
</template>
<template #title> {{ $t("profile.group-settings") }} </template>
{{ $t("profile.group-description") }}
</BasePageTitle>
<section v-if="group">
<BaseCardSectionTitle class="mt-10" :title="$tc('group.group-preferences')"></BaseCardSectionTitle>
<BaseCardSectionTitle
class="mt-10"
:title="$t('group.group-preferences')"
/>
<div class="mb-6">
<v-checkbox
v-model="group.preferences.privateGroup"
hide-details
dense
density="compact"
color="primary"
:label="$t('group.private-group')"
@change="groupActions.updatePreferences()"
/>
@ -22,7 +33,10 @@
<p class="text-subtitle-2 my-0 py-0">
{{ $t("group.private-group-description") }}
</p>
<DocLink class="mt-2" link="/documentation/getting-started/faq/#how-do-private-groups-and-recipes-work" />
<DocLink
class="mt-2"
link="/documentation/getting-started/faq/#how-do-private-groups-and-recipes-work"
/>
</div>
</div>
</section>
@ -30,24 +44,23 @@
</template>
<script lang="ts">
import { defineComponent } from "@nuxtjs/composition-api";
import { useGroupSelf } from "~/composables/use-groups";
export default defineComponent({
middleware: ["auth", "can-manage-only"],
export default defineNuxtComponent({
middleware: ["sidebase-auth", "can-manage-only"],
setup() {
const { group, actions: groupActions } = useGroupSelf();
const i18n = useI18n();
useSeoMeta({
title: i18n.t("group.group"),
});
return {
group,
groupActions,
};
},
head() {
return {
title: this.$t("group.group") as string,
};
},
});
</script>