style(格式化): 改成单引号、一行最长 160,全仓重新格式化
Deploy / deploy (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-26 13:52:24 +08:00
1 parent 530e1a3d5d
commit 195069450f
480 files changed
+15507 -24650

No files matched your search

+18 -18
View File
@@ -1,6 +1,6 @@
import assert from "node:assert/strict"
import test from "node:test"
import { getSubmitButtonState } from "../src/oj/problem/components/submitButtonState.ts"
import assert from 'node:assert/strict'
import test from 'node:test'
import { getSubmitButtonState } from '../src/oj/problem/components/submitButtonState.ts'
const idleInput = {
isAuthed: true,
@@ -11,41 +11,41 @@ const idleInput = {
isCooldown: false,
}
test("shows a disabled loading state while formatting", () => {
test('shows a disabled loading state while formatting', () => {
assert.deepEqual(getSubmitButtonState({ ...idleInput, isFormatting: true }), {
disabled: true,
label: "格式化中",
icon: "eos-icons:loading",
label: '格式化中',
icon: 'eos-icons:loading',
})
})
test("shows submitting immediately after formatting", () => {
test('shows submitting immediately after formatting', () => {
assert.deepEqual(getSubmitButtonState({ ...idleInput, isSubmitting: true }), {
disabled: true,
label: "正在提交",
icon: "eos-icons:loading",
label: '正在提交',
icon: 'eos-icons:loading',
})
})
test("preserves existing login, judging, cooldown, and idle states", () => {
test('preserves existing login, judging, cooldown, and idle states', () => {
assert.deepEqual(getSubmitButtonState({ ...idleInput, isAuthed: false }), {
disabled: true,
label: "请先登录",
icon: "ph:play-fill",
label: '请先登录',
icon: 'ph:play-fill',
})
assert.deepEqual(getSubmitButtonState({ ...idleInput, isJudging: true }), {
disabled: true,
label: "正在评分",
icon: "eos-icons:loading",
label: '正在评分',
icon: 'eos-icons:loading',
})
assert.deepEqual(getSubmitButtonState({ ...idleInput, isCooldown: true }), {
disabled: true,
label: "正在冷却",
icon: "ph:lightbulb-fill",
label: '正在冷却',
icon: 'ph:lightbulb-fill',
})
assert.deepEqual(getSubmitButtonState(idleInput), {
disabled: false,
label: "提交代码",
icon: "ph:play-fill",
label: '提交代码',
icon: 'ph:play-fill',
})
})