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,7 +5,9 @@
<template>
<div class="authn-authz-demo">
<div class="header">
<div class="title">🪪 AuthN vs 🛂 AuthZ一个请求到底会经历什么</div>
<div class="title">
🪪 AuthN vs 🛂 AuthZ一个请求到底会经历什么
</div>
<div class="subtitle">
选择谁在请求要做什么看看认证/授权分别在哪一步起作用
</div>
@@ -13,7 +15,9 @@
<div class="grid">
<div class="card">
<div class="card-title">选择请求</div>
<div class="card-title">
选择请求
</div>
<label class="label">身份AuthN你是谁</label>
<div class="row">
@@ -48,18 +52,26 @@
</div>
<div class="card">
<div class="card-title">模拟结果</div>
<div class="card-title">
模拟结果
</div>
<div class="result">
<div class="line">
<span class="k">AuthN认证</span>
<span class="v" :class="authn.ok ? 'ok' : 'bad'">
<span
class="v"
:class="authn.ok ? 'ok' : 'bad'"
>
{{ authn.ok ? '通过' : '失败' }}
</span>
</div>
<div class="line">
<span class="k">AuthZ授权</span>
<span class="v" :class="authz.ok ? 'ok' : 'bad'">
<span
class="v"
:class="authz.ok ? 'ok' : 'bad'"
>
{{ authz.ok ? '允许' : '拒绝' }}
</span>
</div>
@@ -74,7 +86,9 @@
</div>
<div class="card">
<div class="card-title">关键点</div>
<div class="card-title">
关键点
</div>
<ul class="list">
<li><strong>认证失败</strong>你是谁都不确定 通常返回 401</li>
<li>
@@ -82,8 +96,7 @@
403
</li>
<li>
<strong>授权规则要在服务端</strong
>别相信前端的是否显示按钮那只是 UX
<strong>授权规则要在服务端</strong>别相信前端的是否显示按钮那只是 UX
</li>
</ul>
</div>