[CLEAR-34] Add missing files
This commit is contained in:
parent
dd32ecd6c0
commit
84092c94dd
21
front/pages/recipes/_id.vue
Normal file
21
front/pages/recipes/_id.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<ShowRecipe style="width: 60%"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ShowRecipe from "../../components/Recipes/ShowRecipe";
|
||||
|
||||
export default {
|
||||
components: {ShowRecipe},
|
||||
validate({params}) {
|
||||
return /^\d+$/.test(params.id)
|
||||
},
|
||||
name: '_id',
|
||||
auth: false
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
28
front/pages/recipes/index.vue
Normal file
28
front/pages/recipes/index.vue
Normal file
@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div style="width: 100%">
|
||||
<Row type="flex" justify="center">
|
||||
<AddRecipeModal style="margin-bottom: 20px"/>
|
||||
</Row>
|
||||
<Row type="flex" justify="center">
|
||||
<SearchRecipe style="width: 80%"/>
|
||||
</Row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AddRecipeModal from "../../components/Recipes/AddRecipeModal";
|
||||
import SearchRecipe from "../../components/Recipes/SearchRecipe";
|
||||
|
||||
export default {
|
||||
name: 'recipes',
|
||||
auth: false,
|
||||
components: {
|
||||
AddRecipeModal,
|
||||
SearchRecipe
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user