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:
sanbuphy
2026-02-18 17:38:10 +08:00
parent 8b01686e68
commit 0eba9e87e9
456 changed files with 28450 additions and 9677 deletions
@@ -3,36 +3,73 @@
<div class="panel">
<div class="areas">
<div class="area">
<div class="header">💻 工作区 ({{ work.length }})</div>
<div v-for="f in work" :key="f" class="file">📄 {{ f }}</div>
<div v-if="work.length === 0" class="empty"></div>
<div class="header">
💻 工作区 ({{ work.length }})
</div>
<div
v-for="f in work"
:key="f"
class="file"
>
📄 {{ f }}
</div>
<div
v-if="work.length === 0"
class="empty"
>
</div>
</div>
<div class="area">
<div class="header">📚 Stash ({{ stash.length }})</div>
<div v-for="(s, i) in stash" :key="i" class="stash-item">
<div class="header">
📚 Stash ({{ stash.length }})
</div>
<div
v-for="(s, i) in stash"
:key="i"
class="stash-item"
>
<span class="num">{{ i + 1 }}</span>
<span class="msg">{{ s }}</span>
</div>
<div v-if="stash.length === 0" class="empty"></div>
<div
v-if="stash.length === 0"
class="empty"
>
</div>
</div>
</div>
<div class="controls">
<button @click="doWork" :disabled="work.length > 0" class="btn">
<button
:disabled="work.length > 0"
class="btn"
@click="doWork"
>
修改
</button>
<button
@click="save"
:disabled="work.length === 0 || stash.length >= 3"
class="btn"
@click="save"
>
保存
</button>
<button @click="pop" :disabled="stash.length === 0" class="btn">
<button
:disabled="stash.length === 0"
class="btn"
@click="pop"
>
恢复
</button>
<button @click="reset" class="btn secondary">重置</button>
<button
class="btn secondary"
@click="reset"
>
重置
</button>
</div>
</div>