@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
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
2
|
import { postOrgMaterialExerciseExerciseRoomUserFileAdd, postOrgMaterialExerciseExerciseRoomUserFileDirectoryAdd, postOrgMaterialExerciseExerciseRoomUserFileDelete, postOrgMaterialExerciseExerciseRoomUserFileDirectoryDelete, postOrgMaterialExerciseExerciseRoomUserFileMove, postOrgMaterialExerciseExerciseRoomUserFileDirectoryMove, getOrgMaterialExerciseExerciseRoomGet } from '@elice/api-client';
|
|
4
3
|
import { Flex, Notification } from '@elice/blocks';
|
|
4
|
+
import { IntlComponentBuilder } from '@elice/intl';
|
|
5
5
|
import { enums } from '@elice/types';
|
|
6
6
|
import { camelize } from 'humps';
|
|
7
7
|
import { useRecoilValue, useRecoilState } from 'recoil';
|
|
@@ -17,9 +17,9 @@ import { ExerciseContext } from '../context/context.js';
|
|
|
17
17
|
import '../context/recoilTypes.js';
|
|
18
18
|
import '../context/subjects.js';
|
|
19
19
|
import '../context/ExerciseProvider.js';
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
20
|
+
import messageEn from './locales/en.json.js';
|
|
21
|
+
import messageKo from './locales/ko.json.js';
|
|
22
|
+
import messageTh from './locales/th.json.js';
|
|
23
23
|
|
|
24
24
|
const AsyncFileTree = React.lazy(() => import('../../shared/file-tree/FileTree.js'));
|
|
25
25
|
const AsyncFileTreeList = React.lazy(() => import('../../shared/file-tree/FileTreeList.js'));
|
|
@@ -40,9 +40,10 @@ var MaterialExerciseFileError;
|
|
|
40
40
|
MaterialExerciseFileError["UsableSizeExceed"] = "usable_size_exceed";
|
|
41
41
|
MaterialExerciseFileError["SubFileOrPathExist"] = "sub_file_or_path_exist";
|
|
42
42
|
})(MaterialExerciseFileError || (MaterialExerciseFileError = {}));
|
|
43
|
-
const ExerciseFileTree = (
|
|
43
|
+
const ExerciseFileTree = ({
|
|
44
|
+
__intl
|
|
45
|
+
}) => {
|
|
44
46
|
var _a, _b, _c, _d;
|
|
45
|
-
const intl = useIntl();
|
|
46
47
|
const {
|
|
47
48
|
exerciseRoomId,
|
|
48
49
|
materialExerciseId,
|
|
@@ -116,7 +117,7 @@ const ExerciseFileTree = () => {
|
|
|
116
117
|
setExerciseRoom(exerciseRoom);
|
|
117
118
|
} catch (error) {
|
|
118
119
|
console.error(error);
|
|
119
|
-
Notification.error(
|
|
120
|
+
Notification.error(__intl.formatMessage({
|
|
120
121
|
id: 'materialExercise.exerciseFileTree.fetchRoom.failure'
|
|
121
122
|
}));
|
|
122
123
|
}
|
|
@@ -143,7 +144,7 @@ const ExerciseFileTree = () => {
|
|
|
143
144
|
message = ((_b = error.detail) === null || _b === void 0 ? void 0 : _b.failCode) ? error.detail.failCode : `materialExercise.exerciseFileTree.errorCode.unknown`;
|
|
144
145
|
failMessage = (_c = error.detail) === null || _c === void 0 ? void 0 : _c.failMessage;
|
|
145
146
|
}
|
|
146
|
-
Notification.error(
|
|
147
|
+
Notification.error(__intl.formatMessage({
|
|
147
148
|
id: message
|
|
148
149
|
}) + `${failMessage ? ` (${failMessage})` : ''}`);
|
|
149
150
|
if (typeof onError === 'function') {
|
|
@@ -326,9 +327,6 @@ const ExerciseFileTree = () => {
|
|
|
326
327
|
locale: locale
|
|
327
328
|
}, React.createElement(AsyncFileTreeToolbar, null), React.createElement(StyledFileTreeDivider, null), React.createElement(AsyncFileTreeList, null))));
|
|
328
329
|
};
|
|
329
|
-
var ExerciseFileTree$1 =
|
|
330
|
-
en: phrasesEn,
|
|
331
|
-
ko: phrasesKo
|
|
332
|
-
});
|
|
330
|
+
var ExerciseFileTree$1 = new IntlComponentBuilder(ExerciseFileTree).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
333
331
|
|
|
334
332
|
export { ExerciseFileTree$1 as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
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."};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
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":"실습을 가져오는데 실패했습니다."};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageKo as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
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":"การเรียนปฏิบัติล้มเหลว "};
|
|
2
|
+
|
|
3
|
+
export { messageTh as default };
|
|
@@ -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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { base } from '@elice/design-tokens';
|
|
3
|
+
import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
|
|
3
4
|
import { enums } from '@elice/types';
|
|
4
5
|
import { useRecoilValue } from 'recoil';
|
|
5
6
|
import styled from 'styled-components';
|
|
@@ -8,19 +9,21 @@ import { ExerciseContext } from '../context/context.js';
|
|
|
8
9
|
import '../context/recoilTypes.js';
|
|
9
10
|
import '../context/subjects.js';
|
|
10
11
|
import '../context/ExerciseProvider.js';
|
|
11
|
-
import { withExerciseIntlProvider } from '../context/ExerciseIntlProvider.js';
|
|
12
|
-
import phrasesEn from './locales/en.json.js';
|
|
13
|
-
import phrasesKo from './locales/ko.json.js';
|
|
14
12
|
import ExerciseMenuArduinoAgentModalButton from './ExerciseMenuArduinoAgentModalButton.js';
|
|
15
13
|
import ExerciseMenuArduinoSettings from './ExerciseMenuArduinoSettings.js';
|
|
16
14
|
import ExerciseMenuDropdown from './ExerciseMenuDropdown.js';
|
|
17
15
|
import ExerciseMenuReset from './ExerciseMenuReset.js';
|
|
18
16
|
import ExerciseMenuStdioFileBrowser from './ExerciseMenuStdioFileBrowser.js';
|
|
17
|
+
import messageEn from './locales/en.json.js';
|
|
18
|
+
import messageKo from './locales/ko.json.js';
|
|
19
|
+
import messageTh from './locales/th.json.js';
|
|
19
20
|
|
|
20
21
|
const StyledExerciseMenuWrapper = styled.div.withConfig({
|
|
21
22
|
componentId: "sc-1gf6m87-0"
|
|
22
23
|
})(["display:flex;justify-content:center;align-items:center;padding:0 0.5rem 0 1rem;height:2.25rem;gap:0.5rem;background-color:", ";"], base.color.navy8);
|
|
23
|
-
const ExerciseMenu = (
|
|
24
|
+
const ExerciseMenu = ({
|
|
25
|
+
__intl
|
|
26
|
+
}) => {
|
|
24
27
|
const {
|
|
25
28
|
materialExerciseId
|
|
26
29
|
} = React.useContext(ExerciseContext);
|
|
@@ -29,11 +32,12 @@ const ExerciseMenu = () => {
|
|
|
29
32
|
//
|
|
30
33
|
//
|
|
31
34
|
//
|
|
32
|
-
return React.createElement(
|
|
35
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
36
|
+
value: {
|
|
37
|
+
intl: __intl
|
|
38
|
+
}
|
|
39
|
+
}, React.createElement(StyledExerciseMenuWrapper, null, isArduinoExercise ? React.createElement(React.Fragment, null, React.createElement(ExerciseMenuArduinoAgentModalButton, null), React.createElement(ExerciseMenuArduinoSettings, null)) : React.createElement(ExerciseMenuStdioFileBrowser, null), React.createElement(ExerciseMenuReset, null), React.createElement(ExerciseMenuDropdown, null)));
|
|
33
40
|
};
|
|
34
|
-
var ExerciseMenu$1 =
|
|
35
|
-
en: phrasesEn,
|
|
36
|
-
ko: phrasesKo
|
|
37
|
-
});
|
|
41
|
+
var ExerciseMenu$1 = new IntlComponentBuilder(ExerciseMenu).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
38
42
|
|
|
39
43
|
export { ExerciseMenu$1 as default };
|
package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
2
|
import { Button, Icon } from '@elice/blocks';
|
|
4
3
|
import { eilStatusDanger } from '@elice/icons';
|
|
4
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
5
5
|
import { useSetRecoilState } from 'recoil';
|
|
6
6
|
import { exerciseArduinoAgentModalState } from '../context/recoil.js';
|
|
7
7
|
import '../context/context.js';
|
|
@@ -11,6 +11,9 @@ import '../context/ExerciseProvider.js';
|
|
|
11
11
|
|
|
12
12
|
const ExerciseMenuArduinoAgentModalButton = () => {
|
|
13
13
|
const setOpen = useSetRecoilState(exerciseArduinoAgentModalState);
|
|
14
|
+
const {
|
|
15
|
+
intl
|
|
16
|
+
} = useRawEliceIntl();
|
|
14
17
|
const handleClick = () => {
|
|
15
18
|
setOpen(true);
|
|
16
19
|
};
|
|
@@ -23,8 +26,8 @@ const ExerciseMenuArduinoAgentModalButton = () => {
|
|
|
23
26
|
iconAlign: "left",
|
|
24
27
|
border: false,
|
|
25
28
|
onClick: handleClick
|
|
26
|
-
},
|
|
27
|
-
id:
|
|
29
|
+
}, intl.formatMessage({
|
|
30
|
+
id: 'exerciseMenu.arduino.agent.button'
|
|
28
31
|
}));
|
|
29
32
|
};
|
|
30
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl, FormattedMessage } from 'react-intl';
|
|
3
2
|
import { Popover, Text, Flex, IconButton } from '@elice/blocks';
|
|
4
3
|
import { eilMaterialTypeArduino, eilMathsignMultiplyBasic } from '@elice/icons';
|
|
4
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
5
5
|
import { useRecoilValue, useRecoilState } from 'recoil';
|
|
6
6
|
import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
|
|
7
7
|
import { ARDUINO_BAUD_RATES } from '../../../constants/arduino.js';
|
|
@@ -14,7 +14,9 @@ import '../context/ExerciseProvider.js';
|
|
|
14
14
|
import { StyledFilePopoverContent, StyledFilePopoverHeader, StyledFilePopoverBody, StyledFilePopoverBodyList, StyledPreferenceBodyItem, StyledSelect } from './ExerciseMenuStdioFileBrowser.styled.js';
|
|
15
15
|
|
|
16
16
|
const ExerciseMenuArduinoSettings = () => {
|
|
17
|
-
const
|
|
17
|
+
const {
|
|
18
|
+
intl
|
|
19
|
+
} = useRawEliceIntl();
|
|
18
20
|
const [open, setOpen] = React.useState(false);
|
|
19
21
|
const anchorRef = React.useRef(null);
|
|
20
22
|
const ports = useRecoilValue(exerciseArduinoPortsState);
|
|
@@ -29,8 +31,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
29
31
|
role: "gray3",
|
|
30
32
|
block: true,
|
|
31
33
|
size: "small"
|
|
32
|
-
},
|
|
33
|
-
id:
|
|
34
|
+
}, intl.formatMessage({
|
|
35
|
+
id: 'exerciseMenu.arduino.transferSpeed'
|
|
34
36
|
})), React.createElement(StyledSelect, {
|
|
35
37
|
value: preference.baudRate,
|
|
36
38
|
size: "small",
|
|
@@ -47,8 +49,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
47
49
|
role: "gray3",
|
|
48
50
|
block: true,
|
|
49
51
|
size: "small"
|
|
50
|
-
},
|
|
51
|
-
id:
|
|
52
|
+
}, intl.formatMessage({
|
|
53
|
+
id: 'exerciseMenu.arduino.setting.device'
|
|
52
54
|
})), React.createElement(StyledSelect, {
|
|
53
55
|
value: openedPort !== null && openedPort !== void 0 ? openedPort : '',
|
|
54
56
|
size: "small",
|
|
@@ -59,13 +61,13 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
59
61
|
}, ports.length === 0 ? React.createElement("option", {
|
|
60
62
|
value: "",
|
|
61
63
|
disabled: true
|
|
62
|
-
},
|
|
63
|
-
id:
|
|
64
|
+
}, intl.formatMessage({
|
|
65
|
+
id: 'exerciseMenu.arduino.setting.noDevice'
|
|
64
66
|
})) : React.createElement("option", {
|
|
65
67
|
value: "",
|
|
66
68
|
disabled: true
|
|
67
|
-
},
|
|
68
|
-
id:
|
|
69
|
+
}, intl.formatMessage({
|
|
70
|
+
id: 'exerciseMenu.arduino.setting.selectDevice'
|
|
69
71
|
})), ports.map(port => React.createElement("option", {
|
|
70
72
|
key: port.Name,
|
|
71
73
|
value: port.Name
|
|
@@ -80,8 +82,8 @@ const ExerciseMenuArduinoSettings = () => {
|
|
|
80
82
|
bold: true
|
|
81
83
|
}, React.createElement(Flex, {
|
|
82
84
|
align: "center"
|
|
83
|
-
},
|
|
84
|
-
id:
|
|
85
|
+
}, intl.formatMessage({
|
|
86
|
+
id: 'exerciseMenu.arduino.setting'
|
|
85
87
|
}))), React.createElement(IconButton, {
|
|
86
88
|
icon: eilMathsignMultiplyBasic,
|
|
87
89
|
role: "white",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
2
|
import { ButtonMenu } from '@elice/blocks';
|
|
4
3
|
import { eilMoreVertical } from '@elice/icons';
|
|
4
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
5
5
|
import { enums } from '@elice/types';
|
|
6
6
|
import { useRecoilValue, useSetRecoilState } from 'recoil';
|
|
7
7
|
import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
|
|
@@ -15,7 +15,9 @@ import ExerciseRoom from '../exercise-room/ExerciseRoom.js';
|
|
|
15
15
|
import ExerciseSubmitHistory from '../exercise-submit-history/ExerciseSubmitHistory.js';
|
|
16
16
|
|
|
17
17
|
const ExerciseMenuDropdown = () => {
|
|
18
|
-
const
|
|
18
|
+
const {
|
|
19
|
+
intl
|
|
20
|
+
} = useRawEliceIntl();
|
|
19
21
|
const {
|
|
20
22
|
materialExerciseId
|
|
21
23
|
} = React.useContext(ExerciseContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { useIntl, FormattedMessage } from 'react-intl';
|
|
3
2
|
import { Dialog } from '@elice/blocks';
|
|
4
3
|
import { eilReset } from '@elice/icons';
|
|
4
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
5
5
|
import { useRecoilValue } from 'recoil';
|
|
6
6
|
import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
|
|
7
7
|
import 'react-use';
|
|
@@ -23,7 +23,9 @@ import 'random-words';
|
|
|
23
23
|
import 'unicount';
|
|
24
24
|
|
|
25
25
|
const ExerciseMenuReset = () => {
|
|
26
|
-
const
|
|
26
|
+
const {
|
|
27
|
+
intl
|
|
28
|
+
} = useRawEliceIntl();
|
|
27
29
|
const [isDialogOpen, setDialogOpen] = useState(false);
|
|
28
30
|
const activeFilename = useRecoilValue(exerciseActiveFilenameState);
|
|
29
31
|
const isFileResettable = useExerciseFileResettable(activeFilename);
|
|
@@ -68,12 +70,12 @@ const ExerciseMenuReset = () => {
|
|
|
68
70
|
onHide: () => setDialogOpen(false)
|
|
69
71
|
}, React.createElement(Dialog.CloseButton, {
|
|
70
72
|
onClick: () => setDialogOpen(false)
|
|
71
|
-
},
|
|
72
|
-
id:
|
|
73
|
+
}, intl.formatMessage({
|
|
74
|
+
id: 'exerciseMenu.reset.confirmDialog.cancel'
|
|
73
75
|
})), React.createElement(Dialog.ActionButton, {
|
|
74
76
|
onClick: handleReset
|
|
75
|
-
},
|
|
76
|
-
id:
|
|
77
|
+
}, intl.formatMessage({
|
|
78
|
+
id: 'exerciseMenu.reset.confirmDialog.confirm'
|
|
77
79
|
})));
|
|
78
80
|
};
|
|
79
81
|
//
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl, FormattedMessage } from 'react-intl';
|
|
3
2
|
import { Popover, Flex, Text, Hspace, NotificationCount, IconButton, Icon, Vspace } from '@elice/blocks';
|
|
4
3
|
import { base } from '@elice/design-tokens';
|
|
5
4
|
import { eilAttachment, eilMathsignMultiplyBasic, eilDownload, eilFolder } from '@elice/icons';
|
|
5
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
6
6
|
import { ImageViewer } from '@elice/mui-elements';
|
|
7
7
|
import { useRecoilValue } from 'recoil';
|
|
8
8
|
import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
|
|
@@ -14,7 +14,9 @@ import '../context/ExerciseProvider.js';
|
|
|
14
14
|
import { StyledFilePopoverContent, StyledMenuButtonFileCount, StyledFilePopoverHeader, StyledFilePopoverBody, StyledFilePopoverBodyList, StyledFilePopoverBodyListItem, StyledFilePopoverBodyListItemContentImageWrap, StyledFilePopoverBodyListItemContentImage, StyledFilePopoverBodyListItemDownloadButton, StyledFilePopoverBodyListItemContentFile } from './ExerciseMenuStdioFileBrowser.styled.js';
|
|
15
15
|
|
|
16
16
|
const ExerciseMenuStdioFileBrowser = () => {
|
|
17
|
-
const
|
|
17
|
+
const {
|
|
18
|
+
intl
|
|
19
|
+
} = useRawEliceIntl();
|
|
18
20
|
const [open, setOpen] = React.useState(false);
|
|
19
21
|
const anchorRef = React.useRef(null);
|
|
20
22
|
const stdioFiles = useRecoilValue(exerciseRunnerStdioFilesState);
|
|
@@ -89,8 +91,8 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
89
91
|
size: "small",
|
|
90
92
|
textAlign: "center",
|
|
91
93
|
preWrap: true
|
|
92
|
-
},
|
|
93
|
-
id:
|
|
94
|
+
}, intl.formatMessage({
|
|
95
|
+
id: 'exerciseMenu.stdioFileBrowser.popover.body.placeholder'
|
|
94
96
|
})));
|
|
95
97
|
};
|
|
96
98
|
/**
|
|
@@ -121,8 +123,8 @@ const ExerciseMenuStdioFileBrowser = () => {
|
|
|
121
123
|
role: "white",
|
|
122
124
|
size: "small",
|
|
123
125
|
bold: true
|
|
124
|
-
},
|
|
125
|
-
id:
|
|
126
|
+
}, intl.formatMessage({
|
|
127
|
+
id: 'exerciseMenu.stdioFileBrowser.popover.header'
|
|
126
128
|
})), React.createElement(Hspace, {
|
|
127
129
|
width: 0.5
|
|
128
130
|
}), React.createElement(NotificationCount, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
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"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
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":"파일"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageKo as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var messageTh = {"exerciseMenu.dropdown.button.tooltip":"ดูเพิ่มเติม","exerciseMenu.dropdown.item.codeHistory":"ประวัติการแก้ไขโค้ด","exerciseMenu.dropdown.item.environment":"สมบัติทดลอง","exerciseMenu.dropdown.item.preference":"การตั้งค่าเอ็ดิเตอร์","exerciseMenu.dropdown.item.room":"แชร์โค้ด","exerciseMenu.dropdown.item.submitHistory":"ประวัติการดำเนินการ/ส่งผลลัพธ์","exerciseMenu.arduino.agent.button":"มีปัญหาในการเชื่อมต่ออาดูยโนหรือไม่?","exerciseMenu.arduino.setting":"Arduino การตั้งค่า","exerciseMenu.arduino.setting.device":"อุปกรณ์","exerciseMenu.arduino.setting.noDevice":"ไม่มีอุปกรณ์","exerciseMenu.arduino.setting.selectDevice":"เลือกอุปกรณ์","exerciseMenu.arduino.transferSpeed":"ความเร็วในการส่งถ่าย","exerciseMenu.reset.button.tooltip.disabled":"ไฟล์ที่ระบุไม่สามารถทำการเริ่มต้นใหม่ได้","exerciseMenu.reset.button.tooltip.enabled":"รีเซ็ตโค้ด","exerciseMenu.reset.confirmDialog.body":"คุณต้องการลบโค้ดทั้งหมดและรีเซ็ตใช่ไหม?","exerciseMenu.reset.confirmDialog.cancel":"ยกเลิก","exerciseMenu.reset.confirmDialog.confirm":"ตรวจสอบ","exerciseMenu.reset.confirmDialog.title":"รีเซ็ตโค้ด","exerciseMenu.stdioFileBrowser.button.tooltip":"ไฟล์","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"ไฟล์ที่ถูกส่งจากโค้ดจะแสดงที่นี่.","exerciseMenu.stdioFileBrowser.popover.header":"ไฟล์"};
|
|
2
|
+
|
|
3
|
+
export { messageTh as default };
|
|
@@ -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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { base } from '@elice/design-tokens';
|
|
3
|
+
import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
|
|
3
4
|
import { useRecoilValue } from 'recoil';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
6
|
import NoVncLazy from '../../shared/no-vnc/NoVncLazy.js';
|
|
@@ -9,10 +10,10 @@ import { ExerciseContext } from '../context/context.js';
|
|
|
9
10
|
import { ExercisePreviewType } from '../context/recoilTypes.js';
|
|
10
11
|
import '../context/subjects.js';
|
|
11
12
|
import '../context/ExerciseProvider.js';
|
|
12
|
-
import { withExerciseIntlProvider } from '../context/ExerciseIntlProvider.js';
|
|
13
|
-
import phrasesEn from './locales/en.json.js';
|
|
14
|
-
import phrasesKo from './locales/ko.json.js';
|
|
15
13
|
import ExercisePreviewDisplayModeButton from './ExercisePreviewDisplayModeButton.js';
|
|
14
|
+
import messageEn from './locales/en.json.js';
|
|
15
|
+
import messageKo from './locales/ko.json.js';
|
|
16
|
+
import messageTh from './locales/th.json.js';
|
|
16
17
|
|
|
17
18
|
const StyledExercisePreview = styled.div.withConfig({
|
|
18
19
|
componentId: "sc-i6d1i5-0"
|
|
@@ -22,7 +23,9 @@ const StyledExercisePreview = styled.div.withConfig({
|
|
|
22
23
|
* - NoVnc
|
|
23
24
|
* - Web browser
|
|
24
25
|
*/
|
|
25
|
-
const ExercisePreview = (
|
|
26
|
+
const ExercisePreview = ({
|
|
27
|
+
__intl
|
|
28
|
+
}) => {
|
|
26
29
|
const {
|
|
27
30
|
materialExerciseId
|
|
28
31
|
} = React.useContext(ExerciseContext);
|
|
@@ -89,11 +92,12 @@ const ExercisePreview = () => {
|
|
|
89
92
|
//
|
|
90
93
|
//
|
|
91
94
|
//
|
|
92
|
-
return React.createElement(
|
|
95
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
96
|
+
value: {
|
|
97
|
+
intl: __intl
|
|
98
|
+
}
|
|
99
|
+
}, React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser()));
|
|
93
100
|
};
|
|
94
|
-
var ExercisePreview$1 =
|
|
95
|
-
en: phrasesEn,
|
|
96
|
-
ko: phrasesKo
|
|
97
|
-
});
|
|
101
|
+
var ExercisePreview$1 = new IntlComponentBuilder(ExercisePreview).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
98
102
|
|
|
99
103
|
export { ExercisePreview$1 as default };
|
package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
2
|
import { eilScreenHalf, eilPanelRight } from '@elice/icons';
|
|
3
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
4
4
|
import { useRecoilState } from 'recoil';
|
|
5
5
|
import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
|
|
6
6
|
import { exercisePreviewDisplayModeState } from '../context/recoil.js';
|
|
@@ -11,7 +11,9 @@ import '../context/ExerciseProvider.js';
|
|
|
11
11
|
|
|
12
12
|
const ExercisePreviewDisplayModeButton = forwardRef((props, ref) => {
|
|
13
13
|
var _a;
|
|
14
|
-
const
|
|
14
|
+
const {
|
|
15
|
+
intl
|
|
16
|
+
} = useRawEliceIntl();
|
|
15
17
|
const [exercisePreviewDisplayMode, setExercisePreviewDisplayMode] = useRecoilState(exercisePreviewDisplayModeState);
|
|
16
18
|
/**
|
|
17
19
|
* Handle click.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageEn = {"exercisePreview.displayModeButton.mini":"Toggle to Mini mode","exercisePreview.displayModeButton.sideBySide":"Toggle to Side-by-side mode"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageKo = {"exercisePreview.displayModeButton.mini":"간소화 뷰로 전환","exercisePreview.displayModeButton.sideBySide":"사이드 뷰로 전환"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageKo as default };
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
2
|
import { IconButton, Hr, Flex, Text } from '@elice/blocks';
|
|
4
3
|
import { base } from '@elice/design-tokens';
|
|
5
4
|
import { eilMathsignMultiplyBasic } from '@elice/icons';
|
|
5
|
+
import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
|
|
6
6
|
import { useRecoilState } from 'recoil';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { MATERIAL_DIVIDER_BORDER_VALUE, getMaterialScrollBarCss } from '../../../constants/stylesheets.js';
|
|
@@ -11,11 +11,11 @@ import '../context/context.js';
|
|
|
11
11
|
import '../context/recoilTypes.js';
|
|
12
12
|
import '../context/subjects.js';
|
|
13
13
|
import '../context/ExerciseProvider.js';
|
|
14
|
-
import { withExerciseIntlProvider } from '../context/ExerciseIntlProvider.js';
|
|
15
|
-
import phrasesEn from './locales/en.json.js';
|
|
16
|
-
import phrasesKo from './locales/ko.json.js';
|
|
17
14
|
import ExerciseRightpaneEditorPerference from './ExerciseRightpaneEditorPerference.js';
|
|
18
15
|
import ExerciseRightpaneEnvironment from './ExerciseRightpaneEnvironment.js';
|
|
16
|
+
import messageEn from './locales/en.json.js';
|
|
17
|
+
import messageKo from './locales/ko.json.js';
|
|
18
|
+
import messageTh from './locales/th.json.js';
|
|
19
19
|
|
|
20
20
|
const HEADER_CLOSE_BUTTON_SIZE = '1.75rem';
|
|
21
21
|
const StyledRightpaneWrap = styled.div.withConfig({
|
|
@@ -33,7 +33,9 @@ const StyledRightpaneBodyWrap = styled.div.withConfig({
|
|
|
33
33
|
width: '0.375rem',
|
|
34
34
|
borderRadius: '2px'
|
|
35
35
|
}));
|
|
36
|
-
const ExerciseRightpane = (
|
|
36
|
+
const ExerciseRightpane = ({
|
|
37
|
+
__intl
|
|
38
|
+
}) => {
|
|
37
39
|
const [activeState, setActiveState] = useRecoilState(exerciseRightpaneActiveState);
|
|
38
40
|
/**
|
|
39
41
|
*
|
|
@@ -47,12 +49,12 @@ const ExerciseRightpane = () => {
|
|
|
47
49
|
const renderRightpaneHeaderTitle = () => {
|
|
48
50
|
switch (activeState) {
|
|
49
51
|
case 'environment':
|
|
50
|
-
return
|
|
51
|
-
id:
|
|
52
|
+
return __intl.formatMessage({
|
|
53
|
+
id: 'exerciseRightpane.environment.title'
|
|
52
54
|
});
|
|
53
55
|
case 'preference':
|
|
54
|
-
return
|
|
55
|
-
id:
|
|
56
|
+
return __intl.formatMessage({
|
|
57
|
+
id: 'exerciseRightpane.preference.title'
|
|
56
58
|
});
|
|
57
59
|
default:
|
|
58
60
|
return '';
|
|
@@ -94,15 +96,16 @@ const ExerciseRightpane = () => {
|
|
|
94
96
|
if (!activeState) {
|
|
95
97
|
return null;
|
|
96
98
|
}
|
|
97
|
-
return React.createElement(
|
|
99
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
100
|
+
value: {
|
|
101
|
+
intl: __intl
|
|
102
|
+
}
|
|
103
|
+
}, React.createElement(StyledRightpaneWrap, null, renderRightpaneHeader(), React.createElement(Hr, {
|
|
98
104
|
marginStart: 0,
|
|
99
105
|
marginEnd: 0,
|
|
100
106
|
color: base.color.navy6
|
|
101
|
-
}), React.createElement(StyledRightpaneBodyWrap, null, renderRightpaneBodyContent()));
|
|
107
|
+
}), React.createElement(StyledRightpaneBodyWrap, null, renderRightpaneBodyContent())));
|
|
102
108
|
};
|
|
103
|
-
var ExerciseRightpane$1 =
|
|
104
|
-
en: phrasesEn,
|
|
105
|
-
ko: phrasesKo
|
|
106
|
-
});
|
|
109
|
+
var ExerciseRightpane$1 = new IntlComponentBuilder(ExerciseRightpane).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
107
110
|
|
|
108
111
|
export { ExerciseRightpane$1 as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
2
|
import { Text, Vspace } from '@elice/blocks';
|
|
3
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
4
4
|
import { useRecoilValue } from 'recoil';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { exerciseState } from '../context/recoil.js';
|
|
@@ -13,7 +13,9 @@ const StyledEnvironmentList = styled.ul.withConfig({
|
|
|
13
13
|
componentId: "sc-208wkr-0"
|
|
14
14
|
})(["margin:0;padding:0;list-style:none;> li{margin-bottom:2rem;&:last-of-type{margin-bottom:0;}}"]);
|
|
15
15
|
const ExerciseRightpaneEnvironment = () => {
|
|
16
|
-
const
|
|
16
|
+
const {
|
|
17
|
+
intl
|
|
18
|
+
} = useRawEliceIntl();
|
|
17
19
|
const {
|
|
18
20
|
materialExerciseId
|
|
19
21
|
} = React.useContext(ExerciseContext);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageEn = {"exerciseRightpane.environment.item.common.value.false":"No","exerciseRightpane.environment.item.common.value.true":"Yes","exerciseRightpane.environment.item.cpuLimit.name":"CPU Limit","exerciseRightpane.environment.item.cpuLimit.value":"3 cores","exerciseRightpane.environment.item.httpPort.name":"HTTP Port","exerciseRightpane.environment.item.httpPort.value.false":"Not enabled","exerciseRightpane.environment.item.httpPort.value.true":"8080","exerciseRightpane.environment.item.isGpu.name":"GPU Enabled","exerciseRightpane.environment.item.isVnc.name":"VNC Enabled","exerciseRightpane.environment.item.memoryLimit.name":"Memory Limit","exerciseRightpane.environment.item.timeLimit.name":"Time Limit","exerciseRightpane.environment.title":"Environment","exerciseRightpane.preference.title":"Editor Preferences"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageEn as default };
|