fix: lint

This commit is contained in:
Neko Ayaka
2025-06-19 18:06:09 +08:00
parent afef299dbc
commit cfe3ce8145
4 changed files with 31 additions and 31 deletions
@@ -16,7 +16,7 @@ onMounted(async () => {
<template>
<div class="bg-bg min-h-screen text-dark">
<div class="grid grid-cols-1 mx-auto max-w-[1400px] gap-4 p-4 container lg:grid-cols-[350px_1fr_1fr] md:grid-cols-[300px_1fr]">
<div class="container grid grid-cols-1 mx-auto max-w-[1400px] gap-4 p-4 lg:grid-cols-[350px_1fr_1fr] md:grid-cols-[300px_1fr]">
<ControlPanel />
<PromptPreview />
<ChatSimulator class="lg:col-span-1 md:col-span-2" />
@@ -31,14 +31,14 @@ interface StageTransitionCommonParams {
pageSpecificAvailable?: boolean
}
type TransitionComponent =
| typeof SlideTransition
| typeof SlopeSlideTransition
| typeof ArrowTransition
| typeof MultipleBlocksRevealTransition
| typeof FantasyFallTransition
| typeof RectanglesRotateTransition
| typeof BubbleWaveOutTransition
type TransitionComponent
= | typeof SlideTransition
| typeof SlopeSlideTransition
| typeof ArrowTransition
| typeof MultipleBlocksRevealTransition
| typeof FantasyFallTransition
| typeof RectanglesRotateTransition
| typeof BubbleWaveOutTransition
const router = useRouter()
const showTransition = ref(false)
@@ -48,14 +48,14 @@ const activeTransitionName = ref('')
const activeStageTransitionParams = ref<StageTransitionCommonParams>()
// Define transition lifecycle events
export type TransitionStage =
| 'before-enter' // Just before animation starts
| 'enter-active' // Animation has started
| 'navigation' // Time to navigate (component still decides when)
| 'after-enter' // Entry animation completed
| 'before-leave' // Before exit animation starts
| 'leave-active' // Exit animation has started
| 'after-leave' // Complete animation cycle finished
export type TransitionStage
= | 'before-enter' // Just before animation starts
| 'enter-active' // Animation has started
| 'navigation' // Time to navigate (component still decides when)
| 'after-enter' // Entry animation completed
| 'before-leave' // Before exit animation starts
| 'leave-active' // Exit animation has started
| 'after-leave' // Complete animation cycle finished
// Define hook types
type TransitionHook = (stage: TransitionStage, data: any) => void | Promise<void>
@@ -18,10 +18,10 @@ export async function readMessage(
unreadMessages: Message[],
abortController: AbortController,
): Promise<{
loop?: boolean
break?: boolean
result: string
}> {
loop?: boolean
break?: boolean
result: string
}> {
const logger = useLogg('readMessage').useGlobalConfig()
const lastNMessages = await findLastNMessages(action.chatId, 50)
+10 -10
View File
@@ -73,16 +73,16 @@ export interface ListStickersAction {
action: 'list_stickers'
}
export type Action =
| ContinueAction
| BreakAction
| SleepAction
| ListChatsAction
| SendMessageAction
| SendStickerAction
| SearchGoogleAction
| ReadMessagesAction
| ListStickersAction
export type Action
= | ContinueAction
| BreakAction
| SleepAction
| ListChatsAction
| SendMessageAction
| SendStickerAction
| SearchGoogleAction
| ReadMessagesAction
| ListStickersAction
export interface AttentionConfig {
initialResponseRate: number