mealie/frontend/pages/index.vue

26 lines
707 B
Vue
Raw Normal View History

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