@elice/material-runbox 1.260825.0-runboxusability.8 → 1.260825.0-runboxusability.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/material-runbox/MaterialRunbox.js +15 -10
- package/cjs/components/material-runbox/MaterialRunboxContent.js +67 -51
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +3 -2
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +19 -12
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetDialog.d.ts +0 -1
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +1 -6
- package/cjs/components/material-runbox/runtime/RuntimeOverlayConflicted.js +67 -61
- package/cjs/components/material-runbox/runtime/RuntimeOverlayLoading.js +183 -178
- package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +50 -49
- package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.js +2 -1
- package/cjs/components/material-runbox/theme.d.ts +2 -0
- package/cjs/components/material-runbox/theme.js +15 -0
- package/es/components/material-runbox/MaterialRunbox.js +15 -10
- package/es/components/material-runbox/MaterialRunboxContent.js +68 -52
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +3 -2
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +20 -13
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetDialog.d.ts +0 -1
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +1 -6
- package/es/components/material-runbox/runtime/RuntimeOverlayConflicted.js +68 -62
- package/es/components/material-runbox/runtime/RuntimeOverlayLoading.js +185 -180
- package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +51 -50
- package/es/components/material-runbox/status/MaterialRunboxStatusPopover.js +2 -1
- package/es/components/material-runbox/theme.d.ts +2 -0
- package/es/components/material-runbox/theme.js +12 -0
- package/package.json +6 -6
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var intl = require('@elice/intl');
|
|
8
|
+
var material = require('@mui/material');
|
|
8
9
|
var MaterialRunboxContent = require('./MaterialRunboxContent.js');
|
|
10
|
+
var theme = require('./theme.js');
|
|
9
11
|
var en = require('./locales/en.json.js');
|
|
10
12
|
var ko = require('./locales/ko.json.js');
|
|
11
13
|
var MaterialRunboxContext = require('./contexts/MaterialRunboxContext.js');
|
|
@@ -28,16 +30,19 @@ var MaterialRunbox = function MaterialRunbox(_a) {
|
|
|
28
30
|
eliceMaterialRunboxApiConfiguration = _a.eliceMaterialRunboxApiConfiguration,
|
|
29
31
|
__intl = _a.__intl,
|
|
30
32
|
contentProps = tslib.__rest(_a, ["enableAutoShutdownToggle", "enableUrlShare", "locale", "showMessenger", "eliceMaterialRunboxApiConfiguration", "__intl"]);
|
|
31
|
-
return jsxRuntime.jsx(
|
|
32
|
-
|
|
33
|
-
children: jsxRuntime.jsx(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
children: jsxRuntime.jsx(
|
|
33
|
+
return jsxRuntime.jsx(material.ThemeProvider, {
|
|
34
|
+
theme: theme.runboxDarkTheme,
|
|
35
|
+
children: jsxRuntime.jsx(intl.RawEliceIntlProvider, {
|
|
36
|
+
value: __intl,
|
|
37
|
+
children: jsxRuntime.jsx(MaterialRunboxContext.default, {
|
|
38
|
+
enableAutoShutdownToggle: enableAutoShutdownToggle,
|
|
39
|
+
enableUrlShare: enableUrlShare,
|
|
40
|
+
locale: locale,
|
|
41
|
+
showMessenger: showMessenger,
|
|
42
|
+
children: jsxRuntime.jsx(MaterialRunboxApiContext.default, {
|
|
43
|
+
eliceMaterialRunboxApiConfiguration: eliceMaterialRunboxApiConfiguration,
|
|
44
|
+
children: jsxRuntime.jsx(MaterialRunboxContent.default, Object.assign({}, contentProps))
|
|
45
|
+
})
|
|
41
46
|
})
|
|
42
47
|
})
|
|
43
48
|
});
|
|
@@ -16,6 +16,7 @@ var MaterialAdminRunboxConfirmDialog = require('./MaterialAdminRunboxConfirmDial
|
|
|
16
16
|
var MaterialRunboxAlert = require('./MaterialRunboxAlert.js');
|
|
17
17
|
var MaterialRunboxBody = require('./MaterialRunboxBody.js');
|
|
18
18
|
var MaterialRunboxHeader = require('./MaterialRunboxHeader.js');
|
|
19
|
+
var theme = require('./theme.js');
|
|
19
20
|
var MaterialRunboxContext = require('./contexts/MaterialRunboxContext.js');
|
|
20
21
|
var MaterialRunboxApiContext = require('./contexts/MaterialRunboxApiContext.js');
|
|
21
22
|
var MaterialRunboxCommandContext = require('./contexts/MaterialRunboxCommandContext.js');
|
|
@@ -160,66 +161,81 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
160
161
|
//
|
|
161
162
|
//
|
|
162
163
|
if (isInitialLoading || starterEnabled && isLoading) {
|
|
163
|
-
return jsxRuntime.jsx(
|
|
164
|
-
|
|
164
|
+
return jsxRuntime.jsx(material.ThemeProvider, {
|
|
165
|
+
theme: theme.runboxLightTheme,
|
|
166
|
+
children: jsxRuntime.jsx(StyledRunboxContainer, {
|
|
167
|
+
sx: {
|
|
168
|
+
backgroundColor: 'background.paper'
|
|
169
|
+
},
|
|
170
|
+
children: jsxRuntime.jsx(material.CircularProgress, {})
|
|
171
|
+
})
|
|
165
172
|
});
|
|
166
173
|
}
|
|
167
174
|
if (isError) {
|
|
168
|
-
return jsxRuntime.jsx(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
startIcon: jsxRuntime.jsx(iconsMaterial.Refresh, {}),
|
|
180
|
-
onClick: function onClick() {
|
|
181
|
-
return refetch();
|
|
182
|
-
},
|
|
183
|
-
children: intl$1.formatMessage({
|
|
184
|
-
id: 'runbox.common.retry'
|
|
185
|
-
})
|
|
186
|
-
}), typeof showMessenger === 'function' ? jsxRuntime.jsx(material.Button, {
|
|
187
|
-
variant: "outlined",
|
|
188
|
-
onClick: function onClick() {
|
|
189
|
-
return showMessenger();
|
|
190
|
-
},
|
|
175
|
+
return jsxRuntime.jsx(material.ThemeProvider, {
|
|
176
|
+
theme: theme.runboxLightTheme,
|
|
177
|
+
children: jsxRuntime.jsx(StyledRunboxContainer, {
|
|
178
|
+
sx: {
|
|
179
|
+
backgroundColor: 'background.paper',
|
|
180
|
+
color: 'text.primary'
|
|
181
|
+
},
|
|
182
|
+
children: jsxRuntime.jsxs(material.Stack, {
|
|
183
|
+
gap: "1.5rem",
|
|
184
|
+
children: [jsxRuntime.jsx(material.Typography, {
|
|
185
|
+
variant: "h6",
|
|
191
186
|
children: intl$1.formatMessage({
|
|
192
|
-
id: 'runbox.
|
|
187
|
+
id: 'runbox.runtime.message.startError'
|
|
193
188
|
})
|
|
194
|
-
})
|
|
195
|
-
|
|
189
|
+
}), jsxRuntime.jsxs(material.Stack, {
|
|
190
|
+
gap: "0.5rem",
|
|
191
|
+
children: [jsxRuntime.jsx(material.Button, {
|
|
192
|
+
startIcon: jsxRuntime.jsx(iconsMaterial.Refresh, {}),
|
|
193
|
+
onClick: function onClick() {
|
|
194
|
+
return refetch();
|
|
195
|
+
},
|
|
196
|
+
children: intl$1.formatMessage({
|
|
197
|
+
id: 'runbox.common.retry'
|
|
198
|
+
})
|
|
199
|
+
}), typeof showMessenger === 'function' ? jsxRuntime.jsx(material.Button, {
|
|
200
|
+
variant: "outlined",
|
|
201
|
+
onClick: function onClick() {
|
|
202
|
+
return showMessenger();
|
|
203
|
+
},
|
|
204
|
+
children: intl$1.formatMessage({
|
|
205
|
+
id: 'runbox.common.support'
|
|
206
|
+
})
|
|
207
|
+
}) : null]
|
|
208
|
+
})]
|
|
209
|
+
})
|
|
196
210
|
})
|
|
197
211
|
});
|
|
198
212
|
}
|
|
199
213
|
if (!enabledLxpPlan) {
|
|
200
|
-
return jsxRuntime.jsx(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
214
|
+
return jsxRuntime.jsx(material.ThemeProvider, {
|
|
215
|
+
theme: theme.runboxLightTheme,
|
|
216
|
+
children: jsxRuntime.jsx(StyledRunboxContainer, {
|
|
217
|
+
sx: {
|
|
218
|
+
backgroundColor: 'background.paper',
|
|
219
|
+
color: 'text.primary'
|
|
220
|
+
},
|
|
221
|
+
children: jsxRuntime.jsxs(material.Stack, {
|
|
222
|
+
gap: "0.5rem",
|
|
223
|
+
textAlign: "center",
|
|
224
|
+
children: [jsxRuntime.jsx(material.Typography, {
|
|
225
|
+
variant: "h6",
|
|
226
|
+
color: "text.secondary",
|
|
227
|
+
children: intl$1.formatMessage({
|
|
228
|
+
id: 'runbox.runtime.message.runbox_unavailable'
|
|
229
|
+
})
|
|
230
|
+
}), jsxRuntime.jsx(material.Typography, {
|
|
231
|
+
variant: "body1",
|
|
232
|
+
whiteSpace: "pre-line",
|
|
233
|
+
color: "text.tertiary",
|
|
234
|
+
children: intl$1.formatMessage({
|
|
235
|
+
id: 'runbox.runtime.message.lxp_plan_required'
|
|
236
|
+
})
|
|
237
|
+
})]
|
|
238
|
+
})
|
|
223
239
|
})
|
|
224
240
|
});
|
|
225
241
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export interface MaterialRunboxEnvResetButtonProps extends Omit<
|
|
2
|
+
import type { LoadingButtonProps } from '@mui/lab';
|
|
3
|
+
export interface MaterialRunboxEnvResetButtonProps extends Omit<LoadingButtonProps, 'onClick' | 'loading'> {
|
|
4
4
|
runtimeTemplateId: string;
|
|
5
5
|
courseId: number;
|
|
6
6
|
userId?: number;
|
|
7
|
+
onSuccess?: () => void;
|
|
7
8
|
}
|
|
8
9
|
declare const MaterialRunboxEnvResetButton: React.FC<MaterialRunboxEnvResetButtonProps>;
|
|
9
10
|
export default MaterialRunboxEnvResetButton;
|
|
@@ -8,7 +8,9 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var intl = require('@elice/intl');
|
|
10
10
|
var muiXSnackbar = require('@elice/mui-x-snackbar');
|
|
11
|
+
var lab = require('@mui/lab');
|
|
11
12
|
var material = require('@mui/material');
|
|
13
|
+
var theme = require('../theme.js');
|
|
12
14
|
var MaterialRunboxEnvResetDialog = require('./MaterialRunboxEnvResetDialog.js');
|
|
13
15
|
var MaterialRunboxApiContext = require('../contexts/MaterialRunboxApiContext.js');
|
|
14
16
|
var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
|
|
@@ -24,7 +26,8 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
|
|
|
24
26
|
var runtimeTemplateId = _a.runtimeTemplateId,
|
|
25
27
|
courseId = _a.courseId,
|
|
26
28
|
userId = _a.userId,
|
|
27
|
-
|
|
29
|
+
onSuccess = _a.onSuccess,
|
|
30
|
+
props = tslib.__rest(_a, ["runtimeTemplateId", "courseId", "userId", "onSuccess"]);
|
|
28
31
|
var intl$1 = intl.useRawEliceIntl();
|
|
29
32
|
var _useSnackbar = muiXSnackbar.useSnackbar(),
|
|
30
33
|
enqueueSnackbar = _useSnackbar.enqueueSnackbar;
|
|
@@ -48,6 +51,7 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
|
|
|
48
51
|
return _rollupPluginBabelHelpers.regenerator().w(function (_context) {
|
|
49
52
|
while (1) switch (_context.p = _context.n) {
|
|
50
53
|
case 0:
|
|
54
|
+
setDialogOpened(false);
|
|
51
55
|
setResetting(true);
|
|
52
56
|
_context.p = 1;
|
|
53
57
|
_context.n = 2;
|
|
@@ -79,12 +83,12 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
|
|
|
79
83
|
eliceCourseId: courseId
|
|
80
84
|
});
|
|
81
85
|
case 4:
|
|
82
|
-
setDialogOpened(false);
|
|
83
86
|
enqueueSnackbar(intl$1.formatMessage({
|
|
84
87
|
id: 'runbox.disk.env_reset.noti.success'
|
|
85
88
|
}), {
|
|
86
89
|
variant: 'success'
|
|
87
90
|
});
|
|
91
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
|
88
92
|
// The reset replaces the disk, which the server can only do with the
|
|
89
93
|
// runtime detached, so the session is always gone by now. Start it back
|
|
90
94
|
// up so the learner lands on the practice screen instead of a dead one.
|
|
@@ -121,22 +125,25 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
|
|
|
121
125
|
//
|
|
122
126
|
//
|
|
123
127
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
124
|
-
children: [jsxRuntime.jsx(
|
|
128
|
+
children: [jsxRuntime.jsx(lab.LoadingButton, Object.assign({}, props, {
|
|
129
|
+
loading: isResetting,
|
|
125
130
|
onClick: function onClick() {
|
|
126
131
|
return setDialogOpened(true);
|
|
127
132
|
},
|
|
128
133
|
children: intl$1.formatMessage({
|
|
129
134
|
id: 'runbox.disk.env_reset.title'
|
|
130
135
|
})
|
|
131
|
-
})), jsxRuntime.jsx(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
})), jsxRuntime.jsx(material.ThemeProvider, {
|
|
137
|
+
theme: theme.runboxDarkTheme,
|
|
138
|
+
children: jsxRuntime.jsx(MaterialRunboxEnvResetDialog.default, {
|
|
139
|
+
open: isDialogOpened,
|
|
140
|
+
onClose: function onClose() {
|
|
141
|
+
return setDialogOpened(false);
|
|
142
|
+
},
|
|
143
|
+
onConfirm: function onConfirm() {
|
|
144
|
+
return void handleConfirm();
|
|
145
|
+
}
|
|
146
|
+
})
|
|
140
147
|
})]
|
|
141
148
|
});
|
|
142
149
|
};
|
|
@@ -8,7 +8,6 @@ var React = require('react');
|
|
|
8
8
|
var intl = require('@elice/intl');
|
|
9
9
|
var muiElements = require('@elice/mui-elements');
|
|
10
10
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
11
|
-
var lab = require('@mui/lab');
|
|
12
11
|
var material = require('@mui/material');
|
|
13
12
|
|
|
14
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -25,8 +24,6 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
25
24
|
*/
|
|
26
25
|
var MaterialRunboxEnvResetDialog = function MaterialRunboxEnvResetDialog(_ref) {
|
|
27
26
|
var open = _ref.open,
|
|
28
|
-
_ref$isResetting = _ref.isResetting,
|
|
29
|
-
isResetting = _ref$isResetting === void 0 ? false : _ref$isResetting,
|
|
30
27
|
onClose = _ref.onClose,
|
|
31
28
|
onConfirm = _ref.onConfirm;
|
|
32
29
|
var intl$1 = intl.useRawEliceIntl();
|
|
@@ -82,14 +79,12 @@ var MaterialRunboxEnvResetDialog = function MaterialRunboxEnvResetDialog(_ref) {
|
|
|
82
79
|
}), jsxRuntime.jsxs(material.DialogActions, {
|
|
83
80
|
children: [jsxRuntime.jsx(material.Button, {
|
|
84
81
|
color: "inherit",
|
|
85
|
-
disabled: isResetting,
|
|
86
82
|
onClick: onClose,
|
|
87
83
|
children: intl$1.formatMessage({
|
|
88
84
|
id: 'runbox.disk.env_reset.dialog.actions.cancel'
|
|
89
85
|
})
|
|
90
|
-
}), jsxRuntime.jsx(
|
|
86
|
+
}), jsxRuntime.jsx(material.Button, {
|
|
91
87
|
color: "error",
|
|
92
|
-
loading: isResetting,
|
|
93
88
|
disabled: !isAcknowledged,
|
|
94
89
|
onClick: onConfirm,
|
|
95
90
|
children: intl$1.formatMessage({
|
|
@@ -8,10 +8,10 @@ var React = require('react');
|
|
|
8
8
|
var apiClient = require('@elice/api-client');
|
|
9
9
|
var intl = require('@elice/intl');
|
|
10
10
|
var muiElements = require('@elice/mui-elements');
|
|
11
|
-
var muiSystem = require('@elice/mui-system');
|
|
12
11
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
13
12
|
var material = require('@mui/material');
|
|
14
13
|
var reactQuery = require('@tanstack/react-query');
|
|
14
|
+
var theme = require('../theme.js');
|
|
15
15
|
var RuntimeChangeMaterialDialog = require('./RuntimeChangeMaterialDialog.js');
|
|
16
16
|
var terminated = require('../../../assets/terminated.png.js');
|
|
17
17
|
var en = require('../locales/en.json.js');
|
|
@@ -87,7 +87,7 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
87
87
|
width: '32rem',
|
|
88
88
|
maxWidth: '100%',
|
|
89
89
|
padding: '1rem',
|
|
90
|
-
color: 'text.primary
|
|
90
|
+
color: 'text.primary',
|
|
91
91
|
bgcolor: 'grey.100',
|
|
92
92
|
'&:hover': {
|
|
93
93
|
bgcolor: 'grey.200'
|
|
@@ -101,10 +101,10 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
101
101
|
direction: "column",
|
|
102
102
|
alignItems: "flex-start",
|
|
103
103
|
children: [courseId !== runningCourse.id ? jsxRuntime.jsx(material.Typography, {
|
|
104
|
-
color: "text.tertiary
|
|
104
|
+
color: "text.tertiary",
|
|
105
105
|
children: runningCourse === null || runningCourse === void 0 ? void 0 : runningCourse.title
|
|
106
106
|
}) : null, jsxRuntime.jsx(material.Typography, {
|
|
107
|
-
color: "text.primary
|
|
107
|
+
color: "text.primary",
|
|
108
108
|
children: runningRunbox.title
|
|
109
109
|
})]
|
|
110
110
|
})
|
|
@@ -117,12 +117,15 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
117
117
|
if (!isChangeMaterialDialogOpen) {
|
|
118
118
|
return null;
|
|
119
119
|
}
|
|
120
|
-
return jsxRuntime.jsx(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
return jsxRuntime.jsx(material.ThemeProvider, {
|
|
121
|
+
theme: theme.runboxDarkTheme,
|
|
122
|
+
children: jsxRuntime.jsx(RuntimeChangeMaterialDialog.default, {
|
|
123
|
+
intl: intl,
|
|
124
|
+
open: isChangeMaterialDialogOpen,
|
|
125
|
+
onClose: function onClose() {
|
|
126
|
+
return setChangeMaterialDialogOpen(false);
|
|
127
|
+
}
|
|
128
|
+
})
|
|
126
129
|
});
|
|
127
130
|
};
|
|
128
131
|
/**
|
|
@@ -135,58 +138,61 @@ var RuntimeOverlayConflicted = function RuntimeOverlayConflicted(_ref) {
|
|
|
135
138
|
//
|
|
136
139
|
//
|
|
137
140
|
var renderOverlay = function renderOverlay() {
|
|
138
|
-
return jsxRuntime.jsx(material.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
children: intl.formatMessage({
|
|
161
|
-
id: 'runbox.runtime.overlay.conflicted.title'
|
|
162
|
-
})
|
|
163
|
-
}), renderNavButton(), jsxRuntime.jsx(material.Typography, {
|
|
164
|
-
variant: "body1",
|
|
165
|
-
textAlign: "center",
|
|
166
|
-
whiteSpace: "pre-line",
|
|
167
|
-
children: intl.formatMessage({
|
|
168
|
-
id: 'runbox.runtime.overlay.conflicted.description'
|
|
169
|
-
})
|
|
170
|
-
}), jsxRuntime.jsx(material.Button, {
|
|
171
|
-
variant: "contained",
|
|
172
|
-
color: "primary",
|
|
173
|
-
startIcon: jsxRuntime.jsx(muiElements.EliceIcon, {
|
|
174
|
-
icon: proSolidSvgIcons.faLinkSimple
|
|
175
|
-
}),
|
|
176
|
-
sx: {
|
|
177
|
-
width: '20rem',
|
|
178
|
-
maxWidth: '100%',
|
|
179
|
-
color: 'text.primary',
|
|
180
|
-
bgcolor: muiSystem.colors.elicepurple[700],
|
|
181
|
-
'&:hover': {
|
|
182
|
-
bgcolor: muiSystem.colors.elicepurple[800]
|
|
141
|
+
return jsxRuntime.jsx(material.ThemeProvider, {
|
|
142
|
+
theme: theme.runboxLightTheme,
|
|
143
|
+
children: jsxRuntime.jsx(material.Box, {
|
|
144
|
+
sx: {
|
|
145
|
+
display: 'flex',
|
|
146
|
+
justifyContent: 'center',
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
width: '100%',
|
|
149
|
+
height: '100%',
|
|
150
|
+
backgroundColor: 'background.paper',
|
|
151
|
+
color: 'text.primary'
|
|
152
|
+
},
|
|
153
|
+
children: jsxRuntime.jsxs(material.Stack, {
|
|
154
|
+
gap: "1.5rem",
|
|
155
|
+
alignItems: "center",
|
|
156
|
+
children: [jsxRuntime.jsx(material.Box, {
|
|
157
|
+
component: "img",
|
|
158
|
+
src: terminated.default,
|
|
159
|
+
alt: "terminated",
|
|
160
|
+
sx: {
|
|
161
|
+
maxWidth: '10rem',
|
|
162
|
+
height: 'auto'
|
|
183
163
|
}
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
164
|
+
}), jsxRuntime.jsx(material.Typography, {
|
|
165
|
+
variant: "h6",
|
|
166
|
+
textAlign: "center",
|
|
167
|
+
children: intl.formatMessage({
|
|
168
|
+
id: 'runbox.runtime.overlay.conflicted.title'
|
|
169
|
+
})
|
|
170
|
+
}), renderNavButton(), jsxRuntime.jsx(material.Typography, {
|
|
171
|
+
variant: "body1",
|
|
172
|
+
textAlign: "center",
|
|
173
|
+
whiteSpace: "pre-line",
|
|
174
|
+
children: intl.formatMessage({
|
|
175
|
+
id: 'runbox.runtime.overlay.conflicted.description'
|
|
176
|
+
})
|
|
177
|
+
}), jsxRuntime.jsx(material.Box, {
|
|
178
|
+
sx: {
|
|
179
|
+
width: '20rem',
|
|
180
|
+
maxWidth: '100%'
|
|
181
|
+
},
|
|
182
|
+
children: jsxRuntime.jsx(material.Button, {
|
|
183
|
+
fullWidth: true,
|
|
184
|
+
variant: "contained",
|
|
185
|
+
color: "primary",
|
|
186
|
+
startIcon: jsxRuntime.jsx(muiElements.EliceIcon, {
|
|
187
|
+
icon: proSolidSvgIcons.faLinkSimple
|
|
188
|
+
}),
|
|
189
|
+
onClick: handleClickConnect,
|
|
190
|
+
children: intl.formatMessage({
|
|
191
|
+
id: 'runbox.common.connect'
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
})]
|
|
195
|
+
})
|
|
190
196
|
})
|
|
191
197
|
});
|
|
192
198
|
};
|