@eliceio/cdk-cli 1.7.0 → 1.7.1-entryqa.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/skills/_shared/references/17-using-the-entry-template.md +6 -4
- package/templates/entry/README.md +5 -5
- package/templates/entry/core/grading.js +1 -1
- package/templates/entry/docs/storage.md +2 -2
- package/templates/entry/screens/edit/panels/answer-project.js +1 -1
- package/templates/entry/screens/edit/panels/grading.d.ts +2 -1
- package/templates/entry/screens/edit/panels/grading.js +15 -11
- package/templates/entry/screens/edit/panels/index.js +6 -5
- package/templates/entry/screens/edit/panels/preference.d.ts +15 -0
- package/templates/entry/screens/edit/panels/preference.js +9 -21
- package/templates/entry/screens/edit/panels/project-panel.js +3 -6
- package/templates/entry/screens/edit.js +39 -10
- package/templates/entry/styles.css +226 -210
- package/templates/entry/template.json +1 -1
- package/templates/entry/ui/templates/page.js +22 -4
- package/templates/entry/ui/texts.js +11 -13
- package/templates/entry/ui/theme.css +19 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliceio/cdk-cli",
|
|
3
|
-
"version": "1.7.0",
|
|
3
|
+
"version": "1.7.1-entryqa.0",
|
|
4
4
|
"description": "교육자용 Custom HTML 콘텐츠 CLI",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"rollup": "4.62.4",
|
|
48
48
|
"tslib": "2.8.1",
|
|
49
49
|
"typescript": "6.0.3",
|
|
50
|
-
"@eliceio/cdk": "^1.7.0"
|
|
50
|
+
"@eliceio/cdk": "^1.7.1-entryqa.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"prebuild": "del-cli \"buildcache/*\" \"es/*\"",
|
|
@@ -12,13 +12,15 @@
|
|
|
12
12
|
|
|
13
13
|
**The edit screen**
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Three tabs at the top, and a save bar at the bottom ("초안으로 저장"; nothing is saved until the person presses it):
|
|
16
|
+
|
|
16
17
|
- **"시작 화면" tab**: the project learners open first.
|
|
17
|
-
- **"채점
|
|
18
|
+
- **"채점 화면" tab**: the answer project. It opens with the saved answer, otherwise a copy of the current start project, so object ids match.
|
|
19
|
+
- **"설정" tab**: "언어 선택" first, "블록 코딩" (`block`) or "엔트리파이썬" (`python`); changing it reloads the workspaces. Below it "채점 방식":
|
|
18
20
|
- **"일반 채점"**: the server compares the learner's project with the answer project, 0 or 100. The answer project needs at least one block script or global list, or the save is blocked.
|
|
19
21
|
- **"AI 채점"**: rows of 오브젝트 · 채점 기준 · 부분 점수, and the AI gives a partial score per row. 1–10 rows, each criterion up to 1,000 characters, integer scores 1–100 that sum to exactly 100 (`core/grading.js` `RUBRIC_LIMITS`). "자동 배점" splits 100 evenly and gives the rest to the last row (3 → 33 · 33 · 34). Every row picks one object of the answer project; there is no whole-project criterion. AI grading also needs a start project.
|
|
20
|
-
- A new material whose "채점
|
|
21
|
-
-
|
|
22
|
+
- A new material whose "채점 화면" tab was never opened saves with no grading.
|
|
23
|
+
- When the whole settings pass 80% of the limit, a chip under the project shows their size. The limit is 64KB (`core/settings.js` `LIMITS`); a bigger project cannot be saved.
|
|
22
24
|
- In an AI-graded material, changing a saved start project shows a warning. If learners already started, tell the person: work equal to the new start project scores 0, and learners who started from the old one may be graded wrong.
|
|
23
25
|
|
|
24
26
|
**Settings** (written by the edit screen; never by hand, 2 ②). `settings.entry` goes to every viewer, learners included, so never put an answer there:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Elice Custom HTML 학습자료 프로젝트입니다 (엔트리 템플릿). 엔트리 워크스페이스를 학습자료 안에 iframe으로 띄워 블록 코딩을 합니다.
|
|
4
4
|
|
|
5
|
-
- 편집 화면:
|
|
5
|
+
- 편집 화면: 맨 위 탭 세 개. '시작 화면' 탭에서 학생이 처음 볼 작품을, '채점 화면' 탭에서 정답 작품을 만들고, '설정' 탭에서 언어(블록 코딩, 엔트리파이썬)와 채점 방식(일반 채점, AI 채점) · AI 채점 기준을 정한 뒤 맨 아래 '초안으로 저장'으로 저장합니다. 설정 전체 용량이 한도(64KB)의 80%를 넘으면 작품 아래 오른쪽에 용량 칩이 보이고, 한도를 넘으면 저장을 막습니다.
|
|
6
6
|
- 학생 화면: 저장한 작품 또는 시작 화면 작품을 열고, 바뀌면 자동 저장합니다. '제출하기'로 작품을 내면 서버가 채점하고, 아래 줄에 '최종 제출 : 점수 (날짜 시각)'이 보입니다. 일반 채점이면 '올바르게 작성했어요' · '틀렸어요. 다시 해보세요.', AI 채점이면 'AI 채점' 표시와 'AI 피드백 보기'(기준별 피드백)가 보입니다.
|
|
7
7
|
|
|
8
8
|
> **운영 LXP에서는 아직 워크스페이스가 뜨지 않습니다.** 학습자료의 콘텐츠 보안 정책(CSP)이 다른 주소를 iframe으로 띄우지 못하게 막고 있어서, 서버 CSP의 `frame-src`에 워크스페이스 주소(`https://entry-workspace.elice.io`)가 들어가야 뜹니다. 그 전에는 워크스페이스 자리에 "엔트리를 열 수 없습니다" 안내가 보입니다. `ecdk dev`에서는 로컬 워크스페이스로 확인할 수 있습니다 (아래 "로컬에서 확인").
|
|
@@ -12,7 +12,7 @@ Elice Custom HTML 학습자료 프로젝트입니다 (엔트리 템플릿). 엔
|
|
|
12
12
|
| 파일 | 화면 |
|
|
13
13
|
| --- | --- |
|
|
14
14
|
| `screens/learn.js`, `index.html` | 학생 화면 (워크스페이스, 아래 줄: 저장 표시, 채점 결과, 최종 제출 점수와 시각, AI 채점 표시, AI 피드백, 제출하기) |
|
|
15
|
-
| `screens/edit.js`, `edit.html` | 내용 편집 화면.
|
|
15
|
+
| `screens/edit.js`, `edit.html` | 내용 편집 화면. 탭('시작 화면', '채점 화면', '설정')에 패널을 그리고 맨 아래 키트 저장 바로 저장 |
|
|
16
16
|
| `screens/edit/panels/` | 편집 화면 패널. 새 기능은 패널 파일 하나와 `index.js` 목록에 한 줄 |
|
|
17
17
|
| `ui/` | 모양: 크기와 색(`theme.css`), 문구(`texts.js`), 마크업(`templates/`) |
|
|
18
18
|
| `styles.css` | 배치 |
|
|
@@ -71,17 +71,17 @@ ws.onChange(() => autosave.schedule()); // 블록이 바뀔 때마다
|
|
|
71
71
|
|
|
72
72
|
## 채점과 학습 완료
|
|
73
73
|
|
|
74
|
-
편집 화면 '채점 설정' 탭에서 저장한 채점 설정(`settings.grading`)으로 서버가 채점합니다. 정답 작품과 기준은 학생 화면에 내려가지 않습니다.
|
|
74
|
+
편집 화면 '채점 화면' · '설정' 탭에서 저장한 채점 설정(`settings.grading`)으로 서버가 채점합니다. 정답 작품과 기준은 학생 화면에 내려가지 않습니다.
|
|
75
75
|
|
|
76
76
|
- 일반 채점: 정답 작품과 비교해 0점 또는 100점. 학생 화면에 '올바르게 작성했어요' · '틀렸어요. 다시 해보세요.'(LXP 문구). 정답 작품에 블록(또는 전역 리스트)이 하나도 없으면 저장을 막습니다 (아무도 100점을 받을 수 없음, 서버도 422 `entry_answer_project_empty`).
|
|
77
77
|
- AI 채점: 기준(오브젝트, 채점 기준, 부분 점수)마다 AI가 부분 점수를 줍니다. 기준은 1~10개, 부분 점수는 1~100 정수이고 합이 100점이어야 저장됩니다. '자동 배점'은 기준 수로 100점을 정수로 나눠 채웁니다 (나머지는 마지막 기준에, 예: 3개면 33 · 33 · 34). 저장을 눌렀을 때 빈 칸이나 총점 문제는 칸 아래에 빨간 글로 보입니다. 오브젝트 목록은 **정답 작품**의 오브젝트이고(정답 작품은 시작 화면을 복사해 시작하므로 학생 작품과 같은 id), 기준마다 오브젝트를 하나 골라야 합니다. 작품 전체("공통") 기준은 없습니다: 고르지 않았거나 정답 작품에 없는 오브젝트면 저장을 막습니다(서버도 422 `entry_rubric_object_not_found`). AI 채점은 시작 화면 작품도 있어야 저장됩니다(서버 422 `entry_project_invalid`). 학생 화면은 'AI 채점' 표시, 제출 뒤 "AI가 채점하고 있습니다. 최대 45초 걸릴 수 있습니다."를 보여 줍니다.
|
|
78
78
|
- AI 채점 자료에서 저장했던 시작 화면을 바꾸면 '시작 화면' 탭에 경고가 보입니다 (막지 않음). 이미 공개한 자료면 학생 작품이 바뀐 시작 화면과 같을 때 '아직 풀지 않음'(0점)이 되고, 이미 시작한 학생은 옛 화면에서 출발해 채점이 틀릴 수 있습니다. SDK가 공개 여부를 알려 주지 않아 시작 화면을 저장한 적이 있으면 보입니다.
|
|
79
|
-
- '채점
|
|
79
|
+
- '채점 화면' 탭을 처음 열면 정답 작품 워크스페이스가 저장된 정답, 없으면 지금 시작 화면 작품으로 열립니다. 탭을 열지 않은 새 자료는 채점 설정 없이 저장되고(점수 '--'), AI 채점은 정답 작품이 있어야 저장됩니다.
|
|
80
80
|
- 서버가 저장을 거절하면(422) 키트가 서버 코드를 한국어 문구로 보여 줍니다. 제출이 너무 크거나 복잡하면(422 `project_too_large` · `project_too_complex`) "작품이 너무 커요…", AI 채점 실패(502) · 크레딧 없음(409)은 키트 문구입니다.
|
|
81
81
|
- 학생 화면이 채점 방식을 아는 방법: `app.gradingMode`(SDK `material.gradingMode`, 서버 `/me` `grading_mode`). 이 값을 주지 않는 SDK에서는 'AI 채점' 표시 · 기다림 문구를 보이지 않고, 일반 채점 문구는 제출 결과의 `gradingFeedback`이 일반 모양(`criteria: []`)일 때만 보입니다.
|
|
82
82
|
- `ecdk dev`의 채점은 흉내입니다: 일반은 작품 글자가 정답과 같을 때만 100점, AI는 작품 크기로 낸 점수와 흉내 피드백입니다.
|
|
83
83
|
|
|
84
|
-
학습 완료는 교육자가 LXP 편집 페이지 위쪽 '설정' 패널에서 고릅니다: 채점해 통과하면 완료(on_graded, 화면 이름 '답안 확인 후 완료') 또는 제출 시 학습 완료(on_submit). 채점 점수로 완료하려면 '답안 확인 후 완료'여야 합니다 ('
|
|
84
|
+
학습 완료는 교육자가 LXP 편집 페이지 위쪽 '설정' 패널에서 고릅니다: 채점해 통과하면 완료(on_graded, 화면 이름 '답안 확인 후 완료') 또는 제출 시 학습 완료(on_submit). 채점 점수로 완료하려면 '답안 확인 후 완료'여야 합니다 ('설정' 탭에서 AI 채점을 고르면 안내). publish 스킬이 동의를 받아 업로드 때 정할 수도 있습니다.
|
|
85
85
|
|
|
86
86
|
## 샌드박스에서 안 되는 것
|
|
87
87
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
| 무엇 | 어디에 (정확한 키) | 누가, 언제 쓰나 | 모양 | 한도 | 누가 읽나 |
|
|
16
16
|
| --- | --- | --- | --- | --- | --- |
|
|
17
17
|
| 시작 화면 작품 | `settings.entry.startProject` | 교육자, 편집 화면 '시작 화면' 탭 + 저장 버튼. 저장 직전에 워크스페이스에서 작품을 꺼냄(`TO_GET_PROJECT`), 워크스페이스 안 "저장하기"로 받은 작품이 있으면 그것 | `{ enc: 'gzip+base64', data }` (CompressionStream이 없으면 `{ enc: 'json', data }`) | settings 전체 64KB. 편집 화면이 저장 전에 크기를 보여 주고 넘으면 막음 | 모든 화면 (학생도 받음). 정답을 넣지 않음 |
|
|
18
|
-
| 언어 선택 | `settings.entry.preference.workspaceMode` | 교육자, 편집 화면 "언어 선택" | `'block'` 또는 `'python'` (모르는 값은 `'block'`) | settings 전체 64KB | 모든 화면. 학생 화면이 워크스페이스 `GET_ELICE_PREFERENCE` 답으로 줌 |
|
|
19
|
-
| 채점 방식 · 정답 작품 · AI 채점 기준 | `settings.grading` | 교육자, 편집 화면 '채점 설정' 탭 + 저장 버튼 (키트 `useSave`의 `getGrading`). 정답 작품은 탭을 연 뒤 저장 직전에 꺼냄. 탭을 열지 않으면 저장돼 있던 정답을 그대로 둠. 정답 작품이 없으면(새 자료에서 탭을 열지 않음) 채점 설정을 저장하지 않음, AI 채점이면 저장을 막음. 저장 전 검사(서버 422와 같은 규칙): AI는 시작 화면 작품이 있어야 하고 기준마다 정답 작품에 있는 오브젝트를 골라야 함, 일반은 정답 작품에 블록 묶음이나 전역 리스트가 하나 이상 | 일반 `{ type: 'entry', mode: 'general', answer_project: { enc, data } }` · AI `{ type: 'entry', mode: 'ai', answer_project, rubrics: [{ object, criteria, score }] }` (`object`는 정답 작품에 있는 엔트리 오브젝트 id, 작품 전체 기준은 없음(`''` · 없는 id는 서버 422 `entry_rubric_object_not_found`) · 기준 1~10개 · `criteria` 1~1,000자 · `score` 1~100 정수 · 합 100) | settings 전체 64KB (용량 칩은 grading까지 잼) | 편집 화면과 서버만. 서버가 학생 · 튜터 · 교육자 화면에는 내려주지 않음 (`ecdk dev` 흉내 서버도 같음) |
|
|
18
|
+
| 언어 선택 | `settings.entry.preference.workspaceMode` | 교육자, 편집 화면 '설정' 탭 "언어 선택" | `'block'` 또는 `'python'` (모르는 값은 `'block'`) | settings 전체 64KB | 모든 화면. 학생 화면이 워크스페이스 `GET_ELICE_PREFERENCE` 답으로 줌 |
|
|
19
|
+
| 채점 방식 · 정답 작품 · AI 채점 기준 | `settings.grading` | 교육자, 편집 화면 '채점 화면' 탭(정답 작품) · '설정' 탭(채점 방식 · AI 채점 기준) + 저장 버튼 (키트 `useSave`의 `getGrading`). 정답 작품은 탭을 연 뒤 저장 직전에 꺼냄. 탭을 열지 않으면 저장돼 있던 정답을 그대로 둠. 정답 작품이 없으면(새 자료에서 탭을 열지 않음) 채점 설정을 저장하지 않음, AI 채점이면 저장을 막음. 저장 전 검사(서버 422와 같은 규칙): AI는 시작 화면 작품이 있어야 하고 기준마다 정답 작품에 있는 오브젝트를 골라야 함, 일반은 정답 작품에 블록 묶음이나 전역 리스트가 하나 이상 | 일반 `{ type: 'entry', mode: 'general', answer_project: { enc, data } }` · AI `{ type: 'entry', mode: 'ai', answer_project, rubrics: [{ object, criteria, score }] }` (`object`는 정답 작품에 있는 엔트리 오브젝트 id, 작품 전체 기준은 없음(`''` · 없는 id는 서버 422 `entry_rubric_object_not_found`) · 기준 1~10개 · `criteria` 1~1,000자 · `score` 1~100 정수 · 합 100) | settings 전체 64KB (용량 칩은 grading까지 잼) | 편집 화면과 서버만. 서버가 학생 · 튜터 · 교육자 화면에는 내려주지 않음 (`ecdk dev` 흉내 서버도 같음) |
|
|
20
20
|
| 그 밖의 settings 키 | `settings.*`, `settings.entry.*` 중 패널이 모르는 칸 | AI나 MCP, 다른 도구 | 그대로 | settings 전체 64KB | 모든 화면. 편집 화면 저장이 지우지 않고 그대로 둠 (`settings.entry.grading` · `settings.entry.answerProject`는 정답이 학생에게 가지 않게 저장 때 뺌) |
|
|
21
21
|
| 학생 작품 (진행 중) | kvstore key `entry` | 학생. 블록이 바뀌면(`UPDATED_PROJECT`) 2초 모았다가 작품을 꺼내 저장, 워크스페이스 "저장하기"(`SAVE_PROJECT`)는 바로, 제출한 뒤에도 한 번 | `{ v: 1, savedAt: ISO 시각, project: { enc, data } }` | 512KB (넘으면 저장하지 않고 "자동 저장 실패" 표시) | 학생 본인, 튜터링(읽기만) |
|
|
22
22
|
| 제출 작품 | 제출 답 (서버 제출 기록) | 학생, 제출 버튼 | `{ v: 1, project: { enc, data } }` | 64KB (넘으면 제출을 막고 안내) | 학생 본인 기록, 교육자 제출 목록 |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// 패널: 정답 작품 ('채점
|
|
1
|
+
// 패널: 정답 작품 ('채점 화면' 탭). 정답으로 인정할 작품을 settings.grading.answer_project에 저장합니다 (secret: 학생에게 안 감).
|
|
2
2
|
// 워크스페이스는 탭을 처음 열 때 띄웁니다. 저장된 정답이 없으면 지금 시작 화면 작품에서 시작합니다 (screens/edit.js).
|
|
3
3
|
// 탭을 열지 않고 저장하면 저장돼 있던 정답을 그대로 둡니다.
|
|
4
4
|
import { readGrading } from '../../../core/grading.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// 패널: 채점 방식 ('
|
|
2
|
-
// secret: settings.grading에 저장합니다 (학생에게 안 감). 모양은 core/grading.js, 정답 작품은 answer-project.js
|
|
3
|
-
// 화면
|
|
1
|
+
// 패널: 채점 방식 ('설정' 탭, 언어 선택 아래). 일반 채점 · AI 채점과 AI 채점 기준(오브젝트 · 채점 기준 · 부분 점수)을 고릅니다.
|
|
2
|
+
// secret: settings.grading에 저장합니다 (학생에게 안 감). 모양은 core/grading.js, 정답 작품은 answer-project.js 패널('채점 화면' 탭).
|
|
3
|
+
// 화면 배치 (디자인 시안 '내용 편집 다이얼로그'): 구역 제목 '채점 방식' → 세그먼트(일반 · AI) + 완료 정책 안내 → AI일 때만 'AI 채점 기준' 회색 상자.
|
|
4
4
|
// 검사: 저장을 누르면 칸마다 아래에 빨간 글(오브젝트 · 채점 기준 · 점수, 마지막 줄 점수 칸에 총점)을 띄우고 첫 칸으로 옮기며,
|
|
5
5
|
// 저장 바에는 요약 한 줄. 그 뒤로는 고칠 때마다 다시 그림. 총점이 100을 넘으면 저장 전에도 보임.
|
|
6
6
|
// 오브젝트 목록은 정답 작품에서 받습니다(ctx.objects: 정답 작품 워크스페이스의 TO_GET_OBJECTS, 띄우기 전이면 저장된 정답 → 시작 화면).
|
|
@@ -141,7 +141,9 @@ function thumb(src) {
|
|
|
141
141
|
export default {
|
|
142
142
|
id: 'grading',
|
|
143
143
|
title: t.title,
|
|
144
|
-
tab: '
|
|
144
|
+
tab: 'settings',
|
|
145
|
+
/** 탭 안에서도 구역 제목을 보임 */
|
|
146
|
+
heading: true,
|
|
145
147
|
secret: true,
|
|
146
148
|
/** app.grading → { mode, rubrics } */
|
|
147
149
|
normalize(raw) {
|
|
@@ -152,7 +154,7 @@ export default {
|
|
|
152
154
|
const get = () => ctx.value;
|
|
153
155
|
const update = patch => ctx.set({ ...get(), ...patch });
|
|
154
156
|
|
|
155
|
-
// 채점 방식
|
|
157
|
+
// 채점 방식 줄: 세그먼트(일반 채점 · AI 채점) + 완료 정책 안내 (두 방식 모두)
|
|
156
158
|
const modeCard = (mode, label) =>
|
|
157
159
|
node(
|
|
158
160
|
'label',
|
|
@@ -171,19 +173,19 @@ export default {
|
|
|
171
173
|
}),
|
|
172
174
|
node('span', { class: 'en-radio-card-title' }, label)
|
|
173
175
|
);
|
|
176
|
+
// 완료 정책 안내: 채점 결과로 완료하려면 LXP 설정에서 '답안 확인 후 완료'(on_graded)
|
|
177
|
+
const policyNote = node('p', { class: 'en-grading-note' }, icon.info(), node('span', {}, t.policyNote));
|
|
174
178
|
const modeRow = node(
|
|
175
179
|
'div',
|
|
176
|
-
{ class: 'en-grading-mode' },
|
|
177
|
-
node('p', { class: 'en-field-title' }, t.method),
|
|
180
|
+
{ class: 'en-settings-row en-grading-mode' },
|
|
178
181
|
node(
|
|
179
182
|
'fieldset',
|
|
180
183
|
{ class: 'en-modes' },
|
|
181
|
-
node('legend', { class: 'ec-visually-hidden' }, t.
|
|
184
|
+
node('legend', { class: 'ec-visually-hidden' }, t.title),
|
|
182
185
|
modeCard('general', t.modes.general),
|
|
183
186
|
modeCard('ai', t.modes.ai)
|
|
184
187
|
),
|
|
185
|
-
|
|
186
|
-
node('p', { class: 'en-grading-note' }, icon.info(), node('span', {}, t.policyNote))
|
|
188
|
+
policyNote
|
|
187
189
|
);
|
|
188
190
|
|
|
189
191
|
// 채점 기준 예시 (팝오버)
|
|
@@ -454,7 +456,9 @@ export default {
|
|
|
454
456
|
let revealed = false;
|
|
455
457
|
/** 줄마다 칸 요소 { selectBox, selectButton, selectMessage, criteria, criteriaMessage, scoreBox, score, scoreMessage } */
|
|
456
458
|
let cells = [];
|
|
457
|
-
|
|
459
|
+
// 칸 아래 오류 글은 내용 변경이 아님 (data-ec-quiet: 키트 저장 바가 '저장하지 않은 변경'으로 저장 전 검사 문구를 덮지 않게)
|
|
460
|
+
const errorLine = () =>
|
|
461
|
+
node('p', { class: 'en-field-error', hidden: true, 'data-ec-quiet': true });
|
|
458
462
|
/** 줄마다 칸의 문제 (문구, 없으면 '') */
|
|
459
463
|
const rowProblems = () => {
|
|
460
464
|
const rows = get().rubrics;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
// 편집 화면 패널 목록.
|
|
1
|
+
// 편집 화면 패널 목록. 탭은 처음 나오는 순서대로(시작 화면 · 채점 화면 · 설정), 탭 안 패널은 위에서부터 이 순서로 그립니다.
|
|
2
|
+
// 새 기능 = 패널 파일 하나 + 이 목록에 한 줄.
|
|
2
3
|
//
|
|
3
4
|
// 패널 하나의 약속 (preference.js · grading.js · project-panel.js가 예):
|
|
4
5
|
// export default {
|
|
5
6
|
// id: 'blocks', // settings.entry.blocks 에 저장 (패널은 자기 칸만 읽고 씀)
|
|
6
7
|
// title: '쓸 블록',
|
|
7
|
-
// tab: 'start', // (선택) 이 탭 안에 그림: 'start'(시작 화면) · 'answer'(채점 설정). 없으면 탭 위
|
|
8
|
+
// tab: 'start', // (선택) 이 탭 안에 그림: 'start'(시작 화면) · 'answer'(채점 화면) · 'settings'(설정). 없으면 탭 위
|
|
9
|
+
// heading: true, // (선택) 탭 안에서도 구역 제목(16px)을 보임 ('설정' 탭 구역). 없으면 화면 읽기 프로그램만
|
|
8
10
|
// secret: true, // (선택) settings.entry가 아니라 settings.grading으로 (학생에게 안 감).
|
|
9
11
|
// // normalize는 app.grading을 받고, screens/edit.js가 core/grading.js buildGrading으로 합침
|
|
10
12
|
// normalize(raw) { … }, // 저장된 값 → 패널 값 (없거나 틀리면 기본값)
|
|
@@ -14,12 +16,11 @@
|
|
|
14
16
|
// toPreference(value) { … }, // (선택) 워크스페이스 설정(GET_ELICE_PREFERENCE)에 합칠 값
|
|
15
17
|
// };
|
|
16
18
|
//
|
|
17
|
-
// 워크스페이스는 탭마다 하나 (ctx.workspace(): '
|
|
19
|
+
// 워크스페이스는 작품 탭마다 하나 (ctx.workspace(): 'answer' 탭 패널은 정답 작품, 그 밖은 시작 화면).
|
|
18
20
|
// 워크스페이스가 지금 받는 설정은 workspaceMode 하나뿐입니다. 숨길 블록 같은 새 설정은 워크스페이스에 받는 코드가 필요합니다.
|
|
19
|
-
// 채점 설정 탭의 배치(채점 방식 → 정답 작품 → AI 채점 기준)는 styles.css의 order가 정합니다.
|
|
20
21
|
import answerProject from './answer-project.js';
|
|
21
22
|
import grading from './grading.js';
|
|
22
23
|
import preference from './preference.js';
|
|
23
24
|
import startProject from './start-project.js';
|
|
24
25
|
|
|
25
|
-
export default [
|
|
26
|
+
export default [startProject, answerProject, preference, grading];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// screens/edit/panels/preference.js 타입 (테스트용). 패널 약속은 panels/index.js 머리 주석
|
|
2
|
+
export interface PreferenceValue {
|
|
3
|
+
workspaceMode: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare const panel: {
|
|
7
|
+
id: 'preference';
|
|
8
|
+
title: string;
|
|
9
|
+
tab: 'settings';
|
|
10
|
+
heading: true;
|
|
11
|
+
normalize(raw: unknown): PreferenceValue;
|
|
12
|
+
render(el: Element, ctx: unknown): void;
|
|
13
|
+
toPreference(value: PreferenceValue): { workspaceMode: string };
|
|
14
|
+
};
|
|
15
|
+
export default panel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// 패널: 언어 선택 (블록 코딩 · 엔트리파이썬). settings.entry.preference = { workspaceMode }
|
|
1
|
+
// 패널: 언어 선택 ('설정' 탭 맨 위 구역, 블록 코딩 · 엔트리파이썬). settings.entry.preference = { workspaceMode }
|
|
2
2
|
// 학생 화면은 이 값을 워크스페이스 GET_ELICE_PREFERENCE 답으로 줍니다. 편집 화면은 바꾸면 워크스페이스를 다시 엽니다 (screens/edit.js).
|
|
3
3
|
import { html } from '../../../core/dom.js';
|
|
4
4
|
import { normalizePreference, WORKSPACE_MODES } from '../../../core/settings.js';
|
|
@@ -7,6 +7,9 @@ import { texts } from '../../../ui/texts.js';
|
|
|
7
7
|
export default {
|
|
8
8
|
id: 'preference',
|
|
9
9
|
title: texts.edit.preference.title,
|
|
10
|
+
tab: 'settings',
|
|
11
|
+
/** 탭 안에서도 구역 제목을 보임 */
|
|
12
|
+
heading: true,
|
|
10
13
|
normalize: normalizePreference,
|
|
11
14
|
render(el, ctx) {
|
|
12
15
|
const t = texts.edit.preference;
|
|
@@ -29,26 +32,11 @@ export default {
|
|
|
29
32
|
if (input.checked) ctx.set({ workspaceMode: input.value });
|
|
30
33
|
});
|
|
31
34
|
}
|
|
32
|
-
// 안내 한
|
|
33
|
-
const info = html`<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
height="20"
|
|
38
|
-
viewBox="0 0 24 24"
|
|
39
|
-
fill="none"
|
|
40
|
-
stroke="currentColor"
|
|
41
|
-
stroke-width="1.75"
|
|
42
|
-
stroke-linecap="round"
|
|
43
|
-
stroke-linejoin="round"
|
|
44
|
-
>
|
|
45
|
-
<circle cx="12" cy="12" r="9.25" />
|
|
46
|
-
<path d="M12 11v6" />
|
|
47
|
-
<circle cx="12" cy="7.75" r="0.6" fill="currentColor" /></svg
|
|
48
|
-
></span>
|
|
49
|
-
<span>${t.info}</span>
|
|
50
|
-
</div>`;
|
|
51
|
-
el.append(group, info);
|
|
35
|
+
// 세그먼트 오른쪽 안내 한 줄 (바꾸면 워크스페이스를 다시 엶)
|
|
36
|
+
const info = html`<p class="en-settings-hint">${t.info}</p>`;
|
|
37
|
+
const row = html`<div class="en-settings-row"></div>`;
|
|
38
|
+
row.append(group, info);
|
|
39
|
+
el.append(row);
|
|
52
40
|
},
|
|
53
41
|
toPreference(value) {
|
|
54
42
|
return { workspaceMode: value.workspaceMode };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// 작품 패널 만들기: 워크스페이스(?mode=skeleton) 하나 + 아래 줄(
|
|
1
|
+
// 작품 패널 만들기: 워크스페이스(?mode=skeleton) 하나 + 아래 줄(오른쪽 용량 칩, 한도의 80%를 넘을 때만). 시작 화면 · 정답 작품 패널이 씁니다.
|
|
2
2
|
// 저장 직전 워크스페이스에서 작품을 꺼내 core/pack.js 모양({ enc: 'gzip+base64', data })으로 줄입니다.
|
|
3
3
|
// 용량: 블록이 바뀌면 2초 뒤 작품을 꺼내 settings 전체 크기를 다시 재고(칩은 screens/edit.js가 두 탭 모두 같이 바꿈),
|
|
4
4
|
// 저장할 때 다시 잽니다. settings 전체가 서버 한도(64KB)를 넘으면 칩 위에 빨간 글을 띄우고 저장을 막습니다.
|
|
5
|
-
import { infoList } from '../../../lib/elice-content.js';
|
|
6
5
|
import { html } from '../../../core/dom.js';
|
|
7
6
|
import { packedProject } from '../../../core/grading.js';
|
|
8
7
|
import { formatBytes, pack } from '../../../core/pack.js';
|
|
@@ -15,7 +14,7 @@ const MEASURE_DELAY_MS = 2000;
|
|
|
15
14
|
* @param {{
|
|
16
15
|
* id: string,
|
|
17
16
|
* tab: string,
|
|
18
|
-
* t: { title: string,
|
|
17
|
+
* t: { title: string, noProject: string },
|
|
19
18
|
* lazy?: boolean, // 탭을 처음 열 때 워크스페이스를 띄움 (그 전에는 저장된 값을 그대로 저장)
|
|
20
19
|
* secret?: boolean, // settings.entry가 아니라 settings.grading에 저장 (학생에게 안 감). normalize는 app.grading을 받음
|
|
21
20
|
* fromGrading?: (grading: unknown) => unknown,
|
|
@@ -29,9 +28,7 @@ export function projectPanel({ id, tab, t, lazy = false, secret = false, fromGra
|
|
|
29
28
|
secret,
|
|
30
29
|
normalize: raw => packedProject(secret ? fromGrading(raw) : raw),
|
|
31
30
|
render(el, ctx) {
|
|
32
|
-
const
|
|
33
|
-
info.setAttribute('data-ec-quiet', '');
|
|
34
|
-
const footer = html`<div class="en-panel-footer">${info}${ctx.sizeBox()}</div>`;
|
|
31
|
+
const footer = html`<div class="en-panel-footer">${ctx.sizeBox()}</div>`;
|
|
35
32
|
el.append(footer);
|
|
36
33
|
|
|
37
34
|
let timer = null;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
// 내용 편집 화면.
|
|
2
|
-
// 키트 저장 바(useSave)로 저장합니다. 새 기능은 패널 파일 하나 + 목록에 한 줄 (panels/index.js 머리 주석).
|
|
1
|
+
// 내용 편집 화면. 탭 카드('시작 화면' · '채점 화면' · '설정')에 패널(screens/edit/panels/index.js)을 그리고,
|
|
2
|
+
// 키트 저장 바(useSave)로 저장합니다. 배치는 디자인 시안 '내용 편집 다이얼로그 (Full screen)' (머리 줄 · 아래 저장 줄은 LXP 편집기가 그림). 새 기능은 패널 파일 하나 + 목록에 한 줄 (panels/index.js 머리 주석).
|
|
3
3
|
//
|
|
4
4
|
// 저장하는 곳 (docs/storage.md):
|
|
5
5
|
// settings.entry.<패널 id> : 학생에게도 내려가는 값 (시작 화면 작품 · 언어)
|
|
6
6
|
// settings.grading : secret 패널(채점 방식 · 정답 작품)을 core/grading.js buildGrading으로 합친 것. 서버가 학생에게 내려주지 않음
|
|
7
7
|
//
|
|
8
|
-
// 워크스페이스(?mode=skeleton)는 탭마다 하나: 시작 화면은 처음부터 띄우고, 정답 작품은 '채점
|
|
8
|
+
// 워크스페이스(?mode=skeleton)는 작품 탭마다 하나: 시작 화면은 처음부터 띄우고, 정답 작품은 '채점 화면' 탭을 처음 열 때 띄웁니다.
|
|
9
|
+
// '설정' 탭: 언어 선택 → 채점 방식(AI 채점이면 AI 채점 기준).
|
|
9
10
|
// 저장 전 검사(서버 422와 같은 규칙): AI 채점은 정답 작품 · 시작 화면 작품이 있어야 하고 기준의 오브젝트가 정답 작품에 있어야 함,
|
|
10
11
|
// 일반 채점은 정답 작품에 블록(또는 전역 리스트)이 있어야 함. 서버가 그래도 거절하면 키트가 서버 코드를 한국어 문구로 보여 줌.
|
|
11
12
|
import { start } from '../lib/elice-content.js';
|
|
@@ -14,7 +15,7 @@ import { buildGrading, hasGradable, hasUnknownObject, projectObjects } from '../
|
|
|
14
15
|
import { formatBytes, jsonBytes, unpack } from '../core/pack.js';
|
|
15
16
|
import { joinSettings, LIMITS, splitSettings } from '../core/settings.js';
|
|
16
17
|
import { connectWorkspace } from '../core/workspace.js';
|
|
17
|
-
import { loading, panelSection, sizeBox, tabCard, unavailable } from '../ui/templates/page.js';
|
|
18
|
+
import { loading, panelSection, saveHint, sizeBox, tabCard, unavailable } from '../ui/templates/page.js';
|
|
18
19
|
import { texts } from '../ui/texts.js';
|
|
19
20
|
import panels from './edit/panels/index.js';
|
|
20
21
|
|
|
@@ -108,13 +109,15 @@ async function reloadWorkspaces() {
|
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
// 용량 칩 (작품 패널 아래 오른쪽, 탭마다 하나): settings 전체 크기 / 서버 한도. 넘으면 칩 위에 빨간 글
|
|
112
|
+
// 용량 칩 (작품 패널 아래 오른쪽, 탭마다 하나): settings 전체 크기 / 서버 한도. 한도의 80%를 넘을 때만 보이고, 넘으면 칩 위에 빨간 글
|
|
113
|
+
const SIZE_CHIP_FROM = 0.8;
|
|
112
114
|
const sizeBoxes = [];
|
|
113
115
|
let lastTotal = null;
|
|
114
116
|
function showTotal(total) {
|
|
115
117
|
lastTotal = total;
|
|
116
118
|
const over = total > LIMITS.settingsBytes;
|
|
117
|
-
for (const { chip, message } of sizeBoxes) {
|
|
119
|
+
for (const { box, chip, message } of sizeBoxes) {
|
|
120
|
+
box.hidden = total <= LIMITS.settingsBytes * SIZE_CHIP_FROM;
|
|
118
121
|
chip.textContent = texts.edit.size.chip(formatBytes(total), formatBytes(LIMITS.settingsBytes));
|
|
119
122
|
chip.dataset.over = String(over);
|
|
120
123
|
message.textContent = over
|
|
@@ -166,10 +169,10 @@ const contexts = new Map(
|
|
|
166
169
|
onShow: cb => showListeners.get(panel).add(cb),
|
|
167
170
|
/** 이 패널 값이 v일 때 settings 전체 크기 (바이트, grading 포함) */
|
|
168
171
|
settingsBytes: v => totalBytes({ [panel.id]: v }),
|
|
169
|
-
/** 용량 칩 하나 (작품 패널
|
|
172
|
+
/** 용량 칩 하나 (작품 패널 아래, 한도의 80%를 넘을 때만 보임). 칩은 모든 탭이 같은 값 */
|
|
170
173
|
sizeBox() {
|
|
171
174
|
const box = sizeBox();
|
|
172
|
-
sizeBoxes.push({ chip: part(box, 'size-chip'), message: part(box, 'size-message') });
|
|
175
|
+
sizeBoxes.push({ box, chip: part(box, 'size-chip'), message: part(box, 'size-message') });
|
|
173
176
|
showTotal(lastTotal ?? totalBytes({}));
|
|
174
177
|
return box;
|
|
175
178
|
},
|
|
@@ -194,7 +197,12 @@ const contexts = new Map(
|
|
|
194
197
|
);
|
|
195
198
|
|
|
196
199
|
const sections = panels.map(panel => {
|
|
197
|
-
const section = panelSection({
|
|
200
|
+
const section = panelSection({
|
|
201
|
+
id: panel.id,
|
|
202
|
+
title: panel.title,
|
|
203
|
+
inTab: Boolean(panel.tab),
|
|
204
|
+
heading: Boolean(panel.heading),
|
|
205
|
+
});
|
|
198
206
|
panel.render(part(section, 'body'), contexts.get(panel));
|
|
199
207
|
return section;
|
|
200
208
|
});
|
|
@@ -207,6 +215,7 @@ const tabNames = [...new Set(tabbed.map(x => x.panel.tab))];
|
|
|
207
215
|
if (tabbed.length) {
|
|
208
216
|
const card = tabCard({ tabs: tabNames });
|
|
209
217
|
tabbed[0].section.before(card);
|
|
218
|
+
card.dataset.tabs = String(tabNames.length);
|
|
210
219
|
card.append(...tabbed.map(x => x.section));
|
|
211
220
|
const tabs = [...card.querySelectorAll('[data-role="tab"]')];
|
|
212
221
|
const select = (name, focus = false) => {
|
|
@@ -216,6 +225,7 @@ if (tabbed.length) {
|
|
|
216
225
|
tab.tabIndex = on ? 0 : -1;
|
|
217
226
|
if (on && focus) tab.focus();
|
|
218
227
|
}
|
|
228
|
+
card.dataset.selected = name;
|
|
219
229
|
for (const { panel, section } of tabbed) {
|
|
220
230
|
const on = panel.tab === name;
|
|
221
231
|
section.hidden = !on;
|
|
@@ -289,6 +299,25 @@ const save = app.useSave({
|
|
|
289
299
|
} else if (values.answerProject && answerDecoded && !hasGradable(answerDecoded)) return g.emptyAnswer;
|
|
290
300
|
return true;
|
|
291
301
|
},
|
|
292
|
-
// settings.grading: 정답 작품이 없으면(채점
|
|
302
|
+
// settings.grading: 정답 작품이 없으면(채점 화면 탭을 열지 않은 새 자료, 일반 채점) 저장된 채점 설정을 그대로 둠
|
|
293
303
|
getGrading: () => gradingWith({}) ?? undefined,
|
|
294
304
|
});
|
|
305
|
+
// 아래 저장 줄 (시안): 화면 맨 아래 고정, 버튼 왼쪽에 '초안으로 저장'을 눌러야 저장된다는 안내. 저장 동작은 키트 그대로
|
|
306
|
+
save.element.classList.add('en-savebar');
|
|
307
|
+
save.element.querySelector('button')?.before(saveHint());
|
|
308
|
+
// 저장 줄 왼쪽 키트 상태 문구: 평소('저장하지 않은 변경' 표시 · 빈 글)에는 숨기고, 검사 오류 · 저장 결과일 때만 보임.
|
|
309
|
+
// 키트 문구를 그대로 비교한다 (키트 lib/elice-content.js mountSave의 markDirty 문구. 키트가 바꾸면 여기도)
|
|
310
|
+
const KIT_DIRTY_TEXT = '저장하지 않은 변경이 있어요.';
|
|
311
|
+
const saveStatus = save.element.querySelector('[role="status"]');
|
|
312
|
+
if (saveStatus) {
|
|
313
|
+
const paintStatus = () => {
|
|
314
|
+
const text = saveStatus.textContent.trim();
|
|
315
|
+
saveStatus.hidden = !text || text === KIT_DIRTY_TEXT;
|
|
316
|
+
};
|
|
317
|
+
paintStatus();
|
|
318
|
+
new MutationObserver(paintStatus).observe(saveStatus, {
|
|
319
|
+
childList: true,
|
|
320
|
+
characterData: true,
|
|
321
|
+
subtree: true,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
@@ -193,16 +193,19 @@ body.ec-edit-page .ec-submitbar {
|
|
|
193
193
|
.en-panel[hidden] {
|
|
194
194
|
display: none;
|
|
195
195
|
}
|
|
196
|
-
/* 작품 패널 아래 줄:
|
|
196
|
+
/* 작품 패널 아래 줄: 오른쪽 용량 칩 (한도의 80%를 넘을 때만, 없으면 줄도 없음) */
|
|
197
197
|
.en-panel-footer {
|
|
198
198
|
display: flex;
|
|
199
|
-
justify-content:
|
|
199
|
+
justify-content: flex-end;
|
|
200
200
|
align-items: center;
|
|
201
201
|
gap: 16px;
|
|
202
|
+
padding-block: 12px;
|
|
202
203
|
}
|
|
203
|
-
.en-panel-footer
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
.en-panel-footer:not(:has(.en-size-box:not([hidden]))) {
|
|
205
|
+
display: none;
|
|
206
|
+
}
|
|
207
|
+
.en-size-box[hidden] {
|
|
208
|
+
display: none;
|
|
206
209
|
}
|
|
207
210
|
.en-size-box {
|
|
208
211
|
display: flex;
|
|
@@ -238,155 +241,98 @@ body.ec-edit-page .ec-submitbar {
|
|
|
238
241
|
font-weight: var(--eds-fw-semibold);
|
|
239
242
|
}
|
|
240
243
|
|
|
241
|
-
/*
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
padding: 0
|
|
248
|
-
|
|
249
|
-
.en-panel[data-panel='preference'] .ec-field-label {
|
|
250
|
-
margin: 0;
|
|
251
|
-
}
|
|
252
|
-
.en-panel[data-panel='preference'] .en-panel-body {
|
|
253
|
-
flex-flow: wrap;
|
|
254
|
-
align-items: center;
|
|
255
|
-
gap: 8px 16px;
|
|
244
|
+
/* 탭 카드: 탭 줄(시작 화면 · 채점 화면 · 설정) + 탭 안. 디자인 시안 '내용 편집 다이얼로그 (Full screen)':
|
|
245
|
+
카드 테두리 없이 화면 너비 전체, 탭 줄 아래 구분선 하나. 머리 줄('내용 편집' ✕)은 LXP 편집기가 그림 */
|
|
246
|
+
/* 화면 틀 (시안): 탭 줄은 맨 위, 가운데(탭 안)만 스크롤, 저장 줄은 맨 아래 고정 */
|
|
247
|
+
body.ec-edit-page:has(.en-tabcard) {
|
|
248
|
+
height: 100vh;
|
|
249
|
+
height: 100dvh;
|
|
250
|
+
padding-top: 0;
|
|
251
|
+
overflow: hidden;
|
|
256
252
|
}
|
|
257
|
-
.
|
|
258
|
-
|
|
253
|
+
body.ec-edit-page:has(.en-tabcard) main {
|
|
254
|
+
min-height: 0;
|
|
255
|
+
padding-bottom: 0;
|
|
259
256
|
}
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
.en-tabcard {
|
|
258
|
+
position: relative;
|
|
262
259
|
display: flex;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
font-size: var(--eds-fs-body2);
|
|
270
|
-
font-weight: var(--eds-fw-medium);
|
|
271
|
-
line-height: 1.4;
|
|
260
|
+
flex: 1;
|
|
261
|
+
flex-direction: column;
|
|
262
|
+
min-height: 0;
|
|
263
|
+
margin-inline: -16px;
|
|
264
|
+
overflow: auto;
|
|
265
|
+
background: var(--eds-background-paper);
|
|
272
266
|
}
|
|
273
|
-
|
|
274
|
-
|
|
267
|
+
/* 저장 줄 (키트 useSave 바): 높이 64 · 위 구분선, 오른쪽에 안내 · 버튼 (시안) */
|
|
268
|
+
body.ec-edit-page .ec-submitbar.en-savebar {
|
|
275
269
|
flex: none;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
/* 붙은 버튼 모양 라디오 (언어 선택 · 채점 방식). 칸 너비는 같게 */
|
|
280
|
-
.en-modes {
|
|
281
|
-
display: inline-grid;
|
|
282
|
-
grid-auto-columns: 1fr;
|
|
283
|
-
grid-auto-flow: column;
|
|
284
|
-
margin: 0;
|
|
285
|
-
padding: 0;
|
|
286
|
-
border: 0;
|
|
287
|
-
}
|
|
288
|
-
.en-radio-card {
|
|
289
|
-
position: relative;
|
|
290
|
-
display: inline-flex;
|
|
291
|
-
align-items: center;
|
|
292
|
-
gap: 6px;
|
|
293
|
-
margin-left: -1px;
|
|
270
|
+
gap: 16px;
|
|
271
|
+
min-height: var(--en-savebar-height);
|
|
272
|
+
margin: 0 -16px;
|
|
294
273
|
padding: 8px 20px;
|
|
295
|
-
|
|
296
|
-
border-radius: 0;
|
|
297
|
-
background: var(--eds-common-white);
|
|
298
|
-
cursor: pointer;
|
|
299
|
-
transition:
|
|
300
|
-
border-color 0.15s ease-in-out,
|
|
301
|
-
background-color 0.15s ease-in-out;
|
|
302
|
-
}
|
|
303
|
-
.en-modes .en-radio-card {
|
|
304
|
-
justify-content: center;
|
|
305
|
-
padding: 8px 16px;
|
|
306
|
-
transition:
|
|
307
|
-
border-color 20ms linear,
|
|
308
|
-
background-color 20ms linear;
|
|
309
|
-
}
|
|
310
|
-
.en-radio-card:first-of-type {
|
|
311
|
-
margin-left: 0;
|
|
312
|
-
border-radius: var(--eds-radius) 0 0 var(--eds-radius);
|
|
313
|
-
}
|
|
314
|
-
.en-radio-card:last-of-type {
|
|
315
|
-
border-radius: 0 var(--eds-radius) var(--eds-radius) 0;
|
|
316
|
-
}
|
|
317
|
-
.en-radio-card:hover {
|
|
318
|
-
background: var(--eds-action-hover);
|
|
319
|
-
}
|
|
320
|
-
.en-radio-card:has(:focus-visible) {
|
|
321
|
-
z-index: 1;
|
|
322
|
-
background: var(--eds-action-focus);
|
|
274
|
+
box-sizing: border-box;
|
|
323
275
|
}
|
|
324
|
-
.en-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
276
|
+
.en-savebar > .ec-muted {
|
|
277
|
+
flex: 1;
|
|
278
|
+
margin: 0;
|
|
279
|
+
font-size: var(--eds-fs-body2);
|
|
328
280
|
}
|
|
329
|
-
.en-
|
|
330
|
-
|
|
331
|
-
background: var(--eds-primary-opacity03);
|
|
281
|
+
.en-savebar > .ec-muted[hidden] {
|
|
282
|
+
display: none;
|
|
332
283
|
}
|
|
333
|
-
.en-
|
|
334
|
-
display:
|
|
284
|
+
.en-save-hint {
|
|
285
|
+
display: flex;
|
|
335
286
|
align-items: center;
|
|
336
287
|
gap: 6px;
|
|
337
|
-
|
|
288
|
+
margin: 0;
|
|
289
|
+
color: var(--eds-text-secondary);
|
|
338
290
|
font-size: var(--eds-fs-body2);
|
|
339
|
-
font-weight: var(--eds-fw-
|
|
340
|
-
}
|
|
341
|
-
.en-radio-card:has(:checked) .en-radio-card-title {
|
|
342
|
-
color: var(--eds-primary-main);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/* 탭 카드 ('시작 화면' · '채점 설정') */
|
|
346
|
-
.en-tabcard {
|
|
347
|
-
position: relative;
|
|
348
|
-
display: flex;
|
|
349
|
-
flex-direction: column;
|
|
350
|
-
padding-bottom: 12px;
|
|
351
|
-
border: 1px solid var(--eds-surface-border);
|
|
352
|
-
border-radius: 12px;
|
|
353
|
-
background: var(--eds-common-white);
|
|
354
|
-
overflow: hidden;
|
|
355
|
-
}
|
|
356
|
-
.en-tabcard .en-panel {
|
|
357
|
-
padding: 20px 20px 0;
|
|
291
|
+
font-weight: var(--eds-fw-medium);
|
|
358
292
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
.en-tabcard .en-panel[data-panel='answerProject'] {
|
|
362
|
-
padding-top: 0;
|
|
293
|
+
.en-save-hint strong {
|
|
294
|
+
color: var(--eds-text-primary);
|
|
363
295
|
}
|
|
364
|
-
.en-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
296
|
+
.en-save-hint-icon {
|
|
297
|
+
display: grid;
|
|
298
|
+
flex: none;
|
|
299
|
+
place-items: center;
|
|
300
|
+
box-sizing: border-box;
|
|
301
|
+
width: 16px;
|
|
302
|
+
height: 16px;
|
|
303
|
+
border: 1.5px solid var(--eds-warning-main);
|
|
304
|
+
border-radius: 50%;
|
|
305
|
+
color: var(--eds-warning-main);
|
|
306
|
+
font-size: 11px;
|
|
307
|
+
font-weight: var(--eds-fw-bold);
|
|
308
|
+
line-height: 1;
|
|
369
309
|
}
|
|
370
310
|
.en-tabs {
|
|
311
|
+
position: sticky;
|
|
312
|
+
top: 0;
|
|
313
|
+
z-index: 5;
|
|
371
314
|
display: flex;
|
|
315
|
+
flex: none;
|
|
372
316
|
gap: 8px;
|
|
317
|
+
background: var(--eds-background-paper);
|
|
318
|
+
height: var(--en-tab-height);
|
|
373
319
|
margin: 0;
|
|
374
|
-
padding: 0
|
|
375
|
-
border-bottom: 1px solid var(--
|
|
376
|
-
}
|
|
377
|
-
.en-tabcard > .en-tabs {
|
|
378
|
-
order: 0;
|
|
320
|
+
padding: 0 20px;
|
|
321
|
+
border-bottom: 1px solid var(--ec-line);
|
|
379
322
|
}
|
|
380
323
|
.en-tab {
|
|
381
324
|
position: relative;
|
|
325
|
+
display: flex;
|
|
326
|
+
justify-content: center;
|
|
327
|
+
align-items: center;
|
|
382
328
|
min-width: 68px;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
padding:
|
|
329
|
+
height: var(--en-tab-height);
|
|
330
|
+
min-height: 0;
|
|
331
|
+
padding: 0 8px;
|
|
386
332
|
border: 0;
|
|
387
|
-
border-radius:
|
|
333
|
+
border-radius: 8px 8px 0 0;
|
|
388
334
|
background: none;
|
|
389
|
-
color: var(--eds-text-
|
|
335
|
+
color: var(--eds-text-tertiary);
|
|
390
336
|
font: inherit;
|
|
391
337
|
font-size: var(--eds-fs-body2);
|
|
392
338
|
font-weight: var(--eds-fw-semibold);
|
|
@@ -396,18 +342,17 @@ body.ec-edit-page .ec-submitbar {
|
|
|
396
342
|
content: '';
|
|
397
343
|
position: absolute;
|
|
398
344
|
right: 0;
|
|
399
|
-
bottom:
|
|
345
|
+
bottom: -1px;
|
|
400
346
|
left: 0;
|
|
401
347
|
height: 2px;
|
|
402
|
-
border-radius: 1px;
|
|
403
348
|
background: none;
|
|
404
349
|
}
|
|
405
350
|
.en-tab:hover {
|
|
406
351
|
background: var(--eds-action-hover);
|
|
407
352
|
}
|
|
408
|
-
.en-tab:active,
|
|
409
353
|
.en-tab:focus-visible {
|
|
410
|
-
|
|
354
|
+
outline: 2px solid var(--eds-primary-main);
|
|
355
|
+
outline-offset: -2px;
|
|
411
356
|
}
|
|
412
357
|
.en-tab[aria-selected='true'] {
|
|
413
358
|
color: var(--eds-primary-main);
|
|
@@ -418,46 +363,113 @@ body.ec-edit-page .ec-submitbar {
|
|
|
418
363
|
.en-tab[aria-selected='true']:hover {
|
|
419
364
|
background: var(--eds-primary-opacity01);
|
|
420
365
|
}
|
|
421
|
-
.
|
|
422
|
-
.en-
|
|
423
|
-
|
|
366
|
+
/* 작품 탭: 워크스페이스가 탭 줄 아래를 채움 (테두리 · 둥근 모서리 없이, 아래 선만). 아래 줄(안내 · 용량 칩)은 그 밑 */
|
|
367
|
+
.en-tabcard .en-panel[data-panel='startProject'],
|
|
368
|
+
.en-tabcard .en-panel[data-panel='answerProject'] {
|
|
369
|
+
gap: 0;
|
|
370
|
+
padding: 0 20px;
|
|
371
|
+
}
|
|
372
|
+
.en-tabcard .en-panel .en-workspace {
|
|
373
|
+
margin-inline: -20px;
|
|
374
|
+
border: 0;
|
|
375
|
+
border-bottom: 1px solid var(--ec-line);
|
|
376
|
+
border-radius: 0;
|
|
424
377
|
}
|
|
425
378
|
|
|
426
|
-
/* '
|
|
427
|
-
|
|
428
|
-
.en-panel[data-panel='grading']
|
|
429
|
-
|
|
430
|
-
|
|
379
|
+
/* '설정' 탭: 구역(언어 선택 · 채점 방식)마다 제목 44px 줄 + 내용 줄 48px (시안) */
|
|
380
|
+
.en-tabcard .en-panel[data-panel='preference'],
|
|
381
|
+
.en-tabcard .en-panel[data-panel='grading'] {
|
|
382
|
+
gap: 0;
|
|
383
|
+
padding: 0;
|
|
431
384
|
}
|
|
432
|
-
.en-
|
|
385
|
+
.en-tabcard .en-panel[data-panel='preference'] .en-panel-body,
|
|
386
|
+
.en-tabcard .en-panel[data-panel='grading'] .en-panel-body {
|
|
387
|
+
gap: 0;
|
|
388
|
+
}
|
|
389
|
+
.en-section-title {
|
|
390
|
+
display: flex;
|
|
391
|
+
align-items: center;
|
|
392
|
+
height: 44px;
|
|
393
|
+
margin: 0;
|
|
394
|
+
padding: 0 20px;
|
|
395
|
+
color: var(--eds-text-primary);
|
|
396
|
+
font-size: var(--en-section-title-size);
|
|
397
|
+
font-weight: var(--eds-fw-bold);
|
|
398
|
+
}
|
|
399
|
+
.en-settings-row {
|
|
433
400
|
display: flex;
|
|
434
401
|
flex-wrap: wrap;
|
|
435
|
-
order: 2;
|
|
436
402
|
align-items: center;
|
|
437
|
-
gap: 8px
|
|
438
|
-
min-height:
|
|
439
|
-
|
|
403
|
+
gap: 8px 12px;
|
|
404
|
+
min-height: 48px;
|
|
405
|
+
padding: 0 20px;
|
|
440
406
|
}
|
|
441
|
-
.en-
|
|
442
|
-
|
|
407
|
+
.en-settings-hint {
|
|
408
|
+
margin: 0;
|
|
409
|
+
color: var(--eds-text-tertiary);
|
|
410
|
+
font-size: var(--eds-fs-body2);
|
|
411
|
+
font-weight: var(--eds-fw-medium);
|
|
412
|
+
line-height: 1.4;
|
|
443
413
|
}
|
|
444
|
-
|
|
414
|
+
|
|
415
|
+
/* 세그먼트 (언어 선택 · 채점 방식): 옅은 회색 판 위 104×32 칸, 고른 칸은 흰 바탕 · 굵게 · 그림자 (시안) */
|
|
416
|
+
.en-modes {
|
|
417
|
+
display: inline-flex;
|
|
418
|
+
flex: none;
|
|
419
|
+
gap: 4px;
|
|
445
420
|
margin: 0;
|
|
421
|
+
padding: 4px;
|
|
422
|
+
border: 0;
|
|
423
|
+
border-radius: 8px;
|
|
424
|
+
background: var(--eds-background-neutral);
|
|
425
|
+
}
|
|
426
|
+
.en-radio-card {
|
|
427
|
+
position: relative;
|
|
428
|
+
display: inline-flex;
|
|
429
|
+
justify-content: center;
|
|
430
|
+
align-items: center;
|
|
431
|
+
width: var(--en-segment-width);
|
|
432
|
+
height: 32px;
|
|
433
|
+
border-radius: 6px;
|
|
434
|
+
background: transparent;
|
|
435
|
+
cursor: pointer;
|
|
436
|
+
transition: background-color 0.15s ease-in-out;
|
|
437
|
+
}
|
|
438
|
+
.en-radio-card:hover {
|
|
439
|
+
background: var(--eds-action-hover);
|
|
440
|
+
}
|
|
441
|
+
.en-radio-card:has(:focus-visible) {
|
|
442
|
+
outline: 2px solid var(--eds-primary-main);
|
|
443
|
+
outline-offset: -2px;
|
|
444
|
+
}
|
|
445
|
+
.en-radio-card:has(:checked) {
|
|
446
|
+
background: var(--en-segment-on-bg);
|
|
447
|
+
box-shadow: var(--en-segment-on-shadow);
|
|
448
|
+
}
|
|
449
|
+
.en-radio-card-title {
|
|
446
450
|
color: var(--eds-text-primary);
|
|
447
451
|
font-size: var(--eds-fs-body2);
|
|
452
|
+
font-weight: var(--eds-fw-medium);
|
|
453
|
+
white-space: nowrap;
|
|
454
|
+
}
|
|
455
|
+
.en-radio-card:has(:checked) .en-radio-card-title {
|
|
448
456
|
font-weight: var(--eds-fw-bold);
|
|
449
457
|
}
|
|
458
|
+
|
|
459
|
+
/* 채점 방식 줄 오른쪽 완료 정책 안내 (AI 채점일 때만) */
|
|
450
460
|
.en-grading-note {
|
|
451
461
|
display: flex;
|
|
452
|
-
flex-basis: 100%;
|
|
453
462
|
align-items: center;
|
|
454
|
-
gap:
|
|
463
|
+
gap: 6px;
|
|
455
464
|
margin: 0;
|
|
456
465
|
color: var(--eds-text-tertiary);
|
|
457
466
|
font-size: var(--eds-fs-body2);
|
|
458
467
|
font-weight: var(--eds-fw-medium);
|
|
459
468
|
line-height: 1.4;
|
|
460
469
|
}
|
|
470
|
+
.en-grading-note[hidden] {
|
|
471
|
+
display: none;
|
|
472
|
+
}
|
|
461
473
|
.en-grading-note > span:first-child {
|
|
462
474
|
display: grid;
|
|
463
475
|
flex: none;
|
|
@@ -475,13 +487,20 @@ body.ec-edit-page .ec-submitbar {
|
|
|
475
487
|
.en-warning[hidden] {
|
|
476
488
|
display: none;
|
|
477
489
|
}
|
|
490
|
+
.en-tabcard .en-panel .en-warning {
|
|
491
|
+
margin-block: 12px;
|
|
492
|
+
}
|
|
478
493
|
|
|
479
|
-
/* AI 채점
|
|
494
|
+
/* AI 채점 기준: 채점 방식 줄 아래 회색 상자 (시안: 좌우 20px · 아래 20px 여백, 안 20px) */
|
|
480
495
|
.en-ai {
|
|
481
496
|
display: flex;
|
|
482
497
|
flex-direction: column;
|
|
483
|
-
gap:
|
|
484
|
-
margin
|
|
498
|
+
gap: 20px;
|
|
499
|
+
margin: 0 20px 20px;
|
|
500
|
+
padding: 20px;
|
|
501
|
+
border-radius: 8px;
|
|
502
|
+
background: var(--eds-background-gray);
|
|
503
|
+
scroll-margin-bottom: 80px;
|
|
485
504
|
}
|
|
486
505
|
.en-ai[hidden] {
|
|
487
506
|
display: none;
|
|
@@ -489,28 +508,18 @@ body.ec-edit-page .ec-submitbar {
|
|
|
489
508
|
.en-ai p {
|
|
490
509
|
margin: 0;
|
|
491
510
|
}
|
|
492
|
-
/* AI 채점 기준: 채점 방식 줄 아래 회색 상자 */
|
|
493
|
-
.en-tabcard .en-ai {
|
|
494
|
-
order: 3;
|
|
495
|
-
margin: 16px 20px 8px;
|
|
496
|
-
padding: 20px;
|
|
497
|
-
border-radius: 12px;
|
|
498
|
-
background: var(--eds-background-neutral);
|
|
499
|
-
scroll-margin-bottom: 80px;
|
|
500
|
-
}
|
|
501
511
|
.en-ai-head {
|
|
502
512
|
display: flex;
|
|
503
513
|
justify-content: space-between;
|
|
504
|
-
align-items:
|
|
514
|
+
align-items: flex-start;
|
|
505
515
|
gap: 24px;
|
|
506
516
|
}
|
|
507
517
|
.en-ai-title {
|
|
508
518
|
display: flex;
|
|
509
519
|
flex: 1;
|
|
510
520
|
flex-direction: column;
|
|
511
|
-
gap:
|
|
521
|
+
gap: 6px;
|
|
512
522
|
min-width: 0;
|
|
513
|
-
padding-top: 4px;
|
|
514
523
|
}
|
|
515
524
|
.en-ai .en-ai-title-text {
|
|
516
525
|
color: var(--eds-text-primary);
|
|
@@ -520,7 +529,7 @@ body.ec-edit-page .ec-submitbar {
|
|
|
520
529
|
}
|
|
521
530
|
.en-ai .en-ai-desc-text {
|
|
522
531
|
color: var(--eds-text-tertiary);
|
|
523
|
-
font-size: var(--
|
|
532
|
+
font-size: var(--en-small-size);
|
|
524
533
|
font-weight: var(--eds-fw-medium);
|
|
525
534
|
line-height: 1.4;
|
|
526
535
|
}
|
|
@@ -582,9 +591,11 @@ body.ec-edit-page .ec-submitbar {
|
|
|
582
591
|
display: inline-flex;
|
|
583
592
|
align-items: center;
|
|
584
593
|
gap: 4px;
|
|
585
|
-
|
|
594
|
+
margin: -4px -8px 0 0;
|
|
595
|
+
padding: 4px 8px;
|
|
586
596
|
border-radius: var(--eds-radius);
|
|
587
597
|
color: var(--eds-text-primary);
|
|
598
|
+
font-size: var(--en-small-size);
|
|
588
599
|
white-space: nowrap;
|
|
589
600
|
}
|
|
590
601
|
.en-link-button.en-example-button:hover {
|
|
@@ -600,10 +611,16 @@ body.ec-edit-page .ec-submitbar {
|
|
|
600
611
|
gap: 12px;
|
|
601
612
|
}
|
|
602
613
|
.en-criteria-head,
|
|
603
|
-
.en-criterion
|
|
604
|
-
.en-criteria-actions {
|
|
614
|
+
.en-criterion {
|
|
605
615
|
display: grid;
|
|
606
|
-
grid-template-columns:
|
|
616
|
+
grid-template-columns: 212px minmax(0, 1fr) 160px 24px;
|
|
617
|
+
align-items: center;
|
|
618
|
+
gap: 12px;
|
|
619
|
+
}
|
|
620
|
+
/* 추가하기(왼쪽, 200px) · 자동 배점(오른쪽 끝) (시안) */
|
|
621
|
+
.en-criteria-actions {
|
|
622
|
+
display: flex;
|
|
623
|
+
justify-content: space-between;
|
|
607
624
|
align-items: center;
|
|
608
625
|
gap: 12px;
|
|
609
626
|
}
|
|
@@ -627,16 +644,11 @@ body.ec-edit-page .ec-submitbar {
|
|
|
627
644
|
.en-field-error[hidden] {
|
|
628
645
|
display: none;
|
|
629
646
|
}
|
|
630
|
-
/* 추가하기(오브젝트 칸 아래) · 자동 배점(부분 점수 칸 아래) */
|
|
631
647
|
.en-criteria-actions .en-add-button {
|
|
632
|
-
|
|
633
|
-
align-self: stretch;
|
|
634
|
-
width: 100%;
|
|
648
|
+
width: 200px;
|
|
635
649
|
}
|
|
636
650
|
.en-criteria-actions .en-auto-button {
|
|
637
651
|
display: inline-flex;
|
|
638
|
-
grid-column: 3;
|
|
639
|
-
justify-self: start;
|
|
640
652
|
align-items: center;
|
|
641
653
|
gap: 6px;
|
|
642
654
|
min-height: 40px;
|
|
@@ -646,7 +658,7 @@ body.ec-edit-page .ec-submitbar {
|
|
|
646
658
|
background: none;
|
|
647
659
|
color: var(--eds-text-primary);
|
|
648
660
|
font: inherit;
|
|
649
|
-
font-size: var(--
|
|
661
|
+
font-size: var(--en-small-size);
|
|
650
662
|
font-weight: var(--eds-fw-semibold);
|
|
651
663
|
cursor: pointer;
|
|
652
664
|
}
|
|
@@ -659,8 +671,8 @@ body.ec-edit-page .ec-submitbar {
|
|
|
659
671
|
.en-criteria-head {
|
|
660
672
|
margin-bottom: -4px;
|
|
661
673
|
color: var(--eds-text-primary);
|
|
662
|
-
font-size: var(--
|
|
663
|
-
font-weight: var(--eds-fw-
|
|
674
|
+
font-size: var(--en-small-size);
|
|
675
|
+
font-weight: var(--eds-fw-semibold);
|
|
664
676
|
}
|
|
665
677
|
.en-criteria-head > span {
|
|
666
678
|
display: flex;
|
|
@@ -710,12 +722,12 @@ body.ec-edit-page .ec-submitbar {
|
|
|
710
722
|
width: 100%;
|
|
711
723
|
min-height: 40px;
|
|
712
724
|
padding: 0 12px;
|
|
713
|
-
border: 1px solid var(--
|
|
714
|
-
border-radius:
|
|
725
|
+
border: 1px solid var(--en-field-border);
|
|
726
|
+
border-radius: 6px;
|
|
715
727
|
background: var(--eds-background-input);
|
|
716
728
|
color: var(--eds-text-primary);
|
|
717
729
|
font: inherit;
|
|
718
|
-
font-size: var(--
|
|
730
|
+
font-size: var(--en-small-size);
|
|
719
731
|
font-weight: var(--eds-fw-medium);
|
|
720
732
|
}
|
|
721
733
|
.en-field::placeholder {
|
|
@@ -787,10 +799,11 @@ body.ec-edit-page .ec-submitbar {
|
|
|
787
799
|
.en-icon-button {
|
|
788
800
|
display: grid;
|
|
789
801
|
place-items: center;
|
|
790
|
-
width:
|
|
802
|
+
width: 24px;
|
|
791
803
|
height: 40px;
|
|
792
|
-
|
|
793
|
-
|
|
804
|
+
padding: 0;
|
|
805
|
+
border-radius: 4px;
|
|
806
|
+
color: var(--eds-text-tertiary);
|
|
794
807
|
}
|
|
795
808
|
.en-icon-button:hover:not(:disabled) {
|
|
796
809
|
background: var(--eds-action-hover);
|
|
@@ -817,11 +830,11 @@ body.ec-edit-page .ec-submitbar {
|
|
|
817
830
|
min-height: 40px;
|
|
818
831
|
padding: 8px 16px;
|
|
819
832
|
border: 0;
|
|
820
|
-
border-radius:
|
|
833
|
+
border-radius: 6px;
|
|
821
834
|
background: var(--eds-divider);
|
|
822
835
|
color: var(--eds-text-primary);
|
|
823
836
|
font: inherit;
|
|
824
|
-
font-size: var(--
|
|
837
|
+
font-size: var(--en-small-size);
|
|
825
838
|
font-weight: var(--eds-fw-semibold);
|
|
826
839
|
cursor: pointer;
|
|
827
840
|
}
|
|
@@ -968,27 +981,35 @@ body.ec-edit-page .ec-submitbar {
|
|
|
968
981
|
.en-feedback {
|
|
969
982
|
padding: 12px 16px;
|
|
970
983
|
}
|
|
971
|
-
.en-
|
|
972
|
-
padding:
|
|
984
|
+
.en-tabs {
|
|
985
|
+
padding: 0 16px;
|
|
973
986
|
}
|
|
974
|
-
.
|
|
975
|
-
|
|
987
|
+
body.ec-edit-page .ec-submitbar.en-savebar {
|
|
988
|
+
flex-wrap: wrap;
|
|
989
|
+
padding-inline: 16px;
|
|
990
|
+
}
|
|
991
|
+
.en-save-hint {
|
|
992
|
+
flex: 1;
|
|
993
|
+
}
|
|
994
|
+
.en-tabcard .en-panel[data-panel='startProject'],
|
|
995
|
+
.en-tabcard .en-panel[data-panel='answerProject'] {
|
|
996
|
+
padding-inline: 16px;
|
|
976
997
|
}
|
|
977
998
|
.en-tabcard .en-panel .en-workspace {
|
|
978
999
|
margin-inline: -16px;
|
|
979
1000
|
}
|
|
980
|
-
.en-
|
|
981
|
-
|
|
982
|
-
padding: 16px;
|
|
1001
|
+
.en-section-title,
|
|
1002
|
+
.en-settings-row {
|
|
1003
|
+
padding-inline: 16px;
|
|
983
1004
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1005
|
+
.en-settings-row {
|
|
1006
|
+
padding-block: 4px;
|
|
1007
|
+
}
|
|
1008
|
+
.en-ai {
|
|
1009
|
+
margin: 0 16px 16px;
|
|
1010
|
+
padding: 16px;
|
|
989
1011
|
}
|
|
990
1012
|
.en-size-box {
|
|
991
|
-
align-self: flex-end;
|
|
992
1013
|
max-width: 100%;
|
|
993
1014
|
}
|
|
994
1015
|
.en-ai-head {
|
|
@@ -1004,17 +1025,12 @@ body.ec-edit-page .ec-submitbar {
|
|
|
1004
1025
|
.en-criteria-head {
|
|
1005
1026
|
display: none;
|
|
1006
1027
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
gap: 8px;
|
|
1011
|
-
}
|
|
1012
|
-
.en-criteria-actions .en-auto-button {
|
|
1013
|
-
grid-column: 2;
|
|
1014
|
-
justify-self: end;
|
|
1028
|
+
.en-criteria-actions .en-add-button {
|
|
1029
|
+
width: auto;
|
|
1030
|
+
flex: 1;
|
|
1015
1031
|
}
|
|
1016
1032
|
.en-criterion {
|
|
1017
|
-
grid-template-columns: minmax(0, 1fr) 112px
|
|
1033
|
+
grid-template-columns: minmax(0, 1fr) 112px 24px;
|
|
1018
1034
|
grid-template-areas:
|
|
1019
1035
|
'object score remove'
|
|
1020
1036
|
'criteria criteria criteria';
|
|
@@ -58,10 +58,17 @@ export const learnPage = ({ canSubmit }) => html`
|
|
|
58
58
|
</div>
|
|
59
59
|
`;
|
|
60
60
|
|
|
61
|
-
/**
|
|
62
|
-
|
|
61
|
+
/**
|
|
62
|
+
* 편집 화면 패널 하나: 제목 + 안 내용 (screens/edit/panels/*의 render가 body를 채움).
|
|
63
|
+
* 탭 안 패널은 제목을 화면 읽기 프로그램만 읽음. heading이면 탭 안에서도 구역 제목('설정' 탭: 16px 굵게)
|
|
64
|
+
*/
|
|
65
|
+
export const panelSection = ({ id, title, inTab = false, heading = false }) => html`
|
|
63
66
|
<section class="ec-section en-panel" data-panel="${id}">
|
|
64
|
-
<h2
|
|
67
|
+
<h2
|
|
68
|
+
class="${heading ? 'en-section-title' : inTab ? 'ec-field-label ec-visually-hidden' : 'ec-field-label'}"
|
|
69
|
+
>
|
|
70
|
+
${title}
|
|
71
|
+
</h2>
|
|
65
72
|
<div class="ec-section en-panel-body" data-role="body"></div>
|
|
66
73
|
</section>
|
|
67
74
|
`;
|
|
@@ -74,7 +81,7 @@ export const sizeBox = () => html`
|
|
|
74
81
|
</div>
|
|
75
82
|
`;
|
|
76
83
|
|
|
77
|
-
/** 탭 카드: 탭 줄 + 탭 안 패널들 (screens/edit.js가 패널을 넣음) */
|
|
84
|
+
/** 탭 카드: 탭 줄(시작 화면 · 채점 화면 · 설정) + 탭 안 패널들 (screens/edit.js가 패널을 넣음) */
|
|
78
85
|
export const tabCard = ({ tabs }) => html`
|
|
79
86
|
<div class="en-tabcard">
|
|
80
87
|
<div class="en-tabs" role="tablist" aria-label="${texts.edit.tabs.label}" data-role="tabs">
|
|
@@ -104,3 +111,14 @@ export const unavailable = ({ title, detail }) => html`
|
|
|
104
111
|
<p><strong>${title}</strong> <span>${detail}</span></p>
|
|
105
112
|
</div>
|
|
106
113
|
`;
|
|
114
|
+
|
|
115
|
+
/** 아래 저장 줄(키트 useSave 바)의 버튼 왼쪽 안내: 주황 ! 아이콘 + "수정한 내용은 '초안으로 저장'을 눌러야 저장됩니다." */
|
|
116
|
+
export const saveHint = () => html`
|
|
117
|
+
<p class="en-save-hint" data-ec-quiet>
|
|
118
|
+
<span class="en-save-hint-icon" aria-hidden="true">!</span>
|
|
119
|
+
<span
|
|
120
|
+
>${texts.edit.saveHint.before}<strong>‘${texts.edit.save}’</strong>${texts.edit.saveHint
|
|
121
|
+
.after}</span
|
|
122
|
+
>
|
|
123
|
+
</p>
|
|
124
|
+
`;
|
|
@@ -63,13 +63,17 @@ export const texts = {
|
|
|
63
63
|
/** 내용 편집 화면 */
|
|
64
64
|
edit: {
|
|
65
65
|
save: '초안으로 저장',
|
|
66
|
+
/** 아래 저장 줄, 버튼 왼쪽 안내 (주황 ! 아이콘). 가운데 굵은 글은 save 버튼 이름 */
|
|
67
|
+
saveHint: { before: '수정한 내용은 ', after: '을 눌러야 저장됩니다.' },
|
|
66
68
|
required: '*',
|
|
69
|
+
/** 탭 이름 (왼쪽부터: 시작 화면 · 채점 화면 · 설정) */
|
|
67
70
|
tabs: {
|
|
68
71
|
label: '편집 화면 탭',
|
|
69
72
|
start: '시작 화면',
|
|
70
|
-
answer: '채점
|
|
73
|
+
answer: '채점 화면',
|
|
74
|
+
settings: '설정',
|
|
71
75
|
},
|
|
72
|
-
/** 작품 패널 아래 오른쪽 용량 칩 (settings 전체 크기 / 서버
|
|
76
|
+
/** 작품 패널 아래 오른쪽 용량 칩 (settings 전체 크기 / 서버 한도, 한도의 80%를 넘을 때만 보임). 넘으면 칩 위에 tooLarge */
|
|
73
77
|
size: {
|
|
74
78
|
chip: (total, limit) => `용량 ${total} / ${limit}`,
|
|
75
79
|
tooLarge: (total, limit) =>
|
|
@@ -78,10 +82,6 @@ export const texts = {
|
|
|
78
82
|
/** 패널 제목 · 안내 (screens/edit/panels/*) */
|
|
79
83
|
startProject: {
|
|
80
84
|
title: '시작 화면',
|
|
81
|
-
info: [
|
|
82
|
-
'학생이 엔트리를 열면 처음 보게 될 화면입니다. 오브젝트와 블록을 위에서 만들어 둡니다.',
|
|
83
|
-
"엔트리 메뉴의 '내 컴퓨터에 저장하기'(.ent 내려받기)는 학습자료 보안 설정 때문에 아직 동작하지 않습니다. '오프라인 작품 불러오기'는 됩니다.",
|
|
84
|
-
],
|
|
85
85
|
noProject:
|
|
86
86
|
'워크스페이스에서 작품을 꺼내지 못했습니다. 파이썬 모드라면 코드 오류를 고친 뒤 다시 저장해야 합니다.',
|
|
87
87
|
/** AI 채점 자료에서 저장했던 시작 화면을 바꿀 때 (막지 않음) */
|
|
@@ -89,19 +89,16 @@ export const texts = {
|
|
|
89
89
|
"AI 채점 중인 자료입니다. 이미 학생에게 공개했다면 시작 화면을 바꾸지 않는 것이 좋습니다. 학생 작품이 바뀐 시작 화면과 같으면 '아직 풀지 않음'(0점)으로 채점되고, 이미 시작한 학생은 바뀌기 전 화면에서 출발해 채점이 틀릴 수 있습니다.",
|
|
90
90
|
},
|
|
91
91
|
answerProject: {
|
|
92
|
-
title: '채점
|
|
93
|
-
info: [
|
|
94
|
-
'정답으로 인정할 블록을 만들어 두는 화면입니다. 학생에게 보이는 시작 화면과는 따로 저장됩니다.',
|
|
95
|
-
],
|
|
92
|
+
title: '채점 화면',
|
|
96
93
|
noProject:
|
|
97
94
|
'엔트리에서 정답 작품을 꺼내지 못했습니다. 파이썬 모드라면 코드 오류를 고친 뒤 다시 저장해야 합니다.',
|
|
98
|
-
/** AI 채점인데 정답 작품이 없음 (채점
|
|
95
|
+
/** AI 채점인데 정답 작품이 없음 (채점 화면 탭을 한 번도 열지 않고 저장) */
|
|
99
96
|
missing:
|
|
100
|
-
"AI 채점에는 정답 작품이 필요합니다. '채점
|
|
97
|
+
"AI 채점에는 정답 작품이 필요합니다. '채점 화면' 탭에서 정답 블록을 만든 뒤 저장해야 합니다.",
|
|
101
98
|
},
|
|
102
99
|
grading: {
|
|
100
|
+
/** '설정' 탭의 구역 제목 */
|
|
103
101
|
title: '채점 방식',
|
|
104
|
-
method: '채점 방식',
|
|
105
102
|
aiTitle: 'AI 채점 기준',
|
|
106
103
|
/** 완료 정책 안내 (LXP 수업 자료 '설정'의 학습 완료 기준) */
|
|
107
104
|
policyNote:
|
|
@@ -151,6 +148,7 @@ export const texts = {
|
|
|
151
148
|
emptyAnswer: '정답 작품에 블록이 없습니다. 정답으로 인정할 블록을 만들어야 합니다.',
|
|
152
149
|
},
|
|
153
150
|
},
|
|
151
|
+
/** '설정' 탭 맨 위 구역 */
|
|
154
152
|
preference: {
|
|
155
153
|
title: '언어 선택',
|
|
156
154
|
info: '선택한 언어로 실습합니다. 언어를 바꾸면 엔트리를 다시 불러옵니다.',
|
|
@@ -10,8 +10,25 @@
|
|
|
10
10
|
--en-bar-check: #7df0a8;
|
|
11
11
|
--en-bar-button-hover: #eef3ff;
|
|
12
12
|
--en-bar-button-disabled: #fff6;
|
|
13
|
-
/* 편집 화면 워크스페이스
|
|
14
|
-
--en-edit-workspace-height: max(
|
|
13
|
+
/* 편집 화면 워크스페이스 높이: 탭 줄 · 저장 줄을 뺀 나머지 (엔트리는 좁으면 메뉴가 겹쳐 최소 480px, 그보다 낮으면 탭 안이 스크롤) */
|
|
14
|
+
--en-edit-workspace-height: max(480px, calc(100dvh - 100px));
|
|
15
|
+
/* 편집 화면 탭 · 설정 탭 (디자인 시안 '내용 편집 다이얼로그'): 탭 줄 높이, 구역 제목, 세그먼트 칸 너비 · 고른 칸,
|
|
16
|
+
작은 글(AI 채점 기준 상자 13px), 입력 칸 테두리 */
|
|
17
|
+
--en-tab-height: 36px;
|
|
18
|
+
--en-savebar-height: 64px;
|
|
19
|
+
--en-section-title-size: var(--eds-fs-body1);
|
|
20
|
+
--en-segment-width: 104px;
|
|
21
|
+
--en-segment-on-bg: var(--eds-background-paper);
|
|
22
|
+
--en-segment-on-shadow: 0 1px 3px #191f2833;
|
|
23
|
+
--en-small-size: 13px;
|
|
24
|
+
--en-field-border: var(--eds-divider);
|
|
15
25
|
--en-workspace-border: var(--ec-line);
|
|
16
26
|
--en-workspace-radius: 8px;
|
|
17
27
|
}
|
|
28
|
+
|
|
29
|
+
/* 다크 테마 (EDS data-eds-theme='dark'): 고른 세그먼트 칸은 판보다 밝게, 입력 칸 테두리는 보이게 */
|
|
30
|
+
:root[data-eds-theme='dark'] {
|
|
31
|
+
--en-segment-on-bg: var(--eds-background-input);
|
|
32
|
+
--en-segment-on-shadow: 0 1px 3px #0006;
|
|
33
|
+
--en-field-border: var(--eds-surface-border);
|
|
34
|
+
}
|