mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-15 22:56:37 +00:00
new ui upgrade
This commit is contained in:
parent
7bfa6902b6
commit
bc0b9446f6
@ -1 +1 @@
|
||||
Subproject commit a0d97d96fbc33351912b9bb067f1fecac224c966
|
||||
Subproject commit d76a96cbb89c0f2475ec62c4711e113e00a038c6
|
2029
utilities/execution_engines/assets/mermaid.min.js
vendored
Normal file
2029
utilities/execution_engines/assets/mermaid.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9
utilities/execution_engines/assets/viz-standalone.js
Normal file
9
utilities/execution_engines/assets/viz-standalone.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
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-2d73a6c9.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-d9263638.css">
|
||||
<script type="module" crossorigin src="/assets/index-2199349a.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-88782cd9.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -172,9 +172,9 @@
|
||||
<details v-show="message != undefined && message.steps != undefined && message.steps.length>0" class="flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full">
|
||||
<summary class="grid min-w-72 select-none grid-cols-[40px,1fr] items-center gap-2.5 p-2">
|
||||
<div class="relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-300 dark:bg-gray-200">
|
||||
<img v-if="message.status_message!='Done' & message.status_message!= 'Generation canceled'" :src="loading_svg" class="absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100">
|
||||
<img v-if="message.status_message== 'Generation canceled'" :src="failed_svg" class="absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100">
|
||||
<img v-if="message.status_message=='Done'" :src="ok_svg" class="absolute m-2 w-6 inset-0 text-geen-100 transition-opacity dark:text-gray-800 opacity-100">
|
||||
<img v-if="message.status_message!='Done' & message.status_message!= 'Generation canceled'" :src="loading_svg" class="w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100">
|
||||
<img v-if="message.status_message== 'Generation canceled'" :src="failed_svg" class="w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100">
|
||||
<img v-if="message.status_message=='Done'" :src="ok_svg" class="w-50 h-50 absolute m-2 w-6 inset-0 text-geen-100 transition-opacity dark:text-gray-800 opacity-100">
|
||||
</div>
|
||||
<dl class="leading-4">
|
||||
<dd class="text-sm">Processing infos</dd>
|
||||
|
@ -56,7 +56,7 @@
|
||||
</button>
|
||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90"
|
||||
title="Reset database, remove all discussions">
|
||||
<i data-feather="refresh-ccw"></i>
|
||||
<i data-feather="trash-2" @click.stop=""></i>
|
||||
</button>
|
||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90" title="Export database"
|
||||
type="button" @click.stop="database_selectorDialogVisible=true">
|
||||
@ -67,6 +67,12 @@
|
||||
title="Import discussions" type="button" @click.stop="$refs.fileDialog.click()">
|
||||
<i data-feather="log-in"></i>
|
||||
</button>
|
||||
<input type="file" ref="bundleLoadingDialog" style="display: none" @change="importDiscussionsBundle" />
|
||||
<button v-if="!showSaveConfirmation" title="Import discussion bundle" @click.stop="$refs.bundleLoadingDialog.click()"
|
||||
class="text-2xl hover:text-secondary duration-75 active:scale-90"
|
||||
>
|
||||
<i data-feather="folder"></i>
|
||||
</button>
|
||||
|
||||
<div v-if="isOpen" class="dropdown">
|
||||
<button @click="importDiscussions">LOLLMS</button>
|
||||
@ -76,10 +82,6 @@
|
||||
type="button" @click="isSearch = !isSearch" :class="isSearch ? 'text-secondary' : ''">
|
||||
<i data-feather="search"></i>
|
||||
</button>
|
||||
<button v-if="!showSaveConfirmation" title="Save configuration" class="text-2xl hover:text-secondary duration-75 active:scale-90"
|
||||
@click="showSaveConfirmation = true">
|
||||
<i data-feather="save"></i>
|
||||
</button>
|
||||
<!-- SAVE CONFIG -->
|
||||
<div v-if="showSaveConfirmation" class="flex gap-3 flex-1 items-center duration-75">
|
||||
<button class="text-2xl hover:text-red-600 duration-75 active:scale-90 " title="Cancel" type="button"
|
||||
@ -103,7 +105,7 @@
|
||||
class=" w-6 hover:text-secondary duration-75 active:scale-90">
|
||||
<i data-feather="x-octagon"></i>
|
||||
</button>
|
||||
<button v-if="!loading" type="button" @click.stop="showSkillsLib" title="Skills database is deactivated"
|
||||
<button v-if="!loading" type="button" @click.stop="showSkillsLib" title="Show Skills database"
|
||||
class=" w-6 hover:text-secondary duration-75 active:scale-90">
|
||||
<i data-feather="book"></i>
|
||||
</button>
|
||||
@ -183,8 +185,12 @@
|
||||
|
||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90"
|
||||
title="Export selected to a json file" type="button" @click.stop="exportDiscussionsAsJson">
|
||||
<i data-feather="log-out"></i>
|
||||
<i data-feather="codepen"></i>
|
||||
</button>
|
||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90"
|
||||
title="Export selected to a martkdown file" type="button" @click.stop="exportDiscussions">
|
||||
<i data-feather="folder"></i>
|
||||
</button>
|
||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90"
|
||||
title="Export selected to a martkdown file" type="button" @click.stop="exportDiscussionsAsMarkdown">
|
||||
<i data-feather="bookmark"></i>
|
||||
@ -1350,23 +1356,25 @@ export default {
|
||||
} else if (msgObj.message_type == this.msgTypes.MSG_TYPE_STEP_END) {
|
||||
console.log("received step end", msgObj)
|
||||
try{
|
||||
// Find the step with the matching message and update its 'done' property to true
|
||||
const matchingStep = messageItem.steps.find(step => step.message === msgObj.content);
|
||||
|
||||
if (matchingStep) {
|
||||
matchingStep.done = true;
|
||||
try {
|
||||
console.log(msgObj.parameters)
|
||||
const parameters = msgObj.parameters;
|
||||
if(parameters!=undefined){
|
||||
matchingStep.status=parameters.status
|
||||
console.log(parameters);
|
||||
// Iterate over each step and update the 'done' property if the message matches msgObj.content
|
||||
messageItem.steps.forEach(step => {
|
||||
if (step.message === msgObj.content) {
|
||||
step.done = true;
|
||||
try {
|
||||
console.log(msgObj.parameters)
|
||||
const parameters = msgObj.parameters;
|
||||
if(parameters !== undefined){
|
||||
step.status = parameters.status;
|
||||
console.log(parameters);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.error('Error parsing JSON:', error.message);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.error('Error parsing JSON:', error.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
catch{
|
||||
console.log("error")
|
||||
@ -1834,7 +1842,10 @@ export default {
|
||||
this.loading = false
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
async exportDiscussions(){
|
||||
|
||||
},
|
||||
async exportDiscussionsAsJson() {
|
||||
// Export selected discussions
|
||||
|
||||
@ -1879,6 +1890,9 @@ export default {
|
||||
this.loading = false
|
||||
}
|
||||
|
||||
},
|
||||
async importDiscussionsBundle(event){
|
||||
|
||||
},
|
||||
async importDiscussions(event) {
|
||||
const obj = await this.parseJsonFile(event.target.files[0])
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 0b59189e42e9fad6ecd94e7076aeb6f8d0737caa
|
||||
Subproject commit eb1df87c8967d9f7d6a1742ca4937500666fe877
|
@ -1 +1 @@
|
||||
Subproject commit fa288b66cb404acff87908160705007150d0cf99
|
||||
Subproject commit 7b17da7867b7fb349601bc3f73688464429f46ee
|
Loading…
x
Reference in New Issue
Block a user