mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
working and debugged code
This commit is contained in:
parent
dec6811571
commit
747d7af758
@ -1,4 +1,4 @@
|
||||
.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.active-tab{font-weight:700}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.selected-choice{background-color:#bde4ff}.list-move[data-v-28460677],.list-enter-active[data-v-28460677],.list-leave-active[data-v-28460677]{transition:all .5s ease}.list-enter-from[data-v-28460677]{transform:translatey(-30px)}.list-leave-to[data-v-28460677]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-28460677]{position:absolute}.bounce-enter-active[data-v-28460677]{animation:bounce-in-28460677 .5s}.bounce-leave-active[data-v-28460677]{animation:bounce-in-28460677 .5s reverse}@keyframes bounce-in-28460677{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-28460677]{background-color:#0ff}.hover[data-v-28460677]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-28460677]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
||||
.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.active-tab{font-weight:700}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.selected-choice{background-color:#bde4ff}.list-move[data-v-22719428],.list-enter-active[data-v-22719428],.list-leave-active[data-v-22719428]{transition:all .5s ease}.list-enter-from[data-v-22719428]{transform:translatey(-30px)}.list-leave-to[data-v-22719428]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-22719428]{position:absolute}.bounce-enter-active[data-v-22719428]{animation:bounce-in-22719428 .5s}.bounce-leave-active[data-v-22719428]{animation:bounce-in-22719428 .5s reverse}@keyframes bounce-in-22719428{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-22719428]{background-color:#0ff}.hover[data-v-22719428]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-22719428]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
||||
Theme: Tokyo-night-Dark
|
||||
origin: https://github.com/enkia/tokyo-night-vscode-theme
|
||||
Description: Original highlight.js style
|
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-559e0f27.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-ccd4ce08.css">
|
||||
<script type="module" crossorigin src="/assets/index-c38120e7.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-60a1711a.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -245,7 +245,9 @@ export default {
|
||||
// Optionally, you can set the voice and other parameters
|
||||
// For example, to set the voice, assuming you want the first voice available:
|
||||
if (this.voices.length > 0) {
|
||||
msg.voice = this.voices[0];
|
||||
let v = this.voices.filter(voice => voice.name === this.$store.state.config.audio_out_voice);
|
||||
console.log(v)
|
||||
msg.voice = v[0];
|
||||
}
|
||||
|
||||
// Set isVoiceActive to true before starting synthesis
|
||||
|
@ -1650,13 +1650,16 @@ export default {
|
||||
getVoices() {
|
||||
// Fetch available voices from the SpeechSynthesis API
|
||||
if ('speechSynthesis' in window) {
|
||||
speechSynthesis.onvoiceschanged = () => {
|
||||
console.log("here");
|
||||
this.audioVoices = speechSynthesis.getVoices();
|
||||
// Set a default voice if needed
|
||||
console.log(this.audioVoices)
|
||||
if (!this.audio_out_voice && this.audioVoices.length > 0) {
|
||||
this.audio_out_voice = this.audioVoices[0].name;
|
||||
}
|
||||
speechSynthesis.onvoiceschanged = () => {
|
||||
// Set a default voice if needed
|
||||
};
|
||||
|
||||
}
|
||||
},
|
||||
async updateHasUpdates() {
|
||||
|
Loading…
Reference in New Issue
Block a user