fix linting
Browse files
lightrag_webui/src/components/retrieval/QuerySettings.tsx
CHANGED
@@ -37,7 +37,7 @@ export default function QuerySettings() {
|
|
37 |
<>
|
38 |
<Text
|
39 |
className="ml-1"
|
40 |
-
text={t('retrievePanel.querySettings.queryMode')}
|
41 |
tooltip={t('retrievePanel.querySettings.queryModeTooltip')}
|
42 |
side="left"
|
43 |
/>
|
|
|
37 |
<>
|
38 |
<Text
|
39 |
className="ml-1"
|
40 |
+
text={t('retrievePanel.querySettings.queryMode')}
|
41 |
tooltip={t('retrievePanel.querySettings.queryModeTooltip')}
|
42 |
side="left"
|
43 |
/>
|
lightrag_webui/src/features/RetrievalTesting.tsx
CHANGED
@@ -119,7 +119,7 @@ export default function RetrievalTesting() {
|
|
119 |
<div className="flex min-h-0 flex-1 flex-col gap-2">
|
120 |
{messages.length === 0 ? (
|
121 |
<div className="text-muted-foreground flex h-full items-center justify-center text-lg">
|
122 |
-
{t('retrievePanel.retrieval.startPrompt')}
|
123 |
</div>
|
124 |
) : (
|
125 |
messages.map((message, idx) => (
|
|
|
119 |
<div className="flex min-h-0 flex-1 flex-col gap-2">
|
120 |
{messages.length === 0 ? (
|
121 |
<div className="text-muted-foreground flex h-full items-center justify-center text-lg">
|
122 |
+
{t('retrievePanel.retrieval.startPrompt')}
|
123 |
</div>
|
124 |
) : (
|
125 |
messages.map((message, idx) => (
|
lightrag_webui/src/locales/en.json
CHANGED
@@ -8,8 +8,8 @@
|
|
8 |
"themeToggle": {
|
9 |
"switchToLight": "Switch to light theme",
|
10 |
"switchToDark": "Switch to dark theme"
|
11 |
-
}
|
12 |
-
},
|
13 |
"documentPanel": {
|
14 |
"clearDocuments": {
|
15 |
"button": "Clear",
|
@@ -20,7 +20,7 @@
|
|
20 |
"success": "Documents cleared successfully",
|
21 |
"failed": "Clear Documents Failed:\n{{message}}",
|
22 |
"error": "Clear Documents Failed:\n{{error}}"
|
23 |
-
},
|
24 |
"uploadDocuments": {
|
25 |
"button": "Upload",
|
26 |
"tooltip": "Upload documents",
|
@@ -32,7 +32,7 @@
|
|
32 |
"error": "Upload Failed:\n{{name}}\n{{error}}",
|
33 |
"generalError": "Upload Failed\n{{error}}",
|
34 |
"fileTypes": "Supported types: TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS"
|
35 |
-
},
|
36 |
"documentManager": {
|
37 |
"title": "Document Management",
|
38 |
"scanButton": "Scan",
|
@@ -81,7 +81,7 @@
|
|
81 |
"maxLayoutIterations": "Max Layout Iterations",
|
82 |
"apiKey": "API Key",
|
83 |
"enterYourAPIkey": "Enter your API key",
|
84 |
-
"save": "Save"
|
85 |
},
|
86 |
|
87 |
"zoomControl": {
|
@@ -107,7 +107,7 @@
|
|
107 |
"fullScreenControl": {
|
108 |
"fullScreen": "Full Screen",
|
109 |
"windowed": "Windowed"
|
110 |
-
}
|
111 |
},
|
112 |
"statusIndicator": {
|
113 |
"connected": "Connected",
|
@@ -149,7 +149,7 @@
|
|
149 |
"source": "Source",
|
150 |
"target": "Target",
|
151 |
"properties": "Properties"
|
152 |
-
}
|
153 |
},
|
154 |
"search": {
|
155 |
"placeholder": "Search nodes...",
|
@@ -161,7 +161,7 @@
|
|
161 |
"label": "Label",
|
162 |
"placeholder": "Search labels...",
|
163 |
"andOthers": "And {count} others"
|
164 |
-
}
|
165 |
},
|
166 |
"retrievePanel": {
|
167 |
"chatMessage": {
|
@@ -229,6 +229,6 @@
|
|
229 |
|
230 |
"streamResponse": "Stream Response",
|
231 |
"streamResponseTooltip": "If True, enables streaming output for real-time responses"
|
232 |
-
}
|
233 |
-
}
|
234 |
}
|
|
|
8 |
"themeToggle": {
|
9 |
"switchToLight": "Switch to light theme",
|
10 |
"switchToDark": "Switch to dark theme"
|
11 |
+
}
|
12 |
+
},
|
13 |
"documentPanel": {
|
14 |
"clearDocuments": {
|
15 |
"button": "Clear",
|
|
|
20 |
"success": "Documents cleared successfully",
|
21 |
"failed": "Clear Documents Failed:\n{{message}}",
|
22 |
"error": "Clear Documents Failed:\n{{error}}"
|
23 |
+
},
|
24 |
"uploadDocuments": {
|
25 |
"button": "Upload",
|
26 |
"tooltip": "Upload documents",
|
|
|
32 |
"error": "Upload Failed:\n{{name}}\n{{error}}",
|
33 |
"generalError": "Upload Failed\n{{error}}",
|
34 |
"fileTypes": "Supported types: TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS"
|
35 |
+
},
|
36 |
"documentManager": {
|
37 |
"title": "Document Management",
|
38 |
"scanButton": "Scan",
|
|
|
81 |
"maxLayoutIterations": "Max Layout Iterations",
|
82 |
"apiKey": "API Key",
|
83 |
"enterYourAPIkey": "Enter your API key",
|
84 |
+
"save": "Save"
|
85 |
},
|
86 |
|
87 |
"zoomControl": {
|
|
|
107 |
"fullScreenControl": {
|
108 |
"fullScreen": "Full Screen",
|
109 |
"windowed": "Windowed"
|
110 |
+
}
|
111 |
},
|
112 |
"statusIndicator": {
|
113 |
"connected": "Connected",
|
|
|
149 |
"source": "Source",
|
150 |
"target": "Target",
|
151 |
"properties": "Properties"
|
152 |
+
}
|
153 |
},
|
154 |
"search": {
|
155 |
"placeholder": "Search nodes...",
|
|
|
161 |
"label": "Label",
|
162 |
"placeholder": "Search labels...",
|
163 |
"andOthers": "And {count} others"
|
164 |
+
}
|
165 |
},
|
166 |
"retrievePanel": {
|
167 |
"chatMessage": {
|
|
|
229 |
|
230 |
"streamResponse": "Stream Response",
|
231 |
"streamResponseTooltip": "If True, enables streaming output for real-time responses"
|
232 |
+
}
|
233 |
+
}
|
234 |
}
|
lightrag_webui/src/locales/zh.json
CHANGED
@@ -8,8 +8,8 @@
|
|
8 |
"themeToggle": {
|
9 |
"switchToLight": "切换到亮色主题",
|
10 |
"switchToDark": "切换到暗色主题"
|
11 |
-
}
|
12 |
-
},
|
13 |
"documentPanel": {
|
14 |
"clearDocuments": {
|
15 |
"button": "清除",
|
@@ -103,11 +103,11 @@
|
|
103 |
"Force Atlas": "力导向图谱布局"
|
104 |
}
|
105 |
},
|
106 |
-
|
107 |
"fullScreenControl": {
|
108 |
"fullScreen": "全屏",
|
109 |
"windowed": "窗口模式"
|
110 |
-
}
|
111 |
},
|
112 |
"statusIndicator": {
|
113 |
"connected": "已连接",
|
@@ -149,7 +149,7 @@
|
|
149 |
"source": "源",
|
150 |
"target": "目标",
|
151 |
"properties": "属性"
|
152 |
-
}
|
153 |
},
|
154 |
"search": {
|
155 |
"placeholder": "搜索节点...",
|
@@ -161,7 +161,7 @@
|
|
161 |
"label": "标签",
|
162 |
"placeholder": "搜索标签...",
|
163 |
"andOthers": "以及其它 {count} 个"
|
164 |
-
}
|
165 |
},
|
166 |
"retrievePanel": {
|
167 |
"chatMessage": {
|
@@ -231,6 +231,5 @@
|
|
231 |
"streamResponse": "流式响应",
|
232 |
"streamResponseTooltip": "如果为 True,则启用流式输出以获得实时响应"
|
233 |
}
|
234 |
-
}
|
235 |
}
|
236 |
-
|
|
|
8 |
"themeToggle": {
|
9 |
"switchToLight": "切换到亮色主题",
|
10 |
"switchToDark": "切换到暗色主题"
|
11 |
+
}
|
12 |
+
},
|
13 |
"documentPanel": {
|
14 |
"clearDocuments": {
|
15 |
"button": "清除",
|
|
|
103 |
"Force Atlas": "力导向图谱布局"
|
104 |
}
|
105 |
},
|
106 |
+
|
107 |
"fullScreenControl": {
|
108 |
"fullScreen": "全屏",
|
109 |
"windowed": "窗口模式"
|
110 |
+
}
|
111 |
},
|
112 |
"statusIndicator": {
|
113 |
"connected": "已连接",
|
|
|
149 |
"source": "源",
|
150 |
"target": "目标",
|
151 |
"properties": "属性"
|
152 |
+
}
|
153 |
},
|
154 |
"search": {
|
155 |
"placeholder": "搜索节点...",
|
|
|
161 |
"label": "标签",
|
162 |
"placeholder": "搜索标签...",
|
163 |
"andOthers": "以及其它 {count} 个"
|
164 |
+
}
|
165 |
},
|
166 |
"retrievePanel": {
|
167 |
"chatMessage": {
|
|
|
231 |
"streamResponse": "流式响应",
|
232 |
"streamResponseTooltip": "如果为 True,则启用流式输出以获得实时响应"
|
233 |
}
|
234 |
+
}
|
235 |
}
|
|