Open source personal finance application
feat (unplugin-vue2-script-setup): init
ilkome3d172e9a556b
diff --git a/layouts/default.vue b/layouts/default.vueindex 5a06c042..c2fb501a 100644--- a/layouts/default.vue+++ b/layouts/default.vue@@ -1,78 +1,56 @@-<script lang="ts">-import { ref, computed, useNuxtApp, onMounted, useLazyAsyncData, defineComponent } from '#app'-import useBaseLayout from '~/components/layout/useBaseLayout'+<script setup lang="ts">+/* eslint-disable @typescript-eslint/no-unused-vars */import debounce from '~/utils/debounce'import detectTouch from '~/assets/js/isTouchDevice'import useUIView from '~/components/layout/useUIView'-export default defineComponent({- setup () {- const { $store } = useNuxtApp()+const { $store } = useNuxtApp()- useLazyAsyncData('posts', async () => {- const { initUI } = useUIView()- await initUI()- })-- const keepAliveInclude = ['IndexPage2']-- // Layout- const { isShowPeriodsNamesModal } = useBaseLayout()-- // UI- const { ui } = useUIView()-- const statCurrentPeriod = computed(() => $store.getters['stat/statCurrentPeriod'])-- /**- * Update modal- */- const isShowUpdateApp = ref(false)- onMounted(async () => {- const workbox = await window.$workbox- if (workbox) {- workbox.addEventListener('installed', (event) => {- isShowUpdateApp.value = event.isUpdate- })- }- })+useLazyAsyncData('posts', async () => {+ const { initUI } = useUIView()+ await initUI()+})- /**- * Detect touch device- */- const isTouchDevice = ref(false)- onMounted(() => { isTouchDevice.value = detectTouch() })-- /**- * Page dimensions- */- function getPageDimensions () {- const width = document.documentElement.clientWidth- const height = document.documentElement.clientHeight- document.documentElement.style.setProperty('--height', height + 'px')- $store.dispatch('ui/setAppDimensions', { width, height })- }-- const touchClassNames = computed(() => ({- isNotTouchDevice: !isTouchDevice.value,- isTouchDevice: isTouchDevice.value- }))-- onMounted(() => {- getPageDimensions()- window.addEventListener('resize', debounce(getPageDimensions, 300))+const keepAliveInclude = []++/**+ * Update modal+ */+const isShowUpdateApp = ref(false)+onMounted(async () => {+ const workbox = await window.$workbox+ if (workbox) {+ workbox.addEventListener('installed', (event) => {+ isShowUpdateApp.value = event.isUpdate})-- return {- keepAliveInclude,- isShowPeriodsNamesModal,- ui,- statCurrentPeriod,- touchClassNames,- isShowUpdateApp- }}})++/**+ * Detect touch device+ */+const isTouchDevice = ref(false)+onMounted(() => { isTouchDevice.value = detectTouch() })++/**+ * Page dimensions+ */+function getPageDimensions () {+ const width = document.documentElement.clientWidth+ const height = document.documentElement.clientHeight+ document.documentElement.style.setProperty('--height', height + 'px')+ $store.dispatch('ui/setAppDimensions', { width, height })+}++const touchClassNames = computed(() => ({+ isNotTouchDevice: !isTouchDevice.value,+ isTouchDevice: isTouchDevice.value+}))++onMounted(() => {+ getPageDimensions()+ window.addEventListener('resize', debounce(getPageDimensions, 300))+})</script><template lang="pug">diff --git a/package-lock.json b/package-lock.jsonindex 05ba5dd8..83bc2711 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "finapp",- "version": "3.20.1",+ "version": "3.30.3","lockfileVersion": 2,"requires": true,"packages": {"": {"name": "finapp",- "version": "3.20.1",+ "version": "3.30.3","dependencies": {"@nuxtjs/i18n": "^7.2.0","@simonwep/pickr": "1.8.2",@@ -35,6 +35,7 @@"@nuxtjs/pwa": "3.3.5","@nuxtjs/style-resources": "^1.2.1","@nuxtjs/tailwindcss": "^4.2.1",+ "@vue/runtime-dom": "^3.2.26","cross-env": "7.0.3","eslint": "^7.32.0","eslint-plugin-nuxt": "2.0.0",@@ -53,13 +54,14 @@"stylus-loader": "3.0.2","tailwindcss": "^3.0.9","typescript": "4.5.4",+ "unplugin-vue2-script-setup": "^0.9.0","vinyl-ftp": "0.6.1"}},"node_modules/@antfu/utils": {- "version": "0.3.0",- "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.3.0.tgz",- "integrity": "sha512-UU8TLr/EoXdg7OjMp0h9oDoIAVr+Z/oW9cpOxQQyrsz6Qzd2ms/1CdWx8fl2OQdFpxGmq5Vc4TwfLHId6nAZjA==",+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.4.0.tgz",+ "integrity": "sha512-gqkpvjkgFUu+s3kP+Ly33OKpo5zvVY3FDFhv5BIb98SncS3KD6DNxPfNDjwHIoyXbz1leWo1j8DtRLZ1D2Jv+Q==","dev": true,"dependencies": {"@types/throttle-debounce": "^2.1.0"@@ -125,11 +127,11 @@}},"node_modules/@babel/generator": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.7.tgz",- "integrity": "sha512-/ST3Sg8MLGY5HVYmrjOgL60ENux/HfO/CsUh7y4MalThufhE/Ff/6EibFDHi4jiDCaWfJKoqbE6oTh21c5hrRg==",+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz",+ "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==","dependencies": {- "@babel/types": "^7.16.7",+ "@babel/types": "^7.16.8","jsesc": "^2.5.1","source-map": "^0.5.0"},@@ -480,9 +482,9 @@}},"node_modules/@babel/parser": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.7.tgz",- "integrity": "sha512-sR4eaSrnM7BV7QPzGfEX5paG/6wrZM3I0HDzfIAK06ESvo9oy3xBuVBxE3MbQaKNhvg8g/ixjMWo2CGpzpHsDA==",+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.8.tgz",+ "integrity": "sha512-i7jDUfrVBWc+7OKcBzEe5n7fbv3i2fWtxKzzCvOjnzSxMfWMigAhtfJ7qzZNGFNMsCCd67+uz553dYKWXPvCKw==","bin": {"parser": "bin/babel-parser.js"},@@ -1637,18 +1639,18 @@}},"node_modules/@babel/traverse": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.7.tgz",- "integrity": "sha512-8KWJPIb8c2VvY8AJrydh6+fVRo2ODx1wYBU2398xJVq0JomuLBZmVQzLPBblJgHIGYG4znCpUZUZ0Pt2vdmVYQ==",+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.8.tgz",+ "integrity": "sha512-xe+H7JlvKsDQwXRsBhSnq1/+9c+LlQcCK3Tn/l5sbx02HYns/cn7ibp9+RV1sIUqu7hKg91NWsgHurO9dowITQ==","dependencies": {"@babel/code-frame": "^7.16.7",- "@babel/generator": "^7.16.7",+ "@babel/generator": "^7.16.8","@babel/helper-environment-visitor": "^7.16.7","@babel/helper-function-name": "^7.16.7","@babel/helper-hoist-variables": "^7.16.7","@babel/helper-split-export-declaration": "^7.16.7",- "@babel/parser": "^7.16.7",- "@babel/types": "^7.16.7",+ "@babel/parser": "^7.16.8",+ "@babel/types": "^7.16.8","debug": "^4.1.0","globals": "^11.1.0"},@@ -1657,9 +1659,9 @@}},"node_modules/@babel/types": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.7.tgz",- "integrity": "sha512-E8HuV7FO9qLpx6OtoGfUQ2cjIYnbFwvZWYBS+87EwtdMvmUPJSwykpovFB+8insbpF0uJcpr8KMUi64XZntZcg==",+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz",+ "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==","dependencies": {"@babel/helper-validator-identifier": "^7.16.7","to-fast-properties": "^2.0.0"@@ -2565,6 +2567,18 @@"node": "^14.16.0 || ^16.11.0 || ^17.0.0"}},+ "node_modules/@nuxt/bridge/node_modules/@antfu/utils": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.3.0.tgz",+ "integrity": "sha512-UU8TLr/EoXdg7OjMp0h9oDoIAVr+Z/oW9cpOxQQyrsz6Qzd2ms/1CdWx8fl2OQdFpxGmq5Vc4TwfLHId6nAZjA==",+ "dev": true,+ "dependencies": {+ "@types/throttle-debounce": "^2.1.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },"node_modules/@nuxt/bridge/node_modules/@vitejs/plugin-legacy": {"version": "1.6.4","resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-1.6.4.tgz",@@ -2619,6 +2633,21 @@"node": ">= 0.10.0"}},+ "node_modules/@nuxt/bridge/node_modules/domhandler": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.3.0.tgz",+ "integrity": "sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==",+ "dev": true,+ "dependencies": {+ "domelementtype": "^2.0.1"+ },+ "engines": {+ "node": ">= 4"+ },+ "funding": {+ "url": "https://github.com/fb55/domhandler?sponsor=1"+ }+ },"node_modules/@nuxt/bridge/node_modules/esbuild": {"version": "0.13.15","resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.13.15.tgz",@@ -2869,6 +2898,21 @@"win32"]},+ "node_modules/@nuxt/bridge/node_modules/htmlparser2": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-5.0.1.tgz",+ "integrity": "sha512-vKZZra6CSe9qsJzh0BjBGXo8dvzNsq/oGvsjfRdOrrryfeD9UOBEEQdeoqCRmKZchF5h2zOBMQ6YuQ0uRUmdbQ==",+ "dev": true,+ "dependencies": {+ "domelementtype": "^2.0.1",+ "domhandler": "^3.3.0",+ "domutils": "^2.4.2",+ "entities": "^2.0.0"+ },+ "funding": {+ "url": "https://github.com/fb55/htmlparser2?sponsor=1"+ }+ },"node_modules/@nuxt/bridge/node_modules/querystring": {"version": "0.2.1","resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz",@@ -2913,6 +2957,40 @@}}},+ "node_modules/@nuxt/bridge/node_modules/unplugin-vue2-script-setup": {+ "version": "0.8.3",+ "resolved": "https://registry.npmjs.org/unplugin-vue2-script-setup/-/unplugin-vue2-script-setup-0.8.3.tgz",+ "integrity": "sha512-UNAnB/mwxWlJz5i+PWiIJMug8pKb84R9CHOBBJ/OUyZdT90nIsRVuEXkofCUz1KIYCp1r4gxcmxlnNe0LL3q5w==",+ "dev": true,+ "dependencies": {+ "@antfu/utils": "^0.3.0",+ "@babel/core": "^7.16.0",+ "@babel/generator": "^7.16.0",+ "@babel/parser": "^7.16.4",+ "@babel/traverse": "^7.16.3",+ "@babel/types": "^7.16.0",+ "@rollup/pluginutils": "^4.1.1",+ "@vue/compiler-core": "^3.2.26",+ "@vue/compiler-dom": "^3.2.26",+ "@vue/ref-transform": "^3.2.24",+ "@vue/shared": "^3.2.26",+ "defu": "^5.0.0",+ "htmlparser2": "5.0.1",+ "magic-string": "^0.25.7",+ "unplugin": "^0.2.21"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ },+ "peerDependencies": {+ "pug": "^3.0.2"+ },+ "peerDependenciesMeta": {+ "pug": {+ "optional": true+ }+ }+ },"node_modules/@nuxt/bridge/node_modules/vite": {"version": "2.7.10","resolved": "https://registry.npmjs.org/vite/-/vite-2.7.10.tgz",@@ -6534,7 +6612,6 @@"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.26.tgz","integrity": "sha512-h38bxCZLW6oFJVDlCcAiUKFnXI8xP8d+eO0pcDxx+7dQfSPje2AO6M9S9QO6MrxQB7fGP0DH0dYQ8ksf6hrXKQ==","dev": true,- "peer": true,"dependencies": {"@vue/shared": "3.2.26"}@@ -6544,7 +6621,6 @@"resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.26.tgz","integrity": "sha512-XKMyuCmzNA7nvFlYhdKwD78rcnmPb7q46uoR00zkX6yZrUmcCQ5OikiwUEVbvNhL5hBJuvbSO95jB5zkUon+eQ==","dev": true,- "peer": true,"dependencies": {"@babel/parser": "^7.16.4","@vue/compiler-core": "3.2.26",@@ -6598,7 +6674,6 @@"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.26.tgz","integrity": "sha512-BcYi7qZ9Nn+CJDJrHQ6Zsmxei2hDW0L6AB4vPvUQGBm2fZyC0GXd/4nVbyA2ubmuhctD5RbYY8L+5GUJszv9mQ==","dev": true,- "peer": true,"dependencies": {"@vue/reactivity": "3.2.26","@vue/shared": "3.2.26"@@ -6609,7 +6684,6 @@"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.26.tgz","integrity": "sha512-dY56UIiZI+gjc4e8JQBwAifljyexfVCkIAu/WX8snh8vSOt/gMSEGwPRcl2UpYpBYeyExV8WCbgvwWRNt9cHhQ==","dev": true,- "peer": true,"dependencies": {"@vue/runtime-core": "3.2.26","@vue/shared": "3.2.26",@@ -10874,8 +10948,7 @@"version": "2.6.19","resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.19.tgz","integrity": "sha512-ZVxXaNy28/k3kJg0Fou5MiYpp88j7H9hLZp8PDC3jV0WFjfH5E9xHb56L0W59cPbKbcHXeP4qyT8PrHp8t6LcQ==",- "dev": true,- "peer": true+ "dev": true},"node_modules/cuint": {"version": "0.2.2",@@ -27951,27 +28024,57 @@"node": ">= 0.8"}},+ "node_modules/unplugin": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-0.3.0.tgz",+ "integrity": "sha512-9yLlOo+XC4NdIRgpkDSHOAHkQDq2x4mbuVNO/eKVa3C8WTn5wWGfzEFfRJFL8euqnX3Gf7hEur0AhXxy+WSwkg==",+ "dev": true,+ "dependencies": {+ "webpack-virtual-modules": "^0.4.3"+ },+ "peerDependencies": {+ "esbuild": ">=0.13",+ "rollup": "^2.50.0",+ "vite": "^2.3.0",+ "webpack": "4 || 5"+ },+ "peerDependenciesMeta": {+ "esbuild": {+ "optional": true+ },+ "rollup": {+ "optional": true+ },+ "vite": {+ "optional": true+ },+ "webpack": {+ "optional": true+ }+ }+ },"node_modules/unplugin-vue2-script-setup": {- "version": "0.8.3",- "resolved": "https://registry.npmjs.org/unplugin-vue2-script-setup/-/unplugin-vue2-script-setup-0.8.3.tgz",- "integrity": "sha512-UNAnB/mwxWlJz5i+PWiIJMug8pKb84R9CHOBBJ/OUyZdT90nIsRVuEXkofCUz1KIYCp1r4gxcmxlnNe0LL3q5w==",+ "version": "0.9.0",+ "resolved": "https://registry.npmjs.org/unplugin-vue2-script-setup/-/unplugin-vue2-script-setup-0.9.0.tgz",+ "integrity": "sha512-BvQV0mBwKoYioppCMJr6HPowrv7m4IHdXjYZYwGxXh03b2JWbuX8g//OSy119TB8cgb+vWmLG+K+OTmk+ybUCg==","dev": true,"dependencies": {- "@antfu/utils": "^0.3.0",- "@babel/core": "^7.16.0",- "@babel/generator": "^7.16.0",- "@babel/parser": "^7.16.4",- "@babel/traverse": "^7.16.3",- "@babel/types": "^7.16.0",- "@rollup/pluginutils": "^4.1.1",+ "@antfu/utils": "^0.4.0",+ "@babel/core": "^7.16.7",+ "@babel/generator": "^7.16.8",+ "@babel/parser": "^7.16.8",+ "@babel/traverse": "^7.16.8",+ "@babel/types": "^7.16.8",+ "@rollup/pluginutils": "^4.1.2","@vue/compiler-core": "^3.2.26","@vue/compiler-dom": "^3.2.26",- "@vue/ref-transform": "^3.2.24",+ "@vue/reactivity-transform": "^3.2.26","@vue/shared": "^3.2.26","defu": "^5.0.0","htmlparser2": "5.0.1","magic-string": "^0.25.7",- "unplugin": "^0.2.21"+ "tslib": "^2.3.1",+ "unplugin": "^0.3.0"},"funding": {"url": "https://github.com/sponsors/antfu"@@ -28015,31 +28118,6 @@"url": "https://github.com/fb55/htmlparser2?sponsor=1"}},- "node_modules/unplugin-vue2-script-setup/node_modules/unplugin": {- "version": "0.2.21",- "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-0.2.21.tgz",- "integrity": "sha512-IJ15/L5XbhnV7J09Zjk0FT5HEkBjkXucWAXQWRsmEtUxmmxwh23yavrmDbCF6ZPxWiVB28+wnKIHePTRRpQPbQ==",- "dev": true,- "dependencies": {- "webpack-virtual-modules": "^0.4.3"- },- "peerDependencies": {- "rollup": "^2.50.0",- "vite": "^2.3.0",- "webpack": "4 || 5"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- },- "vite": {- "optional": true- },- "webpack": {- "optional": true- }- }- },"node_modules/unquote": {"version": "1.1.1","resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz",@@ -30397,9 +30475,9 @@},"dependencies": {"@antfu/utils": {- "version": "0.3.0",- "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.3.0.tgz",- "integrity": "sha512-UU8TLr/EoXdg7OjMp0h9oDoIAVr+Z/oW9cpOxQQyrsz6Qzd2ms/1CdWx8fl2OQdFpxGmq5Vc4TwfLHId6nAZjA==",+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.4.0.tgz",+ "integrity": "sha512-gqkpvjkgFUu+s3kP+Ly33OKpo5zvVY3FDFhv5BIb98SncS3KD6DNxPfNDjwHIoyXbz1leWo1j8DtRLZ1D2Jv+Q==","dev": true,"requires": {"@types/throttle-debounce": "^2.1.0"@@ -30448,11 +30526,11 @@}},"@babel/generator": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.7.tgz",- "integrity": "sha512-/ST3Sg8MLGY5HVYmrjOgL60ENux/HfO/CsUh7y4MalThufhE/Ff/6EibFDHi4jiDCaWfJKoqbE6oTh21c5hrRg==",+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz",+ "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==","requires": {- "@babel/types": "^7.16.7",+ "@babel/types": "^7.16.8","jsesc": "^2.5.1","source-map": "^0.5.0"}@@ -30711,9 +30789,9 @@}},"@babel/parser": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.7.tgz",- "integrity": "sha512-sR4eaSrnM7BV7QPzGfEX5paG/6wrZM3I0HDzfIAK06ESvo9oy3xBuVBxE3MbQaKNhvg8g/ixjMWo2CGpzpHsDA=="+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.8.tgz",+ "integrity": "sha512-i7jDUfrVBWc+7OKcBzEe5n7fbv3i2fWtxKzzCvOjnzSxMfWMigAhtfJ7qzZNGFNMsCCd67+uz553dYKWXPvCKw=="},"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {"version": "7.16.7",@@ -31461,26 +31539,26 @@}},"@babel/traverse": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.7.tgz",- "integrity": "sha512-8KWJPIb8c2VvY8AJrydh6+fVRo2ODx1wYBU2398xJVq0JomuLBZmVQzLPBblJgHIGYG4znCpUZUZ0Pt2vdmVYQ==",+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.8.tgz",+ "integrity": "sha512-xe+H7JlvKsDQwXRsBhSnq1/+9c+LlQcCK3Tn/l5sbx02HYns/cn7ibp9+RV1sIUqu7hKg91NWsgHurO9dowITQ==","requires": {"@babel/code-frame": "^7.16.7",- "@babel/generator": "^7.16.7",+ "@babel/generator": "^7.16.8","@babel/helper-environment-visitor": "^7.16.7","@babel/helper-function-name": "^7.16.7","@babel/helper-hoist-variables": "^7.16.7","@babel/helper-split-export-declaration": "^7.16.7",- "@babel/parser": "^7.16.7",- "@babel/types": "^7.16.7",+ "@babel/parser": "^7.16.8",+ "@babel/types": "^7.16.8","debug": "^4.1.0","globals": "^11.1.0"}},"@babel/types": {- "version": "7.16.7",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.7.tgz",- "integrity": "sha512-E8HuV7FO9qLpx6OtoGfUQ2cjIYnbFwvZWYBS+87EwtdMvmUPJSwykpovFB+8insbpF0uJcpr8KMUi64XZntZcg==",+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz",+ "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==","requires": {"@babel/helper-validator-identifier": "^7.16.7","to-fast-properties": "^2.0.0"@@ -32224,6 +32302,15 @@"vue-template-compiler": "^2.6.14"},"dependencies": {+ "@antfu/utils": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.3.0.tgz",+ "integrity": "sha512-UU8TLr/EoXdg7OjMp0h9oDoIAVr+Z/oW9cpOxQQyrsz6Qzd2ms/1CdWx8fl2OQdFpxGmq5Vc4TwfLHId6nAZjA==",+ "dev": true,+ "requires": {+ "@types/throttle-debounce": "^2.1.0"+ }+ },"@vitejs/plugin-legacy": {"version": "1.6.4","resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-1.6.4.tgz",@@ -32264,6 +32351,15 @@"bluebird": "^3.7.2"}},+ "domhandler": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.3.0.tgz",+ "integrity": "sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==",+ "dev": true,+ "requires": {+ "domelementtype": "^2.0.1"+ }+ },"esbuild": {"version": "0.13.15","resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.13.15.tgz",@@ -32408,6 +32504,18 @@"dev": true,"optional": true},+ "htmlparser2": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-5.0.1.tgz",+ "integrity": "sha512-vKZZra6CSe9qsJzh0BjBGXo8dvzNsq/oGvsjfRdOrrryfeD9UOBEEQdeoqCRmKZchF5h2zOBMQ6YuQ0uRUmdbQ==",+ "dev": true,+ "requires": {+ "domelementtype": "^2.0.1",+ "domhandler": "^3.3.0",+ "domutils": "^2.4.2",+ "entities": "^2.0.0"+ }+ },"querystring": {"version": "0.2.1","resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz",@@ -32429,6 +32537,29 @@"webpack-virtual-modules": "^0.4.3"}},+ "unplugin-vue2-script-setup": {+ "version": "0.8.3",+ "resolved": "https://registry.npmjs.org/unplugin-vue2-script-setup/-/unplugin-vue2-script-setup-0.8.3.tgz",+ "integrity": "sha512-UNAnB/mwxWlJz5i+PWiIJMug8pKb84R9CHOBBJ/OUyZdT90nIsRVuEXkofCUz1KIYCp1r4gxcmxlnNe0LL3q5w==",+ "dev": true,+ "requires": {+ "@antfu/utils": "^0.3.0",+ "@babel/core": "^7.16.0",+ "@babel/generator": "^7.16.0",+ "@babel/parser": "^7.16.4",+ "@babel/traverse": "^7.16.3",+ "@babel/types": "^7.16.0",+ "@rollup/pluginutils": "^4.1.1",+ "@vue/compiler-core": "^3.2.26",+ "@vue/compiler-dom": "^3.2.26",+ "@vue/ref-transform": "^3.2.24",+ "@vue/shared": "^3.2.26",+ "defu": "^5.0.0",+ "htmlparser2": "5.0.1",+ "magic-string": "^0.25.7",+ "unplugin": "^0.2.21"+ }+ },"vite": {"version": "2.7.10","resolved": "https://registry.npmjs.org/vite/-/vite-2.7.10.tgz",@@ -35376,7 +35507,6 @@"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.26.tgz","integrity": "sha512-h38bxCZLW6oFJVDlCcAiUKFnXI8xP8d+eO0pcDxx+7dQfSPje2AO6M9S9QO6MrxQB7fGP0DH0dYQ8ksf6hrXKQ==","dev": true,- "peer": true,"requires": {"@vue/shared": "3.2.26"}@@ -35386,7 +35516,6 @@"resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.26.tgz","integrity": "sha512-XKMyuCmzNA7nvFlYhdKwD78rcnmPb7q46uoR00zkX6yZrUmcCQ5OikiwUEVbvNhL5hBJuvbSO95jB5zkUon+eQ==","dev": true,- "peer": true,"requires": {"@babel/parser": "^7.16.4","@vue/compiler-core": "3.2.26",@@ -35439,7 +35568,6 @@"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.26.tgz","integrity": "sha512-BcYi7qZ9Nn+CJDJrHQ6Zsmxei2hDW0L6AB4vPvUQGBm2fZyC0GXd/4nVbyA2ubmuhctD5RbYY8L+5GUJszv9mQ==","dev": true,- "peer": true,"requires": {"@vue/reactivity": "3.2.26","@vue/shared": "3.2.26"@@ -35450,7 +35578,6 @@"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.26.tgz","integrity": "sha512-dY56UIiZI+gjc4e8JQBwAifljyexfVCkIAu/WX8snh8vSOt/gMSEGwPRcl2UpYpBYeyExV8WCbgvwWRNt9cHhQ==","dev": true,- "peer": true,"requires": {"@vue/runtime-core": "3.2.26","@vue/shared": "3.2.26",@@ -38919,8 +39046,7 @@"version": "2.6.19","resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.19.tgz","integrity": "sha512-ZVxXaNy28/k3kJg0Fou5MiYpp88j7H9hLZp8PDC3jV0WFjfH5E9xHb56L0W59cPbKbcHXeP4qyT8PrHp8t6LcQ==",- "dev": true,- "peer": true+ "dev": true},"cuint": {"version": "0.2.2",@@ -52197,27 +52323,37 @@"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz","integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="},+ "unplugin": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-0.3.0.tgz",+ "integrity": "sha512-9yLlOo+XC4NdIRgpkDSHOAHkQDq2x4mbuVNO/eKVa3C8WTn5wWGfzEFfRJFL8euqnX3Gf7hEur0AhXxy+WSwkg==",+ "dev": true,+ "requires": {+ "webpack-virtual-modules": "^0.4.3"+ }+ },"unplugin-vue2-script-setup": {- "version": "0.8.3",- "resolved": "https://registry.npmjs.org/unplugin-vue2-script-setup/-/unplugin-vue2-script-setup-0.8.3.tgz",- "integrity": "sha512-UNAnB/mwxWlJz5i+PWiIJMug8pKb84R9CHOBBJ/OUyZdT90nIsRVuEXkofCUz1KIYCp1r4gxcmxlnNe0LL3q5w==",+ "version": "0.9.0",+ "resolved": "https://registry.npmjs.org/unplugin-vue2-script-setup/-/unplugin-vue2-script-setup-0.9.0.tgz",+ "integrity": "sha512-BvQV0mBwKoYioppCMJr6HPowrv7m4IHdXjYZYwGxXh03b2JWbuX8g//OSy119TB8cgb+vWmLG+K+OTmk+ybUCg==","dev": true,"requires": {- "@antfu/utils": "^0.3.0",- "@babel/core": "^7.16.0",- "@babel/generator": "^7.16.0",- "@babel/parser": "^7.16.4",- "@babel/traverse": "^7.16.3",- "@babel/types": "^7.16.0",- "@rollup/pluginutils": "^4.1.1",+ "@antfu/utils": "^0.4.0",+ "@babel/core": "^7.16.7",+ "@babel/generator": "^7.16.8",+ "@babel/parser": "^7.16.8",+ "@babel/traverse": "^7.16.8",+ "@babel/types": "^7.16.8",+ "@rollup/pluginutils": "^4.1.2","@vue/compiler-core": "^3.2.26","@vue/compiler-dom": "^3.2.26",- "@vue/ref-transform": "^3.2.24",+ "@vue/reactivity-transform": "^3.2.26","@vue/shared": "^3.2.26","defu": "^5.0.0","htmlparser2": "5.0.1","magic-string": "^0.25.7",- "unplugin": "^0.2.21"+ "tslib": "^2.3.1",+ "unplugin": "^0.3.0"},"dependencies": {"domhandler": {@@ -52240,15 +52376,6 @@"domutils": "^2.4.2","entities": "^2.0.0"}- },- "unplugin": {- "version": "0.2.21",- "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-0.2.21.tgz",- "integrity": "sha512-IJ15/L5XbhnV7J09Zjk0FT5HEkBjkXucWAXQWRsmEtUxmmxwh23yavrmDbCF6ZPxWiVB28+wnKIHePTRRpQPbQ==",- "dev": true,- "requires": {- "webpack-virtual-modules": "^0.4.3"- }}}},diff --git a/package.json b/package.jsonindex b87a7b82..71ff59f2 100644--- a/package.json+++ b/package.json@@ -39,6 +39,7 @@"@nuxtjs/pwa": "3.3.5","@nuxtjs/style-resources": "^1.2.1","@nuxtjs/tailwindcss": "^4.2.1",+ "@vue/runtime-dom": "^3.2.26","cross-env": "7.0.3","eslint": "^7.32.0","eslint-plugin-nuxt": "2.0.0",@@ -57,6 +58,7 @@"stylus-loader": "3.0.2","tailwindcss": "^3.0.9","typescript": "4.5.4",+ "unplugin-vue2-script-setup": "^0.9.0","vinyl-ftp": "0.6.1"}}diff --git a/tsconfig.json b/tsconfig.jsonindex b2aa7eae..f8e5469c 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -2,5 +2,6 @@"extends": "./.nuxt/tsconfig.json","exclude": ["node_modules"- ]+ ],+ "noUnusedLocals": true}