@elice/material-assignment 1.240723.0-assignmenttranslation.1 → 1.240723.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/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.d.ts +2 -4
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.js +6 -7
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContent.js +58 -185
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +33 -110
- package/es/components/material-assignment-admin/MaterialAssignmentAdmin.d.ts +2 -4
- package/es/components/material-assignment-admin/MaterialAssignmentAdmin.js +7 -8
- package/es/components/material-assignment-admin/MaterialAssignmentAdminContent.js +59 -186
- package/es/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +34 -111
- package/package.json +3 -3
- package/cjs/components/material-assignment-admin/locales/en.json.js +0 -7
- package/cjs/components/material-assignment-admin/locales/index.d.ts +0 -4
- package/cjs/components/material-assignment-admin/locales/index.js +0 -13
- package/cjs/components/material-assignment-admin/locales/ja.json.js +0 -7
- package/cjs/components/material-assignment-admin/locales/ko.json.js +0 -7
- package/cjs/components/material-assignment-admin/locales/th.json.js +0 -7
- package/es/components/material-assignment-admin/locales/en.json.js +0 -3
- package/es/components/material-assignment-admin/locales/index.d.ts +0 -4
- package/es/components/material-assignment-admin/locales/index.js +0 -4
- package/es/components/material-assignment-admin/locales/ja.json.js +0 -3
- package/es/components/material-assignment-admin/locales/ko.json.js +0 -3
- package/es/components/material-assignment-admin/locales/th.json.js +0 -3
|
@@ -10,7 +10,5 @@ export interface MaterialAssignmentAdminProps {
|
|
|
10
10
|
courseRole: enums.CourseRole;
|
|
11
11
|
updateMaterialUserBrowserResponse?: (userId: number) => void;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
14
|
-
|
|
15
|
-
} & React.RefAttributes<MaterialAssignmentAdminApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<MaterialAssignmentAdminApis>>;
|
|
16
|
-
export default _default;
|
|
13
|
+
declare const MaterialAssignmentAdmin: React.ForwardRefExoticComponent<MaterialAssignmentAdminProps & React.RefAttributes<MaterialAssignmentAdminApis>>;
|
|
14
|
+
export default MaterialAssignmentAdmin;
|
|
@@ -10,8 +10,6 @@ var intl = require('@elice/intl');
|
|
|
10
10
|
var materialSharedUtils = require('@elice/material-shared-utils');
|
|
11
11
|
var types = require('@elice/types');
|
|
12
12
|
var classnames = require('classnames');
|
|
13
|
-
var en = require('./locales/en.json.js');
|
|
14
|
-
var ko = require('./locales/ko.json.js');
|
|
15
13
|
var MaterialAssignmentAdminContent = require('./MaterialAssignmentAdminContent.js');
|
|
16
14
|
var MaterialAssignmentAdminContentTa = require('./MaterialAssignmentAdminContentTa.js');
|
|
17
15
|
var MaterialAssignmentAdmin_styled = require('./MaterialAssignmentAdmin.styled.js');
|
|
@@ -21,7 +19,8 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
21
19
|
var classnames__default = /*#__PURE__*/_interopDefaultCompat(classnames);
|
|
22
20
|
|
|
23
21
|
var MaterialAssignmentAdmin = React.forwardRef(function (_ref, ref) {
|
|
24
|
-
var
|
|
22
|
+
var _ref$locale = _ref.locale,
|
|
23
|
+
locale = _ref$locale === void 0 ? 'en' : _ref$locale,
|
|
25
24
|
className = _ref.className,
|
|
26
25
|
materialAssignmentId = _ref.materialAssignmentId,
|
|
27
26
|
userId = _ref.userId,
|
|
@@ -56,12 +55,12 @@ var MaterialAssignmentAdmin = React.forwardRef(function (_ref, ref) {
|
|
|
56
55
|
};
|
|
57
56
|
return jsxRuntime.jsx(MaterialAssignmentAdmin_styled.StyledMaterialAssignmentAdminContainer, {
|
|
58
57
|
className: classnames__default.default(prefixCls, className),
|
|
59
|
-
children: jsxRuntime.jsx(intl.
|
|
60
|
-
|
|
58
|
+
children: jsxRuntime.jsx(intl.IntlProvider, {
|
|
59
|
+
locale: locale,
|
|
60
|
+
defaultLocale: "en",
|
|
61
61
|
children: renderContent()
|
|
62
62
|
})
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
|
-
var MaterialAssignmentAdmin$1 = new intl.IntlComponentBuilder(MaterialAssignmentAdmin).add('en', en.default).add('ko', ko.default).addAsync('th', Promise.resolve().then(function () { return require('./locales/th.json.js'); })).addAsync('ja', Promise.resolve().then(function () { return require('./locales/ja.json.js'); })).build();
|
|
66
65
|
|
|
67
|
-
exports.default = MaterialAssignmentAdmin
|
|
66
|
+
exports.default = MaterialAssignmentAdmin;
|
|
@@ -28,7 +28,6 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
28
28
|
adminUserId = _ref.adminUserId,
|
|
29
29
|
updateMaterialUserBrowserResponse = _ref.updateMaterialUserBrowserResponse;
|
|
30
30
|
var _a;
|
|
31
|
-
var intl$1 = intl.useRawEliceIntl();
|
|
32
31
|
// Form
|
|
33
32
|
var gradeEditFormMethods = reactHookForm.useForm({
|
|
34
33
|
defaultValues: {
|
|
@@ -219,18 +218,14 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
219
218
|
if (typeof updateMaterialUserBrowserResponse === 'function') {
|
|
220
219
|
updateMaterialUserBrowserResponse(userId);
|
|
221
220
|
}
|
|
222
|
-
blocks.Notification.success(
|
|
223
|
-
id: 'materialAssignment.notify.success'
|
|
224
|
-
}));
|
|
221
|
+
blocks.Notification.success('저장되었습니다');
|
|
225
222
|
_context.next = 15;
|
|
226
223
|
break;
|
|
227
224
|
case 11:
|
|
228
225
|
_context.prev = 11;
|
|
229
226
|
_context.t0 = _context["catch"](1);
|
|
230
227
|
console.error(_context.t0);
|
|
231
|
-
blocks.Notification.error(
|
|
232
|
-
id: 'materialAssignment.notify.error'
|
|
233
|
-
}));
|
|
228
|
+
blocks.Notification.error('오류가 발생했습니다.');
|
|
234
229
|
case 15:
|
|
235
230
|
_context.prev = 15;
|
|
236
231
|
setShowGradeEditModal(false);
|
|
@@ -273,9 +268,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
273
268
|
if (typeof updateMaterialUserBrowserResponse === 'function') {
|
|
274
269
|
updateMaterialUserBrowserResponse(userId);
|
|
275
270
|
}
|
|
276
|
-
blocks.Notification.success(
|
|
277
|
-
id: 'materialAssignment.notify.success'
|
|
278
|
-
}));
|
|
271
|
+
blocks.Notification.success('저장되었습니다');
|
|
279
272
|
_context2.next = 19;
|
|
280
273
|
break;
|
|
281
274
|
case 14:
|
|
@@ -283,9 +276,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
283
276
|
_context2.t0 = _context2["catch"](2);
|
|
284
277
|
console.error(_context2.t0);
|
|
285
278
|
setGradeDeleteStatus('rejected');
|
|
286
|
-
blocks.Notification.error(
|
|
287
|
-
id: 'materialAssignment.notify.error'
|
|
288
|
-
}));
|
|
279
|
+
blocks.Notification.error('오류가 발생했습니다.');
|
|
289
280
|
case 19:
|
|
290
281
|
_context2.prev = 19;
|
|
291
282
|
setSelectedGradeForDelete(null);
|
|
@@ -319,18 +310,14 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
319
310
|
if (typeof updateMaterialUserBrowserResponse === 'function') {
|
|
320
311
|
updateMaterialUserBrowserResponse(userId);
|
|
321
312
|
}
|
|
322
|
-
blocks.Notification.success(
|
|
323
|
-
id: 'materialAssignment.notify.success'
|
|
324
|
-
}));
|
|
313
|
+
blocks.Notification.success('저장되었습니다');
|
|
325
314
|
_context3.next = 13;
|
|
326
315
|
break;
|
|
327
316
|
case 9:
|
|
328
317
|
_context3.prev = 9;
|
|
329
318
|
_context3.t0 = _context3["catch"](1);
|
|
330
319
|
console.error(_context3.t0);
|
|
331
|
-
blocks.Notification.error(
|
|
332
|
-
id: 'materialAssignment.notify.error'
|
|
333
|
-
}));
|
|
320
|
+
blocks.Notification.error('오류가 발생했습니다.');
|
|
334
321
|
case 13:
|
|
335
322
|
_context3.prev = 13;
|
|
336
323
|
setShowManualScoreEditModal(false);
|
|
@@ -387,25 +374,17 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
387
374
|
children: [jsxRuntime.jsx(blocks.Text, {
|
|
388
375
|
size: "tiny",
|
|
389
376
|
role: "gray4",
|
|
390
|
-
children:
|
|
391
|
-
id: 'materialAssignment.score'
|
|
392
|
-
})
|
|
377
|
+
children: "\uC810\uC218"
|
|
393
378
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
394
379
|
size: "small",
|
|
395
380
|
role: "white",
|
|
396
|
-
children: gradeResult ? "".concat((_c = (_b = gradeResult.manualScore) !== null && _b !== void 0 ? _b : gradeResult.avgCalcScore) !== null && _c !== void 0 ? _c : 0).concat(isScoreFinalized ?
|
|
397
|
-
id: 'materialAssignment.reveal'
|
|
398
|
-
}) : intl$1.formatMessage({
|
|
399
|
-
id: 'materialAssignment.private'
|
|
400
|
-
})) : '--'
|
|
381
|
+
children: gradeResult ? "".concat((_c = (_b = gradeResult.manualScore) !== null && _b !== void 0 ? _b : gradeResult.avgCalcScore) !== null && _c !== void 0 ? _c : 0).concat(isScoreFinalized ? '(공개됨)' : '(비공개)') : '--'
|
|
401
382
|
})]
|
|
402
383
|
}), jsxRuntime.jsxs(MaterialAssignmentAdmin_styled.StyledMaterialAssignmentAdminHeaderCell, {
|
|
403
384
|
children: [jsxRuntime.jsx(blocks.Text, {
|
|
404
385
|
size: "tiny",
|
|
405
386
|
role: "gray4",
|
|
406
|
-
children:
|
|
407
|
-
id: 'materialAssignment.table.column.lastSubmitDatetime'
|
|
408
|
-
})
|
|
387
|
+
children: "\uC81C\uCD9C \uC77C\uC2DC"
|
|
409
388
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
410
389
|
size: "small",
|
|
411
390
|
role: "white",
|
|
@@ -421,9 +400,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
421
400
|
var renderManualScoreEditButton = function renderManualScoreEditButton() {
|
|
422
401
|
return jsxRuntime.jsx(blocks.Tooltip, {
|
|
423
402
|
placement: "top",
|
|
424
|
-
title:
|
|
425
|
-
id: isUserSubmitted ? 'materialAssignment.tooltip.manual-score-edit.submit' : 'materialAssignment.tooltip.manual-score-edit.not-submit'
|
|
426
|
-
}),
|
|
403
|
+
title: isUserSubmitted ? '제출 기한이 지난 이후 조정할 수 있습니다.' : '미제출인 경우 조정할 수 없습니다.',
|
|
427
404
|
visible: !isAssignmentClosed || !isUserSubmitted ? undefined : false,
|
|
428
405
|
children: jsxRuntime.jsx(MaterialAssignmentAdmin_styled.StyledMaterialAssignmentAdminManualScoreEditButtonWrapper, {
|
|
429
406
|
disabled: !isAssignmentClosed || !isUserSubmitted,
|
|
@@ -433,9 +410,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
433
410
|
role: "navy3",
|
|
434
411
|
size: "tiny",
|
|
435
412
|
onClick: handleManualScoreEditClick,
|
|
436
|
-
children:
|
|
437
|
-
id: 'materialAssignment.button.manual-score-edit'
|
|
438
|
-
})
|
|
413
|
+
children: "\uC810\uC218 \uC870\uC815\uD558\uAE30"
|
|
439
414
|
})
|
|
440
415
|
})
|
|
441
416
|
});
|
|
@@ -453,17 +428,13 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
453
428
|
role: "navy1",
|
|
454
429
|
size: "small",
|
|
455
430
|
lineHeight: "1.375rem",
|
|
456
|
-
children: user ? "".concat(user.fullname, " ")
|
|
457
|
-
id: 'materialAssignment.username.subfix'
|
|
458
|
-
})) : null
|
|
431
|
+
children: user ? "".concat(user.fullname, " \uB2D8\uC758 \uC810\uC218") : null
|
|
459
432
|
}), jsxRuntime.jsx(blocks.Hspace, {
|
|
460
433
|
width: 0.25
|
|
461
434
|
}), jsxRuntime.jsx(blocks.Tooltip, {
|
|
462
435
|
useMaxWidth: true,
|
|
463
436
|
placement: "top",
|
|
464
|
-
title:
|
|
465
|
-
id: 'materialAssignment.tooltip.grade-result-button'
|
|
466
|
-
}),
|
|
437
|
+
title: "모든 채점 점수의 평균값이 반영된 종합 점수입니다. 평균값을 사용하지 않으려면 ‘조정하기'를 클릭해 직접 점수를 입력하세요.",
|
|
467
438
|
children: jsxRuntime.jsx(blocks.Icon, {
|
|
468
439
|
icon: icons.eilStatusInfo,
|
|
469
440
|
color: designTokens.base.color.navy1
|
|
@@ -473,11 +444,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
473
444
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
474
445
|
bold: true,
|
|
475
446
|
role: "white",
|
|
476
|
-
children: gradeResult ? "".concat((_b = (_a = gradeResult.manualScore) !== null && _a !== void 0 ? _a : gradeResult.avgCalcScore) !== null && _b !== void 0 ? _b : 0).concat(isScoreFinalized ?
|
|
477
|
-
id: 'materialAssignment.reveal'
|
|
478
|
-
}) : intl$1.formatMessage({
|
|
479
|
-
id: 'materialAssignment.private'
|
|
480
|
-
})) : '--'
|
|
447
|
+
children: gradeResult ? "".concat((_b = (_a = gradeResult.manualScore) !== null && _a !== void 0 ? _a : gradeResult.avgCalcScore) !== null && _b !== void 0 ? _b : 0).concat(isScoreFinalized ? '(공개됨)' : '(비공개)') : '--'
|
|
481
448
|
})]
|
|
482
449
|
}), renderManualScoreEditButton()]
|
|
483
450
|
});
|
|
@@ -493,36 +460,28 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
493
460
|
bold: true,
|
|
494
461
|
role: "danger",
|
|
495
462
|
size: "small",
|
|
496
|
-
children:
|
|
497
|
-
id: 'materialAssignment.status.deadlineExpired'
|
|
498
|
-
})
|
|
463
|
+
children: "\uC81C\uCD9C \uAE30\uD55C \uB9CC\uB8CC"
|
|
499
464
|
});
|
|
500
465
|
case isScoreFinalized:
|
|
501
466
|
return jsxRuntime.jsx(blocks.Text, {
|
|
502
467
|
bold: true,
|
|
503
468
|
role: "lightpurple",
|
|
504
469
|
size: "small",
|
|
505
|
-
children:
|
|
506
|
-
id: 'materialAssignment.status.graded'
|
|
507
|
-
})
|
|
470
|
+
children: "\uCC44\uC810 \uC644\uB8CC"
|
|
508
471
|
});
|
|
509
472
|
case isUserSubmitted:
|
|
510
473
|
return jsxRuntime.jsx(blocks.Text, {
|
|
511
474
|
bold: true,
|
|
512
475
|
role: "success",
|
|
513
476
|
size: "small",
|
|
514
|
-
children:
|
|
515
|
-
id: 'materialAssignment.status.submitted'
|
|
516
|
-
})
|
|
477
|
+
children: "\uC81C\uCD9C\uB428"
|
|
517
478
|
});
|
|
518
479
|
case !isUserSubmitted:
|
|
519
480
|
return jsxRuntime.jsx(blocks.Text, {
|
|
520
481
|
bold: true,
|
|
521
482
|
role: "warning",
|
|
522
483
|
size: "small",
|
|
523
|
-
children:
|
|
524
|
-
id: 'materialAssignment.status.noSubmitted'
|
|
525
|
-
})
|
|
484
|
+
children: "\uBBF8\uC81C\uCD9C"
|
|
526
485
|
});
|
|
527
486
|
}
|
|
528
487
|
}();
|
|
@@ -566,17 +525,13 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
566
525
|
children: jsxRuntime.jsxs("tbody", {
|
|
567
526
|
children: [jsxRuntime.jsxs("tr", {
|
|
568
527
|
children: [jsxRuntime.jsx("td", {
|
|
569
|
-
children:
|
|
570
|
-
id: 'materialAssignment.table.column.status'
|
|
571
|
-
})
|
|
528
|
+
children: "\uC0C1\uD0DC"
|
|
572
529
|
}), jsxRuntime.jsx("td", {
|
|
573
530
|
children: statusText
|
|
574
531
|
})]
|
|
575
532
|
}), jsxRuntime.jsxs("tr", {
|
|
576
533
|
children: [jsxRuntime.jsx("td", {
|
|
577
|
-
children:
|
|
578
|
-
id: 'materialAssignment.table.column.deadlineDatetime'
|
|
579
|
-
})
|
|
534
|
+
children: "\uACFC\uC81C \uC81C\uCD9C \uAE30\uD55C"
|
|
580
535
|
}), jsxRuntime.jsx("td", {
|
|
581
536
|
children: jsxRuntime.jsx(intl.FormattedDate, {
|
|
582
537
|
value: materialAssignment === null || materialAssignment === void 0 ? void 0 : materialAssignment.closeDatetime,
|
|
@@ -586,9 +541,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
586
541
|
})]
|
|
587
542
|
}), jsxRuntime.jsxs("tr", {
|
|
588
543
|
children: [jsxRuntime.jsx("td", {
|
|
589
|
-
children:
|
|
590
|
-
id: 'materialAssignment.table.column.lastSubmitDatetime'
|
|
591
|
-
})
|
|
544
|
+
children: "\uC81C\uCD9C \uC77C\uC2DC"
|
|
592
545
|
}), jsxRuntime.jsx("td", {
|
|
593
546
|
children: userSubmission ? jsxRuntime.jsx(intl.FormattedDate, {
|
|
594
547
|
value: userSubmission.createdDatetime,
|
|
@@ -598,9 +551,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
598
551
|
})]
|
|
599
552
|
}), jsxRuntime.jsxs("tr", {
|
|
600
553
|
children: [jsxRuntime.jsx("td", {
|
|
601
|
-
children:
|
|
602
|
-
id: 'materialAssignment.table.column.uploadedAssignments'
|
|
603
|
-
})
|
|
554
|
+
children: "\uC5C5\uB85C\uB4DC\uB41C \uACFC\uC81C"
|
|
604
555
|
}), jsxRuntime.jsx("td", {
|
|
605
556
|
children: submissionAttachment
|
|
606
557
|
})]
|
|
@@ -623,23 +574,17 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
623
574
|
bold: true,
|
|
624
575
|
role: "white",
|
|
625
576
|
lineHeight: 1.375,
|
|
626
|
-
children:
|
|
627
|
-
id: 'materialAssignment.grade-list'
|
|
628
|
-
})
|
|
577
|
+
children: "\uCC44\uC810 \uD604\uD669"
|
|
629
578
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
630
579
|
block: true,
|
|
631
580
|
size: "tiny",
|
|
632
581
|
role: "navy3",
|
|
633
582
|
lineHeight: 1.6,
|
|
634
|
-
children:
|
|
635
|
-
id: 'materialAssignment.grade-list.description'
|
|
636
|
-
})
|
|
583
|
+
children: "\uCC44\uC810\uC644\uB8CC\uD55C \uCC44\uC810\uC790\uC758 \uC810\uC218\uC640 \uD53C\uB4DC\uBC31\uC744 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4."
|
|
637
584
|
})]
|
|
638
585
|
}), jsxRuntime.jsx(blocks.Tooltip, {
|
|
639
586
|
placement: "top",
|
|
640
|
-
title:
|
|
641
|
-
id: isUserSubmitted ? 'materialAssignment.grade-list.tooltip.submitted' : 'materialAssignment.grade-list.tooltip.not-submitted'
|
|
642
|
-
}),
|
|
587
|
+
title: isUserSubmitted ? '제출 기한이 지난 이후 채점할 수 있습니다.' : '미제출인 경우 채점할 수 없습니다.',
|
|
643
588
|
visible: !isAssignmentClosed || !isUserSubmitted ? undefined : false,
|
|
644
589
|
children: jsxRuntime.jsx("span", {
|
|
645
590
|
children: jsxRuntime.jsx(blocks.Button, {
|
|
@@ -647,9 +592,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
647
592
|
role: "lightpurple",
|
|
648
593
|
disabled: !isAssignmentClosed || !isUserSubmitted,
|
|
649
594
|
onClick: handleGradeEditClick,
|
|
650
|
-
children:
|
|
651
|
-
id: Boolean(myGrade) ? 'materialAssignment.edit-grading' : 'materialAssignment.start-grading'
|
|
652
|
-
})
|
|
595
|
+
children: Boolean(myGrade) ? '내 채점 수정' : '내 채점 시작'
|
|
653
596
|
})
|
|
654
597
|
})
|
|
655
598
|
})]
|
|
@@ -657,23 +600,15 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
657
600
|
height: 0.75
|
|
658
601
|
}), jsxRuntime.jsx(blocks.TableNext, {
|
|
659
602
|
dark: true,
|
|
660
|
-
emptyMessage:
|
|
661
|
-
id: 'materialAssignment.table.empty-smg'
|
|
662
|
-
}),
|
|
603
|
+
emptyMessage: "\uCC44\uC810 \uC644\uB8CC\uD55C \uCC44\uC810\uC790\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
663
604
|
columns: [{
|
|
664
|
-
Header:
|
|
665
|
-
id: 'materialAssignment.table-col.fullname'
|
|
666
|
-
}),
|
|
605
|
+
Header: '채점자명',
|
|
667
606
|
accessor: 'fullname'
|
|
668
607
|
}, {
|
|
669
|
-
Header:
|
|
670
|
-
id: 'materialAssignment.table.column.assignmentScore'
|
|
671
|
-
}),
|
|
608
|
+
Header: '과제 점수',
|
|
672
609
|
accessor: 'grade'
|
|
673
610
|
}, {
|
|
674
|
-
Header:
|
|
675
|
-
id: 'materialAssignment.table-col.grade-datetime'
|
|
676
|
-
}),
|
|
611
|
+
Header: '채점 일시',
|
|
677
612
|
accessor: 'created',
|
|
678
613
|
textAlign: 'left'
|
|
679
614
|
}],
|
|
@@ -684,9 +619,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
684
619
|
noWrap: true,
|
|
685
620
|
role: "navy0",
|
|
686
621
|
size: "small",
|
|
687
|
-
children: "".concat(grade.gradeUser.fullname).concat(grade.gradeUser.id === adminUserId ?
|
|
688
|
-
id: 'materialAssignment.me'
|
|
689
|
-
}) : '')
|
|
622
|
+
children: "".concat(grade.gradeUser.fullname).concat(grade.gradeUser.id === adminUserId ? '(나)' : '')
|
|
690
623
|
}), jsxRuntime.jsx(blocks.Hspace, {
|
|
691
624
|
width: 0.25
|
|
692
625
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
@@ -750,22 +683,16 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
750
683
|
return null;
|
|
751
684
|
}
|
|
752
685
|
return jsxRuntime.jsxs(blocks.Modal, {
|
|
753
|
-
title:
|
|
754
|
-
id: Boolean(myGrade) ? 'materialAssignment.edit-grading' : 'materialAssignment.grading-assignments'
|
|
755
|
-
}),
|
|
686
|
+
title: Boolean(myGrade) ? '내 채점 수정' : '과제 채점',
|
|
756
687
|
footerButtons: [{
|
|
757
|
-
label:
|
|
758
|
-
id: 'materialAssignment.modal.button.confirm'
|
|
759
|
-
}),
|
|
688
|
+
label: '확인',
|
|
760
689
|
size: 'small',
|
|
761
690
|
role: 'primary',
|
|
762
691
|
loading: gradeEditFormMethods.formState.isSubmitting,
|
|
763
692
|
disabled: gradeEditFormMethods.formState.isSubmitting || !gradeEditFormMethods.formState.isValid,
|
|
764
693
|
onClick: handleGradeEditSubmit
|
|
765
694
|
}, {
|
|
766
|
-
label:
|
|
767
|
-
id: 'materialAssignment.modal.button.cancel'
|
|
768
|
-
}),
|
|
695
|
+
label: '취소',
|
|
769
696
|
size: 'small',
|
|
770
697
|
role: 'gray1',
|
|
771
698
|
onClick: function onClick() {
|
|
@@ -779,9 +706,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
779
706
|
bold: true,
|
|
780
707
|
block: true,
|
|
781
708
|
required: true,
|
|
782
|
-
children:
|
|
783
|
-
id: 'materialAssignment.score'
|
|
784
|
-
})
|
|
709
|
+
children: "\uC810\uC218"
|
|
785
710
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
786
711
|
height: 0.5
|
|
787
712
|
}), jsxRuntime.jsxs(blocks.Flex, {
|
|
@@ -810,26 +735,18 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
810
735
|
bold: true,
|
|
811
736
|
role: "gray9",
|
|
812
737
|
size: "small",
|
|
813
|
-
children:
|
|
814
|
-
id: 'materialAssignment.dot'
|
|
815
|
-
})
|
|
738
|
+
children: "\uC810"
|
|
816
739
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
817
740
|
role: "gray6",
|
|
818
741
|
size: "small",
|
|
819
|
-
children:
|
|
820
|
-
id: 'materialAssignment.table.column.totalPoint'
|
|
821
|
-
}, {
|
|
822
|
-
point: 100
|
|
823
|
-
})
|
|
742
|
+
children: ' / 100점 만점'
|
|
824
743
|
})]
|
|
825
744
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
826
745
|
height: 1.25
|
|
827
746
|
}), jsxRuntime.jsx(blocks.Label, {
|
|
828
747
|
bold: true,
|
|
829
748
|
block: true,
|
|
830
|
-
children:
|
|
831
|
-
id: 'materialAssignment.table.header.feedback'
|
|
832
|
-
})
|
|
749
|
+
children: "\uD53C\uB4DC\uBC31"
|
|
833
750
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
834
751
|
height: 0.5
|
|
835
752
|
}), jsxRuntime.jsx(reactHookForm.Controller, {
|
|
@@ -855,13 +772,9 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
855
772
|
return null;
|
|
856
773
|
}
|
|
857
774
|
return jsxRuntime.jsxs(blocks.Modal, {
|
|
858
|
-
title:
|
|
859
|
-
id: 'materialAssignment.modal.grade-result.title'
|
|
860
|
-
}),
|
|
775
|
+
title: "\uCC44\uC810 \uACB0\uACFC \uD655\uC778",
|
|
861
776
|
footerButtons: [{
|
|
862
|
-
label:
|
|
863
|
-
id: 'materialAssignment.modal.button.confirm'
|
|
864
|
-
}),
|
|
777
|
+
label: '확인',
|
|
865
778
|
size: 'small',
|
|
866
779
|
role: 'primary',
|
|
867
780
|
onClick: function onClick() {
|
|
@@ -875,9 +788,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
875
788
|
bold: true,
|
|
876
789
|
block: true,
|
|
877
790
|
required: true,
|
|
878
|
-
children:
|
|
879
|
-
id: 'materialAssignment.score'
|
|
880
|
-
})
|
|
791
|
+
children: "\uC810\uC218"
|
|
881
792
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
882
793
|
height: 0.5
|
|
883
794
|
}), jsxRuntime.jsxs(blocks.Flex, {
|
|
@@ -894,26 +805,18 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
894
805
|
bold: true,
|
|
895
806
|
role: "gray9",
|
|
896
807
|
size: "small",
|
|
897
|
-
children:
|
|
898
|
-
id: 'materialAssignment.dot'
|
|
899
|
-
})
|
|
808
|
+
children: "\uC810"
|
|
900
809
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
901
810
|
role: "gray6",
|
|
902
811
|
size: "small",
|
|
903
|
-
children:
|
|
904
|
-
id: 'materialAssignment.table.column.totalPoint'
|
|
905
|
-
}, {
|
|
906
|
-
point: 100
|
|
907
|
-
})
|
|
812
|
+
children: ' / 100점 만점'
|
|
908
813
|
})]
|
|
909
814
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
910
815
|
height: 1.25
|
|
911
816
|
}), jsxRuntime.jsx(blocks.Label, {
|
|
912
817
|
bold: true,
|
|
913
818
|
block: true,
|
|
914
|
-
children:
|
|
915
|
-
id: 'materialAssignment.table.header.feedback'
|
|
916
|
-
})
|
|
819
|
+
children: "\uD53C\uB4DC\uBC31"
|
|
917
820
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
918
821
|
height: 0.5
|
|
919
822
|
}), jsxRuntime.jsx(MaterialAssignmentAdmin_styled.StyledMaterialAssignmentAdminTextareaWrapper, {
|
|
@@ -931,23 +834,17 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
931
834
|
return null;
|
|
932
835
|
}
|
|
933
836
|
return jsxRuntime.jsxs(blocks.Modal, {
|
|
934
|
-
title:
|
|
935
|
-
id: 'materialAssignment.modal.delete-grading'
|
|
936
|
-
}),
|
|
837
|
+
title: "\uCC44\uC810 \uC0AD\uC81C",
|
|
937
838
|
width: "narrow",
|
|
938
839
|
footerButtons: [{
|
|
939
|
-
label:
|
|
940
|
-
id: 'materialAssignment.modal.button.confirm'
|
|
941
|
-
}),
|
|
840
|
+
label: '확인',
|
|
942
841
|
size: 'small',
|
|
943
842
|
role: 'primary',
|
|
944
843
|
loading: gradeDeleteStatus === 'pending',
|
|
945
844
|
disabled: gradeDeleteStatus === 'pending',
|
|
946
845
|
onClick: handleGradeDeleteSubmit
|
|
947
846
|
}, {
|
|
948
|
-
label:
|
|
949
|
-
id: 'materialAssignment.modal.button.cancel'
|
|
950
|
-
}),
|
|
847
|
+
label: '취소',
|
|
951
848
|
size: 'small',
|
|
952
849
|
role: 'gray1',
|
|
953
850
|
onClick: function onClick() {
|
|
@@ -959,21 +856,15 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
959
856
|
},
|
|
960
857
|
children: [jsxRuntime.jsx(blocks.Text, {
|
|
961
858
|
role: "gray9",
|
|
962
|
-
children:
|
|
963
|
-
id: 'materialAssignment.modal.delete-grading.description'
|
|
964
|
-
})
|
|
859
|
+
children: "\uC0AD\uC81C\uB41C \uC810\uC218\uC640 \uD53C\uB4DC\uBC31\uC740 \uB2E4\uC2DC \uBCF5\uAD6C\uB420 \uC218 \uC5C6\uC73C\uBA70 \uD559\uC0DD\uC758 \uD3C9\uADE0 \uC810\uC218\uAC00 \uBCC0\uACBD\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4."
|
|
965
860
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
966
861
|
height: 0.75
|
|
967
862
|
}), jsxRuntime.jsx(blocks.TableNext, {
|
|
968
863
|
columns: [{
|
|
969
|
-
Header:
|
|
970
|
-
id: 'materialAssignment.table-col.fullname'
|
|
971
|
-
}),
|
|
864
|
+
Header: '채점자명',
|
|
972
865
|
accessor: 'fullname'
|
|
973
866
|
}, {
|
|
974
|
-
Header:
|
|
975
|
-
id: 'materialAssignment.final-score'
|
|
976
|
-
}),
|
|
867
|
+
Header: '최종 점수',
|
|
977
868
|
accessor: 'score'
|
|
978
869
|
}],
|
|
979
870
|
data: [{
|
|
@@ -1003,23 +894,17 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
1003
894
|
return null;
|
|
1004
895
|
}
|
|
1005
896
|
return jsxRuntime.jsxs(blocks.Modal, {
|
|
1006
|
-
title:
|
|
1007
|
-
id: 'materialAssignment.modal.edit-grading'
|
|
1008
|
-
}),
|
|
897
|
+
title: "\uC810\uC218 \uC870\uC815",
|
|
1009
898
|
width: "narrow",
|
|
1010
899
|
footerButtons: [{
|
|
1011
|
-
label:
|
|
1012
|
-
id: 'materialAssignment.modal.button.confirm'
|
|
1013
|
-
}),
|
|
900
|
+
label: '확인',
|
|
1014
901
|
size: 'small',
|
|
1015
902
|
role: 'primary',
|
|
1016
903
|
loading: manualScoreEditFormMethods.formState.isSubmitting,
|
|
1017
904
|
disabled: manualScoreEditFormMethods.formState.isSubmitting || !manualScoreEditFormMethods.formState.isValid,
|
|
1018
905
|
onClick: handleManualScoreEditSubmit
|
|
1019
906
|
}, {
|
|
1020
|
-
label:
|
|
1021
|
-
id: 'materialAssignment.modal.button.cancel'
|
|
1022
|
-
}),
|
|
907
|
+
label: '취소',
|
|
1023
908
|
size: 'small',
|
|
1024
909
|
role: 'gray1',
|
|
1025
910
|
onClick: function onClick() {
|
|
@@ -1031,9 +916,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
1031
916
|
},
|
|
1032
917
|
children: [jsxRuntime.jsx(blocks.Alert, {
|
|
1033
918
|
role: "warning",
|
|
1034
|
-
children:
|
|
1035
|
-
id: 'materialAssignment.modal.edit-grading.alert'
|
|
1036
|
-
})
|
|
919
|
+
children: "\uC810\uC218 \uC870\uC815 \uC774\uD6C4 \uB2E4\uC2DC \uD3C9\uADE0\uAC12\uC73C\uB85C \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC73C\uB2C8 \uC720\uC758\uD574 \uC8FC\uC138\uC694."
|
|
1037
920
|
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
1038
921
|
height: 1
|
|
1039
922
|
}), jsxRuntime.jsxs(blocks.Flex, {
|
|
@@ -1043,9 +926,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
1043
926
|
size: "small",
|
|
1044
927
|
width: "xsmall",
|
|
1045
928
|
type: "number",
|
|
1046
|
-
label:
|
|
1047
|
-
id: 'materialAssignment.previous-score'
|
|
1048
|
-
}),
|
|
929
|
+
label: "\uC774\uC804 \uC810\uC218",
|
|
1049
930
|
value: (_b = (_a = gradeResult === null || gradeResult === void 0 ? void 0 : gradeResult.manualScore) !== null && _a !== void 0 ? _a : gradeResult === null || gradeResult === void 0 ? void 0 : gradeResult.avgCalcScore) !== null && _b !== void 0 ? _b : 0
|
|
1050
931
|
}), jsxRuntime.jsx(blocks.Hspace, {
|
|
1051
932
|
width: 1
|
|
@@ -1069,9 +950,7 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
1069
950
|
size: "small",
|
|
1070
951
|
width: "xsmall",
|
|
1071
952
|
type: "number",
|
|
1072
|
-
label:
|
|
1073
|
-
id: 'materialAssignment.adjusted-score'
|
|
1074
|
-
})
|
|
953
|
+
label: "\uC870\uC815 \uC810\uC218"
|
|
1075
954
|
}));
|
|
1076
955
|
}
|
|
1077
956
|
}), jsxRuntime.jsx(blocks.Hspace, {
|
|
@@ -1080,17 +959,11 @@ var MaterialAssignmentAdminContent = React.forwardRef(function (_ref, ref) {
|
|
|
1080
959
|
bold: true,
|
|
1081
960
|
role: "gray9",
|
|
1082
961
|
size: "small",
|
|
1083
|
-
children:
|
|
1084
|
-
id: 'materialAssignment.dot'
|
|
1085
|
-
})
|
|
962
|
+
children: "\uC810"
|
|
1086
963
|
}), jsxRuntime.jsx(blocks.Text, {
|
|
1087
964
|
role: "gray6",
|
|
1088
965
|
size: "small",
|
|
1089
|
-
children:
|
|
1090
|
-
id: 'materialAssignment.table.column.totalPoint'
|
|
1091
|
-
}, {
|
|
1092
|
-
point: 100
|
|
1093
|
-
})
|
|
966
|
+
children: ' / 100점 만점'
|
|
1094
967
|
})]
|
|
1095
968
|
})]
|
|
1096
969
|
});
|