feat: add apps discover tab
This commit is contained in:
@@ -16,6 +16,7 @@ export const links = {
|
||||
* changelog
|
||||
*/
|
||||
changelog: 'https://docs.yunyoujun.cn/projects/cook/changelog',
|
||||
releaseNotes: 'https://github.com/YunYouJun/cook/releases',
|
||||
|
||||
/**
|
||||
* author
|
||||
|
||||
@@ -12,6 +12,10 @@ useHead({
|
||||
<ion-page flex flex-col>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start">
|
||||
<ion-back-button default-href="/apps" />
|
||||
</ion-buttons>
|
||||
|
||||
<ion-title>
|
||||
今天吃什么
|
||||
</ion-title>
|
||||
@@ -18,12 +18,6 @@ import { links } from '~/constants'
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<ion-list :inset="true">
|
||||
<ion-item :href="links.changelog" target="_blank">
|
||||
<ion-label>开发日志</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
|
||||
<ion-list-header>功能日志</ion-list-header>
|
||||
<ion-list :inset="true">
|
||||
<ion-item>
|
||||
@@ -35,6 +29,15 @@ import { links } from '~/constants'
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
|
||||
<ion-list :inset="true">
|
||||
<ion-item :href="links.changelog" target="_blank">
|
||||
<ion-label>开发日志</ion-label>
|
||||
</ion-item>
|
||||
<ion-item :href="links.releaseNotes" target="_blank">
|
||||
<ion-label>Release Notes</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</ion-content>
|
||||
</ion-page>
|
||||
</template>
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
<template>
|
||||
<div>
|
||||
新建 Recipe
|
||||
</div>
|
||||
<ion-page>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start">
|
||||
<ion-back-button default-href="/my" />
|
||||
</ion-buttons>
|
||||
<ion-title>添加菜谱</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
asdad
|
||||
</ion-content>
|
||||
</ion-page>
|
||||
</template>
|
||||
|
||||
@@ -47,9 +47,9 @@ onMounted(() => {
|
||||
<ion-label>菜谱</ion-label>
|
||||
</IonTabButton>
|
||||
|
||||
<IonTabButton tab="random" href="/random">
|
||||
<IonTabButton tab="apps" href="/apps">
|
||||
<ion-icon :icon="ioniconsRestaurantOutline" />
|
||||
<ion-label>吃什么</ion-label>
|
||||
<ion-label>发现</ion-label>
|
||||
</IonTabButton>
|
||||
|
||||
<!-- <IonTabButton tab="tab3" href="/tabs/tab3">
|
||||
|
||||
48
app/pages/tabs/apps/index.vue
Normal file
48
app/pages/tabs/apps/index.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<script setup lang="ts">
|
||||
import { links } from '~/constants'
|
||||
|
||||
definePageMeta({
|
||||
alias: ['/apps'],
|
||||
})
|
||||
|
||||
useHead({
|
||||
title: '发现',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ion-page flex flex-col>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>
|
||||
发现
|
||||
</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content>
|
||||
<ion-list :inset="true">
|
||||
<ion-item router-link="/apps/random">
|
||||
<ion-icon slot="start" :icon="ioniconsShuffleOutline" />
|
||||
<ion-label>
|
||||
今天吃什么
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<!-- <ion-item router-link="/apps/random">
|
||||
<ion-icon slot="start" :icon="ioniconsChatboxEllipsesOutline" />
|
||||
<ion-label>
|
||||
AI 菜谱
|
||||
</ion-label>
|
||||
</ion-item> -->
|
||||
</ion-list>
|
||||
|
||||
<ion-list :inset="true">
|
||||
<ion-item :href="links.githubIssue" target="_blank">
|
||||
<ion-label>
|
||||
新功能建议
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</ion-content>
|
||||
</ion-page>
|
||||
</template>
|
||||
@@ -30,12 +30,6 @@ const rStore = useRecipeStore()
|
||||
</span>
|
||||
</button>
|
||||
</ion-title>
|
||||
|
||||
<ion-buttons slot="end">
|
||||
<ion-button router-link="/library" title="菜谱库">
|
||||
<ion-icon slot="icon-only" :icon="ioniconsSearchOutline" />
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content ref="ionContentRef" class="text-center">
|
||||
|
||||
@@ -90,6 +90,12 @@ function onToggleFavorite(item: DbRecipeItem) {
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>菜谱列表</ion-title>
|
||||
|
||||
<ion-buttons slot="end">
|
||||
<ion-button title="添加菜谱" router-link="/recipes/new">
|
||||
<ion-icon slot="icon-only" :icon="ioniconsAddCircleOutline" />
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
|
||||
<ion-toolbar>
|
||||
|
||||
Reference in New Issue
Block a user