mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
updated
This commit is contained in:
parent
4bd2df38a4
commit
606e4cc75b
2
app.py
2
app.py
@ -14,7 +14,7 @@ __github__ = "https://github.com/ParisNeo/lollms-webui"
|
|||||||
__copyright__ = "Copyright 2023, "
|
__copyright__ = "Copyright 2023, "
|
||||||
__license__ = "Apache 2.0"
|
__license__ = "Apache 2.0"
|
||||||
|
|
||||||
__version__ ="4.0"
|
__version__ ="4.1"
|
||||||
|
|
||||||
main_repo = "https://github.com/ParisNeo/lollms-webui.git"
|
main_repo = "https://github.com/ParisNeo/lollms-webui.git"
|
||||||
import os
|
import os
|
||||||
|
@ -134,7 +134,12 @@
|
|||||||
<Step :done="step.done" :message="step.message" :status="step.status" />
|
<Step :done="step.done" :message="step.message" :status="step.status" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex flex-col items-start w-full">
|
||||||
|
<div v-for="(html_js, index) in message.html_js_s" :key="'htmljs-' + message.id + '-' + index" class="htmljs font-bold" :style="{ backgroundColor: step.done ? 'transparent' : 'inherit' }">
|
||||||
|
<RenderHTMLJS :htmlContent="html_js" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<MarkdownRenderer ref="mdRender" v-if="!editMsgMode && !message.metadata" :markdown-text="message.content">
|
<MarkdownRenderer ref="mdRender" v-if="!editMsgMode && !message.metadata" :markdown-text="message.content">
|
||||||
</MarkdownRenderer>
|
</MarkdownRenderer>
|
||||||
<textarea v-if="editMsgMode && !message.metadata" ref="mdTextarea" :rows="4"
|
<textarea v-if="editMsgMode && !message.metadata" ref="mdTextarea" :rows="4"
|
||||||
@ -176,6 +181,9 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.htmljs{
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import botImgPlaceholder from "../assets/logo.svg"
|
import botImgPlaceholder from "../assets/logo.svg"
|
||||||
@ -184,8 +192,9 @@ const bUrl = import.meta.env.VITE_LOLLMS_API_BASEURL
|
|||||||
import { nextTick } from 'vue'
|
import { nextTick } from 'vue'
|
||||||
import feather from 'feather-icons'
|
import feather from 'feather-icons'
|
||||||
import MarkdownRenderer from './MarkdownRenderer.vue';
|
import MarkdownRenderer from './MarkdownRenderer.vue';
|
||||||
|
import RenderHTMLJS from './RenderHTMLJS.vue';
|
||||||
|
import JsonViewer from "./JsonViewer.vue";
|
||||||
import Step from './Step.vue';
|
import Step from './Step.vue';
|
||||||
import JsonViewer from "./JsonViewer.vue"
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// eslint-disable-next-line vue/multi-word-component-names
|
// eslint-disable-next-line vue/multi-word-component-names
|
||||||
@ -194,6 +203,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
MarkdownRenderer,
|
MarkdownRenderer,
|
||||||
Step,
|
Step,
|
||||||
|
RenderHTMLJS,
|
||||||
JsonViewer,
|
JsonViewer,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -813,7 +813,8 @@ export default {
|
|||||||
rank: 0,
|
rank: 0,
|
||||||
sender: msgObj.user,
|
sender: msgObj.user,
|
||||||
created_at: msgObj.created_at,
|
created_at: msgObj.created_at,
|
||||||
steps: []
|
steps: [],
|
||||||
|
html_js_s: []
|
||||||
|
|
||||||
}
|
}
|
||||||
this.discussionArr.push(usrMessage)
|
this.discussionArr.push(usrMessage)
|
||||||
|
Loading…
Reference in New Issue
Block a user