@elice/material-runbox 1.260930.0 → 1.261005.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 +15 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@
|
|
2
|
+
import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@elice/eds-material';
|
|
3
3
|
import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
|
|
4
4
|
|
|
5
5
|
var RuntimeChangeMaterialDialog = function RuntimeChangeMaterialDialog(_ref) {
|
|
@@ -2,10 +2,10 @@ import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator,
|
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { getOrgCourseGet } from '@elice/api-client';
|
|
5
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
6
|
+
import { ThemeProvider, Box, Stack, Typography, Button } from '@elice/eds-material';
|
|
5
7
|
import { IntlComponentBuilder } from '@elice/intl';
|
|
6
|
-
import { EliceIcon } from '@elice/mui-elements';
|
|
7
8
|
import { faLinkSimple, faArrowUpRightFromSquare } from '@fortawesome/pro-solid-svg-icons';
|
|
8
|
-
import { ThemeProvider, Box, Stack, Typography, Button } from '@mui/material';
|
|
9
9
|
import { useQuery } from '@tanstack/react-query';
|
|
10
10
|
import { runboxLightTheme, runboxDarkTheme } from '../theme.js';
|
|
11
11
|
import RuntimeChangeMaterialDialog from './RuntimeChangeMaterialDialog.js';
|
|
@@ -80,11 +80,11 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
80
80
|
return jsx(Button, Object.assign({
|
|
81
81
|
variant: "contained",
|
|
82
82
|
color: "inherit",
|
|
83
|
-
startIcon: jsx(
|
|
83
|
+
startIcon: jsx(FaIcon, {
|
|
84
84
|
icon: faLinkSimple,
|
|
85
85
|
color: "success"
|
|
86
86
|
}),
|
|
87
|
-
endIcon: opensInNewTab ? jsx(
|
|
87
|
+
endIcon: opensInNewTab ? jsx(FaIcon, {
|
|
88
88
|
icon: faArrowUpRightFromSquare,
|
|
89
89
|
color: "inherit"
|
|
90
90
|
}) : null,
|
|
@@ -101,14 +101,20 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
101
101
|
}
|
|
102
102
|
}, linkProps, {
|
|
103
103
|
children: jsxs(Stack, {
|
|
104
|
-
flex: 1,
|
|
105
104
|
direction: "column",
|
|
106
|
-
|
|
105
|
+
sx: {
|
|
106
|
+
alignItems: 'flex-start',
|
|
107
|
+
flex: 1
|
|
108
|
+
},
|
|
107
109
|
children: [courseId !== runningCourse.id ? jsx(Typography, {
|
|
108
|
-
|
|
110
|
+
sx: {
|
|
111
|
+
color: 'text.tertiary'
|
|
112
|
+
},
|
|
109
113
|
children: runningCourse === null || runningCourse === void 0 ? void 0 : runningCourse.title
|
|
110
114
|
}) : null, jsx(Typography, {
|
|
111
|
-
|
|
115
|
+
sx: {
|
|
116
|
+
color: 'text.primary'
|
|
117
|
+
},
|
|
112
118
|
children: runningRunbox.title
|
|
113
119
|
})]
|
|
114
120
|
})
|
|
@@ -155,8 +161,10 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
155
161
|
color: 'text.primary'
|
|
156
162
|
},
|
|
157
163
|
children: jsxs(Stack, {
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
sx: {
|
|
165
|
+
alignItems: 'center',
|
|
166
|
+
gap: '1.5rem'
|
|
167
|
+
},
|
|
160
168
|
children: [jsx(Box, {
|
|
161
169
|
component: "img",
|
|
162
170
|
src: img,
|
|
@@ -167,14 +175,18 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
167
175
|
}
|
|
168
176
|
}), jsx(Typography, {
|
|
169
177
|
variant: "h6",
|
|
170
|
-
|
|
178
|
+
sx: {
|
|
179
|
+
textAlign: 'center'
|
|
180
|
+
},
|
|
171
181
|
children: intl.formatMessage({
|
|
172
182
|
id: 'runbox.runtime.overlay.conflicted.title'
|
|
173
183
|
})
|
|
174
184
|
}), renderNavButton(), jsx(Typography, {
|
|
175
185
|
variant: "body1",
|
|
176
|
-
|
|
177
|
-
|
|
186
|
+
sx: {
|
|
187
|
+
whiteSpace: 'pre-line',
|
|
188
|
+
textAlign: 'center'
|
|
189
|
+
},
|
|
178
190
|
children: intl.formatMessage({
|
|
179
191
|
id: 'runbox.runtime.overlay.conflicted.description'
|
|
180
192
|
})
|
|
@@ -187,7 +199,7 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
187
199
|
fullWidth: true,
|
|
188
200
|
variant: "contained",
|
|
189
201
|
color: "primary",
|
|
190
|
-
startIcon: jsx(
|
|
202
|
+
startIcon: jsx(FaIcon, {
|
|
191
203
|
icon: faLinkSimple
|
|
192
204
|
}),
|
|
193
205
|
onClick: handleClickConnect,
|
|
@@ -2,11 +2,10 @@ import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } fr
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useInterval } from 'react-use';
|
|
5
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
6
|
+
import { ThemeProvider, Stack, Typography, Box, CircularProgress, colors, alpha, LinearProgress, Fade } from '@elice/eds-material';
|
|
5
7
|
import { IntlComponentBuilder } from '@elice/intl';
|
|
6
|
-
import { EliceIcon } from '@elice/mui-elements';
|
|
7
|
-
import { colors } from '@elice/mui-system';
|
|
8
8
|
import { faCheck } from '@fortawesome/pro-solid-svg-icons';
|
|
9
|
-
import { ThemeProvider, Stack, Typography, Box, CircularProgress, alpha, LinearProgress, Fade } from '@mui/material';
|
|
10
9
|
import { runboxLightTheme } from '../theme.js';
|
|
11
10
|
import { getRuntimeLoadingTips } from './runtime-loading-tips.js';
|
|
12
11
|
import img from '../../../assets/runbox-loading.svg.js';
|
|
@@ -98,16 +97,22 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
98
97
|
gap: '1.5rem'
|
|
99
98
|
},
|
|
100
99
|
children: [jsxs(Stack, {
|
|
101
|
-
|
|
100
|
+
sx: {
|
|
101
|
+
gap: '0.5rem'
|
|
102
|
+
},
|
|
102
103
|
children: [jsx(Typography, {
|
|
103
104
|
variant: "h4",
|
|
104
|
-
|
|
105
|
+
sx: {
|
|
106
|
+
color: 'text.primary'
|
|
107
|
+
},
|
|
105
108
|
children: intl.formatMessage({
|
|
106
109
|
id: 'runbox.runtime.loading.title'
|
|
107
110
|
})
|
|
108
111
|
}), jsx(Typography, {
|
|
109
112
|
variant: "body1",
|
|
110
|
-
|
|
113
|
+
sx: {
|
|
114
|
+
color: 'text.secondary'
|
|
115
|
+
},
|
|
111
116
|
children: intl.formatMessage({
|
|
112
117
|
id: 'runbox.runtime.loading.description'
|
|
113
118
|
})
|
|
@@ -138,7 +143,7 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
138
143
|
sx: {
|
|
139
144
|
color: colors.elicepurple[700]
|
|
140
145
|
}
|
|
141
|
-
}) : isCompleted ? jsx(
|
|
146
|
+
}) : isCompleted ? jsx(FaIcon, {
|
|
142
147
|
icon: faCheck,
|
|
143
148
|
sx: {
|
|
144
149
|
fontSize: '1rem',
|
|
@@ -146,14 +151,16 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
146
151
|
}
|
|
147
152
|
}) : jsx(Typography, {
|
|
148
153
|
variant: "body2",
|
|
149
|
-
|
|
154
|
+
sx: {
|
|
155
|
+
color: 'text.tertiary'
|
|
156
|
+
},
|
|
150
157
|
children: stepNumber
|
|
151
158
|
})
|
|
152
159
|
}), jsx(Typography, {
|
|
153
160
|
variant: "body2",
|
|
154
|
-
fontWeight: isActive ? 700 : 500,
|
|
155
161
|
color: isActive ? 'text.primary' : 'text.secondary',
|
|
156
162
|
sx: {
|
|
163
|
+
fontWeight: isActive ? 700 : 500,
|
|
157
164
|
flex: 1
|
|
158
165
|
},
|
|
159
166
|
children: intl.formatMessage({
|
|
@@ -161,8 +168,10 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
161
168
|
})
|
|
162
169
|
}), jsx(Typography, {
|
|
163
170
|
variant: "caption",
|
|
164
|
-
|
|
165
|
-
|
|
171
|
+
sx: {
|
|
172
|
+
color: 'text.tertiary',
|
|
173
|
+
whiteSpace: 'nowrap'
|
|
174
|
+
},
|
|
166
175
|
children: intl.formatMessage({
|
|
167
176
|
id: isCompleted ? STEP_STATUS_ID.completed : isActive ? STEP_STATUS_ID.active : STEP_STATUS_ID.pending
|
|
168
177
|
})
|
|
@@ -188,8 +197,10 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
188
197
|
})
|
|
189
198
|
}), jsx(Typography, {
|
|
190
199
|
variant: "caption",
|
|
191
|
-
|
|
192
|
-
|
|
200
|
+
sx: {
|
|
201
|
+
color: 'text.tertiary',
|
|
202
|
+
whiteSpace: 'nowrap'
|
|
203
|
+
},
|
|
193
204
|
children: intl.formatMessage({
|
|
194
205
|
id: STEPS[activeStep - 1].progressId
|
|
195
206
|
}, {
|
|
@@ -231,7 +242,9 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
231
242
|
xs: 'column',
|
|
232
243
|
md: 'row'
|
|
233
244
|
},
|
|
234
|
-
|
|
245
|
+
sx: {
|
|
246
|
+
gap: '1rem'
|
|
247
|
+
},
|
|
235
248
|
children: shownTips.map(function (tip) {
|
|
236
249
|
return jsxs(Stack, {
|
|
237
250
|
direction: "row",
|
|
@@ -239,7 +252,7 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
239
252
|
flex: 1,
|
|
240
253
|
gap: '0.75rem'
|
|
241
254
|
},
|
|
242
|
-
children: [jsx(
|
|
255
|
+
children: [jsx(FaIcon, {
|
|
243
256
|
icon: tip.icon,
|
|
244
257
|
sx: {
|
|
245
258
|
fontSize: '1.25rem',
|
|
@@ -247,17 +260,23 @@ var RuntimeOverlayLoading = function RuntimeOverlayLoading(_ref) {
|
|
|
247
260
|
marginTop: '0.125rem'
|
|
248
261
|
}
|
|
249
262
|
}), jsxs(Stack, {
|
|
250
|
-
|
|
263
|
+
sx: {
|
|
264
|
+
gap: '0.125rem'
|
|
265
|
+
},
|
|
251
266
|
children: [jsx(Typography, {
|
|
252
267
|
variant: "body1",
|
|
253
|
-
|
|
254
|
-
|
|
268
|
+
sx: {
|
|
269
|
+
color: 'text.primary',
|
|
270
|
+
fontWeight: 700
|
|
271
|
+
},
|
|
255
272
|
children: intl.formatMessage({
|
|
256
273
|
id: tip.titleId
|
|
257
274
|
})
|
|
258
275
|
}), jsx(Typography, {
|
|
259
276
|
variant: "caption",
|
|
260
|
-
|
|
277
|
+
sx: {
|
|
278
|
+
color: 'text.tertiary'
|
|
279
|
+
},
|
|
261
280
|
children: intl.formatMessage({
|
|
262
281
|
id: tip.descriptionId
|
|
263
282
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
3
|
+
import { ThemeProvider, Box, Stack, Typography, Button, Card, Divider } from '@elice/eds-material';
|
|
2
4
|
import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
|
|
3
|
-
import { EliceIcon } from '@elice/mui-elements';
|
|
4
5
|
import { useEliceRunboxQuota } from '@elice/runbox-client';
|
|
5
6
|
import { faArrowsRotate, faLinkSimple } from '@fortawesome/pro-solid-svg-icons';
|
|
6
|
-
import { ThemeProvider, Box, Stack, Typography, Button, Card, Divider } from '@mui/material';
|
|
7
7
|
import { runboxLightTheme } from '../theme.js';
|
|
8
8
|
import img from '../../../assets/terminated.png.js';
|
|
9
9
|
import messageEn from '../locales/en.json.js';
|
|
@@ -46,7 +46,7 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
46
46
|
fullWidth: true,
|
|
47
47
|
variant: "contained",
|
|
48
48
|
color: "primary",
|
|
49
|
-
startIcon: jsx(
|
|
49
|
+
startIcon: jsx(FaIcon, {
|
|
50
50
|
icon: faLinkSimple
|
|
51
51
|
}),
|
|
52
52
|
onClick: handleClickConnect,
|
|
@@ -84,8 +84,6 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
84
84
|
},
|
|
85
85
|
children: jsx(Stack, {
|
|
86
86
|
direction: "row",
|
|
87
|
-
alignItems: "center",
|
|
88
|
-
gap: "1.5rem",
|
|
89
87
|
divider: jsx(Divider, {
|
|
90
88
|
flexItem: true,
|
|
91
89
|
orientation: "vertical",
|
|
@@ -93,6 +91,10 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
93
91
|
borderColor: 'grey.200'
|
|
94
92
|
}
|
|
95
93
|
}),
|
|
94
|
+
sx: {
|
|
95
|
+
gap: '1.5rem',
|
|
96
|
+
alignItems: 'center'
|
|
97
|
+
},
|
|
96
98
|
children: args.items.map(function (item, index) {
|
|
97
99
|
return jsxs(Stack, {
|
|
98
100
|
direction: "column",
|
|
@@ -131,8 +133,10 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
131
133
|
color: 'text.primary'
|
|
132
134
|
},
|
|
133
135
|
children: jsxs(Stack, {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
sx: {
|
|
137
|
+
alignItems: 'center',
|
|
138
|
+
gap: '1.5rem'
|
|
139
|
+
},
|
|
136
140
|
children: [jsx(Box, {
|
|
137
141
|
component: "img",
|
|
138
142
|
src: img,
|
|
@@ -143,13 +147,17 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
143
147
|
}
|
|
144
148
|
}), jsx(Typography, {
|
|
145
149
|
variant: "h6",
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
sx: {
|
|
151
|
+
whiteSpace: 'pre-line',
|
|
152
|
+
textAlign: 'center'
|
|
153
|
+
},
|
|
148
154
|
children: args.title
|
|
149
155
|
}), jsx(Typography, {
|
|
150
156
|
variant: "body1",
|
|
151
|
-
|
|
152
|
-
|
|
157
|
+
sx: {
|
|
158
|
+
whiteSpace: 'pre-line',
|
|
159
|
+
textAlign: 'center'
|
|
160
|
+
},
|
|
153
161
|
children: args.description
|
|
154
162
|
}), args.body]
|
|
155
163
|
})
|
|
@@ -172,7 +180,7 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
172
180
|
}),
|
|
173
181
|
body: jsx(MaterialRunboxEnvResetButton, {
|
|
174
182
|
variant: "contained",
|
|
175
|
-
startIcon: jsx(
|
|
183
|
+
startIcon: jsx(FaIcon, {
|
|
176
184
|
icon: faArrowsRotate
|
|
177
185
|
}),
|
|
178
186
|
runtimeTemplateId: runtimeTemplateId,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
5
|
+
import { buttonClasses, Button } from '@elice/eds-material';
|
|
4
6
|
import { useRawEliceIntl } from '@elice/intl';
|
|
5
|
-
import { EliceIcon } from '@elice/mui-elements';
|
|
6
7
|
import { useEliceRunboxRunning } from '@elice/runbox-client';
|
|
7
8
|
import { faDiscDrive, faWifi, faAngleDown } from '@fortawesome/pro-solid-svg-icons';
|
|
8
|
-
import { buttonClasses, Button } from '@mui/material';
|
|
9
9
|
import MaterialRunboxStatusPopover from './MaterialRunboxStatusPopover.js';
|
|
10
10
|
import { useBreakpoint } from '../../shared/hooks/useBreakpoint.js';
|
|
11
11
|
import { useRunboxDiskUsage } from '../hooks/useRunboxDiskUsage.js';
|
|
@@ -42,7 +42,7 @@ var MaterialRunboxStatusButton = function MaterialRunboxStatusButton(_ref) {
|
|
|
42
42
|
*/
|
|
43
43
|
var buttonProps = severity ? {
|
|
44
44
|
color: severity,
|
|
45
|
-
startIcon: jsx(
|
|
45
|
+
startIcon: jsx(FaIcon, {
|
|
46
46
|
icon: faDiscDrive
|
|
47
47
|
}),
|
|
48
48
|
children: isSmallTabletOrSmaller ? undefined : "DISK ".concat(intl.formatDataSize(diskCurrent, {
|
|
@@ -54,7 +54,7 @@ var MaterialRunboxStatusButton = function MaterialRunboxStatusButton(_ref) {
|
|
|
54
54
|
}))
|
|
55
55
|
} : {
|
|
56
56
|
color: 'inherit',
|
|
57
|
-
startIcon: jsx(
|
|
57
|
+
startIcon: jsx(FaIcon, {
|
|
58
58
|
icon: faWifi
|
|
59
59
|
}),
|
|
60
60
|
// The label follows the header, but the icon keeps reporting the runtime.
|
|
@@ -78,7 +78,7 @@ var MaterialRunboxStatusButton = function MaterialRunboxStatusButton(_ref) {
|
|
|
78
78
|
children: [jsx(Button, Object.assign({
|
|
79
79
|
variant: "text",
|
|
80
80
|
size: "small",
|
|
81
|
-
endIcon: jsx(
|
|
81
|
+
endIcon: jsx(FaIcon, {
|
|
82
82
|
icon: faAngleDown
|
|
83
83
|
}),
|
|
84
84
|
onClick: function onClick(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypographyProps } from '@
|
|
1
|
+
import type { TypographyProps } from '@elice/eds-material';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
export interface MaterialRunboxStatusConnectionItemProps {
|
|
4
4
|
/** Leading icon element, or a progress indicator while connecting. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Stack, Typography } from '@
|
|
2
|
+
import { Stack, Typography } from '@elice/eds-material';
|
|
3
3
|
|
|
4
4
|
//
|
|
5
5
|
//
|
|
@@ -11,18 +11,24 @@ var MaterialRunboxStatusConnectionItem = function MaterialRunboxStatusConnection
|
|
|
11
11
|
color = _ref$color === void 0 ? 'text.disabled' : _ref$color;
|
|
12
12
|
return jsxs(Stack, {
|
|
13
13
|
direction: "row",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
sx: {
|
|
15
|
+
padding: '0 0.75rem',
|
|
16
|
+
minHeight: '2.5rem',
|
|
17
|
+
gap: '0.75rem',
|
|
18
|
+
alignItems: 'center'
|
|
19
|
+
},
|
|
18
20
|
children: [jsx(Typography, {
|
|
19
21
|
component: "span",
|
|
20
|
-
display: "inline-flex",
|
|
21
22
|
color: color,
|
|
23
|
+
sx: {
|
|
24
|
+
display: 'inline-flex'
|
|
25
|
+
},
|
|
22
26
|
children: icon
|
|
23
27
|
}), jsx(Typography, {
|
|
24
28
|
variant: "body2",
|
|
25
|
-
|
|
29
|
+
sx: {
|
|
30
|
+
color: 'text.tertiary'
|
|
31
|
+
},
|
|
26
32
|
children: label
|
|
27
33
|
})]
|
|
28
34
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopoverProps } from '@
|
|
1
|
+
import type { PopoverProps } from '@elice/eds-material';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
export interface MaterialRunboxStatusPopoverProps extends Omit<PopoverProps, 'open' | 'onClose' | 'children'> {
|
|
4
4
|
/** Whether the popover is open. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineProperty as _defineProperty } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { __rest } from 'tslib';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
5
|
+
import { Popover, Fade, Stack, CircularProgress, Divider } from '@elice/eds-material';
|
|
4
6
|
import { useRawEliceIntl } from '@elice/intl';
|
|
5
|
-
import { EliceIcon } from '@elice/mui-elements';
|
|
6
7
|
import { useEliceRunboxRunning, useEliceRunboxContainerStats } from '@elice/runbox-client';
|
|
7
8
|
import { faWifiSlash, faWifi, faWifiFair, faLinkSimple, faLinkSimpleSlash, faMicrochip, faMemory, faArrowUpRight, faArrowDownLeft, faDiscDrive, faArrowsRotate } from '@fortawesome/pro-solid-svg-icons';
|
|
8
|
-
import { Popover, Fade, Stack, CircularProgress, Divider } from '@mui/material';
|
|
9
9
|
import MaterialRunboxStatusConnectionItem from './MaterialRunboxStatusConnectionItem.js';
|
|
10
10
|
import MaterialRunboxStatusResourceItem from './MaterialRunboxStatusResourceItem.js';
|
|
11
11
|
import { RunboxNetworkStatus, useRunboxNetworkStatus } from '../hooks/useRunboxNetworkStatus.js';
|
|
@@ -45,19 +45,23 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
45
45
|
//
|
|
46
46
|
return jsx(Popover, Object.assign({
|
|
47
47
|
open: open,
|
|
48
|
-
TransitionComponent: Fade,
|
|
49
48
|
onClose: onClose
|
|
50
49
|
}, props, {
|
|
50
|
+
slots: {
|
|
51
|
+
transition: Fade
|
|
52
|
+
},
|
|
51
53
|
children: jsxs(Stack, {
|
|
52
54
|
direction: "column",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
sx: {
|
|
56
|
+
bgcolor: 'background.paper',
|
|
57
|
+
width: POPOVER_WIDTH,
|
|
58
|
+
padding: '0.75rem',
|
|
59
|
+
gap: '0.75rem'
|
|
60
|
+
},
|
|
57
61
|
children: [jsxs(Stack, {
|
|
58
62
|
direction: "column",
|
|
59
63
|
children: [networkStatus ? jsx(MaterialRunboxStatusConnectionItem, {
|
|
60
|
-
icon: jsx(
|
|
64
|
+
icon: jsx(FaIcon, {
|
|
61
65
|
icon: NETWORK_ICON[networkStatus],
|
|
62
66
|
fontSize: "small"
|
|
63
67
|
}),
|
|
@@ -69,7 +73,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
69
73
|
icon: isRunboxConnecting ? jsx(CircularProgress, {
|
|
70
74
|
color: "inherit",
|
|
71
75
|
size: "1rem"
|
|
72
|
-
}) : jsx(
|
|
76
|
+
}) : jsx(FaIcon, {
|
|
73
77
|
icon: isRunboxRunning ? faLinkSimple : faLinkSimpleSlash,
|
|
74
78
|
fontSize: "small"
|
|
75
79
|
}),
|
|
@@ -82,7 +86,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
82
86
|
children: [jsx(Divider, {}), jsxs(Stack, {
|
|
83
87
|
direction: "column",
|
|
84
88
|
children: [jsx(MaterialRunboxStatusResourceItem, {
|
|
85
|
-
icon: jsx(
|
|
89
|
+
icon: jsx(FaIcon, {
|
|
86
90
|
icon: faMicrochip,
|
|
87
91
|
fontSize: "small"
|
|
88
92
|
}),
|
|
@@ -92,7 +96,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
92
96
|
maximumFractionDigits: 2
|
|
93
97
|
}) : preparing
|
|
94
98
|
}), jsx(MaterialRunboxStatusResourceItem, {
|
|
95
|
-
icon: jsx(
|
|
99
|
+
icon: jsx(FaIcon, {
|
|
96
100
|
icon: faMemory,
|
|
97
101
|
fontSize: "small"
|
|
98
102
|
}),
|
|
@@ -105,7 +109,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
105
109
|
maximumFractionDigits: 2
|
|
106
110
|
})) : preparing
|
|
107
111
|
}), jsx(MaterialRunboxStatusResourceItem, {
|
|
108
|
-
icon: jsx(
|
|
112
|
+
icon: jsx(FaIcon, {
|
|
109
113
|
icon: faArrowUpRight,
|
|
110
114
|
fontSize: "small"
|
|
111
115
|
}),
|
|
@@ -114,7 +118,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
114
118
|
unitSystem: 'iec'
|
|
115
119
|
}), "/s") : preparing
|
|
116
120
|
}), jsx(MaterialRunboxStatusResourceItem, {
|
|
117
|
-
icon: jsx(
|
|
121
|
+
icon: jsx(FaIcon, {
|
|
118
122
|
icon: faArrowDownLeft,
|
|
119
123
|
fontSize: "small"
|
|
120
124
|
}),
|
|
@@ -123,7 +127,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
123
127
|
unitSystem: 'iec'
|
|
124
128
|
}), "/s") : preparing
|
|
125
129
|
}), jsx(MaterialRunboxStatusResourceItem, {
|
|
126
|
-
icon: jsx(
|
|
130
|
+
icon: jsx(FaIcon, {
|
|
127
131
|
icon: faDiscDrive,
|
|
128
132
|
fontSize: "small"
|
|
129
133
|
}),
|
|
@@ -142,7 +146,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
142
146
|
variant: "contained",
|
|
143
147
|
color: "error",
|
|
144
148
|
disabled: !isRunboxRunning,
|
|
145
|
-
startIcon: jsx(
|
|
149
|
+
startIcon: jsx(FaIcon, {
|
|
146
150
|
icon: faArrowsRotate
|
|
147
151
|
}),
|
|
148
152
|
runtimeTemplateId: runtimeTemplateId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Stack, Typography } from '@
|
|
2
|
+
import { Stack, Typography } from '@elice/eds-material';
|
|
3
3
|
|
|
4
4
|
//
|
|
5
5
|
//
|
|
@@ -10,24 +10,32 @@ var MaterialRunboxStatusResourceItem = function MaterialRunboxStatusResourceItem
|
|
|
10
10
|
value = _ref.value;
|
|
11
11
|
return jsxs(Stack, {
|
|
12
12
|
direction: "row",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
sx: {
|
|
14
|
+
padding: '0.375rem 0.75rem',
|
|
15
|
+
gap: '0.75rem',
|
|
16
|
+
alignItems: 'center'
|
|
17
|
+
},
|
|
16
18
|
children: [jsx(Typography, {
|
|
17
19
|
component: "span",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
sx: {
|
|
21
|
+
color: 'text.tertiary',
|
|
22
|
+
display: 'inline-flex'
|
|
23
|
+
},
|
|
20
24
|
children: icon
|
|
21
25
|
}), jsxs(Stack, {
|
|
22
26
|
direction: "column",
|
|
23
27
|
children: [jsx(Typography, {
|
|
24
28
|
variant: "body2",
|
|
25
|
-
|
|
29
|
+
sx: {
|
|
30
|
+
color: 'text.tertiary'
|
|
31
|
+
},
|
|
26
32
|
children: label
|
|
27
33
|
}), jsx(Typography, {
|
|
28
34
|
variant: "caption",
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
sx: {
|
|
36
|
+
color: 'text.tertiary',
|
|
37
|
+
fontFamily: "'JetBrains Mono', monospace"
|
|
38
|
+
},
|
|
31
39
|
children: value
|
|
32
40
|
})]
|
|
33
41
|
})]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const runboxDarkTheme: import("@
|
|
2
|
-
export declare const runboxLightTheme: import("@
|
|
1
|
+
export declare const runboxDarkTheme: import("@elice/eds-material").Theme;
|
|
2
|
+
export declare const runboxLightTheme: import("@elice/eds-material").Theme;
|