@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 = {"materialExerciseExerciseRoom.create":"ห้องปฏิบัติการใหม่","materialExerciseExerciseRoom.create.failure":"มีปัญหาเกิดขึ้นในการสร้างห้องปฏิบัติการใหม่ ค่ะ.","materialExerciseExerciseRoom.create.success":"ห้องปฏิบัติการใหม่ถูกสร้างขึ้นแล้วครับ.","materialExerciseExerciseRoom.defaultExerciseRoomDescription":"ห้องปฏิบัติการนั้นถูกตั้งค่าให้เปิดโดยค่าเริ่มต้นแล้วค่ะ.","materialExerciseExerciseRoom.description":"ติวเตอร์, สร้างห้องปฏิบัติการกับเพื่อนๆ เพื่อสร้างสภาพแวดล้อมในการฝึกฝนของคุณเองสิ ","materialExerciseExerciseRoom.detail.addUsers.label":"สมาชิกเชิญชวน","materialExerciseExerciseRoom.detail.addUsers.placeholder":"ค้นหาชื่อผู้ใช้ที่ต้องการเชิญลงชื่อที่นี่.","materialExerciseExerciseRoom.detail.copy":"คัดลอก","materialExerciseExerciseRoom.detail.copy.success":"ลิงก์ที่แชร์ถูกคัดลอกแล้วครับ.","materialExerciseExerciseRoom.detail.footer.button.open.description":"ห้องปฏิบัติการนั้นถูกตั้งค่าให้เปิดโดยค่าเริ่มต้นแล้วค่ะ.","materialExerciseExerciseRoom.detail.footer.description":"ห้องปฏิบัติการนั้นถูกตั้งค่าให้เปิดโดยค่าเริ่มต้นแล้วค่ะ.","materialExerciseExerciseRoom.detail.sharelink.label":"ลิงก์แชร์","materialExerciseExerciseRoom.detail.table.body.add":"เชิญ","materialExerciseExerciseRoom.detail.table.head.permission":"สิทธิ์","materialExerciseExerciseRoom.detail.table.head.users":"สมาชิก","materialExerciseExerciseRoom.detail.title.label":"หัวข้อ","materialExerciseExerciseRoom.detail.title.placeholder":"โปรดใส่หัวข้อ","materialExerciseExerciseRoom.exerciseRoom.name":"ชื่อห้องปฏิบัติการ","materialExerciseExerciseRoom.exerciseRoom.defaultName":"ไม่มีหัวเรื่อง ({date})","materialExerciseExerciseRoom.exerciseRoom.participants":"สมาชิก","materialExerciseExerciseRoom.exerciseRoom.publicPermission":"สิทธิของฉัน","materialExerciseExerciseRoom.exerciseRoom.publicPermission.nothing":"ไม่มีสิทธิ์","materialExerciseExerciseRoom.exerciseRoom.publicPermission.owner":"ผู้สร้าง","materialExerciseExerciseRoom.exerciseRoom.publicPermission.read":"โหมดอ่านอย่างเดียว","materialExerciseExerciseRoom.exerciseRoom.publicPermission.readWrite":"แก้ไข","materialExerciseExerciseRoom.exit":"ปิด","materialExerciseExerciseRoom.leave":"ออกจากห้องปฏิบัติการ","materialExerciseExerciseRoom.leave.dialog.body":"เขียนโค้ดทั้งหมดที่คุณเขียนจะหายไป คุณแน่ใจว่าต้องการออกจากห้องปฏิบัติการนี้หรือไม่?","materialExerciseExerciseRoom.leave.dialog.title":"ออกจากห้องปฏิบัติการ","materialExerciseExerciseRoom.open":"เปิดห้องปฏิบัติการ","materialExerciseExerciseRoom.selected":"(ห้องปฏิบัติการที่เปิดอยู่)","materialExerciseExerciseRoom.setDefaultExerciseRoom":"ตั้งค่าเป็นห้องฝึกฝนหลัก","materialExerciseExerciseRoom.title":"ห้องปฏิบัติการ"};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type WithIntlComponentBuilderProps } from '@elice/intl';
|
|
2
3
|
export interface ExerciseRunnerProps {
|
|
3
4
|
exercisePreview?: React.ReactNode;
|
|
4
5
|
}
|
|
5
|
-
declare const _default: React.
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<ExerciseRunnerProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
6
7
|
export default _default;
|
|
@@ -3,11 +3,11 @@
|
|
|
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 apiClient = require('@elice/api-client');
|
|
9
8
|
var blocks = require('@elice/blocks');
|
|
10
9
|
var designTokens = require('@elice/design-tokens');
|
|
10
|
+
var intl = require('@elice/intl');
|
|
11
11
|
var types = require('@elice/types');
|
|
12
12
|
var recoil = require('recoil');
|
|
13
13
|
var styled = require('styled-components');
|
|
@@ -30,11 +30,11 @@ require('lodash/debounce');
|
|
|
30
30
|
require('random-words');
|
|
31
31
|
require('unicount');
|
|
32
32
|
var useStdioTextConcator = require('../../../hooks/useStdioTextConcator.js');
|
|
33
|
-
var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
|
|
34
|
-
var en = require('./locales/en.json.js');
|
|
35
|
-
var ko = require('./locales/ko.json.js');
|
|
36
33
|
var ExerciseRunnerContext = require('./ExerciseRunnerContext.js');
|
|
37
34
|
var ExerciseRunnerController = require('./ExerciseRunnerController.js');
|
|
35
|
+
var en = require('./locales/en.json.js');
|
|
36
|
+
var ko = require('./locales/ko.json.js');
|
|
37
|
+
var th = require('./locales/th.json.js');
|
|
38
38
|
|
|
39
39
|
const EXERCISE_RUNNER_HORIZONTAL_RATIO = {
|
|
40
40
|
PREVIEW: 0.3,
|
|
@@ -47,10 +47,10 @@ const StyledExerciseRunner = styled.div.withConfig({
|
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
49
|
const ExerciseRunner = ({
|
|
50
|
-
exercisePreview
|
|
50
|
+
exercisePreview,
|
|
51
|
+
__intl
|
|
51
52
|
}) => {
|
|
52
53
|
var _a, _b, _c;
|
|
53
|
-
const intl = reactIntl.useIntl();
|
|
54
54
|
const {
|
|
55
55
|
onCodeHelpRequest
|
|
56
56
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -182,10 +182,10 @@ const ExerciseRunner = ({
|
|
|
182
182
|
case 'insufficient_permission':
|
|
183
183
|
setRunnerSubmitErrorDialog({
|
|
184
184
|
code: err.detail.failCode,
|
|
185
|
-
message:
|
|
185
|
+
message: __intl.formatMessage({
|
|
186
186
|
id: 'exerciseRunner.submitErrorDialog.body.commonError'
|
|
187
187
|
}),
|
|
188
|
-
action:
|
|
188
|
+
action: __intl.formatMessage({
|
|
189
189
|
id: 'exerciseRunner.submitErrorDialog.action.reload'
|
|
190
190
|
}),
|
|
191
191
|
onAction: () => window.location.reload()
|
|
@@ -194,10 +194,10 @@ const ExerciseRunner = ({
|
|
|
194
194
|
case 'invalid_room_token':
|
|
195
195
|
setRunnerSubmitErrorDialog({
|
|
196
196
|
code: err.detail.failCode,
|
|
197
|
-
message:
|
|
197
|
+
message: __intl.formatMessage({
|
|
198
198
|
id: 'exerciseRunner.submitErrorDialog.body.networkError'
|
|
199
199
|
}),
|
|
200
|
-
action:
|
|
200
|
+
action: __intl.formatMessage({
|
|
201
201
|
id: 'exerciseRunner.submitErrorDialog.action.reload'
|
|
202
202
|
}),
|
|
203
203
|
onAction: () => window.location.reload()
|
|
@@ -206,10 +206,10 @@ const ExerciseRunner = ({
|
|
|
206
206
|
case 'not_for_submit_grade':
|
|
207
207
|
setRunnerSubmitErrorDialog({
|
|
208
208
|
code: err.detail.failCode,
|
|
209
|
-
message:
|
|
209
|
+
message: __intl.formatMessage({
|
|
210
210
|
id: 'exerciseRunner.submitErrorDialog.body.notForSubmitGrade'
|
|
211
211
|
}),
|
|
212
|
-
action:
|
|
212
|
+
action: __intl.formatMessage({
|
|
213
213
|
id: 'exerciseRunner.submitErrorDialog.action.confirm'
|
|
214
214
|
})
|
|
215
215
|
});
|
|
@@ -217,10 +217,10 @@ const ExerciseRunner = ({
|
|
|
217
217
|
case 'expired_exercise_image':
|
|
218
218
|
setRunnerSubmitErrorDialog({
|
|
219
219
|
code: err.detail.failCode,
|
|
220
|
-
message:
|
|
220
|
+
message: __intl.formatMessage({
|
|
221
221
|
id: 'exerciseRunner.submitErrorDialog.body.expiredExerciseImage'
|
|
222
222
|
}),
|
|
223
|
-
action:
|
|
223
|
+
action: __intl.formatMessage({
|
|
224
224
|
id: 'exerciseRunner.submitErrorDialog.action.reload'
|
|
225
225
|
}),
|
|
226
226
|
onAction: () => window.location.reload()
|
|
@@ -230,10 +230,10 @@ const ExerciseRunner = ({
|
|
|
230
230
|
case 'try_again':
|
|
231
231
|
setRunnerSubmitErrorDialog({
|
|
232
232
|
code: err.detail.failCode,
|
|
233
|
-
message:
|
|
233
|
+
message: __intl.formatMessage({
|
|
234
234
|
id: 'exerciseRunner.submitErrorDialog.body.notPreparedRoom'
|
|
235
235
|
}),
|
|
236
|
-
action:
|
|
236
|
+
action: __intl.formatMessage({
|
|
237
237
|
id: 'exerciseRunner.submitErrorDialog.action.confirm'
|
|
238
238
|
})
|
|
239
239
|
});
|
|
@@ -241,10 +241,10 @@ const ExerciseRunner = ({
|
|
|
241
241
|
case 'room_is_busy':
|
|
242
242
|
setRunnerSubmitErrorDialog({
|
|
243
243
|
code: err.detail.failCode,
|
|
244
|
-
message:
|
|
244
|
+
message: __intl.formatMessage({
|
|
245
245
|
id: 'exerciseRunner.submitErrorDialog.body.roomIsBusy'
|
|
246
246
|
}),
|
|
247
|
-
action:
|
|
247
|
+
action: __intl.formatMessage({
|
|
248
248
|
id: 'exerciseRunner.submitErrorDialog.action.confirm'
|
|
249
249
|
})
|
|
250
250
|
});
|
|
@@ -252,10 +252,10 @@ const ExerciseRunner = ({
|
|
|
252
252
|
case 'exceed_submit_grade_limit':
|
|
253
253
|
setRunnerSubmitErrorDialog({
|
|
254
254
|
code: err.detail.failCode,
|
|
255
|
-
message:
|
|
255
|
+
message: __intl.formatMessage({
|
|
256
256
|
id: 'exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit'
|
|
257
257
|
}),
|
|
258
|
-
action:
|
|
258
|
+
action: __intl.formatMessage({
|
|
259
259
|
id: 'exerciseRunner.submitErrorDialog.action.confirm'
|
|
260
260
|
})
|
|
261
261
|
});
|
|
@@ -263,10 +263,10 @@ const ExerciseRunner = ({
|
|
|
263
263
|
default:
|
|
264
264
|
setRunnerSubmitErrorDialog({
|
|
265
265
|
code: ((_b = err === null || err === void 0 ? void 0 : err.detail) === null || _b === void 0 ? void 0 : _b.failCode) || 'unknown',
|
|
266
|
-
message:
|
|
266
|
+
message: __intl.formatMessage({
|
|
267
267
|
id: 'exerciseRunner.submitErrorDialog.body.unknown'
|
|
268
268
|
}),
|
|
269
|
-
action:
|
|
269
|
+
action: __intl.formatMessage({
|
|
270
270
|
id: 'exerciseRunner.submitErrorDialog.action.confirm'
|
|
271
271
|
})
|
|
272
272
|
});
|
|
@@ -484,7 +484,7 @@ const ExerciseRunner = ({
|
|
|
484
484
|
}
|
|
485
485
|
return React.createElement(blocks.Dialog, {
|
|
486
486
|
type: "error",
|
|
487
|
-
title:
|
|
487
|
+
title: __intl.formatMessage({
|
|
488
488
|
id: 'exerciseRunner.submitErrorDialog.title'
|
|
489
489
|
}),
|
|
490
490
|
body: `${runnerSubmitErrorDialog.message}\n(error code: ${runnerSubmitErrorDialog.code})`,
|
|
@@ -502,7 +502,7 @@ const ExerciseRunner = ({
|
|
|
502
502
|
//
|
|
503
503
|
//
|
|
504
504
|
//
|
|
505
|
-
return React.createElement(StyledExerciseRunner, null, React.createElement(ExerciseRunnerContext.ExerciseRunnerContext.Provider, {
|
|
505
|
+
return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(StyledExerciseRunner, null, React.createElement(ExerciseRunnerContext.ExerciseRunnerContext.Provider, {
|
|
506
506
|
value: {
|
|
507
507
|
onSubmit: handleRunnerSubmit,
|
|
508
508
|
onCancel: handleRunnerCancel,
|
|
@@ -514,11 +514,8 @@ const ExerciseRunner = ({
|
|
|
514
514
|
minHeight: 0
|
|
515
515
|
},
|
|
516
516
|
overflow: "hidden"
|
|
517
|
-
}, renderPreview(), renderXterm(), renderRunnerSubmitErrorDialog())));
|
|
517
|
+
}, renderPreview(), renderXterm(), renderRunnerSubmitErrorDialog()))));
|
|
518
518
|
};
|
|
519
|
-
var ExerciseRunner$1 =
|
|
520
|
-
en: en.default,
|
|
521
|
-
ko: ko.default
|
|
522
|
-
});
|
|
519
|
+
var ExerciseRunner$1 = new intl.IntlComponentBuilder(ExerciseRunner).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
523
520
|
|
|
524
521
|
exports.default = ExerciseRunner$1;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var icons = require('@elice/icons');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var FileSaver = require('file-saver');
|
|
10
10
|
var recoil = require('recoil');
|
|
11
11
|
var recoil$1 = require('../context/recoil.js');
|
|
@@ -20,7 +20,7 @@ const ARDUINO_AGENT_MAC_DOWNLOAD_URL = 'https://eli.so/arduino-agent-mac';
|
|
|
20
20
|
const ARDUINO_AGENT_WIN_DOWNLOAD_URL = 'https://eli.so/arduino-agent-win';
|
|
21
21
|
const ARDUINO_AGENT_MANUAL_URL = 'https://eli.so/arduino-faq';
|
|
22
22
|
const ExerciseRunnerControllerArduinoAgentModal = () => {
|
|
23
|
-
const intl =
|
|
23
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
24
24
|
const [open, setOpen] = recoil.useRecoilState(recoil$1.exerciseArduinoAgentModalState);
|
|
25
25
|
React.useEffect(() => {
|
|
26
26
|
const isConfirmed = localStorage.getItem(ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_KEY) === ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_VALUE;
|
|
@@ -39,15 +39,15 @@ const ExerciseRunnerControllerArduinoAgentModal = () => {
|
|
|
39
39
|
return React.createElement(React.Fragment, null, React.createElement(blocks.Text, {
|
|
40
40
|
bold: true,
|
|
41
41
|
role: "gray0"
|
|
42
|
-
},
|
|
43
|
-
id:
|
|
42
|
+
}, intl$1.formatMessage({
|
|
43
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.install'
|
|
44
44
|
})), React.createElement(blocks.Vspace, {
|
|
45
45
|
height: 0.25
|
|
46
46
|
}), React.createElement(blocks.Text, {
|
|
47
47
|
role: "navy",
|
|
48
48
|
size: "small"
|
|
49
|
-
},
|
|
50
|
-
id:
|
|
49
|
+
}, intl$1.formatMessage({
|
|
50
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.install.detail'
|
|
51
51
|
})), React.createElement(blocks.Vspace, {
|
|
52
52
|
height: 0.75
|
|
53
53
|
}), React.createElement(blocks.Flex, null, React.createElement(blocks.Button, {
|
|
@@ -59,8 +59,8 @@ const ExerciseRunnerControllerArduinoAgentModal = () => {
|
|
|
59
59
|
}),
|
|
60
60
|
iconAlign: "left",
|
|
61
61
|
onClick: () => handleDownload(ARDUINO_AGENT_WIN_DOWNLOAD_URL)
|
|
62
|
-
},
|
|
63
|
-
id:
|
|
62
|
+
}, intl$1.formatMessage({
|
|
63
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.install.window'
|
|
64
64
|
})), React.createElement(blocks.Hspace, {
|
|
65
65
|
width: 0.75
|
|
66
66
|
}), React.createElement(blocks.Button, {
|
|
@@ -71,24 +71,26 @@ const ExerciseRunnerControllerArduinoAgentModal = () => {
|
|
|
71
71
|
}),
|
|
72
72
|
iconAlign: "left",
|
|
73
73
|
onClick: () => handleDownload(ARDUINO_AGENT_MAC_DOWNLOAD_URL)
|
|
74
|
-
},
|
|
75
|
-
id:
|
|
74
|
+
}, intl$1.formatMessage({
|
|
75
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.install.mac'
|
|
76
76
|
}))));
|
|
77
77
|
};
|
|
78
78
|
const renderAgentConnectionInstruction = () => {
|
|
79
79
|
return React.createElement(React.Fragment, null, React.createElement(blocks.Text, {
|
|
80
80
|
role: "gray0",
|
|
81
81
|
bold: true
|
|
82
|
-
},
|
|
83
|
-
id:
|
|
82
|
+
}, intl$1.formatMessage({
|
|
83
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.connect'
|
|
84
|
+
}), intl$1.formatMessage({
|
|
85
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.connect'
|
|
84
86
|
})), React.createElement(blocks.Vspace, {
|
|
85
87
|
height: 0.25
|
|
86
88
|
}), React.createElement(blocks.Text, {
|
|
87
89
|
role: "navy",
|
|
88
90
|
size: "small",
|
|
89
91
|
lineHeight: 1.6
|
|
90
|
-
},
|
|
91
|
-
id:
|
|
92
|
+
}, intl$1.formatMessage({
|
|
93
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.connect.detail'
|
|
92
94
|
})), React.createElement(blocks.Vspace, {
|
|
93
95
|
height: 0.75
|
|
94
96
|
}), React.createElement(blocks.Button, {
|
|
@@ -99,8 +101,8 @@ const ExerciseRunnerControllerArduinoAgentModal = () => {
|
|
|
99
101
|
size: "tiny",
|
|
100
102
|
role: "secondary",
|
|
101
103
|
onClick: () => window.open(ARDUINO_AGENT_MANUAL_URL)
|
|
102
|
-
},
|
|
103
|
-
id:
|
|
104
|
+
}, intl$1.formatMessage({
|
|
105
|
+
id: 'exerciseRunner.controller.arduino.agent.instruction.connect.button'
|
|
104
106
|
})));
|
|
105
107
|
};
|
|
106
108
|
if (!open) {
|
|
@@ -108,11 +110,11 @@ const ExerciseRunnerControllerArduinoAgentModal = () => {
|
|
|
108
110
|
}
|
|
109
111
|
return React.createElement(blocks.Modal, {
|
|
110
112
|
theme: "dark",
|
|
111
|
-
title: intl.formatMessage({
|
|
113
|
+
title: intl$1.formatMessage({
|
|
112
114
|
id: 'exerciseRunner.controller.arduino.agent.title'
|
|
113
115
|
}),
|
|
114
116
|
footerButtons: [{
|
|
115
|
-
label: intl.formatMessage({
|
|
117
|
+
label: intl$1.formatMessage({
|
|
116
118
|
id: 'exerciseRunner.controller.arduino.agent.instruction.close'
|
|
117
119
|
}),
|
|
118
120
|
onClick: handleClose
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
7
|
+
var intl = require('@elice/intl');
|
|
8
8
|
var recoil = require('recoil');
|
|
9
9
|
var styled = require('styled-components');
|
|
10
10
|
var arduino = require('../../../utils/arduino.js');
|
|
@@ -19,7 +19,7 @@ const StyledMessageWrapper = styled(blocks.Flex).withConfig({
|
|
|
19
19
|
componentId: "sc-19z7lun-0"
|
|
20
20
|
})(["height:1rem;"]);
|
|
21
21
|
const ExerciseRunnerControllerArduinoStatusMessage = () => {
|
|
22
|
-
const intl =
|
|
22
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
23
23
|
const ports = recoil.useRecoilValue(recoil$1.exerciseArduinoPortsState);
|
|
24
24
|
const [message, setMessage] = React.useState('');
|
|
25
25
|
const [status, setStatus] = React.useState('error');
|
|
@@ -29,21 +29,21 @@ const ExerciseRunnerControllerArduinoStatusMessage = () => {
|
|
|
29
29
|
React.useEffect(() => {
|
|
30
30
|
if (arduinoAgentConnectionStatus === 'disconnected') {
|
|
31
31
|
setStatus('error');
|
|
32
|
-
setMessage(intl.formatMessage({
|
|
32
|
+
setMessage(intl$1.formatMessage({
|
|
33
33
|
id: 'exerciseRunner.controller.arduino.connectionStatus.disconnected'
|
|
34
34
|
}));
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
if (arduinoAgentConnectionStatus === 'connecting') {
|
|
38
38
|
setStatus('warning');
|
|
39
|
-
setMessage(intl.formatMessage({
|
|
39
|
+
setMessage(intl$1.formatMessage({
|
|
40
40
|
id: 'exerciseRunner.controller.arduino.connectionStatus.connecting'
|
|
41
41
|
}));
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
if (arduinoAgentConnectionStatus === 'reconnecting') {
|
|
45
45
|
setStatus('warning');
|
|
46
|
-
setMessage(intl.formatMessage({
|
|
46
|
+
setMessage(intl$1.formatMessage({
|
|
47
47
|
id: 'exerciseRunner.controller.arduino.connectionStatus.reconnecting'
|
|
48
48
|
}));
|
|
49
49
|
return;
|
|
@@ -51,7 +51,7 @@ const ExerciseRunnerControllerArduinoStatusMessage = () => {
|
|
|
51
51
|
// Arduino agent is connected.
|
|
52
52
|
if (arduinoOpenedPort === '' && arduinoUploadProgress === 'ready') {
|
|
53
53
|
setStatus('error');
|
|
54
|
-
setMessage(intl.formatMessage({
|
|
54
|
+
setMessage(intl$1.formatMessage({
|
|
55
55
|
id: 'exerciseRunner.controller.arduino.connectionStatus.noDevice'
|
|
56
56
|
}));
|
|
57
57
|
return;
|
|
@@ -61,7 +61,7 @@ const ExerciseRunnerControllerArduinoStatusMessage = () => {
|
|
|
61
61
|
case 'receivedHex':
|
|
62
62
|
case 'starting':
|
|
63
63
|
case 'busy':
|
|
64
|
-
setMessage(intl.formatMessage({
|
|
64
|
+
setMessage(intl$1.formatMessage({
|
|
65
65
|
id: 'exerciseRunner.controller.arduino.connectionStatus.uploading'
|
|
66
66
|
}));
|
|
67
67
|
return;
|
|
@@ -71,19 +71,19 @@ const ExerciseRunnerControllerArduinoStatusMessage = () => {
|
|
|
71
71
|
default:
|
|
72
72
|
const device = arduino.getPortFromName(ports, arduinoOpenedPort);
|
|
73
73
|
if (device) {
|
|
74
|
-
setMessage(intl.formatMessage({
|
|
74
|
+
setMessage(intl$1.formatMessage({
|
|
75
75
|
id: 'exerciseRunner.controller.arduino.connectionStatus.connectedDevice'
|
|
76
76
|
}, {
|
|
77
77
|
device: arduino.getDisplayName(device)
|
|
78
78
|
}));
|
|
79
79
|
} else {
|
|
80
|
-
setMessage(intl.formatMessage({
|
|
80
|
+
setMessage(intl$1.formatMessage({
|
|
81
81
|
id: 'exerciseRunner.controller.arduino.connectionStatus.connected'
|
|
82
82
|
}));
|
|
83
83
|
}
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
}, [intl, arduinoOpenedPort, arduinoUploadProgress, arduinoAgentConnectionStatus, ports]);
|
|
86
|
+
}, [intl$1, arduinoOpenedPort, arduinoUploadProgress, arduinoAgentConnectionStatus, ports]);
|
|
87
87
|
//
|
|
88
88
|
//
|
|
89
89
|
//
|
package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
7
|
+
var intl = require('@elice/intl');
|
|
8
8
|
var types = require('@elice/types');
|
|
9
9
|
var websocket = require('@elice/websocket');
|
|
10
10
|
var recoil = require('recoil');
|
|
@@ -39,7 +39,7 @@ const StyledControllerButtonGroup = styled.div.withConfig({
|
|
|
39
39
|
})(["display:flex;flex-direction:row;align-items:center;> ", ",> ", "{margin-right:0.5rem;&:last-child{margin-right:0;}}"], StyledControllerButtonWrap, StyledControllerButton);
|
|
40
40
|
const ExerciseRunnerControllerButtonGroup = () => {
|
|
41
41
|
var _a;
|
|
42
|
-
const intl =
|
|
42
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
43
43
|
const {
|
|
44
44
|
materialExerciseId,
|
|
45
45
|
onCodeHelpRequest
|
|
@@ -149,10 +149,10 @@ const ExerciseRunnerControllerButtonGroup = () => {
|
|
|
149
149
|
loading: isConnecting || isSubmitting && exerciseRunType === types.enums.ExerciseRunType.Run,
|
|
150
150
|
disabled: isSubmitRunDisabled,
|
|
151
151
|
onClick: handleSubmitRun
|
|
152
|
-
}, isArduinoExercise ?
|
|
153
|
-
id:
|
|
154
|
-
}) :
|
|
155
|
-
id:
|
|
152
|
+
}, isArduinoExercise ? intl$1.formatMessage({
|
|
153
|
+
id: 'exerciseRunner.controller.buttonGroup.button.compile'
|
|
154
|
+
}) : intl$1.formatMessage({
|
|
155
|
+
id: 'exerciseRunner.controller.buttonGroup.button.run'
|
|
156
156
|
}));
|
|
157
157
|
};
|
|
158
158
|
/**
|
|
@@ -163,7 +163,7 @@ const ExerciseRunnerControllerButtonGroup = () => {
|
|
|
163
163
|
return null;
|
|
164
164
|
}
|
|
165
165
|
return React.createElement(blocks.Tooltip, {
|
|
166
|
-
title: exerciseWithNoGrade ? intl.formatMessage({
|
|
166
|
+
title: exerciseWithNoGrade ? intl$1.formatMessage({
|
|
167
167
|
id: 'exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit'
|
|
168
168
|
}) : undefined,
|
|
169
169
|
placement: "top",
|
|
@@ -174,8 +174,8 @@ const ExerciseRunnerControllerButtonGroup = () => {
|
|
|
174
174
|
loading: isConnecting || isSubmitting && exerciseRunType === types.enums.ExerciseRunType.Grade,
|
|
175
175
|
disabled: isSubmitGradeDisabled,
|
|
176
176
|
onClick: handleSubmitGrade
|
|
177
|
-
},
|
|
178
|
-
id:
|
|
177
|
+
}, intl$1.formatMessage({
|
|
178
|
+
id: 'exerciseRunner.controller.buttonGroup.button.submit'
|
|
179
179
|
}))));
|
|
180
180
|
};
|
|
181
181
|
/**
|
|
@@ -191,8 +191,8 @@ const ExerciseRunnerControllerButtonGroup = () => {
|
|
|
191
191
|
loading: isConnecting,
|
|
192
192
|
disabled: isCancelDisabled,
|
|
193
193
|
onClick: handleCancel
|
|
194
|
-
},
|
|
195
|
-
id:
|
|
194
|
+
}, intl$1.formatMessage({
|
|
195
|
+
id: 'exerciseRunner.controller.buttonGroup.button.stop'
|
|
196
196
|
}));
|
|
197
197
|
};
|
|
198
198
|
/**
|
|
@@ -208,8 +208,8 @@ const ExerciseRunnerControllerButtonGroup = () => {
|
|
|
208
208
|
loading: isConnecting,
|
|
209
209
|
disabled: isSyncRequestDisabled,
|
|
210
210
|
onClick: handleSyncRequest
|
|
211
|
-
},
|
|
212
|
-
id:
|
|
211
|
+
}, intl$1.formatMessage({
|
|
212
|
+
id: 'exerciseRunner.controller.buttonGroup.button.syncRequest'
|
|
213
213
|
}));
|
|
214
214
|
};
|
|
215
215
|
/**
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var icons = require('@elice/icons');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var recoil = require('recoil');
|
|
10
10
|
var styled = require('styled-components');
|
|
11
11
|
var recoil$1 = require('../context/recoil.js');
|
|
@@ -20,6 +20,7 @@ const StyledControllerButton = styled(blocks.Button).withConfig({
|
|
|
20
20
|
componentId: "sc-10grd0k-0"
|
|
21
21
|
})(["position:relative;transition:none;"]);
|
|
22
22
|
const ExerciseRunnerControllerCodeHelpRequestButton = React.forwardRef((props, ref) => {
|
|
23
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
23
24
|
const [isTooltipHidden, setIsTooltipHidden] = React.useState(false);
|
|
24
25
|
const isAibotInfoEnabled = recoil.useRecoilValue(recoil$1.exerciseAibotInfoEnableState);
|
|
25
26
|
//
|
|
@@ -53,8 +54,8 @@ const ExerciseRunnerControllerCodeHelpRequestButton = React.forwardRef((props, r
|
|
|
53
54
|
role: "gray9",
|
|
54
55
|
size: "small",
|
|
55
56
|
bold: true
|
|
56
|
-
},
|
|
57
|
-
id:
|
|
57
|
+
}, intl$1.formatMessage({
|
|
58
|
+
id: 'exerciseRunner.controller.buttonGroup.button.tooltip.aiHelp'
|
|
58
59
|
})), React.createElement(blocks.Hspace, {
|
|
59
60
|
width: 0.625
|
|
60
61
|
}), React.createElement(blocks.IconButton, {
|
|
@@ -82,8 +83,8 @@ const ExerciseRunnerControllerCodeHelpRequestButton = React.forwardRef((props, r
|
|
|
82
83
|
icon: icons.eilArrowRightwardsBasic
|
|
83
84
|
}),
|
|
84
85
|
iconAlign: "right"
|
|
85
|
-
}),
|
|
86
|
-
id:
|
|
86
|
+
}), intl$1.formatMessage({
|
|
87
|
+
id: 'exerciseRunner.controller.buttonGroup.button.helpRequest'
|
|
87
88
|
}))) : null;
|
|
88
89
|
});
|
|
89
90
|
|
package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
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 apiClient = require('@elice/api-client');
|
|
9
8
|
var blocks = require('@elice/blocks');
|
|
10
9
|
var designTokens = require('@elice/design-tokens');
|
|
10
|
+
var intl = require('@elice/intl');
|
|
11
11
|
var types = require('@elice/types');
|
|
12
12
|
var recoil = require('recoil');
|
|
13
13
|
var styled = require('styled-components');
|
|
@@ -33,7 +33,7 @@ const StyledRunnerInfoContent = styled.span.withConfig({
|
|
|
33
33
|
//
|
|
34
34
|
//
|
|
35
35
|
const ExerciseRunnerControllerRunningInfo = () => {
|
|
36
|
-
const intl =
|
|
36
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
37
37
|
const {
|
|
38
38
|
materialExerciseId,
|
|
39
39
|
exerciseRoomId,
|
|
@@ -100,7 +100,7 @@ const ExerciseRunnerControllerRunningInfo = () => {
|
|
|
100
100
|
if (typeof onError === 'function') {
|
|
101
101
|
onError(err);
|
|
102
102
|
}
|
|
103
|
-
blocks.Notification.error(intl.formatMessage({
|
|
103
|
+
blocks.Notification.error(intl$1.formatMessage({
|
|
104
104
|
id: 'exerciseRunner.controller.runningInfo.error.fetch'
|
|
105
105
|
}));
|
|
106
106
|
});
|
|
@@ -140,13 +140,12 @@ const ExerciseRunnerControllerRunningInfo = () => {
|
|
|
140
140
|
return React.createElement(React.Fragment, null, React.createElement(blocks.Flex, {
|
|
141
141
|
column: true,
|
|
142
142
|
justify: "center"
|
|
143
|
-
}, React.createElement(StyledRunnerInfoTitle, null,
|
|
144
|
-
id:
|
|
145
|
-
})), React.createElement(StyledRunnerInfoContent, null, typeof (exerciseLastSubmit === null || exerciseLastSubmit === void 0 ? void 0 : exerciseLastSubmit.score) === 'string' ?
|
|
146
|
-
id:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
143
|
+
}, React.createElement(StyledRunnerInfoTitle, null, intl$1.formatMessage({
|
|
144
|
+
id: 'exerciseRunner.controller.runningInfo.lastSubmitScore'
|
|
145
|
+
})), React.createElement(StyledRunnerInfoContent, null, typeof (exerciseLastSubmit === null || exerciseLastSubmit === void 0 ? void 0 : exerciseLastSubmit.score) === 'string' ? intl$1.formatMessage({
|
|
146
|
+
id: 'exerciseRunner.controller.runningInfo.score'
|
|
147
|
+
}, {
|
|
148
|
+
score: exerciseLastSubmit.score
|
|
150
149
|
}) : '--')), React.createElement(StyledHr, {
|
|
151
150
|
color: designTokens.base.color.navy6,
|
|
152
151
|
vertical: true,
|
|
@@ -164,30 +163,28 @@ const ExerciseRunnerControllerRunningInfo = () => {
|
|
|
164
163
|
return React.createElement(blocks.Flex, {
|
|
165
164
|
column: true,
|
|
166
165
|
justify: "center"
|
|
167
|
-
}, React.createElement(StyledRunnerInfoTitle, null, (exercise === null || exercise === void 0 ? void 0 : exercise.isNoSubmitGrade) ?
|
|
168
|
-
id:
|
|
169
|
-
}) :
|
|
170
|
-
id:
|
|
166
|
+
}, React.createElement(StyledRunnerInfoTitle, null, (exercise === null || exercise === void 0 ? void 0 : exercise.isNoSubmitGrade) ? intl$1.formatMessage({
|
|
167
|
+
id: 'exerciseRunner.controller.runningInfo.lastRunningDatetime'
|
|
168
|
+
}) : intl$1.formatMessage({
|
|
169
|
+
id: 'exerciseRunner.controller.runningInfo.lastSubmitDatetime'
|
|
171
170
|
})), React.createElement(StyledRunnerInfoContent, null, (exercise === null || exercise === void 0 ? void 0 : exercise.isNoSubmitGrade) ?
|
|
172
171
|
// last running
|
|
173
|
-
(exerciseLastRunning === null || exerciseLastRunning === void 0 ? void 0 : exerciseLastRunning.createdDatetime) ?
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
second: "2-digit"
|
|
172
|
+
(exerciseLastRunning === null || exerciseLastRunning === void 0 ? void 0 : exerciseLastRunning.createdDatetime) ? intl$1.formatDate(exerciseLastRunning.createdDatetime, {
|
|
173
|
+
year: 'numeric',
|
|
174
|
+
month: '2-digit',
|
|
175
|
+
day: '2-digit',
|
|
176
|
+
hour: '2-digit',
|
|
177
|
+
minute: '2-digit',
|
|
178
|
+
second: '2-digit'
|
|
181
179
|
}) : '--' :
|
|
182
180
|
// last submit
|
|
183
|
-
(exerciseLastSubmit === null || exerciseLastSubmit === void 0 ? void 0 : exerciseLastSubmit.createdDatetime) ?
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
second: "2-digit"
|
|
181
|
+
(exerciseLastSubmit === null || exerciseLastSubmit === void 0 ? void 0 : exerciseLastSubmit.createdDatetime) ? intl$1.formatDate(exerciseLastSubmit.createdDatetime, {
|
|
182
|
+
year: 'numeric',
|
|
183
|
+
month: '2-digit',
|
|
184
|
+
day: '2-digit',
|
|
185
|
+
hour: '2-digit',
|
|
186
|
+
minute: '2-digit',
|
|
187
|
+
second: '2-digit'
|
|
191
188
|
}) : '--'));
|
|
192
189
|
};
|
|
193
190
|
//
|
package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
7
|
+
var intl = require('@elice/intl');
|
|
8
8
|
var websocket = require('@elice/websocket');
|
|
9
9
|
var recoil = require('recoil');
|
|
10
10
|
var styled = require('styled-components');
|
|
@@ -19,6 +19,7 @@ const StyledMessageWrapper = styled(blocks.Flex).withConfig({
|
|
|
19
19
|
componentId: "sc-1yqi8o2-0"
|
|
20
20
|
})(["height:1rem;"]);
|
|
21
21
|
const ExerciseRunnerControllerStatusMessage = () => {
|
|
22
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
22
23
|
const websocketStatus = recoil.useRecoilValue(recoil$1.exerciseRunnerWebSocketStatusQuery);
|
|
23
24
|
/**
|
|
24
25
|
* Websocket state message.
|
|
@@ -26,17 +27,17 @@ const ExerciseRunnerControllerStatusMessage = () => {
|
|
|
26
27
|
const getWebsocketStateMessage = () => {
|
|
27
28
|
switch (websocketStatus) {
|
|
28
29
|
case websocket.EliceWebSocket.OPEN:
|
|
29
|
-
return
|
|
30
|
-
id:
|
|
30
|
+
return intl$1.formatMessage({
|
|
31
|
+
id: 'exerciseRunner.controller.statusMessage.open'
|
|
31
32
|
});
|
|
32
33
|
case websocket.EliceWebSocket.CLOSED:
|
|
33
|
-
return
|
|
34
|
-
id:
|
|
34
|
+
return intl$1.formatMessage({
|
|
35
|
+
id: 'exerciseRunner.controller.statusMessage.closed'
|
|
35
36
|
});
|
|
36
37
|
case websocket.EliceWebSocket.CONNECTING:
|
|
37
38
|
default:
|
|
38
|
-
return
|
|
39
|
-
id:
|
|
39
|
+
return intl$1.formatMessage({
|
|
40
|
+
id: 'exerciseRunner.controller.statusMessage.connecting'
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
};
|