@elice/material-runbox 1.260910.0 → 1.260915.0-edsmigration.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/MaterialAdminRunboxConfirmDialog.js +7 -7
- package/cjs/components/material-runbox/MaterialRunbox.js +2 -2
- package/cjs/components/material-runbox/MaterialRunboxAlert.js +3 -3
- package/cjs/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
- package/cjs/components/material-runbox/MaterialRunboxContent.js +33 -23
- package/cjs/components/material-runbox/MaterialRunboxHeader.js +13 -11
- package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +5 -5
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +6 -6
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +11 -9
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +7 -8
- package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +25 -24
- package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.js +11 -7
- package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +15 -16
- package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +13 -14
- package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +8 -8
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +6 -6
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +46 -38
- package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +2 -2
- package/cjs/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
- package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +5 -5
- package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +17 -13
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +5 -6
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +20 -16
- package/cjs/components/material-runbox/hooks/useRunboxControl.js +2 -2
- package/cjs/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +7 -7
- package/cjs/components/material-runbox/runtime/RuntimeOverlayConflicted.js +39 -27
- package/cjs/components/material-runbox/runtime/RuntimeOverlayLoading.js +68 -49
- package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +35 -27
- package/cjs/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
- package/cjs/components/material-runbox/status/MaterialRunboxStatusButton.js +7 -7
- package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
- package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +16 -10
- package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
- package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.js +24 -20
- package/cjs/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +22 -14
- package/cjs/components/material-runbox/theme.d.ts +2 -2
- package/cjs/components/material-runbox/theme.js +3 -3
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +39 -25
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +7 -5
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +39 -25
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +9 -5
- package/cjs/components/material-runbox/timer/MaterialRunboxTimer.js +17 -13
- package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
- package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +76 -48
- package/cjs/components/shared/hooks/useBreakpoint.d.ts +2 -2
- package/cjs/components/shared/hooks/useBreakpoint.js +3 -3
- package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
- package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +12 -11
- package/es/components/material-runbox/MaterialAdminRunboxConfirmDialog.js +1 -1
- package/es/components/material-runbox/MaterialRunbox.js +1 -1
- package/es/components/material-runbox/MaterialRunboxAlert.js +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.js +19 -9
- package/es/components/material-runbox/MaterialRunboxHeader.js +9 -7
- package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +2 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +3 -3
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +4 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +4 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +6 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionMenu.js +8 -4
- package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +5 -6
- package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +4 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +4 -4
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +3 -3
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +28 -20
- package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +1 -1
- package/es/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
- package/es/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +3 -3
- package/es/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +10 -6
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +3 -4
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +10 -6
- package/es/components/material-runbox/hooks/useRunboxControl.js +1 -1
- package/es/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +1 -1
- package/es/components/material-runbox/runtime/RuntimeOverlayConflicted.js +26 -14
- package/es/components/material-runbox/runtime/RuntimeOverlayLoading.js +38 -19
- package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +20 -12
- package/es/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
- package/es/components/material-runbox/status/MaterialRunboxStatusButton.js +5 -5
- package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
- package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +13 -7
- package/es/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
- package/es/components/material-runbox/status/MaterialRunboxStatusPopover.js +19 -15
- package/es/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +17 -9
- package/es/components/material-runbox/theme.d.ts +2 -2
- package/es/components/material-runbox/theme.js +1 -1
- package/es/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +26 -12
- package/es/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +5 -3
- package/es/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +26 -12
- package/es/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +7 -3
- package/es/components/material-runbox/timer/MaterialRunboxTimer.js +11 -7
- package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
- package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +55 -27
- package/es/components/shared/hooks/useBreakpoint.d.ts +2 -2
- package/es/components/shared/hooks/useBreakpoint.js +1 -1
- package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
- package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +10 -9
- package/package.json +17 -18
|
@@ -6,9 +6,9 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var apiClient = require('@elice/api-client');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
9
10
|
var runboxClient = require('@elice/runbox-client');
|
|
10
11
|
var types = require('@elice/types');
|
|
11
|
-
var material = require('@mui/material');
|
|
12
12
|
var reactQuery = require('@tanstack/react-query');
|
|
13
13
|
var MaterialRunboxActionAutoShutdown = require('./MaterialRunboxActionAutoShutdown.js');
|
|
14
14
|
var MaterialRunboxActionDisconnectMenuItem = require('./MaterialRunboxActionDisconnectMenuItem.js');
|
|
@@ -83,7 +83,7 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
|
|
|
83
83
|
//
|
|
84
84
|
//
|
|
85
85
|
//
|
|
86
|
-
return jsxRuntime.jsxs(
|
|
86
|
+
return jsxRuntime.jsxs(edsMaterial.Menu, {
|
|
87
87
|
open: Boolean(menuAnchorEl),
|
|
88
88
|
anchorEl: menuAnchorEl,
|
|
89
89
|
anchorOrigin: {
|
|
@@ -94,20 +94,24 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
|
|
|
94
94
|
vertical: 'top',
|
|
95
95
|
horizontal: 'right'
|
|
96
96
|
},
|
|
97
|
-
|
|
97
|
+
slots: {
|
|
98
|
+
transition: edsMaterial.Fade
|
|
99
|
+
},
|
|
98
100
|
onClose: handleMenuClose,
|
|
99
101
|
children: [enableAutoShutdown ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
100
|
-
children: [jsxRuntime.jsx(
|
|
102
|
+
children: [jsxRuntime.jsx(edsMaterial.Stack, {
|
|
101
103
|
direction: "row",
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
sx: {
|
|
105
|
+
padding: '0.25rem 0.5rem',
|
|
106
|
+
alignItems: 'center'
|
|
107
|
+
},
|
|
104
108
|
children: jsxRuntime.jsx(MaterialRunboxActionAutoShutdown.default, {
|
|
105
109
|
runtime: runtime,
|
|
106
110
|
runtimeTemplate: runtimeTemplate,
|
|
107
111
|
courseId: courseId,
|
|
108
112
|
refetch: refetch
|
|
109
113
|
})
|
|
110
|
-
}), jsxRuntime.jsx(
|
|
114
|
+
}), jsxRuntime.jsx(edsMaterial.Divider, {
|
|
111
115
|
sx: {
|
|
112
116
|
margin: '0.5rem 0'
|
|
113
117
|
}
|
|
@@ -5,14 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
10
|
+
var edsXSnackbar = require('@elice/eds-x-snackbar');
|
|
8
11
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
|
-
var muiXSnackbar = require('@elice/mui-x-snackbar');
|
|
11
12
|
var openapiClientMaterialRunbox = require('@elice/openapi-client-material-runbox');
|
|
12
13
|
var types = require('@elice/types');
|
|
13
14
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
14
|
-
var lab = require('@mui/lab');
|
|
15
|
-
var material = require('@mui/material');
|
|
16
15
|
var MaterialRunboxApiContext = require('../contexts/MaterialRunboxApiContext.js');
|
|
17
16
|
var MaterialRunboxCommandContext = require('../contexts/MaterialRunboxCommandContext.js');
|
|
18
17
|
|
|
@@ -28,7 +27,7 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
|
|
|
28
27
|
courseId = _ref.courseId,
|
|
29
28
|
envMode = _ref.envMode;
|
|
30
29
|
var intl$1 = intl.useRawEliceIntl();
|
|
31
|
-
var _useSnackbar =
|
|
30
|
+
var _useSnackbar = edsXSnackbar.useSnackbar(),
|
|
32
31
|
enqueueSnackbar = _useSnackbar.enqueueSnackbar;
|
|
33
32
|
var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
|
|
34
33
|
var _React$useState = React__default.default.useState(false),
|
|
@@ -100,16 +99,16 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
|
|
|
100
99
|
*
|
|
101
100
|
*/
|
|
102
101
|
var renderResetMenuItem = function renderResetMenuItem() {
|
|
103
|
-
return jsxRuntime.jsxs(
|
|
102
|
+
return jsxRuntime.jsxs(edsMaterial.MenuItem, {
|
|
104
103
|
disabled: isLastCommandRunning,
|
|
105
104
|
onClick: function onClick() {
|
|
106
105
|
return setDialogOpened(true);
|
|
107
106
|
},
|
|
108
|
-
children: [jsxRuntime.jsx(
|
|
109
|
-
children: jsxRuntime.jsx(
|
|
107
|
+
children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
|
|
108
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
110
109
|
icon: proSolidSvgIcons.faRefresh
|
|
111
110
|
})
|
|
112
|
-
}), jsxRuntime.jsx(
|
|
111
|
+
}), jsxRuntime.jsx(edsMaterial.ListItemText, {
|
|
113
112
|
children: intl$1.formatMessage({
|
|
114
113
|
id: 'runbox.action.reset.title'
|
|
115
114
|
})
|
|
@@ -123,17 +122,17 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
|
|
|
123
122
|
if (!isDialogOpened) {
|
|
124
123
|
return null;
|
|
125
124
|
}
|
|
126
|
-
return jsxRuntime.jsxs(
|
|
125
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
127
126
|
open: true,
|
|
128
127
|
fullWidth: true,
|
|
129
128
|
maxWidth: "xs",
|
|
130
129
|
onClose: handleDialogClose,
|
|
131
|
-
children: [jsxRuntime.jsx(
|
|
130
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
132
131
|
children: intl$1.formatMessage({
|
|
133
132
|
id: 'runbox.action.reset.title'
|
|
134
133
|
})
|
|
135
|
-
}), jsxRuntime.jsx(
|
|
136
|
-
children: jsxRuntime.jsx(
|
|
134
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
135
|
+
children: jsxRuntime.jsx(edsMaterial.DialogContentText, {
|
|
137
136
|
sx: {
|
|
138
137
|
whiteSpace: 'pre-line'
|
|
139
138
|
},
|
|
@@ -143,15 +142,15 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
|
|
|
143
142
|
id: 'runbox.action.reset.dialog.shared.description'
|
|
144
143
|
})
|
|
145
144
|
})
|
|
146
|
-
}), jsxRuntime.jsxs(
|
|
147
|
-
children: [jsxRuntime.jsx(
|
|
145
|
+
}), jsxRuntime.jsxs(edsMaterial.DialogActions, {
|
|
146
|
+
children: [jsxRuntime.jsx(edsMaterial.Button, {
|
|
148
147
|
color: "inherit",
|
|
149
148
|
disabled: isLoading,
|
|
150
149
|
onClick: handleDialogClose,
|
|
151
150
|
children: intl$1.formatMessage({
|
|
152
151
|
id: 'runbox.common.close'
|
|
153
152
|
})
|
|
154
|
-
}), jsxRuntime.jsx(
|
|
153
|
+
}), jsxRuntime.jsx(edsMaterial.Button, {
|
|
155
154
|
variant: "contained",
|
|
156
155
|
color: "warning",
|
|
157
156
|
loading: isLoading || isLastCommandRunning,
|
|
@@ -5,12 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
11
|
var types = require('@elice/types');
|
|
11
12
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
12
|
-
var lab = require('@mui/lab');
|
|
13
|
-
var material = require('@mui/material');
|
|
14
13
|
var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
|
|
15
14
|
|
|
16
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -54,15 +53,15 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
|
|
|
54
53
|
*
|
|
55
54
|
*/
|
|
56
55
|
var renderRestartMenuItem = function renderRestartMenuItem() {
|
|
57
|
-
return jsxRuntime.jsxs(
|
|
56
|
+
return jsxRuntime.jsxs(edsMaterial.MenuItem, {
|
|
58
57
|
onClick: function onClick() {
|
|
59
58
|
return setDialogOpened(true);
|
|
60
59
|
},
|
|
61
|
-
children: [jsxRuntime.jsx(
|
|
62
|
-
children: jsxRuntime.jsx(
|
|
60
|
+
children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
|
|
61
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
63
62
|
icon: proSolidSvgIcons.faRotateRight
|
|
64
63
|
})
|
|
65
|
-
}), jsxRuntime.jsx(
|
|
64
|
+
}), jsxRuntime.jsx(edsMaterial.ListItemText, {
|
|
66
65
|
children: intl$1.formatMessage({
|
|
67
66
|
id: 'runbox.action.restart.title'
|
|
68
67
|
})
|
|
@@ -76,17 +75,17 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
|
|
|
76
75
|
if (!isDialogOpened) {
|
|
77
76
|
return null;
|
|
78
77
|
}
|
|
79
|
-
return jsxRuntime.jsxs(
|
|
78
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
80
79
|
open: true,
|
|
81
80
|
fullWidth: true,
|
|
82
81
|
maxWidth: "xs",
|
|
83
82
|
onClose: handleDialogClose,
|
|
84
|
-
children: [jsxRuntime.jsx(
|
|
83
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
85
84
|
children: intl$1.formatMessage({
|
|
86
85
|
id: 'runbox.action.restart.title'
|
|
87
86
|
})
|
|
88
|
-
}), jsxRuntime.jsx(
|
|
89
|
-
children: jsxRuntime.jsx(
|
|
87
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
88
|
+
children: jsxRuntime.jsx(edsMaterial.DialogContentText, {
|
|
90
89
|
sx: {
|
|
91
90
|
whiteSpace: 'pre-line'
|
|
92
91
|
},
|
|
@@ -96,15 +95,15 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
|
|
|
96
95
|
id: 'runbox.action.restart.dialog.shared.description'
|
|
97
96
|
})
|
|
98
97
|
})
|
|
99
|
-
}), jsxRuntime.jsxs(
|
|
100
|
-
children: [jsxRuntime.jsx(
|
|
98
|
+
}), jsxRuntime.jsxs(edsMaterial.DialogActions, {
|
|
99
|
+
children: [jsxRuntime.jsx(edsMaterial.Button, {
|
|
101
100
|
color: "inherit",
|
|
102
101
|
disabled: isStarting,
|
|
103
102
|
onClick: handleDialogClose,
|
|
104
103
|
children: intl$1.formatMessage({
|
|
105
104
|
id: 'runbox.common.close'
|
|
106
105
|
})
|
|
107
|
-
}), jsxRuntime.jsx(
|
|
106
|
+
}), jsxRuntime.jsx(edsMaterial.Button, {
|
|
108
107
|
variant: "contained",
|
|
109
108
|
color: "warning",
|
|
110
109
|
loading: isStarting,
|
|
@@ -6,12 +6,12 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var reactUse = require('react-use');
|
|
9
|
+
var edsKit = require('@elice/eds-kit');
|
|
10
|
+
var edsMaterial = require('@elice/eds-material');
|
|
11
|
+
var edsXSnackbar = require('@elice/eds-x-snackbar');
|
|
9
12
|
var intl = require('@elice/intl');
|
|
10
|
-
var muiElements = require('@elice/mui-elements');
|
|
11
|
-
var muiXSnackbar = require('@elice/mui-x-snackbar');
|
|
12
13
|
var runboxClient = require('@elice/runbox-client');
|
|
13
14
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
14
|
-
var material = require('@mui/material');
|
|
15
15
|
var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -24,7 +24,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
24
24
|
var MaterialRunboxActionShare = function MaterialRunboxActionShare(_ref) {
|
|
25
25
|
var handleMenuClose = _ref.handleMenuClose;
|
|
26
26
|
var intl$1 = intl.useRawEliceIntl();
|
|
27
|
-
var _useSnackbar =
|
|
27
|
+
var _useSnackbar = edsXSnackbar.useSnackbar(),
|
|
28
28
|
enqueueSnackbar = _useSnackbar.enqueueSnackbar;
|
|
29
29
|
var _useMaterialRunboxCon = MaterialRunboxContext.useMaterialRunboxContext(),
|
|
30
30
|
enableUrlShare = _useMaterialRunboxCon.enableUrlShare;
|
|
@@ -47,14 +47,14 @@ var MaterialRunboxActionShare = function MaterialRunboxActionShare(_ref) {
|
|
|
47
47
|
if (!enableUrlShare) {
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
|
-
return jsxRuntime.jsxs(
|
|
50
|
+
return jsxRuntime.jsxs(edsMaterial.MenuItem, {
|
|
51
51
|
disabled: !url,
|
|
52
52
|
onClick: handleShareAction,
|
|
53
|
-
children: [jsxRuntime.jsx(
|
|
54
|
-
children: jsxRuntime.jsx(
|
|
53
|
+
children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
|
|
54
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
55
55
|
icon: proSolidSvgIcons.faLinkSimple
|
|
56
56
|
})
|
|
57
|
-
}), jsxRuntime.jsx(
|
|
57
|
+
}), jsxRuntime.jsx(edsMaterial.ListItemText, {
|
|
58
58
|
children: intl$1.formatMessage({
|
|
59
59
|
id: 'runbox.action.share.title'
|
|
60
60
|
})
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
11
|
var proRegularSvgIcons = require('@fortawesome/pro-regular-svg-icons');
|
|
11
|
-
var material = require('@mui/material');
|
|
12
12
|
var MaterialRunboxActionSubmitLogDialog = require('./MaterialRunboxActionSubmitLogDialog.js');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -29,15 +29,15 @@ var MaterialRunboxActionSubmitLog = function MaterialRunboxActionSubmitLog(props
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
var renderMenuItem = function renderMenuItem() {
|
|
32
|
-
return jsxRuntime.jsxs(
|
|
32
|
+
return jsxRuntime.jsxs(edsMaterial.MenuItem, {
|
|
33
33
|
onClick: function onClick() {
|
|
34
34
|
return setIsOpen(true);
|
|
35
35
|
},
|
|
36
|
-
children: [jsxRuntime.jsx(
|
|
37
|
-
children: jsxRuntime.jsx(
|
|
36
|
+
children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
|
|
37
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
38
38
|
icon: proRegularSvgIcons.faTimeline
|
|
39
39
|
})
|
|
40
|
-
}), jsxRuntime.jsx(
|
|
40
|
+
}), jsxRuntime.jsx(edsMaterial.ListItemText, {
|
|
41
41
|
children: intl$1.formatMessage({
|
|
42
42
|
id: 'runbox.action.submitLog.title'
|
|
43
43
|
})
|
|
@@ -7,11 +7,11 @@ var tslib = require('tslib');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
10
|
+
var edsKit = require('@elice/eds-kit');
|
|
11
|
+
var edsMaterial = require('@elice/eds-material');
|
|
10
12
|
var intl = require('@elice/intl');
|
|
11
|
-
var muiElements = require('@elice/mui-elements');
|
|
12
13
|
var react = require('@emotion/react');
|
|
13
14
|
var proRegularSvgIcons = require('@fortawesome/pro-regular-svg-icons');
|
|
14
|
-
var material = require('@mui/material');
|
|
15
15
|
var dayjs = require('dayjs');
|
|
16
16
|
var useInfiniteRunboxRunboxIdGrade = require('../hooks/useInfiniteRunboxRunboxIdGrade.js');
|
|
17
17
|
var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
|
|
@@ -36,7 +36,7 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
|
|
|
36
36
|
dayjs__default.default.locale(locale);
|
|
37
37
|
//
|
|
38
38
|
var theme = react.useTheme();
|
|
39
|
-
var isMobileOrSmaller =
|
|
39
|
+
var isMobileOrSmaller = edsMaterial.useMediaQuery(theme.breakpoints.down('sm'));
|
|
40
40
|
//
|
|
41
41
|
var _useInfiniteRunboxRun = useInfiniteRunboxRunboxIdGrade.useInfiniteRunboxRunboxIdGrade(Object.assign(Object.assign({}, props), {
|
|
42
42
|
enabled: Boolean(isOpen && props.runboxId && props.userId)
|
|
@@ -55,10 +55,12 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
|
|
|
55
55
|
*
|
|
56
56
|
*/
|
|
57
57
|
var renderEmpty = function renderEmpty() {
|
|
58
|
-
return jsxRuntime.jsx(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
return jsxRuntime.jsx(edsMaterial.Stack, {
|
|
59
|
+
sx: {
|
|
60
|
+
justifyContent: 'center',
|
|
61
|
+
alignItems: 'center'
|
|
62
|
+
},
|
|
63
|
+
children: jsxRuntime.jsx(edsMaterial.Typography, {
|
|
62
64
|
variant: "body1",
|
|
63
65
|
children: intl$1.formatMessage({
|
|
64
66
|
id: 'runbox.action.submitLog.empty'
|
|
@@ -70,7 +72,7 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
|
|
|
70
72
|
*
|
|
71
73
|
*/
|
|
72
74
|
var renderGradeList = function renderGradeList() {
|
|
73
|
-
return jsxRuntime.jsxs(
|
|
75
|
+
return jsxRuntime.jsxs(edsMaterial.List, {
|
|
74
76
|
ref: ref,
|
|
75
77
|
sx: {
|
|
76
78
|
width: '100%',
|
|
@@ -78,19 +80,21 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
|
|
|
78
80
|
overflow: 'auto'
|
|
79
81
|
},
|
|
80
82
|
children: [grade === null || grade === void 0 ? void 0 : grade.map(function (item) {
|
|
81
|
-
return jsxRuntime.jsxs(
|
|
83
|
+
return jsxRuntime.jsxs(edsMaterial.ListItemButton, {
|
|
82
84
|
selected: (selectedGrade === null || selectedGrade === void 0 ? void 0 : selectedGrade.id) === item.id,
|
|
83
85
|
onClick: function onClick() {
|
|
84
86
|
return setSelectedGrade(item);
|
|
85
87
|
},
|
|
86
|
-
children: [jsxRuntime.jsx(
|
|
88
|
+
children: [jsxRuntime.jsx(edsMaterial.ListItemText, {
|
|
87
89
|
primary: dayjs__default.default(item.created).format(isMobileOrSmaller ? 'YYYY.MM.DD' : 'YYYY.MM.DD A HH:mm')
|
|
88
|
-
}), jsxRuntime.jsx(
|
|
89
|
-
children: jsxRuntime.jsxs(
|
|
90
|
+
}), jsxRuntime.jsx(edsMaterial.ListItemSecondaryAction, {
|
|
91
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
90
92
|
direction: "row",
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
sx: {
|
|
94
|
+
alignItems: 'center',
|
|
95
|
+
gap: '0.5rem'
|
|
96
|
+
},
|
|
97
|
+
children: [(item === null || item === void 0 ? void 0 : item.score) ? jsxRuntime.jsx(edsKit.Tag, {
|
|
94
98
|
variant: "muted",
|
|
95
99
|
color: typeof getAchievementColor === 'function' ? getAchievementColor({
|
|
96
100
|
score: Number(item.score),
|
|
@@ -101,15 +105,15 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
|
|
|
101
105
|
}, {
|
|
102
106
|
score: item.score
|
|
103
107
|
})
|
|
104
|
-
}) : null, jsxRuntime.jsx(
|
|
108
|
+
}) : null, jsxRuntime.jsx(edsMaterial.Tooltip, {
|
|
105
109
|
title: intl$1.formatMessage({
|
|
106
110
|
id: 'runbox.action.submitLog.dialog.download.tooltip'
|
|
107
111
|
}),
|
|
108
|
-
children: jsxRuntime.jsx(
|
|
112
|
+
children: jsxRuntime.jsx(edsMaterial.IconButton, {
|
|
109
113
|
onClick: function onClick() {
|
|
110
114
|
window.open(item.submissionFileUrl, '_blank');
|
|
111
115
|
},
|
|
112
|
-
children: jsxRuntime.jsx(
|
|
116
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
113
117
|
icon: proRegularSvgIcons.faArrowDownToLine
|
|
114
118
|
})
|
|
115
119
|
})
|
|
@@ -126,18 +130,20 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
|
|
|
126
130
|
*
|
|
127
131
|
*/
|
|
128
132
|
var renderCodebox = function renderCodebox() {
|
|
129
|
-
return jsxRuntime.jsx(
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
return jsxRuntime.jsx(edsMaterial.Box, {
|
|
134
|
+
sx: {
|
|
135
|
+
bgcolor: function bgcolor(theme) {
|
|
136
|
+
return theme.palette.common.black;
|
|
137
|
+
},
|
|
138
|
+
borderRadius: '0.5rem',
|
|
139
|
+
padding: '1rem',
|
|
140
|
+
width: '100%',
|
|
141
|
+
overflow: 'auto',
|
|
142
|
+
fontFamily: 'Elice Digital Coding, monospace',
|
|
143
|
+
fontSize: '0.875rem',
|
|
144
|
+
whiteSpace: 'pre-wrap',
|
|
145
|
+
lineHeight: '1.375rem'
|
|
132
146
|
},
|
|
133
|
-
borderRadius: "0.5rem",
|
|
134
|
-
padding: "1rem",
|
|
135
|
-
width: "100%",
|
|
136
|
-
overflow: "auto",
|
|
137
|
-
fontFamily: "Elice Digital Coding, monospace",
|
|
138
|
-
fontSize: "0.875rem",
|
|
139
|
-
whiteSpace: "pre-wrap",
|
|
140
|
-
lineHeight: "1.375rem",
|
|
141
147
|
children: selectedGrade === null || selectedGrade === void 0 ? void 0 : selectedGrade.output
|
|
142
148
|
});
|
|
143
149
|
};
|
|
@@ -160,27 +166,29 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
|
|
|
160
166
|
//
|
|
161
167
|
//
|
|
162
168
|
//
|
|
163
|
-
return jsxRuntime.jsxs(
|
|
169
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
164
170
|
fullWidth: true,
|
|
165
171
|
maxWidth: "lg",
|
|
166
172
|
open: isOpen,
|
|
167
173
|
onClose: onClose,
|
|
168
|
-
children: [jsxRuntime.jsx(
|
|
174
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
169
175
|
children: intl$1.formatMessage({
|
|
170
176
|
id: 'runbox.action.submitLog.dialog.title'
|
|
171
177
|
})
|
|
172
|
-
}), jsxRuntime.jsx(
|
|
173
|
-
children: jsxRuntime.jsx(
|
|
178
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
179
|
+
children: jsxRuntime.jsx(edsMaterial.Stack, {
|
|
174
180
|
direction: "row",
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
181
|
+
sx: {
|
|
182
|
+
gap: '0.5rem',
|
|
183
|
+
overflow: 'auto',
|
|
184
|
+
maxHeight: '30rem'
|
|
185
|
+
},
|
|
178
186
|
children: (grade === null || grade === void 0 ? void 0 : grade.length) ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
179
187
|
children: [renderGradeList(), renderCodebox()]
|
|
180
188
|
}) : renderEmpty()
|
|
181
189
|
})
|
|
182
|
-
}), jsxRuntime.jsx(
|
|
183
|
-
children: jsxRuntime.jsx(
|
|
190
|
+
}), jsxRuntime.jsx(edsMaterial.DialogActions, {
|
|
191
|
+
children: jsxRuntime.jsx(edsMaterial.Button, {
|
|
184
192
|
color: "inherit",
|
|
185
193
|
onClick: onClose,
|
|
186
194
|
children: intl$1.formatMessage({
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsXSnackbar = require('@elice/eds-x-snackbar');
|
|
8
9
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiXSnackbar = require('@elice/mui-x-snackbar');
|
|
10
10
|
var openapiClientMaterialRunbox = require('@elice/openapi-client-material-runbox');
|
|
11
11
|
var rxjs = require('rxjs');
|
|
12
12
|
var operators = require('rxjs/operators');
|
|
@@ -37,7 +37,7 @@ var MaterialRunboxCommandContextProvider = function MaterialRunboxCommandContext
|
|
|
37
37
|
runtime = _ref.runtime,
|
|
38
38
|
courseId = _ref.courseId;
|
|
39
39
|
var intl$1 = intl.useRawEliceIntl();
|
|
40
|
-
var _useSnackbar =
|
|
40
|
+
var _useSnackbar = edsXSnackbar.useSnackbar(),
|
|
41
41
|
enqueueSnackbar = _useSnackbar.enqueueSnackbar;
|
|
42
42
|
var runtimeId = runtime === null || runtime === void 0 ? void 0 : runtime.id;
|
|
43
43
|
var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ButtonProps } from '@elice/eds-material';
|
|
2
3
|
import type { RunningRunbox } from '@elice/openapi-client-material-runbox';
|
|
3
|
-
import type { ButtonProps } from '@mui/material';
|
|
4
4
|
type OverlayOwnedButtonProps = 'children' | 'variant' | 'color' | 'startIcon' | 'endIcon' | 'sx' | 'disableRipple' | 'role' | 'tabIndex' | 'ref';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the button reaching the runbox occupying the runtime. Defaults to an `a`;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var edsKit = require('@elice/eds-kit');
|
|
7
|
+
var edsMaterial = require('@elice/eds-material');
|
|
6
8
|
var intl = require('@elice/intl');
|
|
7
|
-
var muiElements = require('@elice/mui-elements');
|
|
8
9
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
9
|
-
var material = require('@mui/material');
|
|
10
10
|
var MaterialRunboxEnvResetButton = require('./MaterialRunboxEnvResetButton.js');
|
|
11
11
|
var useRunboxDiskUsage = require('../hooks/useRunboxDiskUsage.js');
|
|
12
12
|
|
|
@@ -32,7 +32,7 @@ var MaterialRunboxDiskUsageAlert = function MaterialRunboxDiskUsageAlert(_ref) {
|
|
|
32
32
|
//
|
|
33
33
|
//
|
|
34
34
|
//
|
|
35
|
-
return jsxRuntime.jsx(
|
|
35
|
+
return jsxRuntime.jsx(edsMaterial.Alert, {
|
|
36
36
|
severity: severity,
|
|
37
37
|
sx: {
|
|
38
38
|
width: '100%',
|
|
@@ -43,14 +43,14 @@ var MaterialRunboxDiskUsageAlert = function MaterialRunboxDiskUsageAlert(_ref) {
|
|
|
43
43
|
variant: "text",
|
|
44
44
|
size: "small",
|
|
45
45
|
color: "inherit",
|
|
46
|
-
startIcon: jsxRuntime.jsx(
|
|
46
|
+
startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
47
47
|
icon: proSolidSvgIcons.faArrowsRotate
|
|
48
48
|
}),
|
|
49
49
|
runtimeTemplateId: runtimeTemplateId,
|
|
50
50
|
courseId: courseId,
|
|
51
51
|
userId: userId
|
|
52
52
|
}),
|
|
53
|
-
children: jsxRuntime.jsx(
|
|
53
|
+
children: jsxRuntime.jsx(edsMaterial.Typography, {
|
|
54
54
|
variant: "body2",
|
|
55
55
|
children: intl$1.formatMessage({
|
|
56
56
|
id: "runbox.disk.usage.alert.".concat(severity)
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var reactUse = require('react-use');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
11
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
11
|
-
var material = require('@mui/material');
|
|
12
12
|
var useRunboxDiskUsage = require('../hooks/useRunboxDiskUsage.js');
|
|
13
13
|
|
|
14
14
|
//
|
|
@@ -50,26 +50,30 @@ var MaterialRunboxDiskUsageDialog = function MaterialRunboxDiskUsageDialog(_ref)
|
|
|
50
50
|
if (!severity) {
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
|
-
return jsxRuntime.jsxs(
|
|
53
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
54
54
|
fullWidth: true,
|
|
55
55
|
open: !seenSeverities.includes(severity),
|
|
56
56
|
maxWidth: "xs",
|
|
57
57
|
onClose: handleClose,
|
|
58
|
-
children: [jsxRuntime.jsx(
|
|
59
|
-
children: jsxRuntime.jsxs(
|
|
58
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
59
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
60
60
|
direction: "row",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
sx: {
|
|
62
|
+
gap: '0.5rem',
|
|
63
|
+
alignItems: 'center'
|
|
64
|
+
},
|
|
65
|
+
children: [jsxRuntime.jsx(edsKit.FaIcon, {
|
|
64
66
|
icon: severity === 'error' ? proSolidSvgIcons.faCircleExclamation : proSolidSvgIcons.faTriangleExclamation,
|
|
65
67
|
color: severity
|
|
66
68
|
}), intl$1.formatMessage({
|
|
67
69
|
id: 'runbox.disk.usage.dialog.title'
|
|
68
70
|
})]
|
|
69
71
|
})
|
|
70
|
-
}), jsxRuntime.jsx(
|
|
71
|
-
children: jsxRuntime.jsx(
|
|
72
|
-
|
|
72
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
73
|
+
children: jsxRuntime.jsx(edsMaterial.DialogContentText, {
|
|
74
|
+
sx: {
|
|
75
|
+
whiteSpace: 'pre-line'
|
|
76
|
+
},
|
|
73
77
|
children: intl$1.formatMessage({
|
|
74
78
|
id: "runbox.disk.usage.dialog.description.".concat(severity)
|
|
75
79
|
}, {
|
|
@@ -83,8 +87,8 @@ var MaterialRunboxDiskUsageDialog = function MaterialRunboxDiskUsageDialog(_ref)
|
|
|
83
87
|
})
|
|
84
88
|
})
|
|
85
89
|
})
|
|
86
|
-
}), jsxRuntime.jsx(
|
|
87
|
-
children: jsxRuntime.jsx(
|
|
90
|
+
}), jsxRuntime.jsx(edsMaterial.DialogActions, {
|
|
91
|
+
children: jsxRuntime.jsx(edsMaterial.Button, {
|
|
88
92
|
color: "inherit",
|
|
89
93
|
onClick: handleClose,
|
|
90
94
|
children: intl$1.formatMessage({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export interface MaterialRunboxEnvResetButtonProps extends Omit<
|
|
2
|
+
import type { ButtonProps } from '@elice/eds-material';
|
|
3
|
+
export interface MaterialRunboxEnvResetButtonProps extends Omit<ButtonProps, 'onClick' | 'loading'> {
|
|
4
4
|
runtimeTemplateId: string;
|
|
5
5
|
courseId: number;
|
|
6
6
|
userId?: number;
|
|
@@ -6,10 +6,9 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
|
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var React = require('react');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
10
|
+
var edsXSnackbar = require('@elice/eds-x-snackbar');
|
|
9
11
|
var intl = require('@elice/intl');
|
|
10
|
-
var muiXSnackbar = require('@elice/mui-x-snackbar');
|
|
11
|
-
var lab = require('@mui/lab');
|
|
12
|
-
var material = require('@mui/material');
|
|
13
12
|
var theme = require('../theme.js');
|
|
14
13
|
var MaterialRunboxEnvResetDialog = require('./MaterialRunboxEnvResetDialog.js');
|
|
15
14
|
var MaterialRunboxApiContext = require('../contexts/MaterialRunboxApiContext.js');
|
|
@@ -29,7 +28,7 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
|
|
|
29
28
|
onSuccess = _a.onSuccess,
|
|
30
29
|
props = tslib.__rest(_a, ["runtimeTemplateId", "courseId", "userId", "onSuccess"]);
|
|
31
30
|
var intl$1 = intl.useRawEliceIntl();
|
|
32
|
-
var _useSnackbar =
|
|
31
|
+
var _useSnackbar = edsXSnackbar.useSnackbar(),
|
|
33
32
|
enqueueSnackbar = _useSnackbar.enqueueSnackbar;
|
|
34
33
|
var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
|
|
35
34
|
var _useMaterialRunboxCon = MaterialRunboxControlContext.useMaterialRunboxControlContext(),
|
|
@@ -125,7 +124,7 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
|
|
|
125
124
|
//
|
|
126
125
|
//
|
|
127
126
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
128
|
-
children: [jsxRuntime.jsx(
|
|
127
|
+
children: [jsxRuntime.jsx(edsMaterial.Button, Object.assign({}, props, {
|
|
129
128
|
loading: isResetting,
|
|
130
129
|
onClick: function onClick() {
|
|
131
130
|
return setDialogOpened(true);
|
|
@@ -133,7 +132,7 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
|
|
|
133
132
|
children: intl$1.formatMessage({
|
|
134
133
|
id: 'runbox.disk.env_reset.title'
|
|
135
134
|
})
|
|
136
|
-
})), jsxRuntime.jsx(
|
|
135
|
+
})), jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
137
136
|
theme: theme.runboxDarkTheme,
|
|
138
137
|
children: jsxRuntime.jsx(MaterialRunboxEnvResetDialog.default, {
|
|
139
138
|
open: isDialogOpened,
|