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
@@ -5,8 +5,12 @@
<template>
<div class="alert-flow-demo">
<div class="header">
<div class="title">告警流程 (Alerting Flow)</div>
<div class="subtitle">从发现异常到通知运维的自动化流程</div>
<div class="title">
告警流程 (Alerting Flow)
</div>
<div class="subtitle">
从发现异常到通知运维的自动化流程
</div>
</div>
<div class="controls">
@@ -29,18 +33,40 @@
{ active: step.active, completed: step.completed }
]"
>
<div class="step-number">{{ index + 1 }}</div>
<div class="step-content">
<div class="step-title">{{ step.title }}</div>
<div class="step-desc">{{ step.desc }}</div>
<div v-if="step.details" class="step-details">{{ step.details }}</div>
<div class="step-number">
{{ index + 1 }}
</div>
<div class="step-content">
<div class="step-title">
{{ step.title }}
</div>
<div class="step-desc">
{{ step.desc }}
</div>
<div
v-if="step.details"
class="step-details"
>
{{ step.details }}
</div>
</div>
<div
v-if="index < steps.length - 1"
class="step-arrow"
>
</div>
<div v-if="index < steps.length - 1" class="step-arrow"></div>
</div>
</div>
<div class="alert-info" v-if="currentAlert">
<div class="alert-header" :class="'level-' + currentAlert.level">
<div
v-if="currentAlert"
class="alert-info"
>
<div
class="alert-header"
:class="'level-' + currentAlert.level"
>
<span class="alert-icon"></span>
<span class="alert-title">告警详情</span>
<span class="alert-level">{{ currentAlert.levelName }}</span>
@@ -70,7 +96,9 @@
</div>
<div class="level-guide">
<div class="guide-title">告警级别说明</div>
<div class="guide-title">
告警级别说明
</div>
<div class="levels">
<div class="level-item">
<span class="level-badge p0">P0</span>