Update api.js
Browse files- lightrag/api/static/js/api.js +12 -10
lightrag/api/static/js/api.js
CHANGED
@@ -49,16 +49,18 @@ const pages = {
|
|
49 |
</div>
|
50 |
<p class="text-sm text-gray-600 mt-2"><span id="uploadStatus">0</span> files processed</p>
|
51 |
</div>
|
52 |
-
<
|
53 |
-
<
|
54 |
-
<
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
62 |
|
63 |
<div id="indexedFiles" class="space-y-2">
|
64 |
<h3 class="text-lg font-semibold text-gray-700">Indexed Files</h3>
|
|
|
49 |
</div>
|
50 |
<p class="text-sm text-gray-600 mt-2"><span id="uploadStatus">0</span> files processed</p>
|
51 |
</div>
|
52 |
+
<div class="flex items-center space-x-4 bg-gray-100 p-4 rounded-lg shadow-md">
|
53 |
+
<button id="rescanBtn" class="flex items-center bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors">
|
54 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" fill="currentColor" class="mr-2">
|
55 |
+
<path d="M12 4a8 8 0 1 1-8 8H2.5a9.5 9.5 0 1 0 2.8-6.7L2 3v6h6L5.7 6.7A7.96 7.96 0 0 1 12 4z"/>
|
56 |
+
</svg>
|
57 |
+
Rescan Files
|
58 |
+
</button>
|
59 |
+
|
60 |
+
<button id="uploadBtn" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors">
|
61 |
+
Upload & Index Files
|
62 |
+
</button>
|
63 |
+
</div>
|
64 |
|
65 |
<div id="indexedFiles" class="space-y-2">
|
66 |
<h3 class="text-lg font-semibold text-gray-700">Indexed Files</h3>
|