From cc49dd59bf2c270aec09824b69577312000ee4ed Mon Sep 17 00:00:00 2001
From: Ahmed Mayara <99325011+ahmedmayara@users.noreply.github.com>
Date: Wed, 20 Sep 2023 06:04:33 +0100
Subject: [PATCH] feat: add command palette (#59)
* feat: add command palette
* fix: add command empty
---------
Co-authored-by: zernonia <59365435+zernonia@users.noreply.github.com>
---
apps/www/.vitepress/theme/components/Kbd.vue | 37 ++++++
.../.vitepress/theme/layout/MainLayout.vue | 125 ++++++++++++++++--
.../default/ui/command/CommandGroup.vue | 2 +-
.../default/ui/dialog/DialogContent.vue | 4 +-
4 files changed, 155 insertions(+), 13 deletions(-)
create mode 100644 apps/www/.vitepress/theme/components/Kbd.vue
diff --git a/apps/www/.vitepress/theme/components/Kbd.vue b/apps/www/.vitepress/theme/components/Kbd.vue
new file mode 100644
index 000000000..7e3bd02cc
--- /dev/null
+++ b/apps/www/.vitepress/theme/components/Kbd.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/apps/www/.vitepress/theme/layout/MainLayout.vue b/apps/www/.vitepress/theme/layout/MainLayout.vue
index 272fa0c88..8a607f98f 100644
--- a/apps/www/.vitepress/theme/layout/MainLayout.vue
+++ b/apps/www/.vitepress/theme/layout/MainLayout.vue
@@ -1,30 +1,39 @@
@@ -81,19 +111,19 @@ watch(() => $route.path, (n) => {
-
+
$route.path, (n) => {
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandGroup.vue b/apps/www/src/lib/registry/default/ui/command/CommandGroup.vue
index 1d994b9a2..f74f38378 100644
--- a/apps/www/src/lib/registry/default/ui/command/CommandGroup.vue
+++ b/apps/www/src/lib/registry/default/ui/command/CommandGroup.vue
@@ -11,7 +11,7 @@ const props = defineProps
{{ heading }}
diff --git a/apps/www/src/lib/registry/default/ui/dialog/DialogContent.vue b/apps/www/src/lib/registry/default/ui/dialog/DialogContent.vue
index 9925a20aa..36a011308 100644
--- a/apps/www/src/lib/registry/default/ui/dialog/DialogContent.vue
+++ b/apps/www/src/lib/registry/default/ui/dialog/DialogContent.vue
@@ -33,9 +33,9 @@ const emitsAsProps = useEmitAsProps(emits)
-
+
Close