From d3a8613bfca7f0694eb55d83ae34e742eae85bcf Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:54:33 +0800 Subject: [PATCH 1/3] fix(script/vue-apis): remove nullish data --- packages/client/data/vue-apis.json | 1 - scripts/vue-api-manifest.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/client/data/vue-apis.json b/packages/client/data/vue-apis.json index b2e161c8e..d54e2689b 100644 --- a/packages/client/data/vue-apis.json +++ b/packages/client/data/vue-apis.json @@ -281,7 +281,6 @@ "description": "compile-time-flags", "url": "https:/vuejs.org/api/compile-time-flags#VUE_PROD_HYDRATION_MISMATCH_DETAILS" }, - null, { "id": "doc:component-instance:$data", "title": "$data", diff --git a/scripts/vue-api-manifest.ts b/scripts/vue-api-manifest.ts index 75cf18b04..32c4d9409 100644 --- a/scripts/vue-api-manifest.ts +++ b/scripts/vue-api-manifest.ts @@ -59,11 +59,11 @@ const manifest = await Promise.all(files.map(async (file) => { url: `https:/vuejs.org/api${parentPath}#${path}`, } }) -})).then(r => r.filter(Boolean)) +})).then(r => r.flat(1).filter(Boolean)) const targetDir = fileURLToPath(new URL('../packages/client/data', import.meta.url)) if (!fse.existsSync(targetDir)) fse.mkdirSync(targetDir) -await fse.writeFile(`${targetDir}/vue-apis.json`, JSON.stringify(manifest.flat(1), null, 2)) +await fse.writeFile(`${targetDir}/vue-apis.json`, JSON.stringify(manifest, null, 2)) From 4c4fd6d25219d183a646dca345628d838ad214e2 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 10:58:14 +0800 Subject: [PATCH 2/3] feat: update icon --- .../client/src/components/CommandPalette.vue | 8 +++--- .../client/src/composables/state-commands.ts | 25 ++++++++++++++++--- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/packages/client/src/components/CommandPalette.vue b/packages/client/src/components/CommandPalette.vue index d0921e50c..539e9e5e9 100644 --- a/packages/client/src/components/CommandPalette.vue +++ b/packages/client/src/components/CommandPalette.vue @@ -112,8 +112,8 @@ useEventListener('keydown', (e) => { @mouseover="selectedIndex = idx" >
@@ -136,10 +136,10 @@ useEventListener('keydown', (e) => {