From 98217db270faf167a2779d00bd53fadbfd2d5f49 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Mon, 18 Sep 2023 17:40:51 +0100 Subject: [PATCH] feat: add command palette --- apps/www/.vitepress/theme/components/Kbd.vue | 37 ++++++ .../.vitepress/theme/layout/MainLayout.vue | 121 ++++++++++++++++-- .../default/ui/command/CommandGroup.vue | 2 +- .../default/ui/dialog/DialogContent.vue | 4 +- 4 files changed, 151 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 00000000..7e3bd02c --- /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 d108a057..14a2e80e 100644 --- a/apps/www/.vitepress/theme/layout/MainLayout.vue +++ b/apps/www/.vitepress/theme/layout/MainLayout.vue @@ -1,30 +1,38 @@ 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 1d994b9a..f74f3837 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 9925a20a..36a01130 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