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,44 +3,66 @@
<div class="demo-container">
<!-- Step 1: Patch -->
<div class="step-box">
<div class="label">1. Patch (16×16×3) (示意 / Toy)</div>
<div class="label">
1. Patch (16×16×3) (示意 / Toy)
</div>
<div class="grid-patch">
<div
v-for="n in patchCellCount"
:key="n"
class="pixel"
:style="{ backgroundColor: getPixelColor(n) }"
></div>
/>
</div>
<div class="desc">
16×16 像素 × 3 通道 = 768 标量值
</div>
<div class="desc">16×16 像素 × 3 通道 = 768 标量值</div>
</div>
<div class="arrow"></div>
<div class="arrow">
</div>
<!-- Step 2: Flattened -->
<div class="step-box">
<div class="label">2. Flatten</div>
<div class="label">
2. Flatten
</div>
<div class="vector-container">
<div
v-for="n in flattenSampleCount"
:key="n"
class="vector-cell"
:style="{ backgroundColor: getPixelColor(n) }"
></div>
<div class="vector-ellipsis"></div>
/>
<div class="vector-ellipsis">
</div>
</div>
<div class="desc">
得到 1×768 向量 (Vector)
</div>
<div class="desc">得到 1×768 向量 (Vector)</div>
</div>
<div class="arrow">× W</div>
<div class="arrow">
× W
</div>
<!-- Step 3: Projected -->
<div class="step-box">
<div class="label">3. Embedding</div>
<div class="embedding-container">
<div v-for="n in 8" :key="n" class="embed-cell"></div>
<div class="label">
3. Embedding
</div>
<div class="embedding-container">
<div
v-for="n in 8"
:key="n"
class="embed-cell"
/>
</div>
<div class="desc">
映射到 D (示意 D=8常见 D=768)
</div>
<div class="desc">映射到 D (示意 D=8常见 D=768)</div>
</div>
</div>
</div>