space settings and message

This commit is contained in:
vabene1111
2024-09-21 13:36:36 +02:00
parent 55bd417105
commit ce869950c3
36 changed files with 313 additions and 16 deletions

View File

@@ -34,6 +34,17 @@
</v-menu>
</v-avatar>
</v-app-bar>
<v-app-bar color="warning" density="compact" v-if="useUserPreferenceStore().activeSpace.maxRecipes == 10 && useUserPreferenceStore().serverSettings.hosted">
<p class="text-center w-100">
{{ $t('HostedFreeVersion')}} <v-btn color="success" variant="flat" href="https://tandoor.dev/manage">{{$t('UpgradeNow')}}</v-btn>
</p>
</v-app-bar>
<v-app-bar color="info" density="compact" v-if="useUserPreferenceStore().activeSpace.message != ''">
<p class="text-center w-100">
{{ useUserPreferenceStore().activeSpace.message }}
</p>
</v-app-bar>
<v-main>
<router-view></router-view>

View File

@@ -131,7 +131,7 @@ async function createObject(object: any, select$: Multiselect) {
</script>
<style src="@vueform/multiselect/themes/default.css"></style>
<style scoped>
<style>
.material-multiselect {
--ms-line-height: 2.5;
--ms-bg: rgba(235, 235, 235, 0.75);
@@ -141,4 +141,8 @@ async function createObject(object: any, select$: Multiselect) {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.multiselect-tag {
background-color: #b98766 !important;
}
</style>

View File

@@ -22,22 +22,80 @@
<v-col cols="12" md="4">
<v-card>
<v-card-title><i class="fa-solid fa-file"></i> {{ $t('Files') }}</v-card-title>
<v-card-text v-if="space.maxFileStorageMb > -1">{{ $n(Math.round(space.fileSizeMb)) }} / {{ space.maxFileStorageMb == 0 ? '' : $n(space.maxFileStorageMb) }} MB</v-card-text>
<v-card-text v-if="space.maxFileStorageMb > -1">{{ $n(Math.round(space.fileSizeMb)) }} / {{ space.maxFileStorageMb == 0 ? '' : $n(space.maxFileStorageMb) }}
MB
</v-card-text>
<v-card-text v-if="space.maxFileStorageMb == -1">{{ $t('file_upload_disabled') }}</v-card-text>
<v-progress-linear v-if="space.maxFileStorageMb > -1" color="success" height="10" :model-value="(space.fileSizeMb / space.maxFileStorageMb) * 100" ></v-progress-linear>
<v-progress-linear v-if="space.maxFileStorageMb > -1" color="success" height="10"
:model-value="(space.fileSizeMb / space.maxFileStorageMb) * 100"></v-progress-linear>
</v-card>
</v-col>
</v-row>
<v-divider class="mt-3 mb-3"></v-divider>
<user-file-field v-model="space.image" :label="$t('Image')"></user-file-field>
<v-alert color="primary" variant="tonal" v-if="useUserPreferenceStore().serverSettings.hosted">
<v-alert-title>
<v-row>
<v-col>
<v-avatar image="../../assets/logo_color.svg" class="me-2"></v-avatar>
{{ $t('ThankYou') }}!
</v-col>
<v-col>
<v-btn color="primary" class="float-right" href="https://tandoor.dev/manage" target="_blank">{{ $t('ManageSubscription') }}</v-btn>
</v-col>
</v-row>
</v-alert-title>
<p class="mt-2">{{ $t('ThanksTextHosted') }}</p>
</v-alert>
<v-alert color="primary" variant="tonal" v-if="!useUserPreferenceStore().serverSettings.hosted">
<v-alert-title>
<v-row>
<v-col>
<v-avatar image="../../assets/logo_color.svg" class="me-2"></v-avatar>
{{ $t('ThankYou') }}!
</v-col>
<v-col>
<v-btn color="primary" class="float-right" href="https://github.com/sponsors/vabene1111" target="_blank"><i class="fa-brands fa-github"></i> GitHub Sponsors
</v-btn>
</v-col>
</v-row>
</v-alert-title>
<p class="mt-2">{{ $t('ThanksTextSelfhosted') }}</p>
</v-alert>
<p class="text-h6 mt-2">{{ $t('Settings') }}</p>
<v-divider class="mb-2"></v-divider>
<user-file-field v-model="space.image" :label="$t('Image')" :hint="$t('CustomImageHelp')" persistent-hint></user-file-field>
<user-file-field v-model="space.navLogo" :label="$t('Logo')" :hint="$t('CustomNavLogoHelp')" persistent-hint></user-file-field>
<v-textarea v-model="space.message" :label="$t('Message')"></v-textarea>
<model-select v-model="space.foodInherit" model="FoodInheritField" mode="tags"></model-select>
<v-btn color="success" @click="updateSpace()" prepend-icon="$save">{{ $t('Save') }}</v-btn>
<p class="text-h6 mt-2">{{ $t('Logo') }}</p>
<v-divider></v-divider>
<p class="text-subtitle-2">{{ $t('CustomLogoHelp') }}</p>
<user-file-field v-model="space.logoColor32" :label="$t('Logo') + ' 32x32px'"></user-file-field>
<user-file-field v-model="space.logoColor128"></user-file-field>
<user-file-field v-model="space.logoColor128" :label="$t('Logo') + ' 128x128px'"></user-file-field>
<user-file-field v-model="space.logoColor144" :label="$t('Logo') + ' 144x144px'"></user-file-field>
<user-file-field v-model="space.logoColor180" :label="$t('Logo') + ' 180x180px'"></user-file-field>
<user-file-field v-model="space.logoColor192" :label="$t('Logo') + ' 192x192px'"></user-file-field>
<user-file-field v-model="space.logoColor512" :label="$t('Logo') + ' 512x512px'"></user-file-field>
<user-file-field v-model="space.logoColorSvg" :label="$t('Logo') + ' SVG'"></user-file-field>
<v-text-field :hint="$t('CustomNavLogoHelp')" persistent-hint></v-text-field>
<v-text-field :hint="$t('CustomNavLogoHelp')" persistent-hint></v-text-field>
<v-btn class="mt-3" color="success" @click="updateSpace()" prepend-icon="$save">{{ $t('Save') }}</v-btn>
<v-btn color="success" @click="updateSpace()" prepend-icon="$save">{{ $t('Save') }}</v-btn>
</v-form>
</template>
@@ -47,8 +105,9 @@
import {useUserPreferenceStore} from "@/stores/UserPreferenceStore";
import {onMounted, ref} from "vue";
import {ApiApi, Space} from "@/openapi";
import {ErrorMessageType, useMessageStore} from "@/stores/MessageStore";
import {ErrorMessageType, PreparedMessage, useMessageStore} from "@/stores/MessageStore";
import UserFileField from "@/components/inputs/UserFileField.vue";
import ModelSelect from "@/components/inputs/ModelSelect.vue";
const space = ref({} as Space)
@@ -61,10 +120,12 @@ onMounted(() => {
})
})
function updateSpace(){
function updateSpace() {
let api = new ApiApi()
api.apiSpacePartialUpdate({id: space.value.id, patchedSpace: space.value}).then(r => {
space.value = r
useUserPreferenceStore().activeSpace = Object.assign({}, space.value)
useMessageStore().addPreparedMessage(PreparedMessage.UPDATE_SUCCESS, space.value)
}).catch(err => {
useMessageStore().addError(ErrorMessageType.UPDATE_ERROR, err)
})

View File

@@ -1,16 +1,20 @@
<template>
<v-row>
<v-col cols="12"></v-col>
<v-col>
<p class="text-h6">{{ $t('YourSpaces') }}</p>
<v-divider></v-divider>
</v-col>
</v-row>
<v-row>
<v-col cols="6" v-for="s in spaces">
<v-card @click="useUserPreferenceStore().switchSpace(s)">
<v-img height="200px" cover :src="(s.image !== undefined) ? s.image?.preview : recipeDefaultImage" :alt="$t('Image')"> </v-img>
<v-card-title>{{ s.name }} <v-chip variant="tonal" density="compact" color="error" v-if="s.id == useUserPreferenceStore().activeSpace.id">{{$t('active')}}</v-chip></v-card-title>
<v-card-subtitle>{{ $t('created_by') }} {{ s.createdBy.displayName }} </v-card-subtitle>
<v-img height="200px" cover :src="(s.image !== undefined) ? s.image?.preview : recipeDefaultImage" :alt="$t('Image')"></v-img>
<v-card-title>{{ s.name }}
<v-chip variant="tonal" density="compact" color="error" v-if="s.id == useUserPreferenceStore().activeSpace.id">{{ $t('active') }}</v-chip>
</v-card-title>
<v-card-subtitle>{{ $t('created_by') }} {{ s.createdBy.displayName }}</v-card-subtitle>
</v-card>
</v-col>
</v-row>

View File

@@ -96,6 +96,7 @@
"Hide_Keywords": "",
"Hide_Recipes": "",
"Hide_as_header": "",
"HostedFreeVersion": "",
"Icon": "",
"IgnoreThis": "",
"Ignore_Shopping": "",
@@ -133,6 +134,7 @@
"Log_Recipe_Cooking": "",
"Make_Header": "",
"Make_Ingredient": "",
"ManageSubscription": "",
"Manage_Books": "",
"Meal_Plan": "",
"Meal_Plan_Days": "",
@@ -256,6 +258,9 @@
"System": "",
"Table_of_Contents": "",
"Text": "",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Time": "",
"Title": "",
"Title_or_Recipe_Required": "",
@@ -266,6 +271,7 @@
"Unit_Alias": "",
"Units": "",
"Unrated": "",
"UpgradeNow": "",
"Url_Import": "",
"Use_Plural_Food_Always": "",
"Use_Plural_Food_Simple": "",

View File

@@ -93,6 +93,7 @@
"Hide_Keywords": "Скриване на ключова дума",
"Hide_Recipes": "Скриване на рецепти",
"Hide_as_header": "Скриване като заглавка",
"HostedFreeVersion": "",
"Icon": "Икона",
"IgnoreThis": "Никога не добавяйте автоматично {food} към пазаруване",
"Ignore_Shopping": "Игнорирайте пазаруването",
@@ -128,6 +129,7 @@
"Log_Recipe_Cooking": "Дневник на Рецепта за готвене",
"Make_Header": "Направете заглавие",
"Make_Ingredient": "Направете съставка",
"ManageSubscription": "",
"Manage_Books": "Управление на Книги",
"Meal_Plan": "План на хранене",
"Meal_Plan_Days": "Бъдещи планове за хранене",
@@ -249,6 +251,9 @@
"System": "",
"Table_of_Contents": "Съдържание",
"Text": "Текст",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Time": "Време",
"Title": "Заглавие",
"Title_or_Recipe_Required": "Изисква се избор на заглавие или рецепта",
@@ -259,6 +264,7 @@
"Unit_Alias": "Псевдоним на единица",
"Units": "Единици",
"Unrated": "Без оценка",
"UpgradeNow": "",
"Url_Import": "Импортиране на URL адрес",
"Use_Plural_Food_Always": "",
"Use_Plural_Food_Simple": "",

View File

@@ -136,6 +136,7 @@
"Hide_Keywords": "Amagueu paraula clau",
"Hide_Recipes": "Amagueu receptes",
"Hide_as_header": "Amagueu com a títol",
"HostedFreeVersion": "",
"Hour": "",
"Hours": "",
"Icon": "",
@@ -182,6 +183,7 @@
"Logo": "",
"Make_Header": "Establiu capçalera",
"Make_Ingredient": "Establiu ingredient",
"ManageSubscription": "",
"Manage_Books": "Gestioneu els llibres",
"Manage_Emails": "",
"Meal_Plan": "Pla d'àpats",
@@ -339,6 +341,9 @@
"System": "",
"Table_of_Contents": "Taula de continguts",
"Text": "",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "",
"Time": "",
"Title": "",
@@ -358,6 +363,7 @@
"Unrated": "",
"Update_Existing_Data": "",
"Updated": "",
"UpgradeNow": "",
"Url_Import": "Importeu des d'url",
"Use_Fractions": "",
"Use_Fractions_Help": "",

View File

@@ -136,6 +136,7 @@
"Hide_Keywords": "Skrýt štítek",
"Hide_Recipes": "Skrýt recept",
"Hide_as_header": "Skryj jako nadpis",
"HostedFreeVersion": "",
"Hour": "Hodina",
"Hours": "Hodiny",
"Icon": "Ikona",
@@ -181,6 +182,7 @@
"Logo": "Logo",
"Make_Header": "Použij jako nadpis",
"Make_Ingredient": "Použij jako ingredienci",
"ManageSubscription": "",
"Manage_Books": "Spravovat kuchařky",
"Manage_Emails": "Spravovat emaily",
"Meal_Plan": "Jídelníček",
@@ -335,6 +337,9 @@
"System": "",
"Table_of_Contents": "Obsah",
"Text": "Text",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Téma",
"Time": "Čas",
"Title": "Název",
@@ -351,6 +356,7 @@
"UnpinnedConfirmation": "{recipe} byl odepnut.",
"Unrated": "Nehodnocené",
"Update_Existing_Data": "Aktualizovat existující data",
"UpgradeNow": "",
"Url_Import": "Import pomocí URL odkazu",
"Use_Fractions": "Použít zlomky",
"Use_Fractions_Help": "Automaticky převézt desetinná čísla na zlomky při prohlížení repetu.",

View File

@@ -124,6 +124,7 @@
"Hide_Keywords": "Skjul nøgleord",
"Hide_Recipes": "Skjul opskrifter",
"Hide_as_header": "Skjul som rubrik",
"HostedFreeVersion": "",
"Hour": "Time",
"Hours": "Timer",
"Icon": "Ikon",
@@ -168,6 +169,7 @@
"Log_Recipe_Cooking": "Noter tilberedning af opskrift",
"Make_Header": "Opret rubrik",
"Make_Ingredient": "Opret ingredient",
"ManageSubscription": "",
"Manage_Books": "Administrer bøger",
"Manage_Emails": "Håndter Emails",
"Meal_Plan": "Madplan",
@@ -313,6 +315,9 @@
"System": "",
"Table_of_Contents": "Indholdsfortegnelse",
"Text": "Tekst",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Tid",
"Title": "Titel",
@@ -329,6 +334,7 @@
"UnpinnedConfirmation": "{recipe} er frigjort.",
"Unrated": "Ikke bedømt",
"Update_Existing_Data": "Opdaterer eksisterende data",
"UpgradeNow": "",
"Url_Import": "Importer fra link",
"Use_Fractions": "Benyt brøker",
"Use_Fractions_Help": "Konverter automatisk decimaler til brøker når du viser en opskrift.",

View File

@@ -138,6 +138,7 @@
"Hide_Keywords": "Schlagwort verstecken",
"Hide_Recipes": "Rezepte verstecken",
"Hide_as_header": "Keine Überschrift",
"HostedFreeVersion": "Sie verwenden die kostenlose Testversion von Tandoor",
"Hour": "Stunde",
"Hours": "Stunden",
"Icon": "Icon",
@@ -184,6 +185,7 @@
"Logo": "Logo",
"Make_Header": "In Überschrift wandeln",
"Make_Ingredient": "In Zutat umwandeln",
"ManageSubscription": "Tarfi verwalten",
"Manage_Books": "Bücher verwalten",
"Manage_Emails": "E-Mails verwalten",
"Meal_Plan": "Speiseplan",
@@ -342,6 +344,9 @@
"System": "System",
"Table_of_Contents": "Inhaltsverzeichnis",
"Text": "Text",
"ThankYou": "Vielen Dank",
"ThanksTextHosted": "Dafür den offiziellen Tandoor Server zu verwenden und damit Open Source Entwicklung zu unterstützen.",
"ThanksTextSelfhosted": "Für die nutzung von Tandoor. Um die zukünftige Entwicklung zu Unterstützen kannst du das Projekt über GitHub Sponsors unterstützen.",
"Theme": "Thema",
"Time": "Zeit",
"Title": "Titel",
@@ -361,6 +366,7 @@
"Unrated": "Unbewertet",
"Update_Existing_Data": "Vorhandene Daten aktualisieren",
"Updated": "Aktualisiert",
"UpgradeNow": "Jetzt Upgraden",
"Url_Import": "URL Import",
"Use_Fractions": "Bruchschreibweise verwenden",
"Use_Fractions_Help": "Nachkommastellen automatisch in Bruchschreibweise konvertieren, wenn ein Rezept angeschaut wird.",

View File

@@ -119,6 +119,7 @@
"Hide_Keywords": "Απόκρυψη λέξης-κλειδί",
"Hide_Recipes": "Απόκρυψη συνταγών",
"Hide_as_header": "Απόκρυψη ως κεφαλίδα",
"HostedFreeVersion": "",
"Hour": "Ώρα",
"Hours": "Ώρες",
"Icon": "Εικονίδιο",
@@ -163,6 +164,7 @@
"Log_Recipe_Cooking": "Καταγραφή εκτέλεσης συνταγής",
"Make_Header": "Δημιουργία κεφαλίδας",
"Make_Ingredient": "Δημιουργία υλικού",
"ManageSubscription": "",
"Manage_Books": "Διαχείριση βιβλίων",
"Manage_Emails": "Διαχείριση email",
"Meal_Plan": "Πρόγραμμα γευμάτων",
@@ -304,6 +306,9 @@
"System": "",
"Table_of_Contents": "Πίνακας περιεχομένων",
"Text": "Κείμενο",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Θέμα",
"Time": "Χρόνος",
"Title": "Τίτλος",
@@ -318,6 +323,7 @@
"UnpinnedConfirmation": "Η συνταγή {recipe} αφαιρέθηκε από τις καρφιτσωμένες.",
"Unrated": "Χωρίς βαθμολογία",
"Update_Existing_Data": "Ενημέρωση υπαρχόντων δεδομένων",
"UpgradeNow": "",
"Url_Import": "Εισαγωγή Url",
"Use_Fractions": "Χρήση κλασμάτων",
"Use_Fractions_Help": "Αυτόματη μετατροπή δεκαδικών σε κλάσματα κατά την προβολή μιας συνταγής.",

View File

@@ -137,6 +137,7 @@
"Hide_Keywords": "Hide Keyword",
"Hide_Recipes": "Hide Recipes",
"Hide_as_header": "Hide as header",
"HostedFreeVersion": "You are using the free version of Tandoor",
"Hour": "Hour",
"Hours": "Hours",
"Icon": "Icon",
@@ -184,6 +185,7 @@
"Logo": "Logo",
"Make_Header": "Make Header",
"Make_Ingredient": "Make Ingredient",
"ManageSubscription": "Manage subscription",
"Manage_Books": "Manage Books",
"Manage_Emails": "Manage Emails",
"Meal_Plan": "Meal Plan",
@@ -343,6 +345,9 @@
"System": "System",
"Table_of_Contents": "Table of Contents",
"Text": "Text",
"ThankYou": "Thank you",
"ThanksTextHosted": "For supporting open source by using the official Tandoor server.",
"ThanksTextSelfhosted": "For using Tandoor. If you want to support future development consider sponsoring the project using GitHub sponsors.",
"Theme": "Theme",
"Time": "Time",
"Title": "Title",
@@ -362,6 +367,7 @@
"Unrated": "Unrated",
"Update_Existing_Data": "Update Existing Data",
"Updated": "Updated",
"UpgradeNow": "Upgrade now",
"Url_Import": "Url Import",
"Use_Fractions": "Use Fractions",
"Use_Fractions_Help": "Automatically convert decimals to fractions when viewing a recipe.",

View File

@@ -137,6 +137,7 @@
"Hide_Keywords": "Esconder palabra clave",
"Hide_Recipes": "Esconder recetas",
"Hide_as_header": "Esconder como titulo",
"HostedFreeVersion": "",
"Hour": "Hora",
"Hours": "Horas",
"Icon": "Icono",
@@ -183,6 +184,7 @@
"Logo": "Logotipo",
"Make_Header": "Establecer Cabecera",
"Make_Ingredient": "Establecer Ingrediente",
"ManageSubscription": "",
"Manage_Books": "Manejar libros",
"Manage_Emails": "Administrar Correos",
"Meal_Plan": "Régimen de comida",
@@ -338,6 +340,9 @@
"System": "",
"Table_of_Contents": "Tabla de contenido",
"Text": "Texto",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Tiempo",
"Title": "Titulo",
@@ -357,6 +362,7 @@
"Unrated": "Sin puntuar",
"Update_Existing_Data": "Actualizar Datos Existentes",
"Updated": "Actualizada",
"UpgradeNow": "",
"Url_Import": "Importar desde url",
"Use_Fractions": "Use fracciones",
"Use_Fractions_Help": "Convertir automáticamente los decimales en fracciones al ver una receta.",

View File

@@ -65,6 +65,7 @@
"Hide_Keywords": "Piilota Avainsana",
"Hide_Recipes": "Piilota Reseptit",
"Hide_as_header": "Piilota otsikko",
"HostedFreeVersion": "",
"Icon": "Kuvake",
"Ignore_Shopping": "Ohita Ostokset",
"Image": "Kuva",
@@ -83,6 +84,7 @@
"Log_Recipe_Cooking": "Kirjaa Reseptin Kokkaus",
"Make_Header": "Valmista Otsikko",
"Make_Ingredient": "Valmista Ainesosa",
"ManageSubscription": "",
"Manage_Books": "Hallinnoi kirjoja",
"Meal_Plan": "Ateriasuunnitelma",
"Meal_Plan_Days": "Tulevat ruokasuunnitelmat",
@@ -172,6 +174,9 @@
"System": "",
"Table_of_Contents": "Sisällysluettelo",
"Text": "Teksi",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Time": "Aika",
"Title": "Otsikko",
"Title_or_Recipe_Required": "Otsikko tai resepti valinta vaadittu",
@@ -179,6 +184,7 @@
"Unit": "Yksikkö",
"Unit_Alias": "Yksikköalias",
"Unrated": "Luokittelematon",
"UpgradeNow": "",
"Url_Import": "URL Tuonti",
"Use_Plural_Food_Always": "",
"Use_Plural_Food_Simple": "",

View File

@@ -136,6 +136,7 @@
"Hide_Keywords": "Cacher le mot-clé",
"Hide_Recipes": "Cacher les recettes",
"Hide_as_header": "Cacher comme en-tête",
"HostedFreeVersion": "",
"Hour": "Heure",
"Hours": "Heures",
"Icon": "Icône",
@@ -182,6 +183,7 @@
"Logo": "Logo",
"Make_Header": "Créer un en-tête",
"Make_Ingredient": "Créer un ingrédient",
"ManageSubscription": "",
"Manage_Books": "Gérer les livres",
"Manage_Emails": "Gérer les e-mails",
"Meal_Plan": "Menu de la semaine",
@@ -338,6 +340,9 @@
"System": "",
"Table_of_Contents": "Table des Matières",
"Text": "Texte",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Thème",
"Time": "Temps",
"Title": "Titre",
@@ -357,6 +362,7 @@
"Unrated": "Non évalué",
"Update_Existing_Data": "Mettre à jour les données existantes",
"Updated": "Mis à jour",
"UpgradeNow": "",
"Url_Import": "Importation de lurl",
"Use_Fractions": "Utiliser les fractions",
"Use_Fractions_Help": "Convertir les décimales en fractions automatiquement lors de la visualisation dune recette.",

View File

@@ -137,6 +137,7 @@
"Hide_Keywords": "הסתרת מילת מפתח",
"Hide_Recipes": "הסתרת מתכונים",
"Hide_as_header": "הסתר בתור כותרת",
"HostedFreeVersion": "",
"Hour": "שעה",
"Hours": "שעות",
"Icon": "צלמית",
@@ -183,6 +184,7 @@
"Logo": "לוגו",
"Make_Header": "הפוך לכותרת",
"Make_Ingredient": "הפוך למרכיב",
"ManageSubscription": "",
"Manage_Books": "נהל ספרים",
"Manage_Emails": "נהל כתובות דואר אלקטרוני",
"Meal_Plan": "תוכנית ארוחה",
@@ -340,6 +342,9 @@
"System": "",
"Table_of_Contents": "תוכן עניינים",
"Text": "כתב",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "נושא",
"Time": "זמן",
"Title": "כותרת",
@@ -359,6 +364,7 @@
"Unrated": "בלתי מדורג",
"Update_Existing_Data": "עדכון מידע קיים",
"Updated": "עודכן",
"UpgradeNow": "",
"Url_Import": "ייבוא מכתובת",
"Use_Fractions": "השתמש בשברים",
"Use_Fractions_Help": "המר אוטומטית מדצמילי לשברים כאשר צופים במתכון.",

View File

@@ -120,6 +120,7 @@
"Hide_Keywords": "Kulcsszó elrejtése",
"Hide_Recipes": "Receptek elrejtése",
"Hide_as_header": "Fejlécként elrejtve",
"HostedFreeVersion": "",
"Hour": "Óra",
"Hours": "Óra",
"Icon": "Ikon",
@@ -164,6 +165,7 @@
"Log_Recipe_Cooking": "Főzés naplózása",
"Make_Header": "Átalakítás címsorra",
"Make_Ingredient": "Összetevő létrehozása",
"ManageSubscription": "",
"Manage_Books": "Könyvek kezelése",
"Manage_Emails": "Levelezés kezelése",
"Meal_Plan": "Menüterv",
@@ -305,6 +307,9 @@
"System": "",
"Table_of_Contents": "Tartalomjegyzék",
"Text": "Szöveg",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Téma",
"Time": "Idő",
"Title": "Cím",
@@ -319,6 +324,7 @@
"Unpin": "Levétel",
"Unrated": "Nem értékelt",
"Update_Existing_Data": "Meglévő adatok frissítése",
"UpgradeNow": "",
"Url_Import": "URL import",
"Use_Fractions": "Tört használata",
"Use_Fractions_Help": "A receptek megtekintésekor a tizedesjegyeket automatikusan törtekre konvertálja.",

View File

@@ -43,6 +43,7 @@
"Hide_Keywords": "Թաքցնել բանալի բառը",
"Hide_Recipes": "Թաքցնել բաղադրատոմսերը",
"Hide_as_header": "Թաքցնել որպես խորագիր",
"HostedFreeVersion": "",
"Import": "Ներմուծել",
"Import_finished": "Ներմուծումն ավարտված է",
"Information": "Տեղեկություն",
@@ -52,6 +53,7 @@
"Load_More": "",
"Log_Cooking": "Գրանցել եփելը",
"Log_Recipe_Cooking": "Գրանցել բաղադրատոմսի օգտագործում",
"ManageSubscription": "",
"Manage_Books": "Կարգավորել Գրքերը",
"Meal_Plan": "Ճաշացուցակ",
"Merge": "Միացնել",
@@ -109,6 +111,10 @@
"Supermarket": "",
"System": "",
"Table_of_Contents": "Բովանդակություն",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"UpgradeNow": "",
"Url_Import": "URL ներմուծում",
"Use_Plural_Food_Always": "",
"Use_Plural_Food_Simple": "",

View File

@@ -108,6 +108,7 @@
"Hide_Keywords": "Sembunyikan Kata Kunci",
"Hide_Recipes": "Sembunyikan Resep",
"Hide_as_header": "Sembunyikan sebagai tajuk",
"HostedFreeVersion": "",
"Hour": "",
"Hours": "",
"Icon": "",
@@ -149,6 +150,7 @@
"Log_Recipe_Cooking": "Log Resep Memasak",
"Make_Header": "Buat Header",
"Make_Ingredient": "Buat bahan",
"ManageSubscription": "",
"Manage_Books": "Kelola Buku",
"Manage_Emails": "",
"Meal_Plan": "rencana makan",
@@ -281,6 +283,9 @@
"System": "",
"Table_of_Contents": "Daftar isi",
"Text": "",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "",
"Time": "",
"Title": "",
@@ -292,6 +297,7 @@
"Unit_Alias": "",
"Units": "",
"Unrated": "",
"UpgradeNow": "",
"Url_Import": "Impor Url",
"Use_Fractions": "",
"Use_Fractions_Help": "",

View File

@@ -136,6 +136,7 @@
"Hide_Keywords": "",
"Hide_Recipes": "",
"Hide_as_header": "",
"HostedFreeVersion": "",
"Hour": "",
"Hours": "",
"Icon": "",
@@ -182,6 +183,7 @@
"Logo": "",
"Make_Header": "",
"Make_Ingredient": "",
"ManageSubscription": "",
"Manage_Books": "",
"Manage_Emails": "",
"Meal_Plan": "",
@@ -338,6 +340,9 @@
"System": "",
"Table_of_Contents": "",
"Text": "",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "",
"Time": "",
"Title": "",
@@ -357,6 +362,7 @@
"Unrated": "",
"Update_Existing_Data": "",
"Updated": "",
"UpgradeNow": "",
"Url_Import": "",
"Use_Fractions": "",
"Use_Fractions_Help": "",

View File

@@ -113,6 +113,7 @@
"Hide_Keywords": "Nascondi parola chiave",
"Hide_Recipes": "Nascondi Ricette",
"Hide_as_header": "Nascondi come intestazione",
"HostedFreeVersion": "",
"Hour": "Ora",
"Hours": "Ore",
"Icon": "Icona",
@@ -154,6 +155,7 @@
"Log_Recipe_Cooking": "Aggiungi a ricette cucinate",
"Make_Header": "Crea Intestazione",
"Make_Ingredient": "Crea Ingrediente",
"ManageSubscription": "",
"Manage_Books": "Gestisci Libri",
"Manage_Emails": "Gestisci email",
"Meal_Plan": "Piano alimentare",
@@ -290,6 +292,9 @@
"System": "",
"Table_of_Contents": "Indice dei contenuti",
"Text": "Testo",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Tempo",
"Title": "Titolo",
@@ -303,6 +308,7 @@
"Unpin": "Non fissare",
"UnpinnedConfirmation": "{recipe} non è più fissata.",
"Unrated": "Senza valutazione",
"UpgradeNow": "",
"Url_Import": "Importa da URL",
"Use_Fractions": "Usa frazioni",
"Use_Fractions_Help": "Converti automaticamente i decimali in frazioni quando apri una ricetta.",

View File

@@ -122,6 +122,7 @@
"Hide_Keywords": "Paslėpti raktažodį",
"Hide_Recipes": "Paslėpti receptus",
"Hide_as_header": "Slėpti kaip antraštę",
"HostedFreeVersion": "",
"Hour": "",
"Hours": "",
"Icon": "",
@@ -166,6 +167,7 @@
"Log_Recipe_Cooking": "Užregistruoti recepto pagaminimą",
"Make_Header": "Padaryti antraštę",
"Make_Ingredient": "Padaryti ingredientą",
"ManageSubscription": "",
"Manage_Books": "Tvarkyti knygas",
"Manage_Emails": "",
"Meal_Plan": "Maisto planas",
@@ -311,6 +313,9 @@
"System": "",
"Table_of_Contents": "Turinys",
"Text": "",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "",
"Time": "",
"Title": "",
@@ -327,6 +332,7 @@
"UnpinnedConfirmation": "",
"Unrated": "",
"Update_Existing_Data": "",
"UpgradeNow": "",
"Url_Import": "URL importavimas",
"Use_Fractions": "",
"Use_Fractions_Help": "",

View File

@@ -117,6 +117,7 @@
"Hide_Keywords": "Skjul nøkkelord",
"Hide_Recipes": "Skjul oppskrifter",
"Hide_as_header": "Skjul overskrift",
"HostedFreeVersion": "",
"Hour": "Time",
"Hours": "Timer",
"Icon": "Ikon",
@@ -161,6 +162,7 @@
"Log_Recipe_Cooking": "Logg oppskriftsbruk",
"Make_Header": "Bruk som overskrift",
"Make_Ingredient": "Bruk som ingrediens",
"ManageSubscription": "",
"Manage_Books": "Administrer bøker",
"Manage_Emails": "Administrer e-poster",
"Meal_Plan": "Måltidsplan",
@@ -302,6 +304,9 @@
"System": "",
"Table_of_Contents": "Innholdsfortegnelse",
"Text": "Tekst",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Tid",
"Title": "Tittel",
@@ -316,6 +321,7 @@
"UnpinnedConfirmation": "{recipe} har blitt løsnet.",
"Unrated": "Urangert",
"Update_Existing_Data": "Oppdater eksisterende data",
"UpgradeNow": "",
"Url_Import": "Importer lenke",
"Use_Fractions": "Bruk deler",
"Use_Fractions_Help": "Automatisk konverter desimaler til deler når du ser på en oppskrift.",

View File

@@ -121,6 +121,7 @@
"Hide_Keywords": "Verberg Etiket",
"Hide_Recipes": "Verberg Recepten",
"Hide_as_header": "Verberg als koptekst",
"HostedFreeVersion": "",
"Hour": "Uur",
"Hours": "Uren",
"Icon": "Icoon",
@@ -165,6 +166,7 @@
"Log_Recipe_Cooking": "Bereiding loggen",
"Make_Header": "Maak Koptekst",
"Make_Ingredient": "Maak Ingrediënt",
"ManageSubscription": "",
"Manage_Books": "Beheer boeken",
"Manage_Emails": "E-mail beheren",
"Meal_Plan": "Maaltijdplan",
@@ -306,6 +308,9 @@
"System": "",
"Table_of_Contents": "Inhoudsopgave",
"Text": "Tekst",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Thema",
"Time": "Tijd",
"Title": "Titel",
@@ -320,6 +325,7 @@
"UnpinnedConfirmation": "{recipe} is losgemaakt.",
"Unrated": "Niet beoordeeld",
"Update_Existing_Data": "Bestaande gegevens bijwerken",
"UpgradeNow": "",
"Url_Import": "Importeer URL",
"Use_Fractions": "Gebruik Kommagetallen",
"Use_Fractions_Help": "Zet decimalen automatisch om naar breuken tijdens het bekijken van een recept.",

View File

@@ -138,6 +138,7 @@
"Hide_Keywords": "Ukryj słowo kluczowe",
"Hide_Recipes": "Ukryj przepisy",
"Hide_as_header": "Ukryj jako nagłówek",
"HostedFreeVersion": "",
"Hour": "Godzina",
"Hours": "Godziny",
"Icon": "Ikona",
@@ -184,6 +185,7 @@
"Logo": "Logo",
"Make_Header": "Utwórz nagłówek",
"Make_Ingredient": "Utwórz składnik",
"ManageSubscription": "",
"Manage_Books": "Zarządzaj książkami",
"Manage_Emails": "Zarządzaj e-mailami",
"Meal_Plan": "Plan posiłków",
@@ -341,6 +343,9 @@
"System": "",
"Table_of_Contents": "Spis treści",
"Text": "Tekst",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Motyw",
"Time": "Czas",
"Title": "Tytuł",
@@ -360,6 +365,7 @@
"Unrated": "Nieoceniony",
"Update_Existing_Data": "Zaktualizuj istniejące dane",
"Updated": "Zaktualizowano",
"UpgradeNow": "",
"Url_Import": "Importowanie URL",
"Use_Fractions": "Użyj ułamków",
"Use_Fractions_Help": "Automatycznie konwertuj ułamki dziesiętne na ułamki zwykłe podczas przeglądania przepisów.",

View File

@@ -95,6 +95,7 @@
"Hide_Keywords": "Esconder palavra-chave",
"Hide_Recipes": "Esconder Receitas",
"Hide_as_header": "Esconder como cabeçalho",
"HostedFreeVersion": "",
"Icon": "Ícone",
"IgnoreThis": "Nunca adicionar automaticamente {food} á lista de compras",
"Ignore_Shopping": "Ignorar compras",
@@ -125,6 +126,7 @@
"Log_Recipe_Cooking": "Registrar Receitas de Culinária",
"Make_Header": "Tornar cabeçalho",
"Make_Ingredient": "Fazer ingrediente",
"ManageSubscription": "",
"Manage_Books": "Gerenciar Livros",
"Meal_Plan": "Plano de Refeição",
"Meal_Plan_Days": "Planos de alimentação futuros",
@@ -243,6 +245,9 @@
"System": "",
"Table_of_Contents": "Tabela de Conteúdos",
"Text": "Texto",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "tempo",
"Title": "Título",
@@ -253,6 +258,7 @@
"Unit_Alias": "Alcunha da unidade",
"Units": "Unidades",
"Unrated": "Sem classificação",
"UpgradeNow": "",
"Url_Import": "Importação de URL",
"Use_Fractions": "Usar frações",
"Use_Fractions_Help": "Converter automaticamente casas decimais para frações enquanto se visualiza uma receita.",

View File

@@ -132,6 +132,7 @@
"Hide_Keywords": "Esconder palavra-chave",
"Hide_Recipes": "Esconder Receitas",
"Hide_as_header": "Esconder cabeçalho",
"HostedFreeVersion": "",
"Hour": "Hora",
"Hours": "Horas",
"Icon": "Ícone",
@@ -176,6 +177,7 @@
"Log_Recipe_Cooking": "Registrar receitas feitas",
"Make_Header": "Criar cabeçalho",
"Make_Ingredient": "Criar Ingrediente",
"ManageSubscription": "",
"Manage_Books": "Gerenciar Livros",
"Manage_Emails": "Gerenciar Emails",
"Meal_Plan": "Plano de Refeição",
@@ -322,6 +324,9 @@
"System": "",
"Table_of_Contents": "Índice",
"Text": "Texto",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Hora",
"Title": "Título",
@@ -335,6 +340,7 @@
"Units": "Unidades",
"Unrated": "Não classificado",
"Update_Existing_Data": "Atualizar Dados Existentes",
"UpgradeNow": "",
"Url_Import": "Importar de URL",
"Use_Fractions": "Usar Frações",
"Use_Fractions_Help": "Automaticamente converter decimais para frações quando visualizando uma receita.",

View File

@@ -115,6 +115,7 @@
"Hide_Keywords": "Ascunde cuvânt cheie",
"Hide_Recipes": "Ascunde rețetele",
"Hide_as_header": "Ascunderea ca antet",
"HostedFreeVersion": "",
"Hour": "Oră",
"Hours": "Ore",
"Icon": "Iconiță",
@@ -158,6 +159,7 @@
"Log_Recipe_Cooking": "Jurnalul rețetelor de pregătire",
"Make_Header": "Creare antet",
"Make_Ingredient": "Create ingredient",
"ManageSubscription": "",
"Manage_Books": "Gestionarea cărților",
"Manage_Emails": "Gestionarea e-mailurilor",
"Meal_Plan": "Plan de alimentare",
@@ -294,6 +296,9 @@
"System": "",
"Table_of_Contents": "Cuprins",
"Text": "Text",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Timp",
"Title": "Titlu",
@@ -307,6 +312,7 @@
"Unpin": "Anularea fixării",
"UnpinnedConfirmation": "Fixarea {recipe} a fost anulată.",
"Unrated": "Neevaluat",
"UpgradeNow": "",
"Url_Import": "Importă URL",
"Use_Fractions": "Folosire fracțiuni",
"Use_Fractions_Help": "Convertiți automat zecimalele în fracții atunci când vizualizați o rețetă.",

View File

@@ -84,6 +84,7 @@
"Hide_Keywords": "Скрыть ключевое слово",
"Hide_Recipes": "Скрыть рецепт",
"Hide_as_header": "Скрыть заголовок",
"HostedFreeVersion": "",
"Icon": "Иконка",
"IgnoreThis": "Никогда не добавлять {food} в список покупок автоматически",
"Ignore_Shopping": "Игнорировать Покупки",
@@ -114,6 +115,7 @@
"Log_Recipe_Cooking": "Журнал приготовления",
"Make_Header": "Создание Заголовка",
"Make_Ingredient": "Создание инградиента",
"ManageSubscription": "",
"Manage_Books": "Управление книгами",
"Meal_Plan": "Планирование блюд",
"Meal_Plan_Days": "Планы питания на будущее",
@@ -225,6 +227,9 @@
"System": "",
"Table_of_Contents": "Содержимое",
"Text": "Текст",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Time": "Время",
"Title": "Заголовок",
"Title_or_Recipe_Required": "Требуется выбор названия или рецепта",
@@ -234,6 +239,7 @@
"Unit_Alias": "Единицы измерения",
"Units": "Единицы",
"Unrated": "Без рейтинга",
"UpgradeNow": "",
"Url_Import": "Импорт гиперссылки",
"User": "Пользователь",
"View": "Просмотр",

View File

@@ -84,6 +84,7 @@
"Hide_Keywords": "Skrij ključno besedo",
"Hide_Recipes": "Skrij recept",
"Hide_as_header": "Skrij kot glavo",
"HostedFreeVersion": "",
"Icon": "Ikona",
"IgnoreThis": "Nikoli avtomatsko ne dodaj {food} v nakup",
"Ignore_Shopping": "Prezri nakup",
@@ -110,6 +111,7 @@
"Log_Recipe_Cooking": "Logiraj recept za kuhanje",
"Make_Header": "Ustvari glavo",
"Make_Ingredient": "Ustvari sestavino",
"ManageSubscription": "",
"Manage_Books": "Upravljaj knjige",
"Meal_Plan": "Načrt obroka",
"Meal_Plan_Days": "Načrt za prihodnje obroke",
@@ -216,6 +218,9 @@
"System": "",
"Table_of_Contents": "Kazalo vsebine",
"Text": "Tekst",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Time": "Čas",
"Title": "Naslov",
"Title_or_Recipe_Required": "Zahtevan je naslov ali izbran recept",
@@ -225,6 +230,7 @@
"Unit_Alias": "Vzdevek enote",
"Unrated": "Neocenjeno",
"Update_Existing_Data": "Posodobitev Obstoječih Podatkov",
"UpgradeNow": "",
"Url_Import": "URL uvoz",
"Use_Metric": "Uporaba Metričnih Enot",
"Use_Plural_Food_Always": "",

View File

@@ -138,6 +138,7 @@
"Hide_Keywords": "Dölj nyckelord",
"Hide_Recipes": "Dölj recept",
"Hide_as_header": "Göm som rubrik",
"HostedFreeVersion": "",
"Hour": "Timme",
"Hours": "Timmar",
"Icon": "Ikon",
@@ -184,6 +185,7 @@
"Logo": "Logga",
"Make_Header": "Skapa rubrik",
"Make_Ingredient": "Skapa ingrediens",
"ManageSubscription": "",
"Manage_Books": "Hantera böcker",
"Manage_Emails": "Hantera mejladresser",
"Meal_Plan": "Måltidsplanering",
@@ -341,6 +343,9 @@
"System": "",
"Table_of_Contents": "Innehållsförteckning",
"Text": "Text",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Tid",
"Title": "Titel",
@@ -360,6 +365,7 @@
"Unrated": "Ej betygsatt",
"Update_Existing_Data": "Uppdatera existerande data",
"Updated": "Uppdaterad",
"UpgradeNow": "",
"Url_Import": "Länk import",
"Use_Fractions": "Använd bråk",
"Use_Fractions_Help": "Konvertera automatiskt decimaler till bråktal när du visar ett recept.",

View File

@@ -137,6 +137,7 @@
"Hide_Keywords": "Anahtar Kelimeyi Gizle",
"Hide_Recipes": "Tarifleri Gizle",
"Hide_as_header": "Başlık olarak gizle",
"HostedFreeVersion": "",
"Hour": "Saat",
"Hours": "Saatler",
"Icon": "Simge",
@@ -183,6 +184,7 @@
"Logo": "Logo",
"Make_Header": "Başlık Oluştur",
"Make_Ingredient": "Malzeme Oluştur",
"ManageSubscription": "",
"Manage_Books": "Kitapları Yönet",
"Manage_Emails": "E-postaları Yönet",
"Meal_Plan": "Yemek Planı",
@@ -340,6 +342,9 @@
"System": "",
"Table_of_Contents": "İçindekiler Tablosu",
"Text": "Metin",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Tema",
"Time": "Zaman",
"Title": "Başlık",
@@ -359,6 +364,7 @@
"Unrated": "Derecelendirilmemiş",
"Update_Existing_Data": "Mevcut Verileri Güncelleyin",
"Updated": "Güncellendi",
"UpgradeNow": "",
"Url_Import": "Url İçeri Aktar",
"Use_Fractions": "Kesirleri Kullan",
"Use_Fractions_Help": "Bir tarifi görüntülerken ondalık sayıları otomatik olarak kesirlere dönüştürün.",

View File

@@ -102,6 +102,7 @@
"Hide_Keywords": "Сховати Ключове слово",
"Hide_Recipes": "Сховати Рецепти",
"Hide_as_header": "",
"HostedFreeVersion": "",
"Icon": "Іконка",
"IgnoreThis": "Ніколи {food} автоматично не додавати до покупок",
"Ignore_Shopping": "Ігнорувати Покупки",
@@ -139,6 +140,7 @@
"Log_Recipe_Cooking": "",
"Make_Header": "",
"Make_Ingredient": "",
"ManageSubscription": "",
"Manage_Books": "Управління Книжкою",
"Meal_Plan": "План Харчування",
"Meal_Plan_Days": "Майбутній план харчування",
@@ -264,6 +266,9 @@
"System": "",
"Table_of_Contents": "Зміст",
"Text": "Текст",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "Тема",
"Time": "Час",
"Title": "Заголовок",
@@ -275,6 +280,7 @@
"Unit_Alias": "",
"Units": "",
"Unrated": "Без рейтингу",
"UpgradeNow": "",
"Url_Import": "Імпорт за посиланням",
"Use_Fractions": "Використовувати дроби",
"Use_Fractions_Help": "Автоматично конвертувати десятки в дроби, коли дивитесь рецепт.",

View File

@@ -133,6 +133,7 @@
"Hide_Keywords": "隐藏关键词",
"Hide_Recipes": "隐藏食谱",
"Hide_as_header": "隐藏标题",
"HostedFreeVersion": "",
"Hour": "小数",
"Hours": "小时",
"Icon": "图标",
@@ -179,6 +180,7 @@
"Logo": "徽标",
"Make_Header": "显示注意事项",
"Make_Ingredient": "制作食材",
"ManageSubscription": "",
"Manage_Books": "管理书籍",
"Manage_Emails": "管理电子邮件",
"Meal_Plan": "用餐计划",
@@ -334,6 +336,9 @@
"System": "",
"Table_of_Contents": "目录",
"Text": "文本",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"Theme": "主题",
"Time": "时间",
"Title": "标题",
@@ -350,6 +355,7 @@
"UnpinnedConfirmation": "{recipe} 已取消固定。",
"Unrated": "未评分",
"Update_Existing_Data": "更新现有数据",
"UpgradeNow": "",
"Url_Import": "导入网址",
"Use_Fractions": "使用分数",
"Use_Fractions_Help": "查看食谱时自动将小数转换为分数。",

View File

@@ -28,6 +28,7 @@
"File": "",
"Files": "",
"Hide_as_header": "隱藏為標題",
"HostedFreeVersion": "",
"Import": "",
"Import_finished": "匯入完成",
"Information": "",
@@ -37,6 +38,7 @@
"Load_More": "",
"Log_Cooking": "",
"Log_Recipe_Cooking": "記錄食譜烹飪",
"ManageSubscription": "",
"Manage_Books": "管理書籍",
"Meal_Plan": "膳食計劃",
"New": "",
@@ -79,6 +81,10 @@
"Supermarket": "",
"System": "",
"Table_of_Contents": "目錄",
"ThankYou": "",
"ThanksTextHosted": "",
"ThanksTextSelfhosted": "",
"UpgradeNow": "",
"Url_Import": "",
"Use_Plural_Food_Always": "",
"Use_Plural_Food_Simple": "",

View File

@@ -1,4 +1,14 @@
import {ApiApi, Keyword as IKeyword, Food as IFood, RecipeOverview as IRecipeOverview, Recipe as IRecipe, Unit as IUnit, MealType as IMealType, User as IUser} from "@/openapi";
import {
ApiApi,
Keyword as IKeyword,
Food as IFood,
RecipeOverview as IRecipeOverview,
Recipe as IRecipe,
Unit as IUnit,
MealType as IMealType,
User as IUser,
FoodInheritField as IFoodInheritField,
} from "@/openapi";
export function getModelFromStr(model_name: String) {
switch (model_name.toLowerCase()) {
@@ -20,6 +30,9 @@ export function getModelFromStr(model_name: String) {
case 'user': {
return new User
}
case 'foodinheritfield': {
return new FoodInheritField
}
default: {
throw Error(`Invalid Model ${model_name}, did you forget to register it in Models.ts?`)
}
@@ -171,4 +184,22 @@ export class User extends GenericModel<IUser> {
}
})
}
}
export class FoodInheritField extends GenericModel<IFoodInheritField> {
canCreate(): boolean {
return false
}
list(query: string) {
const api = new ApiApi()
return api.apiFoodInheritFieldList({}).then(r => {
if (r) {
return r
} else {
return []
}
})
}
}