refactor(stage-web): remove chat tabs (#331)

This commit is contained in:
藍+85CD
2025-07-29 16:06:32 +08:00
committed by GitHub
parent 65f4d77fc1
commit 08c86ee192
3 changed files with 0 additions and 31 deletions
@@ -15,7 +15,6 @@ import ChatHistory from '../Widgets/ChatHistory.vue'
const messageInput = ref('')
const listening = ref(false)
const tab = ref<'chat' | 'custom' | 'clothes'>('chat')
const showMicrophoneSelect = ref(false)
const isComposing = ref(false)
@@ -134,28 +133,6 @@ onAfterMessageComposed(async () => {
<template>
<div flex="col" items-center pt-4>
<fieldset flex="~ row" w-fit rounded-lg>
<label
:class="[
tab === 'chat' ? 'bg-primary-100 dark:bg-primary-900' : 'bg-white dark:bg-primary-950',
tab === 'chat' ? 'text-primary-500 dark:text-primary-500' : '',
{ 'transition-colors-none ': themeColorsHueDynamic },
]"
flex="~ row"
:checked="tab === 'chat'"
:aria-checked="tab === 'chat'"
border="solid 2 primary-100 dark:primary-900"
text="primary-300 hover:primary-500 dark:primary-300/50 dark:hover:primary-500"
transition="all duration-250 ease-in-out"
cursor-pointer items-center gap-1 rounded-lg px-2
>
<input v-model="tab" type="radio" name="tab" value="chat" hidden>
<div i-solar:dialog-2-bold-duotone text="2xl" transform="translate-y--2" />
<div flex="~ row" items-center>
<span min-w="3em">{{ t('stage.chat.tabs.chat') }}</span>
</div>
</label>
</fieldset>
<div h-full max-h="[85vh]" w-full py="4">
<div
flex="~ col"
-4
View File
@@ -4,10 +4,6 @@ chat:
airi: AIRI
core-system: Core System
you: You
tabs:
chat: Chat
clothes: Clothes
custom: Custom
message: Say something...
operations:
load-models: Load Models
@@ -4,10 +4,6 @@ chat:
airi: AIRI
core-system: 核心系统
you:
tabs:
chat: 聊天
clothes: 换装
custom: 自定义
message: 说点什么...
select-a-audio-input: 选择一个音频输入设备
select-a-model: 选择一个模型