mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-03-21 03:15:21 +00:00
little fix
This commit is contained in:
parent
7e951e0757
commit
2357c30f40
8
web/dist/assets/index-9vBGl6Rb.css
vendored
8
web/dist/assets/index-9vBGl6Rb.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
web/dist/assets/index-DHp8mvZr.css
vendored
Normal file
8
web/dist/assets/index-DHp8mvZr.css
vendored
Normal file
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LoLLMS WebUI</title>
|
||||
<script type="module" crossorigin src="/assets/index-CMDW1xcR.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-9vBGl6Rb.css">
|
||||
<script type="module" crossorigin src="/assets/index-BsWWxXMf.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DHp8mvZr.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -1280,71 +1280,7 @@
|
||||
<button @click="addDatabaseService" class="mt-2 px-2 py-1 bg-blue-500 text-white rounded">Create Database server</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="min-width: 200px;">
|
||||
<label for="datalakes" class="text-sm font-bold" style="margin-right: 1rem;">Data Servers:</label>
|
||||
</td>
|
||||
<td style="width: 100%;">
|
||||
<div v-for="(source, index) in configFile.datalakes" :key="index" class="flex items-center mb-2">
|
||||
<!-- Name input -->
|
||||
<input
|
||||
type="text"
|
||||
:value="source.alias"
|
||||
@input="(e) => updateRagDatabase(index, e.target.value, 'name')"
|
||||
class="w-1/3 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 mr-2"
|
||||
placeholder="Database Name"
|
||||
>
|
||||
<!-- Path input -->
|
||||
<input
|
||||
type="text"
|
||||
:value="source.path"
|
||||
@input="(e) => updateRagDatabase(index, e.target.value, 'path')"
|
||||
class="w-1/3 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 mr-2"
|
||||
placeholder="Database Path"
|
||||
>
|
||||
<!-- Mounted checkbox -->
|
||||
<div class="flex items-center mr-2">
|
||||
<input
|
||||
type="checkbox"
|
||||
:checked="source.mounted"
|
||||
@change="(e) => updateRagDatabase(index, e.target.checked, 'mounted')"
|
||||
class="mr-1"
|
||||
>
|
||||
<span class="text-sm">Mounted</span>
|
||||
</div>
|
||||
|
||||
<!-- Vectorize button -->
|
||||
<button @click="vectorize_folder(index)"
|
||||
class="w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded flex items-center"
|
||||
title="Vectorize or re-vectorize the selected folder">
|
||||
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<!-- Select folder button -->
|
||||
<button @click="select_folder(index)"
|
||||
class="w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-blue-300 rounded flex items-center"
|
||||
title="Select a folder as data source">
|
||||
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<!-- Remove button -->
|
||||
<button @click="removeDataSource(index)"
|
||||
class="ml-2 px-2 py-1 bg-red-500 text-white hover:bg-red-300 rounded flex items-center"
|
||||
title="Remove this data source">
|
||||
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
<button @click="addDataSource" class="mt-2 px-2 py-1 bg-blue-500 text-white rounded">Add Data Source</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</Card>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user