mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-16 15:08:54 +00:00
Fixed settinghs error
This commit is contained in:
parent
2f67ec65f6
commit
ea069bfa6f
@ -1 +1 @@
|
||||
Subproject commit 4c3c611f0b80af949481d0c4927f554e4481f215
|
||||
Subproject commit d182a450496fe39002492dc75bafed63492193ce
|
8
web/dist/assets/index-8c5bb30a.css
vendored
Normal file
8
web/dist/assets/index-8c5bb30a.css
vendored
Normal file
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-e34e3adb.css
vendored
8
web/dist/assets/index-e34e3adb.css
vendored
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</title>
|
||||
<script type="module" crossorigin src="/assets/index-8cab51b5.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-e34e3adb.css">
|
||||
<script type="module" crossorigin src="/assets/index-df4f0801.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-8c5bb30a.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -352,15 +352,17 @@ export default {
|
||||
methods: {
|
||||
adjustMenuPosition() {
|
||||
const menu = this.$refs.languageMenu;
|
||||
const rect = menu.getBoundingClientRect();
|
||||
const windowWidth = window.innerWidth;
|
||||
if(menu){
|
||||
const rect = menu.getBoundingClientRect();
|
||||
const windowWidth = window.innerWidth;
|
||||
|
||||
if (rect.right > windowWidth) {
|
||||
menu.style.left = 'auto';
|
||||
menu.style.right = '0';
|
||||
} else {
|
||||
menu.style.left = '0';
|
||||
menu.style.right = 'auto';
|
||||
if (rect.right > windowWidth) {
|
||||
menu.style.left = 'auto';
|
||||
menu.style.right = '0';
|
||||
} else {
|
||||
menu.style.left = '0';
|
||||
menu.style.right = 'auto';
|
||||
}
|
||||
}
|
||||
},
|
||||
addCustomLanguage() {
|
||||
|
@ -272,7 +272,7 @@ export const store = createStore({
|
||||
);
|
||||
|
||||
const is_rt_on = response.data.status;
|
||||
commit('setRTOn', is_rt_on);
|
||||
commit('setisRTOn', is_rt_on);
|
||||
},
|
||||
async fetchLanguages({ commit }) {
|
||||
console.log("get_personality_languages_list", this.state.client_id)
|
||||
@ -579,11 +579,7 @@ async function api_post_req(endpoint, client_id) {
|
||||
|
||||
}
|
||||
|
||||
async function refreshHardwareUsage(store) {
|
||||
await store.dispatch('refreshDiskUsage');
|
||||
await store.dispatch('refreshRamUsage');
|
||||
await store.dispatch('refreshVramUsage');
|
||||
}
|
||||
|
||||
let actionsExecuted = false;
|
||||
|
||||
app.mixin({
|
||||
@ -643,4 +639,4 @@ app.use(router)
|
||||
app.use(store)
|
||||
app.mount('#app')
|
||||
|
||||
export{logObjectProperties, copyObject, flattenObject, refreshHardwareUsage }
|
||||
export{logObjectProperties, copyObject, flattenObject }
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
|
||||
</transition>
|
||||
<button v-if="isReady" @click="togglePanel" class="absolute bottom-2 left-2 p-3 bg-white bg-opacity-10 rounded-full cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 shadow-lg hover:shadow-xl group">
|
||||
<button v-if="isReady" @click="togglePanel" class="absolute top-2 left-2 p-3 bg-white bg-opacity-0 cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 hover:shadow-xl group">
|
||||
<div v-show="leftPanelCollapsed" ><i data-feather='chevron-right'></i></div>
|
||||
<div v-show="!leftPanelCollapsed" ><i data-feather='chevron-left'></i></div>
|
||||
</button>
|
||||
@ -2202,13 +2202,6 @@ export default {
|
||||
catch (ex){
|
||||
console.log("Error cought:", ex)
|
||||
}
|
||||
try{
|
||||
this.$store.state.loading_infos = "Getting Hardware usage"
|
||||
await refreshHardwareUsage(this.$store);
|
||||
}
|
||||
catch (ex){
|
||||
console.log("Error cought:", ex)
|
||||
}
|
||||
|
||||
try{
|
||||
this.$store.state.loading_infos = "Getting personalities zoo"
|
||||
|
@ -4055,7 +4055,6 @@ import RadioOptions from '../components/RadioOptions.vue';
|
||||
import storeLogo from '@/assets/logo.png'
|
||||
|
||||
|
||||
import {refreshHardwareUsage} from "../main"
|
||||
import SVGGPU from '@/assets/gpu.svg';
|
||||
|
||||
|
||||
@ -4191,12 +4190,24 @@ export default {
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
try{
|
||||
this.$store.state.loading_infos = "Getting Hardware usage"
|
||||
await this.refreshHardwareUsage(this.$store);
|
||||
}
|
||||
catch (ex){
|
||||
console.log("Error cought:", ex)
|
||||
}
|
||||
|
||||
socket.on('loading_text',this.on_loading_text);
|
||||
this.updateHasUpdates();
|
||||
//await socket.on('install_progress', this.progressListener);
|
||||
//refreshHardwareUsage()
|
||||
},
|
||||
methods: {
|
||||
async refreshHardwareUsage(store) {
|
||||
await store.dispatch('refreshDiskUsage');
|
||||
await store.dispatch('refreshRamUsage');
|
||||
await store.dispatch('refreshVramUsage');
|
||||
},
|
||||
addDataSource() {
|
||||
this.$store.state.config.rag_databases.push('');
|
||||
this.settingsChanged = true;
|
||||
@ -6595,30 +6606,27 @@ export default {
|
||||
},
|
||||
binding_name() {
|
||||
if (!this.isMounted) {
|
||||
return
|
||||
return null
|
||||
}
|
||||
const index = this.bindingsZoo.findIndex(item => item.folder === this.configFile.binding_name)
|
||||
if (index > -1) {
|
||||
return this.bindingsZoo[index].name
|
||||
|
||||
} else {
|
||||
return
|
||||
return null
|
||||
}
|
||||
},
|
||||
active_pesonality() {
|
||||
if (!this.isMounted) {
|
||||
return
|
||||
return null
|
||||
}
|
||||
const index = this.personalities.findIndex(item => item.full_path === this.configFile.personalities[this.configFile.active_personality_id])
|
||||
if (index > -1) {
|
||||
return this.personalities[index].name
|
||||
} else {
|
||||
return
|
||||
return null
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
speed_computed() {
|
||||
return filesize(this.addModel.speed)
|
||||
|
Loading…
x
Reference in New Issue
Block a user