@elice/material-exercise 1.240514.3 → 1.240520.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/exercise-menu/locales/en.json.js +1 -1
- package/cjs/components/material-exercise/exercise-menu/locales/th.json.js +1 -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/exercise-menu/locales/en.json.js +1 -1
- package/es/components/material-exercise/exercise-menu/locales/th.json.js +1 -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 +4 -4
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var messageEn = {"exerciseMenu.dropdown.button.tooltip":"More","exerciseMenu.dropdown.item.codeHistory":"
|
|
5
|
+
var messageEn = {"exerciseMenu.dropdown.button.tooltip":"More","exerciseMenu.dropdown.item.codeHistory":"Code Revision History","exerciseMenu.dropdown.item.environment":"Environment","exerciseMenu.dropdown.item.preference":"Editor Preferences","exerciseMenu.dropdown.item.room":"Code Sharing","exerciseMenu.dropdown.item.submitHistory":"Execution/Submission History","exerciseMenu.arduino.agent.button":"Having problem with connecting to Arduino?","exerciseMenu.arduino.setting":"Arduino Setting","exerciseMenu.arduino.setting.device":"Device","exerciseMenu.arduino.setting.noDevice":"No device","exerciseMenu.arduino.setting.selectDevice":"Select device","exerciseMenu.arduino.transferSpeed":"Transfer speed","exerciseMenu.reset.button.tooltip.disabled":"The file cannot be reset","exerciseMenu.reset.button.tooltip.enabled":"Reset the file","exerciseMenu.reset.confirmDialog.body":"Are you sure you want to clear all the code you wrote at current file and reset it?","exerciseMenu.reset.confirmDialog.cancel":"Cencel","exerciseMenu.reset.confirmDialog.confirm":"Confirm","exerciseMenu.reset.confirmDialog.title":"Reset the file","exerciseMenu.stdioFileBrowser.button.tooltip":"File","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"Files sent from your code\nappear here.","exerciseMenu.stdioFileBrowser.popover.header":"File"};
|
|
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 messageTh = {"exerciseMenu.dropdown.button.tooltip":"เพิ่มเติม","exerciseMenu.dropdown.item.codeHistory":"
|
|
5
|
+
var messageTh = {"exerciseMenu.dropdown.button.tooltip":"เพิ่มเติม","exerciseMenu.dropdown.item.codeHistory":"ประวัติการแก้ไขรหัส.","exerciseMenu.dropdown.item.environment":"สิ่งแวดล้อม","exerciseMenu.dropdown.item.preference":"การตั้งค่าของตัวแก้ไข","exerciseMenu.dropdown.item.room":"การแบ่งปันรหัส","exerciseMenu.dropdown.item.submitHistory":"ประวัติการดำเนินการ/การยื่น.","exerciseMenu.arduino.agent.button":"มีปัญหาในการเชื่อมต่อกับ Arduino หรือไม่?","exerciseMenu.arduino.setting":"การตั้งค่า Arduino","exerciseMenu.arduino.setting.device":"อุปกรณ์","exerciseMenu.arduino.setting.noDevice":"ไม่มีอุปกรณ์","exerciseMenu.arduino.setting.selectDevice":"เลือกอุปกรณ์","exerciseMenu.arduino.transferSpeed":"ความเร็วในการถ่ายโอน","exerciseMenu.reset.button.tooltip.disabled":"ไฟล์ไม่สามารถรีเซ็ตได้","exerciseMenu.reset.button.tooltip.enabled":"รีเซ็ตไฟล์","exerciseMenu.reset.confirmDialog.body":"คุณแน่ใจหรือว่าต้องการล้างโค้ดทั้งหมดที่คุณเขียนในไฟล์ปัจจุบันและรีเซ็ตใหม่?","exerciseMenu.reset.confirmDialog.cancel":"ยกเลิก","exerciseMenu.reset.confirmDialog.confirm":"ยืนยัน","exerciseMenu.reset.confirmDialog.title":"รีเซ็ตไฟล์","exerciseMenu.stdioFileBrowser.button.tooltip":"ไฟล์","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"ไฟล์ที่ส่งมาจากโค้ดของคุณจะปรากฏที่นี่","exerciseMenu.stdioFileBrowser.popover.header":"ไฟล์"};
|
|
6
6
|
|
|
7
7
|
exports.default = messageTh;
|
|
@@ -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":"Execution/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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageEn = {"exerciseMenu.dropdown.button.tooltip":"More","exerciseMenu.dropdown.item.codeHistory":"
|
|
1
|
+
var messageEn = {"exerciseMenu.dropdown.button.tooltip":"More","exerciseMenu.dropdown.item.codeHistory":"Code Revision History","exerciseMenu.dropdown.item.environment":"Environment","exerciseMenu.dropdown.item.preference":"Editor Preferences","exerciseMenu.dropdown.item.room":"Code Sharing","exerciseMenu.dropdown.item.submitHistory":"Execution/Submission History","exerciseMenu.arduino.agent.button":"Having problem with connecting to Arduino?","exerciseMenu.arduino.setting":"Arduino Setting","exerciseMenu.arduino.setting.device":"Device","exerciseMenu.arduino.setting.noDevice":"No device","exerciseMenu.arduino.setting.selectDevice":"Select device","exerciseMenu.arduino.transferSpeed":"Transfer speed","exerciseMenu.reset.button.tooltip.disabled":"The file cannot be reset","exerciseMenu.reset.button.tooltip.enabled":"Reset the file","exerciseMenu.reset.confirmDialog.body":"Are you sure you want to clear all the code you wrote at current file and reset it?","exerciseMenu.reset.confirmDialog.cancel":"Cencel","exerciseMenu.reset.confirmDialog.confirm":"Confirm","exerciseMenu.reset.confirmDialog.title":"Reset the file","exerciseMenu.stdioFileBrowser.button.tooltip":"File","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"Files sent from your code\nappear here.","exerciseMenu.stdioFileBrowser.popover.header":"File"};
|
|
2
2
|
|
|
3
3
|
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageTh = {"exerciseMenu.dropdown.button.tooltip":"เพิ่มเติม","exerciseMenu.dropdown.item.codeHistory":"
|
|
1
|
+
var messageTh = {"exerciseMenu.dropdown.button.tooltip":"เพิ่มเติม","exerciseMenu.dropdown.item.codeHistory":"ประวัติการแก้ไขรหัส.","exerciseMenu.dropdown.item.environment":"สิ่งแวดล้อม","exerciseMenu.dropdown.item.preference":"การตั้งค่าของตัวแก้ไข","exerciseMenu.dropdown.item.room":"การแบ่งปันรหัส","exerciseMenu.dropdown.item.submitHistory":"ประวัติการดำเนินการ/การยื่น.","exerciseMenu.arduino.agent.button":"มีปัญหาในการเชื่อมต่อกับ Arduino หรือไม่?","exerciseMenu.arduino.setting":"การตั้งค่า Arduino","exerciseMenu.arduino.setting.device":"อุปกรณ์","exerciseMenu.arduino.setting.noDevice":"ไม่มีอุปกรณ์","exerciseMenu.arduino.setting.selectDevice":"เลือกอุปกรณ์","exerciseMenu.arduino.transferSpeed":"ความเร็วในการถ่ายโอน","exerciseMenu.reset.button.tooltip.disabled":"ไฟล์ไม่สามารถรีเซ็ตได้","exerciseMenu.reset.button.tooltip.enabled":"รีเซ็ตไฟล์","exerciseMenu.reset.confirmDialog.body":"คุณแน่ใจหรือว่าต้องการล้างโค้ดทั้งหมดที่คุณเขียนในไฟล์ปัจจุบันและรีเซ็ตใหม่?","exerciseMenu.reset.confirmDialog.cancel":"ยกเลิก","exerciseMenu.reset.confirmDialog.confirm":"ยืนยัน","exerciseMenu.reset.confirmDialog.title":"รีเซ็ตไฟล์","exerciseMenu.stdioFileBrowser.button.tooltip":"ไฟล์","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"ไฟล์ที่ส่งมาจากโค้ดของคุณจะปรากฏที่นี่","exerciseMenu.stdioFileBrowser.popover.header":"ไฟล์"};
|
|
2
2
|
|
|
3
3
|
export { messageTh as default };
|
|
@@ -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":"Execution/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.240520.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",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@elice/icons": "^1.230814.0",
|
|
86
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.240520.0",
|
|
89
|
+
"@elice/material-shared-utils": "1.240520.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": "1d17e5b2661b99e4802b5f200061dc3555c817e1"
|
|
120
120
|
}
|