@elice/material-exercise 1.240401.0 → 1.240508.0-globalization.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/locales/en.json.js +7 -0
- package/cjs/components/locales/index.d.ts +3 -0
- package/cjs/components/locales/ko.json.js +7 -0
- package/cjs/components/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/MaterialExercise.d.ts +3 -1
- package/cjs/components/material-exercise/MaterialExercise.js +11 -14
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.js +7 -15
- package/cjs/components/material-exercise/context/locales/noImage.en.json.js +2 -2
- package/cjs/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
- package/cjs/components/material-exercise/context/locales/noImage.th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +9 -12
- package/cjs/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-code-history/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
- package/cjs/components/material-exercise/exercise-file-editor/locales/en.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/ko.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +17 -4
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +5 -15
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +8 -10
- package/cjs/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tree/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +9 -9
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +13 -13
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +8 -8
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +10 -10
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +7 -7
- package/cjs/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-menu/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +8 -8
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +4 -4
- package/cjs/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-preview/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +14 -15
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +18 -18
- package/cjs/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-rightpane/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.js +9 -9
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +28 -28
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +15 -15
- package/cjs/components/material-exercise/exercise-room/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-room/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +26 -29
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +20 -18
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +10 -10
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +13 -13
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +27 -30
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -6
- package/cjs/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +13 -16
- package/cjs/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-submit-history/locales/th.json.js +7 -0
- package/cjs/components/shared/file-tree/FileTree.d.ts +1 -5
- package/cjs/components/shared/file-tree/FileTree.js +11 -12
- package/cjs/components/shared/file-tree/FileTreeConfig.js +1 -2
- package/cjs/components/shared/file-tree/FileTreeList.js +1 -2
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +8 -8
- package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +24 -24
- package/cjs/components/shared/file-tree/FileTreeToolbar.js +6 -7
- package/cjs/components/shared/file-tree/locales/en.json.js +2 -2
- package/cjs/components/shared/file-tree/locales/index.d.ts +3 -0
- package/cjs/components/shared/file-tree/locales/ko.json.js +2 -2
- package/cjs/components/shared/file-tree/locales/th.json.js +7 -0
- package/cjs/components/shared/file-viewer/FileViewer.d.ts +2 -1
- package/cjs/components/shared/file-viewer/FileViewer.js +8 -16
- package/cjs/components/shared/file-viewer/FileViewerCsv.js +8 -7
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.js +11 -18
- package/cjs/components/shared/file-viewer/locales/index.d.ts +6 -0
- package/cjs/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
- package/cjs/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
- package/cjs/components/shared/file-viewer/locales/nonViewable.th.json.js +7 -0
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +29 -37
- package/cjs/components/shared/monaco-editor/locales/en.json.js +2 -2
- package/cjs/components/shared/monaco-editor/locales/index.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/locales/ko.json.js +2 -2
- package/cjs/components/shared/monaco-editor/locales/th.json.js +7 -0
- package/cjs/components/shared/xterm/Xterm.d.ts +3 -1
- package/cjs/components/shared/xterm/Xterm.js +8 -18
- package/cjs/components/shared/xterm/locales/en.json.js +2 -2
- package/cjs/components/shared/xterm/locales/index.d.ts +3 -0
- package/cjs/components/shared/xterm/locales/ko.json.js +2 -2
- package/cjs/components/shared/xterm/locales/th.json.js +7 -0
- package/es/components/locales/en.json.js +3 -0
- package/es/components/locales/index.d.ts +3 -0
- package/es/components/locales/ko.json.js +3 -0
- package/es/components/locales/th.json.js +3 -0
- package/es/components/material-exercise/MaterialExercise.d.ts +3 -1
- package/es/components/material-exercise/MaterialExercise.js +11 -15
- package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
- package/es/components/material-exercise/context/ExerciseProviderNoImage.js +9 -17
- package/es/components/material-exercise/context/locales/noImage.en.json.js +2 -2
- package/es/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
- package/es/components/material-exercise/context/locales/noImage.th.json.js +3 -0
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +11 -14
- package/es/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-code-history/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
- package/es/components/material-exercise/exercise-file-editor/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +17 -4
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +3 -13
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +10 -12
- package/es/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tree/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +9 -9
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +12 -12
- package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +2 -2
- package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +6 -6
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +6 -6
- package/es/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-menu/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
- package/es/components/material-exercise/exercise-preview/ExercisePreview.js +9 -9
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +14 -15
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
- package/es/components/material-exercise/exercise-room/ExerciseRoom.js +9 -9
- package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +4 -4
- package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +26 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +18 -16
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +2 -2
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +12 -12
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +26 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -6
- package/es/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-runner/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +14 -17
- package/es/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-submit-history/locales/th.json.js +3 -0
- package/es/components/shared/file-tree/FileTree.d.ts +1 -5
- package/es/components/shared/file-tree/FileTree.js +11 -12
- package/es/components/shared/file-tree/FileTreeConfig.js +1 -2
- package/es/components/shared/file-tree/FileTreeList.js +1 -2
- package/es/components/shared/file-tree/FileTreeListItemContentInput.js +2 -2
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +22 -22
- package/es/components/shared/file-tree/FileTreeToolbar.js +3 -4
- package/es/components/shared/file-tree/locales/en.json.js +2 -2
- package/es/components/shared/file-tree/locales/index.d.ts +3 -0
- package/es/components/shared/file-tree/locales/ko.json.js +2 -2
- package/es/components/shared/file-tree/locales/th.json.js +3 -0
- package/es/components/shared/file-viewer/FileViewer.d.ts +2 -1
- package/es/components/shared/file-viewer/FileViewer.js +8 -16
- package/es/components/shared/file-viewer/FileViewerCsv.js +8 -7
- package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
- package/es/components/shared/file-viewer/FileViewerNonViewable.js +13 -20
- package/es/components/shared/file-viewer/locales/index.d.ts +6 -0
- package/es/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
- package/es/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
- package/es/components/shared/file-viewer/locales/nonViewable.th.json.js +3 -0
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +30 -38
- package/es/components/shared/monaco-editor/locales/en.json.js +2 -2
- package/es/components/shared/monaco-editor/locales/index.d.ts +3 -0
- package/es/components/shared/monaco-editor/locales/ko.json.js +2 -2
- package/es/components/shared/monaco-editor/locales/th.json.js +3 -0
- package/es/components/shared/xterm/Xterm.d.ts +3 -1
- package/es/components/shared/xterm/Xterm.js +10 -20
- package/es/components/shared/xterm/locales/en.json.js +2 -2
- package/es/components/shared/xterm/locales/index.d.ts +3 -0
- package/es/components/shared/xterm/locales/ko.json.js +2 -2
- package/es/components/shared/xterm/locales/th.json.js +3 -0
- package/package.json +6 -6
- package/cjs/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
- package/cjs/components/material-exercise/MaterialExercise.i18n.js +0 -13
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.js +0 -44
- package/es/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
- package/es/components/material-exercise/MaterialExercise.i18n.js +0 -10
- package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
- package/es/components/material-exercise/context/ExerciseIntlProvider.js +0 -41
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { WithIntlComponentBuilderProps } from '@elice/intl';
|
|
2
3
|
import type { FileViewerBaseProps } from './FileViewer';
|
|
3
4
|
interface FileViewerNonViewableProps extends FileViewerBaseProps {
|
|
4
5
|
onTextViewerClick?: () => void;
|
|
5
6
|
}
|
|
6
|
-
declare const _default: (
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<FileViewerNonViewableProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
7
8
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
2
|
import { Button, Vspace, Text, Icon } from '@elice/blocks';
|
|
4
3
|
import { eilDownload } from '@elice/icons';
|
|
5
|
-
import {
|
|
4
|
+
import { IntlComponentBuilder } from '@elice/intl';
|
|
6
5
|
import FileSaver from 'file-saver';
|
|
7
6
|
import styled from 'styled-components';
|
|
8
7
|
import FileIcon from '../file-icon/FileIcon.js';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import nonViewableMessageEn from './locales/nonViewable.en.json.js';
|
|
9
|
+
import nonViewableMessageKo from './locales/nonViewable.ko.json.js';
|
|
10
|
+
import nonViewableMessageTh from './locales/nonViewable.th.json.js';
|
|
11
11
|
|
|
12
12
|
const StyledContainer = styled.div.withConfig({
|
|
13
13
|
componentId: "sc-l8149y-0"
|
|
@@ -24,7 +24,8 @@ const StyledButtonsWrap = styled.div.withConfig({
|
|
|
24
24
|
const FileViewerNonViewable = ({
|
|
25
25
|
filename,
|
|
26
26
|
fileurl,
|
|
27
|
-
onTextViewerClick
|
|
27
|
+
onTextViewerClick,
|
|
28
|
+
__intl
|
|
28
29
|
}) => {
|
|
29
30
|
/**
|
|
30
31
|
* Handle download button click.
|
|
@@ -53,8 +54,8 @@ const FileViewerNonViewable = ({
|
|
|
53
54
|
icon: eilDownload
|
|
54
55
|
}),
|
|
55
56
|
onClick: handleDownloadClick
|
|
56
|
-
},
|
|
57
|
-
id:
|
|
57
|
+
}, __intl.formatMessage({
|
|
58
|
+
id: 'fileViewer.nonViewable.downloadButton'
|
|
58
59
|
}));
|
|
59
60
|
};
|
|
60
61
|
/**
|
|
@@ -69,8 +70,8 @@ const FileViewerNonViewable = ({
|
|
|
69
70
|
size: "tiny",
|
|
70
71
|
hoverable: true,
|
|
71
72
|
onClick: onTextViewerClick
|
|
72
|
-
},
|
|
73
|
-
id:
|
|
73
|
+
}, __intl.formatMessage({
|
|
74
|
+
id: 'fileViewer.nonViewable.openViaTextEditor'
|
|
74
75
|
}));
|
|
75
76
|
};
|
|
76
77
|
//
|
|
@@ -91,8 +92,8 @@ const FileViewerNonViewable = ({
|
|
|
91
92
|
size: "tiny",
|
|
92
93
|
lineHeight: 1.5,
|
|
93
94
|
wordBreak: "keep-all"
|
|
94
|
-
},
|
|
95
|
-
id:
|
|
95
|
+
}, __intl.formatMessage({
|
|
96
|
+
id: 'fileViewer.nonViewable.content'
|
|
96
97
|
})), React.createElement(Vspace, {
|
|
97
98
|
height: 2
|
|
98
99
|
}), React.createElement(StyledButtonsWrap, null, renderFileViewerDownloadButton(), renderFileViewerTextEditorLink())));
|
|
@@ -100,14 +101,6 @@ const FileViewerNonViewable = ({
|
|
|
100
101
|
//
|
|
101
102
|
//
|
|
102
103
|
//
|
|
103
|
-
var FileViewerNonViewable$1 = (
|
|
104
|
-
return React.createElement(MaterialIntlProvider, {
|
|
105
|
-
locale: props.locale,
|
|
106
|
-
phrases: {
|
|
107
|
-
en: phrasesEn,
|
|
108
|
-
ko: phrasesKo
|
|
109
|
-
}
|
|
110
|
-
}, React.createElement(FileViewerNonViewable, Object.assign({}, props)));
|
|
111
|
-
});
|
|
104
|
+
var FileViewerNonViewable$1 = new IntlComponentBuilder(FileViewerNonViewable).add('en', nonViewableMessageEn).add('ko', nonViewableMessageKo).add('th', nonViewableMessageTh).build();
|
|
112
105
|
|
|
113
106
|
export { FileViewerNonViewable$1 as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as messageEn } from './en.json';
|
|
2
|
+
export { default as messageKo } from './ko.json';
|
|
3
|
+
export { default as messageTh } from './th.json';
|
|
4
|
+
export { default as nonViewableMessageEn } from './nonViewable.en.json';
|
|
5
|
+
export { default as nonViewableMessageKo } from './nonViewable.ko.json';
|
|
6
|
+
export { default as nonViewableMessageTh } from './nonViewable.th.json';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var nonViewableMessageEn = {"fileViewer.nonViewable.content":"The file is not displayed in the editor because it is either binary or not supported.","fileViewer.nonViewable.downloadButton":"Download File","fileViewer.nonViewable.openViaTextEditor":"Open via Editor"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { nonViewableMessageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var nonViewableMessageKo = {"fileViewer.nonViewable.content":"해당 파일은 바이너리 파일이거나 지원하지 않는 파일이기 때문에 에디터에 표시되지 않습니다.","fileViewer.nonViewable.downloadButton":"파일 다운로드","fileViewer.nonViewable.openViaTextEditor":"텍스트 에디터로 열기"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { nonViewableMessageKo as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var nonViewableMessageTh = {"fileViewer.nonViewable.content":"ไฟล์ดังกล่าวเป็นไฟล์ไบนารีหรือไฟล์ที่ไม่รองรับ จึงไม่สามารถแสดงในเอดิเตอร์ได้ครับ.","fileViewer.nonViewable.downloadButton":"ดาวน์โหลดไฟล์","fileViewer.nonViewable.openViaTextEditor":"เปิดด้วยเดสก์ท็อป"};
|
|
2
|
+
|
|
3
|
+
export { nonViewableMessageTh as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { WithIntlComponentBuilderProps } from '@elice/intl';
|
|
2
3
|
import type { MonacoEditorPreference } from './constants';
|
|
3
4
|
export interface PerferenceFormProps {
|
|
4
5
|
value: Partial<MonacoEditorPreference>;
|
|
5
6
|
locale?: string;
|
|
6
7
|
onChange?: (value: Required<MonacoEditorPreference>) => void;
|
|
7
8
|
}
|
|
8
|
-
declare const _default: (
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<PerferenceFormProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
9
10
|
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl, FormattedMessage } from 'react-intl';
|
|
3
2
|
import { useDeepCompareEffect } from 'react-use';
|
|
4
3
|
import { Select, Text, Vspace, AntSwitch } from '@elice/blocks';
|
|
5
4
|
import { base } from '@elice/design-tokens';
|
|
6
|
-
import {
|
|
5
|
+
import { IntlComponentBuilder } from '@elice/intl';
|
|
7
6
|
import styled from 'styled-components';
|
|
8
7
|
import { VSCODE_THEMES } from './constants/themes/index.js';
|
|
9
|
-
import phrasesEn from './locales/en.json.js';
|
|
10
|
-
import phrasesKo from './locales/ko.json.js';
|
|
11
8
|
import { MONACO_EDITOR_PREFERENCE_OPTIONS_FONT_SIZES, MONACO_EDITOR_RENDER_WHITESPACE_OPTIONS, MONACO_EDITOR_PREFERENCE_OPTIONS_TAB_SIZES } from './constants/monaco/preferences.js';
|
|
9
|
+
import messageEn from './locales/en.json.js';
|
|
10
|
+
import messageKo from './locales/ko.json.js';
|
|
11
|
+
import messageTh from './locales/th.json.js';
|
|
12
12
|
import 'monaco-editor/esm/vs/editor/editor.api';
|
|
13
13
|
import { normalizeMonacoPreference } from './utils/monacoPreference.js';
|
|
14
14
|
|
|
@@ -20,9 +20,9 @@ const StyledSelect = styled(Select).withConfig({
|
|
|
20
20
|
})(["> div{background:", " !important;border-color:", " !important;}select{padding:0 !important;height:2rem !important;color:#fff !important;> option{background:", " !important;}}"], base.color.navy8, base.color.navy7, base.color.navy8);
|
|
21
21
|
const MonacoEditorPerferenceForm = ({
|
|
22
22
|
value,
|
|
23
|
-
onChange
|
|
23
|
+
onChange,
|
|
24
|
+
__intl
|
|
24
25
|
}) => {
|
|
25
|
-
const intl = useIntl();
|
|
26
26
|
const [preference, setPreference] = React.useState(normalizeMonacoPreference(value));
|
|
27
27
|
/**
|
|
28
28
|
* Update preference from form.
|
|
@@ -50,8 +50,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
50
50
|
role: "navy",
|
|
51
51
|
size: "tiny",
|
|
52
52
|
block: true
|
|
53
|
-
},
|
|
54
|
-
id:
|
|
53
|
+
}, __intl.formatMessage({
|
|
54
|
+
id: 'monacoEditorPerferenceForm.displaying.item.theme.name'
|
|
55
55
|
})), React.createElement(StyledSelect, {
|
|
56
56
|
value: preference.theme,
|
|
57
57
|
size: "small",
|
|
@@ -77,8 +77,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
77
77
|
role: "navy",
|
|
78
78
|
size: "tiny",
|
|
79
79
|
block: true
|
|
80
|
-
},
|
|
81
|
-
id:
|
|
80
|
+
}, __intl.formatMessage({
|
|
81
|
+
id: 'monacoEditorPerferenceForm.displaying.item.fontSize.name'
|
|
82
82
|
})), React.createElement(StyledSelect, {
|
|
83
83
|
value: preference.fontSize,
|
|
84
84
|
size: "small",
|
|
@@ -101,8 +101,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
101
101
|
role: "navy",
|
|
102
102
|
size: "tiny",
|
|
103
103
|
block: true
|
|
104
|
-
},
|
|
105
|
-
id:
|
|
104
|
+
}, __intl.formatMessage({
|
|
105
|
+
id: 'monacoEditorPerferenceForm.displaying.item.wordWrap.name'
|
|
106
106
|
})), React.createElement(AntSwitch, {
|
|
107
107
|
checked: preference.wordWrap === 'on',
|
|
108
108
|
onChange: value => {
|
|
@@ -120,8 +120,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
120
120
|
role: "navy",
|
|
121
121
|
size: "tiny",
|
|
122
122
|
block: true
|
|
123
|
-
},
|
|
124
|
-
id:
|
|
123
|
+
}, __intl.formatMessage({
|
|
124
|
+
id: 'monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name'
|
|
125
125
|
})), React.createElement(StyledSelect, {
|
|
126
126
|
value: preference.renderWhitespace,
|
|
127
127
|
size: "small",
|
|
@@ -134,7 +134,7 @@ const MonacoEditorPerferenceForm = ({
|
|
|
134
134
|
}, MONACO_EDITOR_RENDER_WHITESPACE_OPTIONS.map(option => React.createElement("option", {
|
|
135
135
|
key: option,
|
|
136
136
|
value: option
|
|
137
|
-
},
|
|
137
|
+
}, __intl.formatMessage({
|
|
138
138
|
id: `monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.${option}`
|
|
139
139
|
})))));
|
|
140
140
|
};
|
|
@@ -147,8 +147,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
147
147
|
role: "navy",
|
|
148
148
|
size: "tiny",
|
|
149
149
|
block: true
|
|
150
|
-
},
|
|
151
|
-
id:
|
|
150
|
+
}, __intl.formatMessage({
|
|
151
|
+
id: 'monacoEditorPerferenceForm.displaying.item.minimap.name'
|
|
152
152
|
})), React.createElement(AntSwitch, {
|
|
153
153
|
checked: (_a = preference.minimap) === null || _a === void 0 ? void 0 : _a.enabled,
|
|
154
154
|
onChange: value => {
|
|
@@ -168,8 +168,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
168
168
|
role: "navy",
|
|
169
169
|
size: "tiny",
|
|
170
170
|
block: true
|
|
171
|
-
},
|
|
172
|
-
id:
|
|
171
|
+
}, __intl.formatMessage({
|
|
172
|
+
id: 'monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name'
|
|
173
173
|
})), React.createElement(AntSwitch, {
|
|
174
174
|
checked: preference.cursorSmoothCaretAnimation,
|
|
175
175
|
onChange: value => {
|
|
@@ -187,8 +187,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
187
187
|
role: "navy",
|
|
188
188
|
size: "tiny",
|
|
189
189
|
block: true
|
|
190
|
-
},
|
|
191
|
-
id:
|
|
190
|
+
}, __intl.formatMessage({
|
|
191
|
+
id: 'monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name'
|
|
192
192
|
})), React.createElement(AntSwitch, {
|
|
193
193
|
checked: preference.autoClosingBrackets === 'always',
|
|
194
194
|
onChange: value => {
|
|
@@ -206,8 +206,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
206
206
|
role: "navy",
|
|
207
207
|
size: "tiny",
|
|
208
208
|
block: true
|
|
209
|
-
},
|
|
210
|
-
id:
|
|
209
|
+
}, __intl.formatMessage({
|
|
210
|
+
id: 'monacoEditorPerferenceForm.textEditing.item.detectIndentation.name'
|
|
211
211
|
})), React.createElement(AntSwitch, {
|
|
212
212
|
checked: preference.detectIndentation,
|
|
213
213
|
onChange: value => {
|
|
@@ -225,8 +225,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
225
225
|
role: preference.detectIndentation ? 'grey6' : 'info',
|
|
226
226
|
block: true,
|
|
227
227
|
size: "small"
|
|
228
|
-
},
|
|
229
|
-
id:
|
|
228
|
+
}, __intl.formatMessage({
|
|
229
|
+
id: 'monacoEditorPerferenceForm.textEditing.item.tabSize.name'
|
|
230
230
|
})), React.createElement(StyledSelect, {
|
|
231
231
|
value: preference.tabSize,
|
|
232
232
|
size: "small",
|
|
@@ -249,8 +249,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
249
249
|
role: "lightgrey",
|
|
250
250
|
size: "small",
|
|
251
251
|
bold: true
|
|
252
|
-
},
|
|
253
|
-
id:
|
|
252
|
+
}, __intl.formatMessage({
|
|
253
|
+
id: 'monacoEditorPerferenceForm.displaying.title'
|
|
254
254
|
})), React.createElement(Vspace, {
|
|
255
255
|
height: 1
|
|
256
256
|
}), renderPreferenceItemTheme(), renderPreferenceItemFontSize(), renderPreferenceItemWordWrap(), renderPreferenceItemWhiteSpace(), renderPreferenceItemMinimap(), renderPreferenceItemCursorSmoothCaretAnimation(), React.createElement(Vspace, {
|
|
@@ -259,8 +259,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
259
259
|
role: "lightgrey",
|
|
260
260
|
size: "small",
|
|
261
261
|
bold: true
|
|
262
|
-
},
|
|
263
|
-
id:
|
|
262
|
+
}, __intl.formatMessage({
|
|
263
|
+
id: 'monacoEditorPerferenceForm.textEditing.title'
|
|
264
264
|
})), React.createElement(Vspace, {
|
|
265
265
|
height: 1
|
|
266
266
|
}), renderPreferenceItemAutoClosingBrackets(), renderPreferenceItemDetectIndentation(), renderPreferenceItemTabSize());
|
|
@@ -268,14 +268,6 @@ const MonacoEditorPerferenceForm = ({
|
|
|
268
268
|
//
|
|
269
269
|
//
|
|
270
270
|
//
|
|
271
|
-
var MonacoEditorPerference = (
|
|
272
|
-
return React.createElement(MaterialIntlProvider, {
|
|
273
|
-
locale: props.locale,
|
|
274
|
-
phrases: {
|
|
275
|
-
en: phrasesEn,
|
|
276
|
-
ko: phrasesKo
|
|
277
|
-
}
|
|
278
|
-
}, React.createElement(MonacoEditorPerferenceForm, Object.assign({}, props)));
|
|
279
|
-
});
|
|
271
|
+
var MonacoEditorPerference = new IntlComponentBuilder(MonacoEditorPerferenceForm).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
280
272
|
|
|
281
273
|
export { MonacoEditorPerference as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageEn = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"Cursor Smooth Caret Animation","monacoEditorPerferenceForm.displaying.item.fontSize.name":"Font Size","monacoEditorPerferenceForm.displaying.item.minimap.name":"Minimap","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"Render Whitespace","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"All","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"Boundary","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"None","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"Selection","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"Trailing","monacoEditorPerferenceForm.displaying.item.theme.name":"Color Theme","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"Word Wrap","monacoEditorPerferenceForm.displaying.title":"Displaying","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"Auto Closing Brackets","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"Detect Indentation","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"Tab Size","monacoEditorPerferenceForm.textEditing.title":"Text Editing"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageKo = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"커서 이동 애니메이션","monacoEditorPerferenceForm.displaying.item.fontSize.name":"글자 크기","monacoEditorPerferenceForm.displaying.item.minimap.name":"에디터 미니맵","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"조판 부호 보이기","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"언제나","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"글자 사이 제외","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"보이지 않음","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"선택 시에만","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"글자 뒤에만","monacoEditorPerferenceForm.displaying.item.theme.name":"에디터 테마","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"줄 바꿈","monacoEditorPerferenceForm.displaying.title":"화면 표시","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"자동 괄호 닫기","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"탭 크기 자동 인식","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"탭 크기","monacoEditorPerferenceForm.textEditing.title":"텍스트 편집"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageKo as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var messageTh = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"การเคลื่อนย้ายเคอร์เซอร์แอนิเมชัน","monacoEditorPerferenceForm.displaying.item.fontSize.name":"ขนาดตัวอักษร","monacoEditorPerferenceForm.displaying.item.minimap.name":"เอดิ터 มินิแมพ","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"แสดงเครื่องหมายการจัดพิมพ์","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"เสมอ","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"ข้อความที่ระบุ","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"ไม่มองเห็น","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"เฉพาะเมื่อเลือก","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"หลังคำ","monacoEditorPerferenceForm.displaying.item.theme.name":"ธีมเอ็ดิเตอร์","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"การเปลี่ยนบรรทัด","monacoEditorPerferenceForm.displaying.title":"การแสดงบนหน้าจอ","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"ปิดวงเล็บอัตโนมัติ","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"การตรวจจับขนาดแท็บโดยอัตโนมัติ","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"ขนาดแท็บ","monacoEditorPerferenceForm.textEditing.title":"แก้ไขข้อความ"};
|
|
2
|
+
|
|
3
|
+
export { messageTh as default };
|
|
@@ -28,5 +28,7 @@ export interface XtermProps {
|
|
|
28
28
|
/** Send TTY resize. */
|
|
29
29
|
onTtyResizeRequest: (ttySize: TtySize) => void;
|
|
30
30
|
}
|
|
31
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
31
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<XtermProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
32
|
+
__intl: import("@elice/intl").EliceIntlShape;
|
|
33
|
+
} & React.RefAttributes<XtermApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<XtermApis>>;
|
|
32
34
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
2
|
import { useMeasure, useDebounce } from 'react-use';
|
|
4
3
|
import { base } from '@elice/design-tokens';
|
|
5
|
-
import {
|
|
4
|
+
import { IntlComponentBuilder } from '@elice/intl';
|
|
6
5
|
import styled from 'styled-components';
|
|
7
6
|
import { Terminal } from 'xterm';
|
|
8
7
|
import { FitAddon } from 'xterm-addon-fit';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import messageEn from './locales/en.json.js';
|
|
9
|
+
import messageKo from './locales/ko.json.js';
|
|
10
|
+
import messageTh from './locales/th.json.js';
|
|
11
11
|
import { patchXtermComposedPath } from './utils/index.js';
|
|
12
12
|
import 'xterm/css/xterm.css';
|
|
13
13
|
|
|
@@ -20,9 +20,9 @@ const Xterm = forwardRef(({
|
|
|
20
20
|
fontSize,
|
|
21
21
|
suppressSystemMessage = false,
|
|
22
22
|
onInputRequest,
|
|
23
|
-
onTtyResizeRequest
|
|
23
|
+
onTtyResizeRequest,
|
|
24
|
+
__intl
|
|
24
25
|
}, ref) => {
|
|
25
|
-
const intl = useIntl();
|
|
26
26
|
const xterm = React.useRef(null);
|
|
27
27
|
const xtermFitAddon = React.useRef(null);
|
|
28
28
|
const [xtermWrapperElRef, {
|
|
@@ -151,7 +151,7 @@ const Xterm = forwardRef(({
|
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
if (isRunning) {
|
|
154
|
-
writeSystem(
|
|
154
|
+
writeSystem(__intl.formatMessage({
|
|
155
155
|
id: 'xterm.systemMessage.running'
|
|
156
156
|
}));
|
|
157
157
|
blur();
|
|
@@ -159,14 +159,14 @@ const Xterm = forwardRef(({
|
|
|
159
159
|
//
|
|
160
160
|
else {
|
|
161
161
|
if (isRunBefore) {
|
|
162
|
-
writeSystem(
|
|
162
|
+
writeSystem(__intl.formatMessage({
|
|
163
163
|
id: 'xterm.systemMessage.runAfter'
|
|
164
164
|
}));
|
|
165
165
|
blur();
|
|
166
166
|
}
|
|
167
167
|
//
|
|
168
168
|
else {
|
|
169
|
-
writeSystem(
|
|
169
|
+
writeSystem(__intl.formatMessage({
|
|
170
170
|
id: 'xterm.systemMessage.runBefore'
|
|
171
171
|
}));
|
|
172
172
|
blur();
|
|
@@ -208,16 +208,6 @@ const Xterm = forwardRef(({
|
|
|
208
208
|
//
|
|
209
209
|
//
|
|
210
210
|
//
|
|
211
|
-
var Xterm$1 =
|
|
212
|
-
return React.createElement(MaterialIntlProvider, {
|
|
213
|
-
locale: props.locale,
|
|
214
|
-
phrases: {
|
|
215
|
-
en: phrasesEn,
|
|
216
|
-
ko: phrasesKo
|
|
217
|
-
}
|
|
218
|
-
}, React.createElement(Xterm, Object.assign({}, props, {
|
|
219
|
-
ref: ref
|
|
220
|
-
})));
|
|
221
|
-
});
|
|
211
|
+
var Xterm$1 = new IntlComponentBuilder(Xterm).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
222
212
|
|
|
223
213
|
export { Xterm$1 as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageEn = {"xterm.systemMessage.runAfter":"\n/* Code running is complete! */","xterm.systemMessage.runBefore":"/* Code has not run yet. */","xterm.systemMessage.running":"/* Code is running... */"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageEn as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var messageKo = {"xterm.systemMessage.runAfter":"\n/* 코드 실행이 완료되었습니다! */","xterm.systemMessage.runBefore":"/* 코드가 아직 실행되지 않았습니다. */","xterm.systemMessage.running":"/* 코드가 실행되는 중입니다... */"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { messageKo as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-exercise",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.240508.0-globalization.1",
|
|
4
4
|
"description": "User view and editing components of Elice material exercise",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@elice/blocks": "^1",
|
|
30
30
|
"@elice/design-tokens": "^1",
|
|
31
31
|
"@elice/icons": "^1",
|
|
32
|
+
"@elice/intl": "*",
|
|
32
33
|
"@elice/markdown": "^1",
|
|
33
34
|
"@elice/material-shared-types": "*",
|
|
34
35
|
"@elice/material-shared-utils": "*",
|
|
@@ -46,7 +47,6 @@
|
|
|
46
47
|
"humps": "^2.0.1",
|
|
47
48
|
"lodash": "^4.17.21",
|
|
48
49
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
49
|
-
"react-intl": "^5.0.0",
|
|
50
50
|
"react-use": "^17.0.0",
|
|
51
51
|
"recoil": "^0.6.1",
|
|
52
52
|
"styled-components": "^5.2.0"
|
|
@@ -83,9 +83,10 @@
|
|
|
83
83
|
"@elice/blocks": "^1.230816.0",
|
|
84
84
|
"@elice/design-tokens": "^1.220803.0",
|
|
85
85
|
"@elice/icons": "^1.230814.0",
|
|
86
|
+
"@elice/intl": "0.240425.0-alpha.9",
|
|
86
87
|
"@elice/markdown": "^1.220815.0",
|
|
87
|
-
"@elice/material-shared-types": "1.
|
|
88
|
-
"@elice/material-shared-utils": "1.
|
|
88
|
+
"@elice/material-shared-types": "1.240508.0-globalization.1",
|
|
89
|
+
"@elice/material-shared-utils": "1.240508.0-globalization.1",
|
|
89
90
|
"@elice/mui-elements": "^5.230825.0",
|
|
90
91
|
"@elice/mui-system": "^5.230825.0",
|
|
91
92
|
"@elice/types": "^1.240208.0",
|
|
@@ -111,10 +112,9 @@
|
|
|
111
112
|
"humps": "^2.0.1",
|
|
112
113
|
"lodash": "^4.17.21",
|
|
113
114
|
"react": "^17.0.2",
|
|
114
|
-
"react-intl": "^5.0.0",
|
|
115
115
|
"react-use": "^17.0.0",
|
|
116
116
|
"recoil": "^0.6.1",
|
|
117
117
|
"styled-components": "^5.2.0"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
|
|
120
120
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const en = {
|
|
4
|
-
'materialExercise.button.referenceDocs': 'Reference Docs',
|
|
5
|
-
'materialExercise.text.readOnlyBanner': '[Read-Only] This file is read-only.'
|
|
6
|
-
};
|
|
7
|
-
const ko = {
|
|
8
|
-
'materialExercise.button.referenceDocs': '언어 레퍼런스',
|
|
9
|
-
'materialExercise.text.readOnlyBanner': '[읽기전용] 이 파일은 읽기전용 입니다.'
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.en = en;
|
|
13
|
-
exports.ko = ko;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MaterialIntlProviderPhrases } from '@elice/material-shared-utils';
|
|
3
|
-
type AnyObject = Record<string, any>;
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare const withExerciseIntlProvider: <P extends AnyObject>(Component: React.VFC<P>, phrases: MaterialIntlProviderPhrases) => React.VFC<P>;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export declare const withForwardRefExerciseIntlProvider: <T, P extends AnyObject>(Component: React.ForwardRefExoticComponent<P & React.RefAttributes<T>>, phrases: MaterialIntlProviderPhrases) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
12
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var materialSharedUtils = require('@elice/material-shared-utils');
|
|
5
|
-
var context = require('./context.js');
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
const withExerciseIntlProvider = (Component, phrases) => {
|
|
14
|
-
return props => {
|
|
15
|
-
const {
|
|
16
|
-
locale
|
|
17
|
-
} = React.useContext(context.ExerciseContext);
|
|
18
|
-
return React.createElement(materialSharedUtils.MaterialIntlProvider, {
|
|
19
|
-
children: React.createElement(Component, Object.assign({}, props)),
|
|
20
|
-
locale: locale,
|
|
21
|
-
phrases: phrases
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
const withForwardRefExerciseIntlProvider = (Component, phrases) => {
|
|
29
|
-
return React.forwardRef((props, ref) => {
|
|
30
|
-
const {
|
|
31
|
-
locale
|
|
32
|
-
} = React.useContext(context.ExerciseContext);
|
|
33
|
-
return React.createElement(materialSharedUtils.MaterialIntlProvider, {
|
|
34
|
-
children: React.createElement(Component, Object.assign({}, props, {
|
|
35
|
-
ref: ref
|
|
36
|
-
})),
|
|
37
|
-
locale: locale,
|
|
38
|
-
phrases: phrases
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
exports.withExerciseIntlProvider = withExerciseIntlProvider;
|
|
44
|
-
exports.withForwardRefExerciseIntlProvider = withForwardRefExerciseIntlProvider;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
'materialExercise.button.referenceDocs': 'Reference Docs',
|
|
3
|
-
'materialExercise.text.readOnlyBanner': '[Read-Only] This file is read-only.'
|
|
4
|
-
};
|
|
5
|
-
const ko = {
|
|
6
|
-
'materialExercise.button.referenceDocs': '언어 레퍼런스',
|
|
7
|
-
'materialExercise.text.readOnlyBanner': '[읽기전용] 이 파일은 읽기전용 입니다.'
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { en, ko };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MaterialIntlProviderPhrases } from '@elice/material-shared-utils';
|
|
3
|
-
type AnyObject = Record<string, any>;
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare const withExerciseIntlProvider: <P extends AnyObject>(Component: React.VFC<P>, phrases: MaterialIntlProviderPhrases) => React.VFC<P>;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export declare const withForwardRefExerciseIntlProvider: <T, P extends AnyObject>(Component: React.ForwardRefExoticComponent<P & React.RefAttributes<T>>, phrases: MaterialIntlProviderPhrases) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
12
|
-
export {};
|