style: 按 Oxfmt 重新格式化
Deploy / deploy (push) Canceled after 0s

换格式化器带来的差异,只有 5 个文件:长联合类型改成每项一行、以 | 开头。
和上一个提交分开,方便 blame 时跳过(git blame --ignore-rev)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-09-27 15:37:23 +08:00
1 parent 44295188b9
commit 572a818d49
5 files changed
+12 -5

No files matched your search

@@ -1,7 +1,8 @@
import type { Exercise } from "utils/types"
export type Segment =
{ type: "md"; content: string } | { type: "exercise"; exercise: Exercise }
| { type: "md"; content: string }
| { type: "exercise"; exercise: Exercise }
export function parseExercises(
content: string,
@@ -112,7 +112,8 @@ const POLL_INTERVAL = 3000
const POLL_TIMEOUT = 3 * 60 * 1000
type Outcome =
{ ok: true; score: number; grade: string } | { ok: false; error?: string }
| { ok: true; score: number; grade: string }
| { ok: false; error?: string }
const { pause: pausePolling, resume: resumePolling } = useIntervalFn(
async () => {
+4 -1
View File
@@ -36,7 +36,10 @@ function handleForceLogout(reason: string) {
* WebSocket 连接状态
*/
export type ConnectionStatus =
"disconnected" | "connecting" | "connected" | "error"
| "disconnected"
| "connecting"
| "connected"
| "error"
/**
* WebSocket 消息类型