diff --git a/README.md b/README.md index 8eed456..da12ef7 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ 本项目初衷是方便特殊时期隔离在家而材料有限的小伙伴,因此菜谱材料会尽量限制在特定范围内。 +更多可参见 [来做菜 | 关于](https://cook.yunyoujun.cn/about)。 + ### Features 本项目支持 PWA,使用浏览器打开时,可将其添加到主屏幕以获得近原生 APP 的体验。 diff --git a/package.json b/package.json index 8bbec9e..20dbff7 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "pinia": "^2.0.13", "prism-theme-vars": "^0.2.2", "vue": "^3.2.33", - "vue-about-me": "^1.2.6", + "vue-about-me": "^1.2.7", "vue-demi": "^0.12.5", "vue-router": "^4.0.14" }, @@ -48,10 +48,10 @@ "sass": "^1.51.0", "star-markdown-css": "^0.3.3", "typescript": "^4.6.3", - "unocss": "^0.31.16", + "unocss": "^0.31.17", "unplugin-auto-import": "^0.7.1", "unplugin-vue-components": "^0.19.3", - "vite": "^2.9.5", + "vite": "^2.9.6", "vite-plugin-inspect": "^0.5.0", "vite-plugin-md": "^0.13.0", "vite-plugin-pages": "^0.23.0", @@ -59,6 +59,7 @@ "vite-plugin-vue-layouts": "^0.6.0", "vite-ssg": "^0.19.2", "vite-ssg-sitemap": "^0.2.4", + "vue-toastification": "^2.0.0-rc.5", "vue-tsc": "^0.34.10" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8d2d384..1e6f2fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,10 +28,10 @@ specifiers: sass: ^1.51.0 star-markdown-css: ^0.3.3 typescript: ^4.6.3 - unocss: ^0.31.16 + unocss: ^0.31.17 unplugin-auto-import: ^0.7.1 unplugin-vue-components: ^0.19.3 - vite: ^2.9.5 + vite: ^2.9.6 vite-plugin-inspect: ^0.5.0 vite-plugin-md: ^0.13.0 vite-plugin-pages: ^0.23.0 @@ -40,9 +40,10 @@ specifiers: vite-ssg: ^0.19.2 vite-ssg-sitemap: ^0.2.4 vue: ^3.2.33 - vue-about-me: ^1.2.6 + vue-about-me: ^1.2.7 vue-demi: ^0.12.5 vue-router: ^4.0.14 + vue-toastification: ^2.0.0-rc.5 vue-tsc: ^0.34.10 dependencies: @@ -53,7 +54,7 @@ dependencies: pinia: 2.0.13_typescript@4.6.3+vue@3.2.33 prism-theme-vars: 0.2.2 vue: 3.2.33 - vue-about-me: 1.2.6 + vue-about-me: 1.2.7 vue-demi: 0.12.5_vue@3.2.33 vue-router: 4.0.14_vue@3.2.33 @@ -66,7 +67,7 @@ devDependencies: '@iconify-json/ri': 1.1.1 '@types/markdown-it-link-attributes': 3.0.1 '@types/nprogress': 0.2.0 - '@vitejs/plugin-vue': 2.3.1_vite@2.9.5+vue@3.2.33 + '@vitejs/plugin-vue': 2.3.1_vite@2.9.6+vue@3.2.33 consola: 2.15.3 critters: 0.0.16 cross-env: 7.0.3 @@ -79,17 +80,18 @@ devDependencies: sass: 1.51.0 star-markdown-css: 0.3.3 typescript: 4.6.3 - unocss: 0.31.16_vite@2.9.5 - unplugin-auto-import: 0.7.1_@vueuse+core@8.3.1+vite@2.9.5 - unplugin-vue-components: 0.19.3_vite@2.9.5+vue@3.2.33 - vite: 2.9.5_sass@1.51.0 - vite-plugin-inspect: 0.5.0_vite@2.9.5 - vite-plugin-md: 0.13.0_vite@2.9.5 - vite-plugin-pages: 0.23.0_vite@2.9.5 - vite-plugin-pwa: 0.12.0_vite@2.9.5 - vite-plugin-vue-layouts: 0.6.0_c6669f7f6a2bb1e4cd0ce207bade55c6 - vite-ssg: 0.19.2_eacfe4bd4e3401e3e0916bc5279e5ce7 + unocss: 0.31.17_vite@2.9.6 + unplugin-auto-import: 0.7.1_@vueuse+core@8.3.1+vite@2.9.6 + unplugin-vue-components: 0.19.3_vite@2.9.6+vue@3.2.33 + vite: 2.9.6_sass@1.51.0 + vite-plugin-inspect: 0.5.0_vite@2.9.6 + vite-plugin-md: 0.13.0_vite@2.9.6 + vite-plugin-pages: 0.23.0_vite@2.9.6 + vite-plugin-pwa: 0.12.0_vite@2.9.6 + vite-plugin-vue-layouts: 0.6.0_46a694bae06abddfad7399bb26d64ccb + vite-ssg: 0.19.2_df629b3e0950eaa377a8a831fd5df6d0 vite-ssg-sitemap: 0.2.4 + vue-toastification: 2.0.0-rc.5_vue@3.2.33 vue-tsc: 0.34.10_typescript@4.6.3 packages: @@ -1745,14 +1747,14 @@ packages: eslint-visitor-keys: 3.3.0 dev: true - /@unocss/cli/0.31.16: - resolution: {integrity: sha512-thko2GNPbY63ADSbrLQEXkP7wnt3I9HmKlx65sJi4ZvgxGl+XRAiU3O9JRjpTorSRiWH0Aew2ZEYAzrGv4effg==} + /@unocss/cli/0.31.17: + resolution: {integrity: sha512-at/gAnZBrutoTuee7dujhN/TRSCWAq+1QYm2ekfNktt4dgA5xVzvFQo63GEUvnM4tE51SQkIbznf44BxNbuEUQ==} engines: {node: '>=14'} hasBin: true dependencies: - '@unocss/config': 0.31.16 - '@unocss/core': 0.31.16 - '@unocss/preset-uno': 0.31.16 + '@unocss/config': 0.31.17 + '@unocss/core': 0.31.17 + '@unocss/preset-uno': 0.31.17 cac: 6.7.12 chokidar: 3.5.3 colorette: 2.0.16 @@ -1762,120 +1764,120 @@ packages: perfect-debounce: 0.1.3 dev: true - /@unocss/config/0.31.16: - resolution: {integrity: sha512-M2qXYzXxvX5L2Tg76hZW4Mc1qg+dqNH5X0dONxOR94Wyoc+cdefv2WAEhfK1N1NV1KR/BUwgMkFOsmAAzD51MA==} + /@unocss/config/0.31.17: + resolution: {integrity: sha512-Ggj2yCOeLxRfXd2Qt4ajWXJXQilZc/ozBFZM0vU77iFFq/yBlCWH6rLlhkYqGvSQT+K5SfaKluncskSG2090YA==} engines: {node: '>=14'} dependencies: - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 unconfig: 0.3.3 dev: true - /@unocss/core/0.31.16: - resolution: {integrity: sha512-WJJppy8xzmjmbxfNPQIrVkSa0ir0xV9nNbP5MebEt0CTz8AraBthdHr3/vpkjb/uQked53vz/IskwgtAJlZhQA==} + /@unocss/core/0.31.17: + resolution: {integrity: sha512-DJ3Uk2ePVXvV1qQmgoLK44aqB6f0s+naOEvouI97nzVXDZgxDQPBxIPB/L4vvE4U+gQxEiHwwE3gJ75iPqVzXw==} dev: true - /@unocss/inspector/0.31.16: - resolution: {integrity: sha512-Uzf+qstDkY7Ll9JCFF2RXmavdYz7q3mhdCgLQiMT3+vlnPqCm+nxyGYznEuVYpsMxxUnTECiV+cKIDXdbsb+Ww==} + /@unocss/inspector/0.31.17: + resolution: {integrity: sha512-eBRSBtiSvIk5mVJnNyN6Ag9ykBmQi2xROvcNS5sa11SHMkwWEaj1/8kBxyYFuOvl6ysEtdC7eSzv0tMRjXuuTw==} dependencies: gzip-size: 6.0.0 sirv: 2.0.2 dev: true - /@unocss/preset-attributify/0.31.16: - resolution: {integrity: sha512-oH4k6EjaTNIEcvmMvVAiKtVam5bU93/fGV10CqtzPWbLt9JYqDYhoKGTic7sXxrt/SAce8y30g3HgfJhwGBUsg==} + /@unocss/preset-attributify/0.31.17: + resolution: {integrity: sha512-Kar6K6oF7Zp/qXbWq1g+RwphOKCHiU3kWhulgbwy/HbdhSXsR0EE8zAHIgEga25q72Mm0hxBlowPtbjvX107rQ==} dependencies: - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 dev: true - /@unocss/preset-icons/0.31.16: - resolution: {integrity: sha512-4NbkE5hjm4ILew63oLTcUfxKn+dBHTQO8MmODF3n2+8kWjL7BShXC+scYGtr5M/Bkq9DBNpolwmCEGAt2xyg5g==} + /@unocss/preset-icons/0.31.17: + resolution: {integrity: sha512-cdS/BuL15NOKWIBxTW8e3xnr26MmC1dOtOtPLljLyMhdnEWOwHQA2PB9YtUZIEvrr2zTyMv/9aPQlBQ78973kg==} dependencies: '@iconify/utils': 1.0.32 - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 transitivePeerDependencies: - supports-color dev: true - /@unocss/preset-mini/0.31.16: - resolution: {integrity: sha512-ThSf0QirWBvosbEJj57FqFTHERRky5Nh6VbDklxOwUIciEzUlMxuSGCRdcmipMXLllCFitqE4TYYJirCUoB5+A==} + /@unocss/preset-mini/0.31.17: + resolution: {integrity: sha512-gVgMTOKLt3O1ym348QIBmR5sS9W0Ozkk5xelhH6e0VXcpg0dXDPDrl4hFErMy4x6IB86yyJG6Dz5JhcwQB13Ig==} dependencies: - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 dev: true - /@unocss/preset-typography/0.31.16: - resolution: {integrity: sha512-eVspfV8cVoxeyE6FOPboiFFaM8ArSqOHNdPxpE+Ggm1fQSMatMVTEcNkw+rPvxeY1EgUivBLRcKr20wZeaH7dg==} + /@unocss/preset-typography/0.31.17: + resolution: {integrity: sha512-zFFZeGdcXxpjgLG1o1zUQNFCdBqyGoFfUa0Zj0SeIYs11a4Y3ra701jHr1F4X4mhYzIyCUEfGC9X852o0iPa+A==} dependencies: - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 dev: true - /@unocss/preset-uno/0.31.16: - resolution: {integrity: sha512-Q8d3o4lfqXwap0VlpFH7vJ6L6+n/B9ptlgp227DVNHjH1c/MkbfHad1dYalNhI9IJMVRr0H+G+sdIA8SfwmaQg==} + /@unocss/preset-uno/0.31.17: + resolution: {integrity: sha512-zSajrrPQlPXBr+egbQ00Nvku9YrqFh3pWByVSx/4XPpZ1oSSjOqMAfGcdDPlmOWi++G6FLU28sglc3JB7jJEZA==} dependencies: - '@unocss/core': 0.31.16 - '@unocss/preset-mini': 0.31.16 - '@unocss/preset-wind': 0.31.16 + '@unocss/core': 0.31.17 + '@unocss/preset-mini': 0.31.17 + '@unocss/preset-wind': 0.31.17 dev: true - /@unocss/preset-web-fonts/0.31.16: - resolution: {integrity: sha512-cmBMC2oONSsVx51OpEcQwe/hqvdRwNo/PWz5cB9+HPCryDczm7lgXtRj7qvAfC4klnWQwXe04Kqmaou+jzaMAQ==} + /@unocss/preset-web-fonts/0.31.17: + resolution: {integrity: sha512-4FVNYMBN70j8xNOTxnUG6XeEJ/1WoJ1shQ72UhXDMaH4ZgCORvmAYdjl4opjEEB4RoXg5yJ1N1W6B3O/bsupbQ==} dependencies: - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 axios: 0.26.1 transitivePeerDependencies: - debug dev: true - /@unocss/preset-wind/0.31.16: - resolution: {integrity: sha512-xwkstGfOgl53crGO81j9ry+/Zn3tFXVMxq2G/fxnUB4Vy0EUgChZBZjNGyEiSvpK9Ktvc3NfZ4KcDeG58DkqiQ==} + /@unocss/preset-wind/0.31.17: + resolution: {integrity: sha512-GYVxPA66BovfXO9IAbSlE5yuBTO3ko7ChJS1Oisy3Y0+JBNXJsqzKlyLRLeKOSK76o2b/D0wRO8xEqirh76GQA==} dependencies: - '@unocss/core': 0.31.16 - '@unocss/preset-mini': 0.31.16 + '@unocss/core': 0.31.17 + '@unocss/preset-mini': 0.31.17 dev: true - /@unocss/reset/0.31.16: - resolution: {integrity: sha512-zwvtjqcte7FyXW4W5dx9RgdD6KkiztSj9B4eY5EwxCw6B11FO5aaURHe8oFXlYaFHiOthirXLejCPrXIMDOWRA==} + /@unocss/reset/0.31.17: + resolution: {integrity: sha512-g3+bqtM6LetSEJ5NYhi2P4vdP8yVLUQLbNZUdMtggcmHXTY08ISWaJKWmnHptrO13rtRoQ+l9gFc4Y7kRpD7NA==} dev: true - /@unocss/scope/0.31.16: - resolution: {integrity: sha512-lAUl6Benxb206Zoc58F2rRGUlmwQ8qTTtPVOPrFSTMewVZajmQfhrucxGbJbVx49fhK/WDBtmQrrmP0KBn6K5w==} + /@unocss/scope/0.31.17: + resolution: {integrity: sha512-X6V62OKexnhePLuVj9FtrpAJYUCpIedIieogvl6gHDZMnTnJPNaW9jJ7/e6r21F3u9IrqOzlikgCicFSm4J/TA==} dev: true - /@unocss/transformer-directives/0.31.16: - resolution: {integrity: sha512-QF4xOOzg/gxC7yKRrz19ZJ4sz1mXWIZ+pvx7ml8ZTX/fO7NOVIx+yASzoU6fcSEeDXwc4OCCnt+/9Nyj2Pc5RA==} + /@unocss/transformer-directives/0.31.17: + resolution: {integrity: sha512-1FF6PQybr2eFVp1mlz+OeTDAIWTuJw61EJneFWlsnWk2PgqBlX25SIuQjTWhXfjWihL3n8F2wHrX8i0vcG39bg==} dependencies: - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 css-tree: 2.1.0 dev: true - /@unocss/transformer-variant-group/0.31.16: - resolution: {integrity: sha512-BYlHXD/xKaFDjCoDISMBVTaF6m2iGpKpM368B0hd+6bkeBnqjwG3j8YtypG6j4phJhcoGfwxWlGjK0PSIeXM/Q==} + /@unocss/transformer-variant-group/0.31.17: + resolution: {integrity: sha512-q1L7jckHicv2GwdKp7KGhufHeH5sGhJeRv1EGVZkb7KFKt9AROH9X9LDzE6Xr0jWgywrCIyTUIBdZwb2aKrjeg==} dependencies: - '@unocss/core': 0.31.16 + '@unocss/core': 0.31.17 dev: true - /@unocss/vite/0.31.16_vite@2.9.5: - resolution: {integrity: sha512-iFJC0xjaSWt1+li9Eurs/SG06RQFwprUG/Z3JkJf5ugooshTS42fUHcOn/q5VJvItHziAcPPOmugfhddjchBYw==} + /@unocss/vite/0.31.17_vite@2.9.6: + resolution: {integrity: sha512-+NH/In8zqBXbTWfpiu8u/7jkwBJdaq2lM/ErXzd0q07w8Jv0FmKRWxBGml168uDA6dHHoJRcGO1AvzOYxsv9+A==} peerDependencies: vite: ^2.9.0 dependencies: '@rollup/pluginutils': 4.2.1 - '@unocss/config': 0.31.16 - '@unocss/core': 0.31.16 - '@unocss/inspector': 0.31.16 - '@unocss/scope': 0.31.16 - '@unocss/transformer-directives': 0.31.16 + '@unocss/config': 0.31.17 + '@unocss/core': 0.31.17 + '@unocss/inspector': 0.31.17 + '@unocss/scope': 0.31.17 + '@unocss/transformer-directives': 0.31.17 magic-string: 0.26.1 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 dev: true - /@vitejs/plugin-vue/2.3.1_vite@2.9.5+vue@3.2.33: + /@vitejs/plugin-vue/2.3.1_vite@2.9.6+vue@3.2.33: resolution: {integrity: sha512-YNzBt8+jt6bSwpt7LP890U1UcTOIZZxfpE5WOJ638PNxSEKOqAi0+FSKS0nVeukfdZ0Ai/H7AFd6k3hayfGZqQ==} engines: {node: '>=12.0.0'} peerDependencies: vite: ^2.5.10 vue: ^3.2.25 dependencies: - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 vue: 3.2.33 dev: true @@ -2896,6 +2898,15 @@ packages: dev: true optional: true + /esbuild-android-64/0.14.38: + resolution: {integrity: sha512-aRFxR3scRKkbmNuGAK+Gee3+yFxkTJO/cx83Dkyzo4CnQl/2zVSurtG6+G86EQIZ+w+VYngVyK7P3HyTBKu3nw==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + /esbuild-android-arm64/0.14.37: resolution: {integrity: sha512-wwcI+EUHWe1LlxBE7vjdqZ53DEiCllD6XsYOIiGxzL8KaG7eOLXNS7tNhdK0QIR4wwMNTPLDB40ZKuAXZ8zv6Q==} engines: {node: '>=12'} @@ -2905,6 +2916,15 @@ packages: dev: true optional: true + /esbuild-android-arm64/0.14.38: + resolution: {integrity: sha512-L2NgQRWuHFI89IIZIlpAcINy9FvBk6xFVZ7xGdOwIm8VyhX1vNCEqUJO3DPSSy945Gzdg98cxtNt8Grv1CsyhA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + /esbuild-darwin-64/0.14.37: resolution: {integrity: sha512-gg/UZ/FZrRzPq+tAOiMwyBoa6eNxX6bcjuivZ8v2Tny83RhIyeDhvC84dgVcPinqK39u8pOYw6a7nffotUrjKQ==} engines: {node: '>=12'} @@ -2914,6 +2934,15 @@ packages: dev: true optional: true + /esbuild-darwin-64/0.14.38: + resolution: {integrity: sha512-5JJvgXkX87Pd1Og0u/NJuO7TSqAikAcQQ74gyJ87bqWRVeouky84ICoV4sN6VV53aTW+NE87qLdGY4QA2S7KNA==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /esbuild-darwin-arm64/0.14.37: resolution: {integrity: sha512-eFwy5il5yvIHAVau97kWoNYfxuCd1X7hfgKc4Ns5ymlYXhyRzRywwJfknHax5rDyZxfDXtnFaT/nftUiYwsHIQ==} engines: {node: '>=12'} @@ -2923,6 +2952,15 @@ packages: dev: true optional: true + /esbuild-darwin-arm64/0.14.38: + resolution: {integrity: sha512-eqF+OejMI3mC5Dlo9Kdq/Ilbki9sQBw3QlHW3wjLmsLh+quNfHmGMp3Ly1eWm981iGBMdbtSS9+LRvR2T8B3eQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /esbuild-freebsd-64/0.14.37: resolution: {integrity: sha512-4iFbdmohve6wyPwsVPe/1j5rVwg5uPTopmgIUiJBbnPKMmo8NecUSbz3HwddsDHLrvGoIs5aOiETPWo9rg3wyg==} engines: {node: '>=12'} @@ -2932,6 +2970,15 @@ packages: dev: true optional: true + /esbuild-freebsd-64/0.14.38: + resolution: {integrity: sha512-epnPbhZUt93xV5cgeY36ZxPXDsQeO55DppzsIgWM8vgiG/Rz+qYDLmh5ts3e+Ln1wA9dQ+nZmVHw+RjaW3I5Ig==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + /esbuild-freebsd-arm64/0.14.37: resolution: {integrity: sha512-MGmZ9akBdqcIH7FcWhUrVTmTW18Xz/EVrvBcV6BHSFDQci0YnOhPAGCrV54t1JNG/5poHNBnaG3R2zNxnmJT5Q==} engines: {node: '>=12'} @@ -2941,6 +2988,15 @@ packages: dev: true optional: true + /esbuild-freebsd-arm64/0.14.38: + resolution: {integrity: sha512-/9icXUYJWherhk+y5fjPI5yNUdFPtXHQlwP7/K/zg8t8lQdHVj20SqU9/udQmeUo5pDFHMYzcEFfJqgOVeKNNQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-32/0.14.37: resolution: {integrity: sha512-UCyQrn3n3dHXHDQTPO3gWxfoqtEpGObBdAgevuUtw0//TSyNftnaLcQYyBiGC6J85sM8f/c+Minz5jUFOKrmOA==} engines: {node: '>=12'} @@ -2950,6 +3006,15 @@ packages: dev: true optional: true + /esbuild-linux-32/0.14.38: + resolution: {integrity: sha512-QfgfeNHRFvr2XeHFzP8kOZVnal3QvST3A0cgq32ZrHjSMFTdgXhMhmWdKzRXP/PKcfv3e2OW9tT9PpcjNvaq6g==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-64/0.14.37: resolution: {integrity: sha512-UURL6k1Ffr6K4faFgdP6lKVvMKYwq8JmAh+odCukzIWN4EpjIzgmhBUzyFVU+VQLh1+K3tlE1SPJ057PNpayUQ==} engines: {node: '>=12'} @@ -2959,6 +3024,15 @@ packages: dev: true optional: true + /esbuild-linux-64/0.14.38: + resolution: {integrity: sha512-uuZHNmqcs+Bj1qiW9k/HZU3FtIHmYiuxZ/6Aa+/KHb/pFKr7R3aVqvxlAudYI9Fw3St0VCPfv7QBpUITSmBR1Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-arm/0.14.37: resolution: {integrity: sha512-SgWcdAivyK2z2kcYAGwLTBSTECXXj/lC0S/BiayyHLYJHA6C3aEGexB6ZDMgffj4Quy/l3Tyr9ktZh8bgcmJrA==} engines: {node: '>=12'} @@ -2968,6 +3042,15 @@ packages: dev: true optional: true + /esbuild-linux-arm/0.14.38: + resolution: {integrity: sha512-FiFvQe8J3VKTDXG01JbvoVRXQ0x6UZwyrU4IaLBZeq39Bsbatd94Fuc3F1RGqPF5RbIWW7RvkVQjn79ejzysnA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-arm64/0.14.37: resolution: {integrity: sha512-vDHyuFsDpz6nquJO7CAxU2CBj+PB+BJhGawzBrHtcM249fXK4GfVNVArgWFKkSGMZW1ZpKSeef7FeOvM6juhPg==} engines: {node: '>=12'} @@ -2977,6 +3060,15 @@ packages: dev: true optional: true + /esbuild-linux-arm64/0.14.38: + resolution: {integrity: sha512-HlMGZTEsBrXrivr64eZ/EO0NQM8H8DuSENRok9d+Jtvq8hOLzrxfsAT9U94K3KOGk2XgCmkaI2KD8hX7F97lvA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-mips64le/0.14.37: resolution: {integrity: sha512-azRAGYGKg3dxbYE7C+L35/2Oyg1RCuXvT3Z8M76JZF2N1ZNEA9g01zbuw3GtXWLyI6mhhoHxQL0H1SQUL0At1w==} engines: {node: '>=12'} @@ -2986,6 +3078,15 @@ packages: dev: true optional: true + /esbuild-linux-mips64le/0.14.38: + resolution: {integrity: sha512-qd1dLf2v7QBiI5wwfil9j0HG/5YMFBAmMVmdeokbNAMbcg49p25t6IlJFXAeLzogv1AvgaXRXvgFNhScYEUXGQ==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-ppc64le/0.14.37: resolution: {integrity: sha512-SyNitGH/h7Hti7A+a5rkRDHhjra1TM1JnJJymRndOzw5Vd+AkWpoSQxxTfvmRw62g42zoeHBgcyrvGfT053l5w==} engines: {node: '>=12'} @@ -2995,6 +3096,15 @@ packages: dev: true optional: true + /esbuild-linux-ppc64le/0.14.38: + resolution: {integrity: sha512-mnbEm7o69gTl60jSuK+nn+pRsRHGtDPfzhrqEUXyCl7CTOCLtWN2bhK8bgsdp6J/2NyS/wHBjs1x8aBWwP2X9Q==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-riscv64/0.14.37: resolution: {integrity: sha512-IgEwVXYGC3HpCmZ1nl+vZw1h72i9WEf4mx+JBZ1s+Z0QVGww/8LI6oYZVboPtr7Lok1gKdg5tUZdFukGn5Fr/A==} engines: {node: '>=12'} @@ -3004,6 +3114,15 @@ packages: dev: true optional: true + /esbuild-linux-riscv64/0.14.38: + resolution: {integrity: sha512-+p6YKYbuV72uikChRk14FSyNJZ4WfYkffj6Af0/Tw63/6TJX6TnIKE+6D3xtEc7DeDth1fjUOEqm+ApKFXbbVQ==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-linux-s390x/0.14.37: resolution: {integrity: sha512-X105T1x7PV9pZ/rDpOeNiTWGBd1A0BGUbi6hK9BW7X8IxzQZNwAsaahLOlAFf+OKezoSQrhHfNdBwIu9UZMmtw==} engines: {node: '>=12'} @@ -3013,6 +3132,15 @@ packages: dev: true optional: true + /esbuild-linux-s390x/0.14.38: + resolution: {integrity: sha512-0zUsiDkGJiMHxBQ7JDU8jbaanUY975CdOW1YDrurjrM0vWHfjv9tLQsW9GSyEb/heSK1L5gaweRjzfUVBFoybQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + /esbuild-netbsd-64/0.14.37: resolution: {integrity: sha512-93mHLGTTFWAemDNGxlx0RJyNQ4E2OnnUGNHpNhKu/zzYw/Imf6dWGB6h7e9axtce8yOg5rOnx8BMhRu0NwQnKA==} engines: {node: '>=12'} @@ -3022,6 +3150,15 @@ packages: dev: true optional: true + /esbuild-netbsd-64/0.14.38: + resolution: {integrity: sha512-cljBAApVwkpnJZfnRVThpRBGzCi+a+V9Ofb1fVkKhtrPLDYlHLrSYGtmnoTVWDQdU516qYI8+wOgcGZ4XIZh0Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + /esbuild-node-loader/0.6.5: resolution: {integrity: sha512-uPP+dllWm38cFvDysdocutN3lfe5pTIbddAHp1ENyLzpHYqE2r+3Wo+pfg9X3p8DFWwzIisft5YkeBIthIcixw==} dependencies: @@ -3037,6 +3174,15 @@ packages: dev: true optional: true + /esbuild-openbsd-64/0.14.38: + resolution: {integrity: sha512-CDswYr2PWPGEPpLDUO50mL3WO/07EMjnZDNKpmaxUPsrW+kVM3LoAqr/CE8UbzugpEiflYqJsGPLirThRB18IQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + /esbuild-register/3.3.2_esbuild@0.14.37: resolution: {integrity: sha512-jceAtTO6zxPmCfSD5cBb3rgIK1vmuqCKYwgylHiS1BF4pq0jJiJb4K2QMuqF4BEw7XDBRatYzip0upyTzfkgsQ==} peerDependencies: @@ -3054,6 +3200,15 @@ packages: dev: true optional: true + /esbuild-sunos-64/0.14.38: + resolution: {integrity: sha512-2mfIoYW58gKcC3bck0j7lD3RZkqYA7MmujFYmSn9l6TiIcAMpuEvqksO+ntBgbLep/eyjpgdplF7b+4T9VJGOA==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + /esbuild-windows-32/0.14.37: resolution: {integrity: sha512-aQlHyME09dWo2FVAniTXLurr/xYZre5bJrnW8yALPUu09ExCC7LzlFQFoJuuSyCdMDHcxYLc6HcrJLwRdR3b/Q==} engines: {node: '>=12'} @@ -3063,6 +3218,15 @@ packages: dev: true optional: true + /esbuild-windows-32/0.14.38: + resolution: {integrity: sha512-L2BmEeFZATAvU+FJzJiRLFUP+d9RHN+QXpgaOrs2klshoAm1AE6Us4X6fS9k33Uy5SzScn2TpcgecbqJza1Hjw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + /esbuild-windows-64/0.14.37: resolution: {integrity: sha512-4mJjpS71AV4rj5PXrOn19uQwiASiyziJwyZT+qQ3M/hc/fIWS2Pgv5gbgytC1O8jptMB6NIpgrauCw56lKgckA==} engines: {node: '>=12'} @@ -3072,6 +3236,15 @@ packages: dev: true optional: true + /esbuild-windows-64/0.14.38: + resolution: {integrity: sha512-Khy4wVmebnzue8aeSXLC+6clo/hRYeNIm0DyikoEqX+3w3rcvrhzpoix0S+MF9vzh6JFskkIGD7Zx47ODJNyCw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /esbuild-windows-arm64/0.14.37: resolution: {integrity: sha512-wQy+sAKD7/d6vDrgH+i+ZdbRLVHGG5BjBpBRStvGgLiuIo46/QEQCaHbBy2LOtXu/o1JYchxilzeQ+ExZdYkeA==} engines: {node: '>=12'} @@ -3081,6 +3254,15 @@ packages: dev: true optional: true + /esbuild-windows-arm64/0.14.38: + resolution: {integrity: sha512-k3FGCNmHBkqdJXuJszdWciAH77PukEyDsdIryEHn9cKLQFxzhT39dSumeTuggaQcXY57UlmLGIkklWZo2qzHpw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /esbuild/0.14.37: resolution: {integrity: sha512-sPlTpEkjzgFjWjYdve5xM1A3fpKXWNc+0yh0u9tqdER992OEpvde1c/+5rbRFsaSEEjQM9qXRcYn3EvNwgLF9w==} engines: {node: '>=12'} @@ -3109,6 +3291,34 @@ packages: esbuild-windows-arm64: 0.14.37 dev: true + /esbuild/0.14.38: + resolution: {integrity: sha512-12fzJ0fsm7gVZX1YQ1InkOE5f9Tl7cgf6JPYXRJtPIoE0zkWAbHdPHVPPaLi9tYAcEBqheGzqLn/3RdTOyBfcA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + esbuild-android-64: 0.14.38 + esbuild-android-arm64: 0.14.38 + esbuild-darwin-64: 0.14.38 + esbuild-darwin-arm64: 0.14.38 + esbuild-freebsd-64: 0.14.38 + esbuild-freebsd-arm64: 0.14.38 + esbuild-linux-32: 0.14.38 + esbuild-linux-64: 0.14.38 + esbuild-linux-arm: 0.14.38 + esbuild-linux-arm64: 0.14.38 + esbuild-linux-mips64le: 0.14.38 + esbuild-linux-ppc64le: 0.14.38 + esbuild-linux-riscv64: 0.14.38 + esbuild-linux-s390x: 0.14.38 + esbuild-netbsd-64: 0.14.38 + esbuild-openbsd-64: 0.14.38 + esbuild-sunos-64: 0.14.38 + esbuild-windows-32: 0.14.38 + esbuild-windows-64: 0.14.38 + esbuild-windows-arm64: 0.14.38 + dev: true + /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} engines: {node: '>=6'} @@ -5938,23 +6148,23 @@ packages: engines: {node: '>= 10.0.0'} dev: true - /unocss/0.31.16_vite@2.9.5: - resolution: {integrity: sha512-RKJsaYNH4zifcRBe7maQbmQi0muvOgUCZNC02nbAXiaLKQ2DtwEuzsETzkkLSVssbwf03D3OtM5W0W3sVBcK2A==} + /unocss/0.31.17_vite@2.9.6: + resolution: {integrity: sha512-JJsxXfHfRRDvimDSgTTIpDPpYsVcp/jMxj+I/WsDIFQjBKhB4dq0VyjKl5dXlicgMTJfy2wrj/zBGMPl9W6/qA==} engines: {node: '>=14'} dependencies: - '@unocss/cli': 0.31.16 - '@unocss/core': 0.31.16 - '@unocss/preset-attributify': 0.31.16 - '@unocss/preset-icons': 0.31.16 - '@unocss/preset-mini': 0.31.16 - '@unocss/preset-typography': 0.31.16 - '@unocss/preset-uno': 0.31.16 - '@unocss/preset-web-fonts': 0.31.16 - '@unocss/preset-wind': 0.31.16 - '@unocss/reset': 0.31.16 - '@unocss/transformer-directives': 0.31.16 - '@unocss/transformer-variant-group': 0.31.16 - '@unocss/vite': 0.31.16_vite@2.9.5 + '@unocss/cli': 0.31.17 + '@unocss/core': 0.31.17 + '@unocss/preset-attributify': 0.31.17 + '@unocss/preset-icons': 0.31.17 + '@unocss/preset-mini': 0.31.17 + '@unocss/preset-typography': 0.31.17 + '@unocss/preset-uno': 0.31.17 + '@unocss/preset-web-fonts': 0.31.17 + '@unocss/preset-wind': 0.31.17 + '@unocss/reset': 0.31.17 + '@unocss/transformer-directives': 0.31.17 + '@unocss/transformer-variant-group': 0.31.17 + '@unocss/vite': 0.31.17_vite@2.9.6 transitivePeerDependencies: - debug - supports-color @@ -5966,7 +6176,7 @@ packages: engines: {node: '>= 0.8'} dev: true - /unplugin-auto-import/0.7.1_@vueuse+core@8.3.1+vite@2.9.5: + /unplugin-auto-import/0.7.1_@vueuse+core@8.3.1+vite@2.9.6: resolution: {integrity: sha512-9865OV9eP99PNxHR2mtTDExeN01m4M9boT5U2BtIwsU1wDRsaFIYWLwcCBEjvXzXfTTC2NNMskhHGVAMfL2WgA==} engines: {node: '>=14'} peerDependencies: @@ -5981,7 +6191,7 @@ packages: local-pkg: 0.4.1 magic-string: 0.26.1 resolve: 1.22.0 - unplugin: 0.6.2_vite@2.9.5 + unplugin: 0.6.2_vite@2.9.6 transitivePeerDependencies: - esbuild - rollup @@ -5989,7 +6199,7 @@ packages: - webpack dev: true - /unplugin-vue-components/0.19.3_vite@2.9.5+vue@3.2.33: + /unplugin-vue-components/0.19.3_vite@2.9.6+vue@3.2.33: resolution: {integrity: sha512-z/kpYJnqrJuWglDNs7fy0YRHr41oLc07y2TkP3by6DqPb1GG9xGC9SFigeFwd4J7GVTqyFVsnjoeup7uK7I2dA==} engines: {node: '>=14'} peerDependencies: @@ -6011,7 +6221,7 @@ packages: magic-string: 0.26.1 minimatch: 5.0.1 resolve: 1.22.0 - unplugin: 0.6.2_vite@2.9.5 + unplugin: 0.6.2_vite@2.9.6 vue: 3.2.33 transitivePeerDependencies: - esbuild @@ -6021,7 +6231,7 @@ packages: - webpack dev: true - /unplugin/0.6.2_vite@2.9.5: + /unplugin/0.6.2_vite@2.9.6: resolution: {integrity: sha512-+QONc2uBFQbeo4x5mlJHjTKjR6pmuchMpGVrWhwdGFFMb4ttFZ4E9KqhOOrNcm3Q8NNyB1vJ4s5e36IZC7UWYw==} peerDependencies: esbuild: '>=0.13' @@ -6039,7 +6249,7 @@ packages: optional: true dependencies: chokidar: 3.5.3 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 webpack-sources: 3.2.3 webpack-virtual-modules: 0.4.3 dev: true @@ -6084,7 +6294,7 @@ packages: engines: {node: '>= 0.8'} dev: true - /vite-plugin-inspect/0.5.0_vite@2.9.5: + /vite-plugin-inspect/0.5.0_vite@2.9.6: resolution: {integrity: sha512-eArca+5jrNx1hQL+5s79eT5Xq4VXjJcihJhK8GT/+W2GqefVxFO1WO78RnD0HPI+hKSdEFo+B4z2zeaE8DTvWQ==} engines: {node: '>=14'} peerDependencies: @@ -6095,12 +6305,12 @@ packages: kolorist: 1.5.1 sirv: 2.0.2 ufo: 0.8.3 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 transitivePeerDependencies: - supports-color dev: true - /vite-plugin-md/0.13.0_vite@2.9.5: + /vite-plugin-md/0.13.0_vite@2.9.6: resolution: {integrity: sha512-srW6j3otbHxFaTushal6fWxrjrlyA553biB0S1Bpm2DhWL1hP4a/snjpi+5AyDVaQodMmA4Oe2hIW1IjyKa0hQ==} peerDependencies: vite: ^2.0.0 @@ -6111,10 +6321,10 @@ packages: '@vue/runtime-core': 3.2.33 gray-matter: 4.0.3 markdown-it: 13.0.0 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 dev: true - /vite-plugin-pages/0.23.0_vite@2.9.5: + /vite-plugin-pages/0.23.0_vite@2.9.6: resolution: {integrity: sha512-KEfW6WBfACCjMXoQY0mLEzfifwCTq6FlvvtXs2XSEe9Pd4QadZTNzHOPKHDsKpVXysRzbYxE8/c/Ao9+nXsQ7w==} peerDependencies: '@vue/compiler-sfc': ^3.0.0 @@ -6130,13 +6340,13 @@ packages: json5: 2.2.1 local-pkg: 0.4.1 picocolors: 1.0.0 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 yaml: 2.0.1 transitivePeerDependencies: - supports-color dev: true - /vite-plugin-pwa/0.12.0_vite@2.9.5: + /vite-plugin-pwa/0.12.0_vite@2.9.6: resolution: {integrity: sha512-KYD+cnS5ExLF3T28NkfzBLZ53ehHlp+qMhHGFNh0zlVGpFHrJkL2v9wd4AMi7ZkBTffgeNatIFiv8rhCsMSxBQ==} peerDependencies: vite: ^2.0.0 @@ -6145,7 +6355,7 @@ packages: fast-glob: 3.2.11 pretty-bytes: 6.0.0 rollup: 2.70.2 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 workbox-build: 6.5.3 workbox-window: 6.5.3 transitivePeerDependencies: @@ -6153,7 +6363,7 @@ packages: - supports-color dev: true - /vite-plugin-vue-layouts/0.6.0_c6669f7f6a2bb1e4cd0ce207bade55c6: + /vite-plugin-vue-layouts/0.6.0_46a694bae06abddfad7399bb26d64ccb: resolution: {integrity: sha512-7QX7o/NpCfs+hyXphwYfmPqAEQ6qd4uXsvI0VsovjGT2eCoEE5dMdP6L+uqqNWY4uqv7oCvtinecZmbzZv/9Rg==} peerDependencies: vite: ^2.5.0 @@ -6163,7 +6373,7 @@ packages: '@vue/compiler-sfc': 3.2.33 debug: 4.3.4 fast-glob: 3.2.11 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 vue: 3.2.33 vue-router: 4.0.14_vue@3.2.33 transitivePeerDependencies: @@ -6174,7 +6384,7 @@ packages: resolution: {integrity: sha512-O9xzHP7wT1D+o3/CCC+HliYJILjnrDGTo8aTqbADbbWU7uomjdg0yiLNb+dosAhqxuYDPco1xPCO6z9/wQXGzA==} dev: true - /vite-ssg/0.19.2_eacfe4bd4e3401e3e0916bc5279e5ce7: + /vite-ssg/0.19.2_df629b3e0950eaa377a8a831fd5df6d0: resolution: {integrity: sha512-r9UJJ4OTMyu9f4nNe12PMVhVkeXYp1rUKbIl6zIOz5QDYEDgFcq8hZGUMMIAcyHhB4pH5ImmjZd1hJ2fO6hOmg==} engines: {node: '>=14.0.0'} hasBin: true @@ -6196,7 +6406,7 @@ packages: jsdom: 19.0.0 kolorist: 1.5.1 prettier: 2.6.2 - vite: 2.9.5_sass@1.51.0 + vite: 2.9.6_sass@1.51.0 vue: 3.2.33 vue-router: 4.0.14_vue@3.2.33 yargs: 17.4.1 @@ -6207,8 +6417,8 @@ packages: - utf-8-validate dev: true - /vite/2.9.5_sass@1.51.0: - resolution: {integrity: sha512-dvMN64X2YEQgSXF1lYabKXw3BbN6e+BL67+P3Vy4MacnY+UzT1AfkHiioFSi9+uiDUiaDy7Ax/LQqivk6orilg==} + /vite/2.9.6_sass@1.51.0: + resolution: {integrity: sha512-3IffdrByHW95Yjv0a13TQOQfJs7L5dVlSPuTt432XLbRMriWbThqJN2k/IS6kXn5WY4xBLhK9XoaWay1B8VzUw==} engines: {node: '>=12.2.0'} hasBin: true peerDependencies: @@ -6223,7 +6433,7 @@ packages: stylus: optional: true dependencies: - esbuild: 0.14.37 + esbuild: 0.14.38 postcss: 8.4.12 resolve: 1.22.0 rollup: 2.70.2 @@ -6232,8 +6442,8 @@ packages: fsevents: 2.3.2 dev: true - /vue-about-me/1.2.6: - resolution: {integrity: sha512-ACU4rTpr+gQUJtWswL5DsuOrJVbWa7uGvQ/9bZOfsPSdIouYWK4tGoPl1KShdR4JL1pL03OXwfJ/LANfbh2h7A==} + /vue-about-me/1.2.7: + resolution: {integrity: sha512-dPzh6wBdv1TlrZQ4ad4Paf4D4qGrj7bV4TFPjPhKhI/ITtY4w667v2iN14qXXbML5/0dT2czxwvGuO2lrAptzg==} dependencies: sass: 1.51.0 vue: 3.2.33 @@ -6281,6 +6491,14 @@ packages: vue: 3.2.33 dev: false + /vue-toastification/2.0.0-rc.5_vue@3.2.33: + resolution: {integrity: sha512-q73e5jy6gucEO/U+P48hqX+/qyXDozAGmaGgLFm5tXX4wJBcVsnGp4e/iJqlm9xzHETYOilUuwOUje2Qg1JdwA==} + peerDependencies: + vue: ^3.0.2 + dependencies: + vue: 3.2.33 + dev: true + /vue-tsc/0.34.10_typescript@4.6.3: resolution: {integrity: sha512-rWU4SjDqk9ylQN2hbnyP+rEu8W2a712DWUmciX6rDnId1m8sN/cuypTKjWjHHjaBLWNKULoEakRTOvrQ4ainhw==} hasBin: true diff --git a/src/components/AboutMe.vue b/src/components/AboutMe.vue index 8058568..4fb256f 100644 --- a/src/components/AboutMe.vue +++ b/src/components/AboutMe.vue @@ -11,8 +11,47 @@ const copyright = { author: '云游君', authorUrl: 'https://www.yunyoujun.cn', } + +const links = [ + { + type: 'github', + label: 'GitHub: YunYouJun', + href: 'https://github.com/YunYouJun', + }, + { + type: 'telegram', + label: 'Telegram Channel', + href: 'https://t.me/elpsycn', + }, + { + type: 'weibo', + label: '微博:机智的云游君', + href: 'http://weibo.com/jizhideyunyoujun', + }, + { + type: 'twitter', + label: 'Twitter: YunYouJun', + href: 'https://twitter.com/YunYouJun', + }, + { + type: 'wechat', + label: '微信公众号:云游君', + href: '/wechat', + target: '_self', + }, + { + type: 'bilibili', + label: '云游君Official', + href: 'https://space.bilibili.com/1579790', + }, + { + type: 'blog', + label: '博客:yunyoujun.cn', + href: 'http://www.yunyoujun.cn', + }, +] diff --git a/src/components/ChooseFood.vue b/src/components/ChooseFood.vue index 0efffb8..eae5714 100644 --- a/src/components/ChooseFood.vue +++ b/src/components/ChooseFood.vue @@ -224,10 +224,15 @@ const { isVisible, show } = useInvisibleElement(recipePanel) -
+

🍲 来看看组合出的菜谱吧!

+ + +
diff --git a/src/components/Menu.vue b/src/components/Menu.vue index aae787b..31e0fcc 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -12,12 +12,12 @@ import { toggleDark } from '~/composables'
- -
+ +
- -
+ +
diff --git a/src/main.ts b/src/main.ts index 0584e73..74a38b4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,7 +4,6 @@ import { setupLayouts } from 'virtual:generated-layouts' import App from './App.vue' import '@unocss/reset/tailwind.css' -import './styles/main.css' import './styles/css-vars.scss' import './styles/index.scss' import 'uno.css' diff --git a/src/modules/pwa.ts b/src/modules/pwa.ts index 319d9fd..c0c9f82 100644 --- a/src/modules/pwa.ts +++ b/src/modules/pwa.ts @@ -5,7 +5,7 @@ export const install: UserModule = ({ isClient, router }) => { if (!isClient) return - router.isReady().then(async() => { + router.isReady().then(async () => { const { registerSW } = await import('virtual:pwa-register') registerSW({ immediate: true }) }) diff --git a/src/modules/toast.ts b/src/modules/toast.ts new file mode 100644 index 0000000..921c276 --- /dev/null +++ b/src/modules/toast.ts @@ -0,0 +1,9 @@ +import Toast from 'vue-toastification' +import type { UserModule } from '~/types' + +import 'vue-toastification/dist/index.css' + +export const install: UserModule = ({ app }) => { + // add google tag manager, and add GA4 in gtag + app.use(Toast) +} diff --git a/src/pages/about.md b/src/pages/about.md index c689d4b..15edc62 100644 --- a/src/pages/about.md +++ b/src/pages/about.md @@ -11,7 +11,7 @@ title: 关于 > 希望大家吃的开心!
-代码请见: +代码仓库: @@ -25,9 +25,6 @@ title: 关于
-- 如果您发现了任何「故障」或希望有某个「新功能」,可前往 [Issues](https://github.com/YunYouJun/cook/issues)。 -- 如果您有任何想要交流的内容,包括但不局限于建议/反馈/分享等,可前往 [Discussions](https://github.com/YunYouJun/cook/issues)。 - ## **致谢** 感谢以下小伙伴为本项目提供的数据支持和 QA ! @@ -39,9 +36,31 @@ title: 关于 - 晴方啾 - 课代表阿伟 -## **友情提示** +## **关于我** -- 点击首页最上方的大锅图标,可以清空所选食材和工具。(本来想当作彩蛋,但是感觉还挺实用的。) -- 本项目支持 PWA,使用浏览器打开时,可将其添加到主屏幕以获得近原生 APP 的体验。 +Hello,我是云游君。 + +很高兴能在这里与你相遇,也很希望这个网站可以真的帮助到你。 + +同时,我也以我或许不值一提的脸面保证它会以免费开源的形式维护运营下去。 + +此外,我也会继续尝试做一些有趣或有用的东西,并分享给大家。 +你也可以在这些地方找到我。 + +对了,给微信公众号「云游君」发送「做菜」也可以快速找到这个网址。 + +## [**赞助者**](https://sponsors.yunyoujun.cn) + +也非常感谢至今以来的所有赞助者们! + +如果觉得我的[小项目们](https://sponsors.yunyoujun.cn/projects)还算有趣的话,要不要考虑[赞助](https://sponsors.yunyoujun.cn/)我? + +我会将其公开在[账簿](https://sponsors.yunyoujun.cn/account)中,并投入在周边的服务器、域名、CDN 等费用上。 + +

+ + + +

diff --git a/src/pages/help.md b/src/pages/help.md new file mode 100644 index 0000000..940cd00 --- /dev/null +++ b/src/pages/help.md @@ -0,0 +1,23 @@ +--- +title: 帮助 +--- + +

+使用帮助 +

+ +- 故障/新功能反馈:[Issues](https://github.com/YunYouJun/cook/issues) +- 交流/建议/分享:[Discussions](https://github.com/YunYouJun/cook/issues) + +## **模式说明** + +- 模糊匹配:展示所有含当前选中任意食材的菜谱 +- 精准匹配:展示所有含当前选中所有食材的菜谱 +- 生存模式:展示当前选中食材可制作的所有菜谱 + +## **友情提示** + +- 点击首页最上方的大锅图标,可清空所选食材和工具。 +- 本项目支持 PWA,使用浏览器打开时,可将其添加到主屏幕以获得近原生 APP 的体验。 + +
diff --git a/src/stores/recipe.ts b/src/stores/recipe.ts index 94eaa60..3d2fa81 100644 --- a/src/stores/recipe.ts +++ b/src/stores/recipe.ts @@ -2,6 +2,11 @@ import { acceptHMRUpdate, defineStore } from 'pinia' const namespace = 'cook' +/** + * survival: 生存模式 + */ +type CookMode = 'survival' | '' + export const useRecipeStore = defineStore('recipe', () => { const strict = useStorage(`${namespace}:strict`, false) @@ -13,6 +18,8 @@ export const useRecipeStore = defineStore('recipe', () => { // const selectedTools = computed(() => Array.from(curTools.value)) // const selectedTools = ref('') + const mode = ref('') + function toggleStuff(name: string) { if (!curStuff) return diff --git a/src/styles/animation.scss b/src/styles/animation.scss new file mode 100644 index 0000000..a3cae15 --- /dev/null +++ b/src/styles/animation.scss @@ -0,0 +1,38 @@ +/* we will explain what these classes do next! */ +.v-enter-active, +.v-leave-active { + transition: opacity 0.3s ease; +} + +.v-enter-from, +.v-leave-to { + opacity: 0; +} + +// scrollbar +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-track { + border-radius: 2px; + background-color: rgba(255, 255, 255, 0.1); +} + +::-webkit-scrollbar-thumb { + border-radius: 2px; + background-color: rgba(122, 122, 122, 0.3); + + &:window-inactive { + background-color: rgba(122, 122, 122, 0.3); + } + + &:hover { + background-color: rgba(122, 122, 122, 0.7); + } + + &:active { + background-color: rgba(122, 122, 122, 0.9); + } +} diff --git a/src/styles/index.scss b/src/styles/index.scss index 58cc45c..208f00d 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,5 +1,33 @@ +@import './animation.scss'; @import './markdown.scss'; +html, +body, +#app { + height: 100%; + margin: 0; + padding: 0; +} + +html.dark { + background: #121212; +} + +#nprogress { + pointer-events: none; +} + +#nprogress .bar { + background: rgb(13,148,136); + opacity: 0.75; + position: fixed; + z-index: 1031; + top: 0; + left: 0; + width: 100%; + height: 2px; +} + html { color: var(--c-text); background-color: var(--c-bg); @@ -23,47 +51,11 @@ button { } } +hr {opacity: 0.1;} + .tag { margin: 4px; padding: 2px 4px; // border: 1px solid var(--c-text); } -/* we will explain what these classes do next! */ -.v-enter-active, -.v-leave-active { - transition: opacity 0.3s ease; -} - -.v-enter-from, -.v-leave-to { - opacity: 0; -} - -// scrollbar -::-webkit-scrollbar { - width: 8px; - height: 8px; -} - -::-webkit-scrollbar-track { - border-radius: 2px; - background-color: rgba(255, 255, 255, 0.1); -} - -::-webkit-scrollbar-thumb { - border-radius: 2px; - background-color: rgba(122, 122, 122, 0.3); - - &:window-inactive { - background-color: rgba(122, 122, 122, 0.3); - } - - &:hover { - background-color: rgba(122, 122, 122, 0.7); - } - - &:active { - background-color: rgba(122, 122, 122, 0.9); - } -} diff --git a/src/styles/main.css b/src/styles/main.css deleted file mode 100755 index e5059e3..0000000 --- a/src/styles/main.css +++ /dev/null @@ -1,26 +0,0 @@ -html, -body, -#app { - height: 100%; - margin: 0; - padding: 0; -} - -html.dark { - background: #121212; -} - -#nprogress { - pointer-events: none; -} - -#nprogress .bar { - background: rgb(13,148,136); - opacity: 0.75; - position: fixed; - z-index: 1031; - top: 0; - left: 0; - width: 100%; - height: 2px; -} diff --git a/vercel.json b/vercel.json index f7bbd28..448dc52 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,7 @@ { "rewrites": [ { "source": "/about", "destination": "/index.html" }, + { "source": "/help", "destination": "/index.html" }, { "source": "/wechat", "destination": "/index.html" } ] }