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
@@ -19,49 +19,80 @@
<div class="controls">
<div class="control-group">
<label>背景颜色 (background-color)</label>
<input type="color" v-model="bgColor" />
<input
v-model="bgColor"
type="color"
>
<span class="value">{{ bgColor }}</span>
</div>
<div class="control-group">
<label>文字颜色 (color)</label>
<input type="color" v-model="textColor" />
<input
v-model="textColor"
type="color"
>
<span class="value">{{ textColor }}</span>
</div>
<div class="control-group">
<label>字体大小 (font-size)</label>
<input type="range" v-model="fontSize" min="12" max="48" />
<input
v-model="fontSize"
type="range"
min="12"
max="48"
>
<span class="value">{{ fontSize }}px</span>
</div>
<div class="control-group">
<label>内边距 (padding)</label>
<input type="range" v-model="padding" min="0" max="50" />
<input
v-model="padding"
type="range"
min="0"
max="50"
>
<span class="value">{{ padding }}px</span>
</div>
<div class="control-group">
<label>圆角 (border-radius)</label>
<input type="range" v-model="borderRadius" min="0" max="50" />
<input
v-model="borderRadius"
type="range"
min="0"
max="50"
>
<span class="value">{{ borderRadius }}px</span>
</div>
<div class="control-group">
<label>边框宽度 (border-width)</label>
<input type="range" v-model="borderWidth" min="0" max="10" />
<input
v-model="borderWidth"
type="range"
min="0"
max="10"
>
<span class="value">{{ borderWidth }}px</span>
</div>
<div class="control-group">
<label>边框颜色 (border-color)</label>
<input type="color" v-model="borderColor" />
<input
v-model="borderColor"
type="color"
>
<span class="value">{{ borderColor }}</span>
</div>
</div>
<div class="code-preview">
<div class="code-title">生成的 CSS 代码</div>
<div class="code-title">
生成的 CSS 代码
</div>
<pre><code>.element {
background-color: <span class="highlight">{{ bgColor }}</span>;
color: <span class="highlight">{{ textColor }}</span>;