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:
@@ -6,35 +6,57 @@
|
||||
</div>
|
||||
|
||||
<div class="categories">
|
||||
<div v-for="(cat, index) in categories" :key="index" class="category">
|
||||
<div class="cat-title">{{ cat.title }}</div>
|
||||
<div
|
||||
v-for="(cat, index) in categories"
|
||||
:key="index"
|
||||
class="category"
|
||||
>
|
||||
<div class="cat-title">
|
||||
{{ cat.title }}
|
||||
</div>
|
||||
<div class="props-grid">
|
||||
<div
|
||||
v-for="prop in cat.props"
|
||||
:key="prop.name"
|
||||
class="prop-item"
|
||||
@click="activeProp = prop"
|
||||
:class="{ active: activeProp && activeProp.name === prop.name }"
|
||||
@click="activeProp = prop"
|
||||
>
|
||||
<div class="prop-name">{{ prop.name }}</div>
|
||||
<div class="prop-desc">{{ prop.desc }}</div>
|
||||
<div class="prop-name">
|
||||
{{ prop.name }}
|
||||
</div>
|
||||
<div class="prop-desc">
|
||||
{{ prop.desc }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="activeProp" class="prop-detail">
|
||||
<div
|
||||
v-if="activeProp"
|
||||
class="prop-detail"
|
||||
>
|
||||
<div class="detail-header">
|
||||
<span class="detail-name">{{ activeProp.name }}</span>
|
||||
<span class="detail-cat-badge">{{ activeProp.categoryLabel }}</span>
|
||||
</div>
|
||||
<div class="detail-desc">{{ activeProp.fullDesc }}</div>
|
||||
<div class="detail-desc">
|
||||
{{ activeProp.fullDesc }}
|
||||
</div>
|
||||
<div class="detail-code">
|
||||
<div class="code-label">示例代码:</div>
|
||||
<div class="code-label">
|
||||
示例代码:
|
||||
</div>
|
||||
<pre><code>{{ activeProp.example }}</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="prop-detail empty">点击上面的属性看看它能做什么 👆</div>
|
||||
<div
|
||||
v-else
|
||||
class="prop-detail empty"
|
||||
>
|
||||
点击上面的属性看看它能做什么 👆
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user