@elice/material-runbox 1.250306.0-runboxtutoring.1 → 1.250306.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-runbox/MaterialRunboxContent.d.ts +0 -4
- package/cjs/components/material-runbox/MaterialRunboxContent.js +4 -14
- package/cjs/components/material-runbox/MaterialRunboxHeader.js +2 -6
- package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.d.ts +1 -1
- package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.js +1 -10
- package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.d.ts +1 -1
- package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +1 -3
- package/cjs/components/material-runbox/hooks/useRunboxControl.d.ts +1 -1
- package/cjs/components/material-runbox/hooks/useRunboxControl.js +2 -5
- package/cjs/components/material-runbox/locales/en.json.js +1 -1
- package/cjs/components/material-runbox/locales/ja.json.js +1 -1
- package/cjs/components/material-runbox/locales/ko.json.js +1 -1
- package/cjs/components/material-runbox/locales/th.json.js +1 -1
- package/cjs/components/material-runbox/runtime/Runtime.d.ts +0 -4
- package/cjs/components/material-runbox/runtime/Runtime.js +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.d.ts +0 -4
- package/es/components/material-runbox/MaterialRunboxContent.js +4 -14
- package/es/components/material-runbox/MaterialRunboxHeader.js +2 -6
- package/es/components/material-runbox/actions/MaterialRunboxActionMenu.d.ts +1 -1
- package/es/components/material-runbox/actions/MaterialRunboxActionMenu.js +1 -10
- package/es/components/material-runbox/actions/MaterialRunboxActionRestart.d.ts +1 -1
- package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +1 -3
- package/es/components/material-runbox/hooks/useRunboxControl.d.ts +1 -1
- package/es/components/material-runbox/hooks/useRunboxControl.js +2 -5
- package/es/components/material-runbox/locales/en.json.js +1 -1
- package/es/components/material-runbox/locales/ja.json.js +1 -1
- package/es/components/material-runbox/locales/ko.json.js +1 -1
- package/es/components/material-runbox/locales/th.json.js +1 -1
- package/es/components/material-runbox/runtime/Runtime.d.ts +0 -4
- package/es/components/material-runbox/runtime/Runtime.js +1 -1
- package/package.json +4 -5
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLog.d.ts +0 -7
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +0 -67
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.d.ts +0 -9
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +0 -192
- package/cjs/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.d.ts +0 -13
- package/cjs/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.js +0 -59
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLog.d.ts +0 -7
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +0 -59
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.d.ts +0 -9
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +0 -183
- package/es/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.d.ts +0 -13
- package/es/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.js +0 -57
|
@@ -6,10 +6,6 @@ export interface MaterialRunboxContentProps {
|
|
|
6
6
|
courseId: number;
|
|
7
7
|
/** */
|
|
8
8
|
enabledLxpPlan?: boolean;
|
|
9
|
-
/** User ID for tutoring. */
|
|
10
|
-
userId: number;
|
|
11
|
-
/** Whether tutoring is enabled. */
|
|
12
|
-
isTutoring: boolean;
|
|
13
9
|
}
|
|
14
10
|
declare const MaterialRunboxContent: React.FC<MaterialRunboxContentProps>;
|
|
15
11
|
export default MaterialRunboxContent;
|
|
@@ -32,10 +32,7 @@ var StyledRunboxContainer = material.styled('div')(_templateObject || (_template
|
|
|
32
32
|
var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
33
33
|
var runboxId = _ref.runboxId,
|
|
34
34
|
courseId = _ref.courseId,
|
|
35
|
-
enabledLxpPlan = _ref.enabledLxpPlan
|
|
36
|
-
userId = _ref.userId,
|
|
37
|
-
_ref$isTutoring = _ref.isTutoring,
|
|
38
|
-
isTutoring = _ref$isTutoring === void 0 ? false : _ref$isTutoring;
|
|
35
|
+
enabledLxpPlan = _ref.enabledLxpPlan;
|
|
39
36
|
var intl$1 = intl.useRawEliceIntl();
|
|
40
37
|
var _useMaterialRunboxCon = MaterialRunboxContext.useMaterialRunboxContext(),
|
|
41
38
|
showMessenger = _useMaterialRunboxCon.showMessenger;
|
|
@@ -63,8 +60,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
63
60
|
filterRuntimeTemplateId: runbox.runtimeTemplateId,
|
|
64
61
|
skip: 0,
|
|
65
62
|
count: 1,
|
|
66
|
-
eliceCourseId: courseId
|
|
67
|
-
userId: userId
|
|
63
|
+
eliceCourseId: courseId
|
|
68
64
|
}, {
|
|
69
65
|
signal: signal
|
|
70
66
|
}).then(function (runtimes) {
|
|
@@ -168,8 +164,6 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
168
164
|
runtime: runtime,
|
|
169
165
|
runtimeTemplate: runtimeTemplate,
|
|
170
166
|
courseId: courseId,
|
|
171
|
-
userId: userId,
|
|
172
|
-
isTutoring: isTutoring,
|
|
173
167
|
refetch: refetch
|
|
174
168
|
};
|
|
175
169
|
return jsxRuntime.jsx(MaterialRunboxCommandContext.default, {
|
|
@@ -182,10 +176,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
182
176
|
signal = _ref3.signal;
|
|
183
177
|
return materialRunboxApi.runbox.runboxRunboxIdHeartbeatPost({
|
|
184
178
|
runboxId: id,
|
|
185
|
-
eliceCourseId: courseId
|
|
186
|
-
runboxHeartbeatPostRequest: {
|
|
187
|
-
userId: userId
|
|
188
|
-
}
|
|
179
|
+
eliceCourseId: courseId
|
|
189
180
|
}, {
|
|
190
181
|
signal: signal
|
|
191
182
|
});
|
|
@@ -195,8 +186,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
195
186
|
signal = _ref4.signal;
|
|
196
187
|
return materialRunboxApi.runbox.runboxRunboxIdQuotaGet({
|
|
197
188
|
runboxId: id,
|
|
198
|
-
eliceCourseId: courseId
|
|
199
|
-
userId: userId
|
|
189
|
+
eliceCourseId: courseId
|
|
200
190
|
}, {
|
|
201
191
|
signal: signal
|
|
202
192
|
});
|
|
@@ -43,8 +43,6 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
43
43
|
runtime = _ref3.runtime,
|
|
44
44
|
runtimeTemplate = _ref3.runtimeTemplate,
|
|
45
45
|
courseId = _ref3.courseId,
|
|
46
|
-
userId = _ref3.userId,
|
|
47
|
-
isTutoring = _ref3.isTutoring,
|
|
48
46
|
refetch = _ref3.refetch;
|
|
49
47
|
var intl$1 = intl.useRawEliceIntl();
|
|
50
48
|
var _useMaterialRunboxCon = MaterialRunboxContext.useMaterialRunboxContext(),
|
|
@@ -113,7 +111,7 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
113
111
|
*
|
|
114
112
|
*/
|
|
115
113
|
var renderHeaderActionAutoShutdown = function renderHeaderActionAutoShutdown() {
|
|
116
|
-
if (!enableAutoShutdownToggle
|
|
114
|
+
if (!enableAutoShutdownToggle) {
|
|
117
115
|
return null;
|
|
118
116
|
}
|
|
119
117
|
return jsxRuntime.jsx(MaterialRunboxActionAutoShutdown.default, {
|
|
@@ -127,7 +125,7 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
127
125
|
*
|
|
128
126
|
*/
|
|
129
127
|
var renderHeaderActionGrade = function renderHeaderActionGrade() {
|
|
130
|
-
if (!runbox.submission.enabled
|
|
128
|
+
if (!runbox.submission.enabled) {
|
|
131
129
|
return null;
|
|
132
130
|
}
|
|
133
131
|
return jsxRuntime.jsx(MaterialRunboxActionGrade.default, {
|
|
@@ -156,8 +154,6 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
156
154
|
runbox: runbox,
|
|
157
155
|
runtime: runtime,
|
|
158
156
|
courseId: courseId,
|
|
159
|
-
userId: userId,
|
|
160
|
-
isTutoring: isTutoring,
|
|
161
157
|
menuAnchorEl: menuAnchorEl,
|
|
162
158
|
refetch: refetch,
|
|
163
159
|
handleMenuClose: handleMenuClose
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RuntimeProps } from '../runtime/Runtime';
|
|
3
|
-
type MaterialRunboxActionMenuProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'
|
|
3
|
+
type MaterialRunboxActionMenuProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'> & {
|
|
4
4
|
menuAnchorEl: null | HTMLButtonElement;
|
|
5
5
|
handleMenuClose: () => void;
|
|
6
6
|
};
|
|
@@ -9,7 +9,6 @@ var material = require('@mui/material');
|
|
|
9
9
|
var MaterialRunboxActionReset = require('./MaterialRunboxActionReset.js');
|
|
10
10
|
var MaterialRunboxActionRestart = require('./MaterialRunboxActionRestart.js');
|
|
11
11
|
var MaterialRunboxActionShare = require('./MaterialRunboxActionShare.js');
|
|
12
|
-
var MaterialRunboxActionSubmitLog = require('./MaterialRunboxActionSubmitLog.js');
|
|
13
12
|
|
|
14
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
14
|
|
|
@@ -22,8 +21,6 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
|
|
|
22
21
|
var runbox = _ref.runbox,
|
|
23
22
|
runtime = _ref.runtime,
|
|
24
23
|
courseId = _ref.courseId,
|
|
25
|
-
userId = _ref.userId,
|
|
26
|
-
isTutoring = _ref.isTutoring,
|
|
27
24
|
menuAnchorEl = _ref.menuAnchorEl,
|
|
28
25
|
refetch = _ref.refetch,
|
|
29
26
|
handleMenuClose = _ref.handleMenuClose;
|
|
@@ -59,15 +56,9 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
|
|
|
59
56
|
runbox: runbox,
|
|
60
57
|
runtime: runtime,
|
|
61
58
|
courseId: courseId,
|
|
62
|
-
userId: userId,
|
|
63
59
|
refetch: refetch,
|
|
64
60
|
handleMenuClose: handleMenuClose
|
|
65
|
-
}),
|
|
66
|
-
runboxId: runbox === null || runbox === void 0 ? void 0 : runbox.id,
|
|
67
|
-
userId: userId,
|
|
68
|
-
eliceCourseId: courseId,
|
|
69
|
-
handleMenuClose: handleMenuClose
|
|
70
|
-
}) : jsxRuntime.jsx(MaterialRunboxActionReset.default, {
|
|
61
|
+
}), jsxRuntime.jsx(MaterialRunboxActionReset.default, {
|
|
71
62
|
runtime: runtime,
|
|
72
63
|
courseId: courseId,
|
|
73
64
|
handleMenuClose: handleMenuClose
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RuntimeProps } from '../runtime/Runtime';
|
|
3
|
-
type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'
|
|
3
|
+
type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'> & {
|
|
4
4
|
handleMenuClose: () => void;
|
|
5
5
|
};
|
|
6
6
|
declare const MaterialRunboxActionRestart: React.FC<MaterialRunboxActionRestartProps>;
|
|
@@ -23,7 +23,6 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
|
|
|
23
23
|
var runbox = _ref.runbox,
|
|
24
24
|
courseId = _ref.courseId,
|
|
25
25
|
refetch = _ref.refetch,
|
|
26
|
-
userId = _ref.userId,
|
|
27
26
|
handleMenuClose = _ref.handleMenuClose;
|
|
28
27
|
var intl$1 = intl.useRawEliceIntl();
|
|
29
28
|
var _React$useState = React__default.default.useState(false),
|
|
@@ -38,8 +37,7 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
|
|
|
38
37
|
var _useRunboxControl = useRunboxControl.useRunboxControl({
|
|
39
38
|
runbox: runbox,
|
|
40
39
|
courseId: courseId,
|
|
41
|
-
refetch: refetch
|
|
42
|
-
userId: userId
|
|
40
|
+
refetch: refetch
|
|
43
41
|
}),
|
|
44
42
|
start = _useRunboxControl.start;
|
|
45
43
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RuntimeProps } from '../runtime/Runtime';
|
|
2
|
-
type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'
|
|
2
|
+
type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
|
|
3
3
|
interface UseRunboxControlReturn {
|
|
4
4
|
start: (force?: boolean) => Promise<void>;
|
|
5
5
|
stop: () => Promise<void>;
|
|
@@ -37,10 +37,7 @@ var useRunboxControl = function useRunboxControl(props) {
|
|
|
37
37
|
return _context.abrupt("return", runboxStart(function (signal) {
|
|
38
38
|
return materialRunboxApi.runbox.runboxRunboxIdStartPost({
|
|
39
39
|
runboxId: props.runbox.id,
|
|
40
|
-
eliceCourseId: props.courseId
|
|
41
|
-
runboxStartRequest: {
|
|
42
|
-
userId: props.userId
|
|
43
|
-
}
|
|
40
|
+
eliceCourseId: props.courseId
|
|
44
41
|
}, {
|
|
45
42
|
signal: signal
|
|
46
43
|
});
|
|
@@ -62,7 +59,7 @@ var useRunboxControl = function useRunboxControl(props) {
|
|
|
62
59
|
}, _callee);
|
|
63
60
|
})),
|
|
64
61
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
|
-
[props.runbox.id, props.courseId,
|
|
62
|
+
[props.runbox.id, props.courseId, runboxStart]);
|
|
66
63
|
/**
|
|
67
64
|
* Stop project.
|
|
68
65
|
*/
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var messageEn = {"runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip.disabled":"This runtime automatically shuts down after {time}, which is set as the per-session usage time.","runbox.action.autoShutdown.tooltip.enabled":"If set to always on, the runtime will not shut down even if you leave the learning {_termLibraryLecturePage}. However, it will automatically shut down after {time}, which is set as the session-specific usage time of the runtime.","runbox.action.grade.dialog.description.error":"An error occurred while grading the code.","runbox.action.grade.dialog.description.success":"Grading completed successfully.","runbox.action.grade.dialog.title":"Grading result","runbox.action.grade.noti.error":"An error occurred while grading the code.","runbox.action.grade.title":"Submit","runbox.action.grade.tooltip.onProgress":"Grading is in progress. Please wait for a moment. Depending on the {_termLibraryLecturePage}, grading may take up to 3 minutes.","runbox.action.reset.dialog.actions.confirm":"Reset","runbox.action.reset.dialog.description":"Are you sure you want to reset the runbox code? Your codes will be overwritten to default code of {_termLibraryLecturePage}.\nAfter reset, the runbox session will be refreshed.","runbox.action.reset.noti.error":"An error occurred while initializing the runbox code.","runbox.action.reset.title":"Reset code","runbox.action.restart.dialog.actions.confirm":"Restart","runbox.action.restart.dialog.description":"Are you sure you want to restart the runbox?","runbox.action.restart.title":"Restart runbox","runbox.action.share.snackbar.copied.fail":"Copying the runbox URL failed, please try again","runbox.action.share.snackbar.copied.success":"The runbox URL was copied successfully.","runbox.action.share.title":"Share runbox URL","runbox.action.submitCountInfo.dialog.description":"You have exceeded the submission count limit","runbox.action.submitCountInfo.dialog.title":"Limit the number of submissions","runbox.action.submitCountInfo.tooltip.disabled":"The submission count has been used up","runbox.
|
|
5
|
+
var messageEn = {"runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip.disabled":"This runtime automatically shuts down after {time}, which is set as the per-session usage time.","runbox.action.autoShutdown.tooltip.enabled":"If set to always on, the runtime will not shut down even if you leave the learning {_termLibraryLecturePage}. However, it will automatically shut down after {time}, which is set as the session-specific usage time of the runtime.","runbox.action.grade.dialog.description.error":"An error occurred while grading the code.","runbox.action.grade.dialog.description.success":"Grading completed successfully.","runbox.action.grade.dialog.title":"Grading result","runbox.action.grade.noti.error":"An error occurred while grading the code.","runbox.action.grade.title":"Submit","runbox.action.grade.tooltip.onProgress":"Grading is in progress. Please wait for a moment. Depending on the {_termLibraryLecturePage}, grading may take up to 3 minutes.","runbox.action.reset.dialog.actions.confirm":"Reset","runbox.action.reset.dialog.description":"Are you sure you want to reset the runbox code? Your codes will be overwritten to default code of {_termLibraryLecturePage}.\nAfter reset, the runbox session will be refreshed.","runbox.action.reset.noti.error":"An error occurred while initializing the runbox code.","runbox.action.reset.title":"Reset code","runbox.action.restart.dialog.actions.confirm":"Restart","runbox.action.restart.dialog.description":"Are you sure you want to restart the runbox?","runbox.action.restart.title":"Restart runbox","runbox.action.share.snackbar.copied.fail":"Copying the runbox URL failed, please try again","runbox.action.share.snackbar.copied.success":"The runbox URL was copied successfully.","runbox.action.share.title":"Share runbox URL","runbox.action.submitCountInfo.dialog.description":"You have exceeded the submission count limit","runbox.action.submitCountInfo.dialog.title":"Limit the number of submissions","runbox.action.submitCountInfo.tooltip.disabled":"The submission count has been used up","runbox.common.close":"Close","runbox.common.retry":"Retry","runbox.common.support":"Support","runbox.context.command.ping.error":"An error occurred while processing task.","runbox.header.submitInfo":"{isIndividual, select, true {} other {Team}} submission count | {remainCount}/{totalCount} times left {isDailyLimitEnabled, select, true {today} other {}}","runbox.runtime.message.lxp_plan_required":"Your institution currently does not support Runbox course materials.\nPlease contact your institution administrator for more details.","runbox.runtime.message.runbox_unavailable":"Runbox Unavailable","runbox.runtime.message.startError":"There was an error starting the runbox.","runbox.runtime.overlay.assigned.description_timeout":"(3 of 3)\nRunning the runbox is taking longer than we expected.\nPlease wait a little longer without refreshing!","runbox.runtime.overlay.assigned.description":"(3 of 3)\nRunbox is running.\nPlease wait!","runbox.runtime.overlay.queued.description_zero":"(2 of 3)\nRunbox will run soon","runbox.runtime.overlay.queued.description":"(2 of 3)\nCurrently queued {waiters} times...","runbox.runtime.overlay.terminated.description.default":"The runtime terminated due to an unexpected problem.\nClick the button below to reconnect to the runbox.","runbox.runtime.overlay.terminated.description.general":"The runtime connected to the runbox has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"Runtime has ended because the disk is full.\nIf you have recently deleted a runbox, it may take some time to reflect.","runbox.runtime.overlay.terminated.description.quota_exceeded":"The runtime has ended because the runtime has expired.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"Runbox has been running for 24 hours and the runtime has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.unexpected":"If the problem persists, please contact customer service.","runbox.runtime.overlay.terminated.restart":"Reconnect","runbox.runtime.overlay.terminated.title":"Runtime disconnected"};
|
|
6
6
|
|
|
7
7
|
exports.default = messageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ja = {"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":"採点中です。しばらくお待ちください。{_termLibraryLecturePage}によって、採点には最大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.snackbar.copied.fail":"ランボックスのURLをコピーすることに失敗しました。もう一度お試しください。","runbox.action.share.snackbar.copied.success":"ランボックスのURLが正常にコピーされました。","runbox.action.share.title":"ランボックスのURLを共有してください。","runbox.action.submitCountInfo.dialog.description":"提出回数の制限を超えています","runbox.action.submitCountInfo.dialog.title":"投稿の数を制限してください。","runbox.action.submitCountInfo.tooltip.disabled":"提出回数が使い果たされました。","runbox.
|
|
5
|
+
var ja = {"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":"採点中です。しばらくお待ちください。{_termLibraryLecturePage}によって、採点には最大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.snackbar.copied.fail":"ランボックスのURLをコピーすることに失敗しました。もう一度お試しください。","runbox.action.share.snackbar.copied.success":"ランボックスのURLが正常にコピーされました。","runbox.action.share.title":"ランボックスのURLを共有してください。","runbox.action.submitCountInfo.dialog.description":"提出回数の制限を超えています","runbox.action.submitCountInfo.dialog.title":"投稿の数を制限してください。","runbox.action.submitCountInfo.tooltip.disabled":"提出回数が使い果たされました。","runbox.common.close":"閉じる","runbox.common.retry":"リトライ","runbox.common.support":"サポート","runbox.context.command.ping.error":"タスクの処理中にエラーが発生しました。","runbox.header.submitInfo":"{isIndividual, select, true {個人} other {チーム}}の提出回数 | {remainCount}/{totalCount} 回残っています {isDailyLimitEnabled, select, true {今日} other {}}","runbox.runtime.message.lxp_plan_required":"現在、所属機関ではRunboxの学習資料を利用できません。\n詳細については機関の管理者にお問い合わせください。","runbox.runtime.message.runbox_unavailable":"Runboxは利用できません","runbox.runtime.message.startError":"ランボックスの起動中にエラーが発生しました。","runbox.runtime.overlay.assigned.description_timeout":"ランボックスを実行する時間が私たちの予想よりも長くかかっています。\n更新せずにもう少し待ってください!","runbox.runtime.overlay.assigned.description":"Runbox が実行中です。\nお待ちください!","runbox.runtime.overlay.queued.description_zero":"Runboxはもうすぐ実行されます。","runbox.runtime.overlay.queued.description":"現在{waiters}回待機中...","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":"ランタイムが切断されました。"};
|
|
6
6
|
|
|
7
7
|
exports.default = ja;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
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.snackbar.copied.fail":"런박스 URL을 복사에 실패했습니다. 다시 시도해주세요.","runbox.action.share.snackbar.copied.success":"런박스 URL을 복사하였습니다.","runbox.action.share.title":"런박스 URL 복사","runbox.action.submitCountInfo.dialog.description":"제출 횟수 제한을 초과했습니다.","runbox.action.submitCountInfo.dialog.title":"제출 횟수 제한","runbox.action.submitCountInfo.tooltip.disabled":"제출 횟수를 모두 사용했습니다.","runbox.
|
|
5
|
+
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.snackbar.copied.fail":"런박스 URL을 복사에 실패했습니다. 다시 시도해주세요.","runbox.action.share.snackbar.copied.success":"런박스 URL을 복사하였습니다.","runbox.action.share.title":"런박스 URL 복사","runbox.action.submitCountInfo.dialog.description":"제출 횟수 제한을 초과했습니다.","runbox.action.submitCountInfo.dialog.title":"제출 횟수 제한","runbox.action.submitCountInfo.tooltip.disabled":"제출 횟수를 모두 사용했습니다.","runbox.common.close":"닫기","runbox.common.retry":"재시도","runbox.common.support":"고객센터","runbox.context.command.ping.error":"런박스 작업을 수행하는 도중 오류가 발생했습니다.","runbox.header.submitInfo":"{isIndividual, select, true {} other {팀}} 제출 횟수 | {isDailyLimitEnabled, select, true {오늘} other {}} {remainCount}/{totalCount}회 남음","runbox.runtime.message.lxp_plan_required":"현재 기관에서는 런박스 수업 자료를 학습할 수 없습니다.\n자세한 사항은 기관 관리자에게 문의하세요.","runbox.runtime.message.runbox_unavailable":"런박스 사용 불가","runbox.runtime.message.startError":"런박스를 시작하는 중에 오류가 발생했습니다.","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\n런박스를 실행하는데\n예상보다 시간이 소요되고 있습니다.\n새로고침하지 말고 조금만 더 기다려주세요!","runbox.runtime.overlay.assigned.description":"(3 / 3)\n런박스가 실행 중입니다.\n잠시만 기다려주세요!","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\n곧 런박스가 실행됩니다","runbox.runtime.overlay.queued.description":"(2 / 3)\n현재 {waiters}번째 대기 중입니다...","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":"런타임 연결 해제됨"};
|
|
6
6
|
|
|
7
7
|
exports.default = messageKo;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var th = {"runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip.disabled":"Runbox นี้จะปิดโดยอัตโนมัติหลังจากใช้งาน {time} นาทีต่อเซสชัน","runbox.action.autoShutdown.tooltip.enabled":"หากตั้งค่าให้เปิดตลอดเวลา Runbox จะไม่ปิดแม้ว่าคุณจะออกจากหน้าเรียน {_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":"ต้องการรีเซ็ตโค้ด Runbox หรือไม่? การรีเซ็ตจะแทนที่โค้ดของคุณด้วยโค้ดเริ่มต้นของหน้าเรียน {_termLibraryLecturePage} \nเซสชัน Runbox จะรีเฟรชหลังจากรีเซ็ต","runbox.action.reset.noti.error":"เกิดข้อผิดพลาดระหว่างการรีเซ็ตโค้ด Runbox","runbox.action.reset.title":"รีเซ็ตโค้ด","runbox.action.restart.dialog.actions.confirm":"เริ่มต้นใหม่","runbox.action.restart.dialog.description":"ต้องการเริ่มต้น Runbox ใหม่หรือไม่?","runbox.action.restart.title":"เริ่มต้น Runbox ใหม่","runbox.action.share.snackbar.copied.fail":"ล้มเหลวในการคัดลอก URL Runbox กรุณาลองอีกครั้ง","runbox.action.share.snackbar.copied.success":"คัดลอก URL Runbox สำเร็จ","runbox.action.share.title":"คัดลอก URL Runbox","runbox.action.submitCountInfo.dialog.description":"คุณใช้จำนวนครั้งในการส่งเกินขีดจำกัดแล้ว","runbox.action.submitCountInfo.dialog.title":"ข้อจำกัดจำนวนครั้งในการส่ง","runbox.action.submitCountInfo.tooltip.disabled":"คุณใช้จำนวนครั้งในการส่งทั้งหมดแล้ว","runbox.
|
|
5
|
+
var th = {"runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip.disabled":"Runbox นี้จะปิดโดยอัตโนมัติหลังจากใช้งาน {time} นาทีต่อเซสชัน","runbox.action.autoShutdown.tooltip.enabled":"หากตั้งค่าให้เปิดตลอดเวลา Runbox จะไม่ปิดแม้ว่าคุณจะออกจากหน้าเรียน {_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":"ต้องการรีเซ็ตโค้ด Runbox หรือไม่? การรีเซ็ตจะแทนที่โค้ดของคุณด้วยโค้ดเริ่มต้นของหน้าเรียน {_termLibraryLecturePage} \nเซสชัน Runbox จะรีเฟรชหลังจากรีเซ็ต","runbox.action.reset.noti.error":"เกิดข้อผิดพลาดระหว่างการรีเซ็ตโค้ด Runbox","runbox.action.reset.title":"รีเซ็ตโค้ด","runbox.action.restart.dialog.actions.confirm":"เริ่มต้นใหม่","runbox.action.restart.dialog.description":"ต้องการเริ่มต้น Runbox ใหม่หรือไม่?","runbox.action.restart.title":"เริ่มต้น Runbox ใหม่","runbox.action.share.snackbar.copied.fail":"ล้มเหลวในการคัดลอก URL Runbox กรุณาลองอีกครั้ง","runbox.action.share.snackbar.copied.success":"คัดลอก URL Runbox สำเร็จ","runbox.action.share.title":"คัดลอก URL Runbox","runbox.action.submitCountInfo.dialog.description":"คุณใช้จำนวนครั้งในการส่งเกินขีดจำกัดแล้ว","runbox.action.submitCountInfo.dialog.title":"ข้อจำกัดจำนวนครั้งในการส่ง","runbox.action.submitCountInfo.tooltip.disabled":"คุณใช้จำนวนครั้งในการส่งทั้งหมดแล้ว","runbox.common.close":"ปิด","runbox.common.retry":"ลองใหม่","runbox.common.support":"สนับสนุน","runbox.context.command.ping.error":"เกิดข้อผิดพลาดขณะดำเนินการ Runbox","runbox.header.submitInfo":"{isIndividual, select, true {การส่งแบบส่วนตัว} other {การส่งแบบทีม}} | {remainCount}/{totalCount} ครั้งที่เหลือ | {isDailyLimitEnabled, select, true {วันนี้} other {}} ","runbox.runtime.message.lxp_plan_required":"ขณะนี้สถาบันของคุณไม่รองรับการใช้งานสื่อการเรียนการสอน Runbox\nโปรดติดต่อผู้ดูแลระบบของสถาบันของคุณสำหรับข้อมูลเพิ่มเติม","runbox.runtime.message.runbox_unavailable":"ไม่สามารถใช้ Runbox ได้","runbox.runtime.message.startError":"เกิดข้อผิดพลาดขณะเริ่ม Runbox","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\nRunbox ใช้เวลานานกว่าที่คาดไว้ในการทำงาน\nกรุณาอย่ารีเฟรชและรอสักครู่!","runbox.runtime.overlay.assigned.description":"(3 / 3)\nRunbox กำลังทำงานอยู่\nกรุณารอสักครู่!","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\nRunbox ของคุณจะเริ่มทำงานเร็วๆ นี้","runbox.runtime.overlay.queued.description":"(2 / 3)\nกำลังรอคิวอยู่ที่ {waiters}...","runbox.runtime.overlay.terminated.description.default":"Runbox หยุดทำงานเนื่องจากปัญหาที่ไม่คาดคิด\nคลิกปุ่มด้านล่างเพื่อเชื่อมต่อ Runbox ใหม่","runbox.runtime.overlay.terminated.description.general":"Runbox ที่เชื่อมต่อกับคุณหยุดทำงาน\nคลิกปุ่มด้านล่างเพื่อเชื่อมต่อ Runbox ใหม่","runbox.runtime.overlay.terminated.description.os_disk_is_full":"Runbox หยุดทำงานเนื่องจากพื้นที่ดิสก์เต็ม\nหากคุณเพิ่งลบ Runbox อาจใช้เวลาสักครู่กว่าจะสะท้อนผล","runbox.runtime.overlay.terminated.description.quota_exceeded":"Runbox หยุดทำงานเนื่องจากใช้เวลาเกินขีดจำกัด","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"Runbox หยุดทำงานหลังจากใช้งานครบ 24 ชั่วโมง\nคลิกปุ่มด้านล่างเพื่อเชื่อมต่อ Runbox ใหม่","runbox.runtime.overlay.terminated.description.unexpected":"หากปัญหายังคงมีอยู่ โปรดติดต่อฝ่ายสนับสนุน","runbox.runtime.overlay.terminated.restart":"เชื่อมต่อใหม่","runbox.runtime.overlay.terminated.title":"การเชื่อมต่อ Runbox หยุดชะงัก"};
|
|
6
6
|
|
|
7
7
|
exports.default = th;
|
|
@@ -6,10 +6,6 @@ export interface MaterialRunboxContentProps {
|
|
|
6
6
|
courseId: number;
|
|
7
7
|
/** */
|
|
8
8
|
enabledLxpPlan?: boolean;
|
|
9
|
-
/** User ID for tutoring. */
|
|
10
|
-
userId: number;
|
|
11
|
-
/** Whether tutoring is enabled. */
|
|
12
|
-
isTutoring: boolean;
|
|
13
9
|
}
|
|
14
10
|
declare const MaterialRunboxContent: React.FC<MaterialRunboxContentProps>;
|
|
15
11
|
export default MaterialRunboxContent;
|
|
@@ -28,10 +28,7 @@ var StyledRunboxContainer = styled('div')(_templateObject || (_templateObject =
|
|
|
28
28
|
var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
29
29
|
var runboxId = _ref.runboxId,
|
|
30
30
|
courseId = _ref.courseId,
|
|
31
|
-
enabledLxpPlan = _ref.enabledLxpPlan
|
|
32
|
-
userId = _ref.userId,
|
|
33
|
-
_ref$isTutoring = _ref.isTutoring,
|
|
34
|
-
isTutoring = _ref$isTutoring === void 0 ? false : _ref$isTutoring;
|
|
31
|
+
enabledLxpPlan = _ref.enabledLxpPlan;
|
|
35
32
|
var intl = useRawEliceIntl();
|
|
36
33
|
var _useMaterialRunboxCon = useMaterialRunboxContext(),
|
|
37
34
|
showMessenger = _useMaterialRunboxCon.showMessenger;
|
|
@@ -59,8 +56,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
59
56
|
filterRuntimeTemplateId: runbox.runtimeTemplateId,
|
|
60
57
|
skip: 0,
|
|
61
58
|
count: 1,
|
|
62
|
-
eliceCourseId: courseId
|
|
63
|
-
userId: userId
|
|
59
|
+
eliceCourseId: courseId
|
|
64
60
|
}, {
|
|
65
61
|
signal: signal
|
|
66
62
|
}).then(function (runtimes) {
|
|
@@ -164,8 +160,6 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
164
160
|
runtime: runtime,
|
|
165
161
|
runtimeTemplate: runtimeTemplate,
|
|
166
162
|
courseId: courseId,
|
|
167
|
-
userId: userId,
|
|
168
|
-
isTutoring: isTutoring,
|
|
169
163
|
refetch: refetch
|
|
170
164
|
};
|
|
171
165
|
return jsx(MaterialRunboxCommandContextProvider, {
|
|
@@ -178,10 +172,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
178
172
|
signal = _ref3.signal;
|
|
179
173
|
return materialRunboxApi.runbox.runboxRunboxIdHeartbeatPost({
|
|
180
174
|
runboxId: id,
|
|
181
|
-
eliceCourseId: courseId
|
|
182
|
-
runboxHeartbeatPostRequest: {
|
|
183
|
-
userId: userId
|
|
184
|
-
}
|
|
175
|
+
eliceCourseId: courseId
|
|
185
176
|
}, {
|
|
186
177
|
signal: signal
|
|
187
178
|
});
|
|
@@ -191,8 +182,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
191
182
|
signal = _ref4.signal;
|
|
192
183
|
return materialRunboxApi.runbox.runboxRunboxIdQuotaGet({
|
|
193
184
|
runboxId: id,
|
|
194
|
-
eliceCourseId: courseId
|
|
195
|
-
userId: userId
|
|
185
|
+
eliceCourseId: courseId
|
|
196
186
|
}, {
|
|
197
187
|
signal: signal
|
|
198
188
|
});
|
|
@@ -34,8 +34,6 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
34
34
|
runtime = _ref3.runtime,
|
|
35
35
|
runtimeTemplate = _ref3.runtimeTemplate,
|
|
36
36
|
courseId = _ref3.courseId,
|
|
37
|
-
userId = _ref3.userId,
|
|
38
|
-
isTutoring = _ref3.isTutoring,
|
|
39
37
|
refetch = _ref3.refetch;
|
|
40
38
|
var intl = useRawEliceIntl();
|
|
41
39
|
var _useMaterialRunboxCon = useMaterialRunboxContext(),
|
|
@@ -104,7 +102,7 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
104
102
|
*
|
|
105
103
|
*/
|
|
106
104
|
var renderHeaderActionAutoShutdown = function renderHeaderActionAutoShutdown() {
|
|
107
|
-
if (!enableAutoShutdownToggle
|
|
105
|
+
if (!enableAutoShutdownToggle) {
|
|
108
106
|
return null;
|
|
109
107
|
}
|
|
110
108
|
return jsx(MaterialRunboxActionAutoShutdown, {
|
|
@@ -118,7 +116,7 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
118
116
|
*
|
|
119
117
|
*/
|
|
120
118
|
var renderHeaderActionGrade = function renderHeaderActionGrade() {
|
|
121
|
-
if (!runbox.submission.enabled
|
|
119
|
+
if (!runbox.submission.enabled) {
|
|
122
120
|
return null;
|
|
123
121
|
}
|
|
124
122
|
return jsx(MaterialRunboxActionGrade, {
|
|
@@ -147,8 +145,6 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
147
145
|
runbox: runbox,
|
|
148
146
|
runtime: runtime,
|
|
149
147
|
courseId: courseId,
|
|
150
|
-
userId: userId,
|
|
151
|
-
isTutoring: isTutoring,
|
|
152
148
|
menuAnchorEl: menuAnchorEl,
|
|
153
149
|
refetch: refetch,
|
|
154
150
|
handleMenuClose: handleMenuClose
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RuntimeProps } from '../runtime/Runtime';
|
|
3
|
-
type MaterialRunboxActionMenuProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'
|
|
3
|
+
type MaterialRunboxActionMenuProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'> & {
|
|
4
4
|
menuAnchorEl: null | HTMLButtonElement;
|
|
5
5
|
handleMenuClose: () => void;
|
|
6
6
|
};
|
|
@@ -5,7 +5,6 @@ import { Menu } from '@mui/material';
|
|
|
5
5
|
import MaterialRunboxActionReset from './MaterialRunboxActionReset.js';
|
|
6
6
|
import MaterialRunboxActionRestart from './MaterialRunboxActionRestart.js';
|
|
7
7
|
import MaterialRunboxActionShare from './MaterialRunboxActionShare.js';
|
|
8
|
-
import MaterialRunboxActionSubmitLog from './MaterialRunboxActionSubmitLog.js';
|
|
9
8
|
|
|
10
9
|
//
|
|
11
10
|
//
|
|
@@ -14,8 +13,6 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
|
|
|
14
13
|
var runbox = _ref.runbox,
|
|
15
14
|
runtime = _ref.runtime,
|
|
16
15
|
courseId = _ref.courseId,
|
|
17
|
-
userId = _ref.userId,
|
|
18
|
-
isTutoring = _ref.isTutoring,
|
|
19
16
|
menuAnchorEl = _ref.menuAnchorEl,
|
|
20
17
|
refetch = _ref.refetch,
|
|
21
18
|
handleMenuClose = _ref.handleMenuClose;
|
|
@@ -51,15 +48,9 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
|
|
|
51
48
|
runbox: runbox,
|
|
52
49
|
runtime: runtime,
|
|
53
50
|
courseId: courseId,
|
|
54
|
-
userId: userId,
|
|
55
51
|
refetch: refetch,
|
|
56
52
|
handleMenuClose: handleMenuClose
|
|
57
|
-
}),
|
|
58
|
-
runboxId: runbox === null || runbox === void 0 ? void 0 : runbox.id,
|
|
59
|
-
userId: userId,
|
|
60
|
-
eliceCourseId: courseId,
|
|
61
|
-
handleMenuClose: handleMenuClose
|
|
62
|
-
}) : jsx(MaterialRunboxActionReset, {
|
|
53
|
+
}), jsx(MaterialRunboxActionReset, {
|
|
63
54
|
runtime: runtime,
|
|
64
55
|
courseId: courseId,
|
|
65
56
|
handleMenuClose: handleMenuClose
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RuntimeProps } from '../runtime/Runtime';
|
|
3
|
-
type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'
|
|
3
|
+
type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'runtime' | 'courseId' | 'refetch'> & {
|
|
4
4
|
handleMenuClose: () => void;
|
|
5
5
|
};
|
|
6
6
|
declare const MaterialRunboxActionRestart: React.FC<MaterialRunboxActionRestartProps>;
|
|
@@ -15,7 +15,6 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
|
|
|
15
15
|
var runbox = _ref.runbox,
|
|
16
16
|
courseId = _ref.courseId,
|
|
17
17
|
refetch = _ref.refetch,
|
|
18
|
-
userId = _ref.userId,
|
|
19
18
|
handleMenuClose = _ref.handleMenuClose;
|
|
20
19
|
var intl = useRawEliceIntl();
|
|
21
20
|
var _React$useState = React.useState(false),
|
|
@@ -30,8 +29,7 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
|
|
|
30
29
|
var _useRunboxControl = useRunboxControl({
|
|
31
30
|
runbox: runbox,
|
|
32
31
|
courseId: courseId,
|
|
33
|
-
refetch: refetch
|
|
34
|
-
userId: userId
|
|
32
|
+
refetch: refetch
|
|
35
33
|
}),
|
|
36
34
|
start = _useRunboxControl.start;
|
|
37
35
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RuntimeProps } from '../runtime/Runtime';
|
|
2
|
-
type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'
|
|
2
|
+
type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
|
|
3
3
|
interface UseRunboxControlReturn {
|
|
4
4
|
start: (force?: boolean) => Promise<void>;
|
|
5
5
|
stop: () => Promise<void>;
|
|
@@ -35,10 +35,7 @@ var useRunboxControl = function useRunboxControl(props) {
|
|
|
35
35
|
return _context.abrupt("return", runboxStart(function (signal) {
|
|
36
36
|
return materialRunboxApi.runbox.runboxRunboxIdStartPost({
|
|
37
37
|
runboxId: props.runbox.id,
|
|
38
|
-
eliceCourseId: props.courseId
|
|
39
|
-
runboxStartRequest: {
|
|
40
|
-
userId: props.userId
|
|
41
|
-
}
|
|
38
|
+
eliceCourseId: props.courseId
|
|
42
39
|
}, {
|
|
43
40
|
signal: signal
|
|
44
41
|
});
|
|
@@ -60,7 +57,7 @@ var useRunboxControl = function useRunboxControl(props) {
|
|
|
60
57
|
}, _callee);
|
|
61
58
|
})),
|
|
62
59
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
63
|
-
[props.runbox.id, props.courseId,
|
|
60
|
+
[props.runbox.id, props.courseId, runboxStart]);
|
|
64
61
|
/**
|
|
65
62
|
* Stop project.
|
|
66
63
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageEn = {"runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip.disabled":"This runtime automatically shuts down after {time}, which is set as the per-session usage time.","runbox.action.autoShutdown.tooltip.enabled":"If set to always on, the runtime will not shut down even if you leave the learning {_termLibraryLecturePage}. However, it will automatically shut down after {time}, which is set as the session-specific usage time of the runtime.","runbox.action.grade.dialog.description.error":"An error occurred while grading the code.","runbox.action.grade.dialog.description.success":"Grading completed successfully.","runbox.action.grade.dialog.title":"Grading result","runbox.action.grade.noti.error":"An error occurred while grading the code.","runbox.action.grade.title":"Submit","runbox.action.grade.tooltip.onProgress":"Grading is in progress. Please wait for a moment. Depending on the {_termLibraryLecturePage}, grading may take up to 3 minutes.","runbox.action.reset.dialog.actions.confirm":"Reset","runbox.action.reset.dialog.description":"Are you sure you want to reset the runbox code? Your codes will be overwritten to default code of {_termLibraryLecturePage}.\nAfter reset, the runbox session will be refreshed.","runbox.action.reset.noti.error":"An error occurred while initializing the runbox code.","runbox.action.reset.title":"Reset code","runbox.action.restart.dialog.actions.confirm":"Restart","runbox.action.restart.dialog.description":"Are you sure you want to restart the runbox?","runbox.action.restart.title":"Restart runbox","runbox.action.share.snackbar.copied.fail":"Copying the runbox URL failed, please try again","runbox.action.share.snackbar.copied.success":"The runbox URL was copied successfully.","runbox.action.share.title":"Share runbox URL","runbox.action.submitCountInfo.dialog.description":"You have exceeded the submission count limit","runbox.action.submitCountInfo.dialog.title":"Limit the number of submissions","runbox.action.submitCountInfo.tooltip.disabled":"The submission count has been used up","runbox.
|
|
1
|
+
var messageEn = {"runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip.disabled":"This runtime automatically shuts down after {time}, which is set as the per-session usage time.","runbox.action.autoShutdown.tooltip.enabled":"If set to always on, the runtime will not shut down even if you leave the learning {_termLibraryLecturePage}. However, it will automatically shut down after {time}, which is set as the session-specific usage time of the runtime.","runbox.action.grade.dialog.description.error":"An error occurred while grading the code.","runbox.action.grade.dialog.description.success":"Grading completed successfully.","runbox.action.grade.dialog.title":"Grading result","runbox.action.grade.noti.error":"An error occurred while grading the code.","runbox.action.grade.title":"Submit","runbox.action.grade.tooltip.onProgress":"Grading is in progress. Please wait for a moment. Depending on the {_termLibraryLecturePage}, grading may take up to 3 minutes.","runbox.action.reset.dialog.actions.confirm":"Reset","runbox.action.reset.dialog.description":"Are you sure you want to reset the runbox code? Your codes will be overwritten to default code of {_termLibraryLecturePage}.\nAfter reset, the runbox session will be refreshed.","runbox.action.reset.noti.error":"An error occurred while initializing the runbox code.","runbox.action.reset.title":"Reset code","runbox.action.restart.dialog.actions.confirm":"Restart","runbox.action.restart.dialog.description":"Are you sure you want to restart the runbox?","runbox.action.restart.title":"Restart runbox","runbox.action.share.snackbar.copied.fail":"Copying the runbox URL failed, please try again","runbox.action.share.snackbar.copied.success":"The runbox URL was copied successfully.","runbox.action.share.title":"Share runbox URL","runbox.action.submitCountInfo.dialog.description":"You have exceeded the submission count limit","runbox.action.submitCountInfo.dialog.title":"Limit the number of submissions","runbox.action.submitCountInfo.tooltip.disabled":"The submission count has been used up","runbox.common.close":"Close","runbox.common.retry":"Retry","runbox.common.support":"Support","runbox.context.command.ping.error":"An error occurred while processing task.","runbox.header.submitInfo":"{isIndividual, select, true {} other {Team}} submission count | {remainCount}/{totalCount} times left {isDailyLimitEnabled, select, true {today} other {}}","runbox.runtime.message.lxp_plan_required":"Your institution currently does not support Runbox course materials.\nPlease contact your institution administrator for more details.","runbox.runtime.message.runbox_unavailable":"Runbox Unavailable","runbox.runtime.message.startError":"There was an error starting the runbox.","runbox.runtime.overlay.assigned.description_timeout":"(3 of 3)\nRunning the runbox is taking longer than we expected.\nPlease wait a little longer without refreshing!","runbox.runtime.overlay.assigned.description":"(3 of 3)\nRunbox is running.\nPlease wait!","runbox.runtime.overlay.queued.description_zero":"(2 of 3)\nRunbox will run soon","runbox.runtime.overlay.queued.description":"(2 of 3)\nCurrently queued {waiters} times...","runbox.runtime.overlay.terminated.description.default":"The runtime terminated due to an unexpected problem.\nClick the button below to reconnect to the runbox.","runbox.runtime.overlay.terminated.description.general":"The runtime connected to the runbox has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"Runtime has ended because the disk is full.\nIf you have recently deleted a runbox, it may take some time to reflect.","runbox.runtime.overlay.terminated.description.quota_exceeded":"The runtime has ended because the runtime has expired.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"Runbox has been running for 24 hours and the runtime has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.unexpected":"If the problem persists, please contact customer service.","runbox.runtime.overlay.terminated.restart":"Reconnect","runbox.runtime.overlay.terminated.title":"Runtime disconnected"};
|
|
2
2
|
|
|
3
3
|
export { messageEn as default };
|