terms: agreement pages + site Notion-style editor + rp cancel fix

- 5종 약관(map/resourcepack/mod/installer/installer-rp) markdown 시드 + manifest/terms/ 노출
- 사이트 /op/agreement 목록 + Notion 스타일 markdown 에디터 (슬래시 명령어, 미리보기)
- 메인 installer: 음악퀴즈 선택 직후 약관 동의 페이지(맵·모드·설치기) 추가
- rp installer: 음악퀴즈 선택 직후 약관 동의 페이지(리소스팩·설치기) 추가
- rp installer 취소 버그 수정: buildResourcepackZip 단계간 + archive.abort() 폴링
- rp installer 취소 UX: 즉시 "취소 중…" 표시, 취소 시 installFailed 알림 생략
- 0.2.6 → 0.3.0 (큰 기능)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-20 00:55:36 +09:00
parent bc3841147f
commit ffb2048627
26 changed files with 1323 additions and 18 deletions

95
public/termsEditor.css Normal file
View File

@@ -0,0 +1,95 @@
/* Notion 스타일 약관 편집기 전용 스타일.
* 텍스트영역과 미리보기 영역을 동일한 폭/타이포로 보여 주어 입력 ↔ 미리보기
* 전환 시 시각적 점프가 최소화되도록 한다. 슬래시 메뉴는 caret 좌표 위에
* 절대 위치로 띄운다. */
.termsEditorWrap {
position: relative;
margin-top: 12px;
}
.termsEditor {
width: 100%;
min-height: 60vh;
padding: 16px 18px;
border: 1px solid #d5d5d5;
border-radius: 8px;
background: #fff;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 14px;
line-height: 1.7;
resize: vertical;
box-sizing: border-box;
outline: none;
white-space: pre-wrap;
}
.termsEditor:focus {
border-color: #5b8def;
box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.2);
}
.termsPreview {
min-height: 60vh;
padding: 16px 18px;
border: 1px solid #d5d5d5;
border-radius: 8px;
background: #fafafa;
font-size: 14px;
line-height: 1.7;
box-sizing: border-box;
}
.termsPreview h1 { font-size: 22px; margin: 12px 0 8px; }
.termsPreview h2 { font-size: 18px; margin: 10px 0 6px; }
.termsPreview h3 { font-size: 15px; margin: 8px 0 4px; }
.termsPreview p { margin: 6px 0; }
.termsPreview ul, .termsPreview ol { margin: 6px 0; padding-left: 22px; }
.termsPreview li { margin: 2px 0; }
.termsPreview hr { border: none; border-top: 1px solid #e0e0e0; margin: 12px 0; }
.termsPreview blockquote {
margin: 8px 0; padding: 4px 12px; border-left: 3px solid #ddd; color: #555;
}
.termsPreview code {
background: #eee; padding: 1px 5px; border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 13px;
}
.termsPreview pre {
background: #f0f0f0; padding: 10px 12px; border-radius: 6px; overflow: auto;
}
.termsPreview pre code { background: transparent; padding: 0; }
.termsPreview a { color: #2664d8; text-decoration: underline; word-break: break-all; }
.termsPreview details {
margin: 6px 0; border: 1px solid #e0e0e0; border-radius: 6px;
background: #fff; padding: 4px 10px;
}
.termsPreview details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
/* 슬래시 자동완성 메뉴 — 노션 느낌으로 caret 좌표 위에 띄움. */
.slashMenu {
position: absolute;
z-index: 50;
min-width: 220px;
max-height: 280px;
overflow-y: auto;
background: #fff;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
padding: 4px;
font-size: 13px;
}
.slashMenu .slashItem {
display: flex; flex-direction: column;
padding: 6px 10px;
border-radius: 6px;
cursor: pointer;
}
.slashMenu .slashItem:hover,
.slashMenu .slashItem.active {
background: #eef2ff;
}
.slashMenu .slashItem strong { font-size: 13px; }
.slashMenu .slashItem span { color: #888; font-size: 11px; }