@elice/material-runbox 1.240401.0 → 1.240508.0-globalization.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/cjs/components/material-runbox/MaterialRunbox.d.ts +3 -2
- package/cjs/components/material-runbox/MaterialRunbox.js +10 -11
- package/cjs/components/material-runbox/MaterialRunboxContent.js +8 -7
- package/cjs/components/material-runbox/MaterialRunboxHeader.js +9 -9
- package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +5 -5
- package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +21 -21
- package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +13 -13
- package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +12 -11
- package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +6 -6
- package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +4 -4
- package/cjs/components/material-runbox/hooks/useRunboxControl.js +3 -3
- package/cjs/components/material-runbox/locales/en.json.js +2 -2
- package/cjs/components/material-runbox/locales/index.d.ts +3 -2
- package/cjs/components/material-runbox/locales/ko.json.js +2 -2
- package/cjs/components/material-runbox/locales/th.json.js +7 -0
- package/cjs/components/material-runbox/runtime/RuntimeOverlayAssigned.js +6 -5
- package/cjs/components/material-runbox/runtime/RuntimeOverlayQueued.js +10 -10
- package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +15 -15
- package/es/components/material-runbox/MaterialRunbox.d.ts +3 -2
- package/es/components/material-runbox/MaterialRunbox.js +10 -11
- package/es/components/material-runbox/MaterialRunboxContent.js +8 -7
- package/es/components/material-runbox/MaterialRunboxHeader.js +9 -9
- package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +2 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +18 -18
- package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +12 -12
- package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +12 -11
- package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +4 -4
- package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +2 -2
- package/es/components/material-runbox/hooks/useRunboxControl.js +2 -2
- package/es/components/material-runbox/locales/en.json.js +2 -2
- package/es/components/material-runbox/locales/index.d.ts +3 -2
- package/es/components/material-runbox/locales/ko.json.js +2 -2
- package/es/components/material-runbox/locales/th.json.js +3 -0
- package/es/components/material-runbox/runtime/RuntimeOverlayAssigned.js +6 -5
- package/es/components/material-runbox/runtime/RuntimeOverlayQueued.js +10 -10
- package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +8 -8
- package/package.json +7 -7
- package/cjs/components/material-runbox/locales/index.js +0 -9
- package/es/components/material-runbox/locales/index.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageKo = {"runbox.action.autoShutdown.title":"항상 켜두기","runbox.action.autoShutdown.tooltip.disabled":"해당 런타임은 세션별 사용 시간으로 설정된 {time}이 지나면 자동으로 종료됩니다.","runbox.action.autoShutdown.tooltip.enabled":"항상 켜두기를 설정하면 학습 {_termLibraryLecturePage} 밖으로 나가도 런타임이 종료되지 않습니다. 다만, 해당 런타임의 세션별 사용 시간으로 설정된 {time}이 지나면 자동으로 종료됩니다.","runbox.action.grade.dialog.description.error":"채점 중에 오류가 발생했습니다.","runbox.action.grade.dialog.description.success":"채점이 완료되었습니다.","runbox.action.grade.dialog.title":"채점 결과","runbox.action.grade.noti.error":"코드를 채점하는 도중 오류가 발생했습니다.","runbox.action.grade.title":"제출","runbox.action.grade.tooltip.onProgress":"코드 채점이 진행 중 입니다. 잠시만 기다려 주세요. 실습에 따라 채점이 최대 3분까지 소요될 수 있습니다.","runbox.action.reset.dialog.actions.confirm":"초기화","runbox.action.reset.dialog.description":"런박스 코드를 초기화하시겠습니까? 초기화 시 학습{_termLibraryLecturePage}의 코드가 기본 코드로 덮어씌워집니다.\n초기화 이후 런박스 세션이 새로고침 됩니다.","runbox.action.reset.noti.error":"런박스 코드를 초기화 하는 중에 오류가 발생했습니다.","runbox.action.reset.title":"코드 초기화","runbox.action.restart.dialog.actions.confirm":"재시작","runbox.action.restart.dialog.description":"런박스를 재시작 하시겠습니까?","runbox.action.restart.title":"런박스 재시작","runbox.action.share.title":"런박스 URL 복사","runbox.action.share.snackbar.copied.fail":"런박스 URL을 복사에 실패했습니다. 다시 시도해주세요.","runbox.action.share.snackbar.copied.success":"런박스 URL을 복사하였습니다.","runbox.action.submitCountInfo.dialog.title":"제출 횟수 제한","runbox.action.submitCountInfo.dialog.description":"제출 횟수 제한을 초과했습니다.","runbox.action.submitCountInfo.tooltip.disabled":"제출 횟수를 모두 사용했습니다.","runbox.common.close":"닫기","runbox.common.retry":"재시도","runbox.common.support":"고객센터","runbox.context.command.ping.error":"런박스 작업을 수행하는 도중 오류가 발생했습니다.","runbox.runtime.message.startError":"런박스를 시작하는 중에 오류가 발생했습니다.","runbox.runtime.overlay.assigned.description":"(3 / 3)\n런박스가 실행 중입니다.\n잠시만 기다려주세요!","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\n런박스를 실행하는데\n예상보다 시간이 소요되고 있습니다.\n새로고침하지 말고 조금만 더 기다려주세요!","runbox.runtime.overlay.queued.description":"(2 / 3)\n현재 {waiters}번째 대기 중입니다...","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\n곧 런박스가 실행됩니다","runbox.runtime.overlay.terminated.description.default":"예상치 못한 문제로 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.general":"런박스에 연결된 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"디스크가 가득 차서 런타임이 종료되었습니다.\n최근 런박스를 삭제하셨다면 반영까지 시간이 소요될 수 있습니다.","runbox.runtime.overlay.terminated.description.quota_exceeded":"런타임 사용시간이 만료되어 런타임이 종료되었습니다.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"런박스를 실행한지 24시간이 경과하여 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.unexpected":"문제가 지속되면 고객센터에 문의해주세요.","runbox.runtime.overlay.terminated.restart":"재접속","runbox.runtime.overlay.terminated.title":"런타임 연결 해제됨","runbox.header.submitInfo":"{isIndividual, select, true {} other {팀}} 제출 횟수 | {isDailyLimitEnabled, select, true {오늘} other {}} {remainCount}/{totalCount}회 남음"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageKo as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var messageTh = {"runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip.disabled":"โรงง่ายได้ถูกตั้งค่าเป็นเวลาการใช้งานต่อเซสชัน {time}เมื่อผ่านไปแล้ว โปรแกรมจะถูกปิดอัตโนมัติ ","runbox.action.autoShutdown.tooltip.enabled":"เสมอติดตั้งการเปิดระบบอาจทำให้รันไทม์ไม่จบเมื่อออกจากข้อมูลการเรียนรู้ อย่างไรก็ตาม จะถูกตั้งเวลาการใช้งานต่อเซสชันของรันไทม์ที่นั่ง {time}เมื่อผ่านไปแล้ว โปรแกรมจะถูกปิดอัตโนมัติ ","runbox.action.grade.dialog.description.error":"เกิดข้อผิดพลาดขณะทำการตรวจคะแนน ","runbox.action.grade.dialog.description.success":"การตรวจคะแนนเสร็จสมบูรณ์แล้วค่ะ.","runbox.action.grade.dialog.title":"ผลการตรวจคะแนน","runbox.action.grade.noti.error":"ระหว่างการตรวจคะแนนโค้ดเกิดข้อผิดพลาดขึ้นในขณะนี้ครับ.","runbox.action.grade.title":"ส่ง","runbox.action.grade.tooltip.onProgress":"การตรวจคำตอบกำลังดำเนินอยู่ โปรดรอสัก{_termCourseRoleEducator}่ค่ะ ตามการปฏิบัติการฝึกปฏิบัติ การตรวจคำตอบอาจใช้เวลาถึง 3 นาทีได้ค่ะ.","runbox.action.reset.dialog.actions.confirm":"เริ่มต้นใหม่","runbox.action.reset.dialog.description":"คุณต้องการรีเซ็ตโค้ดของ Runbox หรือไม่? เมื่อรีเซ็ตแล้วโค้ดของชุดข้อมูลจะถูกเขียนทับด้วยโค้ดเริ่มต้น\nหลังจากรีเซ็ต การเซสชั่นของ Runbox จะถูกรีเฟรชใหม่.","runbox.action.reset.noti.error":"เกิดข้อผิดพลาดขณะกำลังรีเซ็ตโค้ดของลั่นบ็อกซ์ ","runbox.action.reset.title":"รีเซ็ตโค้ด","runbox.action.restart.dialog.actions.confirm":"เริ่มใหม่","runbox.action.restart.dialog.description":"คุณต้องการที่จะเริ่มการทำงานของลันบอกซ์ใหม่หรือไม่?","runbox.action.restart.title":"รีสตาร์ทเรันบ็อกซ์","runbox.action.share.title":"คัดลอก URL ของ Runbox","runbox.action.share.snackbar.copied.fail":"การคัดลอก URL ของรันบ็อกซ์ล้มเหลว โปรดลองอีกครั้งค่ะ.","runbox.action.share.snackbar.copied.success":"คัดลอก URL ของ Runbox แล้วค่ะ.","runbox.action.submitCountInfo.dialog.title":"จำนวนครั้งในการส่งจำกัด","runbox.action.submitCountInfo.dialog.description":"เกินจำนวนครั้งที่สามารถส่งได้แล้วครับ.","runbox.action.submitCountInfo.tooltip.disabled":"ใช้จำนวนครั้งในการส่งทั้งหมดแล้วครับ.","runbox.common.close":"ปิด","runbox.common.retry":"ลองอีกครั้ง","runbox.common.support":"ศูนย์บริการลูกค้า","runbox.context.command.ping.error":"การดำเนินการงานบน Runbox ผิดพลาดในขณะนี้ โปรดลองอีกครั้งในภายหลัง.","runbox.runtime.message.startError":"เมื่อเริ่มต้นการทำงานของรันบ็อกซ์ พบข้อผิดพลาดในขณะนี้ครับ.","runbox.runtime.overlay.assigned.description":"(3 / 3)\nรันบ็อกซ์กำลังทำงานอยู่\nกรุณารอสักครู่!","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\nการทำงานของระบบกำลังใช้เวลามากกว่าที่คาดหวัง\nโปรดรอสัก{_termCourseRoleEducator}่เพิ่มเติมโดยไม่ต้องรีเฟรช!","runbox.runtime.overlay.queued.description":"(2 / 3)\nปัจจุบัน {waiters}อยู่ในคิวที่...","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\nเร็ว ๆ นี้การดำเนินงานของรันบ็อกจะเริ่มต้น","runbox.runtime.overlay.terminated.description.default":"พบปัญหาที่ไม่คาดคิดและทำให้ระบบหยุดทำงาน\nโปรดกดปุ่มด้านล่างเพื่อเชื่อมต่อใหม่กับระบบ.","runbox.runtime.overlay.terminated.description.general":"เชื่อมต่อรันไทม์ที่เชื่อมต่อกับรันบ็อกซ์ถูกปิดลงแล้ว\nหากต้องการเชื่อมต่อรันบ็อกซ์อีกครั้ง กรุณากดปุ่มด้านล่าง","runbox.runtime.overlay.terminated.description.os_disk_is_full":"ดิสก์เต็มเพราะได้ลบแพ็คเกจเร็วเรียบร้อยแล้ว อาจใช้เวลาสัก{_termCourseRoleEducator}่ในการปรับปรุงในกรณีนี้","runbox.runtime.overlay.terminated.description.quota_exceeded":"เวลาการใช้งานของไรมฯหมดลง และไรมฯถูกปิดลงแล้วครับ.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"หลังจากผ่านไป 24 ชั่วโมงหลังจากการเริ่มต้นการเรียกใช้ Runbox ได้สิ้นสุดลงแล้ว\nหากต้องการเชื่อมต่อกับ Runbox อีกครั้ง โปรดคลิกที่ปุ่มด้านล่างนี้.","runbox.runtime.overlay.terminated.description.unexpected":"หากปัญหายังคงอยู่ กรุณาติดต่อศูนย์บริการลูกค้าค่ะ.","runbox.runtime.overlay.terminated.restart":"การเชื่อมต่ออีกครั้ง","runbox.runtime.overlay.terminated.title":"เชื่อมต่อไปยังเวลาทำงานถูกยกเลิก","runbox.header.submitInfo":"{isIndividual, select, true {} other {ทีม}} จำนวนครั้งที่ส่ง | {isDailyLimitEnabled, select, true {วันนี้} other {}} {remainCount}/{totalCount}เหลืออยู่"};
|
|
2
|
+
|
|
3
|
+
export { messageTh as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
2
|
import { useTimeout } from 'react-use';
|
|
3
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
4
4
|
import { Stack, Box, Typography } from '@mui/material';
|
|
5
5
|
import queueAnimationImage from '../../../assets/queue.gif.js';
|
|
6
6
|
|
|
@@ -12,6 +12,7 @@ const ASSIGNED_NORMAL_TIMEOUT = 30 * 1e3; // 30 sec
|
|
|
12
12
|
//
|
|
13
13
|
//
|
|
14
14
|
const RuntimeOverlayAssigned = () => {
|
|
15
|
+
const intl = useRawEliceIntl();
|
|
15
16
|
const [timeout] = useTimeout(ASSIGNED_NORMAL_TIMEOUT);
|
|
16
17
|
//
|
|
17
18
|
//
|
|
@@ -41,10 +42,10 @@ const RuntimeOverlayAssigned = () => {
|
|
|
41
42
|
whiteSpace: 'pre-wrap',
|
|
42
43
|
textAlign: 'center'
|
|
43
44
|
}
|
|
44
|
-
}, timeout() ?
|
|
45
|
-
id:
|
|
46
|
-
}) :
|
|
47
|
-
id:
|
|
45
|
+
}, timeout() ? intl.formatMessage({
|
|
46
|
+
id: 'runbox.runtime.overlay.assigned.description_timeout'
|
|
47
|
+
}) : intl.formatMessage({
|
|
48
|
+
id: 'runbox.runtime.overlay.assigned.description'
|
|
48
49
|
})));
|
|
49
50
|
};
|
|
50
51
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
3
3
|
import { QuestionAnswer } from '@mui/icons-material';
|
|
4
4
|
import { Stack, Box, Typography, Button } from '@mui/material';
|
|
5
5
|
import '../contexts/MaterialRunboxApiContext.js';
|
|
@@ -13,6 +13,7 @@ import queueAnimationImage from '../../../assets/queue.gif.js';
|
|
|
13
13
|
const RuntimeOverlayQueued = ({
|
|
14
14
|
numWaiters
|
|
15
15
|
}) => {
|
|
16
|
+
const intl = useRawEliceIntl();
|
|
16
17
|
const {
|
|
17
18
|
showMessenger
|
|
18
19
|
} = useMaterialRunboxContext();
|
|
@@ -44,19 +45,18 @@ const RuntimeOverlayQueued = ({
|
|
|
44
45
|
whiteSpace: 'pre-wrap',
|
|
45
46
|
textAlign: 'center'
|
|
46
47
|
}
|
|
47
|
-
}, numWaiters > 0 ?
|
|
48
|
-
id:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
id: "runbox.runtime.overlay.queued.description_zero"
|
|
48
|
+
}, numWaiters > 0 ? intl.formatMessage({
|
|
49
|
+
id: 'runbox.runtime.overlay.queued.description'
|
|
50
|
+
}, {
|
|
51
|
+
waiters: numWaiters
|
|
52
|
+
}) : intl.formatMessage({
|
|
53
|
+
id: 'runbox.runtime.overlay.queued.description_zero'
|
|
54
54
|
})), typeof showMessenger === 'function' ? React.createElement(Button, {
|
|
55
55
|
variant: "outlined",
|
|
56
56
|
startIcon: React.createElement(QuestionAnswer, null),
|
|
57
57
|
onClick: showMessenger
|
|
58
|
-
},
|
|
59
|
-
id:
|
|
58
|
+
}, intl.formatMessage({
|
|
59
|
+
id: 'runbox.common.support'
|
|
60
60
|
})) : null);
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
3
3
|
import { PlayArrow } from '@mui/icons-material';
|
|
4
4
|
import { LoadingButton } from '@mui/lab';
|
|
5
5
|
import { Box, Stack, Typography, Button } from '@mui/material';
|
|
@@ -15,7 +15,7 @@ const RuntimeOverlayTerminated = ({
|
|
|
15
15
|
reason,
|
|
16
16
|
startRuntime
|
|
17
17
|
}) => {
|
|
18
|
-
const intl =
|
|
18
|
+
const intl = useRawEliceIntl();
|
|
19
19
|
const {
|
|
20
20
|
showMessenger
|
|
21
21
|
} = useMaterialRunboxContext();
|
|
@@ -104,8 +104,8 @@ const RuntimeOverlayTerminated = ({
|
|
|
104
104
|
}, React.createElement(Typography, {
|
|
105
105
|
variant: "h6",
|
|
106
106
|
textAlign: "center"
|
|
107
|
-
},
|
|
108
|
-
id:
|
|
107
|
+
}, intl.formatMessage({
|
|
108
|
+
id: 'runbox.runtime.overlay.terminated.title'
|
|
109
109
|
})), React.createElement(Typography, {
|
|
110
110
|
variant: "body2",
|
|
111
111
|
textAlign: "center",
|
|
@@ -123,13 +123,13 @@ const RuntimeOverlayTerminated = ({
|
|
|
123
123
|
loading: isRestarting,
|
|
124
124
|
startIcon: React.createElement(PlayArrow, null),
|
|
125
125
|
onClick: handleRestart
|
|
126
|
-
},
|
|
127
|
-
id:
|
|
126
|
+
}, intl.formatMessage({
|
|
127
|
+
id: 'runbox.runtime.overlay.terminated.restart'
|
|
128
128
|
})), runtimeTerminatedAction.unexpected && typeof showMessenger === 'function' ? React.createElement(Button, {
|
|
129
129
|
variant: "text",
|
|
130
130
|
onClick: showMessenger
|
|
131
|
-
},
|
|
132
|
-
id:
|
|
131
|
+
}, intl.formatMessage({
|
|
132
|
+
id: 'runbox.common.support'
|
|
133
133
|
})) : null)));
|
|
134
134
|
};
|
|
135
135
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-runbox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.240508.0-globalization.1",
|
|
4
4
|
"description": "User view and editing components of Elice material runbox",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
+
"@elice/intl": "*",
|
|
28
29
|
"@elice/material-shared-types": "*",
|
|
29
30
|
"@elice/material-shared-utils": "*",
|
|
30
31
|
"@elice/mui-elements": "^5",
|
|
@@ -41,7 +42,6 @@
|
|
|
41
42
|
"@mui/material": "^5.10.16",
|
|
42
43
|
"@tanstack/react-query": "^4.0.0",
|
|
43
44
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
44
|
-
"react-intl": "^5.0.0",
|
|
45
45
|
"react-transition-group": "^4.4.0",
|
|
46
46
|
"react-use": "^17.0.0"
|
|
47
47
|
},
|
|
@@ -51,13 +51,14 @@
|
|
|
51
51
|
"tslib": "^2.6.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@elice/
|
|
55
|
-
"@elice/material-shared-
|
|
54
|
+
"@elice/intl": "0.240425.0-alpha.9",
|
|
55
|
+
"@elice/material-shared-types": "1.240508.0-globalization.1",
|
|
56
|
+
"@elice/material-shared-utils": "1.240508.0-globalization.1",
|
|
56
57
|
"@elice/mui-elements": "^5.231130.0",
|
|
57
58
|
"@elice/mui-system": "^5.230815.0",
|
|
58
59
|
"@elice/mui-x-snackbar": "^5.231130.0",
|
|
59
60
|
"@elice/openapi-client-material-runbox": "1.240328.0",
|
|
60
|
-
"@elice/runbox-client": "1.
|
|
61
|
+
"@elice/runbox-client": "1.240508.0-globalization.0",
|
|
61
62
|
"@elice/types": "^1.240129.0",
|
|
62
63
|
"@emotion/react": "^11.10.5",
|
|
63
64
|
"@emotion/styled": "^11.10.5",
|
|
@@ -71,8 +72,7 @@
|
|
|
71
72
|
"@types/react": "~17.0.9",
|
|
72
73
|
"@types/react-transition-group": "^4.4.4",
|
|
73
74
|
"react": "^17.0.2",
|
|
74
|
-
"react-intl": "^5.20.10",
|
|
75
75
|
"react-use": "^17.2.4"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
|
|
78
78
|
}
|