From 0d150ec9241de292d5763c423b426181b649a8b6 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Tue, 20 Aug 2024 13:06:21 -0500 Subject: [PATCH 1/2] add graph knowledge page --- src/lib/common/StateModal.svelte | 12 +- src/lib/scss/custom/pages/_knowledgebase.scss | 43 ++++--- src/lib/services/api-endpoints.js | 1 + src/lib/services/knowledge-base-service.js | 12 ++ src/routes/VerticalLayout/Sidebar.svelte | 8 +- .../page/knowledge-base/graph/+page.svelte | 108 ++++++++++++++++++ .../knowledge-base/{ => vector}/+page.svelte | 96 +++++++++++----- .../vector-table/vector-item.svelte} | 2 +- 8 files changed, 224 insertions(+), 58 deletions(-) create mode 100644 src/routes/page/knowledge-base/graph/+page.svelte rename src/routes/page/knowledge-base/{ => vector}/+page.svelte (74%) rename src/routes/page/knowledge-base/{knowledge-table/knowledge-item.svelte => vector/vector-table/vector-item.svelte} (99%) diff --git a/src/lib/common/StateModal.svelte b/src/lib/common/StateModal.svelte index ed88a470..8c37013d 100644 --- a/src/lib/common/StateModal.svelte +++ b/src/lib/common/StateModal.svelte @@ -1,5 +1,15 @@ diff --git a/src/routes/page/knowledge-base/graph/+page.svelte b/src/routes/page/knowledge-base/graph/+page.svelte new file mode 100644 index 00000000..7b426f3f --- /dev/null +++ b/src/routes/page/knowledge-base/graph/+page.svelte @@ -0,0 +1,108 @@ + + + + + + +
+
+ {#if showDemo} +
+
+