diff --git a/StaticData.ts b/StaticData.ts new file mode 100644 index 00000000..98152a09 --- /dev/null +++ b/StaticData.ts @@ -0,0 +1,21 @@ +import {} from '@vue/runtime-dom' + +import type { VNode } from 'vue' +const NullComponent = defineComponent({}) + +const recursiveProxy = ( + obj: Record, + depth = 0, + namespace = '' +) => { + return new Proxy(obj, { + get(target, key: string) { + const val = target[key] + const newNamespace = [namespace, key].filter(Boolean).join('.') + console.log(newNamespace) + return depth < 2 && val && typeof val === 'object' + ? recursiveProxy(val, depth + 1, newNamespace) + : val + }, + }) +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fc6b1c51..02c0c9fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,7 +20,7 @@ importers: eslint-config-prettier: 8.5.0 eslint-plugin-nuxt: 3.2.0 eslint-plugin-prettier: 4.0.0 - happy-dom: ^5.0.0 + happy-dom: ^5.3.2 husky: 8.0.1 lint-staged: 13.0.3 nuxt: npm:nuxt3@latest @@ -51,7 +51,7 @@ importers: eslint-config-prettier: 8.5.0_eslint@8.18.0 eslint-plugin-nuxt: 3.2.0_eslint@8.18.0 eslint-plugin-prettier: 4.0.0_xu6ewijrtliw5q5lksq5uixwby - happy-dom: 5.3.1 + happy-dom: 5.3.2 husky: 8.0.1 lint-staged: 13.0.3 nuxt: /nuxt3/3.0.0-rc.4-27600153.ad42023 @@ -61,7 +61,7 @@ importers: stylelint-config-prettier: 9.0.3_stylelint@14.9.1 stylelint-config-recommended-vue: 1.4.0_rbvrlex3zkw5dqq3eg5f64dp2u stylelint-config-standard: 26.0.0_stylelint@14.9.1 - vitest: 0.16.0_c8@7.11.3+happy-dom@5.3.1 + vitest: 0.16.0_c8@7.11.3+happy-dom@5.3.2 api: specifiers: @@ -603,30 +603,60 @@ packages: '@jridgewell/sourcemap-codec': 1.4.13 '@jridgewell/trace-mapping': 0.3.13 + /@jridgewell/gen-mapping/0.3.2: + resolution: {integrity: sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/set-array': 1.1.2 + '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/trace-mapping': 0.3.14 + dev: true + /@jridgewell/resolve-uri/3.0.7: resolution: {integrity: sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA==} engines: {node: '>=6.0.0'} + /@jridgewell/resolve-uri/3.0.8: + resolution: {integrity: sha512-YK5G9LaddzGbcucK4c8h5tWFmMPBvRZ/uyWmN1/SbBdIvqGUdWGkJ5BAaccgs6XbzVLsqbPJrBSFwKv3kT9i7w==} + engines: {node: '>=6.0.0'} + dev: true + /@jridgewell/set-array/1.1.1: resolution: {integrity: sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==} engines: {node: '>=6.0.0'} + /@jridgewell/set-array/1.1.2: + resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} + engines: {node: '>=6.0.0'} + dev: true + /@jridgewell/source-map/0.3.2: resolution: {integrity: sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==} dependencies: - '@jridgewell/gen-mapping': 0.3.1 - '@jridgewell/trace-mapping': 0.3.13 + '@jridgewell/gen-mapping': 0.3.2 + '@jridgewell/trace-mapping': 0.3.14 dev: true /@jridgewell/sourcemap-codec/1.4.13: resolution: {integrity: sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w==} + /@jridgewell/sourcemap-codec/1.4.14: + resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} + dev: true + /@jridgewell/trace-mapping/0.3.13: resolution: {integrity: sha512-o1xbKhp9qnIAoHJSWd6KlCZfqslL4valSF81H8ImioOAxluWYWOpWkpyktY2vnt4tbrX9XYaxovq6cgowaJp2w==} dependencies: '@jridgewell/resolve-uri': 3.0.7 '@jridgewell/sourcemap-codec': 1.4.13 + /@jridgewell/trace-mapping/0.3.14: + resolution: {integrity: sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==} + dependencies: + '@jridgewell/resolve-uri': 3.0.8 + '@jridgewell/sourcemap-codec': 1.4.14 + dev: true + /@jridgewell/trace-mapping/0.3.9: resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} dependencies: @@ -782,11 +812,11 @@ packages: - webpack dev: true - /@nuxt/kit-edge/3.0.0-rc.4-27600153.ad42023_4mifhig4dhgnrt67tg257xfjai: + /@nuxt/kit-edge/3.0.0-rc.4-27600153.ad42023_m534jlwloqhcwra3khtpc6k6dm: resolution: {integrity: sha512-1dXKAuV03YgvNM/ODOoV3SYHSI+uXZrL+nlMjXXD5lMJgUTHq2R/LMdGowQbMXhTV74iDTza3eyOF1SG5T8O4A==} engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0 || ^18.0.0} dependencies: - '@nuxt/schema': /@nuxt/schema-edge/3.0.0-rc.4-27600153.ad42023_4mifhig4dhgnrt67tg257xfjai + '@nuxt/schema': /@nuxt/schema-edge/3.0.0-rc.4-27600153.ad42023_m534jlwloqhcwra3khtpc6k6dm c12: 0.2.7 consola: 2.15.3 defu: 6.0.0 @@ -801,8 +831,8 @@ packages: pkg-types: 0.3.3 scule: 0.2.1 semver: 7.3.7 - unctx: 1.1.4_4mifhig4dhgnrt67tg257xfjai - unimport: 0.3.0_4mifhig4dhgnrt67tg257xfjai + unctx: 1.1.4_m534jlwloqhcwra3khtpc6k6dm + unimport: 0.3.0_m534jlwloqhcwra3khtpc6k6dm untyped: 0.4.4 transitivePeerDependencies: - esbuild @@ -907,7 +937,7 @@ packages: - webpack dev: true - /@nuxt/schema-edge/3.0.0-rc.4-27600153.ad42023_4mifhig4dhgnrt67tg257xfjai: + /@nuxt/schema-edge/3.0.0-rc.4-27600153.ad42023_m534jlwloqhcwra3khtpc6k6dm: resolution: {integrity: sha512-fqlPW5hHvmPm+Ap5H3VoaESThdKfko1WU3s0frk2rJIZqYHg9yunEdantFkwexlgk2z93gSpTnyknLhajiLLPw==} engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0 || ^18.0.0} dependencies: @@ -920,7 +950,7 @@ packages: scule: 0.2.1 std-env: 3.1.1 ufo: 0.8.4 - unimport: 0.3.0_4mifhig4dhgnrt67tg257xfjai + unimport: 0.3.0_m534jlwloqhcwra3khtpc6k6dm transitivePeerDependencies: - esbuild - rollup @@ -990,9 +1020,9 @@ packages: peerDependencies: vue: ^3.2.37 dependencies: - '@nuxt/kit': /@nuxt/kit-edge/3.0.0-rc.4-27600153.ad42023_4mifhig4dhgnrt67tg257xfjai + '@nuxt/kit': /@nuxt/kit-edge/3.0.0-rc.4-27600153.ad42023_m534jlwloqhcwra3khtpc6k6dm '@rollup/plugin-replace': 4.0.0_rollup@2.75.7 - '@vitejs/plugin-vue': 2.3.3_vite@2.9.12+vue@3.2.37 + '@vitejs/plugin-vue': 2.3.3_vite@2.9.13+vue@3.2.37 '@vitejs/plugin-vue-jsx': 1.3.10 autoprefixer: 10.4.7_postcss@8.4.14 chokidar: 3.5.3 @@ -1015,10 +1045,10 @@ packages: rollup: 2.75.7 rollup-plugin-visualizer: 5.6.0_rollup@2.75.7 ufo: 0.8.4 - unplugin: 0.7.0_4mifhig4dhgnrt67tg257xfjai - vite: 2.9.12 + unplugin: 0.7.0_m534jlwloqhcwra3khtpc6k6dm + vite: 2.9.13 vite-node: 0.15.2 - vite-plugin-checker: 0.4.6_vite@2.9.12 + vite-plugin-checker: 0.4.6_vite@2.9.13 vue: 3.2.37 transitivePeerDependencies: - less @@ -1271,7 +1301,7 @@ packages: /@types/concat-stream/1.6.1: resolution: {integrity: sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==} dependencies: - '@types/node': 17.0.43 + '@types/node': 8.10.66 dev: true /@types/debug/4.1.7: @@ -1302,7 +1332,7 @@ packages: /@types/form-data/0.0.33: resolution: {integrity: sha1-yayFsqX9GENbjIXZ7LUObWyJP/g=} dependencies: - '@types/node': 17.0.43 + '@types/node': 8.10.66 dev: true /@types/hast/2.3.4: @@ -1589,14 +1619,14 @@ packages: vue: ^3.2.25 dev: true - /@vitejs/plugin-vue/2.3.3_vite@2.9.12+vue@3.2.37: + /@vitejs/plugin-vue/2.3.3_vite@2.9.13+vue@3.2.37: resolution: {integrity: sha512-SmQLDyhz+6lGJhPELsBdzXGc+AcaT8stgkbiTFGpXPe8Tl1tJaBw1A6pxDqDuRsVkD8uscrkx3hA7QDOoKYtyw==} engines: {node: '>=12.0.0'} peerDependencies: vite: ^2.5.10 vue: ^3.2.25 dependencies: - vite: 2.9.12 + vite: 2.9.13 vue: 3.2.37 dev: true @@ -4293,8 +4323,8 @@ packages: /git-up/4.0.5: resolution: {integrity: sha512-YUvVDg/vX3d0syBsk/CKUTib0srcQME0JyHkL5BaYdwLsiCslPWmDSi8PUMo9pXYjrryMcmsCoCgsTpSCJEQaA==} dependencies: - is-ssh: 1.3.3 - parse-url: 6.0.0 + is-ssh: 1.4.0 + parse-url: 6.0.2 dev: true /git-url-parse/11.6.0: @@ -4425,8 +4455,8 @@ packages: radix3: 0.1.2 ufo: 0.8.4 - /happy-dom/5.3.1: - resolution: {integrity: sha512-zVb0VUIK73lMZR4e9ntaEQSRTf8/Rrz9MlO2VQMOn68aZAC3qoMPS/81Rkfva4vMR+bKXDqkeHiw7HumvvBmag==} + /happy-dom/5.3.2: + resolution: {integrity: sha512-TVTS1wGeSi3oCi0gqBA97DvsvS5nOuB2GTSdQlvxQ/JgntDjXHbf/xj1VMXenLomGjm9Keu0IW5ExBXHhoE8zQ==} dependencies: css.escape: 1.5.1 he: 1.2.0 @@ -5060,10 +5090,10 @@ packages: call-bind: 1.0.2 dev: true - /is-ssh/1.3.3: - resolution: {integrity: sha512-NKzJmQzJfEEma3w5cJNcUMxoXfDjz0Zj0eyCalHn2E6VOwlzjZo0yuO2fcBSf8zhFuVCL/82/r5gRcoi6aEPVQ==} + /is-ssh/1.4.0: + resolution: {integrity: sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==} dependencies: - protocols: 1.4.8 + protocols: 2.0.1 dev: true /is-stream/2.0.1: @@ -5245,8 +5275,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /kleur/4.1.4: - resolution: {integrity: sha512-8QADVssbrFjivHWQU7KkMgptGTl6WAcSdlbBPY4uNF+mWr6DGcKrvY2w4FQJoXch7+fKMjj0dRrL75vk3k23OA==} + /kleur/4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} engines: {node: '>=6'} dev: false @@ -6760,16 +6790,16 @@ packages: /parse-path/4.0.4: resolution: {integrity: sha512-Z2lWUis7jlmXC1jeOG9giRO2+FsuyNipeQ43HAjqAZjwSe3SEf+q/84FGPHoso3kyntbxa4c4i77t3m6fGf8cw==} dependencies: - is-ssh: 1.3.3 + is-ssh: 1.4.0 protocols: 1.4.8 - qs: 6.10.5 + qs: 6.11.0 query-string: 6.14.1 dev: true - /parse-url/6.0.0: - resolution: {integrity: sha512-cYyojeX7yIIwuJzledIHeLUBVJ6COVLeT4eF+2P6aKVzwvgKQPndCBv3+yQ7pcWjqToYwaligxzSYNNmGoMAvw==} + /parse-url/6.0.2: + resolution: {integrity: sha512-uCSjOvD3T+6B/sPWhR+QowAZcU/o4bjPrVBQBGFxcDF6J6FraCGIaDBsdoQawiaaAVdHvtqBe3w3vKlfBKySOQ==} dependencies: - is-ssh: 1.3.3 + is-ssh: 1.4.0 normalize-url: 6.1.0 parse-path: 4.0.4 protocols: 1.4.8 @@ -7418,6 +7448,10 @@ packages: resolution: {integrity: sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg==} dev: true + /protocols/2.0.1: + resolution: {integrity: sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==} + dev: true + /proxy-from-env/1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} dev: false @@ -7465,8 +7499,8 @@ packages: engines: {node: '>=0.6.0', teleport: '>=0.2.0'} dev: true - /qs/6.10.5: - resolution: {integrity: sha512-O5RlPh0VFtR78y79rgcgKK4wbAI0C5zGVLztOIdpWX6ep368q5Hv6XRxDvXuZ9q3C6v+e3n8UfZZJw7IIG27eQ==} + /qs/6.11.0: + resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==} engines: {node: '>=0.6'} dependencies: side-channel: 1.0.4 @@ -8628,7 +8662,7 @@ packages: http-basic: 8.1.3 http-response-object: 3.0.2 promise: 8.1.0 - qs: 6.10.5 + qs: 6.11.0 dev: true /through/2.3.8: @@ -8846,13 +8880,13 @@ packages: - vite - webpack - /unctx/1.1.4_4mifhig4dhgnrt67tg257xfjai: + /unctx/1.1.4_m534jlwloqhcwra3khtpc6k6dm: resolution: {integrity: sha512-fQMML+GjUpIjQa0HBrrJezo2dFpTAbQbU0/KFKw4T5wpc9deGjLHSYthdfNAo2xSWM34csI6arzedezQkqtfGw==} dependencies: acorn: 8.7.1 estree-walker: 2.0.2 magic-string: 0.26.2 - unplugin: 0.6.3_4mifhig4dhgnrt67tg257xfjai + unplugin: 0.6.3_m534jlwloqhcwra3khtpc6k6dm transitivePeerDependencies: - esbuild - rollup @@ -8963,7 +8997,7 @@ packages: - webpack dev: true - /unimport/0.3.0_4mifhig4dhgnrt67tg257xfjai: + /unimport/0.3.0_m534jlwloqhcwra3khtpc6k6dm: resolution: {integrity: sha512-RxvfvKBY+CyBmIuYSuBeosSiudgcVakdhVofy5mO5sJ3purQRc5yjLw0Lir7MKHnqe6XT1++8flgAvpxu1UkqQ==} dependencies: '@rollup/pluginutils': 4.2.1 @@ -8975,7 +9009,7 @@ packages: pathe: 0.3.0 scule: 0.2.1 strip-literal: 0.4.0 - unplugin: 0.7.0_4mifhig4dhgnrt67tg257xfjai + unplugin: 0.7.0_m534jlwloqhcwra3khtpc6k6dm transitivePeerDependencies: - esbuild - rollup @@ -9058,7 +9092,7 @@ packages: webpack-sources: 3.2.3 webpack-virtual-modules: 0.4.4 - /unplugin/0.6.3_4mifhig4dhgnrt67tg257xfjai: + /unplugin/0.6.3_m534jlwloqhcwra3khtpc6k6dm: resolution: {integrity: sha512-CoW88FQfCW/yabVc4bLrjikN9HC8dEvMU4O7B6K2jsYMPK0l6iAnd9dpJwqGcmXJKRCU9vwSsy653qg+RK0G6A==} peerDependencies: esbuild: '>=0.13' @@ -9078,7 +9112,7 @@ packages: chokidar: 3.5.3 esbuild: 0.14.47 rollup: 2.75.7 - vite: 2.9.12 + vite: 2.9.13 webpack-sources: 3.2.3 webpack-virtual-modules: 0.4.4 dev: true @@ -9105,7 +9139,7 @@ packages: webpack-sources: 3.2.3 webpack-virtual-modules: 0.4.4 - /unplugin/0.7.0_4mifhig4dhgnrt67tg257xfjai: + /unplugin/0.7.0_m534jlwloqhcwra3khtpc6k6dm: resolution: {integrity: sha512-OsiFrgybmqm5bGuaodvbLYhqUrvGuRHRMZDhddKEXTDbuQ1x+hR7M1WpQguXj03whVYjEYChhFo738cZH5RNig==} peerDependencies: esbuild: '>=0.13' @@ -9126,7 +9160,7 @@ packages: chokidar: 3.5.3 esbuild: 0.14.47 rollup: 2.75.7 - vite: 2.9.12 + vite: 2.9.13 webpack-sources: 3.2.3 webpack-virtual-modules: 0.4.4 dev: true @@ -9210,7 +9244,7 @@ packages: dependencies: dequal: 2.0.2 diff: 5.1.0 - kleur: 4.1.4 + kleur: 4.1.5 sade: 1.8.1 dev: false @@ -9275,7 +9309,7 @@ packages: kolorist: 1.5.1 mlly: 0.5.3 pathe: 0.2.0 - vite: 2.9.12 + vite: 2.9.13 transitivePeerDependencies: - less - sass @@ -9283,7 +9317,7 @@ packages: - supports-color dev: true - /vite-plugin-checker/0.4.6_vite@2.9.12: + /vite-plugin-checker/0.4.6_vite@2.9.13: resolution: {integrity: sha512-oFel33hlsc8aUspfq0ThQRpWsfrG772fmZ5qPHKUhmew6ieejd2viITlwXHIRBY6hE3U0kirXoTWwft3DdbK+g==} hasBin: true peerDependencies: @@ -9300,7 +9334,7 @@ packages: npm-run-path: 4.0.1 strip-ansi: 6.0.1 tiny-invariant: 1.2.0 - vite: 2.9.12 + vite: 2.9.13 vscode-languageclient: 7.0.0 vscode-languageserver: 7.0.0 vscode-languageserver-textdocument: 1.0.5 @@ -9331,7 +9365,31 @@ packages: fsevents: 2.3.2 dev: true - /vitest/0.16.0_c8@7.11.3+happy-dom@5.3.1: + /vite/2.9.13: + resolution: {integrity: sha512-AsOBAaT0AD7Mhe8DuK+/kE4aWYFMx/i0ZNi98hJclxb4e0OhQcZYUrvLjIaQ8e59Ui7txcvKMiJC1yftqpQoDw==} + engines: {node: '>=12.2.0'} + hasBin: true + peerDependencies: + less: '*' + sass: '*' + stylus: '*' + peerDependenciesMeta: + less: + optional: true + sass: + optional: true + stylus: + optional: true + dependencies: + esbuild: 0.14.47 + postcss: 8.4.14 + resolve: 1.22.1 + rollup: 2.75.7 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /vitest/0.16.0_c8@7.11.3+happy-dom@5.3.2: resolution: {integrity: sha512-Ntp6jrM8wf2NMtamMBLkRBBdeqHkgAH/WMh5Xryts1j2ft2D8QZQbiSVFkSl4WmEQzcPP0YM069g/Ga1vtnEtg==} engines: {node: '>=v14.16.0'} hasBin: true @@ -9356,7 +9414,7 @@ packages: c8: 7.11.3 chai: 4.3.6 debug: 4.3.4 - happy-dom: 5.3.1 + happy-dom: 5.3.2 local-pkg: 0.4.1 tinypool: 0.2.1 tinyspy: 0.3.3