@elice/material-exercise 1.240401.0 → 1.240508.0-globalization.1
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/locales/en.json.js +7 -0
- package/cjs/components/locales/index.d.ts +3 -0
- package/cjs/components/locales/ko.json.js +7 -0
- package/cjs/components/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/MaterialExercise.d.ts +3 -1
- package/cjs/components/material-exercise/MaterialExercise.js +11 -14
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.js +7 -15
- package/cjs/components/material-exercise/context/locales/noImage.en.json.js +2 -2
- package/cjs/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
- package/cjs/components/material-exercise/context/locales/noImage.th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +9 -12
- package/cjs/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-code-history/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
- package/cjs/components/material-exercise/exercise-file-editor/locales/en.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/ko.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +17 -4
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +5 -15
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +8 -10
- package/cjs/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tree/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +9 -9
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +13 -13
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +8 -8
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +10 -10
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +7 -7
- package/cjs/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-menu/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +8 -8
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +4 -4
- package/cjs/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-preview/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +14 -15
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +18 -18
- package/cjs/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-rightpane/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.js +9 -9
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +28 -28
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +15 -15
- package/cjs/components/material-exercise/exercise-room/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-room/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +26 -29
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +20 -18
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +10 -10
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +13 -13
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +27 -30
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -6
- package/cjs/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +13 -16
- package/cjs/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-submit-history/locales/th.json.js +7 -0
- package/cjs/components/shared/file-tree/FileTree.d.ts +1 -5
- package/cjs/components/shared/file-tree/FileTree.js +11 -12
- package/cjs/components/shared/file-tree/FileTreeConfig.js +1 -2
- package/cjs/components/shared/file-tree/FileTreeList.js +1 -2
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +8 -8
- package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +24 -24
- package/cjs/components/shared/file-tree/FileTreeToolbar.js +6 -7
- package/cjs/components/shared/file-tree/locales/en.json.js +2 -2
- package/cjs/components/shared/file-tree/locales/index.d.ts +3 -0
- package/cjs/components/shared/file-tree/locales/ko.json.js +2 -2
- package/cjs/components/shared/file-tree/locales/th.json.js +7 -0
- package/cjs/components/shared/file-viewer/FileViewer.d.ts +2 -1
- package/cjs/components/shared/file-viewer/FileViewer.js +8 -16
- package/cjs/components/shared/file-viewer/FileViewerCsv.js +8 -7
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.js +11 -18
- package/cjs/components/shared/file-viewer/locales/index.d.ts +6 -0
- package/cjs/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
- package/cjs/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
- package/cjs/components/shared/file-viewer/locales/nonViewable.th.json.js +7 -0
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +29 -37
- package/cjs/components/shared/monaco-editor/locales/en.json.js +2 -2
- package/cjs/components/shared/monaco-editor/locales/index.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/locales/ko.json.js +2 -2
- package/cjs/components/shared/monaco-editor/locales/th.json.js +7 -0
- package/cjs/components/shared/xterm/Xterm.d.ts +3 -1
- package/cjs/components/shared/xterm/Xterm.js +8 -18
- package/cjs/components/shared/xterm/locales/en.json.js +2 -2
- package/cjs/components/shared/xterm/locales/index.d.ts +3 -0
- package/cjs/components/shared/xterm/locales/ko.json.js +2 -2
- package/cjs/components/shared/xterm/locales/th.json.js +7 -0
- package/es/components/locales/en.json.js +3 -0
- package/es/components/locales/index.d.ts +3 -0
- package/es/components/locales/ko.json.js +3 -0
- package/es/components/locales/th.json.js +3 -0
- package/es/components/material-exercise/MaterialExercise.d.ts +3 -1
- package/es/components/material-exercise/MaterialExercise.js +11 -15
- package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
- package/es/components/material-exercise/context/ExerciseProviderNoImage.js +9 -17
- package/es/components/material-exercise/context/locales/noImage.en.json.js +2 -2
- package/es/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
- package/es/components/material-exercise/context/locales/noImage.th.json.js +3 -0
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +11 -14
- package/es/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-code-history/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
- package/es/components/material-exercise/exercise-file-editor/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +17 -4
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +3 -13
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +10 -12
- package/es/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tree/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +9 -9
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +12 -12
- package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +2 -2
- package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +6 -6
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +6 -6
- package/es/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-menu/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
- package/es/components/material-exercise/exercise-preview/ExercisePreview.js +9 -9
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +14 -15
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
- package/es/components/material-exercise/exercise-room/ExerciseRoom.js +9 -9
- package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +4 -4
- package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +26 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +18 -16
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +2 -2
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +12 -12
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +26 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -6
- package/es/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-runner/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +14 -17
- package/es/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-submit-history/locales/th.json.js +3 -0
- package/es/components/shared/file-tree/FileTree.d.ts +1 -5
- package/es/components/shared/file-tree/FileTree.js +11 -12
- package/es/components/shared/file-tree/FileTreeConfig.js +1 -2
- package/es/components/shared/file-tree/FileTreeList.js +1 -2
- package/es/components/shared/file-tree/FileTreeListItemContentInput.js +2 -2
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +22 -22
- package/es/components/shared/file-tree/FileTreeToolbar.js +3 -4
- package/es/components/shared/file-tree/locales/en.json.js +2 -2
- package/es/components/shared/file-tree/locales/index.d.ts +3 -0
- package/es/components/shared/file-tree/locales/ko.json.js +2 -2
- package/es/components/shared/file-tree/locales/th.json.js +3 -0
- package/es/components/shared/file-viewer/FileViewer.d.ts +2 -1
- package/es/components/shared/file-viewer/FileViewer.js +8 -16
- package/es/components/shared/file-viewer/FileViewerCsv.js +8 -7
- package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
- package/es/components/shared/file-viewer/FileViewerNonViewable.js +13 -20
- package/es/components/shared/file-viewer/locales/index.d.ts +6 -0
- package/es/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
- package/es/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
- package/es/components/shared/file-viewer/locales/nonViewable.th.json.js +3 -0
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +30 -38
- package/es/components/shared/monaco-editor/locales/en.json.js +2 -2
- package/es/components/shared/monaco-editor/locales/index.d.ts +3 -0
- package/es/components/shared/monaco-editor/locales/ko.json.js +2 -2
- package/es/components/shared/monaco-editor/locales/th.json.js +3 -0
- package/es/components/shared/xterm/Xterm.d.ts +3 -1
- package/es/components/shared/xterm/Xterm.js +10 -20
- package/es/components/shared/xterm/locales/en.json.js +2 -2
- package/es/components/shared/xterm/locales/index.d.ts +3 -0
- package/es/components/shared/xterm/locales/ko.json.js +2 -2
- package/es/components/shared/xterm/locales/th.json.js +3 -0
- package/package.json +6 -6
- package/cjs/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
- package/cjs/components/material-exercise/MaterialExercise.i18n.js +0 -13
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.js +0 -44
- package/es/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
- package/es/components/material-exercise/MaterialExercise.i18n.js +0 -10
- package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
- package/es/components/material-exercise/context/ExerciseIntlProvider.js +0 -41
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var apiClient = require('@elice/api-client');
|
|
8
7
|
var blocks = require('@elice/blocks');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var types = require('@elice/types');
|
|
10
10
|
var humps = require('humps');
|
|
11
11
|
var recoil = require('recoil');
|
|
@@ -21,9 +21,9 @@ var context = require('../context/context.js');
|
|
|
21
21
|
require('../context/recoilTypes.js');
|
|
22
22
|
require('../context/subjects.js');
|
|
23
23
|
require('../context/ExerciseProvider.js');
|
|
24
|
-
var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
|
|
25
24
|
var en = require('./locales/en.json.js');
|
|
26
25
|
var ko = require('./locales/ko.json.js');
|
|
26
|
+
var th = require('./locales/th.json.js');
|
|
27
27
|
|
|
28
28
|
const AsyncFileTree = React.lazy(() => Promise.resolve().then(function () { return require('../../shared/file-tree/FileTree.js'); }));
|
|
29
29
|
const AsyncFileTreeList = React.lazy(() => Promise.resolve().then(function () { return require('../../shared/file-tree/FileTreeList.js'); }));
|
|
@@ -44,9 +44,10 @@ var MaterialExerciseFileError;
|
|
|
44
44
|
MaterialExerciseFileError["UsableSizeExceed"] = "usable_size_exceed";
|
|
45
45
|
MaterialExerciseFileError["SubFileOrPathExist"] = "sub_file_or_path_exist";
|
|
46
46
|
})(MaterialExerciseFileError || (MaterialExerciseFileError = {}));
|
|
47
|
-
const ExerciseFileTree = (
|
|
47
|
+
const ExerciseFileTree = ({
|
|
48
|
+
__intl
|
|
49
|
+
}) => {
|
|
48
50
|
var _a, _b, _c, _d;
|
|
49
|
-
const intl = reactIntl.useIntl();
|
|
50
51
|
const {
|
|
51
52
|
exerciseRoomId,
|
|
52
53
|
materialExerciseId,
|
|
@@ -120,7 +121,7 @@ const ExerciseFileTree = () => {
|
|
|
120
121
|
setExerciseRoom(exerciseRoom);
|
|
121
122
|
} catch (error) {
|
|
122
123
|
console.error(error);
|
|
123
|
-
blocks.Notification.error(
|
|
124
|
+
blocks.Notification.error(__intl.formatMessage({
|
|
124
125
|
id: 'materialExercise.exerciseFileTree.fetchRoom.failure'
|
|
125
126
|
}));
|
|
126
127
|
}
|
|
@@ -147,7 +148,7 @@ const ExerciseFileTree = () => {
|
|
|
147
148
|
message = ((_b = error.detail) === null || _b === void 0 ? void 0 : _b.failCode) ? error.detail.failCode : `materialExercise.exerciseFileTree.errorCode.unknown`;
|
|
148
149
|
failMessage = (_c = error.detail) === null || _c === void 0 ? void 0 : _c.failMessage;
|
|
149
150
|
}
|
|
150
|
-
blocks.Notification.error(
|
|
151
|
+
blocks.Notification.error(__intl.formatMessage({
|
|
151
152
|
id: message
|
|
152
153
|
}) + `${failMessage ? ` (${failMessage})` : ''}`);
|
|
153
154
|
if (typeof onError === 'function') {
|
|
@@ -330,9 +331,6 @@ const ExerciseFileTree = () => {
|
|
|
330
331
|
locale: locale
|
|
331
332
|
}, React.createElement(AsyncFileTreeToolbar, null), React.createElement(StyledFileTreeDivider, null), React.createElement(AsyncFileTreeList, null))));
|
|
332
333
|
};
|
|
333
|
-
var ExerciseFileTree$1 =
|
|
334
|
-
en: en.default,
|
|
335
|
-
ko: ko.default
|
|
336
|
-
});
|
|
334
|
+
var ExerciseFileTree$1 = new intl.IntlComponentBuilder(ExerciseFileTree).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
337
335
|
|
|
338
336
|
exports.default = ExerciseFileTree$1;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageEn = {"exerciseFileTree.errorCode.insufficientPermission":"[Error] Insufficient Permission","exerciseFileTree.errorCode.invalidParameter":"[Error] Invalid Parameter","exerciseFileTree.errorCode.invalidParameterCombination":"[Error] Invalid Parameter Combination","exerciseFileTree.errorCode.notFoundCurrentFilename":"[Error] Not Found Current Filename","exerciseFileTree.errorCode.notFoundExerciseRoom":"[Error] Not Found ExerciseRoom","exerciseFileTree.errorCode.notFoundPath":"[Error] Not Found Path","exerciseFileTree.errorCode.overwriteExistingOne":"[Error] Overwrite Existing One","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[Error] Resulting Filename Under Current Filename","exerciseFileTree.errorCode.subFileOrPathExist":"[Error] Sub File Or Path Exist","exerciseFileTree.errorCode.unknown":"[Error] An unkown error has occurred.","exerciseFileTree.errorCode.usableSizeExceed":"[Error] Usable Size Exceed","exerciseFileTree.fetchRoom.failure":"Failed to fetch exercise room."};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageKo = {"exerciseFileTree.errorCode.insufficientPermission":"[Error] 권한이 없습니다.","exerciseFileTree.errorCode.invalidParameter":"[Error] 파라미터가 올바르지 않습니다.","exerciseFileTree.errorCode.invalidParameterCombination":"[Error] 파라미터 조합이 올바르지 않습니다.","exerciseFileTree.errorCode.notFoundCurrentFilename":"[Error] 파일을 찾을 수 없습니다.","exerciseFileTree.errorCode.notFoundExerciseRoom":"[Error] 실습방을 찾을 수 없습니다.","exerciseFileTree.errorCode.notFoundPath":"[Error] 해당 경로를 찾을 수 없습니다.","exerciseFileTree.errorCode.overwriteExistingOne":"[Error] 덮어쓰기가 불가능합니다.","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[Error] 같은 경로에 디렉토리를 옮길 수 없습니다.","exerciseFileTree.errorCode.subFileOrPathExist":"[Error] 디렉토리를 삭제하지 못했습니다. 디렉토리가 비어있어야 삭제할 수 있습니다.","exerciseFileTree.errorCode.unknown":"[Error] 알수 없는 에러가 발생하였습니다.","exerciseFileTree.errorCode.usableSizeExceed":"[Error] 허용된 용량을 초과하였습니다.","exerciseFileTree.fetchRoom.failure":"실습을 가져오는데 실패했습니다."};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageTh = {"exerciseFileTree.errorCode.insufficientPermission":"[ข้อผิดพลาด] ไม่มีสิทธิ์.","exerciseFileTree.errorCode.invalidParameter":"[ข้อผิดพลาด] พารามิเตอร์ไม่ถูกต้อง","exerciseFileTree.errorCode.invalidParameterCombination":"[ข้อผิดพลาด] การรวมพารามิเตอร์ไม่ถูกต้อง.","exerciseFileTree.errorCode.notFoundCurrentFilename":"[ข้อผิดพลาด] ไม่พบไฟล์","exerciseFileTree.errorCode.notFoundExerciseRoom":"[ข้อผิดพลาด] ไม่พบห้องปฏิบัติการ.","exerciseFileTree.errorCode.notFoundPath":"[ข้อผิดพลาด] ไม่สามารถหาเส้นทางที่ระบุ","exerciseFileTree.errorCode.overwriteExistingOne":"[ข้อผิดพลาด] ไม่สามารถเขียนทับได้.","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[ข้อผิดพลาด] ไม่สามารถย้ายไดเรกทอรีไปยังตำแหน่งเดียวกันได้ ค่ะ.","exerciseFileTree.errorCode.subFileOrPathExist":"[ข้อผิดพลาด] ไม่สามารถลบไดเรกทอรี ไดเร็กทอรีต้องว่างเปล่าก่อนจึงจะสามารถลบได้","exerciseFileTree.errorCode.unknown":"[ข้อผิดพลาด] เกิดข้อผิดพลาดที่ไม่สามารถระบุได้.","exerciseFileTree.errorCode.usableSizeExceed":"[ข้อผิดพลาด] คุณเกินพื้นที่ที่อนุญาตแล้วค่ะ.","exerciseFileTree.fetchRoom.failure":"การเรียนปฏิบัติล้มเหลว "};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
|
|
3
4
|
export default _default;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var designTokens = require('@elice/design-tokens');
|
|
7
|
+
var intl = require('@elice/intl');
|
|
7
8
|
var types = require('@elice/types');
|
|
8
9
|
var recoil = require('recoil');
|
|
9
10
|
var styled = require('styled-components');
|
|
@@ -12,19 +13,21 @@ var context = require('../context/context.js');
|
|
|
12
13
|
require('../context/recoilTypes.js');
|
|
13
14
|
require('../context/subjects.js');
|
|
14
15
|
require('../context/ExerciseProvider.js');
|
|
15
|
-
var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
|
|
16
|
-
var en = require('./locales/en.json.js');
|
|
17
|
-
var ko = require('./locales/ko.json.js');
|
|
18
16
|
var ExerciseMenuArduinoAgentModalButton = require('./ExerciseMenuArduinoAgentModalButton.js');
|
|
19
17
|
var ExerciseMenuArduinoSettings = require('./ExerciseMenuArduinoSettings.js');
|
|
20
18
|
var ExerciseMenuDropdown = require('./ExerciseMenuDropdown.js');
|
|
21
19
|
var ExerciseMenuReset = require('./ExerciseMenuReset.js');
|
|
22
20
|
var ExerciseMenuStdioFileBrowser = require('./ExerciseMenuStdioFileBrowser.js');
|
|
21
|
+
var en = require('./locales/en.json.js');
|
|
22
|
+
var ko = require('./locales/ko.json.js');
|
|
23
|
+
var th = require('./locales/th.json.js');
|
|
23
24
|
|
|
24
25
|
const StyledExerciseMenuWrapper = styled.div.withConfig({
|
|
25
26
|
componentId: "sc-1gf6m87-0"
|
|
26
27
|
})(["display:flex;justify-content:center;align-items:center;padding:0 0.5rem 0 1rem;height:2.25rem;gap:0.5rem;background-color:", ";"], designTokens.base.color.navy8);
|
|
27
|
-
const ExerciseMenu = (
|
|
28
|
+
const ExerciseMenu = ({
|
|
29
|
+
__intl
|
|
30
|
+
}) => {
|
|
28
31
|
const {
|
|
29
32
|
materialExerciseId
|
|
30
33
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -33,11 +36,8 @@ const ExerciseMenu = () => {
|
|
|
33
36
|
//
|
|
34
37
|
//
|
|
35
38
|
//
|
|
36
|
-
return 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));
|
|
39
|
+
return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), 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)));
|
|
37
40
|
};
|
|
38
|
-
var ExerciseMenu$1 =
|
|
39
|
-
en: en.default,
|
|
40
|
-
ko: ko.default
|
|
41
|
-
});
|
|
41
|
+
var ExerciseMenu$1 = new intl.IntlComponentBuilder(ExerciseMenu).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
42
42
|
|
|
43
43
|
exports.default = ExerciseMenu$1;
|
package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var icons = require('@elice/icons');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var recoil = require('recoil');
|
|
10
10
|
var recoil$1 = require('../context/recoil.js');
|
|
11
11
|
require('../context/context.js');
|
|
@@ -15,6 +15,7 @@ require('../context/ExerciseProvider.js');
|
|
|
15
15
|
|
|
16
16
|
const ExerciseMenuArduinoAgentModalButton = () => {
|
|
17
17
|
const setOpen = recoil.useSetRecoilState(recoil$1.exerciseArduinoAgentModalState);
|
|
18
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
18
19
|
const handleClick = () => {
|
|
19
20
|
setOpen(true);
|
|
20
21
|
};
|
|
@@ -27,8 +28,8 @@ const ExerciseMenuArduinoAgentModalButton = () => {
|
|
|
27
28
|
iconAlign: "left",
|
|
28
29
|
border: false,
|
|
29
30
|
onClick: handleClick
|
|
30
|
-
},
|
|
31
|
-
id:
|
|
31
|
+
}, intl$1.formatMessage({
|
|
32
|
+
id: 'exerciseMenu.arduino.agent.button'
|
|
32
33
|
}));
|
|
33
34
|
};
|
|
34
35
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var icons = require('@elice/icons');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var recoil = require('recoil');
|
|
10
10
|
var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
|
|
11
11
|
var arduino = require('../../../constants/arduino.js');
|
|
@@ -18,7 +18,7 @@ require('../context/ExerciseProvider.js');
|
|
|
18
18
|
var ExerciseMenuStdioFileBrowser_styled = require('./ExerciseMenuStdioFileBrowser.styled.js');
|
|
19
19
|
|
|
20
20
|
const ExerciseMenuArduinoSettings = () => {
|
|
21
|
-
const intl =
|
|
21
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
22
22
|
const [open, setOpen] = React.useState(false);
|
|
23
23
|
const anchorRef = React.useRef(null);
|
|
24
24
|
const ports = recoil.useRecoilValue(recoil$1.exerciseArduinoPortsState);
|
|
@@ -33,8 +33,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
33
33
|
role: "gray3",
|
|
34
34
|
block: true,
|
|
35
35
|
size: "small"
|
|
36
|
-
},
|
|
37
|
-
id:
|
|
36
|
+
}, intl$1.formatMessage({
|
|
37
|
+
id: 'exerciseMenu.arduino.transferSpeed'
|
|
38
38
|
})), React.createElement(ExerciseMenuStdioFileBrowser_styled.StyledSelect, {
|
|
39
39
|
value: preference.baudRate,
|
|
40
40
|
size: "small",
|
|
@@ -51,8 +51,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
51
51
|
role: "gray3",
|
|
52
52
|
block: true,
|
|
53
53
|
size: "small"
|
|
54
|
-
},
|
|
55
|
-
id:
|
|
54
|
+
}, intl$1.formatMessage({
|
|
55
|
+
id: 'exerciseMenu.arduino.setting.device'
|
|
56
56
|
})), React.createElement(ExerciseMenuStdioFileBrowser_styled.StyledSelect, {
|
|
57
57
|
value: openedPort !== null && openedPort !== void 0 ? openedPort : '',
|
|
58
58
|
size: "small",
|
|
@@ -63,13 +63,13 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
63
63
|
}, ports.length === 0 ? React.createElement("option", {
|
|
64
64
|
value: "",
|
|
65
65
|
disabled: true
|
|
66
|
-
},
|
|
67
|
-
id:
|
|
66
|
+
}, intl$1.formatMessage({
|
|
67
|
+
id: 'exerciseMenu.arduino.setting.noDevice'
|
|
68
68
|
})) : React.createElement("option", {
|
|
69
69
|
value: "",
|
|
70
70
|
disabled: true
|
|
71
|
-
},
|
|
72
|
-
id:
|
|
71
|
+
}, intl$1.formatMessage({
|
|
72
|
+
id: 'exerciseMenu.arduino.setting.selectDevice'
|
|
73
73
|
})), ports.map(port => React.createElement("option", {
|
|
74
74
|
key: port.Name,
|
|
75
75
|
value: port.Name
|
|
@@ -84,8 +84,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
84
84
|
bold: true
|
|
85
85
|
}, React.createElement(blocks.Flex, {
|
|
86
86
|
align: "center"
|
|
87
|
-
},
|
|
88
|
-
id:
|
|
87
|
+
}, intl$1.formatMessage({
|
|
88
|
+
id: 'exerciseMenu.arduino.setting'
|
|
89
89
|
}))), React.createElement(blocks.IconButton, {
|
|
90
90
|
icon: icons.eilMathsignMultiplyBasic,
|
|
91
91
|
role: "white",
|
|
@@ -122,7 +122,7 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
122
122
|
const renderStdioFilePopoverToggleButton = () => {
|
|
123
123
|
return React.createElement(ExerciseMenuButton.default, {
|
|
124
124
|
icon: icons.eilMaterialTypeArduino,
|
|
125
|
-
title: intl.formatMessage({
|
|
125
|
+
title: intl$1.formatMessage({
|
|
126
126
|
id: 'exerciseMenu.arduino.setting'
|
|
127
127
|
}),
|
|
128
128
|
active: open,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var icons = require('@elice/icons');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var types = require('@elice/types');
|
|
10
10
|
var recoil = require('recoil');
|
|
11
11
|
var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
|
|
@@ -19,7 +19,7 @@ var ExerciseRoom = require('../exercise-room/ExerciseRoom.js');
|
|
|
19
19
|
var ExerciseSubmitHistory = require('../exercise-submit-history/ExerciseSubmitHistory.js');
|
|
20
20
|
|
|
21
21
|
const ExerciseMenuDropdown = () => {
|
|
22
|
-
const intl =
|
|
22
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
23
23
|
const {
|
|
24
24
|
materialExerciseId
|
|
25
25
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -74,29 +74,29 @@ const ExerciseMenuDropdown = () => {
|
|
|
74
74
|
//
|
|
75
75
|
return React.createElement(React.Fragment, null, React.createElement(blocks.ButtonMenu, {
|
|
76
76
|
menuItemProps: [{
|
|
77
|
-
label: intl.formatMessage({
|
|
77
|
+
label: intl$1.formatMessage({
|
|
78
78
|
id: 'exerciseMenu.dropdown.item.environment'
|
|
79
79
|
}),
|
|
80
80
|
onClick: () => setRightpaneActiveState('environment')
|
|
81
81
|
}, {
|
|
82
|
-
label: intl.formatMessage({
|
|
82
|
+
label: intl$1.formatMessage({
|
|
83
83
|
id: 'exerciseMenu.dropdown.item.preference'
|
|
84
84
|
}),
|
|
85
85
|
onClick: () => setRightpaneActiveState('preference')
|
|
86
86
|
}, {
|
|
87
|
-
label: intl.formatMessage({
|
|
87
|
+
label: intl$1.formatMessage({
|
|
88
88
|
id: 'exerciseMenu.dropdown.item.codeHistory'
|
|
89
89
|
}),
|
|
90
90
|
disabled: !user,
|
|
91
91
|
onClick: () => setIsCodeHistoryModalOpen(true)
|
|
92
92
|
}, {
|
|
93
|
-
label: intl.formatMessage({
|
|
93
|
+
label: intl$1.formatMessage({
|
|
94
94
|
id: 'exerciseMenu.dropdown.item.submitHistory'
|
|
95
95
|
}),
|
|
96
96
|
disabled: !user || !activeFilename,
|
|
97
97
|
onClick: () => setIsSubmitHistoryModalOpen(true)
|
|
98
98
|
}, {
|
|
99
|
-
label: intl.formatMessage({
|
|
99
|
+
label: intl$1.formatMessage({
|
|
100
100
|
id: 'exerciseMenu.dropdown.item.room'
|
|
101
101
|
}),
|
|
102
102
|
disabled: isLectureTestInProgress,
|
|
@@ -108,7 +108,7 @@ const ExerciseMenuDropdown = () => {
|
|
|
108
108
|
shadow: true
|
|
109
109
|
}, React.createElement(ExerciseMenuButton.default, {
|
|
110
110
|
icon: icons.eilMoreVertical,
|
|
111
|
-
title: intl.formatMessage({
|
|
111
|
+
title: intl$1.formatMessage({
|
|
112
112
|
id: 'exerciseMenu.dropdown.button.tooltip'
|
|
113
113
|
})
|
|
114
114
|
})), renderSumbitHistoryModal(), renderCodeHistoryModal(), renderExerciseRoomModal());
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var icons = require('@elice/icons');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var recoil = require('recoil');
|
|
10
10
|
var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
|
|
11
11
|
require('react-use');
|
|
@@ -27,7 +27,7 @@ require('random-words');
|
|
|
27
27
|
require('unicount');
|
|
28
28
|
|
|
29
29
|
const ExerciseMenuReset = () => {
|
|
30
|
-
const intl =
|
|
30
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
31
31
|
const [isDialogOpen, setDialogOpen] = React.useState(false);
|
|
32
32
|
const activeFilename = recoil.useRecoilValue(recoil$1.exerciseActiveFilenameState);
|
|
33
33
|
const isFileResettable = useExerciseFile.useExerciseFileResettable(activeFilename);
|
|
@@ -45,9 +45,9 @@ const ExerciseMenuReset = () => {
|
|
|
45
45
|
return React.createElement(ExerciseMenuButton.default, {
|
|
46
46
|
icon: icons.eilReset,
|
|
47
47
|
active: isDialogOpen,
|
|
48
|
-
title: isFileResettable ? intl.formatMessage({
|
|
48
|
+
title: isFileResettable ? intl$1.formatMessage({
|
|
49
49
|
id: 'exerciseMenu.reset.button.tooltip.enabled'
|
|
50
|
-
}) : intl.formatMessage({
|
|
50
|
+
}) : intl$1.formatMessage({
|
|
51
51
|
id: 'exerciseMenu.reset.button.tooltip.disabled'
|
|
52
52
|
}),
|
|
53
53
|
disabled: !isFileResettable,
|
|
@@ -63,21 +63,21 @@ const ExerciseMenuReset = () => {
|
|
|
63
63
|
}
|
|
64
64
|
return React.createElement(blocks.Dialog, {
|
|
65
65
|
type: "warning",
|
|
66
|
-
title: intl.formatMessage({
|
|
66
|
+
title: intl$1.formatMessage({
|
|
67
67
|
id: 'exerciseMenu.reset.confirmDialog.title'
|
|
68
68
|
}),
|
|
69
|
-
body: intl.formatMessage({
|
|
69
|
+
body: intl$1.formatMessage({
|
|
70
70
|
id: 'exerciseMenu.reset.confirmDialog.body'
|
|
71
71
|
}),
|
|
72
72
|
onHide: () => setDialogOpen(false)
|
|
73
73
|
}, React.createElement(blocks.Dialog.CloseButton, {
|
|
74
74
|
onClick: () => setDialogOpen(false)
|
|
75
|
-
},
|
|
76
|
-
id:
|
|
75
|
+
}, intl$1.formatMessage({
|
|
76
|
+
id: 'exerciseMenu.reset.confirmDialog.cancel'
|
|
77
77
|
})), React.createElement(blocks.Dialog.ActionButton, {
|
|
78
78
|
onClick: handleReset
|
|
79
|
-
},
|
|
80
|
-
id:
|
|
79
|
+
}, intl$1.formatMessage({
|
|
80
|
+
id: 'exerciseMenu.reset.confirmDialog.confirm'
|
|
81
81
|
})));
|
|
82
82
|
};
|
|
83
83
|
//
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var designTokens = require('@elice/design-tokens');
|
|
9
8
|
var icons = require('@elice/icons');
|
|
9
|
+
var intl = require('@elice/intl');
|
|
10
10
|
var muiElements = require('@elice/mui-elements');
|
|
11
11
|
var recoil = require('recoil');
|
|
12
12
|
var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
|
|
@@ -18,7 +18,7 @@ require('../context/ExerciseProvider.js');
|
|
|
18
18
|
var ExerciseMenuStdioFileBrowser_styled = require('./ExerciseMenuStdioFileBrowser.styled.js');
|
|
19
19
|
|
|
20
20
|
const ExerciseMenuStdioFileBrowser = () => {
|
|
21
|
-
const intl =
|
|
21
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
22
22
|
const [open, setOpen] = React.useState(false);
|
|
23
23
|
const anchorRef = React.useRef(null);
|
|
24
24
|
const stdioFiles = recoil.useRecoilValue(recoil$1.exerciseRunnerStdioFilesState);
|
|
@@ -93,8 +93,8 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
93
93
|
size: "small",
|
|
94
94
|
textAlign: "center",
|
|
95
95
|
preWrap: true
|
|
96
|
-
},
|
|
97
|
-
id:
|
|
96
|
+
}, intl$1.formatMessage({
|
|
97
|
+
id: 'exerciseMenu.stdioFileBrowser.popover.body.placeholder'
|
|
98
98
|
})));
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
@@ -125,8 +125,8 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
125
125
|
role: "white",
|
|
126
126
|
size: "small",
|
|
127
127
|
bold: true
|
|
128
|
-
},
|
|
129
|
-
id:
|
|
128
|
+
}, intl$1.formatMessage({
|
|
129
|
+
id: 'exerciseMenu.stdioFileBrowser.popover.header'
|
|
130
130
|
})), React.createElement(blocks.Hspace, {
|
|
131
131
|
width: 0.5
|
|
132
132
|
}), React.createElement(blocks.NotificationCount, {
|
|
@@ -169,7 +169,7 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
169
169
|
return React.createElement(ExerciseMenuButton.default, {
|
|
170
170
|
icon: icons.eilAttachment,
|
|
171
171
|
active: open,
|
|
172
|
-
title: intl.formatMessage({
|
|
172
|
+
title: intl$1.formatMessage({
|
|
173
173
|
id: 'exerciseMenu.stdioFileBrowser.button.tooltip'
|
|
174
174
|
}),
|
|
175
175
|
onClick: () => setOpen(prev => !prev),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageEn = {"exerciseMenu.dropdown.button.tooltip":"More","exerciseMenu.dropdown.item.codeHistory":"Submit History","exerciseMenu.dropdown.item.environment":"Environment","exerciseMenu.dropdown.item.preference":"Editor Preferences","exerciseMenu.dropdown.item.room":"Code Sharing","exerciseMenu.dropdown.item.submitHistory":"Code 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
|
-
exports.default =
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageKo = {"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":"아두이노 연결 중 문제가 발생했나요?","exerciseMenu.arduino.setting":"아두이노 세팅","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":"코드에서 전송한 파일이\n여기에 표시됩니다.","exerciseMenu.stdioFileBrowser.popover.header":"파일"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
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":"มีปัญหาในการเชื่อมต่ออาดูยโนหรือไม่?","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
|
+
|
|
7
|
+
exports.default = messageTh;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
|
|
3
4
|
export default _default;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var designTokens = require('@elice/design-tokens');
|
|
7
|
+
var intl = require('@elice/intl');
|
|
7
8
|
var recoil = require('recoil');
|
|
8
9
|
var styled = require('styled-components');
|
|
9
10
|
var NoVncLazy = require('../../shared/no-vnc/NoVncLazy.js');
|
|
@@ -13,10 +14,10 @@ var context = require('../context/context.js');
|
|
|
13
14
|
var recoilTypes = require('../context/recoilTypes.js');
|
|
14
15
|
require('../context/subjects.js');
|
|
15
16
|
require('../context/ExerciseProvider.js');
|
|
16
|
-
var
|
|
17
|
+
var ExercisePreviewDisplayModeButton = require('./ExercisePreviewDisplayModeButton.js');
|
|
17
18
|
var en = require('./locales/en.json.js');
|
|
18
19
|
var ko = require('./locales/ko.json.js');
|
|
19
|
-
var
|
|
20
|
+
var th = require('./locales/th.json.js');
|
|
20
21
|
|
|
21
22
|
const StyledExercisePreview = styled.div.withConfig({
|
|
22
23
|
componentId: "sc-i6d1i5-0"
|
|
@@ -26,7 +27,9 @@ const StyledExercisePreview = styled.div.withConfig({
|
|
|
26
27
|
* - NoVnc
|
|
27
28
|
* - Web browser
|
|
28
29
|
*/
|
|
29
|
-
const ExercisePreview = (
|
|
30
|
+
const ExercisePreview = ({
|
|
31
|
+
__intl
|
|
32
|
+
}) => {
|
|
30
33
|
const {
|
|
31
34
|
materialExerciseId
|
|
32
35
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -93,11 +96,8 @@ const ExercisePreview = () => {
|
|
|
93
96
|
//
|
|
94
97
|
//
|
|
95
98
|
//
|
|
96
|
-
return React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser());
|
|
99
|
+
return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser()));
|
|
97
100
|
};
|
|
98
|
-
var ExercisePreview$1 =
|
|
99
|
-
en: en.default,
|
|
100
|
-
ko: ko.default
|
|
101
|
-
});
|
|
101
|
+
var ExercisePreview$1 = new intl.IntlComponentBuilder(ExercisePreview).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
102
102
|
|
|
103
103
|
exports.default = ExercisePreview$1;
|
package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var icons = require('@elice/icons');
|
|
7
|
+
var intl = require('@elice/intl');
|
|
8
8
|
var recoil = require('recoil');
|
|
9
9
|
var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
|
|
10
10
|
var recoil$1 = require('../context/recoil.js');
|
|
@@ -15,7 +15,7 @@ require('../context/ExerciseProvider.js');
|
|
|
15
15
|
|
|
16
16
|
const ExercisePreviewDisplayModeButton = React.forwardRef((props, ref) => {
|
|
17
17
|
var _a;
|
|
18
|
-
const intl =
|
|
18
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
19
19
|
const [exercisePreviewDisplayMode, setExercisePreviewDisplayMode] = recoil.useRecoilState(recoil$1.exercisePreviewDisplayModeState);
|
|
20
20
|
/**
|
|
21
21
|
* Handle click.
|
|
@@ -28,9 +28,9 @@ const ExercisePreviewDisplayModeButton = React.forwardRef((props, ref) => {
|
|
|
28
28
|
//
|
|
29
29
|
return React.createElement(ExerciseMenuButton.default, Object.assign({}, props, {
|
|
30
30
|
icon: exercisePreviewDisplayMode === recoilTypes.ExercisePreviewDisplayMode.Mini ? icons.eilScreenHalf : icons.eilPanelRight,
|
|
31
|
-
title: ((_a = props.title) !== null && _a !== void 0 ? _a : exercisePreviewDisplayMode === recoilTypes.ExercisePreviewDisplayMode.Mini) ? intl.formatMessage({
|
|
31
|
+
title: ((_a = props.title) !== null && _a !== void 0 ? _a : exercisePreviewDisplayMode === recoilTypes.ExercisePreviewDisplayMode.Mini) ? intl$1.formatMessage({
|
|
32
32
|
id: 'exercisePreview.displayModeButton.sideBySide'
|
|
33
|
-
}) : intl.formatMessage({
|
|
33
|
+
}) : intl$1.formatMessage({
|
|
34
34
|
id: 'exercisePreview.displayModeButton.mini'
|
|
35
35
|
}),
|
|
36
36
|
placement: "bottom-end",
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageEn = {"exercisePreview.displayModeButton.mini":"Toggle to Mini mode","exercisePreview.displayModeButton.sideBySide":"Toggle to Side-by-side mode"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageKo = {"exercisePreview.displayModeButton.mini":"간소화 뷰로 전환","exercisePreview.displayModeButton.sideBySide":"사이드 뷰로 전환"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageTh = {"exercisePreview.displayModeButton.mini":"เปลี่ยนเป็นมุมมองที่เรียบง่าย","exercisePreview.displayModeButton.sideBySide":"เปลี่ยนมุมมองเป็นด้านข้าง"};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}>;
|
|
2
|
+
import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
|
|
5
4
|
export default _default;
|