From 32940eab36f4f729dd0390dca98f18656240d60d Mon Sep 17 00:00:00 2001 From: Yusuke Yamada Date: Wed, 17 May 2023 23:46:03 +0900 Subject: [PATCH] =?UTF-8?q?Vue=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E5=86=85=E3=81=AE=E5=9E=8B=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92?= =?UTF-8?q?=E6=B8=9B=E3=82=89=E3=81=99=20(#1295)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Hiroshiba --- package-lock.json | 408 +++++++++++++------------ package.json | 2 +- src/components/EngineManageDialog.vue | 7 +- src/components/HotkeySettingDialog.vue | 10 +- src/components/LibraryPolicy.vue | 32 +- src/components/MenuBar.vue | 15 +- src/components/MenuItem.vue | 5 - src/helpers/map.ts | 37 +++ tests/unit/lib/map.spec.ts | 63 ++++ 9 files changed, 347 insertions(+), 232 deletions(-) create mode 100644 src/helpers/map.ts create mode 100644 tests/unit/lib/map.spec.ts diff --git a/package-lock.json b/package-lock.json index 5fdbdceda1..69452bb0c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -89,7 +89,7 @@ "vite-plugin-node-polyfills": "0.7.0", "vite-tsconfig-paths": "4.0.5", "vitest": "0.28.5", - "vue-tsc": "0.40.13", + "vue-tsc": "1.4.2", "yargs": "17.2.1" }, "engines": { @@ -2459,132 +2459,85 @@ "node": ">=0.3.1" } }, - "node_modules/@volar/code-gen": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/code-gen/-/code-gen-0.40.13.tgz", - "integrity": "sha512-4gShBWuMce868OVvgyA1cU5WxHbjfEme18Tw6uVMfweZCF5fB2KECG0iPrA9D54vHk3FeHarODNwgIaaFfUBlA==", + "node_modules/@volar/language-core": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-1.4.0.tgz", + "integrity": "sha512-zZg771L/v4MCPwM1KJxvnQ3q3QgbGJtEytivqf+PsxPr0kQ7XtwB1J30dd+YSGN869pXXZ0V6vWdHkDpWC8F3A==", "dev": true, "dependencies": { - "@volar/source-map": "0.40.13" + "@volar/source-map": "1.4.0" } }, "node_modules/@volar/source-map": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-0.40.13.tgz", - "integrity": "sha512-dbdkAB2Nxb0wLjAY5O64o3ywVWlAGONnBIoKAkXSf6qkGZM+nJxcizsoiI66K+RHQG0XqlyvjDizfnTxr+6PWg==", - "dev": true, - "dependencies": { - "@vue/reactivity": "3.2.38" - } - }, - "node_modules/@volar/source-map/node_modules/@vue/reactivity": { - "version": "3.2.38", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.38.tgz", - "integrity": "sha512-6L4myYcH9HG2M25co7/BSo0skKFHpAN8PhkNPM4xRVkyGl1K5M3Jx4rp5bsYhvYze2K4+l+pioN4e6ZwFLUVtw==", - "dev": true, - "dependencies": { - "@vue/shared": "3.2.38" - } - }, - "node_modules/@volar/source-map/node_modules/@vue/shared": { - "version": "3.2.38", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.38.tgz", - "integrity": "sha512-dTyhTIRmGXBjxJE+skC8tTWCGLCVc4wQgRRLt8+O9p5ewBAjoBwtCAkLPrtToSr1xltoe3st21Pv953aOZ7alg==", - "dev": true - }, - "node_modules/@volar/typescript-faster": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/typescript-faster/-/typescript-faster-0.40.13.tgz", - "integrity": "sha512-uy+TlcFkKoNlKEnxA4x5acxdxLyVDIXGSc8cYDNXpPKjBKXrQaetzCzlO3kVBqu1VLMxKNGJMTKn35mo+ILQmw==", - "dev": true, - "dependencies": { - "semver": "^7.3.7" - } - }, - "node_modules/@volar/typescript-faster/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-1.4.0.tgz", + "integrity": "sha512-gkV8ol9qtP7aMdgijc8a5Yoxxoo90TT55YCi9bsMbKxEUDsOAnlciFNlijR9Ebe42d67GV3w15/RzjveTRNGBw==", "dev": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" + "muggle-string": "^0.2.2" } }, - "node_modules/@volar/typescript-faster/node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "node_modules/@volar/typescript": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-1.4.0.tgz", + "integrity": "sha512-r6OMHj/LeS86iQy3LEjjS+qpmHr9I7BiH8gAwp9WEJP76FHlMPi/EPDQxhf3VcMQ/w6Pi5aBczqI+I3akr9t4g==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "@volar/language-core": "1.4.0" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "typescript": "*" } }, - "node_modules/@volar/typescript-faster/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@volar/vue-language-core": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/vue-language-core/-/vue-language-core-0.40.13.tgz", - "integrity": "sha512-QkCb8msi2KUitTdM6Y4kAb7/ZlEvuLcbBFOC2PLBlFuoZwyxvSP7c/dBGmKGtJlEvMX0LdCyrg5V2aBYxD38/Q==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@volar/vue-language-core/-/vue-language-core-1.4.2.tgz", + "integrity": "sha512-bDdFowfnyHI7udELEgUWukOh4l9jVTaxb9jZtj0GxUp0Mjj0u81d9+jE2UC3fFJpbndQLGFR6F+ffguHgmrj6Q==", "dev": true, "dependencies": { - "@volar/code-gen": "0.40.13", - "@volar/source-map": "0.40.13", - "@vue/compiler-core": "^3.2.38", - "@vue/compiler-dom": "^3.2.38", - "@vue/compiler-sfc": "^3.2.38", - "@vue/reactivity": "^3.2.38", - "@vue/shared": "^3.2.38" + "@volar/language-core": "1.4.0", + "@volar/source-map": "1.4.0", + "@vue/compiler-dom": "^3.2.0", + "@vue/compiler-sfc": "^3.2.0", + "@vue/reactivity": "^3.2.0", + "@vue/shared": "^3.2.0", + "minimatch": "^9.0.0", + "muggle-string": "^0.2.2", + "vue-template-compiler": "^2.7.14" } }, - "node_modules/@volar/vue-language-core/node_modules/@vue/compiler-core": { - "version": "3.2.39", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.39.tgz", - "integrity": "sha512-mf/36OWXqWn0wsC40nwRRGheR/qoID+lZXbIuLnr4/AngM0ov8Xvv8GHunC0rKRIkh60bTqydlqTeBo49rlbqw==", + "node_modules/@volar/vue-language-core/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "dependencies": { - "@babel/parser": "^7.16.4", - "@vue/shared": "3.2.39", - "estree-walker": "^2.0.2", - "source-map": "^0.6.1" + "balanced-match": "^1.0.0" } }, - "node_modules/@volar/vue-language-core/node_modules/@vue/shared": { - "version": "3.2.39", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.39.tgz", - "integrity": "sha512-D3dl2ZB9qE6mTuWPk9RlhDeP1dgNRUKC3NJxji74A4yL8M2MwlhLKUC/49WHjrNzSPug58fWx/yFbaTzGAQSBw==", - "dev": true - }, - "node_modules/@volar/vue-language-core/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "node_modules/@volar/vue-language-core/node_modules/minimatch": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz", + "integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==", "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@volar/vue-typescript": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/vue-typescript/-/vue-typescript-0.40.13.tgz", - "integrity": "sha512-o7bNztwjs8JmbQjVkrnbZUOfm7q4B8ZYssETISN1tRaBdun6cfNqgpkvDYd+VUBh1O4CdksvN+5BUNnwAz4oCQ==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@volar/vue-typescript/-/vue-typescript-1.4.2.tgz", + "integrity": "sha512-A1m1cSvS0Pf7Sm9q0S/1riV4RQQeH2h5gGo0vR9fGK2SrAStvh4HuuxPOX4N9uMDbRsNMhC0ILXwtlvjQ/IXJA==", "dev": true, "dependencies": { - "@volar/code-gen": "0.40.13", - "@volar/typescript-faster": "0.40.13", - "@volar/vue-language-core": "0.40.13" + "@volar/typescript": "1.4.0", + "@volar/vue-language-core": "1.4.2" } }, "node_modules/@vue/compiler-core": { @@ -6441,6 +6394,12 @@ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.10.7.tgz", "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==" }, + "node_modules/de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "dev": true + }, "node_modules/debounce-fn": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz", @@ -11794,6 +11753,12 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/muggle-string": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.2.2.tgz", + "integrity": "sha512-YVE1mIJ4VpUMqZObFndk9CJu6DBJR/GB13p3tXuNbwD4XExaI5EOuRl6BHeIDxIqXZVxSfAC+y6U1Z/IxCfKUg==", + "dev": true + }, "node_modules/multistream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/multistream/-/multistream-4.1.0.tgz", @@ -16498,14 +16463,25 @@ "vue": "^3.0.0" } }, + "node_modules/vue-template-compiler": { + "version": "2.7.14", + "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", + "integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==", + "dev": true, + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, "node_modules/vue-tsc": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-0.40.13.tgz", - "integrity": "sha512-xzuN3g5PnKfJcNrLv4+mAjteMd5wLm5fRhW0034OfNJZY4WhB07vhngea/XeGn7wNYt16r7syonzvW/54dcNiA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-1.4.2.tgz", + "integrity": "sha512-8VFjVekJuFtFG+N4rEimoR0OvNubhoTIMl2dlvbpyAD40LVPR1PN2SUc2qZPnWGGRsXZAVmFgiBHX0RB20HGyA==", "dev": true, "dependencies": { - "@volar/vue-language-core": "0.40.13", - "@volar/vue-typescript": "0.40.13" + "@volar/vue-language-core": "1.4.2", + "@volar/vue-typescript": "1.4.2", + "semver": "^7.3.8" }, "bin": { "vue-tsc": "bin/vue-tsc.js" @@ -16514,6 +16490,39 @@ "typescript": "*" } }, + "node_modules/vue-tsc/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vue-tsc/node_modules/semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vue-tsc/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/vuedraggable": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-4.1.0.tgz", @@ -18883,126 +18892,78 @@ } } }, - "@volar/code-gen": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/code-gen/-/code-gen-0.40.13.tgz", - "integrity": "sha512-4gShBWuMce868OVvgyA1cU5WxHbjfEme18Tw6uVMfweZCF5fB2KECG0iPrA9D54vHk3FeHarODNwgIaaFfUBlA==", + "@volar/language-core": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-1.4.0.tgz", + "integrity": "sha512-zZg771L/v4MCPwM1KJxvnQ3q3QgbGJtEytivqf+PsxPr0kQ7XtwB1J30dd+YSGN869pXXZ0V6vWdHkDpWC8F3A==", "dev": true, "requires": { - "@volar/source-map": "0.40.13" + "@volar/source-map": "1.4.0" } }, "@volar/source-map": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-0.40.13.tgz", - "integrity": "sha512-dbdkAB2Nxb0wLjAY5O64o3ywVWlAGONnBIoKAkXSf6qkGZM+nJxcizsoiI66K+RHQG0XqlyvjDizfnTxr+6PWg==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-1.4.0.tgz", + "integrity": "sha512-gkV8ol9qtP7aMdgijc8a5Yoxxoo90TT55YCi9bsMbKxEUDsOAnlciFNlijR9Ebe42d67GV3w15/RzjveTRNGBw==", "dev": true, "requires": { - "@vue/reactivity": "3.2.38" - }, - "dependencies": { - "@vue/reactivity": { - "version": "3.2.38", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.38.tgz", - "integrity": "sha512-6L4myYcH9HG2M25co7/BSo0skKFHpAN8PhkNPM4xRVkyGl1K5M3Jx4rp5bsYhvYze2K4+l+pioN4e6ZwFLUVtw==", - "dev": true, - "requires": { - "@vue/shared": "3.2.38" - } - }, - "@vue/shared": { - "version": "3.2.38", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.38.tgz", - "integrity": "sha512-dTyhTIRmGXBjxJE+skC8tTWCGLCVc4wQgRRLt8+O9p5ewBAjoBwtCAkLPrtToSr1xltoe3st21Pv953aOZ7alg==", - "dev": true - } + "muggle-string": "^0.2.2" } }, - "@volar/typescript-faster": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/typescript-faster/-/typescript-faster-0.40.13.tgz", - "integrity": "sha512-uy+TlcFkKoNlKEnxA4x5acxdxLyVDIXGSc8cYDNXpPKjBKXrQaetzCzlO3kVBqu1VLMxKNGJMTKn35mo+ILQmw==", + "@volar/typescript": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-1.4.0.tgz", + "integrity": "sha512-r6OMHj/LeS86iQy3LEjjS+qpmHr9I7BiH8gAwp9WEJP76FHlMPi/EPDQxhf3VcMQ/w6Pi5aBczqI+I3akr9t4g==", "dev": true, "requires": { - "semver": "^7.3.7" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "@volar/language-core": "1.4.0" } }, "@volar/vue-language-core": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/vue-language-core/-/vue-language-core-0.40.13.tgz", - "integrity": "sha512-QkCb8msi2KUitTdM6Y4kAb7/ZlEvuLcbBFOC2PLBlFuoZwyxvSP7c/dBGmKGtJlEvMX0LdCyrg5V2aBYxD38/Q==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@volar/vue-language-core/-/vue-language-core-1.4.2.tgz", + "integrity": "sha512-bDdFowfnyHI7udELEgUWukOh4l9jVTaxb9jZtj0GxUp0Mjj0u81d9+jE2UC3fFJpbndQLGFR6F+ffguHgmrj6Q==", "dev": true, "requires": { - "@volar/code-gen": "0.40.13", - "@volar/source-map": "0.40.13", - "@vue/compiler-core": "^3.2.38", - "@vue/compiler-dom": "^3.2.38", - "@vue/compiler-sfc": "^3.2.38", - "@vue/reactivity": "^3.2.38", - "@vue/shared": "^3.2.38" + "@volar/language-core": "1.4.0", + "@volar/source-map": "1.4.0", + "@vue/compiler-dom": "^3.2.0", + "@vue/compiler-sfc": "^3.2.0", + "@vue/reactivity": "^3.2.0", + "@vue/shared": "^3.2.0", + "minimatch": "^9.0.0", + "muggle-string": "^0.2.2", + "vue-template-compiler": "^2.7.14" }, "dependencies": { - "@vue/compiler-core": { - "version": "3.2.39", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.39.tgz", - "integrity": "sha512-mf/36OWXqWn0wsC40nwRRGheR/qoID+lZXbIuLnr4/AngM0ov8Xvv8GHunC0rKRIkh60bTqydlqTeBo49rlbqw==", + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "requires": { - "@babel/parser": "^7.16.4", - "@vue/shared": "3.2.39", - "estree-walker": "^2.0.2", - "source-map": "^0.6.1" + "balanced-match": "^1.0.0" } }, - "@vue/shared": { - "version": "3.2.39", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.39.tgz", - "integrity": "sha512-D3dl2ZB9qE6mTuWPk9RlhDeP1dgNRUKC3NJxji74A4yL8M2MwlhLKUC/49WHjrNzSPug58fWx/yFbaTzGAQSBw==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "minimatch": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz", + "integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } } } }, "@volar/vue-typescript": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/@volar/vue-typescript/-/vue-typescript-0.40.13.tgz", - "integrity": "sha512-o7bNztwjs8JmbQjVkrnbZUOfm7q4B8ZYssETISN1tRaBdun6cfNqgpkvDYd+VUBh1O4CdksvN+5BUNnwAz4oCQ==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@volar/vue-typescript/-/vue-typescript-1.4.2.tgz", + "integrity": "sha512-A1m1cSvS0Pf7Sm9q0S/1riV4RQQeH2h5gGo0vR9fGK2SrAStvh4HuuxPOX4N9uMDbRsNMhC0ILXwtlvjQ/IXJA==", "dev": true, "requires": { - "@volar/code-gen": "0.40.13", - "@volar/typescript-faster": "0.40.13", - "@volar/vue-language-core": "0.40.13" + "@volar/typescript": "1.4.0", + "@volar/vue-language-core": "1.4.2" } }, "@vue/compiler-core": { @@ -22274,6 +22235,12 @@ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.10.7.tgz", "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==" }, + "de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "dev": true + }, "debounce-fn": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz", @@ -26438,6 +26405,12 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "muggle-string": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.2.2.tgz", + "integrity": "sha512-YVE1mIJ4VpUMqZObFndk9CJu6DBJR/GB13p3tXuNbwD4XExaI5EOuRl6BHeIDxIqXZVxSfAC+y6U1Z/IxCfKUg==", + "dev": true + }, "multistream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/multistream/-/multistream-4.1.0.tgz", @@ -30039,14 +30012,51 @@ "@vue/devtools-api": "^6.0.0-beta.10" } }, + "vue-template-compiler": { + "version": "2.7.14", + "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", + "integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==", + "dev": true, + "requires": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, "vue-tsc": { - "version": "0.40.13", - "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-0.40.13.tgz", - "integrity": "sha512-xzuN3g5PnKfJcNrLv4+mAjteMd5wLm5fRhW0034OfNJZY4WhB07vhngea/XeGn7wNYt16r7syonzvW/54dcNiA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-1.4.2.tgz", + "integrity": "sha512-8VFjVekJuFtFG+N4rEimoR0OvNubhoTIMl2dlvbpyAD40LVPR1PN2SUc2qZPnWGGRsXZAVmFgiBHX0RB20HGyA==", "dev": true, "requires": { - "@volar/vue-language-core": "0.40.13", - "@volar/vue-typescript": "0.40.13" + "@volar/vue-language-core": "1.4.2", + "@volar/vue-typescript": "1.4.2", + "semver": "^7.3.8" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } } }, "vuedraggable": { diff --git a/package.json b/package.json index 72438e92fa..0fa712b1ed 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "vite-plugin-node-polyfills": "0.7.0", "vite-tsconfig-paths": "4.0.5", "vitest": "0.28.5", - "vue-tsc": "0.40.13", + "vue-tsc": "1.4.2", "yargs": "17.2.1" } } diff --git a/src/components/EngineManageDialog.vue b/src/components/EngineManageDialog.vue index d9a7d41a16..74fc74dfc1 100644 --- a/src/components/EngineManageDialog.vue +++ b/src/components/EngineManageDialog.vue @@ -276,9 +276,10 @@ " >
  • diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index 299bf9b158..cc010bdf9f 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -228,7 +228,15 @@ const hotkeyFilter = ref(""); const hotkeySettings = computed(() => store.state.hotkeySettings); -const hotkeyColumns = ref([ +// FIXME: satisfiesを使うなどで型を表現したい +const hotkeyColumns = ref< + { + name: string; + align: "left" | "right" | "center" | undefined; + label: string; + field: string; + }[] +>([ { name: "action", align: "left", diff --git a/src/components/LibraryPolicy.vue b/src/components/LibraryPolicy.vue index 9feb2ca175..46f1a8c69f 100644 --- a/src/components/LibraryPolicy.vue +++ b/src/components/LibraryPolicy.vue @@ -15,13 +15,14 @@