mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-12 05:25:26 +00:00
update for lint
This commit is contained in:
parent
4a5752bc4f
commit
9131081103
@ -48,7 +48,8 @@
|
|||||||
<select id="backend" @change="update_backend($event.target.value)"
|
<select id="backend" @change="update_backend($event.target.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">
|
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="item in backendsArr" :selected="item === configFile.backend">{{ item }}</option>
|
<!-- <option v-for="item in backendsArr" :selected="item === configFile.backend">{{ item }}</option> -->
|
||||||
|
<option v-for="item in backendsArr" :key="item === configFile.backend">{{ item }}</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -59,7 +60,8 @@
|
|||||||
<select id="model" @change="update_model($event.target.value)"
|
<select id="model" @change="update_model($event.target.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">
|
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="item in modelsArr" :selected="item === configFile.model">{{ item }}</option>
|
<!-- <option v-for="item in modelsArr" :selected="item === configFile.model">{{ item }}</option> -->
|
||||||
|
<option v-for="item in modelsArr" :key="item === configFile.model">{{ item }}</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -113,7 +115,9 @@
|
|||||||
<select id="persLang" @change="update_setting('personality_language', $event.target.value, refresh)"
|
<select id="persLang" @change="update_setting('personality_language', $event.target.value, refresh)"
|
||||||
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">
|
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="item in persLangArr" :selected="item === configFile.personality_language">{{ item }}
|
<!-- <option v-for="item in persLangArr" :selected="item === configFile.personality_language">{{ item }} -->
|
||||||
|
<option v-for="item in persLangArr" :key="item === configFile.personality_language">{{ item }}
|
||||||
|
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
@ -125,7 +129,9 @@
|
|||||||
<select id="persCat" @change="update_setting('personality_category', $event.target.value, refresh)"
|
<select id="persCat" @change="update_setting('personality_category', $event.target.value, refresh)"
|
||||||
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">
|
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="item in persCatgArr" :selected="item === configFile.personality_category">{{ item }}
|
<!-- <option v-for="item in persCatgArr" :selected="item === configFile.personality_category">{{ item }} -->
|
||||||
|
<option v-for="item in persCatgArr" :key="item === configFile.personality_category">{{ item }}
|
||||||
|
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
@ -137,7 +143,8 @@
|
|||||||
<select id="persona" @change="update_setting('personality', $event.target.value, refresh)"
|
<select id="persona" @change="update_setting('personality', $event.target.value, refresh)"
|
||||||
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">
|
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="item in persArr" :selected="item === configFile.personality">{{ item }}</option>
|
<!-- <option v-for="item in persArr" :selected="item === configFile.personality">{{ item }}</option> -->
|
||||||
|
<option v-for="item in persArr" :key="item === configFile.personality">{{ item }}</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -338,6 +345,7 @@ export default {
|
|||||||
MessageBox,
|
MessageBox,
|
||||||
YesNoDialog,
|
YesNoDialog,
|
||||||
ModelEntry,
|
ModelEntry,
|
||||||
|
// eslint-disable-next-line vue/no-unused-components
|
||||||
PersonalityViewer
|
PersonalityViewer
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
@ -385,6 +393,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onSelected(model_object){
|
onSelected(model_object){
|
||||||
console.log("Selected model")
|
console.log("Selected model")
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
this.update_setting('model', model_object.title, (res)=>{console.log("Model selected"); })
|
this.update_setting('model', model_object.title, (res)=>{console.log("Model selected"); })
|
||||||
},
|
},
|
||||||
// Model installation
|
// Model installation
|
||||||
@ -438,6 +447,7 @@ export default {
|
|||||||
model_object.uninstalling = false;
|
model_object.uninstalling = false;
|
||||||
this.showProgress = false;
|
this.showProgress = false;
|
||||||
socket.off('install_progress', progressListener);
|
socket.off('install_progress', progressListener);
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
console.error('Installation failed:', message.error);
|
console.error('Installation failed:', message.error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -491,14 +501,17 @@ export default {
|
|||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
.catch(error => { return { 'status': false } });
|
.catch(error => { return { 'status': false } });
|
||||||
},
|
},
|
||||||
update_backend(value) {
|
update_backend(value) {
|
||||||
console.log("Upgrading backend")
|
console.log("Upgrading backend")
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
this.update_setting('backend', value, (res)=>{console.log("Backend changed"); this.fetchModels(); })
|
this.update_setting('backend', value, (res)=>{console.log("Backend changed"); this.fetchModels(); })
|
||||||
},
|
},
|
||||||
update_model(value) {
|
update_model(value) {
|
||||||
console.log("Upgrading model")
|
console.log("Upgrading model")
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
this.update_setting('model', value, (res)=>{console.log("Model changed"); this.fetchModels(); })
|
this.update_setting('model', value, (res)=>{console.log("Model changed"); this.fetchModels(); })
|
||||||
},
|
},
|
||||||
save_configuration() {
|
save_configuration() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user