From ed9038d3c8e4773301bff3eec1cf84f0de536298 Mon Sep 17 00:00:00 2001 From: Yassine El Haddad Date: Wed, 25 Dec 2024 17:24:43 +0100 Subject: [PATCH] Integrated the new search API --- docs/.vuepress/client.ts | 6 +- docs/.vuepress/theme/drawer/Drawer.vue | 59 ++-- docs/.vuepress/theme/drawer/DrawerSearch.vue | 163 +++++++--- .../theme/drawer/DrawerSearchResult.vue | 289 ++++++++++-------- package.json | 3 +- 5 files changed, 309 insertions(+), 211 deletions(-) diff --git a/docs/.vuepress/client.ts b/docs/.vuepress/client.ts index 14d7bdfe..a0e4523f 100644 --- a/docs/.vuepress/client.ts +++ b/docs/.vuepress/client.ts @@ -77,9 +77,9 @@ export default defineClientConfig({ appId: "0TCNL6CGX8", }, - MAX_ALGOLIA_VISIBLE_RESULT: 20, - MAX_ALGOLIA_VISIBLE_ROWS: 15, - MAX_ALGOLIA_HITS_PER_PAGE: 20, + MAX_VISIBLE_RESULT: 12, + MAX_VISIBLE_ROWS: 12, + MAX_HITS_PER_PAGE: 12, }) } }) diff --git a/docs/.vuepress/theme/drawer/Drawer.vue b/docs/.vuepress/theme/drawer/Drawer.vue index df25a665..2db1d2f7 100644 --- a/docs/.vuepress/theme/drawer/Drawer.vue +++ b/docs/.vuepress/theme/drawer/Drawer.vue @@ -11,19 +11,15 @@

close

-
-
-
-
-

Home - breadcrumb icon - Documentation -

-
- -
-
+
+
+
+ +
+ +
+
@@ -32,10 +28,9 @@ + +.spinner + border 4px solid rgba(0, 0, 0, 0.1) + border-top 4px solid #6ccc93 + border-radius 50% + width 20px + height 20px + animation spin 1s linear infinite + +@keyframes spin + 0% + transform rotate(0deg) + 100% + transform rotate(360deg) + \ No newline at end of file diff --git a/docs/.vuepress/theme/drawer/DrawerSearchResult.vue b/docs/.vuepress/theme/drawer/DrawerSearchResult.vue index 901a3e8a..fd3ea73b 100644 --- a/docs/.vuepress/theme/drawer/DrawerSearchResult.vue +++ b/docs/.vuepress/theme/drawer/DrawerSearchResult.vue @@ -1,168 +1,205 @@