4 <p class="title is-4">{{ item.name }}</p>
5 <p class="subtitle is-6">
6 <template v-if="item.subtitle">
9 <template v-else-if="meal"> Today: {{ meal.name }} </template>
10 <template v-else-if="stats">
11 happily keeping {{ stats.totalRecipes }} recipes organized
19 import service from "@/mixins/service.js";
20 import Generic from "./Generic.vue";
39 fetchStatus: async function () {
41 Authorization: "Bearer " + this.item.apikey,
42 Accept: "application/json",
45 if (this.item.subtitle != null) return;
47 this.meal = await this.fetch("/api/meal-plans/today/", { headers }).catch(
50 this.stats = await this.fetch("/api/debug/statistics/", {
52 }).catch((e) => console.log(e));