@elice/material-runbox 1.250930.0 → 1.251120.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 +2 -1
- package/cjs/components/material-runbox/MaterialRunboxContent.js +11 -1
- package/cjs/components/material-runbox/MaterialRunboxHeader.d.ts +3 -4
- package/cjs/components/material-runbox/MaterialRunboxHeader.js +5 -4
- package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +3 -0
- 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 +9 -7
- package/cjs/components/material-runbox/timer/MaterialRunboxTimer.d.ts +6 -1
- package/cjs/components/material-runbox/timer/MaterialRunboxTimer.js +6 -1
- package/cjs/components/material-runbox/timer/index.d.ts +1 -1
- package/cjs/components/material-runbox/timer/index.js +0 -2
- package/es/components/material-runbox/MaterialRunboxContent.d.ts +2 -1
- package/es/components/material-runbox/MaterialRunboxContent.js +11 -1
- package/es/components/material-runbox/MaterialRunboxHeader.d.ts +3 -4
- package/es/components/material-runbox/MaterialRunboxHeader.js +5 -4
- package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +3 -0
- 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 +9 -7
- package/es/components/material-runbox/timer/MaterialRunboxTimer.d.ts +6 -1
- package/es/components/material-runbox/timer/MaterialRunboxTimer.js +6 -1
- package/es/components/material-runbox/timer/index.d.ts +1 -1
- package/es/components/material-runbox/timer/index.js +0 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TagProps } from '@elice/mui-elements';
|
|
3
|
+
import type { MaterialRunboxHeaderProps } from './MaterialRunboxHeader';
|
|
3
4
|
export type GetAchievementColor = {
|
|
4
5
|
(params: {
|
|
5
6
|
score: number;
|
|
@@ -10,7 +11,7 @@ export type GetAchievementColor = {
|
|
|
10
11
|
variant: 'tag';
|
|
11
12
|
}): TagProps['color'];
|
|
12
13
|
};
|
|
13
|
-
export interface MaterialRunboxContentProps {
|
|
14
|
+
export interface MaterialRunboxContentProps extends Pick<MaterialRunboxHeaderProps, 'hideTimerPopover'> {
|
|
14
15
|
/** Runbox ID. */
|
|
15
16
|
runboxId: string | null;
|
|
16
17
|
/** Course ID. */
|
|
@@ -51,6 +51,8 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
51
51
|
userId = _ref.userId,
|
|
52
52
|
_ref$isTutoring = _ref.isTutoring,
|
|
53
53
|
isTutoring = _ref$isTutoring === void 0 ? false : _ref$isTutoring,
|
|
54
|
+
_ref$hideTimerPopover = _ref.hideTimerPopover,
|
|
55
|
+
hideTimerPopover = _ref$hideTimerPopover === void 0 ? false : _ref$hideTimerPopover,
|
|
54
56
|
getAchievementColor = _ref.getAchievementColor;
|
|
55
57
|
var _a;
|
|
56
58
|
var intl$1 = intl.useRawEliceIntl();
|
|
@@ -281,7 +283,15 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
281
283
|
classes: {
|
|
282
284
|
containerRoot: SNACKBAR_CONTAINER_CLASS
|
|
283
285
|
},
|
|
284
|
-
children: [jsxRuntime.jsx(MaterialRunboxHeader.default, Object.assign({}, props
|
|
286
|
+
children: [jsxRuntime.jsx(MaterialRunboxHeader.default, Object.assign({}, props, {
|
|
287
|
+
hideTimerPopover: hideTimerPopover
|
|
288
|
+
})), jsxRuntime.jsx(MaterialRunboxAlert.default, {
|
|
289
|
+
runbox: runbox,
|
|
290
|
+
courseId: courseId,
|
|
291
|
+
studentUserId: studentUserId,
|
|
292
|
+
userId: userId,
|
|
293
|
+
isTutoring: isTutoring
|
|
294
|
+
}), jsxRuntime.jsx(MaterialRunboxBody.default, Object.assign({
|
|
285
295
|
setSnackbarRoot: setSnackbarRoot
|
|
286
296
|
}, props)), jsxRuntime.jsx(MaterialRunboxFooter.default, Object.assign({}, props))]
|
|
287
297
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RuntimeProps } from './runtime/Runtime';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const MaterialRunboxHeader: React.FC<RuntimeProps>;
|
|
3
|
+
import type { MaterialRunboxTimerProps } from './timer';
|
|
4
|
+
export type MaterialRunboxHeaderProps = RuntimeProps & Pick<MaterialRunboxTimerProps, 'hideTimerPopover'>;
|
|
5
|
+
declare const MaterialRunboxHeader: React.FC<MaterialRunboxHeaderProps>;
|
|
7
6
|
export default MaterialRunboxHeader;
|
|
@@ -27,8 +27,6 @@ var useRunboxControl = require('./hooks/useRunboxControl.js');
|
|
|
27
27
|
require('react-use');
|
|
28
28
|
require('worker-timers');
|
|
29
29
|
var MaterialRunboxTimer = require('./timer/MaterialRunboxTimer.js');
|
|
30
|
-
require('tslib');
|
|
31
|
-
require('@fortawesome/pro-regular-svg-icons');
|
|
32
30
|
var runbox_logo = require('../../assets/runbox_logo.png.js');
|
|
33
31
|
|
|
34
32
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -57,7 +55,9 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
57
55
|
studentUserId = _ref3.studentUserId,
|
|
58
56
|
isTutoring = _ref3.isTutoring,
|
|
59
57
|
refetch = _ref3.refetch,
|
|
60
|
-
getAchievementColor = _ref3.getAchievementColor
|
|
58
|
+
getAchievementColor = _ref3.getAchievementColor,
|
|
59
|
+
_ref3$hideTimerPopove = _ref3.hideTimerPopover,
|
|
60
|
+
hideTimerPopover = _ref3$hideTimerPopove === void 0 ? false : _ref3$hideTimerPopove;
|
|
61
61
|
var intl$1 = intl.useRawEliceIntl();
|
|
62
62
|
var _useMaterialRunboxCon = MaterialRunboxContext.useMaterialRunboxContext(),
|
|
63
63
|
enableAutoShutdownToggle = _useMaterialRunboxCon.enableAutoShutdownToggle;
|
|
@@ -243,7 +243,8 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
243
243
|
runboxId: runbox.id,
|
|
244
244
|
userId: userId,
|
|
245
245
|
headerElement: headerRef.current,
|
|
246
|
-
stopRuntime: stopRuntime
|
|
246
|
+
stopRuntime: stopRuntime,
|
|
247
|
+
hideTimerPopover: hideTimerPopover
|
|
247
248
|
}) : null, jsxRuntime.jsx(MaterialRunboxDiskAlmostFullSnackbar.default, {
|
|
248
249
|
runboxId: runbox.id
|
|
249
250
|
}), jsxRuntime.jsxs(material.Stack, {
|
|
@@ -314,6 +314,9 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
314
314
|
})
|
|
315
315
|
}) : jsxRuntime.jsx(material.Alert, {
|
|
316
316
|
severity: "error",
|
|
317
|
+
sx: {
|
|
318
|
+
whiteSpace: 'pre-line'
|
|
319
|
+
},
|
|
317
320
|
children: intl$1.formatMessage({
|
|
318
321
|
id: 'runbox.action.grade.dialog.description.error'
|
|
319
322
|
})
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var messageEn = {"common.cancel":"Cancel","material.tutoring.runbox_confirm_dialog.action.confirm":"Proceed","material.tutoring.runbox_confirm_dialog.content":"The Runbox environment is currently running for the {_termCourseRoleStudent}. If you connect, the remaining total runtime usage time will decrease. Do you want to proceed?","material.tutoring.runbox_confirm_dialog.title":"Running Runbox","runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip":"This feature is not available for this session, as it's set to automatically shut down upon departure.","runbox.action.grade.dialog.description.error":"
|
|
5
|
+
var messageEn = {"common.cancel":"Cancel","material.tutoring.runbox_confirm_dialog.action.confirm":"Proceed","material.tutoring.runbox_confirm_dialog.content":"The Runbox environment is currently running for the {_termCourseRoleStudent}. If you connect, the remaining total runtime usage time will decrease. Do you want to proceed?","material.tutoring.runbox_confirm_dialog.title":"Running Runbox","runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip":"This feature is not available for this session, as it's set to automatically shut down upon departure.","runbox.action.grade.dialog.description.error":"There is a problem with the code or submission file.\nPlease check the error message below and verify that the submission format meets the requirements. Then, submit again.","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.isolated.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.dialog.shared.description":"Do you want to reset the Runbox code? If you reset, the code written by team members will also be overwritten with the default code. The Runbox session will be refreshed after resetting.","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.isolated.description":"Are you sure you want to restart the runbox?","runbox.action.restart.dialog.shared.description":"The Runbox will also restart on your teammates' screens. Do 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.action.submitLog.dialog.download.tooltip":"Download submitted file","runbox.action.submitLog.dialog.title":"Submission History","runbox.action.submitLog.empty":"No submission history exists.","runbox.action.submitLog.title":"Runbox Submission History","runbox.action.disconnect.dialog.title":"Disconnect Runbox","runbox.action.disconnect.dialog.description":"You are currently in a practice session. Do you want to disconnect Runbox?\nIf you have any unsaved work, please save it first.","runbox.action.disconnect.dialog.disconnect":"Disconnect","runbox.action.disconnect.title":"Disconnect","runbox.action.menu.title":"More","runbox.alert.title":"You are connected to the student's currently running environment, and the total runtime usage time is being deducted. Please note that even if the student exits Runbox, time will continue to be deducted as long as tutoring continues.","runbox.common.close":"Close","runbox.common.retry":"Retry","runbox.common.score":"{score} points","runbox.common.support":"Support","runbox.common.connect":"Connect","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.timer.title":"Remaining Runbox Time","runbox.timer.unlimited":"Unlimited","runbox.timer.tooltip.title":"View time information","runbox.timer.popover.title":"Runbox Usage Time Guide","runbox.timer.popover.description":"This is the Runbox practice time granted to {user}.\nTime continues to decrease while connected. To stop the time deduction, disconnect or leave the course material. Please be sure to disconnect when not in use.","runbox.timer.popover.quota.title":"Total Available Time","runbox.timer.popover.quota_per_session.title":"Remaining Time for This Session","runbox.timer.popover.quota_per_session.description":"Each session has a maximum time limit of {time}. If total available time remains, you can reconnect to the Runbox and continue the session.","runbox.timer.popover.quota.disconnect":"Disconnect","runbox.timer.almost_end.snackbar.quota_per_session":"{time} remaining for the time allocated per practice session.","runbox.timer.almost_end.snackbar.quota":"{time} remaining for the total available Runbox usage time.","runbox.timer.almost_end.snackbar.detail":"Learn more","runbox.disk.almost_full.snackbar.almost_full":"The remaining disk space is {capacity}. If the space runs out, the session will end, so please save your ongoing work now.","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":"(3 of 3)\nRunbox is running.\nPlease wait!","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.queued.description":"(2 of 3)\nCurrently queued {waiters} times...","runbox.runtime.overlay.queued.description_zero":"(2 of 3)\nRunbox will run soon","runbox.runtime.overlay.terminated.description.default":"To continue your Runbox practice session, please click the Connect button.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"The disk space has been completely used up, and the practice session has ended.","runbox.runtime.overlay.terminated.description.quota_exceeded":"The runtime has been terminated because the usage time has expired.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"The runtime has been terminated because the per-session usage time has expired.\nTo reconnect to Runbox, please click the button below.","runbox.runtime.overlay.terminated.title":"Runtime disconnected","runbox.runtime.overlay.terminated.connect":"Connect","runbox.runtime.overlay.terminated.unlimited":"Unlimited","runbox.runtime.overlay.terminated.contact":"Contact Customer Service","runbox.runtime.overlay.terminated.quota.total":"Total Available Time","runbox.runtime.overlay.terminated.quota.used":"Total Time Used","runbox.runtime.overlay.terminated.disk.total":"Total Disk","runbox.runtime.overlay.terminated.disk.used":"Total Disk Used","runbox.runtime.overlay.conflicted.description":"Connecting to this Runbox exercise will terminate the Runbox in another course material.\nPlease save any unsaved work first.","runbox.runtime.overlay.conflicted.title":"A Runbox is currently connected to another course material","runbox.runtime.dialog.change_material.title":"Notice of Runbox Connection Change","runbox.runtime.dialog.change_material.description":"Connecting to this Runbox exercise will terminate the Runbox in another course material. Do you want to continue?"};
|
|
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 = {"common.cancel":"キャンセル","material.tutoring.runbox_confirm_dialog.action.confirm":"進行","material.tutoring.runbox_confirm_dialog.content":"現在、{_termCourseRoleStudent} が実行中のランボックス環境です。接続すると、残りのランタイム使用時間が減少します。続行しますか?","material.tutoring.runbox_confirm_dialog.title":"実行中のランボックス","runbox.action.autoShutdown.title":"常にオン","runbox.action.autoShutdown.tooltip":"現在のセッションは離脱時に自動終了するため、この機能は使用できません。","runbox.action.grade.dialog.description.error":"
|
|
5
|
+
var ja = {"common.cancel":"キャンセル","material.tutoring.runbox_confirm_dialog.action.confirm":"進行","material.tutoring.runbox_confirm_dialog.content":"現在、{_termCourseRoleStudent} が実行中のランボックス環境です。接続すると、残りのランタイム使用時間が減少します。続行しますか?","material.tutoring.runbox_confirm_dialog.title":"実行中のランボックス","runbox.action.autoShutdown.title":"常にオン","runbox.action.autoShutdown.tooltip":"現在のセッションは離脱時に自動終了するため、この機能は使用できません。","runbox.action.grade.dialog.description.error":"コードまたは提出ファイルに問題があります。\n以下のエラーメッセージを確認し、提出形式が要件を満たしていることを確認してください。その後、再度提出してください。","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.isolated.description":"ランボックスのコードをリセットしてもよろしいですか? あなたのコードは {_termLibraryLecturePage} のデフォルトコードに上書きされます。\nリセット後、ランボックスのセッションがリフレッシュされます。","runbox.action.reset.dialog.shared.description":"Runboxのコードを初期化しますか?初期化すると、チームメンバーの画面でもコードがデフォルトに上書きされます。初期化後、Runboxセッションがリフレッシュされます。","runbox.action.reset.noti.error":"ランボックスコードの初期化中にエラーが発生しました。","runbox.action.reset.title":"リセットコード","runbox.action.restart.dialog.actions.confirm":"再起動","runbox.action.restart.dialog.isolated.description":"再起動してもよろしいですか?","runbox.action.restart.dialog.shared.description":"チームメンバーの画面でもRunboxが再起動されます。Runboxを再起動しますか?","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.action.submitLog.dialog.download.tooltip":"提出ファイルをダウンロード","runbox.action.submitLog.dialog.title":"提出履歴","runbox.action.submitLog.empty":"提出履歴が存在しません。","runbox.action.submitLog.title":"ランボックス提出履歴","runbox.action.disconnect.dialog.title":"Runboxの接続を解除","runbox.action.disconnect.dialog.description":"現在、実習を進行中です。Runboxの接続を解除しますか?\n保存していない内容がある場合は、先に保存してください。","runbox.action.disconnect.dialog.disconnect":"接続解除","runbox.action.disconnect.title":"接続解除","runbox.action.menu.title":"その他","runbox.alert.title":"現在、学生が実行中の環境に接続しているため、ランタイムの全使用時間が減少しています。学生がランボックスを終了しても、チュータリングを続ける限り、時間が引き続き減少するのでご注意ください。","runbox.common.close":"閉じる","runbox.common.retry":"リトライ","runbox.common.score":"{score}点","runbox.common.support":"サポート","runbox.common.connect":"接続する","runbox.context.command.ping.error":"タスクの処理中にエラーが発生しました。","runbox.header.submitInfo":"{isIndividual, select, true {個人} other {チーム}}の提出回数 | {remainCount}/{totalCount} 回残っています {isDailyLimitEnabled, select, true {今日} other {}}","runbox.timer.title":"残りのRunbox時間","runbox.timer.unlimited":"無制限","runbox.timer.tooltip.title":"時間の案内を見る","runbox.timer.popover.title":"ランボックス使用時間の案内","runbox.timer.popover.description":"{user}に付与されたランボックスの実習時間です。\n接続中は時間が減り続けます。時間の減少を止めるには、接続を解除するか教材から退出してください。使用しないときは必ず接続を解除してください。","runbox.timer.popover.quota.title":"総使用可能時間","runbox.timer.popover.quota_per_session.title":"今回の実習の残り時間","runbox.timer.popover.quota_per_session.description":"1回の実習には最大{time}の制限時間があります。総使用可能時間が残っていれば、再接続して実習を続けることができます。","runbox.timer.popover.quota.disconnect":"接続を解除","runbox.timer.almost_end.snackbar.quota_per_session":"1回の実習に割り当てられた時間は残り{time}です。","runbox.timer.almost_end.snackbar.quota":"Runboxの総利用可能時間は残り{time}です。","runbox.timer.almost_end.snackbar.detail":"詳細を見る","runbox.disk.almost_full.snackbar.almost_full":"ディスクの残り容量は {capacity} です。容量がすべてなくなると実習は終了しますので、進行中の作業を今すぐ保存してください。","runbox.runtime.message.lxp_plan_required":"現在、所属機関ではRunboxの学習資料を利用できません。\n詳細については機関の管理者にお問い合わせください。","runbox.runtime.message.runbox_unavailable":"Runboxは利用できません","runbox.runtime.message.startError":"ランボックスの起動中にエラーが発生しました。","runbox.runtime.overlay.assigned.description":"Runbox が実行中です。\nお待ちください!","runbox.runtime.overlay.assigned.description_timeout":"ランボックスを実行する時間が私たちの予想よりも長くかかっています。\n更新せずにもう少し待ってください!","runbox.runtime.overlay.queued.description":"現在{waiters}回待機中...","runbox.runtime.overlay.queued.description_zero":"Runboxはもうすぐ実行されます。","runbox.runtime.overlay.terminated.description.default":"Runboxの実習を続けるには、「接続」ボタンをクリックしてください。","runbox.runtime.overlay.terminated.description.os_disk_is_full":"ディスク容量をすべて使い切ったため、実習は終了しました。","runbox.runtime.overlay.terminated.description.quota_exceeded":"ランタイムの利用時間が終了したため、ランタイムは停止されました。","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"Runboxセッションごとの利用時間が終了したため、ランタイムは停止されました。\nRunboxに再接続するには、下のボタンをクリックしてください。","runbox.runtime.overlay.terminated.title":"接続解除","runbox.runtime.overlay.terminated.connect":"接続","runbox.runtime.overlay.terminated.unlimited":"無制限","runbox.runtime.overlay.terminated.contact":"カスタマーサービスにお問い合わせ","runbox.runtime.overlay.terminated.quota.total":"利用可能時間の合計","runbox.runtime.overlay.terminated.quota.used":"総利用時間","runbox.runtime.overlay.terminated.disk.total":"ディスク合計","runbox.runtime.overlay.terminated.disk.used":"使用済みディスク合計","runbox.runtime.overlay.conflicted.description":"このランボックス演習に接続すると、他の教材のランボックスは終了します。\n保存していない内容がある場合は、先に保存してください。","runbox.runtime.overlay.conflicted.title":"現在、他の教材にランボックスが接続されています","runbox.runtime.dialog.change_material.title":"ランボックス接続変更のお知らせ","runbox.runtime.dialog.change_material.description":"このランボックス演習に接続すると、他の教材のランボックスは終了します。続行しますか?"};
|
|
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 = {"common.cancel":"취소","material.tutoring.runbox_confirm_dialog.action.confirm":"진행","material.tutoring.runbox_confirm_dialog.content":"현재 {_termCourseRoleStudent}이/가 실행 중인 런박스 환경입니다. 접속할 경우 남은 런타임 전체 사용 시간이 줄어듭니다. 계속 진행하시겠습니까?","material.tutoring.runbox_confirm_dialog.title":"실행 중인 런박스","runbox.action.autoShutdown.title":"항상 켜두기","runbox.action.autoShutdown.tooltip":"현재 이탈 시 종료되는 실습으로 해당 기능을 사용할 수 없습니다.","runbox.action.grade.dialog.description.error":"
|
|
5
|
+
var messageKo = {"common.cancel":"취소","material.tutoring.runbox_confirm_dialog.action.confirm":"진행","material.tutoring.runbox_confirm_dialog.content":"현재 {_termCourseRoleStudent}이/가 실행 중인 런박스 환경입니다. 접속할 경우 남은 런타임 전체 사용 시간이 줄어듭니다. 계속 진행하시겠습니까?","material.tutoring.runbox_confirm_dialog.title":"실행 중인 런박스","runbox.action.autoShutdown.title":"항상 켜두기","runbox.action.autoShutdown.tooltip":"현재 이탈 시 종료되는 실습으로 해당 기능을 사용할 수 없습니다.","runbox.action.grade.dialog.description.error":"코드 또는 제출 파일에 문제가 있어 제출에 실패했습니다.\n아래 오류 메시지를 참고하여 제출 형식이 요구사항에 맞는지 확인한 뒤, 다시 제출해주세요.","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.isolated.description":"런박스 코드를 초기화하시겠습니까? 초기화 시 학습{_termLibraryLecturePage}의 코드가 기본 코드로 덮어씌워집니다.\n초기화 이후 런박스 세션이 새로고침 됩니다.","runbox.action.reset.dialog.shared.description":"런박스 코드를 초기화하시겠습니까? 초기화 시 팀원들의 화면에서도 작성한 코드가 기본 코드로 덮어씌워집니다. 초기화 이후 런박스 세션이 새로고침 됩니다.","runbox.action.reset.noti.error":"런박스 코드를 초기화 하는 중에 오류가 발생했습니다.","runbox.action.reset.title":"코드 초기화","runbox.action.restart.dialog.actions.confirm":"재시작","runbox.action.restart.dialog.isolated.description":"런박스를 재시작 하시겠습니까?","runbox.action.restart.dialog.shared.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.action.submitLog.dialog.download.tooltip":"제출 파일 다운로드","runbox.action.submitLog.dialog.title":"제출 이력","runbox.action.submitLog.empty":"제출 이력이 존재하지 않습니다.","runbox.action.submitLog.title":"런박스 제출 이력","runbox.action.disconnect.dialog.title":"런박스 연결 해제","runbox.action.disconnect.dialog.description":"현재 실습을 진행중 입니다. 런박스를 연결 해제하시겠습니까?\n저장하지 않은 내용이 있다면 먼저 저장해 주세요.","runbox.action.disconnect.dialog.disconnect":"연결 해제","runbox.action.disconnect.title":"연결 해제","runbox.action.menu.title":"더보기","runbox.alert.title":"현재 학생이 실행 중인 환경에 접속하였기 때문에, 런타임 전체 사용 시간이 차감되고 있습니다. 학생이 런박스를 종료하더라도, 튜터링을 진행하면 시간이 계속 차감되니 유의해 주세요.","runbox.common.close":"닫기","runbox.common.retry":"재시도","runbox.common.score":"{score}점","runbox.common.support":"고객센터","runbox.common.connect":"연결하기","runbox.context.command.ping.error":"런박스 작업을 수행하는 도중 오류가 발생했습니다.","runbox.header.submitInfo":"{isIndividual, select, true {} other {팀}} 제출 횟수 | {isDailyLimitEnabled, select, true {오늘} other {}} {remainCount}/{totalCount}회 남음","runbox.timer.title":"남은 런박스 시간","runbox.timer.unlimited":"제한없음","runbox.timer.tooltip.title":"시간 안내 보기","runbox.timer.popover.title":"런박스 사용 시간 안내","runbox.timer.popover.description":"{user} 님에게 부여된 런박스 실습 시간입니다.\n연결 상태에서는 시간이 계속 차감되며, 연결을 해제하거나 수업 자료를 나가야 차감이 중단됩니다. 사용하지 않을 때는 꼭 연결을 해제해주세요.","runbox.timer.popover.quota.title":"총 사용 가능 시간","runbox.timer.popover.quota_per_session.title":"이번 실습 남은 시간","runbox.timer.popover.quota_per_session.description":"실습 회당 최대 {time}의 제한시간이 있습니다. 총 사용 가능 시간이 남아 있다면, 다시 런박스를 연결해 실습을 이어하실 수 있습니다.","runbox.timer.popover.quota.disconnect":"연결 해제","runbox.timer.almost_end.snackbar.quota_per_session":"실습 회당 부여된 시간 {time} 남았습니다.","runbox.timer.almost_end.snackbar.quota":"런박스 총 사용 가능 시간이 {time} 남았습니다.","runbox.timer.almost_end.snackbar.detail":"더 알아보기","runbox.disk.almost_full.snackbar.almost_full":"디스크 잔여 용량이 {capacity}입니다. 용량이 모두 소진되면 실습이 종료되니,\n진행 중인 작업을 지금 저장해 주세요.","runbox.runtime.message.lxp_plan_required":"현재 기관에서는 런박스 수업 자료를 학습할 수 없습니다.\n자세한 사항은 기관 관리자에게 문의하세요.","runbox.runtime.message.runbox_unavailable":"런박스 사용 불가","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":"런박스 실습을 진행하시려면, 연결하기 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"디스크 용량을 모두 소진하여 실습이 종료되었습니다.","runbox.runtime.overlay.terminated.description.quota_exceeded":"런타임 사용시간이 만료되어 런타임이 종료되었습니다.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"런박스 세션당 사용시간이 만료되어 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.title":"연결 해제","runbox.runtime.overlay.terminated.connect":"연결하기","runbox.runtime.overlay.terminated.unlimited":"제한 없음","runbox.runtime.overlay.terminated.contact":"고객센터 문의하기","runbox.runtime.overlay.terminated.quota.total":"전체 사용 가능 시간","runbox.runtime.overlay.terminated.quota.used":"총 사용 시간","runbox.runtime.overlay.terminated.disk.total":"전체 디스크","runbox.runtime.overlay.terminated.disk.used":"총 사용 디스크","runbox.runtime.overlay.conflicted.description":"이 런박스 실습을 연결하면 다른 수업자료의 런박스는 종료됩니다.\n저장하지 않은 내용이 있다면 먼저 저장해 주세요.","runbox.runtime.overlay.conflicted.title":"현재 다른 수업자료에 런박스가 연결되어 있습니다","runbox.runtime.dialog.change_material.title":"런박스 연결 변경 안내","runbox.runtime.dialog.change_material.description":"이 런박스 실습을 연결하면 다른 수업자료의 런박스는 종료됩니다. 계속하시겠습니까?"};
|
|
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 = {"common.cancel":"ยกเลิก","material.tutoring.runbox_confirm_dialog.action.confirm":"ดำเนินการ","material.tutoring.runbox_confirm_dialog.content":"ขณะนี้นักเรียน {_termCourseRoleStudent} กำลังทำงานในสภาพแวดล้อม Runbox หากคุณเชื่อมต่อ เวลาที่เหลือสำหรับการใช้งานรันไทม์ทั้งหมดจะลดลง คุณต้องการดำเนินการต่อหรือไม่?","material.tutoring.runbox_confirm_dialog.title":"รันบ็อกซ์กำลังทำงาน","runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip":"คุณสมบัตินี้ไม่สามารถใช้งานได้ในเซสชันนี้ เนื่องจากมีการตั้งค่าให้ปิดการทำงานอัตโนมัติเมื่อออก","runbox.action.grade.dialog.description.error":"
|
|
5
|
+
var th = {"common.cancel":"ยกเลิก","material.tutoring.runbox_confirm_dialog.action.confirm":"ดำเนินการ","material.tutoring.runbox_confirm_dialog.content":"ขณะนี้นักเรียน {_termCourseRoleStudent} กำลังทำงานในสภาพแวดล้อม Runbox หากคุณเชื่อมต่อ เวลาที่เหลือสำหรับการใช้งานรันไทม์ทั้งหมดจะลดลง คุณต้องการดำเนินการต่อหรือไม่?","material.tutoring.runbox_confirm_dialog.title":"รันบ็อกซ์กำลังทำงาน","runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip":"คุณสมบัตินี้ไม่สามารถใช้งานได้ในเซสชันนี้ เนื่องจากมีการตั้งค่าให้ปิดการทำงานอัตโนมัติเมื่อออก","runbox.action.grade.dialog.description.error":"มีปัญหาในโค้ดหรือไฟล์ที่ส่ง\nกรุณาตรวจสอบข้อความข้อผิดพลาดด้านล่างและตรวจสอบว่ารูปแบบการส่งตรงกับความต้องการ จากนั้นส่งอีกครั้ง","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.isolated.description":"ต้องการรีเซ็ตโค้ด Runbox หรือไม่? การรีเซ็ตจะแทนที่โค้ดของคุณด้วยโค้ดเริ่มต้นของหน้าเรียน {_termLibraryLecturePage} \nเซสชัน Runbox จะรีเฟรชหลังจากรีเซ็ต","runbox.action.reset.dialog.shared.description":"คุณต้องการรีเซ็ตโค้ดของ Runbox หรือไม่? หากทำการรีเซ็ต โค้ดที่ทีมเขียนไว้จะถูกเขียนทับด้วยโค้ดเริ่มต้น และเซสชันของ Runbox จะถูกรีเฟรชหลังจากนั้น","runbox.action.reset.noti.error":"เกิดข้อผิดพลาดระหว่างการรีเซ็ตโค้ด Runbox","runbox.action.reset.title":"รีเซ็ตโค้ด","runbox.action.restart.dialog.actions.confirm":"เริ่มต้นใหม่","runbox.action.restart.dialog.isolated.description":"ต้องการเริ่มต้น Runbox ใหม่หรือไม่?","runbox.action.restart.dialog.shared.description":"Runbox จะเริ่มต้นใหม่บนหน้าจอของเพื่อนร่วมทีมด้วย คุณต้องการเริ่มต้น 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.action.submitLog.dialog.download.tooltip":"ดาวน์โหลดไฟล์ที่ส่ง","runbox.action.submitLog.dialog.title":"ประวัติการส่ง","runbox.action.submitLog.empty":"ไม่มีประวัติการส่ง","runbox.action.submitLog.title":"ประวัติการส่ง Runbox","runbox.action.disconnect.dialog.title":"ยกเลิกการเชื่อมต่อ Runbox","runbox.action.disconnect.dialog.description":"คุณกำลังอยู่ในระหว่างการฝึกปฏิบัติ ต้องการยกเลิกการเชื่อมต่อ Runbox หรือไม่?\nหากมีงานที่ยังไม่ได้บันทึก กรุณาบันทึกก่อน","runbox.action.disconnect.dialog.disconnect":"ยกเลิกการเชื่อมต่อ","runbox.action.disconnect.title":"ยกเลิกการเชื่อมต่อ","runbox.action.menu.title":"เพิ่มเติม","runbox.alert.title":"คุณได้เชื่อมต่อกับสภาพแวดล้อมที่นักเรียนกำลังทำงานอยู่ และเวลาใช้งานรันไทม์ทั้งหมดกำลังถูกหัก โปรดทราบว่าหากนักเรียนออกจากรันบ็อกซ์ แต่การให้คำปรึกษายังดำเนินต่อไป เวลาจะยังคงถูกหัก","runbox.common.close":"ปิด","runbox.common.retry":"ลองใหม่","runbox.common.score":"{score} คะแนน","runbox.common.support":"สนับสนุน","runbox.common.connect":"เชื่อมต่อ","runbox.context.command.ping.error":"เกิดข้อผิดพลาดขณะดำเนินการ Runbox","runbox.header.submitInfo":"{isIndividual, select, true {การส่งแบบส่วนตัว} other {การส่งแบบทีม}} | {remainCount}/{totalCount} ครั้งที่เหลือ | {isDailyLimitEnabled, select, true {วันนี้} other {}} ","runbox.timer.title":"เวลาที่เหลือของ Runbox","runbox.timer.unlimited":"ไม่จำกัด","runbox.timer.tooltip.title":"ดูข้อมูลเวลา","runbox.timer.popover.title":"คู่มือเวลาใช้งาน Runbox","runbox.timer.popover.description":"นี่คือเวลาการใช้งาน Runbox ที่มอบให้กับ {user}\nหากยังเชื่อมต่ออยู่ เวลาจะถูกหักออกอย่างต่อเนื่อง กรุณาตัดการเชื่อมต่อหรือออกจากเนื้อหาบทเรียนเมื่อไม่ใช้งานเพื่อหยุดการหักเวลา","runbox.timer.popover.quota.title":"เวลาที่สามารถใช้งานได้ทั้งหมด","runbox.timer.popover.quota_per_session.title":"เวลาที่เหลือของเซสชันนี้","runbox.timer.popover.quota_per_session.description":"แต่ละเซสชันมีเวลาจำกัดสูงสุดที่ {time} หากยังมีเวลารวมเหลืออยู่ คุณสามารถเชื่อมต่อใหม่และทำกิจกรรมต่อได้","runbox.timer.popover.quota.disconnect":"ตัดการเชื่อมต่อ","runbox.timer.almost_end.snackbar.quota_per_session":"เหลือเวลา {time} สำหรับแต่ละรอบการฝึกปฏิบัติ","runbox.timer.almost_end.snackbar.quota":"เหลือเวลาใช้งาน Runbox ทั้งหมด {time}","runbox.timer.almost_end.snackbar.detail":"ดูเพิ่มเติม","runbox.disk.almost_full.snackbar.almost_full":"พื้นที่ดิสก์ที่เหลืออยู่คือ {capacity} หากพื้นที่หมด การฝึกปฏิบัติจะสิ้นสุดลง กรุณาบันทึกงานที่กำลังทำอยู่ตอนนี้","runbox.runtime.message.lxp_plan_required":"ขณะนี้สถาบันของคุณไม่รองรับการใช้งานสื่อการเรียนการสอน Runbox\nโปรดติดต่อผู้ดูแลระบบของสถาบันของคุณสำหรับข้อมูลเพิ่มเติม","runbox.runtime.message.runbox_unavailable":"ไม่สามารถใช้ Runbox ได้","runbox.runtime.message.startError":"เกิดข้อผิดพลาดขณะเริ่ม Runbox","runbox.runtime.overlay.assigned.description":"(3 / 3)\nRunbox กำลังทำงานอยู่\nกรุณารอสักครู่!","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\nRunbox ใช้เวลานานกว่าที่คาดไว้ในการทำงาน\nกรุณาอย่ารีเฟรชและรอสักครู่!","runbox.runtime.overlay.queued.description":"(2 / 3)\nกำลังรอคิวอยู่ที่ {waiters}...","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\nRunbox ของคุณจะเริ่มทำงานเร็วๆ นี้","runbox.runtime.overlay.terminated.description.default":"หากต้องการดำเนินการฝึก Runbox ต่อ กรุณาคลิกปุ่มเชื่อมต่อ","runbox.runtime.overlay.terminated.description.os_disk_is_full":"พื้นที่ดิสก์ถูกใช้งานจนหมดแล้ว การฝึกปฏิบัติได้สิ้นสุดลง","runbox.runtime.overlay.terminated.description.quota_exceeded":"รันไทม์ถูกยกเลิกเนื่องจากเวลาการใช้งานหมดอายุแล้ว","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"รันไทม์ถูกยกเลิกเนื่องจากเวลาการใช้งานต่อเซสชันหมดอายุแล้ว\nหากต้องการเชื่อมต่อกับ Runbox อีกครั้ง กรุณากดปุ่มด้านล่าง","runbox.runtime.overlay.terminated.title":"การเชื่อมต่อถูกยกเลิก","runbox.runtime.overlay.terminated.connect":"เชื่อมต่อ","runbox.runtime.overlay.terminated.unlimited":"ไม่จำกัด","runbox.runtime.overlay.terminated.contact":"ติดต่อฝ่ายบริการลูกค้า","runbox.runtime.overlay.terminated.quota.total":"เวลาที่สามารถใช้งานได้ทั้งหมด","runbox.runtime.overlay.terminated.quota.used":"เวลาที่ใช้ไปทั้งหมด","runbox.runtime.overlay.terminated.disk.total":"พื้นที่ดิสก์ทั้งหมด","runbox.runtime.overlay.terminated.disk.used":"พื้นที่ดิสก์ที่ใช้ไปทั้งหมด","runbox.runtime.overlay.conflicted.description":"การเชื่อมต่อกับการฝึก Runbox นี้จะยุติการทำงานของ Runbox ในสื่อการสอนอื่น\nกรุณาบันทึกงานที่ยังไม่ได้บันทึกก่อน","runbox.runtime.overlay.conflicted.title":"ขณะนี้ Runbox เชื่อมต่อกับสื่อการสอนอื่นอยู่","runbox.runtime.dialog.change_material.title":"ประกาศการเปลี่ยนการเชื่อมต่อ Runbox","runbox.runtime.dialog.change_material.description":"การเชื่อมต่อกับการฝึก Runbox นี้จะยุติการทำงานของ Runbox ในสื่อการสอนอื่น คุณต้องการดำเนินการต่อหรือไม่?"};
|
|
6
6
|
|
|
7
7
|
exports.default = th;
|
|
@@ -3,19 +3,21 @@ import type { RunboxGetAndListResponse, RuntimeGetAndListResponse, RuntimeTempla
|
|
|
3
3
|
import type { QueryObserverResult } from '@tanstack/react-query';
|
|
4
4
|
import type { GetAchievementColor } from '../MaterialRunboxContent';
|
|
5
5
|
export interface RuntimeProps {
|
|
6
|
-
/**
|
|
6
|
+
/** Runbox. */
|
|
7
7
|
runbox: RunboxGetAndListResponse;
|
|
8
|
-
/**
|
|
8
|
+
/** Runtime. */
|
|
9
9
|
runtime: RuntimeGetAndListResponse | null;
|
|
10
|
-
/**
|
|
10
|
+
/** Runtime template. */
|
|
11
11
|
runtimeTemplate: RuntimeTemplateGetAndListResponse;
|
|
12
|
-
/**
|
|
12
|
+
/** Course ID. */
|
|
13
13
|
courseId: number;
|
|
14
|
-
/**
|
|
14
|
+
/** User ID for tutoring. */
|
|
15
15
|
studentUserId?: number;
|
|
16
|
-
/**
|
|
16
|
+
/** User ID for tutor. */
|
|
17
17
|
userId?: number;
|
|
18
|
-
/**
|
|
18
|
+
/** Whether tutoring is enabled.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
19
21
|
isTutoring?: boolean;
|
|
20
22
|
/** */
|
|
21
23
|
refetch: () => Promise<QueryObserverResult<[
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface MaterialRunboxTimerProps {
|
|
2
|
+
export interface MaterialRunboxTimerProps {
|
|
3
3
|
runboxId: string;
|
|
4
4
|
userId: number | undefined;
|
|
5
5
|
headerElement: HTMLElement | null;
|
|
6
6
|
stopRuntime: () => Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Hide timer detail popover?
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
hideTimerPopover?: boolean;
|
|
7
12
|
}
|
|
8
13
|
declare const MaterialRunboxTimer: React.FC<MaterialRunboxTimerProps>;
|
|
9
14
|
export default MaterialRunboxTimer;
|
|
@@ -31,7 +31,9 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
|
|
|
31
31
|
var runboxId = _ref.runboxId,
|
|
32
32
|
userId = _ref.userId,
|
|
33
33
|
headerElement = _ref.headerElement,
|
|
34
|
-
stopRuntime = _ref.stopRuntime
|
|
34
|
+
stopRuntime = _ref.stopRuntime,
|
|
35
|
+
_ref$hideTimerPopover = _ref.hideTimerPopover,
|
|
36
|
+
hideTimerPopover = _ref$hideTimerPopover === void 0 ? false : _ref$hideTimerPopover;
|
|
35
37
|
var intl$1 = intl.useRawEliceIntl();
|
|
36
38
|
var _useEliceRunboxRunnin = runboxClient.useEliceRunboxRunning(),
|
|
37
39
|
status = _useEliceRunboxRunnin.status;
|
|
@@ -124,6 +126,9 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
|
|
|
124
126
|
*
|
|
125
127
|
*/
|
|
126
128
|
var renderTimerDetailPopover = function renderTimerDetailPopover() {
|
|
129
|
+
if (hideTimerPopover) {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
127
132
|
return jsxRuntime.jsx(MaterialRunboxTimerDetailPopover.default, {
|
|
128
133
|
userId: userId,
|
|
129
134
|
open: isTimerDetailPopoverOpen,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as MaterialRunboxTimer } from './MaterialRunboxTimer';
|
|
2
|
-
export {
|
|
2
|
+
export type { MaterialRunboxTimerProps } from './MaterialRunboxTimer';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var MaterialRunboxTimer = require('./MaterialRunboxTimer.js');
|
|
4
|
-
var MaterialRunboxTimerDetailPopover = require('./MaterialRunboxTimerDetailPopover.js');
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
exports.MaterialRunboxTimer = MaterialRunboxTimer.default;
|
|
9
|
-
exports.MaterialRunboxTimerDetailPopover = MaterialRunboxTimerDetailPopover.default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TagProps } from '@elice/mui-elements';
|
|
3
|
+
import type { MaterialRunboxHeaderProps } from './MaterialRunboxHeader';
|
|
3
4
|
export type GetAchievementColor = {
|
|
4
5
|
(params: {
|
|
5
6
|
score: number;
|
|
@@ -10,7 +11,7 @@ export type GetAchievementColor = {
|
|
|
10
11
|
variant: 'tag';
|
|
11
12
|
}): TagProps['color'];
|
|
12
13
|
};
|
|
13
|
-
export interface MaterialRunboxContentProps {
|
|
14
|
+
export interface MaterialRunboxContentProps extends Pick<MaterialRunboxHeaderProps, 'hideTimerPopover'> {
|
|
14
15
|
/** Runbox ID. */
|
|
15
16
|
runboxId: string | null;
|
|
16
17
|
/** Course ID. */
|
|
@@ -43,6 +43,8 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
43
43
|
userId = _ref.userId,
|
|
44
44
|
_ref$isTutoring = _ref.isTutoring,
|
|
45
45
|
isTutoring = _ref$isTutoring === void 0 ? false : _ref$isTutoring,
|
|
46
|
+
_ref$hideTimerPopover = _ref.hideTimerPopover,
|
|
47
|
+
hideTimerPopover = _ref$hideTimerPopover === void 0 ? false : _ref$hideTimerPopover,
|
|
46
48
|
getAchievementColor = _ref.getAchievementColor;
|
|
47
49
|
var _a;
|
|
48
50
|
var intl = useRawEliceIntl();
|
|
@@ -273,7 +275,15 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
273
275
|
classes: {
|
|
274
276
|
containerRoot: SNACKBAR_CONTAINER_CLASS
|
|
275
277
|
},
|
|
276
|
-
children: [jsx(MaterialRunboxHeader, Object.assign({}, props
|
|
278
|
+
children: [jsx(MaterialRunboxHeader, Object.assign({}, props, {
|
|
279
|
+
hideTimerPopover: hideTimerPopover
|
|
280
|
+
})), jsx(MaterialRunboxAlert, {
|
|
281
|
+
runbox: runbox,
|
|
282
|
+
courseId: courseId,
|
|
283
|
+
studentUserId: studentUserId,
|
|
284
|
+
userId: userId,
|
|
285
|
+
isTutoring: isTutoring
|
|
286
|
+
}), jsx(MaterialRunboxBody, Object.assign({
|
|
277
287
|
setSnackbarRoot: setSnackbarRoot
|
|
278
288
|
}, props)), jsx(MaterialRunboxFooter, Object.assign({}, props))]
|
|
279
289
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RuntimeProps } from './runtime/Runtime';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const MaterialRunboxHeader: React.FC<RuntimeProps>;
|
|
3
|
+
import type { MaterialRunboxTimerProps } from './timer';
|
|
4
|
+
export type MaterialRunboxHeaderProps = RuntimeProps & Pick<MaterialRunboxTimerProps, 'hideTimerPopover'>;
|
|
5
|
+
declare const MaterialRunboxHeader: React.FC<MaterialRunboxHeaderProps>;
|
|
7
6
|
export default MaterialRunboxHeader;
|
|
@@ -23,8 +23,6 @@ import { useRunboxControl } from './hooks/useRunboxControl.js';
|
|
|
23
23
|
import 'react-use';
|
|
24
24
|
import 'worker-timers';
|
|
25
25
|
import MaterialRunboxTimer from './timer/MaterialRunboxTimer.js';
|
|
26
|
-
import 'tslib';
|
|
27
|
-
import '@fortawesome/pro-regular-svg-icons';
|
|
28
26
|
import img from '../../assets/runbox_logo.png.js';
|
|
29
27
|
|
|
30
28
|
var StyledHeader = /*#__PURE__*/_styled("div", {
|
|
@@ -48,7 +46,9 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
48
46
|
studentUserId = _ref3.studentUserId,
|
|
49
47
|
isTutoring = _ref3.isTutoring,
|
|
50
48
|
refetch = _ref3.refetch,
|
|
51
|
-
getAchievementColor = _ref3.getAchievementColor
|
|
49
|
+
getAchievementColor = _ref3.getAchievementColor,
|
|
50
|
+
_ref3$hideTimerPopove = _ref3.hideTimerPopover,
|
|
51
|
+
hideTimerPopover = _ref3$hideTimerPopove === void 0 ? false : _ref3$hideTimerPopove;
|
|
52
52
|
var intl = useRawEliceIntl();
|
|
53
53
|
var _useMaterialRunboxCon = useMaterialRunboxContext(),
|
|
54
54
|
enableAutoShutdownToggle = _useMaterialRunboxCon.enableAutoShutdownToggle;
|
|
@@ -234,7 +234,8 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref3) {
|
|
|
234
234
|
runboxId: runbox.id,
|
|
235
235
|
userId: userId,
|
|
236
236
|
headerElement: headerRef.current,
|
|
237
|
-
stopRuntime: stopRuntime
|
|
237
|
+
stopRuntime: stopRuntime,
|
|
238
|
+
hideTimerPopover: hideTimerPopover
|
|
238
239
|
}) : null, jsx(MaterialRunboxDiskAlmostFullSnackbar, {
|
|
239
240
|
runboxId: runbox.id
|
|
240
241
|
}), jsxs(Stack, {
|
|
@@ -305,6 +305,9 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
305
305
|
})
|
|
306
306
|
}) : jsx(Alert, {
|
|
307
307
|
severity: "error",
|
|
308
|
+
sx: {
|
|
309
|
+
whiteSpace: 'pre-line'
|
|
310
|
+
},
|
|
308
311
|
children: intl.formatMessage({
|
|
309
312
|
id: 'runbox.action.grade.dialog.description.error'
|
|
310
313
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageEn = {"common.cancel":"Cancel","material.tutoring.runbox_confirm_dialog.action.confirm":"Proceed","material.tutoring.runbox_confirm_dialog.content":"The Runbox environment is currently running for the {_termCourseRoleStudent}. If you connect, the remaining total runtime usage time will decrease. Do you want to proceed?","material.tutoring.runbox_confirm_dialog.title":"Running Runbox","runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip":"This feature is not available for this session, as it's set to automatically shut down upon departure.","runbox.action.grade.dialog.description.error":"
|
|
1
|
+
var messageEn = {"common.cancel":"Cancel","material.tutoring.runbox_confirm_dialog.action.confirm":"Proceed","material.tutoring.runbox_confirm_dialog.content":"The Runbox environment is currently running for the {_termCourseRoleStudent}. If you connect, the remaining total runtime usage time will decrease. Do you want to proceed?","material.tutoring.runbox_confirm_dialog.title":"Running Runbox","runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip":"This feature is not available for this session, as it's set to automatically shut down upon departure.","runbox.action.grade.dialog.description.error":"There is a problem with the code or submission file.\nPlease check the error message below and verify that the submission format meets the requirements. Then, submit again.","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.isolated.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.dialog.shared.description":"Do you want to reset the Runbox code? If you reset, the code written by team members will also be overwritten with the default code. The Runbox session will be refreshed after resetting.","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.isolated.description":"Are you sure you want to restart the runbox?","runbox.action.restart.dialog.shared.description":"The Runbox will also restart on your teammates' screens. Do 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.action.submitLog.dialog.download.tooltip":"Download submitted file","runbox.action.submitLog.dialog.title":"Submission History","runbox.action.submitLog.empty":"No submission history exists.","runbox.action.submitLog.title":"Runbox Submission History","runbox.action.disconnect.dialog.title":"Disconnect Runbox","runbox.action.disconnect.dialog.description":"You are currently in a practice session. Do you want to disconnect Runbox?\nIf you have any unsaved work, please save it first.","runbox.action.disconnect.dialog.disconnect":"Disconnect","runbox.action.disconnect.title":"Disconnect","runbox.action.menu.title":"More","runbox.alert.title":"You are connected to the student's currently running environment, and the total runtime usage time is being deducted. Please note that even if the student exits Runbox, time will continue to be deducted as long as tutoring continues.","runbox.common.close":"Close","runbox.common.retry":"Retry","runbox.common.score":"{score} points","runbox.common.support":"Support","runbox.common.connect":"Connect","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.timer.title":"Remaining Runbox Time","runbox.timer.unlimited":"Unlimited","runbox.timer.tooltip.title":"View time information","runbox.timer.popover.title":"Runbox Usage Time Guide","runbox.timer.popover.description":"This is the Runbox practice time granted to {user}.\nTime continues to decrease while connected. To stop the time deduction, disconnect or leave the course material. Please be sure to disconnect when not in use.","runbox.timer.popover.quota.title":"Total Available Time","runbox.timer.popover.quota_per_session.title":"Remaining Time for This Session","runbox.timer.popover.quota_per_session.description":"Each session has a maximum time limit of {time}. If total available time remains, you can reconnect to the Runbox and continue the session.","runbox.timer.popover.quota.disconnect":"Disconnect","runbox.timer.almost_end.snackbar.quota_per_session":"{time} remaining for the time allocated per practice session.","runbox.timer.almost_end.snackbar.quota":"{time} remaining for the total available Runbox usage time.","runbox.timer.almost_end.snackbar.detail":"Learn more","runbox.disk.almost_full.snackbar.almost_full":"The remaining disk space is {capacity}. If the space runs out, the session will end, so please save your ongoing work now.","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":"(3 of 3)\nRunbox is running.\nPlease wait!","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.queued.description":"(2 of 3)\nCurrently queued {waiters} times...","runbox.runtime.overlay.queued.description_zero":"(2 of 3)\nRunbox will run soon","runbox.runtime.overlay.terminated.description.default":"To continue your Runbox practice session, please click the Connect button.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"The disk space has been completely used up, and the practice session has ended.","runbox.runtime.overlay.terminated.description.quota_exceeded":"The runtime has been terminated because the usage time has expired.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"The runtime has been terminated because the per-session usage time has expired.\nTo reconnect to Runbox, please click the button below.","runbox.runtime.overlay.terminated.title":"Runtime disconnected","runbox.runtime.overlay.terminated.connect":"Connect","runbox.runtime.overlay.terminated.unlimited":"Unlimited","runbox.runtime.overlay.terminated.contact":"Contact Customer Service","runbox.runtime.overlay.terminated.quota.total":"Total Available Time","runbox.runtime.overlay.terminated.quota.used":"Total Time Used","runbox.runtime.overlay.terminated.disk.total":"Total Disk","runbox.runtime.overlay.terminated.disk.used":"Total Disk Used","runbox.runtime.overlay.conflicted.description":"Connecting to this Runbox exercise will terminate the Runbox in another course material.\nPlease save any unsaved work first.","runbox.runtime.overlay.conflicted.title":"A Runbox is currently connected to another course material","runbox.runtime.dialog.change_material.title":"Notice of Runbox Connection Change","runbox.runtime.dialog.change_material.description":"Connecting to this Runbox exercise will terminate the Runbox in another course material. Do you want to continue?"};
|
|
2
2
|
|
|
3
3
|
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var ja = {"common.cancel":"キャンセル","material.tutoring.runbox_confirm_dialog.action.confirm":"進行","material.tutoring.runbox_confirm_dialog.content":"現在、{_termCourseRoleStudent} が実行中のランボックス環境です。接続すると、残りのランタイム使用時間が減少します。続行しますか?","material.tutoring.runbox_confirm_dialog.title":"実行中のランボックス","runbox.action.autoShutdown.title":"常にオン","runbox.action.autoShutdown.tooltip":"現在のセッションは離脱時に自動終了するため、この機能は使用できません。","runbox.action.grade.dialog.description.error":"
|
|
1
|
+
var ja = {"common.cancel":"キャンセル","material.tutoring.runbox_confirm_dialog.action.confirm":"進行","material.tutoring.runbox_confirm_dialog.content":"現在、{_termCourseRoleStudent} が実行中のランボックス環境です。接続すると、残りのランタイム使用時間が減少します。続行しますか?","material.tutoring.runbox_confirm_dialog.title":"実行中のランボックス","runbox.action.autoShutdown.title":"常にオン","runbox.action.autoShutdown.tooltip":"現在のセッションは離脱時に自動終了するため、この機能は使用できません。","runbox.action.grade.dialog.description.error":"コードまたは提出ファイルに問題があります。\n以下のエラーメッセージを確認し、提出形式が要件を満たしていることを確認してください。その後、再度提出してください。","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.isolated.description":"ランボックスのコードをリセットしてもよろしいですか? あなたのコードは {_termLibraryLecturePage} のデフォルトコードに上書きされます。\nリセット後、ランボックスのセッションがリフレッシュされます。","runbox.action.reset.dialog.shared.description":"Runboxのコードを初期化しますか?初期化すると、チームメンバーの画面でもコードがデフォルトに上書きされます。初期化後、Runboxセッションがリフレッシュされます。","runbox.action.reset.noti.error":"ランボックスコードの初期化中にエラーが発生しました。","runbox.action.reset.title":"リセットコード","runbox.action.restart.dialog.actions.confirm":"再起動","runbox.action.restart.dialog.isolated.description":"再起動してもよろしいですか?","runbox.action.restart.dialog.shared.description":"チームメンバーの画面でもRunboxが再起動されます。Runboxを再起動しますか?","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.action.submitLog.dialog.download.tooltip":"提出ファイルをダウンロード","runbox.action.submitLog.dialog.title":"提出履歴","runbox.action.submitLog.empty":"提出履歴が存在しません。","runbox.action.submitLog.title":"ランボックス提出履歴","runbox.action.disconnect.dialog.title":"Runboxの接続を解除","runbox.action.disconnect.dialog.description":"現在、実習を進行中です。Runboxの接続を解除しますか?\n保存していない内容がある場合は、先に保存してください。","runbox.action.disconnect.dialog.disconnect":"接続解除","runbox.action.disconnect.title":"接続解除","runbox.action.menu.title":"その他","runbox.alert.title":"現在、学生が実行中の環境に接続しているため、ランタイムの全使用時間が減少しています。学生がランボックスを終了しても、チュータリングを続ける限り、時間が引き続き減少するのでご注意ください。","runbox.common.close":"閉じる","runbox.common.retry":"リトライ","runbox.common.score":"{score}点","runbox.common.support":"サポート","runbox.common.connect":"接続する","runbox.context.command.ping.error":"タスクの処理中にエラーが発生しました。","runbox.header.submitInfo":"{isIndividual, select, true {個人} other {チーム}}の提出回数 | {remainCount}/{totalCount} 回残っています {isDailyLimitEnabled, select, true {今日} other {}}","runbox.timer.title":"残りのRunbox時間","runbox.timer.unlimited":"無制限","runbox.timer.tooltip.title":"時間の案内を見る","runbox.timer.popover.title":"ランボックス使用時間の案内","runbox.timer.popover.description":"{user}に付与されたランボックスの実習時間です。\n接続中は時間が減り続けます。時間の減少を止めるには、接続を解除するか教材から退出してください。使用しないときは必ず接続を解除してください。","runbox.timer.popover.quota.title":"総使用可能時間","runbox.timer.popover.quota_per_session.title":"今回の実習の残り時間","runbox.timer.popover.quota_per_session.description":"1回の実習には最大{time}の制限時間があります。総使用可能時間が残っていれば、再接続して実習を続けることができます。","runbox.timer.popover.quota.disconnect":"接続を解除","runbox.timer.almost_end.snackbar.quota_per_session":"1回の実習に割り当てられた時間は残り{time}です。","runbox.timer.almost_end.snackbar.quota":"Runboxの総利用可能時間は残り{time}です。","runbox.timer.almost_end.snackbar.detail":"詳細を見る","runbox.disk.almost_full.snackbar.almost_full":"ディスクの残り容量は {capacity} です。容量がすべてなくなると実習は終了しますので、進行中の作業を今すぐ保存してください。","runbox.runtime.message.lxp_plan_required":"現在、所属機関ではRunboxの学習資料を利用できません。\n詳細については機関の管理者にお問い合わせください。","runbox.runtime.message.runbox_unavailable":"Runboxは利用できません","runbox.runtime.message.startError":"ランボックスの起動中にエラーが発生しました。","runbox.runtime.overlay.assigned.description":"Runbox が実行中です。\nお待ちください!","runbox.runtime.overlay.assigned.description_timeout":"ランボックスを実行する時間が私たちの予想よりも長くかかっています。\n更新せずにもう少し待ってください!","runbox.runtime.overlay.queued.description":"現在{waiters}回待機中...","runbox.runtime.overlay.queued.description_zero":"Runboxはもうすぐ実行されます。","runbox.runtime.overlay.terminated.description.default":"Runboxの実習を続けるには、「接続」ボタンをクリックしてください。","runbox.runtime.overlay.terminated.description.os_disk_is_full":"ディスク容量をすべて使い切ったため、実習は終了しました。","runbox.runtime.overlay.terminated.description.quota_exceeded":"ランタイムの利用時間が終了したため、ランタイムは停止されました。","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"Runboxセッションごとの利用時間が終了したため、ランタイムは停止されました。\nRunboxに再接続するには、下のボタンをクリックしてください。","runbox.runtime.overlay.terminated.title":"接続解除","runbox.runtime.overlay.terminated.connect":"接続","runbox.runtime.overlay.terminated.unlimited":"無制限","runbox.runtime.overlay.terminated.contact":"カスタマーサービスにお問い合わせ","runbox.runtime.overlay.terminated.quota.total":"利用可能時間の合計","runbox.runtime.overlay.terminated.quota.used":"総利用時間","runbox.runtime.overlay.terminated.disk.total":"ディスク合計","runbox.runtime.overlay.terminated.disk.used":"使用済みディスク合計","runbox.runtime.overlay.conflicted.description":"このランボックス演習に接続すると、他の教材のランボックスは終了します。\n保存していない内容がある場合は、先に保存してください。","runbox.runtime.overlay.conflicted.title":"現在、他の教材にランボックスが接続されています","runbox.runtime.dialog.change_material.title":"ランボックス接続変更のお知らせ","runbox.runtime.dialog.change_material.description":"このランボックス演習に接続すると、他の教材のランボックスは終了します。続行しますか?"};
|
|
2
2
|
|
|
3
3
|
export { ja as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageKo = {"common.cancel":"취소","material.tutoring.runbox_confirm_dialog.action.confirm":"진행","material.tutoring.runbox_confirm_dialog.content":"현재 {_termCourseRoleStudent}이/가 실행 중인 런박스 환경입니다. 접속할 경우 남은 런타임 전체 사용 시간이 줄어듭니다. 계속 진행하시겠습니까?","material.tutoring.runbox_confirm_dialog.title":"실행 중인 런박스","runbox.action.autoShutdown.title":"항상 켜두기","runbox.action.autoShutdown.tooltip":"현재 이탈 시 종료되는 실습으로 해당 기능을 사용할 수 없습니다.","runbox.action.grade.dialog.description.error":"
|
|
1
|
+
var messageKo = {"common.cancel":"취소","material.tutoring.runbox_confirm_dialog.action.confirm":"진행","material.tutoring.runbox_confirm_dialog.content":"현재 {_termCourseRoleStudent}이/가 실행 중인 런박스 환경입니다. 접속할 경우 남은 런타임 전체 사용 시간이 줄어듭니다. 계속 진행하시겠습니까?","material.tutoring.runbox_confirm_dialog.title":"실행 중인 런박스","runbox.action.autoShutdown.title":"항상 켜두기","runbox.action.autoShutdown.tooltip":"현재 이탈 시 종료되는 실습으로 해당 기능을 사용할 수 없습니다.","runbox.action.grade.dialog.description.error":"코드 또는 제출 파일에 문제가 있어 제출에 실패했습니다.\n아래 오류 메시지를 참고하여 제출 형식이 요구사항에 맞는지 확인한 뒤, 다시 제출해주세요.","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.isolated.description":"런박스 코드를 초기화하시겠습니까? 초기화 시 학습{_termLibraryLecturePage}의 코드가 기본 코드로 덮어씌워집니다.\n초기화 이후 런박스 세션이 새로고침 됩니다.","runbox.action.reset.dialog.shared.description":"런박스 코드를 초기화하시겠습니까? 초기화 시 팀원들의 화면에서도 작성한 코드가 기본 코드로 덮어씌워집니다. 초기화 이후 런박스 세션이 새로고침 됩니다.","runbox.action.reset.noti.error":"런박스 코드를 초기화 하는 중에 오류가 발생했습니다.","runbox.action.reset.title":"코드 초기화","runbox.action.restart.dialog.actions.confirm":"재시작","runbox.action.restart.dialog.isolated.description":"런박스를 재시작 하시겠습니까?","runbox.action.restart.dialog.shared.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.action.submitLog.dialog.download.tooltip":"제출 파일 다운로드","runbox.action.submitLog.dialog.title":"제출 이력","runbox.action.submitLog.empty":"제출 이력이 존재하지 않습니다.","runbox.action.submitLog.title":"런박스 제출 이력","runbox.action.disconnect.dialog.title":"런박스 연결 해제","runbox.action.disconnect.dialog.description":"현재 실습을 진행중 입니다. 런박스를 연결 해제하시겠습니까?\n저장하지 않은 내용이 있다면 먼저 저장해 주세요.","runbox.action.disconnect.dialog.disconnect":"연결 해제","runbox.action.disconnect.title":"연결 해제","runbox.action.menu.title":"더보기","runbox.alert.title":"현재 학생이 실행 중인 환경에 접속하였기 때문에, 런타임 전체 사용 시간이 차감되고 있습니다. 학생이 런박스를 종료하더라도, 튜터링을 진행하면 시간이 계속 차감되니 유의해 주세요.","runbox.common.close":"닫기","runbox.common.retry":"재시도","runbox.common.score":"{score}점","runbox.common.support":"고객센터","runbox.common.connect":"연결하기","runbox.context.command.ping.error":"런박스 작업을 수행하는 도중 오류가 발생했습니다.","runbox.header.submitInfo":"{isIndividual, select, true {} other {팀}} 제출 횟수 | {isDailyLimitEnabled, select, true {오늘} other {}} {remainCount}/{totalCount}회 남음","runbox.timer.title":"남은 런박스 시간","runbox.timer.unlimited":"제한없음","runbox.timer.tooltip.title":"시간 안내 보기","runbox.timer.popover.title":"런박스 사용 시간 안내","runbox.timer.popover.description":"{user} 님에게 부여된 런박스 실습 시간입니다.\n연결 상태에서는 시간이 계속 차감되며, 연결을 해제하거나 수업 자료를 나가야 차감이 중단됩니다. 사용하지 않을 때는 꼭 연결을 해제해주세요.","runbox.timer.popover.quota.title":"총 사용 가능 시간","runbox.timer.popover.quota_per_session.title":"이번 실습 남은 시간","runbox.timer.popover.quota_per_session.description":"실습 회당 최대 {time}의 제한시간이 있습니다. 총 사용 가능 시간이 남아 있다면, 다시 런박스를 연결해 실습을 이어하실 수 있습니다.","runbox.timer.popover.quota.disconnect":"연결 해제","runbox.timer.almost_end.snackbar.quota_per_session":"실습 회당 부여된 시간 {time} 남았습니다.","runbox.timer.almost_end.snackbar.quota":"런박스 총 사용 가능 시간이 {time} 남았습니다.","runbox.timer.almost_end.snackbar.detail":"더 알아보기","runbox.disk.almost_full.snackbar.almost_full":"디스크 잔여 용량이 {capacity}입니다. 용량이 모두 소진되면 실습이 종료되니,\n진행 중인 작업을 지금 저장해 주세요.","runbox.runtime.message.lxp_plan_required":"현재 기관에서는 런박스 수업 자료를 학습할 수 없습니다.\n자세한 사항은 기관 관리자에게 문의하세요.","runbox.runtime.message.runbox_unavailable":"런박스 사용 불가","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":"런박스 실습을 진행하시려면, 연결하기 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"디스크 용량을 모두 소진하여 실습이 종료되었습니다.","runbox.runtime.overlay.terminated.description.quota_exceeded":"런타임 사용시간이 만료되어 런타임이 종료되었습니다.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"런박스 세션당 사용시간이 만료되어 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.title":"연결 해제","runbox.runtime.overlay.terminated.connect":"연결하기","runbox.runtime.overlay.terminated.unlimited":"제한 없음","runbox.runtime.overlay.terminated.contact":"고객센터 문의하기","runbox.runtime.overlay.terminated.quota.total":"전체 사용 가능 시간","runbox.runtime.overlay.terminated.quota.used":"총 사용 시간","runbox.runtime.overlay.terminated.disk.total":"전체 디스크","runbox.runtime.overlay.terminated.disk.used":"총 사용 디스크","runbox.runtime.overlay.conflicted.description":"이 런박스 실습을 연결하면 다른 수업자료의 런박스는 종료됩니다.\n저장하지 않은 내용이 있다면 먼저 저장해 주세요.","runbox.runtime.overlay.conflicted.title":"현재 다른 수업자료에 런박스가 연결되어 있습니다","runbox.runtime.dialog.change_material.title":"런박스 연결 변경 안내","runbox.runtime.dialog.change_material.description":"이 런박스 실습을 연결하면 다른 수업자료의 런박스는 종료됩니다. 계속하시겠습니까?"};
|
|
2
2
|
|
|
3
3
|
export { messageKo as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var th = {"common.cancel":"ยกเลิก","material.tutoring.runbox_confirm_dialog.action.confirm":"ดำเนินการ","material.tutoring.runbox_confirm_dialog.content":"ขณะนี้นักเรียน {_termCourseRoleStudent} กำลังทำงานในสภาพแวดล้อม Runbox หากคุณเชื่อมต่อ เวลาที่เหลือสำหรับการใช้งานรันไทม์ทั้งหมดจะลดลง คุณต้องการดำเนินการต่อหรือไม่?","material.tutoring.runbox_confirm_dialog.title":"รันบ็อกซ์กำลังทำงาน","runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip":"คุณสมบัตินี้ไม่สามารถใช้งานได้ในเซสชันนี้ เนื่องจากมีการตั้งค่าให้ปิดการทำงานอัตโนมัติเมื่อออก","runbox.action.grade.dialog.description.error":"
|
|
1
|
+
var th = {"common.cancel":"ยกเลิก","material.tutoring.runbox_confirm_dialog.action.confirm":"ดำเนินการ","material.tutoring.runbox_confirm_dialog.content":"ขณะนี้นักเรียน {_termCourseRoleStudent} กำลังทำงานในสภาพแวดล้อม Runbox หากคุณเชื่อมต่อ เวลาที่เหลือสำหรับการใช้งานรันไทม์ทั้งหมดจะลดลง คุณต้องการดำเนินการต่อหรือไม่?","material.tutoring.runbox_confirm_dialog.title":"รันบ็อกซ์กำลังทำงาน","runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip":"คุณสมบัตินี้ไม่สามารถใช้งานได้ในเซสชันนี้ เนื่องจากมีการตั้งค่าให้ปิดการทำงานอัตโนมัติเมื่อออก","runbox.action.grade.dialog.description.error":"มีปัญหาในโค้ดหรือไฟล์ที่ส่ง\nกรุณาตรวจสอบข้อความข้อผิดพลาดด้านล่างและตรวจสอบว่ารูปแบบการส่งตรงกับความต้องการ จากนั้นส่งอีกครั้ง","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.isolated.description":"ต้องการรีเซ็ตโค้ด Runbox หรือไม่? การรีเซ็ตจะแทนที่โค้ดของคุณด้วยโค้ดเริ่มต้นของหน้าเรียน {_termLibraryLecturePage} \nเซสชัน Runbox จะรีเฟรชหลังจากรีเซ็ต","runbox.action.reset.dialog.shared.description":"คุณต้องการรีเซ็ตโค้ดของ Runbox หรือไม่? หากทำการรีเซ็ต โค้ดที่ทีมเขียนไว้จะถูกเขียนทับด้วยโค้ดเริ่มต้น และเซสชันของ Runbox จะถูกรีเฟรชหลังจากนั้น","runbox.action.reset.noti.error":"เกิดข้อผิดพลาดระหว่างการรีเซ็ตโค้ด Runbox","runbox.action.reset.title":"รีเซ็ตโค้ด","runbox.action.restart.dialog.actions.confirm":"เริ่มต้นใหม่","runbox.action.restart.dialog.isolated.description":"ต้องการเริ่มต้น Runbox ใหม่หรือไม่?","runbox.action.restart.dialog.shared.description":"Runbox จะเริ่มต้นใหม่บนหน้าจอของเพื่อนร่วมทีมด้วย คุณต้องการเริ่มต้น 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.action.submitLog.dialog.download.tooltip":"ดาวน์โหลดไฟล์ที่ส่ง","runbox.action.submitLog.dialog.title":"ประวัติการส่ง","runbox.action.submitLog.empty":"ไม่มีประวัติการส่ง","runbox.action.submitLog.title":"ประวัติการส่ง Runbox","runbox.action.disconnect.dialog.title":"ยกเลิกการเชื่อมต่อ Runbox","runbox.action.disconnect.dialog.description":"คุณกำลังอยู่ในระหว่างการฝึกปฏิบัติ ต้องการยกเลิกการเชื่อมต่อ Runbox หรือไม่?\nหากมีงานที่ยังไม่ได้บันทึก กรุณาบันทึกก่อน","runbox.action.disconnect.dialog.disconnect":"ยกเลิกการเชื่อมต่อ","runbox.action.disconnect.title":"ยกเลิกการเชื่อมต่อ","runbox.action.menu.title":"เพิ่มเติม","runbox.alert.title":"คุณได้เชื่อมต่อกับสภาพแวดล้อมที่นักเรียนกำลังทำงานอยู่ และเวลาใช้งานรันไทม์ทั้งหมดกำลังถูกหัก โปรดทราบว่าหากนักเรียนออกจากรันบ็อกซ์ แต่การให้คำปรึกษายังดำเนินต่อไป เวลาจะยังคงถูกหัก","runbox.common.close":"ปิด","runbox.common.retry":"ลองใหม่","runbox.common.score":"{score} คะแนน","runbox.common.support":"สนับสนุน","runbox.common.connect":"เชื่อมต่อ","runbox.context.command.ping.error":"เกิดข้อผิดพลาดขณะดำเนินการ Runbox","runbox.header.submitInfo":"{isIndividual, select, true {การส่งแบบส่วนตัว} other {การส่งแบบทีม}} | {remainCount}/{totalCount} ครั้งที่เหลือ | {isDailyLimitEnabled, select, true {วันนี้} other {}} ","runbox.timer.title":"เวลาที่เหลือของ Runbox","runbox.timer.unlimited":"ไม่จำกัด","runbox.timer.tooltip.title":"ดูข้อมูลเวลา","runbox.timer.popover.title":"คู่มือเวลาใช้งาน Runbox","runbox.timer.popover.description":"นี่คือเวลาการใช้งาน Runbox ที่มอบให้กับ {user}\nหากยังเชื่อมต่ออยู่ เวลาจะถูกหักออกอย่างต่อเนื่อง กรุณาตัดการเชื่อมต่อหรือออกจากเนื้อหาบทเรียนเมื่อไม่ใช้งานเพื่อหยุดการหักเวลา","runbox.timer.popover.quota.title":"เวลาที่สามารถใช้งานได้ทั้งหมด","runbox.timer.popover.quota_per_session.title":"เวลาที่เหลือของเซสชันนี้","runbox.timer.popover.quota_per_session.description":"แต่ละเซสชันมีเวลาจำกัดสูงสุดที่ {time} หากยังมีเวลารวมเหลืออยู่ คุณสามารถเชื่อมต่อใหม่และทำกิจกรรมต่อได้","runbox.timer.popover.quota.disconnect":"ตัดการเชื่อมต่อ","runbox.timer.almost_end.snackbar.quota_per_session":"เหลือเวลา {time} สำหรับแต่ละรอบการฝึกปฏิบัติ","runbox.timer.almost_end.snackbar.quota":"เหลือเวลาใช้งาน Runbox ทั้งหมด {time}","runbox.timer.almost_end.snackbar.detail":"ดูเพิ่มเติม","runbox.disk.almost_full.snackbar.almost_full":"พื้นที่ดิสก์ที่เหลืออยู่คือ {capacity} หากพื้นที่หมด การฝึกปฏิบัติจะสิ้นสุดลง กรุณาบันทึกงานที่กำลังทำอยู่ตอนนี้","runbox.runtime.message.lxp_plan_required":"ขณะนี้สถาบันของคุณไม่รองรับการใช้งานสื่อการเรียนการสอน Runbox\nโปรดติดต่อผู้ดูแลระบบของสถาบันของคุณสำหรับข้อมูลเพิ่มเติม","runbox.runtime.message.runbox_unavailable":"ไม่สามารถใช้ Runbox ได้","runbox.runtime.message.startError":"เกิดข้อผิดพลาดขณะเริ่ม Runbox","runbox.runtime.overlay.assigned.description":"(3 / 3)\nRunbox กำลังทำงานอยู่\nกรุณารอสักครู่!","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\nRunbox ใช้เวลานานกว่าที่คาดไว้ในการทำงาน\nกรุณาอย่ารีเฟรชและรอสักครู่!","runbox.runtime.overlay.queued.description":"(2 / 3)\nกำลังรอคิวอยู่ที่ {waiters}...","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\nRunbox ของคุณจะเริ่มทำงานเร็วๆ นี้","runbox.runtime.overlay.terminated.description.default":"หากต้องการดำเนินการฝึก Runbox ต่อ กรุณาคลิกปุ่มเชื่อมต่อ","runbox.runtime.overlay.terminated.description.os_disk_is_full":"พื้นที่ดิสก์ถูกใช้งานจนหมดแล้ว การฝึกปฏิบัติได้สิ้นสุดลง","runbox.runtime.overlay.terminated.description.quota_exceeded":"รันไทม์ถูกยกเลิกเนื่องจากเวลาการใช้งานหมดอายุแล้ว","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"รันไทม์ถูกยกเลิกเนื่องจากเวลาการใช้งานต่อเซสชันหมดอายุแล้ว\nหากต้องการเชื่อมต่อกับ Runbox อีกครั้ง กรุณากดปุ่มด้านล่าง","runbox.runtime.overlay.terminated.title":"การเชื่อมต่อถูกยกเลิก","runbox.runtime.overlay.terminated.connect":"เชื่อมต่อ","runbox.runtime.overlay.terminated.unlimited":"ไม่จำกัด","runbox.runtime.overlay.terminated.contact":"ติดต่อฝ่ายบริการลูกค้า","runbox.runtime.overlay.terminated.quota.total":"เวลาที่สามารถใช้งานได้ทั้งหมด","runbox.runtime.overlay.terminated.quota.used":"เวลาที่ใช้ไปทั้งหมด","runbox.runtime.overlay.terminated.disk.total":"พื้นที่ดิสก์ทั้งหมด","runbox.runtime.overlay.terminated.disk.used":"พื้นที่ดิสก์ที่ใช้ไปทั้งหมด","runbox.runtime.overlay.conflicted.description":"การเชื่อมต่อกับการฝึก Runbox นี้จะยุติการทำงานของ Runbox ในสื่อการสอนอื่น\nกรุณาบันทึกงานที่ยังไม่ได้บันทึกก่อน","runbox.runtime.overlay.conflicted.title":"ขณะนี้ Runbox เชื่อมต่อกับสื่อการสอนอื่นอยู่","runbox.runtime.dialog.change_material.title":"ประกาศการเปลี่ยนการเชื่อมต่อ Runbox","runbox.runtime.dialog.change_material.description":"การเชื่อมต่อกับการฝึก Runbox นี้จะยุติการทำงานของ Runbox ในสื่อการสอนอื่น คุณต้องการดำเนินการต่อหรือไม่?"};
|
|
2
2
|
|
|
3
3
|
export { th as default };
|
|
@@ -3,19 +3,21 @@ import type { RunboxGetAndListResponse, RuntimeGetAndListResponse, RuntimeTempla
|
|
|
3
3
|
import type { QueryObserverResult } from '@tanstack/react-query';
|
|
4
4
|
import type { GetAchievementColor } from '../MaterialRunboxContent';
|
|
5
5
|
export interface RuntimeProps {
|
|
6
|
-
/**
|
|
6
|
+
/** Runbox. */
|
|
7
7
|
runbox: RunboxGetAndListResponse;
|
|
8
|
-
/**
|
|
8
|
+
/** Runtime. */
|
|
9
9
|
runtime: RuntimeGetAndListResponse | null;
|
|
10
|
-
/**
|
|
10
|
+
/** Runtime template. */
|
|
11
11
|
runtimeTemplate: RuntimeTemplateGetAndListResponse;
|
|
12
|
-
/**
|
|
12
|
+
/** Course ID. */
|
|
13
13
|
courseId: number;
|
|
14
|
-
/**
|
|
14
|
+
/** User ID for tutoring. */
|
|
15
15
|
studentUserId?: number;
|
|
16
|
-
/**
|
|
16
|
+
/** User ID for tutor. */
|
|
17
17
|
userId?: number;
|
|
18
|
-
/**
|
|
18
|
+
/** Whether tutoring is enabled.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
19
21
|
isTutoring?: boolean;
|
|
20
22
|
/** */
|
|
21
23
|
refetch: () => Promise<QueryObserverResult<[
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface MaterialRunboxTimerProps {
|
|
2
|
+
export interface MaterialRunboxTimerProps {
|
|
3
3
|
runboxId: string;
|
|
4
4
|
userId: number | undefined;
|
|
5
5
|
headerElement: HTMLElement | null;
|
|
6
6
|
stopRuntime: () => Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Hide timer detail popover?
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
hideTimerPopover?: boolean;
|
|
7
12
|
}
|
|
8
13
|
declare const MaterialRunboxTimer: React.FC<MaterialRunboxTimerProps>;
|
|
9
14
|
export default MaterialRunboxTimer;
|
|
@@ -23,7 +23,9 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
|
|
|
23
23
|
var runboxId = _ref.runboxId,
|
|
24
24
|
userId = _ref.userId,
|
|
25
25
|
headerElement = _ref.headerElement,
|
|
26
|
-
stopRuntime = _ref.stopRuntime
|
|
26
|
+
stopRuntime = _ref.stopRuntime,
|
|
27
|
+
_ref$hideTimerPopover = _ref.hideTimerPopover,
|
|
28
|
+
hideTimerPopover = _ref$hideTimerPopover === void 0 ? false : _ref$hideTimerPopover;
|
|
27
29
|
var intl = useRawEliceIntl();
|
|
28
30
|
var _useEliceRunboxRunnin = useEliceRunboxRunning(),
|
|
29
31
|
status = _useEliceRunboxRunnin.status;
|
|
@@ -116,6 +118,9 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
|
|
|
116
118
|
*
|
|
117
119
|
*/
|
|
118
120
|
var renderTimerDetailPopover = function renderTimerDetailPopover() {
|
|
121
|
+
if (hideTimerPopover) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
119
124
|
return jsx(MaterialRunboxTimerDetailPopover, {
|
|
120
125
|
userId: userId,
|
|
121
126
|
open: isTimerDetailPopoverOpen,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as MaterialRunboxTimer } from './MaterialRunboxTimer';
|
|
2
|
-
export {
|
|
2
|
+
export type { MaterialRunboxTimerProps } from './MaterialRunboxTimer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-runbox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.251120.0",
|
|
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",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@elice/api-client": "^1.250702.0",
|
|
57
57
|
"@elice/intl": "0.241127.0",
|
|
58
|
-
"@elice/material-shared-types": "1.
|
|
59
|
-
"@elice/material-shared-utils": "1.
|
|
58
|
+
"@elice/material-shared-types": "1.251120.0",
|
|
59
|
+
"@elice/material-shared-utils": "1.251120.0",
|
|
60
60
|
"@elice/mui-elements": "^5.250108.0-controllabel.0",
|
|
61
61
|
"@elice/mui-system": "^5.250108.0-controllabel.0",
|
|
62
62
|
"@elice/mui-x-snackbar": "^5.250108.0-controllabel.0",
|