@eliceio/cdk-cli 1.6.0-entryqa.0 → 1.6.0-entryqa.1
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/02-design-the-material.md +1 -1
- package/skills/_shared/references/12-upload-with-the-material-mcp.md +1 -1
- package/templates/document/template.json +3 -2
- package/templates/entry/README.md +6 -7
- package/templates/entry/core/grading.d.ts +1 -0
- package/templates/entry/core/grading.js +14 -0
- package/templates/entry/docs/storage.md +2 -2
- package/templates/entry/screens/edit/panels/grading.js +155 -44
- package/templates/entry/screens/edit/panels/preference.js +19 -1
- package/templates/entry/screens/edit/panels/project-panel.js +24 -28
- package/templates/entry/screens/edit.js +33 -3
- package/templates/entry/screens/learn.js +29 -16
- package/templates/entry/styles.css +230 -65
- package/templates/entry/ui/templates/page.js +31 -6
- package/templates/entry/ui/texts.js +48 -52
- package/templates/quiz/README.md +1 -1
- package/templates/quiz/template.json +3 -2
- package/templates/survey/README.md +1 -0
- package/templates/survey/template.json +3 -2
- package/templates/video/template.json +3 -2
|
@@ -15,14 +15,6 @@ body.en-page #app {
|
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
height: 100dvh;
|
|
17
17
|
}
|
|
18
|
-
.en-notice {
|
|
19
|
-
margin: 0;
|
|
20
|
-
padding: 6px 16px;
|
|
21
|
-
border-bottom: 1px solid var(--ec-line);
|
|
22
|
-
background: var(--ec-bg);
|
|
23
|
-
color: var(--ec-muted);
|
|
24
|
-
font-size: var(--eds-fs-caption, 12px);
|
|
25
|
-
}
|
|
26
18
|
.en-stage {
|
|
27
19
|
position: relative;
|
|
28
20
|
flex: 1;
|
|
@@ -180,6 +172,10 @@ body.en-page #app {
|
|
|
180
172
|
}
|
|
181
173
|
|
|
182
174
|
/* ───── 편집 화면 ───── */
|
|
175
|
+
/* 편집 화면 바탕은 흰색 (키트 기본 회색 대신, 디자인 2차) */
|
|
176
|
+
:root:has(body.ec-edit-page) {
|
|
177
|
+
background: var(--eds-background-paper);
|
|
178
|
+
}
|
|
183
179
|
body.ec-edit-page main {
|
|
184
180
|
max-width: none;
|
|
185
181
|
}
|
|
@@ -197,13 +193,49 @@ body.ec-edit-page .ec-submitbar {
|
|
|
197
193
|
.en-panel[hidden] {
|
|
198
194
|
display: none;
|
|
199
195
|
}
|
|
200
|
-
|
|
196
|
+
/* 작품 패널 아래 줄: 왼쪽 안내 · 오른쪽 용량 칩 */
|
|
197
|
+
.en-panel-footer {
|
|
198
|
+
display: flex;
|
|
199
|
+
justify-content: space-between;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 16px;
|
|
202
|
+
}
|
|
203
|
+
.en-panel-footer > :first-child {
|
|
204
|
+
flex: 1;
|
|
205
|
+
min-width: 0;
|
|
206
|
+
}
|
|
207
|
+
.en-size-box {
|
|
208
|
+
display: flex;
|
|
209
|
+
flex: none;
|
|
210
|
+
flex-direction: column;
|
|
211
|
+
align-items: flex-end;
|
|
212
|
+
gap: 6px;
|
|
213
|
+
max-width: 360px;
|
|
214
|
+
}
|
|
215
|
+
.en-size-message {
|
|
201
216
|
margin: 0;
|
|
202
|
-
color: var(--
|
|
217
|
+
color: var(--eds-error-main);
|
|
203
218
|
font-size: var(--eds-fs-body2);
|
|
219
|
+
font-weight: var(--eds-fw-medium);
|
|
220
|
+
text-align: right;
|
|
221
|
+
}
|
|
222
|
+
.en-size-message[hidden] {
|
|
223
|
+
display: none;
|
|
224
|
+
}
|
|
225
|
+
.en-size-chip {
|
|
226
|
+
padding: 4px 12px;
|
|
227
|
+
border: 1px solid var(--eds-surface-border);
|
|
228
|
+
border-radius: 14px;
|
|
229
|
+
background: var(--eds-common-white);
|
|
230
|
+
color: var(--eds-text-tertiary);
|
|
231
|
+
font-size: 13px;
|
|
232
|
+
font-weight: var(--eds-fw-medium);
|
|
233
|
+
white-space: nowrap;
|
|
204
234
|
}
|
|
205
|
-
.en-size[data-over='true'] {
|
|
206
|
-
color: var(--
|
|
235
|
+
.en-size-chip[data-over='true'] {
|
|
236
|
+
border-color: var(--eds-error-main);
|
|
237
|
+
color: var(--eds-error-main);
|
|
238
|
+
font-weight: var(--eds-fw-semibold);
|
|
207
239
|
}
|
|
208
240
|
|
|
209
241
|
/* 언어 선택 줄 (탭 카드 위) */
|
|
@@ -225,10 +257,30 @@ body.ec-edit-page .ec-submitbar {
|
|
|
225
257
|
.en-panel[data-panel='preference'] .en-panel-body p {
|
|
226
258
|
margin: 0;
|
|
227
259
|
}
|
|
260
|
+
/* 안내 한 줄 (파란 정보 아이콘 + 글) */
|
|
261
|
+
.en-alert {
|
|
262
|
+
display: flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
gap: 8px;
|
|
265
|
+
padding: 0;
|
|
266
|
+
border: 0;
|
|
267
|
+
background: none;
|
|
268
|
+
color: var(--eds-text-secondary);
|
|
269
|
+
font-size: var(--eds-fs-body2);
|
|
270
|
+
font-weight: var(--eds-fw-medium);
|
|
271
|
+
line-height: 1.4;
|
|
272
|
+
}
|
|
273
|
+
.en-alert-icon {
|
|
274
|
+
display: grid;
|
|
275
|
+
flex: none;
|
|
276
|
+
color: var(--eds-info-main);
|
|
277
|
+
}
|
|
228
278
|
|
|
229
|
-
/* 붙은 버튼 모양 라디오 (언어 선택 · 채점 방식) */
|
|
279
|
+
/* 붙은 버튼 모양 라디오 (언어 선택 · 채점 방식). 칸 너비는 같게 */
|
|
230
280
|
.en-modes {
|
|
231
|
-
display: inline-
|
|
281
|
+
display: inline-grid;
|
|
282
|
+
grid-auto-columns: 1fr;
|
|
283
|
+
grid-auto-flow: column;
|
|
232
284
|
margin: 0;
|
|
233
285
|
padding: 0;
|
|
234
286
|
border: 0;
|
|
@@ -248,6 +300,13 @@ body.ec-edit-page .ec-submitbar {
|
|
|
248
300
|
border-color 0.15s ease-in-out,
|
|
249
301
|
background-color 0.15s ease-in-out;
|
|
250
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
|
+
}
|
|
251
310
|
.en-radio-card:first-of-type {
|
|
252
311
|
margin-left: 0;
|
|
253
312
|
border-radius: var(--eds-radius) 0 0 var(--eds-radius);
|
|
@@ -288,7 +347,7 @@ body.ec-edit-page .ec-submitbar {
|
|
|
288
347
|
position: relative;
|
|
289
348
|
display: flex;
|
|
290
349
|
flex-direction: column;
|
|
291
|
-
padding-bottom:
|
|
350
|
+
padding-bottom: 12px;
|
|
292
351
|
border: 1px solid var(--eds-surface-border);
|
|
293
352
|
border-radius: 12px;
|
|
294
353
|
background: var(--eds-common-white);
|
|
@@ -297,6 +356,17 @@ body.ec-edit-page .ec-submitbar {
|
|
|
297
356
|
.en-tabcard .en-panel {
|
|
298
357
|
padding: 20px 20px 0;
|
|
299
358
|
}
|
|
359
|
+
/* 탭 안 워크스페이스는 카드 좌우 끝까지, 테두리 · 둥근 모서리 없이 (아래 선만) */
|
|
360
|
+
.en-tabcard .en-panel[data-panel='startProject'],
|
|
361
|
+
.en-tabcard .en-panel[data-panel='answerProject'] {
|
|
362
|
+
padding-top: 0;
|
|
363
|
+
}
|
|
364
|
+
.en-tabcard .en-panel .en-workspace {
|
|
365
|
+
margin-inline: -20px;
|
|
366
|
+
border: 0;
|
|
367
|
+
border-bottom: 1px solid var(--eds-surface-border);
|
|
368
|
+
border-radius: 0;
|
|
369
|
+
}
|
|
300
370
|
.en-tabs {
|
|
301
371
|
display: flex;
|
|
302
372
|
gap: 8px;
|
|
@@ -353,7 +423,8 @@ body.ec-edit-page .ec-submitbar {
|
|
|
353
423
|
background: var(--eds-primary-opacity02);
|
|
354
424
|
}
|
|
355
425
|
|
|
356
|
-
/* '채점 설정' 탭 배치: 채점 방식 줄 →
|
|
426
|
+
/* '채점 설정' 탭 배치: 정답 작품 → 채점 방식 줄 → AI 채점 기준 (채점 방식 패널을 풀어 order로 나눔).
|
|
427
|
+
정답 블록을 만든 뒤 채점 방식을 고르는 흐름 (디자인 2차) */
|
|
357
428
|
.en-panel[data-panel='grading']:not([hidden]),
|
|
358
429
|
.en-panel[data-panel='grading'] .en-panel-body {
|
|
359
430
|
display: contents;
|
|
@@ -361,14 +432,14 @@ body.ec-edit-page .ec-submitbar {
|
|
|
361
432
|
.en-grading-mode {
|
|
362
433
|
display: flex;
|
|
363
434
|
flex-wrap: wrap;
|
|
364
|
-
order:
|
|
435
|
+
order: 2;
|
|
365
436
|
align-items: center;
|
|
366
437
|
gap: 8px 16px;
|
|
367
438
|
min-height: 40px;
|
|
368
|
-
margin:
|
|
439
|
+
margin: 8px 20px 0;
|
|
369
440
|
}
|
|
370
441
|
.en-panel[data-panel='answerProject'] {
|
|
371
|
-
order:
|
|
442
|
+
order: 1;
|
|
372
443
|
}
|
|
373
444
|
.en-field-title {
|
|
374
445
|
margin: 0;
|
|
@@ -376,20 +447,6 @@ body.ec-edit-page .ec-submitbar {
|
|
|
376
447
|
font-size: var(--eds-fs-body2);
|
|
377
448
|
font-weight: var(--eds-fw-bold);
|
|
378
449
|
}
|
|
379
|
-
.en-hint-link {
|
|
380
|
-
display: inline-flex;
|
|
381
|
-
align-items: center;
|
|
382
|
-
gap: 4px;
|
|
383
|
-
padding: 0;
|
|
384
|
-
border: 0;
|
|
385
|
-
background: none;
|
|
386
|
-
color: var(--eds-primary-main);
|
|
387
|
-
font: inherit;
|
|
388
|
-
font-size: var(--eds-fs-body2);
|
|
389
|
-
font-weight: var(--eds-fw-semibold);
|
|
390
|
-
white-space: nowrap;
|
|
391
|
-
cursor: pointer;
|
|
392
|
-
}
|
|
393
450
|
.en-grading-note {
|
|
394
451
|
display: flex;
|
|
395
452
|
flex-basis: 100%;
|
|
@@ -418,13 +475,6 @@ body.ec-edit-page .ec-submitbar {
|
|
|
418
475
|
.en-warning[hidden] {
|
|
419
476
|
display: none;
|
|
420
477
|
}
|
|
421
|
-
.en-hint-link:hover {
|
|
422
|
-
text-decoration: underline;
|
|
423
|
-
}
|
|
424
|
-
.en-hint-link:focus-visible {
|
|
425
|
-
outline: 2px solid var(--eds-primary-main);
|
|
426
|
-
outline-offset: 2px;
|
|
427
|
-
}
|
|
428
478
|
|
|
429
479
|
/* AI 채점 기준 */
|
|
430
480
|
.en-ai {
|
|
@@ -439,11 +489,14 @@ body.ec-edit-page .ec-submitbar {
|
|
|
439
489
|
.en-ai p {
|
|
440
490
|
margin: 0;
|
|
441
491
|
}
|
|
492
|
+
/* AI 채점 기준: 채점 방식 줄 아래 회색 상자 */
|
|
442
493
|
.en-tabcard .en-ai {
|
|
443
494
|
order: 3;
|
|
444
|
-
margin:
|
|
445
|
-
padding:
|
|
446
|
-
border-
|
|
495
|
+
margin: 16px 20px 8px;
|
|
496
|
+
padding: 20px;
|
|
497
|
+
border-radius: 12px;
|
|
498
|
+
background: var(--eds-background-neutral);
|
|
499
|
+
scroll-margin-bottom: 80px;
|
|
447
500
|
}
|
|
448
501
|
.en-ai-head {
|
|
449
502
|
display: flex;
|
|
@@ -513,6 +566,18 @@ body.ec-edit-page .ec-submitbar {
|
|
|
513
566
|
font-size: var(--eds-fs-body2);
|
|
514
567
|
font-weight: var(--eds-fw-bold);
|
|
515
568
|
}
|
|
569
|
+
.en-example-button > span,
|
|
570
|
+
.en-auto-button > span,
|
|
571
|
+
.en-add-button > span {
|
|
572
|
+
display: inline-flex;
|
|
573
|
+
align-items: center;
|
|
574
|
+
line-height: 1.5;
|
|
575
|
+
}
|
|
576
|
+
.en-example-button svg,
|
|
577
|
+
.en-auto-button svg,
|
|
578
|
+
.en-add-button svg {
|
|
579
|
+
display: block;
|
|
580
|
+
}
|
|
516
581
|
.en-link-button.en-example-button {
|
|
517
582
|
display: inline-flex;
|
|
518
583
|
align-items: center;
|
|
@@ -535,12 +600,62 @@ body.ec-edit-page .ec-submitbar {
|
|
|
535
600
|
gap: 12px;
|
|
536
601
|
}
|
|
537
602
|
.en-criteria-head,
|
|
538
|
-
.en-criterion
|
|
603
|
+
.en-criterion,
|
|
604
|
+
.en-criteria-actions {
|
|
539
605
|
display: grid;
|
|
540
606
|
grid-template-columns: 200px minmax(0, 1fr) 160px 40px;
|
|
541
607
|
align-items: center;
|
|
542
608
|
gap: 12px;
|
|
543
609
|
}
|
|
610
|
+
/* 칸 아래 오류 글이 붙으므로 줄은 위로 맞춤 */
|
|
611
|
+
.en-criterion {
|
|
612
|
+
align-items: start;
|
|
613
|
+
}
|
|
614
|
+
.en-cell {
|
|
615
|
+
display: flex;
|
|
616
|
+
flex-direction: column;
|
|
617
|
+
gap: 4px;
|
|
618
|
+
min-width: 0;
|
|
619
|
+
}
|
|
620
|
+
.en-field-error {
|
|
621
|
+
margin: 0;
|
|
622
|
+
color: var(--eds-error-main);
|
|
623
|
+
font-size: var(--eds-fs-body2);
|
|
624
|
+
font-weight: var(--eds-fw-regular, 400);
|
|
625
|
+
line-height: 1.4;
|
|
626
|
+
}
|
|
627
|
+
.en-field-error[hidden] {
|
|
628
|
+
display: none;
|
|
629
|
+
}
|
|
630
|
+
/* 추가하기(오브젝트 칸 아래) · 자동 배점(부분 점수 칸 아래) */
|
|
631
|
+
.en-criteria-actions .en-add-button {
|
|
632
|
+
grid-column: 1;
|
|
633
|
+
align-self: stretch;
|
|
634
|
+
width: 100%;
|
|
635
|
+
}
|
|
636
|
+
.en-criteria-actions .en-auto-button {
|
|
637
|
+
display: inline-flex;
|
|
638
|
+
grid-column: 3;
|
|
639
|
+
justify-self: start;
|
|
640
|
+
align-items: center;
|
|
641
|
+
gap: 6px;
|
|
642
|
+
min-height: 40px;
|
|
643
|
+
padding: 8px 12px;
|
|
644
|
+
border: 0;
|
|
645
|
+
border-radius: var(--eds-radius);
|
|
646
|
+
background: none;
|
|
647
|
+
color: var(--eds-text-primary);
|
|
648
|
+
font: inherit;
|
|
649
|
+
font-size: var(--eds-fs-body2);
|
|
650
|
+
font-weight: var(--eds-fw-semibold);
|
|
651
|
+
cursor: pointer;
|
|
652
|
+
}
|
|
653
|
+
.en-criteria-actions .en-auto-button:hover:not(:disabled) {
|
|
654
|
+
background: var(--eds-action-hover);
|
|
655
|
+
}
|
|
656
|
+
.en-criteria-actions .en-auto-button:focus-visible {
|
|
657
|
+
outline: 2px solid var(--eds-primary-main);
|
|
658
|
+
}
|
|
544
659
|
.en-criteria-head {
|
|
545
660
|
margin-bottom: -4px;
|
|
546
661
|
color: var(--eds-text-primary);
|
|
@@ -556,21 +671,39 @@ body.ec-edit-page .ec-submitbar {
|
|
|
556
671
|
color: var(--eds-error-main, #c62828);
|
|
557
672
|
}
|
|
558
673
|
.en-info {
|
|
674
|
+
position: relative;
|
|
559
675
|
display: inline-grid;
|
|
560
676
|
place-items: center;
|
|
561
677
|
width: 20px;
|
|
562
678
|
height: 20px;
|
|
563
679
|
color: var(--eds-text-secondary);
|
|
564
680
|
}
|
|
681
|
+
/* 부분 점수 안내 말풍선 (i에 마우스 · 포커스) */
|
|
682
|
+
.en-tooltip {
|
|
683
|
+
position: absolute;
|
|
684
|
+
top: calc(100% + 6px);
|
|
685
|
+
right: -8px;
|
|
686
|
+
z-index: 25;
|
|
687
|
+
box-sizing: border-box;
|
|
688
|
+
width: max-content;
|
|
689
|
+
max-width: 260px;
|
|
690
|
+
padding: 6px 10px;
|
|
691
|
+
border-radius: 4px;
|
|
692
|
+
background: var(--eds-background-inverse, #191f28);
|
|
693
|
+
color: #fff;
|
|
694
|
+
font-size: 12px;
|
|
695
|
+
font-weight: var(--eds-fw-medium);
|
|
696
|
+
line-height: 1.4;
|
|
697
|
+
white-space: normal;
|
|
698
|
+
}
|
|
699
|
+
.en-tooltip[hidden] {
|
|
700
|
+
display: none;
|
|
701
|
+
}
|
|
702
|
+
/* 기준 목록은 스크롤 없이 다 보임 (최대 10개) */
|
|
565
703
|
.en-criteria {
|
|
566
704
|
display: flex;
|
|
567
705
|
flex-direction: column;
|
|
568
706
|
gap: 12px;
|
|
569
|
-
max-height: 280px;
|
|
570
|
-
overflow: hidden auto;
|
|
571
|
-
/* 스크롤 영역이 칸의 포커스 테두리(바깥 3px)를 자르지 않게 안쪽 여백을 두고 같은 만큼 당긴다 */
|
|
572
|
-
padding: 3px;
|
|
573
|
-
margin: -3px;
|
|
574
707
|
}
|
|
575
708
|
.en-field {
|
|
576
709
|
box-sizing: border-box;
|
|
@@ -588,9 +721,24 @@ body.ec-edit-page .ec-submitbar {
|
|
|
588
721
|
.en-field::placeholder {
|
|
589
722
|
color: var(--eds-text-disabled);
|
|
590
723
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
724
|
+
/* 포커스: 테두리를 주 색으로 + 1px 그림자 (점수 칸은 감싼 칸이 그림) */
|
|
725
|
+
.en-field:focus-visible,
|
|
726
|
+
.en-select-button:focus-visible,
|
|
727
|
+
.en-score-field:focus-within {
|
|
728
|
+
border-color: var(--eds-primary-main);
|
|
729
|
+
outline: none;
|
|
730
|
+
box-shadow: 0 0 0 1px var(--eds-primary-main);
|
|
731
|
+
}
|
|
732
|
+
/* 오류 칸: 빨간 테두리 (포커스면 빨간 그림자) */
|
|
733
|
+
.en-field[data-invalid='true'],
|
|
734
|
+
.en-select[data-invalid='true'] .en-select-button {
|
|
735
|
+
border-color: var(--eds-error-main);
|
|
736
|
+
}
|
|
737
|
+
.en-field[data-invalid='true']:focus-visible,
|
|
738
|
+
.en-score-field[data-invalid='true']:focus-within,
|
|
739
|
+
.en-select[data-invalid='true'] .en-select-button:focus-visible {
|
|
740
|
+
border-color: var(--eds-error-main);
|
|
741
|
+
box-shadow: 0 0 0 1px var(--eds-error-main);
|
|
594
742
|
}
|
|
595
743
|
.en-score-field {
|
|
596
744
|
display: flex;
|
|
@@ -598,10 +746,6 @@ body.ec-edit-page .ec-submitbar {
|
|
|
598
746
|
gap: 8px;
|
|
599
747
|
padding: 0 12px;
|
|
600
748
|
}
|
|
601
|
-
.en-score-field:focus-within {
|
|
602
|
-
outline: 2px solid var(--eds-primary-main);
|
|
603
|
-
outline-offset: 1px;
|
|
604
|
-
}
|
|
605
749
|
.en-score-input {
|
|
606
750
|
flex: 1;
|
|
607
751
|
width: 100%;
|
|
@@ -617,9 +761,13 @@ body.ec-edit-page .ec-submitbar {
|
|
|
617
761
|
-moz-appearance: textfield;
|
|
618
762
|
}
|
|
619
763
|
/* 테두리는 감싼 칸(.en-score-field:focus-within)이 그린다. 키트의 input:focus 테두리가 안에 또 그려지지 않게 */
|
|
620
|
-
.en-score-input
|
|
621
|
-
.en-score-input:focus
|
|
622
|
-
|
|
764
|
+
.en-score-field .en-score-input,
|
|
765
|
+
.en-score-field .en-score-input:focus,
|
|
766
|
+
.en-score-field .en-score-input:focus-visible {
|
|
767
|
+
border: 0;
|
|
768
|
+
border-radius: 0;
|
|
769
|
+
outline: none !important;
|
|
770
|
+
box-shadow: none;
|
|
623
771
|
}
|
|
624
772
|
/* 숫자 칸의 위아래 화살표는 쓰지 않는다 (디자인에 없음, 점수는 직접 입력) */
|
|
625
773
|
.en-score-input::-webkit-inner-spin-button,
|
|
@@ -824,13 +972,24 @@ body.ec-edit-page .ec-submitbar {
|
|
|
824
972
|
padding: 16px 16px 0;
|
|
825
973
|
}
|
|
826
974
|
.en-grading-mode {
|
|
827
|
-
margin:
|
|
975
|
+
margin: 8px 16px 0;
|
|
828
976
|
}
|
|
829
|
-
.en-
|
|
830
|
-
|
|
977
|
+
.en-tabcard .en-panel .en-workspace {
|
|
978
|
+
margin-inline: -16px;
|
|
831
979
|
}
|
|
832
980
|
.en-tabcard .en-ai {
|
|
833
|
-
|
|
981
|
+
margin: 16px 16px 8px;
|
|
982
|
+
padding: 16px;
|
|
983
|
+
}
|
|
984
|
+
/* 아래 줄: 안내 위 · 용량 칩 아래 오른쪽 */
|
|
985
|
+
.en-panel-footer {
|
|
986
|
+
flex-direction: column;
|
|
987
|
+
align-items: stretch;
|
|
988
|
+
gap: 8px;
|
|
989
|
+
}
|
|
990
|
+
.en-size-box {
|
|
991
|
+
align-self: flex-end;
|
|
992
|
+
max-width: 100%;
|
|
834
993
|
}
|
|
835
994
|
.en-ai-head {
|
|
836
995
|
flex-wrap: wrap;
|
|
@@ -845,8 +1004,14 @@ body.ec-edit-page .ec-submitbar {
|
|
|
845
1004
|
.en-criteria-head {
|
|
846
1005
|
display: none;
|
|
847
1006
|
}
|
|
848
|
-
|
|
849
|
-
|
|
1007
|
+
/* 추가하기 · 자동 배점 한 줄에 반씩 */
|
|
1008
|
+
.en-criteria-actions {
|
|
1009
|
+
grid-template-columns: 1fr 1fr;
|
|
1010
|
+
gap: 8px;
|
|
1011
|
+
}
|
|
1012
|
+
.en-criteria-actions .en-auto-button {
|
|
1013
|
+
grid-column: 2;
|
|
1014
|
+
justify-self: end;
|
|
850
1015
|
}
|
|
851
1016
|
.en-criterion {
|
|
852
1017
|
grid-template-columns: minmax(0, 1fr) 112px 40px;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// 엔트리 자료에만 있는 것만 en-* (styles.css)입니다. 워크스페이스 안(블록 · 메뉴 · 실행 화면)은 다른 출처 iframe이라 여기서 그리지 않습니다.
|
|
3
3
|
// 클래스 · 배치는 바꿔도 되지만, 남겨야 하는 data-role (동작이 찾음):
|
|
4
4
|
// 학생: stage · status · verdict · ai-badge · submitted · error · submit · feedback · feedback-toggle · feedback-body
|
|
5
|
-
// 편집: body (패널 안), tabs · tab (탭)
|
|
5
|
+
// 편집: body (패널 안), tabs · tab (탭), size-chip · size-message (용량)
|
|
6
6
|
import { html } from '../../core/dom.js';
|
|
7
7
|
import { texts } from '../texts.js';
|
|
8
8
|
|
|
@@ -19,14 +19,18 @@ export const loading = layout =>
|
|
|
19
19
|
</div>`;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* 학생 화면:
|
|
22
|
+
* 학생 화면: 워크스페이스 + (AI 피드백) + 아래 파란 줄(저장 표시 · 오류 · 채점 결과 · 최종 제출 점수 · 시간 ·
|
|
23
23
|
* (AI 채점 표시) · 제출 버튼)
|
|
24
24
|
*/
|
|
25
25
|
export const learnPage = ({ canSubmit }) => html`
|
|
26
26
|
<div class="en-learn">
|
|
27
|
-
<p class="en-notice" data-role="notice" data-ec-quiet>${texts.learn.downloadNotice}</p>
|
|
28
27
|
<div class="en-stage" data-role="stage"></div>
|
|
29
|
-
<section
|
|
28
|
+
<section
|
|
29
|
+
class="en-feedback"
|
|
30
|
+
data-role="feedback"
|
|
31
|
+
aria-label="${texts.learn.feedback.title}"
|
|
32
|
+
hidden
|
|
33
|
+
>
|
|
30
34
|
<h2 class="en-feedback-title">${texts.learn.feedback.title}</h2>
|
|
31
35
|
<div class="en-feedback-body" data-role="feedback-body"></div>
|
|
32
36
|
</section>
|
|
@@ -36,7 +40,13 @@ export const learnPage = ({ canSubmit }) => html`
|
|
|
36
40
|
<p class="en-verdict" data-role="verdict" role="status"></p>
|
|
37
41
|
<p class="en-submitted" data-role="submitted"></p>
|
|
38
42
|
<span class="en-badge" data-role="ai-badge" hidden>${texts.learn.aiBadge}</span>
|
|
39
|
-
<button
|
|
43
|
+
<button
|
|
44
|
+
type="button"
|
|
45
|
+
class="en-feedback-toggle"
|
|
46
|
+
data-role="feedback-toggle"
|
|
47
|
+
aria-expanded="false"
|
|
48
|
+
hidden
|
|
49
|
+
>
|
|
40
50
|
${texts.learn.feedback.open}
|
|
41
51
|
</button>
|
|
42
52
|
${canSubmit
|
|
@@ -56,13 +66,28 @@ export const panelSection = ({ id, title, inTab = false }) => html`
|
|
|
56
66
|
</section>
|
|
57
67
|
`;
|
|
58
68
|
|
|
69
|
+
/** 용량 칩 (작품 패널 아래 오른쪽): 한도를 넘으면 위에 빨간 글. 글은 screens/edit.js가 채움 */
|
|
70
|
+
export const sizeBox = () => html`
|
|
71
|
+
<div class="en-size-box" data-ec-quiet>
|
|
72
|
+
<p class="en-size-message" data-role="size-message" role="alert" hidden></p>
|
|
73
|
+
<span class="en-size-chip" data-role="size-chip"></span>
|
|
74
|
+
</div>
|
|
75
|
+
`;
|
|
76
|
+
|
|
59
77
|
/** 탭 카드: 탭 줄 + 탭 안 패널들 (screens/edit.js가 패널을 넣음) */
|
|
60
78
|
export const tabCard = ({ tabs }) => html`
|
|
61
79
|
<div class="en-tabcard">
|
|
62
80
|
<div class="en-tabs" role="tablist" aria-label="${texts.edit.tabs.label}" data-role="tabs">
|
|
63
81
|
${tabs.map(
|
|
64
82
|
tab =>
|
|
65
|
-
html`<button
|
|
83
|
+
html`<button
|
|
84
|
+
type="button"
|
|
85
|
+
class="en-tab"
|
|
86
|
+
role="tab"
|
|
87
|
+
data-role="tab"
|
|
88
|
+
data-tab="${tab}"
|
|
89
|
+
id="en-tab-${tab}"
|
|
90
|
+
>
|
|
66
91
|
${texts.edit.tabs[tab] ?? tab}
|
|
67
92
|
</button>`
|
|
68
93
|
)}
|