Upgraded webui to show more upload options and added building without using bun to the webui
Browse files
lightrag/api/webui/assets/{index-xOR1LTkQ.js → index-BDX8o1Ld.js}
RENAMED
Binary files a/lightrag/api/webui/assets/index-xOR1LTkQ.js and b/lightrag/api/webui/assets/index-BDX8o1Ld.js differ
|
|
lightrag/api/webui/index.html
CHANGED
Binary files a/lightrag/api/webui/index.html and b/lightrag/api/webui/index.html differ
|
|
lightrag_webui/package.json
CHANGED
@@ -7,7 +7,10 @@
|
|
7 |
"dev": "bunx --bun vite",
|
8 |
"build": "bunx --bun vite build",
|
9 |
"lint": "eslint .",
|
10 |
-
"preview": "bunx --bun vite preview"
|
|
|
|
|
|
|
11 |
},
|
12 |
"dependencies": {
|
13 |
"@faker-js/faker": "^9.5.0",
|
|
|
7 |
"dev": "bunx --bun vite",
|
8 |
"build": "bunx --bun vite build",
|
9 |
"lint": "eslint .",
|
10 |
+
"preview": "bunx --bun vite preview",
|
11 |
+
"dev-no-bun": "vite",
|
12 |
+
"build-no-bun": "vite build --emptyOutDir",
|
13 |
+
"preview-no-bun": "vite preview"
|
14 |
},
|
15 |
"dependencies": {
|
16 |
"@faker-js/faker": "^9.5.0",
|
lightrag_webui/package_no_bun.json
DELETED
@@ -1,85 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "lightrag-webui",
|
3 |
-
"private": true,
|
4 |
-
"version": "0.0.0",
|
5 |
-
"type": "module",
|
6 |
-
"scripts": {
|
7 |
-
"dev": "vite",
|
8 |
-
"build": "vite build --emptyOutDir",
|
9 |
-
"lint": "eslint .",
|
10 |
-
"preview": "vite preview"
|
11 |
-
},
|
12 |
-
"dependencies": {
|
13 |
-
"@faker-js/faker": "^9.5.0",
|
14 |
-
"@radix-ui/react-alert-dialog": "^1.1.6",
|
15 |
-
"@radix-ui/react-checkbox": "^1.1.4",
|
16 |
-
"@radix-ui/react-dialog": "^1.1.6",
|
17 |
-
"@radix-ui/react-popover": "^1.1.6",
|
18 |
-
"@radix-ui/react-progress": "^1.1.2",
|
19 |
-
"@radix-ui/react-scroll-area": "^1.2.3",
|
20 |
-
"@radix-ui/react-select": "^2.1.6",
|
21 |
-
"@radix-ui/react-separator": "^1.1.2",
|
22 |
-
"@radix-ui/react-slot": "^1.1.2",
|
23 |
-
"@radix-ui/react-tabs": "^1.1.3",
|
24 |
-
"@radix-ui/react-tooltip": "^1.1.8",
|
25 |
-
"@radix-ui/react-use-controllable-state": "^1.1.0",
|
26 |
-
"@react-sigma/core": "^5.0.2",
|
27 |
-
"@react-sigma/graph-search": "^5.0.3",
|
28 |
-
"@react-sigma/layout-circlepack": "^5.0.2",
|
29 |
-
"@react-sigma/layout-circular": "^5.0.2",
|
30 |
-
"@react-sigma/layout-force": "^5.0.2",
|
31 |
-
"@react-sigma/layout-forceatlas2": "^5.0.2",
|
32 |
-
"@react-sigma/layout-noverlap": "^5.0.2",
|
33 |
-
"@react-sigma/layout-random": "^5.0.2",
|
34 |
-
"@react-sigma/minimap": "^5.0.2",
|
35 |
-
"@sigma/edge-curve": "^3.1.0",
|
36 |
-
"@sigma/node-border": "^3.0.0",
|
37 |
-
"axios": "^1.7.9",
|
38 |
-
"class-variance-authority": "^0.7.1",
|
39 |
-
"clsx": "^2.1.1",
|
40 |
-
"cmdk": "^1.0.4",
|
41 |
-
"graphology": "^0.26.0",
|
42 |
-
"graphology-generators": "^0.11.2",
|
43 |
-
"lucide-react": "^0.475.0",
|
44 |
-
"minisearch": "^7.1.1",
|
45 |
-
"react": "^19.0.0",
|
46 |
-
"react-dom": "^19.0.0",
|
47 |
-
"react-dropzone": "^14.3.5",
|
48 |
-
"react-markdown": "^9.0.3",
|
49 |
-
"react-number-format": "^5.4.3",
|
50 |
-
"rehype-react": "^8.0.0",
|
51 |
-
"remark-gfm": "^4.0.1",
|
52 |
-
"remark-math": "^6.0.0",
|
53 |
-
"seedrandom": "^3.0.5",
|
54 |
-
"sigma": "^3.0.1",
|
55 |
-
"sonner": "^1.7.4",
|
56 |
-
"tailwind-merge": "^3.0.1",
|
57 |
-
"tailwind-scrollbar": "^4.0.0",
|
58 |
-
"zustand": "^5.0.3"
|
59 |
-
},
|
60 |
-
"devDependencies": {
|
61 |
-
"@eslint/js": "^9.20.0",
|
62 |
-
"@stylistic/eslint-plugin-js": "^3.1.0",
|
63 |
-
"@tailwindcss/vite": "^4.0.6",
|
64 |
-
"@types/bun": "^1.2.2",
|
65 |
-
"@types/node": "^22.13.4",
|
66 |
-
"@types/react": "^19.0.10",
|
67 |
-
"@types/react-dom": "^19.0.4",
|
68 |
-
"@types/seedrandom": "^3.0.8",
|
69 |
-
"@vitejs/plugin-react-swc": "^3.8.0",
|
70 |
-
"eslint": "^9.20.1",
|
71 |
-
"eslint-config-prettier": "^10.0.1",
|
72 |
-
"eslint-plugin-react": "^7.37.4",
|
73 |
-
"eslint-plugin-react-hooks": "^5.1.0",
|
74 |
-
"eslint-plugin-react-refresh": "^0.4.19",
|
75 |
-
"globals": "^15.15.0",
|
76 |
-
"graphology-types": "^0.24.8",
|
77 |
-
"prettier": "^3.5.1",
|
78 |
-
"prettier-plugin-tailwindcss": "^0.6.11",
|
79 |
-
"tailwindcss": "^4.0.6",
|
80 |
-
"tailwindcss-animate": "^1.0.7",
|
81 |
-
"typescript": "~5.7.3",
|
82 |
-
"typescript-eslint": "^8.24.0",
|
83 |
-
"vite": "^6.1.0"
|
84 |
-
}
|
85 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lightrag_webui/src/lib/constants.ts
CHANGED
@@ -26,7 +26,12 @@ export const defaultQueryLabel = '*'
|
|
26 |
|
27 |
// reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types/Common_types
|
28 |
export const supportedFileTypes = {
|
29 |
-
'text/plain': [
|
|
|
|
|
|
|
|
|
|
|
30 |
'application/pdf': ['.pdf'],
|
31 |
'application/msword': ['.doc'],
|
32 |
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ['.docx'],
|
|
|
26 |
|
27 |
// reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types/Common_types
|
28 |
export const supportedFileTypes = {
|
29 |
+
'text/plain': [
|
30 |
+
'.txt', '.md', '.html', '.htm', '.tex', '.json', '.xml', '.yaml', '.yml',
|
31 |
+
'.rtf', '.odt', '.epub', '.csv', '.log', '.conf', '.ini', '.properties',
|
32 |
+
'.sql', '.bat', '.sh', '.c', '.cpp', '.py', '.java', '.js', '.ts',
|
33 |
+
'.swift', '.go', '.rb', '.php', '.css', '.scss', '.less'
|
34 |
+
],
|
35 |
'application/pdf': ['.pdf'],
|
36 |
'application/msword': ['.doc'],
|
37 |
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ['.docx'],
|