This commit is contained in:
Saifeddine ALOUI 2024-01-26 00:52:30 +01:00
parent 4d58b0df10
commit ee3ddf483c
17 changed files with 24 additions and 19 deletions

@ -1 +1 @@
Subproject commit eea9d3072ca88140e231d9458c911a92ad1a0e63
Subproject commit c3007e744a59575f002ca70b3e23e5c17181644c

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
web/dist/connection_lost.wav vendored Normal file

Binary file not shown.

BIN
web/dist/connection_recovered.wav vendored Normal file

Binary file not shown.

Binary file not shown.

4
web/dist/index.html vendored
View File

@ -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-f277ea7b.js"></script>
<link rel="stylesheet" href="/assets/index-1917f9ad.css">
<script type="module" crossorigin src="/assets/index-d47514f3.js"></script>
<link rel="stylesheet" href="/assets/index-f2a937ca.css">
</head>
<body>
<div id="app"></div>

BIN
web/dist/rebooting.mp3 vendored

Binary file not shown.

BIN
web/dist/rebooting.wav vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
web/public/rebooting.wav Normal file

Binary file not shown.

View File

@ -163,7 +163,7 @@
<i data-feather="volume-2"></i>
</div>
</div>
<div v-if="this.$store.state.config.enable_voice_service" class="flex flex-row items-center">
<div class="flex flex-row items-center">
<div v-if="!isSynthesizingVoice" class="text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer"
title="read"
@click.stop="read()"
@ -430,8 +430,8 @@ export default {
},
read(){
if(this.isSynthesizingVoice){
this.$refs.audio_player.pause()
this.isSynthesizingVoice=false
this.$refs.audio_player.pause()
}
else{
this.isSynthesizingVoice=true

View File

@ -157,9 +157,13 @@ export default {
watch:{
isConnected(){
if (!this.isConnected){
this.disconnected_audio.play()
this.connection_lost_audio.play()
this.$store.state.toast.showToast("Server suddenly disconnected. Please reboot the server", 410, false)
}
else{
this.connection_recovered_audio.play()
this.$store.state.toast.showToast("Server connected.", 410, true)
}
nextTick(() => {
feather.replace()
})
@ -170,8 +174,9 @@ export default {
return {
discord:discord,
FastAPI:FastAPI,
rebooting_the_tool_audio: new Audio("rebooting.mp3"),
disconnected_audio: new Audio("disconnected.mp3"),
rebooting_audio: new Audio("rebooting.wav"),
connection_lost_audio: new Audio("connection_lost.wav"),
connection_recovered_audio: new Audio("connection_recovered.wav"),
database_selectorDialogVisible:false,
progress_visibility:false,
progress_value:0,
@ -210,7 +215,7 @@ export default {
restartProgram(event) {
event.preventDefault();
this.$store.state.api_get_req('restart_program')
this.rebooting_the_tool_audio.play()
this.rebooting_audio.play()
this.$store.state.toast.showToast("Rebooting the app. Please wait...", 410, false)
//self.$store.state.toast.showToast("Rebooting the app. Please wait...", 50, true);
console.log("this.$store.state.api_get_req",this.$store.state.api_get_req)

View File

@ -3363,7 +3363,7 @@ export default {
}
},
onReloadBinding(binding_object){
console.log("Reloading binding")
this.isLoading = true
axios.post('/reload_binding', { name: binding_object.binding.folder }).then((res) => {
@ -3373,7 +3373,7 @@ export default {
if (res.data.status) {
this.$store.state.toast.showToast("Binding reloaded successfully!", 4, true)
} else {
this.$store.state.toast.showToast("Could not reinstall binding", 4, false)
this.$store.state.toast.showToast("Could not reload binding", 4, false)
}
return res.data;
}
@ -3383,7 +3383,7 @@ export default {
.catch(error => {
this.isLoading = false
this.$store.state.toast.showToast("Could not reinstall binding\n" + error.message, 4, false)
this.$store.state.toast.showToast("Could not reload binding\n" + error.message, 4, false)
return { 'status': false }
});
},