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:
@@ -17,13 +17,26 @@
|
||||
<div class="header">
|
||||
<div class="scene-selector">
|
||||
<label>Scenario / 场景:</label>
|
||||
<select v-model="currentSceneKey" @change="resetScene">
|
||||
<option value="en-fox">English: The quick brown...</option>
|
||||
<option value="zh-ai">中文: 人工智能...</option>
|
||||
<option value="code">Code: if (x > 0)...</option>
|
||||
<select
|
||||
v-model="currentSceneKey"
|
||||
@change="resetScene"
|
||||
>
|
||||
<option value="en-fox">
|
||||
English: The quick brown...
|
||||
</option>
|
||||
<option value="zh-ai">
|
||||
中文: 人工智能...
|
||||
</option>
|
||||
<option value="code">
|
||||
Code: if (x > 0)...
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<button class="reset-btn" @click="resetScene" title="Reset">
|
||||
<button
|
||||
class="reset-btn"
|
||||
title="Reset"
|
||||
@click="resetScene"
|
||||
>
|
||||
<span class="icon">↺</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -34,9 +47,8 @@
|
||||
v-for="(token, index) in tokenizedContext"
|
||||
:key="index"
|
||||
class="context-token"
|
||||
>{{ token }}</span
|
||||
>
|
||||
<span class="cursor"></span>
|
||||
>{{ token }}</span>
|
||||
<span class="cursor" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -55,16 +67,14 @@
|
||||
>
|
||||
<div class="candidate-info">
|
||||
<span class="candidate-text">"{{ candidate.text }}"</span>
|
||||
<span class="candidate-prob"
|
||||
>{{ (candidate.prob * 100).toFixed(1) }}%</span
|
||||
>
|
||||
<span class="candidate-prob">{{ (candidate.prob * 100).toFixed(1) }}%</span>
|
||||
</div>
|
||||
<div class="prob-bar-bg">
|
||||
<div
|
||||
class="prob-bar-fill"
|
||||
:style="{ width: `${candidate.prob * 100}%` }"
|
||||
:class="`rank-${index}`"
|
||||
></div>
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user