@elice/material-exercise 1.240401.0 → 1.240508.0-globalization.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/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 +14 -13
- 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 +21 -4
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +7 -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 +13 -9
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +6 -3
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +15 -13
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +10 -8
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +12 -10
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +9 -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 +12 -8
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +6 -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 +18 -15
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +20 -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 +13 -9
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +30 -28
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +17 -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 +30 -29
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +22 -18
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +12 -10
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +15 -13
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +8 -5
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +29 -30
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +10 -7
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +8 -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 +17 -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 +10 -8
- package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +26 -24
- package/cjs/components/shared/file-tree/FileTreeToolbar.js +8 -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 +10 -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 +14 -14
- 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 +21 -4
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +5 -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 +13 -9
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +6 -3
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +14 -12
- package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +4 -2
- package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +8 -6
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +8 -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 +13 -9
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +4 -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 +18 -15
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +4 -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 +13 -9
- package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +6 -4
- package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +4 -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 +30 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +20 -16
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +4 -2
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +14 -12
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +8 -5
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +28 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +10 -7
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +8 -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 +18 -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 +4 -2
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +24 -22
- package/es/components/shared/file-tree/FileTreeToolbar.js +5 -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 +10 -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,12 @@ const ExerciseMenu = () => {
|
|
|
33
36
|
//
|
|
34
37
|
//
|
|
35
38
|
//
|
|
36
|
-
return React.createElement(
|
|
39
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
40
|
+
value: {
|
|
41
|
+
intl: __intl
|
|
42
|
+
}
|
|
43
|
+
}, 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
44
|
};
|
|
38
|
-
var ExerciseMenu$1 =
|
|
39
|
-
en: en.default,
|
|
40
|
-
ko: ko.default
|
|
41
|
-
});
|
|
45
|
+
var ExerciseMenu$1 = new intl.IntlComponentBuilder(ExerciseMenu).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
42
46
|
|
|
43
47
|
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,9 @@ require('../context/ExerciseProvider.js');
|
|
|
15
15
|
|
|
16
16
|
const ExerciseMenuArduinoAgentModalButton = () => {
|
|
17
17
|
const setOpen = recoil.useSetRecoilState(recoil$1.exerciseArduinoAgentModalState);
|
|
18
|
+
const {
|
|
19
|
+
intl: intl$1
|
|
20
|
+
} = intl.useRawEliceIntl();
|
|
18
21
|
const handleClick = () => {
|
|
19
22
|
setOpen(true);
|
|
20
23
|
};
|
|
@@ -27,8 +30,8 @@ const ExerciseMenuArduinoAgentModalButton = () => {
|
|
|
27
30
|
iconAlign: "left",
|
|
28
31
|
border: false,
|
|
29
32
|
onClick: handleClick
|
|
30
|
-
},
|
|
31
|
-
id:
|
|
33
|
+
}, intl$1.formatMessage({
|
|
34
|
+
id: 'exerciseMenu.arduino.agent.button'
|
|
32
35
|
}));
|
|
33
36
|
};
|
|
34
37
|
|
|
@@ -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,9 @@ require('../context/ExerciseProvider.js');
|
|
|
18
18
|
var ExerciseMenuStdioFileBrowser_styled = require('./ExerciseMenuStdioFileBrowser.styled.js');
|
|
19
19
|
|
|
20
20
|
const ExerciseMenuArduinoSettings = () => {
|
|
21
|
-
const
|
|
21
|
+
const {
|
|
22
|
+
intl: intl$1
|
|
23
|
+
} = intl.useRawEliceIntl();
|
|
22
24
|
const [open, setOpen] = React.useState(false);
|
|
23
25
|
const anchorRef = React.useRef(null);
|
|
24
26
|
const ports = recoil.useRecoilValue(recoil$1.exerciseArduinoPortsState);
|
|
@@ -33,8 +35,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
33
35
|
role: "gray3",
|
|
34
36
|
block: true,
|
|
35
37
|
size: "small"
|
|
36
|
-
},
|
|
37
|
-
id:
|
|
38
|
+
}, intl$1.formatMessage({
|
|
39
|
+
id: 'exerciseMenu.arduino.transferSpeed'
|
|
38
40
|
})), React.createElement(ExerciseMenuStdioFileBrowser_styled.StyledSelect, {
|
|
39
41
|
value: preference.baudRate,
|
|
40
42
|
size: "small",
|
|
@@ -51,8 +53,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
51
53
|
role: "gray3",
|
|
52
54
|
block: true,
|
|
53
55
|
size: "small"
|
|
54
|
-
},
|
|
55
|
-
id:
|
|
56
|
+
}, intl$1.formatMessage({
|
|
57
|
+
id: 'exerciseMenu.arduino.setting.device'
|
|
56
58
|
})), React.createElement(ExerciseMenuStdioFileBrowser_styled.StyledSelect, {
|
|
57
59
|
value: openedPort !== null && openedPort !== void 0 ? openedPort : '',
|
|
58
60
|
size: "small",
|
|
@@ -63,13 +65,13 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
63
65
|
}, ports.length === 0 ? React.createElement("option", {
|
|
64
66
|
value: "",
|
|
65
67
|
disabled: true
|
|
66
|
-
},
|
|
67
|
-
id:
|
|
68
|
+
}, intl$1.formatMessage({
|
|
69
|
+
id: 'exerciseMenu.arduino.setting.noDevice'
|
|
68
70
|
})) : React.createElement("option", {
|
|
69
71
|
value: "",
|
|
70
72
|
disabled: true
|
|
71
|
-
},
|
|
72
|
-
id:
|
|
73
|
+
}, intl$1.formatMessage({
|
|
74
|
+
id: 'exerciseMenu.arduino.setting.selectDevice'
|
|
73
75
|
})), ports.map(port => React.createElement("option", {
|
|
74
76
|
key: port.Name,
|
|
75
77
|
value: port.Name
|
|
@@ -84,8 +86,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
84
86
|
bold: true
|
|
85
87
|
}, React.createElement(blocks.Flex, {
|
|
86
88
|
align: "center"
|
|
87
|
-
},
|
|
88
|
-
id:
|
|
89
|
+
}, intl$1.formatMessage({
|
|
90
|
+
id: 'exerciseMenu.arduino.setting'
|
|
89
91
|
}))), React.createElement(blocks.IconButton, {
|
|
90
92
|
icon: icons.eilMathsignMultiplyBasic,
|
|
91
93
|
role: "white",
|
|
@@ -122,7 +124,7 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
122
124
|
const renderStdioFilePopoverToggleButton = () => {
|
|
123
125
|
return React.createElement(ExerciseMenuButton.default, {
|
|
124
126
|
icon: icons.eilMaterialTypeArduino,
|
|
125
|
-
title: intl.formatMessage({
|
|
127
|
+
title: intl$1.formatMessage({
|
|
126
128
|
id: 'exerciseMenu.arduino.setting'
|
|
127
129
|
}),
|
|
128
130
|
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,9 @@ 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
|
|
22
|
+
const {
|
|
23
|
+
intl: intl$1
|
|
24
|
+
} = intl.useRawEliceIntl();
|
|
23
25
|
const {
|
|
24
26
|
materialExerciseId
|
|
25
27
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -74,29 +76,29 @@ const ExerciseMenuDropdown = () => {
|
|
|
74
76
|
//
|
|
75
77
|
return React.createElement(React.Fragment, null, React.createElement(blocks.ButtonMenu, {
|
|
76
78
|
menuItemProps: [{
|
|
77
|
-
label: intl.formatMessage({
|
|
79
|
+
label: intl$1.formatMessage({
|
|
78
80
|
id: 'exerciseMenu.dropdown.item.environment'
|
|
79
81
|
}),
|
|
80
82
|
onClick: () => setRightpaneActiveState('environment')
|
|
81
83
|
}, {
|
|
82
|
-
label: intl.formatMessage({
|
|
84
|
+
label: intl$1.formatMessage({
|
|
83
85
|
id: 'exerciseMenu.dropdown.item.preference'
|
|
84
86
|
}),
|
|
85
87
|
onClick: () => setRightpaneActiveState('preference')
|
|
86
88
|
}, {
|
|
87
|
-
label: intl.formatMessage({
|
|
89
|
+
label: intl$1.formatMessage({
|
|
88
90
|
id: 'exerciseMenu.dropdown.item.codeHistory'
|
|
89
91
|
}),
|
|
90
92
|
disabled: !user,
|
|
91
93
|
onClick: () => setIsCodeHistoryModalOpen(true)
|
|
92
94
|
}, {
|
|
93
|
-
label: intl.formatMessage({
|
|
95
|
+
label: intl$1.formatMessage({
|
|
94
96
|
id: 'exerciseMenu.dropdown.item.submitHistory'
|
|
95
97
|
}),
|
|
96
98
|
disabled: !user || !activeFilename,
|
|
97
99
|
onClick: () => setIsSubmitHistoryModalOpen(true)
|
|
98
100
|
}, {
|
|
99
|
-
label: intl.formatMessage({
|
|
101
|
+
label: intl$1.formatMessage({
|
|
100
102
|
id: 'exerciseMenu.dropdown.item.room'
|
|
101
103
|
}),
|
|
102
104
|
disabled: isLectureTestInProgress,
|
|
@@ -108,7 +110,7 @@ const ExerciseMenuDropdown = () => {
|
|
|
108
110
|
shadow: true
|
|
109
111
|
}, React.createElement(ExerciseMenuButton.default, {
|
|
110
112
|
icon: icons.eilMoreVertical,
|
|
111
|
-
title: intl.formatMessage({
|
|
113
|
+
title: intl$1.formatMessage({
|
|
112
114
|
id: 'exerciseMenu.dropdown.button.tooltip'
|
|
113
115
|
})
|
|
114
116
|
})), 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,9 @@ require('random-words');
|
|
|
27
27
|
require('unicount');
|
|
28
28
|
|
|
29
29
|
const ExerciseMenuReset = () => {
|
|
30
|
-
const
|
|
30
|
+
const {
|
|
31
|
+
intl: intl$1
|
|
32
|
+
} = intl.useRawEliceIntl();
|
|
31
33
|
const [isDialogOpen, setDialogOpen] = React.useState(false);
|
|
32
34
|
const activeFilename = recoil.useRecoilValue(recoil$1.exerciseActiveFilenameState);
|
|
33
35
|
const isFileResettable = useExerciseFile.useExerciseFileResettable(activeFilename);
|
|
@@ -45,9 +47,9 @@ const ExerciseMenuReset = () => {
|
|
|
45
47
|
return React.createElement(ExerciseMenuButton.default, {
|
|
46
48
|
icon: icons.eilReset,
|
|
47
49
|
active: isDialogOpen,
|
|
48
|
-
title: isFileResettable ? intl.formatMessage({
|
|
50
|
+
title: isFileResettable ? intl$1.formatMessage({
|
|
49
51
|
id: 'exerciseMenu.reset.button.tooltip.enabled'
|
|
50
|
-
}) : intl.formatMessage({
|
|
52
|
+
}) : intl$1.formatMessage({
|
|
51
53
|
id: 'exerciseMenu.reset.button.tooltip.disabled'
|
|
52
54
|
}),
|
|
53
55
|
disabled: !isFileResettable,
|
|
@@ -63,21 +65,21 @@ const ExerciseMenuReset = () => {
|
|
|
63
65
|
}
|
|
64
66
|
return React.createElement(blocks.Dialog, {
|
|
65
67
|
type: "warning",
|
|
66
|
-
title: intl.formatMessage({
|
|
68
|
+
title: intl$1.formatMessage({
|
|
67
69
|
id: 'exerciseMenu.reset.confirmDialog.title'
|
|
68
70
|
}),
|
|
69
|
-
body: intl.formatMessage({
|
|
71
|
+
body: intl$1.formatMessage({
|
|
70
72
|
id: 'exerciseMenu.reset.confirmDialog.body'
|
|
71
73
|
}),
|
|
72
74
|
onHide: () => setDialogOpen(false)
|
|
73
75
|
}, React.createElement(blocks.Dialog.CloseButton, {
|
|
74
76
|
onClick: () => setDialogOpen(false)
|
|
75
|
-
},
|
|
76
|
-
id:
|
|
77
|
+
}, intl$1.formatMessage({
|
|
78
|
+
id: 'exerciseMenu.reset.confirmDialog.cancel'
|
|
77
79
|
})), React.createElement(blocks.Dialog.ActionButton, {
|
|
78
80
|
onClick: handleReset
|
|
79
|
-
},
|
|
80
|
-
id:
|
|
81
|
+
}, intl$1.formatMessage({
|
|
82
|
+
id: 'exerciseMenu.reset.confirmDialog.confirm'
|
|
81
83
|
})));
|
|
82
84
|
};
|
|
83
85
|
//
|
|
@@ -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,9 @@ require('../context/ExerciseProvider.js');
|
|
|
18
18
|
var ExerciseMenuStdioFileBrowser_styled = require('./ExerciseMenuStdioFileBrowser.styled.js');
|
|
19
19
|
|
|
20
20
|
const ExerciseMenuStdioFileBrowser = () => {
|
|
21
|
-
const
|
|
21
|
+
const {
|
|
22
|
+
intl: intl$1
|
|
23
|
+
} = intl.useRawEliceIntl();
|
|
22
24
|
const [open, setOpen] = React.useState(false);
|
|
23
25
|
const anchorRef = React.useRef(null);
|
|
24
26
|
const stdioFiles = recoil.useRecoilValue(recoil$1.exerciseRunnerStdioFilesState);
|
|
@@ -93,8 +95,8 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
93
95
|
size: "small",
|
|
94
96
|
textAlign: "center",
|
|
95
97
|
preWrap: true
|
|
96
|
-
},
|
|
97
|
-
id:
|
|
98
|
+
}, intl$1.formatMessage({
|
|
99
|
+
id: 'exerciseMenu.stdioFileBrowser.popover.body.placeholder'
|
|
98
100
|
})));
|
|
99
101
|
};
|
|
100
102
|
/**
|
|
@@ -125,8 +127,8 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
125
127
|
role: "white",
|
|
126
128
|
size: "small",
|
|
127
129
|
bold: true
|
|
128
|
-
},
|
|
129
|
-
id:
|
|
130
|
+
}, intl$1.formatMessage({
|
|
131
|
+
id: 'exerciseMenu.stdioFileBrowser.popover.header'
|
|
130
132
|
})), React.createElement(blocks.Hspace, {
|
|
131
133
|
width: 0.5
|
|
132
134
|
}), React.createElement(blocks.NotificationCount, {
|
|
@@ -169,7 +171,7 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
169
171
|
return React.createElement(ExerciseMenuButton.default, {
|
|
170
172
|
icon: icons.eilAttachment,
|
|
171
173
|
active: open,
|
|
172
|
-
title: intl.formatMessage({
|
|
174
|
+
title: intl$1.formatMessage({
|
|
173
175
|
id: 'exerciseMenu.stdioFileBrowser.button.tooltip'
|
|
174
176
|
}),
|
|
175
177
|
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,12 @@ const ExercisePreview = () => {
|
|
|
93
96
|
//
|
|
94
97
|
//
|
|
95
98
|
//
|
|
96
|
-
return React.createElement(
|
|
99
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
100
|
+
value: {
|
|
101
|
+
intl: __intl
|
|
102
|
+
}
|
|
103
|
+
}, React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser()));
|
|
97
104
|
};
|
|
98
|
-
var ExercisePreview$1 =
|
|
99
|
-
en: en.default,
|
|
100
|
-
ko: ko.default
|
|
101
|
-
});
|
|
105
|
+
var ExercisePreview$1 = new intl.IntlComponentBuilder(ExercisePreview).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
102
106
|
|
|
103
107
|
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,9 @@ require('../context/ExerciseProvider.js');
|
|
|
15
15
|
|
|
16
16
|
const ExercisePreviewDisplayModeButton = React.forwardRef((props, ref) => {
|
|
17
17
|
var _a;
|
|
18
|
-
const
|
|
18
|
+
const {
|
|
19
|
+
intl: intl$1
|
|
20
|
+
} = intl.useRawEliceIntl();
|
|
19
21
|
const [exercisePreviewDisplayMode, setExercisePreviewDisplayMode] = recoil.useRecoilState(recoil$1.exercisePreviewDisplayModeState);
|
|
20
22
|
/**
|
|
21
23
|
* Handle click.
|
|
@@ -28,9 +30,9 @@ const ExercisePreviewDisplayModeButton = React.forwardRef((props, ref) => {
|
|
|
28
30
|
//
|
|
29
31
|
return React.createElement(ExerciseMenuButton.default, Object.assign({}, props, {
|
|
30
32
|
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({
|
|
33
|
+
title: ((_a = props.title) !== null && _a !== void 0 ? _a : exercisePreviewDisplayMode === recoilTypes.ExercisePreviewDisplayMode.Mini) ? intl$1.formatMessage({
|
|
32
34
|
id: 'exercisePreview.displayModeButton.sideBySide'
|
|
33
|
-
}) : intl.formatMessage({
|
|
35
|
+
}) : intl$1.formatMessage({
|
|
34
36
|
id: 'exercisePreview.displayModeButton.mini'
|
|
35
37
|
}),
|
|
36
38
|
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;
|