From f2f5641b3326d7eb68673196eb681db1c550a4f9 Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Sat, 9 Mar 2024 20:21:24 +0330 Subject: [PATCH] chore: docs stuff (#400) --- .../theme/components/CustomizerCode.vue | 2 +- apps/www/.vitepress/theme/components/Logo.vue | 4 +- .../.vitepress/theme/components/MobileNav.vue | 31 +++++++- .../theme/components/theming/Theming.vue | 4 +- .../.vitepress/theme/layout/MainLayout.vue | 40 +++++------ apps/www/.vitepress/theme/style.css | 44 ++++++------ apps/www/__registry__/index.ts | 14 ++++ .../src/content/docs/components/carousel.md | 16 ++--- .../forms/components/AppearanceForm.vue | 2 +- .../examples/tasks/components/DataTable.vue | 2 +- .../components/DataTableColumnHeader.vue | 2 +- .../components/DataTableFacetedFilter.vue | 2 +- .../tasks/components/DataTablePagination.vue | 4 +- .../tasks/components/DataTableRowActions.vue | 2 +- .../tasks/components/DataTableToolbar.vue | 4 +- .../tasks/components/DataTableViewOptions.vue | 2 +- .../src/examples/tasks/components/columns.ts | 15 ++-- .../default/example/Cards/DataTable.vue | 2 +- .../default/example/CarouselThumbnails.vue | 72 +++++++++++++++++++ .../example/DataTableColumnPinningDemo.vue | 6 +- .../default/example/DataTableDemo.vue | 2 +- .../default/example/PinInputFormDemo.vue | 2 +- .../registry/default/example/SliderForm.vue | 11 +-- .../new-york/example/Cards/DataTable.vue | 4 +- .../new-york/example/CarouselThumbnails.vue | 72 +++++++++++++++++++ .../example/DataTableColumnPinningDemo.vue | 6 +- .../new-york/example/DataTableDemo.vue | 2 +- .../registry/new-york/example/DrawerDemo.vue | 4 +- .../new-york/example/DrawerDialog.vue | 10 +-- .../registry/new-york/example/SliderForm.vue | 11 +-- .../new-york/ui/calendar/Calendar.vue | 4 +- .../registry/styles/new-york/calendar.json | 4 +- apps/www/src/stores/config.ts | 3 +- 33 files changed, 296 insertions(+), 109 deletions(-) create mode 100644 apps/www/src/lib/registry/default/example/CarouselThumbnails.vue create mode 100644 apps/www/src/lib/registry/new-york/example/CarouselThumbnails.vue diff --git a/apps/www/.vitepress/theme/components/CustomizerCode.vue b/apps/www/.vitepress/theme/components/CustomizerCode.vue index 2399fce2..27aa6608 100644 --- a/apps/www/.vitepress/theme/components/CustomizerCode.vue +++ b/apps/www/.vitepress/theme/components/CustomizerCode.vue @@ -15,7 +15,7 @@ const { copy, copied } = useClipboard() const codeRef = ref() async function copyCode() { - await copy(codeRef.value?.innerText.replace(/\u00A0/g, " ") ?? '') + await copy(codeRef.value?.textContent?.replace(/\u00A0/g, ' ') ?? '') } diff --git a/apps/www/.vitepress/theme/components/Logo.vue b/apps/www/.vitepress/theme/components/Logo.vue index 6434db52..3d0b8252 100644 --- a/apps/www/.vitepress/theme/components/Logo.vue +++ b/apps/www/.vitepress/theme/components/Logo.vue @@ -2,7 +2,7 @@