chore: 导入清理前的完整工程状态(含 Capacitor 原生壳,作为回滚备份点)

This commit is contained in:
toor
2026-10-21 11:50:10 +08:00
committed by trae-solo-agent
commit 8ded87a3a8
389 changed files with 52242 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
<script setup lang="ts">
// import { installPrompt } from './utils/pwa'
import { isClient } from '@vueuse/core'
import { useIndexedDB } from '~/composables/db'
import { appName } from '~/constants'
// https://nuxt.com/docs/api/composables/use-head
useHead({
title: appName,
meta: [
{
name: 'description',
content: '好的,今天我们来做菜!',
},
],
})
const indexedDB = useIndexedDB()
const { isDark, setDarkMode, setLightMode } = useDarkMode()
onMounted(() => {
// init dark mode
if (isClient) {
if (isDark.value) {
setDarkMode()
}
else {
setLightMode()
}
indexedDB.init()
}
// installPrompt()
})
</script>
<template>
<!-- <VitePwaManifest /> -->
<!-- https://ionic.nuxtjs.org/cookbook/customising-app-vue -->
<!-- <NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout> -->
<ion-app>
<ion-router-outlet />
</ion-app>
</template>