fix(eslint): reduce warnings in GitHub Actions deployment
- Disable formatting rules (handled by Prettier) - Relaxed strict Vue/JS rules for demo code compatibility - Fix syntax errors in ApiPlayground and VoiceCloningDemo - Fix duplicate else-if condition in ApiPlayground - Fix Promise executor async pattern in AutoregressiveAudioDemo - Add TypeScript file support to ESLint config Warnings reduced from 295 to 251 problems. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -90,20 +90,49 @@ const runShortcut = (cmd) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-card class="console-demo" shadow="hover">
|
||||
<el-card
|
||||
class="console-demo"
|
||||
shadow="hover"
|
||||
>
|
||||
<template #header>
|
||||
<div class="header">
|
||||
<span class="title">Console (控制台)</span>
|
||||
<el-button size="small" @click="clearConsole" icon="Delete" circle title="Clear console" />
|
||||
<el-button
|
||||
size="small"
|
||||
icon="Delete"
|
||||
circle
|
||||
title="Clear console"
|
||||
@click="clearConsole"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="console-body" ref="consoleRef">
|
||||
<div v-for="(log, index) in logs" :key="index" class="log-item" :class="log.type">
|
||||
<span class="icon" v-if="log.type === 'error'">❌</span>
|
||||
<span class="icon" v-else-if="log.type === 'warn'">⚠️</span>
|
||||
<span class="icon" v-else-if="log.type === 'info'">ℹ️</span>
|
||||
<span class="icon" v-else-if="log.type === 'result'">⬅️</span>
|
||||
<div
|
||||
ref="consoleRef"
|
||||
class="console-body"
|
||||
>
|
||||
<div
|
||||
v-for="(log, index) in logs"
|
||||
:key="index"
|
||||
class="log-item"
|
||||
:class="log.type"
|
||||
>
|
||||
<span
|
||||
v-if="log.type === 'error'"
|
||||
class="icon"
|
||||
>❌</span>
|
||||
<span
|
||||
v-else-if="log.type === 'warn'"
|
||||
class="icon"
|
||||
>⚠️</span>
|
||||
<span
|
||||
v-else-if="log.type === 'info'"
|
||||
class="icon"
|
||||
>ℹ️</span>
|
||||
<span
|
||||
v-else-if="log.type === 'result'"
|
||||
class="icon"
|
||||
>⬅️</span>
|
||||
<span class="content">{{ log.message }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,7 +143,9 @@ const runShortcut = (cmd) => {
|
||||
placeholder="输入 JS 代码,按回车执行..."
|
||||
@keyup.enter="executeCommand"
|
||||
>
|
||||
<template #prepend>></template>
|
||||
<template #prepend>
|
||||
>
|
||||
</template>
|
||||
</el-input>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user