@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageTh = {"fileTree.list.item.content.input.validation.error.filename.dot":"ชื่อไฟล์ไม่สามารถใช้ \".\" หรือ \"..\" ได้ครับ.","fileTree.list.item.content.input.validation.error.filename.dotElice":"ชื่อไฟล์ไม่สามารถใช้ \".elice\" ได้ค่ะ.","fileTree.list.item.content.input.validation.error.filename.duplicated":"มีชื่อไฟล์นี้อยู่แล้วค่ะ.","fileTree.list.item.content.input.validation.error.filename.slash":"ชื่อไฟล์ไม่สามารถมีเครื่องหมายสแลชหรือสแลชย้อนได้","fileTree.list.item.content.input.validation.error.maxLength":"ชื่อไฟล์คือ {maxLength}ไม่สามารถเกินไปได้.","fileTree.list.item.content.input.validation.error.required":"โปรดป้อนชื่อไฟล์.","fileTree.list.item.content.menu.deleteConfirmDialog.body":"\"{title}\"คุณต้องการลบไฟล์หรือไม่?\"","fileTree.list.item.content.menu.deleteConfirmDialog.cancel":"ยกเลิก","fileTree.list.item.content.menu.deleteConfirmDialog.confirm":"ตรวจสอบ","fileTree.list.item.content.menu.deleteConfirmDialog.title":"ลบไฟล์","fileTree.list.item.content.menu.item.delete":"ลบ","fileTree.list.item.content.menu.item.hiddenSet":"ซ่อนไฟล์","fileTree.list.item.content.menu.item.hiddenUnset":"แสดงไฟล์","fileTree.list.item.content.menu.item.newDirectory":"โฟลเดอร์ใหม่","fileTree.list.item.content.menu.item.newFile":"ไฟล์ใหม่","fileTree.list.item.content.menu.item.readOnlySet":"โหมดอ่านอย่างเดียว","fileTree.list.item.content.menu.item.readOnlyUnset":"ปลดล็อกอ่านเท่านั้น","fileTree.list.item.content.menu.item.rename":"เปลี่ยนชื่อ","fileTree.toolbar.newDirectory":"เพิ่มโฟลเดอร์ใหม่","fileTree.toolbar.newFile":"เพิ่มไฟล์ใหม่","fileTree.toolbar.upload":"อัปโหลดไฟล์"};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { WithIntlComponentBuilderProps } from '@elice/intl';
|
|
2
3
|
export interface FileViewerBaseProps {
|
|
3
4
|
filename: string;
|
|
4
5
|
fileurl?: null | string;
|
|
5
6
|
locale?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const _default: (
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<FileViewerBaseProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
8
9
|
export default _default;
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var designTokens = require('@elice/design-tokens');
|
|
9
8
|
var icons = require('@elice/icons');
|
|
10
|
-
var
|
|
9
|
+
var intl = require('@elice/intl');
|
|
11
10
|
var FileSaver = require('file-saver');
|
|
12
11
|
var mime = require('mime');
|
|
13
12
|
var styled = require('styled-components');
|
|
@@ -33,7 +32,8 @@ const StyledReadonlyBanner = styled.div.withConfig({
|
|
|
33
32
|
const FileViewer = ({
|
|
34
33
|
filename,
|
|
35
34
|
fileurl,
|
|
36
|
-
locale
|
|
35
|
+
locale,
|
|
36
|
+
__intl
|
|
37
37
|
}) => {
|
|
38
38
|
const [showInTextViewer, setShowInTextViewer] = React.useState(false);
|
|
39
39
|
/**
|
|
@@ -91,8 +91,8 @@ const FileViewer = ({
|
|
|
91
91
|
if (!fileurl) {
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
94
|
-
return React.createElement(StyledReadonlyBanner, null,
|
|
95
|
-
id:
|
|
94
|
+
return React.createElement(StyledReadonlyBanner, null, __intl.formatMessage({
|
|
95
|
+
id: 'fileViewer.readOnlyBanner.content'
|
|
96
96
|
}), React.createElement(blocks.Hspace, {
|
|
97
97
|
width: 0.25
|
|
98
98
|
}), React.createElement("a", {
|
|
@@ -101,8 +101,8 @@ const FileViewer = ({
|
|
|
101
101
|
}, React.createElement(blocks.Icon, {
|
|
102
102
|
icon: icons.eilDownload,
|
|
103
103
|
size: "tiny"
|
|
104
|
-
}),
|
|
105
|
-
id:
|
|
104
|
+
}), __intl.formatMessage({
|
|
105
|
+
id: 'fileViewer.readOnlyBanner.downloadButton'
|
|
106
106
|
})));
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
@@ -142,14 +142,6 @@ const FileViewer = ({
|
|
|
142
142
|
//
|
|
143
143
|
//
|
|
144
144
|
//
|
|
145
|
-
var FileViewer$1 = (
|
|
146
|
-
return React.createElement(materialSharedUtils.MaterialIntlProvider, {
|
|
147
|
-
locale: props.locale,
|
|
148
|
-
phrases: {
|
|
149
|
-
en: en.default,
|
|
150
|
-
ko: ko.default
|
|
151
|
-
}
|
|
152
|
-
}, React.createElement(FileViewer, Object.assign({}, props)));
|
|
153
|
-
});
|
|
145
|
+
var FileViewer$1 = new intl.IntlComponentBuilder(FileViewer).add('en', en.default).add('ko', ko.default).add('th', en.default).build();
|
|
154
146
|
|
|
155
147
|
exports.default = FileViewer$1;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var designTokens = require('@elice/design-tokens');
|
|
9
8
|
var icons = require('@elice/icons');
|
|
9
|
+
var intl = require('@elice/intl');
|
|
10
10
|
var styled = require('styled-components');
|
|
11
11
|
var ExerciseFileShimmer = require('../exercise-shimmer/ExerciseFileShimmer.js');
|
|
12
12
|
require('../exercise-shimmer/ExerciseFileTabsShimmer.js');
|
|
@@ -61,6 +61,7 @@ const StyledViewerFooterHr = styled(blocks.Hr).withConfig({
|
|
|
61
61
|
const FileViewerCsv = ({
|
|
62
62
|
fileurl
|
|
63
63
|
}) => {
|
|
64
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
64
65
|
const [csv, setCsv] = React.useState('');
|
|
65
66
|
const [csvHeader, setCsvHeader] = React.useState(null);
|
|
66
67
|
const [csvRecords, setCsvRecords] = React.useState([]);
|
|
@@ -215,8 +216,8 @@ const FileViewerCsv = ({
|
|
|
215
216
|
}, React.createElement(blocks.Text, {
|
|
216
217
|
role: "gray1",
|
|
217
218
|
size: "small"
|
|
218
|
-
},
|
|
219
|
-
id:
|
|
219
|
+
}, intl$1.formatMessage({
|
|
220
|
+
id: '헤더 사용'
|
|
220
221
|
})), React.createElement(blocks.Hspace, {
|
|
221
222
|
width: 0.5
|
|
222
223
|
}), React.createElement(blocks.AntSwitch, {
|
|
@@ -231,8 +232,8 @@ const FileViewerCsv = ({
|
|
|
231
232
|
}, React.createElement(blocks.Text, {
|
|
232
233
|
role: "gray1",
|
|
233
234
|
size: "small"
|
|
234
|
-
},
|
|
235
|
-
id:
|
|
235
|
+
}, intl$1.formatMessage({
|
|
236
|
+
id: '구분자:'
|
|
236
237
|
})), React.createElement(blocks.Hspace, {
|
|
237
238
|
width: 0.5
|
|
238
239
|
}), React.createElement(StyledViewerFooterSelect, {
|
|
@@ -252,8 +253,8 @@ const FileViewerCsv = ({
|
|
|
252
253
|
}, React.createElement(blocks.Text, {
|
|
253
254
|
role: "gray1",
|
|
254
255
|
size: "small"
|
|
255
|
-
},
|
|
256
|
-
id:
|
|
256
|
+
}, intl$1.formatMessage({
|
|
257
|
+
id: '페이지당 행:'
|
|
257
258
|
})), React.createElement(blocks.Hspace, {
|
|
258
259
|
width: 0.5
|
|
259
260
|
}), React.createElement(StyledViewerFooterSelect, {
|
|
@@ -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;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var icons = require('@elice/icons');
|
|
9
|
-
var
|
|
8
|
+
var intl = require('@elice/intl');
|
|
10
9
|
var FileSaver = require('file-saver');
|
|
11
10
|
var styled = require('styled-components');
|
|
12
11
|
var FileIcon = require('../file-icon/FileIcon.js');
|
|
13
12
|
var nonViewable_en = require('./locales/nonViewable.en.json.js');
|
|
14
13
|
var nonViewable_ko = require('./locales/nonViewable.ko.json.js');
|
|
14
|
+
var nonViewable_th = require('./locales/nonViewable.th.json.js');
|
|
15
15
|
|
|
16
16
|
const StyledContainer = styled.div.withConfig({
|
|
17
17
|
componentId: "sc-l8149y-0"
|
|
@@ -28,7 +28,8 @@ const StyledButtonsWrap = styled.div.withConfig({
|
|
|
28
28
|
const FileViewerNonViewable = ({
|
|
29
29
|
filename,
|
|
30
30
|
fileurl,
|
|
31
|
-
onTextViewerClick
|
|
31
|
+
onTextViewerClick,
|
|
32
|
+
__intl
|
|
32
33
|
}) => {
|
|
33
34
|
/**
|
|
34
35
|
* Handle download button click.
|
|
@@ -57,8 +58,8 @@ const FileViewerNonViewable = ({
|
|
|
57
58
|
icon: icons.eilDownload
|
|
58
59
|
}),
|
|
59
60
|
onClick: handleDownloadClick
|
|
60
|
-
},
|
|
61
|
-
id:
|
|
61
|
+
}, __intl.formatMessage({
|
|
62
|
+
id: 'fileViewer.nonViewable.downloadButton'
|
|
62
63
|
}));
|
|
63
64
|
};
|
|
64
65
|
/**
|
|
@@ -73,8 +74,8 @@ const FileViewerNonViewable = ({
|
|
|
73
74
|
size: "tiny",
|
|
74
75
|
hoverable: true,
|
|
75
76
|
onClick: onTextViewerClick
|
|
76
|
-
},
|
|
77
|
-
id:
|
|
77
|
+
}, __intl.formatMessage({
|
|
78
|
+
id: 'fileViewer.nonViewable.openViaTextEditor'
|
|
78
79
|
}));
|
|
79
80
|
};
|
|
80
81
|
//
|
|
@@ -95,8 +96,8 @@ const FileViewerNonViewable = ({
|
|
|
95
96
|
size: "tiny",
|
|
96
97
|
lineHeight: 1.5,
|
|
97
98
|
wordBreak: "keep-all"
|
|
98
|
-
},
|
|
99
|
-
id:
|
|
99
|
+
}, __intl.formatMessage({
|
|
100
|
+
id: 'fileViewer.nonViewable.content'
|
|
100
101
|
})), React.createElement(blocks.Vspace, {
|
|
101
102
|
height: 2
|
|
102
103
|
}), React.createElement(StyledButtonsWrap, null, renderFileViewerDownloadButton(), renderFileViewerTextEditorLink())));
|
|
@@ -104,14 +105,6 @@ const FileViewerNonViewable = ({
|
|
|
104
105
|
//
|
|
105
106
|
//
|
|
106
107
|
//
|
|
107
|
-
var FileViewerNonViewable$1 = (
|
|
108
|
-
return React.createElement(materialSharedUtils.MaterialIntlProvider, {
|
|
109
|
-
locale: props.locale,
|
|
110
|
-
phrases: {
|
|
111
|
-
en: nonViewable_en.default,
|
|
112
|
-
ko: nonViewable_ko.default
|
|
113
|
-
}
|
|
114
|
-
}, React.createElement(FileViewerNonViewable, Object.assign({}, props)));
|
|
115
|
-
});
|
|
108
|
+
var FileViewerNonViewable$1 = new intl.IntlComponentBuilder(FileViewerNonViewable).add('en', nonViewable_en.default).add('ko', nonViewable_ko.default).add('th', nonViewable_th.default).build();
|
|
116
109
|
|
|
117
110
|
exports.default = FileViewerNonViewable$1;
|
|
@@ -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';
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
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"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = nonViewableMessageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var nonViewableMessageKo = {"fileViewer.nonViewable.content":"해당 파일은 바이너리 파일이거나 지원하지 않는 파일이기 때문에 에디터에 표시되지 않습니다.","fileViewer.nonViewable.downloadButton":"파일 다운로드","fileViewer.nonViewable.openViaTextEditor":"텍스트 에디터로 열기"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = nonViewableMessageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var nonViewableMessageTh = {"fileViewer.nonViewable.content":"ไฟล์ดังกล่าวเป็นไฟล์ไบนารีหรือไฟล์ที่ไม่รองรับ จึงไม่สามารถแสดงในเอดิเตอร์ได้ครับ.","fileViewer.nonViewable.downloadButton":"ดาวน์โหลดไฟล์","fileViewer.nonViewable.openViaTextEditor":"เปิดด้วยเดสก์ท็อป"};
|
|
6
|
+
|
|
7
|
+
exports.default = nonViewableMessageTh;
|
|
@@ -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;
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var reactUse = require('react-use');
|
|
8
7
|
var blocks = require('@elice/blocks');
|
|
9
8
|
var designTokens = require('@elice/design-tokens');
|
|
10
|
-
var
|
|
9
|
+
var intl = require('@elice/intl');
|
|
11
10
|
var styled = require('styled-components');
|
|
12
11
|
var index = require('./constants/themes/index.js');
|
|
12
|
+
var preferences = require('./constants/monaco/preferences.js');
|
|
13
13
|
var en = require('./locales/en.json.js');
|
|
14
14
|
var ko = require('./locales/ko.json.js');
|
|
15
|
-
var
|
|
15
|
+
var th = require('./locales/th.json.js');
|
|
16
16
|
require('monaco-editor/esm/vs/editor/editor.api');
|
|
17
17
|
var monacoPreference = require('./utils/monacoPreference.js');
|
|
18
18
|
|
|
@@ -24,9 +24,9 @@ const StyledSelect = styled(blocks.Select).withConfig({
|
|
|
24
24
|
})(["> div{background:", " !important;border-color:", " !important;}select{padding:0 !important;height:2rem !important;color:#fff !important;> option{background:", " !important;}}"], designTokens.base.color.navy8, designTokens.base.color.navy7, designTokens.base.color.navy8);
|
|
25
25
|
const MonacoEditorPerferenceForm = ({
|
|
26
26
|
value,
|
|
27
|
-
onChange
|
|
27
|
+
onChange,
|
|
28
|
+
__intl
|
|
28
29
|
}) => {
|
|
29
|
-
const intl = reactIntl.useIntl();
|
|
30
30
|
const [preference, setPreference] = React.useState(monacoPreference.normalizeMonacoPreference(value));
|
|
31
31
|
/**
|
|
32
32
|
* Update preference from form.
|
|
@@ -54,8 +54,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
54
54
|
role: "navy",
|
|
55
55
|
size: "tiny",
|
|
56
56
|
block: true
|
|
57
|
-
},
|
|
58
|
-
id:
|
|
57
|
+
}, __intl.formatMessage({
|
|
58
|
+
id: 'monacoEditorPerferenceForm.displaying.item.theme.name'
|
|
59
59
|
})), React.createElement(StyledSelect, {
|
|
60
60
|
value: preference.theme,
|
|
61
61
|
size: "small",
|
|
@@ -81,8 +81,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
81
81
|
role: "navy",
|
|
82
82
|
size: "tiny",
|
|
83
83
|
block: true
|
|
84
|
-
},
|
|
85
|
-
id:
|
|
84
|
+
}, __intl.formatMessage({
|
|
85
|
+
id: 'monacoEditorPerferenceForm.displaying.item.fontSize.name'
|
|
86
86
|
})), React.createElement(StyledSelect, {
|
|
87
87
|
value: preference.fontSize,
|
|
88
88
|
size: "small",
|
|
@@ -105,8 +105,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
105
105
|
role: "navy",
|
|
106
106
|
size: "tiny",
|
|
107
107
|
block: true
|
|
108
|
-
},
|
|
109
|
-
id:
|
|
108
|
+
}, __intl.formatMessage({
|
|
109
|
+
id: 'monacoEditorPerferenceForm.displaying.item.wordWrap.name'
|
|
110
110
|
})), React.createElement(blocks.AntSwitch, {
|
|
111
111
|
checked: preference.wordWrap === 'on',
|
|
112
112
|
onChange: value => {
|
|
@@ -124,8 +124,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
124
124
|
role: "navy",
|
|
125
125
|
size: "tiny",
|
|
126
126
|
block: true
|
|
127
|
-
},
|
|
128
|
-
id:
|
|
127
|
+
}, __intl.formatMessage({
|
|
128
|
+
id: 'monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name'
|
|
129
129
|
})), React.createElement(StyledSelect, {
|
|
130
130
|
value: preference.renderWhitespace,
|
|
131
131
|
size: "small",
|
|
@@ -138,7 +138,7 @@ const MonacoEditorPerferenceForm = ({
|
|
|
138
138
|
}, preferences.MONACO_EDITOR_RENDER_WHITESPACE_OPTIONS.map(option => React.createElement("option", {
|
|
139
139
|
key: option,
|
|
140
140
|
value: option
|
|
141
|
-
},
|
|
141
|
+
}, __intl.formatMessage({
|
|
142
142
|
id: `monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.${option}`
|
|
143
143
|
})))));
|
|
144
144
|
};
|
|
@@ -151,8 +151,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
151
151
|
role: "navy",
|
|
152
152
|
size: "tiny",
|
|
153
153
|
block: true
|
|
154
|
-
},
|
|
155
|
-
id:
|
|
154
|
+
}, __intl.formatMessage({
|
|
155
|
+
id: 'monacoEditorPerferenceForm.displaying.item.minimap.name'
|
|
156
156
|
})), React.createElement(blocks.AntSwitch, {
|
|
157
157
|
checked: (_a = preference.minimap) === null || _a === void 0 ? void 0 : _a.enabled,
|
|
158
158
|
onChange: value => {
|
|
@@ -172,8 +172,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
172
172
|
role: "navy",
|
|
173
173
|
size: "tiny",
|
|
174
174
|
block: true
|
|
175
|
-
},
|
|
176
|
-
id:
|
|
175
|
+
}, __intl.formatMessage({
|
|
176
|
+
id: 'monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name'
|
|
177
177
|
})), React.createElement(blocks.AntSwitch, {
|
|
178
178
|
checked: preference.cursorSmoothCaretAnimation,
|
|
179
179
|
onChange: value => {
|
|
@@ -191,8 +191,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
191
191
|
role: "navy",
|
|
192
192
|
size: "tiny",
|
|
193
193
|
block: true
|
|
194
|
-
},
|
|
195
|
-
id:
|
|
194
|
+
}, __intl.formatMessage({
|
|
195
|
+
id: 'monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name'
|
|
196
196
|
})), React.createElement(blocks.AntSwitch, {
|
|
197
197
|
checked: preference.autoClosingBrackets === 'always',
|
|
198
198
|
onChange: value => {
|
|
@@ -210,8 +210,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
210
210
|
role: "navy",
|
|
211
211
|
size: "tiny",
|
|
212
212
|
block: true
|
|
213
|
-
},
|
|
214
|
-
id:
|
|
213
|
+
}, __intl.formatMessage({
|
|
214
|
+
id: 'monacoEditorPerferenceForm.textEditing.item.detectIndentation.name'
|
|
215
215
|
})), React.createElement(blocks.AntSwitch, {
|
|
216
216
|
checked: preference.detectIndentation,
|
|
217
217
|
onChange: value => {
|
|
@@ -229,8 +229,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
229
229
|
role: preference.detectIndentation ? 'grey6' : 'info',
|
|
230
230
|
block: true,
|
|
231
231
|
size: "small"
|
|
232
|
-
},
|
|
233
|
-
id:
|
|
232
|
+
}, __intl.formatMessage({
|
|
233
|
+
id: 'monacoEditorPerferenceForm.textEditing.item.tabSize.name'
|
|
234
234
|
})), React.createElement(StyledSelect, {
|
|
235
235
|
value: preference.tabSize,
|
|
236
236
|
size: "small",
|
|
@@ -253,8 +253,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
253
253
|
role: "lightgrey",
|
|
254
254
|
size: "small",
|
|
255
255
|
bold: true
|
|
256
|
-
},
|
|
257
|
-
id:
|
|
256
|
+
}, __intl.formatMessage({
|
|
257
|
+
id: 'monacoEditorPerferenceForm.displaying.title'
|
|
258
258
|
})), React.createElement(blocks.Vspace, {
|
|
259
259
|
height: 1
|
|
260
260
|
}), renderPreferenceItemTheme(), renderPreferenceItemFontSize(), renderPreferenceItemWordWrap(), renderPreferenceItemWhiteSpace(), renderPreferenceItemMinimap(), renderPreferenceItemCursorSmoothCaretAnimation(), React.createElement(blocks.Vspace, {
|
|
@@ -263,8 +263,8 @@ const MonacoEditorPerferenceForm = ({
|
|
|
263
263
|
role: "lightgrey",
|
|
264
264
|
size: "small",
|
|
265
265
|
bold: true
|
|
266
|
-
},
|
|
267
|
-
id:
|
|
266
|
+
}, __intl.formatMessage({
|
|
267
|
+
id: 'monacoEditorPerferenceForm.textEditing.title'
|
|
268
268
|
})), React.createElement(blocks.Vspace, {
|
|
269
269
|
height: 1
|
|
270
270
|
}), renderPreferenceItemAutoClosingBrackets(), renderPreferenceItemDetectIndentation(), renderPreferenceItemTabSize());
|
|
@@ -272,14 +272,6 @@ const MonacoEditorPerferenceForm = ({
|
|
|
272
272
|
//
|
|
273
273
|
//
|
|
274
274
|
//
|
|
275
|
-
var MonacoEditorPerference = (
|
|
276
|
-
return React.createElement(materialSharedUtils.MaterialIntlProvider, {
|
|
277
|
-
locale: props.locale,
|
|
278
|
-
phrases: {
|
|
279
|
-
en: en.default,
|
|
280
|
-
ko: ko.default
|
|
281
|
-
}
|
|
282
|
-
}, React.createElement(MonacoEditorPerferenceForm, Object.assign({}, props)));
|
|
283
|
-
});
|
|
275
|
+
var MonacoEditorPerference = new intl.IntlComponentBuilder(MonacoEditorPerferenceForm).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
284
276
|
|
|
285
277
|
exports.default = MonacoEditorPerference;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
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"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageKo = {"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":"텍스트 편집"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageTh = {"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":"แก้ไขข้อความ"};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|
|
@@ -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;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var reactUse = require('react-use');
|
|
8
7
|
var designTokens = require('@elice/design-tokens');
|
|
9
|
-
var
|
|
8
|
+
var intl = require('@elice/intl');
|
|
10
9
|
var styled = require('styled-components');
|
|
11
10
|
var xterm = require('xterm');
|
|
12
11
|
var xtermAddonFit = require('xterm-addon-fit');
|
|
13
12
|
var en = require('./locales/en.json.js');
|
|
14
13
|
var ko = require('./locales/ko.json.js');
|
|
14
|
+
var th = require('./locales/th.json.js');
|
|
15
15
|
var index = require('./utils/index.js');
|
|
16
16
|
require('xterm/css/xterm.css');
|
|
17
17
|
|
|
@@ -24,9 +24,9 @@ const Xterm = React.forwardRef(({
|
|
|
24
24
|
fontSize,
|
|
25
25
|
suppressSystemMessage = false,
|
|
26
26
|
onInputRequest,
|
|
27
|
-
onTtyResizeRequest
|
|
27
|
+
onTtyResizeRequest,
|
|
28
|
+
__intl
|
|
28
29
|
}, ref) => {
|
|
29
|
-
const intl = reactIntl.useIntl();
|
|
30
30
|
const xterm$1 = React.useRef(null);
|
|
31
31
|
const xtermFitAddon = React.useRef(null);
|
|
32
32
|
const [xtermWrapperElRef, {
|
|
@@ -155,7 +155,7 @@ const Xterm = React.forwardRef(({
|
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
if (isRunning) {
|
|
158
|
-
writeSystem(
|
|
158
|
+
writeSystem(__intl.formatMessage({
|
|
159
159
|
id: 'xterm.systemMessage.running'
|
|
160
160
|
}));
|
|
161
161
|
blur();
|
|
@@ -163,14 +163,14 @@ const Xterm = React.forwardRef(({
|
|
|
163
163
|
//
|
|
164
164
|
else {
|
|
165
165
|
if (isRunBefore) {
|
|
166
|
-
writeSystem(
|
|
166
|
+
writeSystem(__intl.formatMessage({
|
|
167
167
|
id: 'xterm.systemMessage.runAfter'
|
|
168
168
|
}));
|
|
169
169
|
blur();
|
|
170
170
|
}
|
|
171
171
|
//
|
|
172
172
|
else {
|
|
173
|
-
writeSystem(
|
|
173
|
+
writeSystem(__intl.formatMessage({
|
|
174
174
|
id: 'xterm.systemMessage.runBefore'
|
|
175
175
|
}));
|
|
176
176
|
blur();
|
|
@@ -212,16 +212,6 @@ const Xterm = React.forwardRef(({
|
|
|
212
212
|
//
|
|
213
213
|
//
|
|
214
214
|
//
|
|
215
|
-
var Xterm$1 =
|
|
216
|
-
return React.createElement(materialSharedUtils.MaterialIntlProvider, {
|
|
217
|
-
locale: props.locale,
|
|
218
|
-
phrases: {
|
|
219
|
-
en: en.default,
|
|
220
|
-
ko: ko.default
|
|
221
|
-
}
|
|
222
|
-
}, React.createElement(Xterm, Object.assign({}, props, {
|
|
223
|
-
ref: ref
|
|
224
|
-
})));
|
|
225
|
-
});
|
|
215
|
+
var Xterm$1 = new intl.IntlComponentBuilder(Xterm).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
226
216
|
|
|
227
217
|
exports.default = Xterm$1;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageEn = {"xterm.systemMessage.runAfter":"\n/* Code running is complete! */","xterm.systemMessage.runBefore":"/* Code has not run yet. */","xterm.systemMessage.running":"/* Code is running... */"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageKo = {"xterm.systemMessage.runAfter":"\n/* 코드 실행이 완료되었습니다! */","xterm.systemMessage.runBefore":"/* 코드가 아직 실행되지 않았습니다. */","xterm.systemMessage.running":"/* 코드가 실행되는 중입니다... */"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageTh = {"xterm.systemMessage.runAfter":"/* การดำเนินการของโค้ดเสร็จสมบูรณ์แล้ว! */","xterm.systemMessage.runBefore":"/* โค้ดยังไม่ได้รัน */","xterm.systemMessage.running":"/* โค้ดกำลังถูกดำเนินการ... */"};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|