very basic editor

This commit is contained in:
vabene1111
2024-03-02 08:52:29 +01:00
parent 8f216a2791
commit 76eecedfb5
4 changed files with 153 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import ShoppingListPage from "@/pages/ShoppingListPage.vue";
import RecipeSearchPage from "@/pages/RecipeSearchPage.vue";
import RecipeViewPage from "@/pages/RecipeViewPage.vue";
import luxonPlugin from "@/plugins/luxonPlugin";
import RecipeEditPage from "@/pages/RecipeEditPage.vue";
const routes = [
{path: '/', redirect: '/search', name: 'index'},
@@ -19,7 +20,7 @@ const routes = [
{path: '/mealplan', component: ShoppingListPage, name: 'view_mealplan'},
{path: '/books', component: ShoppingListPage, name: 'view_books'},
{path: '/recipe/:id', component: RecipeViewPage, name: 'view_recipe', props: true},
{path: '/recipe/edit/:id', component: RecipeViewPage, name: 'edit_recipe', props: true},
{path: '/recipe/edit/:recipe_id', component: RecipeEditPage, name: 'edit_recipe', props: true},
]
const router = createRouter({