2021-07-31 22:00:28 +00:00
|
|
|
<template>
|
2021-08-02 03:24:47 +00:00
|
|
|
<v-container>
|
2021-08-04 05:38:45 +00:00
|
|
|
<RecipeCardSection
|
|
|
|
:icon="$globals.icons.primary"
|
|
|
|
:title="$t('general.recent')"
|
2021-08-09 04:52:44 +00:00
|
|
|
:recipes="recentRecipes"
|
2021-08-04 05:38:45 +00:00
|
|
|
></RecipeCardSection>
|
2021-08-02 03:24:47 +00:00
|
|
|
</v-container>
|
2021-07-31 22:00:28 +00:00
|
|
|
</template>
|
2021-07-31 23:07:19 +00:00
|
|
|
|
|
|
|
<script lang="ts">
|
2021-08-09 04:52:44 +00:00
|
|
|
import { defineComponent } from "@nuxtjs/composition-api";
|
2021-08-02 03:24:47 +00:00
|
|
|
import RecipeCardSection from "~/components/Domain/Recipe/RecipeCardSection.vue";
|
2021-08-09 04:52:44 +00:00
|
|
|
import { useRecipes, recentRecipes } from "~/composables/use-recipes";
|
2021-08-10 00:19:23 +00:00
|
|
|
import { useStaticRoutes } from "~/composables/api";
|
2021-07-31 23:07:19 +00:00
|
|
|
|
|
|
|
export default defineComponent({
|
2021-08-02 03:24:47 +00:00
|
|
|
components: { RecipeCardSection },
|
2021-07-31 23:07:19 +00:00
|
|
|
setup() {
|
2021-08-09 04:52:44 +00:00
|
|
|
const { assignSorted } = useRecipes(false);
|
2021-08-10 00:19:23 +00:00
|
|
|
useStaticRoutes();
|
2021-08-09 04:52:44 +00:00
|
|
|
return { recentRecipes, assignSorted };
|
2021-07-31 23:07:19 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
2021-08-02 03:24:47 +00:00
|
|
|
|