mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 10:46:27 +00:00
enhanced
This commit is contained in:
parent
a0f7fcc26e
commit
ef130d4847
@ -1 +1 @@
|
||||
Subproject commit 415bbe045bcd93fb31db0ac637fa5614bb022c3b
|
||||
Subproject commit e3b7e7ff5df76ce728bdc7743152e15854d19f91
|
Binary file not shown.
File diff suppressed because one or more lines are too long
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 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LoLLMS WebUI - Welcome</title>
|
||||
<script type="module" crossorigin src="/assets/index-5491c30d.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-b27f3359.css">
|
||||
<script type="module" crossorigin src="/assets/index-6919e2a5.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-6c9627d9.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -32,10 +32,8 @@
|
||||
<!-- odd:bg-bg-light-tone odd:dark:bg-bg-dark-tone even:bg-bg-light-tone-panel dark:even:bg-bg-dark-tone-panel -->
|
||||
<div class="px-2 " v-for="(item, index) in controls_array">
|
||||
|
||||
<div v-if="item.type == 'str'">
|
||||
<div v-if="item.type == 'str' || item.type == 'string'">
|
||||
<div v-if="!item.options">
|
||||
|
||||
|
||||
<label
|
||||
class="mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none"
|
||||
:class="item.help ? 'cursor-pointer ' : ''">
|
||||
@ -100,6 +98,74 @@
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div v-if="item.type == 'btn'">
|
||||
<button class="" onclick="btn_clicked(item)"> {{ item.name }} </button>
|
||||
</div>
|
||||
<div v-if="item.type == 'text'">
|
||||
<div v-if="!item.options">
|
||||
<label
|
||||
class="mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none"
|
||||
:class="item.help ? 'cursor-pointer ' : ''">
|
||||
<!-- TITLE -->
|
||||
<div class="text-base font-semibold">
|
||||
{{ item.name }}:
|
||||
</div>
|
||||
|
||||
<!-- HELP BUTTON -->
|
||||
<label v-if="item.help" class="relative inline-flex">
|
||||
<input type="checkbox" v-model="item.isHelp" class="sr-only peer">
|
||||
<div
|
||||
class="hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary">
|
||||
<i data-feather="help-circle" class="w-5 h-5 "></i>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
</label>
|
||||
<!-- HELP DESCRIPTION -->
|
||||
<p v-if="item.isHelp" class="text-sm font-normal text-gray-700 dark:text-gray-400 mb-2">
|
||||
{{ item.help }}
|
||||
</p>
|
||||
|
||||
<textarea v-model="item.value"
|
||||
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
||||
placeholder="Enter string"></textarea>
|
||||
</div>
|
||||
<div v-if="item.options">
|
||||
<label
|
||||
class="mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none"
|
||||
:class="item.help ? 'cursor-pointer ' : ''">
|
||||
<!-- TITLE -->
|
||||
<div class="text-base font-semibold">
|
||||
{{ item.name }}:
|
||||
</div>
|
||||
|
||||
<!-- HELP BUTTON -->
|
||||
<label v-if="item.help" class="relative inline-flex">
|
||||
<input type="checkbox" v-model="item.isHelp" class="sr-only peer">
|
||||
<div
|
||||
class="hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary">
|
||||
<i data-feather="help-circle" class="w-5 h-5 "></i>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
</label>
|
||||
<!-- HELP DESCRIPTION -->
|
||||
<p v-if="item.isHelp" class="text-sm font-normal text-gray-700 dark:text-gray-400 mb-2">
|
||||
{{ item.help }}
|
||||
</p>
|
||||
<select v-model="item.value"
|
||||
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
|
||||
<option v-for="op in item.options" :value="op" :selected="item.value === op">{{
|
||||
op
|
||||
}}
|
||||
|
||||
</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="item.type == 'int'">
|
||||
<label
|
||||
@ -275,6 +341,9 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
btn_clicked(item) {
|
||||
console.log(item)
|
||||
},
|
||||
hide(response) {
|
||||
this.show = false;
|
||||
|
||||
|
@ -2092,7 +2092,7 @@ export default {
|
||||
},
|
||||
formatted_database_name() {
|
||||
const db_name = this.$store.state.config.discussion_db_name;
|
||||
const trimmed_name = db_name.slice(0, db_name.length - 3);
|
||||
const trimmed_name = db_name;
|
||||
return trimmed_name;
|
||||
},
|
||||
UseDiscussionHistory() {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit fdbe3dd1fa24f5a8c832b594c9e8fc8775783a64
|
||||
Subproject commit 6426f38911acd485ded4906d6dc4307998f7afee
|
@ -1 +1 @@
|
||||
Subproject commit b0c95351f4f0f050dcf5753fa378c304aa034d53
|
||||
Subproject commit 061716fec92c79795c357f96b6dc3a72832cc3e0
|
@ -1 +1 @@
|
||||
Subproject commit 21db25a0707d5cb56b03743dd4af60ed8e1daa91
|
||||
Subproject commit 9deb009cb55489796571bd3627c313e7b10e8e23
|
Loading…
Reference in New Issue
Block a user