chore: update android gradle versionCode
This commit is contained in:
@@ -7,8 +7,8 @@ android {
|
|||||||
applicationId "cn.yunyoujun.cook"
|
applicationId "cn.yunyoujun.cook"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 1
|
versionCode 2
|
||||||
versionName "1.0"
|
versionName "1.0.1"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
aaptOptions {
|
aaptOptions {
|
||||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import { useRegisterSW } from 'virtual:pwa-register/vue'
|
|
||||||
|
|
||||||
const {
|
|
||||||
offlineReady,
|
|
||||||
needRefresh,
|
|
||||||
updateServiceWorker,
|
|
||||||
} = useRegisterSW()
|
|
||||||
|
|
||||||
async function close() {
|
|
||||||
offlineReady.value = false
|
|
||||||
needRefresh.value = false
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div
|
|
||||||
v-if="offlineReady || needRefresh"
|
|
||||||
class="pwa-toast rounded shadow-lg transition hover:shadow-md"
|
|
||||||
border="~ stone-200 dark:stone-600"
|
|
||||||
text="center"
|
|
||||||
p="4"
|
|
||||||
m="4"
|
|
||||||
bg="white dark:dark-800"
|
|
||||||
role="alert"
|
|
||||||
>
|
|
||||||
<div class="message" m="b-4">
|
|
||||||
<span v-if="offlineReady">
|
|
||||||
可以离线使用啦!
|
|
||||||
</span>
|
|
||||||
<span v-else>
|
|
||||||
更新了新的内容!
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
v-if="needRefresh"
|
|
||||||
m="x-2" p="x-4 y-1" text="sm white"
|
|
||||||
class="rounded shadow transition active:shadow-md"
|
|
||||||
bg="green-500 active:green-600"
|
|
||||||
@click="updateServiceWorker()"
|
|
||||||
>
|
|
||||||
更新
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
m="x-2" p="x-4 y-1" text="sm"
|
|
||||||
class="rounded shadow transition active:shadow-md"
|
|
||||||
border="~ stone-200 dark:stone-600"
|
|
||||||
bg="active:(white opacity-20)"
|
|
||||||
@click="close"
|
|
||||||
>
|
|
||||||
关闭
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.pwa-toast {
|
|
||||||
position: fixed;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"release": "bumpp",
|
"release": "bumpp",
|
||||||
"sync": "cap sync",
|
"sync": "cap sync",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"typecheck": "vue-tsc --noEmit"
|
"typecheck": "nuxt typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@capacitor/app": "7.1.0",
|
"@capacitor/app": "7.1.0",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
"@pinia/nuxt": "^0.11.2",
|
"@pinia/nuxt": "^0.11.2",
|
||||||
"@pinia/testing": "^1.0.2",
|
"@pinia/testing": "^1.0.2",
|
||||||
"@types/node": "^24.7.0",
|
"@types/node": "^24.7.0",
|
||||||
"@unhead/vue": "^2.0.17",
|
"@unhead/vue": "^2.0.18",
|
||||||
"@unocss/eslint-config": "^66.5.2",
|
"@unocss/eslint-config": "^66.5.2",
|
||||||
"@unocss/nuxt": "^66.5.2",
|
"@unocss/nuxt": "^66.5.2",
|
||||||
"@vite-pwa/nuxt": "^1.0.4",
|
"@vite-pwa/nuxt": "^1.0.4",
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"unocss": "^66.5.2",
|
"unocss": "^66.5.2",
|
||||||
"vitest": "^3.2.4",
|
"vitest": "^3.2.4",
|
||||||
"vue-tsc": "^3.1.0"
|
"vue-tsc": "^3.1.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"unplugin": "^2.3.10",
|
"unplugin": "^2.3.10",
|
||||||
|
|||||||
30
pnpm-lock.yaml
generated
30
pnpm-lock.yaml
generated
@@ -81,7 +81,7 @@ importers:
|
|||||||
version: 1.9.0(@typescript-eslint/utils@8.45.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.3))(@vue/compiler-sfc@3.5.22)(eslint-plugin-format@1.0.2(eslint@9.37.0(jiti@2.6.1)))(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(typescript@5.9.3)(vite@7.1.9(@types/node@24.7.0)(jiti@2.6.1)(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1))
|
version: 1.9.0(@typescript-eslint/utils@8.45.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.3))(@vue/compiler-sfc@3.5.22)(eslint-plugin-format@1.0.2(eslint@9.37.0(jiti@2.6.1)))(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(typescript@5.9.3)(vite@7.1.9(@types/node@24.7.0)(jiti@2.6.1)(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1))
|
||||||
'@nuxt/scripts':
|
'@nuxt/scripts':
|
||||||
specifier: ^0.12.1
|
specifier: ^0.12.1
|
||||||
version: 0.12.1(@unhead/vue@2.0.17(vue@3.5.22(typescript@5.9.3)))(db0@0.3.4)(ioredis@5.8.1)(magicast@0.3.5)(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3))
|
version: 0.12.1(@unhead/vue@2.0.18(vue@3.5.22(typescript@5.9.3)))(db0@0.3.4)(ioredis@5.8.1)(magicast@0.3.5)(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3))
|
||||||
'@nuxt/test-utils':
|
'@nuxt/test-utils':
|
||||||
specifier: ^3.19.2
|
specifier: ^3.19.2
|
||||||
version: 3.19.2(@vue/test-utils@2.4.6)(jsdom@27.0.0(postcss@8.5.6))(magicast@0.3.5)(typescript@5.9.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.7.0)(jiti@2.6.1)(jsdom@27.0.0(postcss@8.5.6))(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1))
|
version: 3.19.2(@vue/test-utils@2.4.6)(jsdom@27.0.0(postcss@8.5.6))(magicast@0.3.5)(typescript@5.9.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.7.0)(jiti@2.6.1)(jsdom@27.0.0(postcss@8.5.6))(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1))
|
||||||
@@ -101,8 +101,8 @@ importers:
|
|||||||
specifier: ^24.7.0
|
specifier: ^24.7.0
|
||||||
version: 24.7.0
|
version: 24.7.0
|
||||||
'@unhead/vue':
|
'@unhead/vue':
|
||||||
specifier: ^2.0.17
|
specifier: ^2.0.18
|
||||||
version: 2.0.17(vue@3.5.22(typescript@5.9.3))
|
version: 2.0.18(vue@3.5.22(typescript@5.9.3))
|
||||||
'@unocss/eslint-config':
|
'@unocss/eslint-config':
|
||||||
specifier: ^66.5.2
|
specifier: ^66.5.2
|
||||||
version: 66.5.2(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.3)
|
version: 66.5.2(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
@@ -176,7 +176,7 @@ importers:
|
|||||||
specifier: ^3.2.4
|
specifier: ^3.2.4
|
||||||
version: 3.2.4(@types/debug@4.1.12)(@types/node@24.7.0)(jiti@2.6.1)(jsdom@27.0.0(postcss@8.5.6))(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
|
version: 3.2.4(@types/debug@4.1.12)(@types/node@24.7.0)(jiti@2.6.1)(jsdom@27.0.0(postcss@8.5.6))(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
|
||||||
vue-tsc:
|
vue-tsc:
|
||||||
specifier: ^3.1.0
|
specifier: ^3.1.1
|
||||||
version: 3.1.1(typescript@5.9.3)
|
version: 3.1.1(typescript@5.9.3)
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
@@ -2432,8 +2432,8 @@ packages:
|
|||||||
'@ungap/structured-clone@1.3.0':
|
'@ungap/structured-clone@1.3.0':
|
||||||
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
|
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
|
||||||
|
|
||||||
'@unhead/vue@2.0.17':
|
'@unhead/vue@2.0.18':
|
||||||
resolution: {integrity: sha512-jzmGZYeMAhETV6qfetmLbZzUjjx1TjdNvFSobeFZb73D7dwD9wl/nOAx36qq+TvjZsLJdF5PQWToz2oDGAUqCg==}
|
resolution: {integrity: sha512-2i3AWz+0G5eS11iJPDKXc8u+rciI63oT3uh/bYzehLiC688IQ2cCnthu0rvIv2sLB+8LKIj1jv8JIHZZTMnJOg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vue: '>=3.5.18'
|
vue: '>=3.5.18'
|
||||||
|
|
||||||
@@ -6911,8 +6911,8 @@ packages:
|
|||||||
unenv@2.0.0-rc.21:
|
unenv@2.0.0-rc.21:
|
||||||
resolution: {integrity: sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A==}
|
resolution: {integrity: sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A==}
|
||||||
|
|
||||||
unhead@2.0.17:
|
unhead@2.0.18:
|
||||||
resolution: {integrity: sha512-xX3PCtxaE80khRZobyWCVxeFF88/Tg9eJDcJWY9us727nsTC7C449B8BUfVBmiF2+3LjPcmqeoB2iuMs0U4oJQ==}
|
resolution: {integrity: sha512-WisN0JGW+ydCpWnarD70mc9VP2m6zWX8ebW2ZpHm/gpishkdyBQskZvd8cesfF8JSL/P8rIhEm9d256njnyPgA==}
|
||||||
|
|
||||||
unicode-canonical-property-names-ecmascript@2.0.1:
|
unicode-canonical-property-names-ecmascript@2.0.1:
|
||||||
resolution: {integrity: sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==}
|
resolution: {integrity: sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==}
|
||||||
@@ -9329,10 +9329,10 @@ snapshots:
|
|||||||
std-env: 3.9.0
|
std-env: 3.9.0
|
||||||
ufo: 1.6.1
|
ufo: 1.6.1
|
||||||
|
|
||||||
'@nuxt/scripts@0.12.1(@unhead/vue@2.0.17(vue@3.5.22(typescript@5.9.3)))(db0@0.3.4)(ioredis@5.8.1)(magicast@0.3.5)(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3))':
|
'@nuxt/scripts@0.12.1(@unhead/vue@2.0.18(vue@3.5.22(typescript@5.9.3)))(db0@0.3.4)(ioredis@5.8.1)(magicast@0.3.5)(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@nuxt/kit': 4.1.3(magicast@0.3.5)
|
'@nuxt/kit': 4.1.3(magicast@0.3.5)
|
||||||
'@unhead/vue': 2.0.17(vue@3.5.22(typescript@5.9.3))
|
'@unhead/vue': 2.0.18(vue@3.5.22(typescript@5.9.3))
|
||||||
'@vueuse/core': 13.9.0(vue@3.5.22(typescript@5.9.3))
|
'@vueuse/core': 13.9.0(vue@3.5.22(typescript@5.9.3))
|
||||||
consola: 3.4.2
|
consola: 3.4.2
|
||||||
defu: 6.1.4
|
defu: 6.1.4
|
||||||
@@ -9497,7 +9497,7 @@ snapshots:
|
|||||||
'@ionic/vue': 8.7.5(@stencil/core@4.38.0)(vue-router@4.5.1(vue@3.5.22(typescript@5.9.3)))(vue@3.5.22(typescript@5.9.3))
|
'@ionic/vue': 8.7.5(@stencil/core@4.38.0)(vue-router@4.5.1(vue@3.5.22(typescript@5.9.3)))(vue@3.5.22(typescript@5.9.3))
|
||||||
'@ionic/vue-router': 8.7.5(@stencil/core@4.38.0)(vue-router@4.5.1(vue@3.5.22(typescript@5.9.3)))(vue@3.5.22(typescript@5.9.3))
|
'@ionic/vue-router': 8.7.5(@stencil/core@4.38.0)(vue-router@4.5.1(vue@3.5.22(typescript@5.9.3)))(vue@3.5.22(typescript@5.9.3))
|
||||||
'@nuxt/kit': 4.1.3(magicast@0.3.5)
|
'@nuxt/kit': 4.1.3(magicast@0.3.5)
|
||||||
'@unhead/vue': 2.0.17(vue@3.5.22(typescript@5.9.3))
|
'@unhead/vue': 2.0.18(vue@3.5.22(typescript@5.9.3))
|
||||||
ionicons: 8.0.13
|
ionicons: 8.0.13
|
||||||
pathe: 2.0.3
|
pathe: 2.0.3
|
||||||
pkg-types: 2.3.0
|
pkg-types: 2.3.0
|
||||||
@@ -10261,10 +10261,10 @@ snapshots:
|
|||||||
|
|
||||||
'@ungap/structured-clone@1.3.0': {}
|
'@ungap/structured-clone@1.3.0': {}
|
||||||
|
|
||||||
'@unhead/vue@2.0.17(vue@3.5.22(typescript@5.9.3))':
|
'@unhead/vue@2.0.18(vue@3.5.22(typescript@5.9.3))':
|
||||||
dependencies:
|
dependencies:
|
||||||
hookable: 5.5.3
|
hookable: 5.5.3
|
||||||
unhead: 2.0.17
|
unhead: 2.0.18
|
||||||
vue: 3.5.22(typescript@5.9.3)
|
vue: 3.5.22(typescript@5.9.3)
|
||||||
|
|
||||||
'@unocss/astro@66.5.2(vite@7.1.9(@types/node@24.7.0)(jiti@2.6.1)(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1))':
|
'@unocss/astro@66.5.2(vite@7.1.9(@types/node@24.7.0)(jiti@2.6.1)(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1))':
|
||||||
@@ -13955,7 +13955,7 @@ snapshots:
|
|||||||
'@nuxt/schema': 4.1.3
|
'@nuxt/schema': 4.1.3
|
||||||
'@nuxt/telemetry': 2.6.6(magicast@0.3.5)
|
'@nuxt/telemetry': 2.6.6(magicast@0.3.5)
|
||||||
'@nuxt/vite-builder': 4.1.3(@types/node@24.7.0)(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.52.4)(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(typescript@5.9.3)(vue-tsc@3.1.1(typescript@5.9.3))(vue@3.5.22(typescript@5.9.3))(yaml@2.8.1)
|
'@nuxt/vite-builder': 4.1.3(@types/node@24.7.0)(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.52.4)(sass@1.93.2)(terser@5.44.0)(tsx@4.20.6)(typescript@5.9.3)(vue-tsc@3.1.1(typescript@5.9.3))(vue@3.5.22(typescript@5.9.3))(yaml@2.8.1)
|
||||||
'@unhead/vue': 2.0.17(vue@3.5.22(typescript@5.9.3))
|
'@unhead/vue': 2.0.18(vue@3.5.22(typescript@5.9.3))
|
||||||
'@vue/shared': 3.5.22
|
'@vue/shared': 3.5.22
|
||||||
c12: 3.3.0(magicast@0.3.5)
|
c12: 3.3.0(magicast@0.3.5)
|
||||||
chokidar: 4.0.3
|
chokidar: 4.0.3
|
||||||
@@ -15597,7 +15597,7 @@ snapshots:
|
|||||||
pathe: 2.0.3
|
pathe: 2.0.3
|
||||||
ufo: 1.6.1
|
ufo: 1.6.1
|
||||||
|
|
||||||
unhead@2.0.17:
|
unhead@2.0.18:
|
||||||
dependencies:
|
dependencies:
|
||||||
hookable: 5.5.3
|
hookable: 5.5.3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user