여러 줄 주석이 설명보다 경위(예전·실측·지적)를 적고 있어 읽는 사람이 결론을 찾기 어려웠다. - ts·tsx·js·mjs·css·py 478개: 여러 줄 주석은 첫 문장 한 줄로, 과거형·날짜 문장은 삭제 - 주석 위치는 TypeScript 파서·파이썬 tokenize/ast 로 찾는다 — 문자열 안의 # · /* 는 건드리지 않는다 - eslint·ts·noqa·type: ignore 같은 지시 주석은 그대로 둔다 파이썬 275개 정리 전후 AST 동일, TS 298개 주석 뺀 토큰 동일(빈 JSX 주석 10곳만 차이). site·frontend·admin tsc, site vitest 105 passed Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
/** 에디터 앞의 로그인 관문. */
|
|
import {SignInForm} from './SignInForm';
|
|
|
|
export function EditorSignInGate({onBack}: {onBack: () => void}) {
|
|
return (
|
|
<div className="flex min-h-screen items-center justify-center bg-muted/30 px-4">
|
|
<SignInForm
|
|
submitLabel="로그인하고 편집 시작"
|
|
header={
|
|
<div className="space-y-1 text-center">
|
|
<img src="/brand/web4ai-wordmark.svg" alt="Web4Ai" className="mx-auto mb-3 h-9 w-auto" />
|
|
<h1 className="text-sm font-bold">편집을 시작하려면 로그인해 주세요</h1>
|
|
<p className="text-xs leading-relaxed text-muted-foreground">
|
|
여기까지 만든 내용은 그대로 있습니다. 편집한 것을 저장하고 발행하는 데 계정이 필요합니다.
|
|
</p>
|
|
</div>
|
|
}
|
|
footer={
|
|
<button
|
|
type="button"
|
|
onClick={onBack}
|
|
className="w-full text-center text-[11px] text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"
|
|
>
|
|
디자인 고르기로 돌아가기
|
|
</button>
|
|
}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|