mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +00:00
sync
This commit is contained in:
parent
6e8eea0c5d
commit
94a8a187e8
@ -1 +1 @@
|
||||
Subproject commit 00d593815e65b2e0f832b2d4c647a84aff660289
|
||||
Subproject commit 2821ef2319ab389a8554cc48faae7287ad4e0dbc
|
File diff suppressed because one or more lines are too long
2
web/dist/index.html
vendored
2
web/dist/index.html
vendored
@ -6,7 +6,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LoLLMS WebUI - Welcome</title>
|
||||
<script type="module" crossorigin src="/assets/index-1ce76b8e.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-e02387fb.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-a7b58bfd.css">
|
||||
</head>
|
||||
<body>
|
||||
|
@ -55,12 +55,6 @@
|
||||
|
||||
<span class="sr-only">Click to install</span>
|
||||
</button>
|
||||
<button v-if="binding.installed" title="Click to install" type="button" @click.stop="toggleInstall"
|
||||
class="inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
|
||||
Install another version or install extra
|
||||
|
||||
<span class="sr-only">Click to install</span>
|
||||
</button>
|
||||
<button v-if="binding.installed" title="Click to Reinstall binding" type="button" @click.stop="toggleReinstall"
|
||||
class="inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900">
|
||||
Reinstall
|
||||
|
@ -31,7 +31,7 @@
|
||||
Custom model
|
||||
</div>
|
||||
<div>
|
||||
<button v-if="model.isInstalled" title="Delete file from disk" type="button" @click.stop="toggleInstall"
|
||||
<button v-if="model.isInstalled" title="Delete file from disk" type="button" @click.stop="uninstall"
|
||||
class="inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900">
|
||||
Uninstall
|
||||
<span class="sr-only">Remove</span>
|
||||
@ -297,6 +297,14 @@ export default {
|
||||
defaultImg(event) {
|
||||
event.target.src = defaultImgPlaceholder
|
||||
},
|
||||
install(){
|
||||
this.onInstall(this);
|
||||
},
|
||||
uninstall(){
|
||||
if (this.isInstalled) {
|
||||
this.onUninstall(this);
|
||||
}
|
||||
},
|
||||
toggleInstall() {
|
||||
|
||||
if (this.isInstalled) {
|
||||
@ -351,15 +359,19 @@ export default {
|
||||
},
|
||||
commandsList(){
|
||||
let main_menu = [
|
||||
{name:this.model.isInstalled?"Uninstall":"Install", icon: "feather:settings", is_file:false, value:this.toggleInstall},
|
||||
{name:"Copy model info to clipboard", icon: "feather:settings", is_file:false, value:this.toggleCopy},
|
||||
];
|
||||
if(this.selected){
|
||||
main_menu.push({name:"Reload", icon: "feather:refresh-ccw", is_file:false, value:this.toggleSelected})
|
||||
}
|
||||
{name:this.model.isInstalled?"Install Extra":"Install", icon: "feather:settings", is_file:false, value:this.install},
|
||||
{name:"Copy model info to clipboard", icon: "feather:settings", is_file:false, value:this.toggleCopy},
|
||||
];
|
||||
if(this.model.isInstalled){
|
||||
main_menu.push({name:"UnInstall", icon: "feather:settings", is_file:false, value:this.uninstall})
|
||||
}
|
||||
|
||||
if(this.selected){
|
||||
main_menu.push({name:"Reload", icon: "feather:refresh-ccw", is_file:false, value:this.toggleSelected})
|
||||
}
|
||||
return main_menu
|
||||
},
|
||||
selected_computed(){
|
||||
},
|
||||
selected_computed(){
|
||||
return this.selected
|
||||
},
|
||||
fileSize: {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 81601ea0131bc92cc3924a10f407ae1bfcb284f2
|
||||
Subproject commit ba34baf2fb40c121b6a94cf2a889f187b83b9937
|
@ -1 +1 @@
|
||||
Subproject commit 81baf1cce430bbf3c25e5f1ac33fdc8a88bd852a
|
||||
Subproject commit dfe61eb8bc3cc3e44d5034b870a8b7af5626cb4f
|
Loading…
Reference in New Issue
Block a user