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
@@ -4,38 +4,70 @@
<div class="config-row">
<span class="label">实例规格</span>
<select v-model="config.spec">
<option value="small">1核2G (入门)</option>
<option value="medium">24G (标准)</option>
<option value="large">4核8G (高性能)</option>
<option value="small">
12G (入门)
</option>
<option value="medium">
2核4G (标准)
</option>
<option value="large">
4核8G (高性能)
</option>
</select>
</div>
<div class="config-row">
<span class="label">运行时长</span>
<input type="range" v-model.number="config.hours" min="1" max="24" />
<input
v-model.number="config.hours"
type="range"
min="1"
max="24"
>
<span class="value">{{ config.hours }} 小时/</span>
</div>
<div class="config-row">
<span class="label">运行天数</span>
<input type="range" v-model.number="config.days" min="1" max="31" />
<input
v-model.number="config.days"
type="range"
min="1"
max="31"
>
<span class="value">{{ config.days }} /</span>
</div>
</div>
<div class="result-section">
<div class="result-header">月度成本对比</div>
<div class="result-header">
月度成本对比
</div>
<div class="result-cards">
<div class="result-card">
<div class="model">按需付费</div>
<div class="price">${{ costs.ondemand }}/</div>
<div class="model">
按需付费
</div>
<div class="price">
${{ costs.ondemand }}/
</div>
</div>
<div class="result-card recommended">
<div class="model">预留实例</div>
<div class="price">${{ costs.reserved }}/</div>
<div class="saving"> {{ savings }}%</div>
<div class="model">
预留实例
</div>
<div class="price">
${{ costs.reserved }}/
</div>
<div class="saving">
{{ savings }}%
</div>
</div>
<div class="result-card">
<div class="model">抢占式</div>
<div class="price">${{ costs.spot }}/</div>
<div class="model">
抢占式
</div>
<div class="price">
${{ costs.spot }}/
</div>
</div>
</div>
</div>