@elice/material-exercise 1.240514.2 → 1.240517.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-exercise/MaterialExercise.js +3 -1
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +3 -1
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +3 -1
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +3 -1
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +3 -1
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.js +3 -1
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +3 -1
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +3 -1
- package/cjs/components/material-exercise/exercise-submit-history/locales/en.json.js +1 -1
- package/cjs/components/material-exercise/exercise-submit-history/locales/ko.json.js +1 -1
- package/cjs/components/material-exercise/exercise-submit-history/locales/th.json.js +1 -1
- package/cjs/components/shared/no-vnc/NoVnc.d.ts +4 -2
- package/cjs/components/shared/no-vnc/NoVnc.js +16 -4
- package/cjs/components/shared/no-vnc/locales/en.json.js +7 -0
- package/cjs/components/shared/no-vnc/locales/ko.json.js +7 -0
- package/cjs/components/shared/no-vnc/locales/th.json.js +7 -0
- package/es/components/material-exercise/MaterialExercise.js +3 -1
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +3 -1
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +3 -1
- package/es/components/material-exercise/exercise-preview/ExercisePreview.js +3 -1
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +3 -1
- package/es/components/material-exercise/exercise-room/ExerciseRoom.js +3 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +3 -1
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +3 -1
- package/es/components/material-exercise/exercise-submit-history/locales/en.json.js +1 -1
- package/es/components/material-exercise/exercise-submit-history/locales/ko.json.js +1 -1
- package/es/components/material-exercise/exercise-submit-history/locales/th.json.js +1 -1
- package/es/components/shared/no-vnc/NoVnc.d.ts +4 -2
- package/es/components/shared/no-vnc/NoVnc.js +16 -4
- package/es/components/shared/no-vnc/locales/en.json.js +3 -0
- package/es/components/shared/no-vnc/locales/ko.json.js +3 -0
- package/es/components/shared/no-vnc/locales/th.json.js +3 -0
- package/package.json +5 -5
|
@@ -174,7 +174,9 @@ const MaterialExercise = React.forwardRef((props, ref) => {
|
|
|
174
174
|
//
|
|
175
175
|
//
|
|
176
176
|
var MaterialExercise$1 = new intl.IntlComponentBuilder(materialSharedUtils.withForwardRefMaterial(React.forwardRef((props, ref) => {
|
|
177
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
177
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
178
|
+
value: props.__intl
|
|
179
|
+
}, React.createElement(ExerciseProvider.default, Object.assign({}, props), React.createElement(MaterialExercise, Object.assign({}, props, {
|
|
178
180
|
ref: ref
|
|
179
181
|
}))));
|
|
180
182
|
}), apiClient.config.init, {
|
|
@@ -64,7 +64,9 @@ const ExerciseFileTabs = ({
|
|
|
64
64
|
}
|
|
65
65
|
setActiveFilename(path);
|
|
66
66
|
};
|
|
67
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
67
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
68
|
+
value: __intl
|
|
69
|
+
}, React.createElement(StyledFileTabsWrapper, null, React.createElement(React.Suspense, {
|
|
68
70
|
fallback: React.createElement(ExerciseFileTabsShimmer.default, null)
|
|
69
71
|
}, React.createElement(AsyncFileTabs, {
|
|
70
72
|
openedTabs: openedTabs,
|
|
@@ -36,7 +36,9 @@ const ExerciseMenu = ({
|
|
|
36
36
|
//
|
|
37
37
|
//
|
|
38
38
|
//
|
|
39
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
39
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
40
|
+
value: __intl
|
|
41
|
+
}, React.createElement(StyledExerciseMenuWrapper, null, isArduinoExercise ? React.createElement(React.Fragment, null, React.createElement(ExerciseMenuArduinoAgentModalButton.default, null), React.createElement(ExerciseMenuArduinoSettings.default, null)) : React.createElement(ExerciseMenuStdioFileBrowser.default, null), React.createElement(ExerciseMenuReset.default, null), React.createElement(ExerciseMenuDropdown.default, null)));
|
|
40
42
|
};
|
|
41
43
|
var ExerciseMenu$1 = new intl.IntlComponentBuilder(ExerciseMenu).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
42
44
|
|
|
@@ -96,7 +96,9 @@ const ExercisePreview = ({
|
|
|
96
96
|
//
|
|
97
97
|
//
|
|
98
98
|
//
|
|
99
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
99
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
100
|
+
value: __intl
|
|
101
|
+
}, React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser()));
|
|
100
102
|
};
|
|
101
103
|
var ExercisePreview$1 = new intl.IntlComponentBuilder(ExercisePreview).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
102
104
|
|
|
@@ -100,7 +100,9 @@ const ExerciseRightpane = ({
|
|
|
100
100
|
if (!activeState) {
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
103
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
103
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
104
|
+
value: __intl
|
|
105
|
+
}, React.createElement(StyledRightpaneWrap, null, renderRightpaneHeader(), React.createElement(blocks.Hr, {
|
|
104
106
|
marginStart: 0,
|
|
105
107
|
marginEnd: 0,
|
|
106
108
|
color: designTokens.base.color.navy6
|
|
@@ -23,7 +23,9 @@ const ExerciseRoom = ({
|
|
|
23
23
|
onExerciseRoomClick: id => setSelectedExerciseRoomId(id),
|
|
24
24
|
onHide: onHide
|
|
25
25
|
});
|
|
26
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
26
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
27
|
+
value: __intl
|
|
28
|
+
}, ExerciseRoomContent);
|
|
27
29
|
};
|
|
28
30
|
var ExerciseRoom$1 = new intl.IntlComponentBuilder(ExerciseRoom).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
29
31
|
|
|
@@ -502,7 +502,9 @@ const ExerciseRunner = ({
|
|
|
502
502
|
//
|
|
503
503
|
//
|
|
504
504
|
//
|
|
505
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
505
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
506
|
+
value: __intl
|
|
507
|
+
}, React.createElement(StyledExerciseRunner, null, React.createElement(ExerciseRunnerContext.ExerciseRunnerContext.Provider, {
|
|
506
508
|
value: {
|
|
507
509
|
onSubmit: handleRunnerSubmit,
|
|
508
510
|
onCancel: handleRunnerCancel,
|
|
@@ -303,7 +303,9 @@ const ExerciseSubmitHistory = ({
|
|
|
303
303
|
//
|
|
304
304
|
//
|
|
305
305
|
//
|
|
306
|
-
return React.createElement(intl.RawEliceIntlProvider,
|
|
306
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
307
|
+
value: __intl
|
|
308
|
+
}, React.createElement(MaterialModal.default, {
|
|
307
309
|
title: __intl.formatMessage({
|
|
308
310
|
id: 'exerciseSubmitHistory.title'
|
|
309
311
|
}),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var messageEn = {"exerciseSubmitHistory.button.load.more":"Load more","exerciseSubmitHistory.notChanged":"A file with no modification history.","exerciseSubmitHistory.runType.grade":"Grade","exerciseSubmitHistory.runType.run":"Run","exerciseSubmitHistory.title":"
|
|
5
|
+
var messageEn = {"exerciseSubmitHistory.button.load.more":"Load more","exerciseSubmitHistory.notChanged":"A file with no modification history.","exerciseSubmitHistory.runType.grade":"Grade","exerciseSubmitHistory.runType.run":"Run","exerciseSubmitHistory.title":"Submission history"};
|
|
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 messageKo = {"exerciseSubmitHistory.button.load.more":"더 불러오기","exerciseSubmitHistory.notChanged":"수정 내역이 없는 파일입니다.","exerciseSubmitHistory.runType.grade":"제출","exerciseSubmitHistory.runType.run":"실행","exerciseSubmitHistory.title":"
|
|
5
|
+
var messageKo = {"exerciseSubmitHistory.button.load.more":"더 불러오기","exerciseSubmitHistory.notChanged":"수정 내역이 없는 파일입니다.","exerciseSubmitHistory.runType.grade":"제출","exerciseSubmitHistory.runType.run":"실행","exerciseSubmitHistory.title":"제출 이력"};
|
|
6
6
|
|
|
7
7
|
exports.default = messageKo;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var messageTh = {"exerciseSubmitHistory.button.load.more":"โหลดเพิ่มเติม","exerciseSubmitHistory.notChanged":"ไฟล์ที่ไม่มีประวัติการแก้ไข","exerciseSubmitHistory.runType.grade":"เกรด","exerciseSubmitHistory.runType.run":"เรียกใช้งาน","exerciseSubmitHistory.title":"
|
|
5
|
+
var messageTh = {"exerciseSubmitHistory.button.load.more":"โหลดเพิ่มเติม","exerciseSubmitHistory.notChanged":"ไฟล์ที่ไม่มีประวัติการแก้ไข","exerciseSubmitHistory.runType.grade":"เกรด","exerciseSubmitHistory.runType.run":"เรียกใช้งาน","exerciseSubmitHistory.title":"ประวัติการส่ง"};
|
|
6
6
|
|
|
7
7
|
exports.default = messageTh;
|
|
@@ -15,5 +15,7 @@ export interface NoVncProps {
|
|
|
15
15
|
onConnect?: () => void;
|
|
16
16
|
onDisconnect?: () => void;
|
|
17
17
|
}
|
|
18
|
-
declare const
|
|
19
|
-
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<NoVncProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
19
|
+
__intl: import("@elice/intl").EliceIntlShape;
|
|
20
|
+
} & React.RefAttributes<NoVncApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<NoVncApis>>;
|
|
21
|
+
export default _default;
|
|
@@ -7,6 +7,7 @@ var reactUse = require('react-use');
|
|
|
7
7
|
var blocks = require('@elice/blocks');
|
|
8
8
|
var designTokens = require('@elice/design-tokens');
|
|
9
9
|
var icons = require('@elice/icons');
|
|
10
|
+
var intl = require('@elice/intl');
|
|
10
11
|
var RFB_decoders_copy_rect = require('@novnc/novnc/core/decoders/copyrect');
|
|
11
12
|
var RFB_decoders_hextile = require('@novnc/novnc/core/decoders/hextile');
|
|
12
13
|
var RFB_decoders_raw = require('@novnc/novnc/core/decoders/raw');
|
|
@@ -18,6 +19,7 @@ var RFB = require('@novnc/novnc/core/rfb');
|
|
|
18
19
|
var styled = require('styled-components');
|
|
19
20
|
var ExerciseMenuButton = require('../exercise-menu-button/ExerciseMenuButton.js');
|
|
20
21
|
var PreviewContainer = require('../preview-container/PreviewContainer.js');
|
|
22
|
+
var en = require('./locales/en.json.js');
|
|
21
23
|
|
|
22
24
|
//
|
|
23
25
|
//
|
|
@@ -48,7 +50,8 @@ const NoVnc = React.forwardRef(({
|
|
|
48
50
|
readyExerciseImage,
|
|
49
51
|
exercisePreviewDisplayModeButton = null,
|
|
50
52
|
onConnect,
|
|
51
|
-
onDisconnect
|
|
53
|
+
onDisconnect,
|
|
54
|
+
__intl
|
|
52
55
|
}, ref) => {
|
|
53
56
|
const vncRfb = React.useRef(null);
|
|
54
57
|
const vncElRef = React.useRef(null);
|
|
@@ -226,9 +229,17 @@ const NoVnc = React.forwardRef(({
|
|
|
226
229
|
return React.createElement(React.Fragment, null, React.createElement(StyledHeaderTitle, null, React.createElement(blocks.Text, {
|
|
227
230
|
role: "white",
|
|
228
231
|
size: "tiny"
|
|
229
|
-
},
|
|
232
|
+
}, __intl.formatMessage({
|
|
233
|
+
id: 'no_vnc.header.title'
|
|
234
|
+
}))), React.createElement(StyledHeaderButtonGroup, null, React.createElement(ExerciseMenuButton.default, {
|
|
230
235
|
icon: isVncScaledFromLocal ? icons.eilViewMaximize : icons.eilViewMinimize,
|
|
231
|
-
title: isRunning ?
|
|
236
|
+
title: isRunning ? __intl.formatMessage({
|
|
237
|
+
id: 'no_vnc.header.button_group.exercise_menu.is_running'
|
|
238
|
+
}) : isVncScaledFromLocal ? __intl.formatMessage({
|
|
239
|
+
id: 'no_vnc.header.button_group.exercise_menu.zoom_in'
|
|
240
|
+
}) : __intl.formatMessage({
|
|
241
|
+
id: 'no_vnc.header.button_group.exercise_menu.keep_ratio'
|
|
242
|
+
}),
|
|
232
243
|
disabled: isRunning,
|
|
233
244
|
onClick: () => setVncScaledFromLocal(prev => !prev)
|
|
234
245
|
}), React.isValidElement(exercisePreviewDisplayModeButton) ? React.cloneElement(exercisePreviewDisplayModeButton, {
|
|
@@ -249,5 +260,6 @@ const NoVnc = React.forwardRef(({
|
|
|
249
260
|
ref: vncElRef
|
|
250
261
|
}))));
|
|
251
262
|
});
|
|
263
|
+
var NoVnc$1 = new intl.IntlComponentBuilder(NoVnc).add('en', en.default).addAsync('ko', Promise.resolve().then(function () { return require('./locales/ko.json.js'); })).addAsync('th', Promise.resolve().then(function () { return require('./locales/th.json.js'); })).build();
|
|
252
264
|
|
|
253
|
-
exports.default = NoVnc;
|
|
265
|
+
exports.default = NoVnc$1;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageEn = {"no_vnc.header.title":"Execution Result","no_vnc.header.button_group.exercise_menu.is_running":"You can't change the ratio while running","no_vnc.header.button_group.exercise_menu.zoom_in":"Zoom in","no_vnc.header.button_group.exercise_menu.keep_ratio":"Keep the original ratio"};
|
|
6
|
+
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ko = {"no_vnc.header.title":"실행 결과","no_vnc.header.button_group.exercise_menu.is_running":"실행 중에는 비율을 변경할 수 없습니다","no_vnc.header.button_group.exercise_menu.zoom_in":"확대하여 보기","no_vnc.header.button_group.exercise_menu.keep_ratio":"원본 비율로 보기"};
|
|
6
|
+
|
|
7
|
+
exports.default = ko;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var th = {"no_vnc.header.title":"ผลลัพธ์","no_vnc.header.button_group.exercise_menu.is_running":"คุณไม่สามารถเปลี่ยนอัตราส่วนขณะกำลังทำงาน","no_vnc.header.button_group.exercise_menu.zoom_in":"ซูมเข้า","no_vnc.header.button_group.exercise_menu.keep_ratio":"รักษาอัตราส่วนเดิม"};
|
|
6
|
+
|
|
7
|
+
exports.default = th;
|
|
@@ -170,7 +170,9 @@ const MaterialExercise = forwardRef((props, ref) => {
|
|
|
170
170
|
//
|
|
171
171
|
//
|
|
172
172
|
var MaterialExercise$1 = new IntlComponentBuilder(withForwardRefMaterial(forwardRef((props, ref) => {
|
|
173
|
-
return React.createElement(RawEliceIntlProvider,
|
|
173
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
174
|
+
value: props.__intl
|
|
175
|
+
}, React.createElement(ExerciseProvider, Object.assign({}, props), React.createElement(MaterialExercise, Object.assign({}, props, {
|
|
174
176
|
ref: ref
|
|
175
177
|
}))));
|
|
176
178
|
}), config.init, {
|
|
@@ -60,7 +60,9 @@ const ExerciseFileTabs = ({
|
|
|
60
60
|
}
|
|
61
61
|
setActiveFilename(path);
|
|
62
62
|
};
|
|
63
|
-
return React.createElement(RawEliceIntlProvider,
|
|
63
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
64
|
+
value: __intl
|
|
65
|
+
}, React.createElement(StyledFileTabsWrapper, null, React.createElement(React.Suspense, {
|
|
64
66
|
fallback: React.createElement(ExerciseFileTabsShimmer, null)
|
|
65
67
|
}, React.createElement(AsyncFileTabs, {
|
|
66
68
|
openedTabs: openedTabs,
|
|
@@ -32,7 +32,9 @@ const ExerciseMenu = ({
|
|
|
32
32
|
//
|
|
33
33
|
//
|
|
34
34
|
//
|
|
35
|
-
return React.createElement(RawEliceIntlProvider,
|
|
35
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
36
|
+
value: __intl
|
|
37
|
+
}, React.createElement(StyledExerciseMenuWrapper, null, isArduinoExercise ? React.createElement(React.Fragment, null, React.createElement(ExerciseMenuArduinoAgentModalButton, null), React.createElement(ExerciseMenuArduinoSettings, null)) : React.createElement(ExerciseMenuStdioFileBrowser, null), React.createElement(ExerciseMenuReset, null), React.createElement(ExerciseMenuDropdown, null)));
|
|
36
38
|
};
|
|
37
39
|
var ExerciseMenu$1 = new IntlComponentBuilder(ExerciseMenu).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
38
40
|
|
|
@@ -92,7 +92,9 @@ const ExercisePreview = ({
|
|
|
92
92
|
//
|
|
93
93
|
//
|
|
94
94
|
//
|
|
95
|
-
return React.createElement(RawEliceIntlProvider,
|
|
95
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
96
|
+
value: __intl
|
|
97
|
+
}, React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser()));
|
|
96
98
|
};
|
|
97
99
|
var ExercisePreview$1 = new IntlComponentBuilder(ExercisePreview).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
98
100
|
|
|
@@ -96,7 +96,9 @@ const ExerciseRightpane = ({
|
|
|
96
96
|
if (!activeState) {
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
|
-
return React.createElement(RawEliceIntlProvider,
|
|
99
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
100
|
+
value: __intl
|
|
101
|
+
}, React.createElement(StyledRightpaneWrap, null, renderRightpaneHeader(), React.createElement(Hr, {
|
|
100
102
|
marginStart: 0,
|
|
101
103
|
marginEnd: 0,
|
|
102
104
|
color: base.color.navy6
|
|
@@ -19,7 +19,9 @@ const ExerciseRoom = ({
|
|
|
19
19
|
onExerciseRoomClick: id => setSelectedExerciseRoomId(id),
|
|
20
20
|
onHide: onHide
|
|
21
21
|
});
|
|
22
|
-
return React.createElement(RawEliceIntlProvider,
|
|
22
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
23
|
+
value: __intl
|
|
24
|
+
}, ExerciseRoomContent);
|
|
23
25
|
};
|
|
24
26
|
var ExerciseRoom$1 = new IntlComponentBuilder(ExerciseRoom).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
25
27
|
|
|
@@ -498,7 +498,9 @@ const ExerciseRunner = ({
|
|
|
498
498
|
//
|
|
499
499
|
//
|
|
500
500
|
//
|
|
501
|
-
return React.createElement(RawEliceIntlProvider,
|
|
501
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
502
|
+
value: __intl
|
|
503
|
+
}, React.createElement(StyledExerciseRunner, null, React.createElement(ExerciseRunnerContext.Provider, {
|
|
502
504
|
value: {
|
|
503
505
|
onSubmit: handleRunnerSubmit,
|
|
504
506
|
onCancel: handleRunnerCancel,
|
|
@@ -299,7 +299,9 @@ const ExerciseSubmitHistory = ({
|
|
|
299
299
|
//
|
|
300
300
|
//
|
|
301
301
|
//
|
|
302
|
-
return React.createElement(RawEliceIntlProvider,
|
|
302
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
303
|
+
value: __intl
|
|
304
|
+
}, React.createElement(MaterialModal, {
|
|
303
305
|
title: __intl.formatMessage({
|
|
304
306
|
id: 'exerciseSubmitHistory.title'
|
|
305
307
|
}),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageEn = {"exerciseSubmitHistory.button.load.more":"Load more","exerciseSubmitHistory.notChanged":"A file with no modification history.","exerciseSubmitHistory.runType.grade":"Grade","exerciseSubmitHistory.runType.run":"Run","exerciseSubmitHistory.title":"
|
|
1
|
+
var messageEn = {"exerciseSubmitHistory.button.load.more":"Load more","exerciseSubmitHistory.notChanged":"A file with no modification history.","exerciseSubmitHistory.runType.grade":"Grade","exerciseSubmitHistory.runType.run":"Run","exerciseSubmitHistory.title":"Submission history"};
|
|
2
2
|
|
|
3
3
|
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageKo = {"exerciseSubmitHistory.button.load.more":"더 불러오기","exerciseSubmitHistory.notChanged":"수정 내역이 없는 파일입니다.","exerciseSubmitHistory.runType.grade":"제출","exerciseSubmitHistory.runType.run":"실행","exerciseSubmitHistory.title":"
|
|
1
|
+
var messageKo = {"exerciseSubmitHistory.button.load.more":"더 불러오기","exerciseSubmitHistory.notChanged":"수정 내역이 없는 파일입니다.","exerciseSubmitHistory.runType.grade":"제출","exerciseSubmitHistory.runType.run":"실행","exerciseSubmitHistory.title":"제출 이력"};
|
|
2
2
|
|
|
3
3
|
export { messageKo as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageTh = {"exerciseSubmitHistory.button.load.more":"โหลดเพิ่มเติม","exerciseSubmitHistory.notChanged":"ไฟล์ที่ไม่มีประวัติการแก้ไข","exerciseSubmitHistory.runType.grade":"เกรด","exerciseSubmitHistory.runType.run":"เรียกใช้งาน","exerciseSubmitHistory.title":"
|
|
1
|
+
var messageTh = {"exerciseSubmitHistory.button.load.more":"โหลดเพิ่มเติม","exerciseSubmitHistory.notChanged":"ไฟล์ที่ไม่มีประวัติการแก้ไข","exerciseSubmitHistory.runType.grade":"เกรด","exerciseSubmitHistory.runType.run":"เรียกใช้งาน","exerciseSubmitHistory.title":"ประวัติการส่ง"};
|
|
2
2
|
|
|
3
3
|
export { messageTh as default };
|
|
@@ -15,5 +15,7 @@ export interface NoVncProps {
|
|
|
15
15
|
onConnect?: () => void;
|
|
16
16
|
onDisconnect?: () => void;
|
|
17
17
|
}
|
|
18
|
-
declare const
|
|
19
|
-
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<NoVncProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
19
|
+
__intl: import("@elice/intl").EliceIntlShape;
|
|
20
|
+
} & React.RefAttributes<NoVncApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<NoVncApis>>;
|
|
21
|
+
export default _default;
|
|
@@ -3,6 +3,7 @@ import { useMeasure, useMount, useUnmount, useUpdateEffect } from 'react-use';
|
|
|
3
3
|
import { Text } from '@elice/blocks';
|
|
4
4
|
import { base } from '@elice/design-tokens';
|
|
5
5
|
import { eilViewMaximize, eilViewMinimize } from '@elice/icons';
|
|
6
|
+
import { IntlComponentBuilder } from '@elice/intl';
|
|
6
7
|
import RFB_decoders_copy_rect from '@novnc/novnc/core/decoders/copyrect';
|
|
7
8
|
import RFB_decoders_hextile from '@novnc/novnc/core/decoders/hextile';
|
|
8
9
|
import RFB_decoders_raw from '@novnc/novnc/core/decoders/raw';
|
|
@@ -14,6 +15,7 @@ import RFB from '@novnc/novnc/core/rfb';
|
|
|
14
15
|
import styled from 'styled-components';
|
|
15
16
|
import ExerciseMenuButton from '../exercise-menu-button/ExerciseMenuButton.js';
|
|
16
17
|
import PreviewContainer from '../preview-container/PreviewContainer.js';
|
|
18
|
+
import messageEn from './locales/en.json.js';
|
|
17
19
|
|
|
18
20
|
//
|
|
19
21
|
//
|
|
@@ -44,7 +46,8 @@ const NoVnc = forwardRef(({
|
|
|
44
46
|
readyExerciseImage,
|
|
45
47
|
exercisePreviewDisplayModeButton = null,
|
|
46
48
|
onConnect,
|
|
47
|
-
onDisconnect
|
|
49
|
+
onDisconnect,
|
|
50
|
+
__intl
|
|
48
51
|
}, ref) => {
|
|
49
52
|
const vncRfb = React.useRef(null);
|
|
50
53
|
const vncElRef = React.useRef(null);
|
|
@@ -222,9 +225,17 @@ const NoVnc = forwardRef(({
|
|
|
222
225
|
return React.createElement(React.Fragment, null, React.createElement(StyledHeaderTitle, null, React.createElement(Text, {
|
|
223
226
|
role: "white",
|
|
224
227
|
size: "tiny"
|
|
225
|
-
},
|
|
228
|
+
}, __intl.formatMessage({
|
|
229
|
+
id: 'no_vnc.header.title'
|
|
230
|
+
}))), React.createElement(StyledHeaderButtonGroup, null, React.createElement(ExerciseMenuButton, {
|
|
226
231
|
icon: isVncScaledFromLocal ? eilViewMaximize : eilViewMinimize,
|
|
227
|
-
title: isRunning ?
|
|
232
|
+
title: isRunning ? __intl.formatMessage({
|
|
233
|
+
id: 'no_vnc.header.button_group.exercise_menu.is_running'
|
|
234
|
+
}) : isVncScaledFromLocal ? __intl.formatMessage({
|
|
235
|
+
id: 'no_vnc.header.button_group.exercise_menu.zoom_in'
|
|
236
|
+
}) : __intl.formatMessage({
|
|
237
|
+
id: 'no_vnc.header.button_group.exercise_menu.keep_ratio'
|
|
238
|
+
}),
|
|
228
239
|
disabled: isRunning,
|
|
229
240
|
onClick: () => setVncScaledFromLocal(prev => !prev)
|
|
230
241
|
}), React.isValidElement(exercisePreviewDisplayModeButton) ? React.cloneElement(exercisePreviewDisplayModeButton, {
|
|
@@ -245,5 +256,6 @@ const NoVnc = forwardRef(({
|
|
|
245
256
|
ref: vncElRef
|
|
246
257
|
}))));
|
|
247
258
|
});
|
|
259
|
+
var NoVnc$1 = new IntlComponentBuilder(NoVnc).add('en', messageEn).addAsync('ko', import('./locales/ko.json.js')).addAsync('th', import('./locales/th.json.js')).build();
|
|
248
260
|
|
|
249
|
-
export { NoVnc as default };
|
|
261
|
+
export { NoVnc$1 as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var messageEn = {"no_vnc.header.title":"Execution Result","no_vnc.header.button_group.exercise_menu.is_running":"You can't change the ratio while running","no_vnc.header.button_group.exercise_menu.zoom_in":"Zoom in","no_vnc.header.button_group.exercise_menu.keep_ratio":"Keep the original ratio"};
|
|
2
|
+
|
|
3
|
+
export { messageEn as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var ko = {"no_vnc.header.title":"실행 결과","no_vnc.header.button_group.exercise_menu.is_running":"실행 중에는 비율을 변경할 수 없습니다","no_vnc.header.button_group.exercise_menu.zoom_in":"확대하여 보기","no_vnc.header.button_group.exercise_menu.keep_ratio":"원본 비율로 보기"};
|
|
2
|
+
|
|
3
|
+
export { ko as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var th = {"no_vnc.header.title":"ผลลัพธ์","no_vnc.header.button_group.exercise_menu.is_running":"คุณไม่สามารถเปลี่ยนอัตราส่วนขณะกำลังทำงาน","no_vnc.header.button_group.exercise_menu.zoom_in":"ซูมเข้า","no_vnc.header.button_group.exercise_menu.keep_ratio":"รักษาอัตราส่วนเดิม"};
|
|
2
|
+
|
|
3
|
+
export { th as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-exercise",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.240517.0",
|
|
4
4
|
"description": "User view and editing components of Elice material exercise",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
"@elice/blocks": "^1.240514.0",
|
|
84
84
|
"@elice/design-tokens": "^1.220803.0",
|
|
85
85
|
"@elice/icons": "^1.230814.0",
|
|
86
|
-
"@elice/intl": "0.240425.0-rc.
|
|
86
|
+
"@elice/intl": "0.240425.0-rc.1",
|
|
87
87
|
"@elice/markdown": "^1.220815.0",
|
|
88
|
-
"@elice/material-shared-types": "1.
|
|
89
|
-
"@elice/material-shared-utils": "1.
|
|
88
|
+
"@elice/material-shared-types": "1.240517.0",
|
|
89
|
+
"@elice/material-shared-utils": "1.240517.0",
|
|
90
90
|
"@elice/mui-elements": "^5.230825.0",
|
|
91
91
|
"@elice/mui-system": "^5.230825.0",
|
|
92
92
|
"@elice/types": "^1.240208.0",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"recoil": "^0.6.1",
|
|
117
117
|
"styled-components": "^5.2.0"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "bb6cdfa264766bb3a10117bd0482152179e59414"
|
|
120
120
|
}
|