tycoding 9 miesięcy temu
rodzic
commit
260d11b818

+ 4 - 1
docs/langchat.sql

@@ -106,6 +106,9 @@ CREATE TABLE `aigc_docs_slice` (
 DROP TABLE IF EXISTS `aigc_knowledge`;
 CREATE TABLE `aigc_knowledge` (
                                   `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
+                                  `user_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '用户ID',
+                                  `embed_store_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '向量数据库ID',
+                                  `embed_model_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '向量模型ID',
                                   `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '知识库名称',
                                   `des` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '描述',
                                   `cover` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '封面',
@@ -117,7 +120,7 @@ CREATE TABLE `aigc_knowledge` (
 -- Records of aigc_knowledge
 -- ----------------------------
 BEGIN;
-INSERT INTO `aigc_knowledge` (`id`, `name`, `des`, `cover`, `create_time`) VALUES ('393704ac13f67fde5da674ddd0742b03', 'LangChat文档', 'LangChat官方文档', NULL, '1722766331165');
+INSERT INTO `aigc_knowledge` (`id`, `user_id`, `embed_store_id`, `embed_model_id`, `name`, `des`, `cover`, `create_time`) VALUES ('393704ac13f67fde5da674ddd0742b03', NULL, '5d57795705faccdf0ea7095a63c5e463', '1f0525bcf8721689f6a81851e5a0068b', 'LangChat文档', 'LangChat官方文档', NULL, '1722766331165');
 COMMIT;
 
 -- ----------------------------

Plik diff jest za duży
+ 4259 - 254
langchat-ui/pnpm-lock.yaml


+ 1 - 0
langchat-ui/src/styles/index.less

@@ -15,6 +15,7 @@
  */
 
 @import 'transition/index.less';
+@import 'reset.less';
 
 @keyframes running-line {
   to {

+ 53 - 0
langchat-ui/src/styles/reset.less

@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2024 LangChat. TyCoding All Rights Reserved.
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* --------------------------------------------------------------
+   reset.css
+   * Resets default browser CSS.
+-------------------------------------------------------------- */
+
+/* Reset default CSS styles for all elements */
+* {
+  margin: 0;
+  padding: 0;
+  text-decoration: none;
+  list-style: none;
+  box-sizing: border-box;
+}
+
+/* Remove focus outlines on elements */
+:focus {
+  outline: none;
+}
+
+/* Hide scrollbars (compatible with Firefox 64+) */
+*::-webkit-scrollbar {
+  display: none;
+}
+
+/* Ensure that button and select elements inherit the font family */
+button,
+select {
+  font-family: inherit;
+}
+
+/* Set the background color and text color for selected text */
+*::selection {
+  background-color: var(
+    --kungalgame-blue-1
+  ); /* Background color of selected text */
+  color: var(--kungalgame-blue-4); /* Text color of selected text */
+}

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików