fix(lint): clean up ai rich text views
parent
577efa56a9
commit
fb03afb6b7
|
|
@ -47,6 +47,7 @@ onMounted(async () => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div ref="contentRef" class="markdown-view" v-html="renderedMarkdown"></div>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -571,6 +571,7 @@ onMounted(async () => {
|
|||
size="small"
|
||||
@click="openChatConversationUpdateForm"
|
||||
>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<span v-html="activeConversation?.modelName"></span>
|
||||
<IconifyIcon icon="lucide:settings" class="ml-2 size-4" />
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const imageListRef = ref<any>(); // image 列表 ref
|
|||
const dall3Ref = ref<any>(); // dall3(openai) ref
|
||||
const midjourneyRef = ref<any>(); // midjourney ref
|
||||
const stableDiffusionRef = ref<any>(); // stable diffusion ref
|
||||
//@ts-expect-error unused-imports/no-unused-vars
|
||||
// @ts-expect-error: template ref is retained for future provider expansion
|
||||
const commonRef = ref<any>(); // stable diffusion ref
|
||||
|
||||
const selectPlatform = ref('common'); // 选中的平台
|
||||
|
|
@ -46,7 +46,9 @@ const platformOptions = [
|
|||
const models = ref<AiModelModelApi.Model[]>([]); // 模型列表
|
||||
|
||||
/** 绘画 start */
|
||||
async function handleDrawStart() {}
|
||||
function handleDrawStart() {
|
||||
// drawing state is handled by child components
|
||||
}
|
||||
|
||||
/** 绘画 complete */
|
||||
async function handleDrawComplete() {
|
||||
|
|
|
|||
|
|
@ -150,10 +150,12 @@ defineExpose({
|
|||
ref="mdContainerRef"
|
||||
class="wh-full overflow-y-auto"
|
||||
>
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<div
|
||||
class="flex flex-col items-center justify-center"
|
||||
v-html="html"
|
||||
></div>
|
||||
<!-- eslint-enable vue/no-v-html -->
|
||||
</div>
|
||||
<div ref="mindMapRef" class="wh-full">
|
||||
<svg
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ const currentSong = inject<any>('currentSong', {});
|
|||
{{ currentSong.date }}
|
||||
</div>
|
||||
<Button size="small" shape="round" class="my-2">信息复用</Button>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div class="text-xs" v-html="currentSong.lyric"></div>
|
||||
</Card>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ onMounted(async () => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div ref="contentRef" class="markdown-view" v-html="renderedMarkdown"></div>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ onMounted(async () => {
|
|||
size="small"
|
||||
@click="openChatConversationUpdateForm"
|
||||
>
|
||||
<span v-html="activeConversation?.modelName"></span>
|
||||
<span>{{ activeConversation?.modelName }}</span>
|
||||
<IconifyIcon icon="lucide:settings" class="!ml-2 size-4" />
|
||||
</ElButton>
|
||||
<ElButton
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const imageListRef = ref<any>(); // image 列表 ref
|
|||
const dall3Ref = ref<any>(); // dall3(openai) ref
|
||||
const midjourneyRef = ref<any>(); // midjourney ref
|
||||
const stableDiffusionRef = ref<any>(); // stable diffusion ref
|
||||
//@ts-expect-error unused-imports/no-unused-vars
|
||||
// @ts-expect-error: template ref is retained for future provider expansion
|
||||
const commonRef = ref<any>(); // stable diffusion ref
|
||||
|
||||
const selectPlatform = ref('common'); // 选中的平台
|
||||
|
|
@ -46,7 +46,9 @@ const platformOptions = [
|
|||
const models = ref<AiModelModelApi.Model[]>([]); // 模型列表
|
||||
|
||||
/** 绘画 start */
|
||||
async function handleDrawStart() {}
|
||||
function handleDrawStart() {
|
||||
// drawing state is handled by child components
|
||||
}
|
||||
|
||||
/** 绘画 complete */
|
||||
async function handleDrawComplete() {
|
||||
|
|
|
|||
|
|
@ -155,10 +155,12 @@ defineExpose({
|
|||
ref="mdContainerRef"
|
||||
class="wh-full overflow-y-auto"
|
||||
>
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<div
|
||||
class="flex flex-col items-center justify-center"
|
||||
v-html="html"
|
||||
></div>
|
||||
<!-- eslint-enable vue/no-v-html -->
|
||||
</div>
|
||||
<div ref="mindMapRef" class="wh-full">
|
||||
<svg
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ const currentSong = inject<any>('currentSong', {});
|
|||
{{ currentSong.date }}
|
||||
</div>
|
||||
<ElButton size="small" round class="my-2">信息复用</ElButton>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div class="text-xs" v-html="currentSong.lyric"></div>
|
||||
</ElCard>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue