@elice/material-exercise 1.240718.0-trasncript.2 → 1.240718.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/assets/empty.png.js +2 -1
- package/cjs/components/material-exercise/MaterialExercise.d.ts +1 -1
- package/cjs/components/material-exercise/MaterialExercise.js +75 -111
- package/cjs/components/material-exercise/MaterialExercise.styled.js +14 -18
- package/cjs/components/material-exercise/MaterialExerciseMobile.d.ts +1 -1
- package/cjs/components/material-exercise/MaterialExerciseMobile.js +7 -17
- package/cjs/components/material-exercise/context/ExerciseProvider.js +58 -68
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.js +30 -39
- package/cjs/components/material-exercise/context/context.js +1 -5
- package/cjs/components/material-exercise/context/recoil.js +293 -542
- package/cjs/components/material-exercise/context/subjects.js +4 -4
- package/cjs/components/material-exercise/context/types.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +78 -100
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +8 -12
- package/cjs/components/material-exercise/exercise-file/ExerciseFile.js +27 -30
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +149 -225
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +13 -20
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +29 -49
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.js +4 -10
- package/cjs/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/ExerciseFileTabsFileTreeButton.js +36 -53
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +211 -353
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.js +4 -10
- package/cjs/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.js +15 -18
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +12 -21
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +11 -12
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +80 -123
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +67 -100
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +22 -40
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +117 -144
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +13 -17
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.js +19 -32
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.js +4 -10
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +24 -31
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +6 -13
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +35 -51
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.js +6 -14
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +78 -90
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.js +12 -25
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.styled.js +12 -18
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +349 -504
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +132 -197
- package/cjs/components/material-exercise/exercise-room/helpers/exerciseRoomPermissionStringConvertor.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +142 -205
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerContext.js +1 -5
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerController.js +16 -25
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +86 -118
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +19 -33
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +82 -95
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +52 -68
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +87 -136
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.js +2 -6
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +15 -21
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +23 -36
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +248 -402
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.js +8 -12
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.js +50 -74
- package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.js +23 -32
- package/cjs/components/shared/exercise-shimmer/ExerciseFileShimmer.js +38 -44
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTabShimmer.js +20 -26
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.js +8 -14
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.js +22 -28
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.js +9 -24
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.js +5 -6
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.js +1 -5
- package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.js +10 -10
- package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.styled.js +5 -13
- package/cjs/components/shared/file-icon/FileIcon.js +16 -23
- package/cjs/components/shared/file-tabs/FileTab.js +33 -47
- package/cjs/components/shared/file-tabs/FileTab.styled.js +15 -23
- package/cjs/components/shared/file-tabs/FileTabs.js +39 -66
- package/cjs/components/shared/file-tabs/FileTabs.styled.js +2 -6
- package/cjs/components/shared/file-tabs/util.js +14 -27
- package/cjs/components/shared/file-tree/FileTree.js +10 -20
- package/cjs/components/shared/file-tree/FileTreeConfig.js +40 -46
- package/cjs/components/shared/file-tree/FileTreeList.js +40 -43
- package/cjs/components/shared/file-tree/FileTreeListItemContent.js +99 -128
- package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.js +21 -29
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +96 -106
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.js +6 -10
- package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +91 -133
- package/cjs/components/shared/file-tree/FileTreeListItems.js +137 -149
- package/cjs/components/shared/file-tree/FileTreeListItems.styled.js +2 -6
- package/cjs/components/shared/file-tree/FileTreeToolbar.styled.js +1 -5
- package/cjs/components/shared/file-tree/context/FileTreeContext.d.ts +1 -1
- package/cjs/components/shared/file-tree/context/FileTreeContext.js +79 -101
- package/cjs/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +54 -59
- package/cjs/components/shared/file-tree/utils/fileTreeFiles.js +20 -24
- package/cjs/components/shared/file-tree/utils/fileTreeGenerator.js +146 -193
- package/cjs/components/shared/file-tree/utils/fileTreeInput.js +0 -11
- package/cjs/components/shared/file-tree/utils/fileTreeItem.js +1 -1
- package/cjs/components/shared/file-tree/utils/fileTreePath.js +6 -5
- package/cjs/components/shared/file-viewer/FileViewer.js +46 -76
- package/cjs/components/shared/file-viewer/FileViewerCsv.js +167 -262
- package/cjs/components/shared/file-viewer/FileViewerImage.js +12 -16
- package/cjs/components/shared/file-viewer/FileViewerIpynb.js +11 -27
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.js +47 -65
- package/cjs/components/shared/file-viewer/FileViewerText.js +11 -23
- package/cjs/components/shared/material-modal/MaterialModal.js +11 -20
- package/cjs/components/shared/material-modal/MaterialModal.styled.js +5 -9
- package/cjs/components/shared/monaco-editor/MonacoEditor.js +74 -102
- package/cjs/components/shared/monaco-editor/MonacoEditorLazy.js +7 -15
- package/cjs/components/shared/monaco-editor/MonacoEditorMobile.js +34 -49
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +194 -249
- package/cjs/components/shared/monaco-editor/constants/grammars/index.js +28 -82
- package/cjs/components/shared/monaco-editor/constants/monaco/preferences.js +5 -5
- package/cjs/components/shared/monaco-editor/constants/themes/index.js +17 -49
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.js +10 -11
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.js +14 -15
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.js +8 -9
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.js +30 -34
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +7 -9
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.js +6 -6
- package/cjs/components/shared/monaco-editor/editor-languages/css/formatter.js +10 -33
- package/cjs/components/shared/monaco-editor/editor-languages/css/index.js +2 -3
- package/cjs/components/shared/monaco-editor/editor-languages/html/formatter.js +10 -33
- package/cjs/components/shared/monaco-editor/editor-languages/html/index.js +2 -3
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.js +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/formatter.js +10 -37
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/index.js +5 -6
- package/cjs/components/shared/monaco-editor/hooks/useEditorOptions.js +5 -11
- package/cjs/components/shared/monaco-editor/utils/emmet/abbreviationActions.js +12 -10
- package/cjs/components/shared/monaco-editor/utils/emmet/registerProvider.js +6 -12
- package/cjs/components/shared/monaco-editor/utils/grammar/index.js +24 -67
- package/cjs/components/shared/monaco-editor/utils/grammar/onigasm.js +6 -25
- package/cjs/components/shared/monaco-editor/utils/grammar/textmate.js +37 -70
- package/cjs/components/shared/monaco-editor/utils/monacoLanguage.js +7 -8
- package/cjs/components/shared/monaco-editor/utils/monacoPreference.js +4 -6
- package/cjs/components/shared/monaco-editor/utils/prettier/config.js +2 -2
- package/cjs/components/shared/monaco-editor/utils/prettier/index.js +7 -27
- package/cjs/components/shared/monaco-editor/utils/theme/convert.js +14 -24
- package/cjs/components/shared/monaco-editor/utils/theme/index.js +3 -22
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursor.js +56 -77
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorManager.js +68 -82
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorWidget.js +93 -120
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +132 -155
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelectionManager.js +92 -104
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/styles.js +2 -2
- package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/configCompat.js +6 -1
- package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/data.js +2 -2
- package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.js +158 -177
- package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/utils.js +3 -3
- package/cjs/components/shared/no-vnc/NoVnc.js +78 -118
- package/cjs/components/shared/no-vnc/NoVncLazy.js +7 -15
- package/cjs/components/shared/preview-container/PreviewContainer.js +13 -18
- package/cjs/components/shared/web-browser/WebBrowser.js +52 -74
- package/cjs/components/shared/xterm/Xterm.js +57 -82
- package/cjs/components/shared/xterm/XtermLazy.js +7 -15
- package/cjs/constants/arduino.js +10 -10
- package/cjs/constants/color.js +1 -1
- package/cjs/constants/shortcutKeyMap.js +1 -3
- package/cjs/constants/stylesheets.js +5 -7
- package/cjs/hooks/useArduino.js +141 -282
- package/cjs/hooks/useExerciseFile.js +22 -24
- package/cjs/hooks/useExericseShortcut.js +4 -6
- package/cjs/hooks/useMaterialExerciseFileUrl.js +33 -55
- package/cjs/hooks/useRunnerRoomWebSocket.js +27 -51
- package/cjs/hooks/useStdioTextConcator.js +11 -15
- package/cjs/hooks/useStdioWebSocket.js +28 -32
- package/cjs/hooks/useUsercodeEditWebSocket.js +158 -238
- package/cjs/hooks/useUsercodeHistory.js +63 -115
- package/cjs/utils/arduino.js +11 -23
- package/cjs/utils/exerciseFile.js +10 -8
- package/cjs/utils/runner.js +17 -33
- package/es/assets/empty.png.js +2 -1
- package/es/components/material-exercise/MaterialExercise.d.ts +1 -1
- package/es/components/material-exercise/MaterialExercise.js +75 -107
- package/es/components/material-exercise/MaterialExercise.styled.js +14 -14
- package/es/components/material-exercise/MaterialExerciseMobile.d.ts +1 -1
- package/es/components/material-exercise/MaterialExerciseMobile.js +7 -13
- package/es/components/material-exercise/context/ExerciseProvider.js +58 -63
- package/es/components/material-exercise/context/ExerciseProviderNoImage.js +30 -35
- package/es/components/material-exercise/context/context.js +1 -1
- package/es/components/material-exercise/context/recoil.js +290 -535
- package/es/components/material-exercise/context/subjects.js +4 -4
- package/es/components/material-exercise/context/types.d.ts +2 -2
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +78 -95
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +8 -8
- package/es/components/material-exercise/exercise-file/ExerciseFile.js +27 -25
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +149 -221
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +13 -15
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +29 -44
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -1
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.js +4 -6
- package/es/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/ExerciseFileTabsFileTreeButton.js +36 -48
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +211 -348
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -1
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.js +4 -6
- package/es/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.js +15 -14
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +12 -16
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +11 -12
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +80 -119
- package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +67 -96
- package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +23 -41
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +120 -143
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +13 -13
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.js +19 -28
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -1
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.js +4 -6
- package/es/components/material-exercise/exercise-preview/ExercisePreview.js +24 -26
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +7 -14
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +35 -47
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.js +6 -10
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +78 -85
- package/es/components/material-exercise/exercise-room/ExerciseRoom.js +12 -21
- package/es/components/material-exercise/exercise-room/ExerciseRoom.styled.js +12 -14
- package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +349 -498
- package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +133 -193
- package/es/components/material-exercise/exercise-room/helpers/exerciseRoomPermissionStringConvertor.js +2 -2
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +142 -200
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerContext.js +1 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerController.js +16 -20
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +85 -112
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +20 -30
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +82 -90
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +52 -63
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +87 -131
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.js +2 -2
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +15 -17
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +23 -31
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +250 -399
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.js +8 -8
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.js +49 -68
- package/es/components/shared/exercise-menu-button/ExerciseMenuButton.js +24 -29
- package/es/components/shared/exercise-shimmer/ExerciseFileShimmer.js +38 -40
- package/es/components/shared/exercise-shimmer/ExerciseFileTabShimmer.js +20 -22
- package/es/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.js +8 -10
- package/es/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.js +22 -24
- package/es/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.js +9 -19
- package/es/components/shared/exercise-version-list/ExerciseVersionList.js +5 -6
- package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.js +1 -1
- package/es/components/shared/exercise-version-list/ExerciseVersionListItem.js +10 -10
- package/es/components/shared/exercise-version-list/ExerciseVersionListItem.styled.js +5 -9
- package/es/components/shared/file-icon/FileIcon.js +16 -19
- package/es/components/shared/file-tabs/FileTab.js +33 -43
- package/es/components/shared/file-tabs/FileTab.styled.js +15 -19
- package/es/components/shared/file-tabs/FileTabs.js +40 -62
- package/es/components/shared/file-tabs/FileTabs.styled.js +2 -2
- package/es/components/shared/file-tabs/util.js +14 -27
- package/es/components/shared/file-tree/FileTree.js +10 -16
- package/es/components/shared/file-tree/FileTreeConfig.js +39 -39
- package/es/components/shared/file-tree/FileTreeList.js +40 -38
- package/es/components/shared/file-tree/FileTreeListItemContent.js +99 -124
- package/es/components/shared/file-tree/FileTreeListItemContent.styled.js +21 -25
- package/es/components/shared/file-tree/FileTreeListItemContentInput.js +96 -102
- package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.js +6 -6
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +91 -129
- package/es/components/shared/file-tree/FileTreeListItems.js +137 -149
- package/es/components/shared/file-tree/FileTreeListItems.styled.js +2 -2
- package/es/components/shared/file-tree/FileTreeToolbar.styled.js +1 -1
- package/es/components/shared/file-tree/context/FileTreeContext.d.ts +1 -1
- package/es/components/shared/file-tree/context/FileTreeContext.js +79 -97
- package/es/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +54 -55
- package/es/components/shared/file-tree/utils/fileTreeFiles.js +20 -20
- package/es/components/shared/file-tree/utils/fileTreeGenerator.js +146 -193
- package/es/components/shared/file-tree/utils/fileTreeInput.js +1 -11
- package/es/components/shared/file-tree/utils/fileTreeItem.js +1 -1
- package/es/components/shared/file-tree/utils/fileTreePath.js +6 -5
- package/es/components/shared/file-viewer/FileViewer.js +46 -69
- package/es/components/shared/file-viewer/FileViewerCsv.js +167 -257
- package/es/components/shared/file-viewer/FileViewerImage.js +12 -12
- package/es/components/shared/file-viewer/FileViewerIpynb.js +11 -21
- package/es/components/shared/file-viewer/FileViewerNonViewable.js +47 -60
- package/es/components/shared/file-viewer/FileViewerText.js +11 -19
- package/es/components/shared/material-modal/MaterialModal.js +11 -20
- package/es/components/shared/material-modal/MaterialModal.styled.js +5 -5
- package/es/components/shared/monaco-editor/MonacoEditor.js +72 -95
- package/es/components/shared/monaco-editor/MonacoEditorLazy.js +7 -11
- package/es/components/shared/monaco-editor/MonacoEditorMobile.js +32 -43
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +194 -244
- package/es/components/shared/monaco-editor/constants/grammars/index.js +28 -82
- package/es/components/shared/monaco-editor/constants/monaco/preferences.js +5 -5
- package/es/components/shared/monaco-editor/constants/themes/index.js +17 -49
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.js +10 -11
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.js +14 -15
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.js +8 -9
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.js +30 -34
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +7 -9
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.js +6 -6
- package/es/components/shared/monaco-editor/editor-languages/css/formatter.js +10 -33
- package/es/components/shared/monaco-editor/editor-languages/html/formatter.js +10 -33
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.js +1 -1
- package/es/components/shared/monaco-editor/editor-languages/typescript/formatter.js +10 -37
- package/es/components/shared/monaco-editor/editor-languages/typescript/index.js +3 -3
- package/es/components/shared/monaco-editor/hooks/useEditorOptions.js +5 -11
- package/es/components/shared/monaco-editor/utils/emmet/abbreviationActions.js +12 -10
- package/es/components/shared/monaco-editor/utils/emmet/registerProvider.js +6 -12
- package/es/components/shared/monaco-editor/utils/grammar/index.js +24 -67
- package/es/components/shared/monaco-editor/utils/grammar/onigasm.js +6 -25
- package/es/components/shared/monaco-editor/utils/grammar/textmate.js +35 -67
- package/es/components/shared/monaco-editor/utils/monacoLanguage.js +5 -5
- package/es/components/shared/monaco-editor/utils/monacoPreference.js +4 -6
- package/es/components/shared/monaco-editor/utils/prettier/config.js +2 -2
- package/es/components/shared/monaco-editor/utils/prettier/index.js +7 -27
- package/es/components/shared/monaco-editor/utils/theme/convert.js +13 -19
- package/es/components/shared/monaco-editor/utils/theme/index.js +3 -22
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursor.js +56 -77
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorManager.js +68 -82
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorWidget.js +93 -120
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +130 -152
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelectionManager.js +92 -104
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/styles.js +2 -2
- package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/configCompat.js +6 -1
- package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/data.js +2 -2
- package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.js +156 -171
- package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/utils.js +3 -3
- package/es/components/shared/no-vnc/NoVnc.js +71 -99
- package/es/components/shared/no-vnc/NoVncLazy.js +7 -11
- package/es/components/shared/preview-container/PreviewContainer.js +14 -15
- package/es/components/shared/web-browser/WebBrowser.js +52 -69
- package/es/components/shared/xterm/Xterm.js +57 -77
- package/es/components/shared/xterm/XtermLazy.js +7 -11
- package/es/constants/arduino.js +10 -10
- package/es/constants/color.js +1 -1
- package/es/constants/shortcutKeyMap.js +1 -3
- package/es/constants/stylesheets.js +5 -7
- package/es/hooks/useArduino.js +141 -278
- package/es/hooks/useExerciseFile.js +22 -24
- package/es/hooks/useExericseShortcut.js +4 -6
- package/es/hooks/useMaterialExerciseFileUrl.js +34 -52
- package/es/hooks/useRunnerRoomWebSocket.js +27 -51
- package/es/hooks/useStdioTextConcator.js +11 -11
- package/es/hooks/useStdioWebSocket.js +28 -32
- package/es/hooks/useUsercodeEditWebSocket.js +157 -232
- package/es/hooks/useUsercodeHistory.js +63 -115
- package/es/utils/arduino.js +12 -24
- package/es/utils/exerciseFile.js +10 -8
- package/es/utils/runner.js +17 -33
- package/package.json +15 -11
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -519
- package/cjs/components/index.js +0 -25
- package/cjs/components/locales/index.js +0 -13
- package/cjs/components/material-exercise/context/index.js +0 -57
- package/cjs/components/material-exercise/exercise-code-history/index.js +0 -7
- package/cjs/components/material-exercise/exercise-code-history/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-file/index.js +0 -7
- package/cjs/components/material-exercise/exercise-file-editor/index.js +0 -7
- package/cjs/components/material-exercise/exercise-file-editor/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/index.js +0 -7
- package/cjs/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-file-tabs/index.js +0 -9
- package/cjs/components/material-exercise/exercise-file-tabs/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-file-tree/index.js +0 -9
- package/cjs/components/material-exercise/exercise-file-tree/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-file-viewer/index.js +0 -7
- package/cjs/components/material-exercise/exercise-menu/index.js +0 -7
- package/cjs/components/material-exercise/exercise-menu/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-multilang-dropdown/index.js +0 -9
- package/cjs/components/material-exercise/exercise-preview/index.js +0 -7
- package/cjs/components/material-exercise/exercise-preview/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-rightpane/index.js +0 -7
- package/cjs/components/material-exercise/exercise-rightpane/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-room/helpers/index.js +0 -7
- package/cjs/components/material-exercise/exercise-room/index.js +0 -7
- package/cjs/components/material-exercise/exercise-room/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-runner/index.js +0 -7
- package/cjs/components/material-exercise/exercise-runner/locales/index.js +0 -13
- package/cjs/components/material-exercise/exercise-submit-history/index.js +0 -7
- package/cjs/components/material-exercise/exercise-submit-history/locales/index.js +0 -13
- package/cjs/components/material-exercise/index.js +0 -9
- package/cjs/components/shared/exercise-menu-button/index.js +0 -7
- package/cjs/components/shared/exercise-shimmer/index.js +0 -15
- package/cjs/components/shared/exercise-version-list/index.js +0 -9
- package/cjs/components/shared/file-icon/index.js +0 -7
- package/cjs/components/shared/file-tabs/index.js +0 -7
- package/cjs/components/shared/file-tree/context/index.js +0 -9
- package/cjs/components/shared/file-tree/file-tree-toolbar/index.js +0 -7
- package/cjs/components/shared/file-tree/file-tree-toolbar/locales/index.js +0 -13
- package/cjs/components/shared/file-tree/index.js +0 -7
- package/cjs/components/shared/file-tree/locales/index.js +0 -13
- package/cjs/components/shared/file-tree/utils/index.js +0 -20
- package/cjs/components/shared/file-viewer/index.js +0 -7
- package/cjs/components/shared/file-viewer/locales/index.js +0 -21
- package/cjs/components/shared/material-modal/index.js +0 -7
- package/cjs/components/shared/monaco-editor/constants/index.js +0 -13
- package/cjs/components/shared/monaco-editor/constants/monaco/index.js +0 -11
- package/cjs/components/shared/monaco-editor/editor-hooks/index.js +0 -17
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/index.js +0 -11
- package/cjs/components/shared/monaco-editor/hooks/index.js +0 -7
- package/cjs/components/shared/monaco-editor/index.js +0 -21
- package/cjs/components/shared/monaco-editor/locales/index.js +0 -13
- package/cjs/components/shared/monaco-editor/utils/emmet/index.js +0 -9
- package/cjs/components/shared/monaco-editor/utils/index.js +0 -9
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/index.js +0 -12
- package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/index.js +0 -11
- package/cjs/components/shared/no-vnc/index.js +0 -7
- package/cjs/components/shared/preview-container/index.js +0 -9
- package/cjs/components/shared/web-browser/index.js +0 -7
- package/cjs/components/shared/xterm/index.js +0 -7
- package/cjs/components/shared/xterm/locales/index.js +0 -13
- package/cjs/constants/index.js +0 -7
- package/cjs/hooks/index.js +0 -20
- package/cjs/utils/index.js +0 -10
- package/es/_virtual/_rollupPluginBabelHelpers.js +0 -499
- package/es/components/index.js +0 -8
- package/es/components/locales/index.js +0 -4
- package/es/components/material-exercise/context/index.js +0 -5
- package/es/components/material-exercise/exercise-code-history/index.js +0 -1
- package/es/components/material-exercise/exercise-code-history/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-file/index.js +0 -1
- package/es/components/material-exercise/exercise-file-editor/index.js +0 -1
- package/es/components/material-exercise/exercise-file-editor/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/index.js +0 -1
- package/es/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-file-tabs/index.js +0 -2
- package/es/components/material-exercise/exercise-file-tabs/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-file-tree/index.js +0 -2
- package/es/components/material-exercise/exercise-file-tree/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-file-viewer/index.js +0 -1
- package/es/components/material-exercise/exercise-menu/index.js +0 -1
- package/es/components/material-exercise/exercise-menu/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-multilang-dropdown/index.js +0 -2
- package/es/components/material-exercise/exercise-preview/index.js +0 -1
- package/es/components/material-exercise/exercise-preview/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-rightpane/index.js +0 -1
- package/es/components/material-exercise/exercise-rightpane/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-room/helpers/index.js +0 -1
- package/es/components/material-exercise/exercise-room/index.js +0 -1
- package/es/components/material-exercise/exercise-room/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-runner/index.js +0 -1
- package/es/components/material-exercise/exercise-runner/locales/index.js +0 -4
- package/es/components/material-exercise/exercise-submit-history/index.js +0 -1
- package/es/components/material-exercise/exercise-submit-history/locales/index.js +0 -4
- package/es/components/material-exercise/index.js +0 -2
- package/es/components/shared/exercise-menu-button/index.js +0 -1
- package/es/components/shared/exercise-shimmer/index.js +0 -5
- package/es/components/shared/exercise-version-list/index.js +0 -2
- package/es/components/shared/file-icon/index.js +0 -1
- package/es/components/shared/file-tabs/index.js +0 -1
- package/es/components/shared/file-tree/context/index.js +0 -1
- package/es/components/shared/file-tree/file-tree-toolbar/index.js +0 -1
- package/es/components/shared/file-tree/file-tree-toolbar/locales/index.js +0 -4
- package/es/components/shared/file-tree/index.js +0 -1
- package/es/components/shared/file-tree/locales/index.js +0 -4
- package/es/components/shared/file-tree/utils/index.js +0 -5
- package/es/components/shared/file-viewer/index.js +0 -1
- package/es/components/shared/file-viewer/locales/index.js +0 -8
- package/es/components/shared/material-modal/index.js +0 -1
- package/es/components/shared/monaco-editor/constants/index.js +0 -2
- package/es/components/shared/monaco-editor/constants/monaco/index.js +0 -1
- package/es/components/shared/monaco-editor/editor-hooks/index.js +0 -6
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/index.js +0 -3
- package/es/components/shared/monaco-editor/hooks/index.js +0 -1
- package/es/components/shared/monaco-editor/index.js +0 -6
- package/es/components/shared/monaco-editor/locales/index.js +0 -4
- package/es/components/shared/monaco-editor/utils/emmet/index.js +0 -1
- package/es/components/shared/monaco-editor/utils/index.js +0 -2
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/index.js +0 -3
- package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/index.js +0 -2
- package/es/components/shared/no-vnc/index.js +0 -1
- package/es/components/shared/preview-container/index.js +0 -1
- package/es/components/shared/web-browser/index.js +0 -1
- package/es/components/shared/xterm/index.js +0 -1
- package/es/components/shared/xterm/locales/index.js +0 -4
- package/es/constants/index.js +0 -1
- package/es/hooks/index.js +0 -7
- package/es/utils/index.js +0 -2
|
@@ -1,38 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
|
|
4
3
|
var React = require('react');
|
|
5
4
|
var reactUse = require('react-use');
|
|
6
5
|
var apiClient = require('@elice/api-client');
|
|
7
6
|
var otTextUnicode = require('ot-text-unicode');
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
_useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
|
|
18
|
-
doc = _useState4[0],
|
|
19
|
-
setDoc = _useState4[1];
|
|
20
|
-
var _useState5 = React.useState(),
|
|
21
|
-
_useState6 = _rollupPluginBabelHelpers.slicedToArray(_useState5, 2),
|
|
22
|
-
version = _useState6[0],
|
|
23
|
-
setVersion = _useState6[1];
|
|
24
|
-
var _useState7 = React.useState(),
|
|
25
|
-
_useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
|
|
26
|
-
latestVersion = _useState8[0],
|
|
27
|
-
setLatestVersion = _useState8[1];
|
|
28
|
-
var _useState9 = React.useState(false),
|
|
29
|
-
_useState10 = _rollupPluginBabelHelpers.slicedToArray(_useState9, 2),
|
|
30
|
-
hasMoreVersion = _useState10[0],
|
|
31
|
-
setHasMoreVersion = _useState10[1];
|
|
8
|
+
const OP_FETCHING_COUNT = 100;
|
|
9
|
+
const useUsercodeHistory = (exerciseRoomId, filename) => {
|
|
10
|
+
const latestDocRef = React.useRef('');
|
|
11
|
+
const [ops, setOps] = React.useState([]);
|
|
12
|
+
const [doc, setDoc] = React.useState('');
|
|
13
|
+
const [version, setVersion] = React.useState();
|
|
14
|
+
const [latestVersion, setLatestVersion] = React.useState();
|
|
15
|
+
const [hasMoreVersion, setHasMoreVersion] = React.useState(false);
|
|
32
16
|
/**
|
|
33
17
|
*
|
|
34
18
|
*/
|
|
35
|
-
|
|
19
|
+
const inverseApplyOp = (doc, op) => {
|
|
36
20
|
if (typeof otTextUnicode.type.invert !== 'function') {
|
|
37
21
|
return doc;
|
|
38
22
|
}
|
|
@@ -41,57 +25,34 @@ var useUsercodeHistory = function useUsercodeHistory(exerciseRoomId, filename) {
|
|
|
41
25
|
/**
|
|
42
26
|
*
|
|
43
27
|
*/
|
|
44
|
-
|
|
28
|
+
const applyOps = selectedVersion => {
|
|
45
29
|
if (!latestVersion) {
|
|
46
30
|
return;
|
|
47
31
|
}
|
|
48
|
-
setDoc(ops.slice(0, latestVersion - selectedVersion).reduce(
|
|
49
|
-
return inverseApplyOp(newDoc, op.ots);
|
|
50
|
-
}, latestDocRef.current));
|
|
32
|
+
setDoc(ops.slice(0, latestVersion - selectedVersion).reduce((newDoc, op) => inverseApplyOp(newDoc, op.ots), latestDocRef.current));
|
|
51
33
|
};
|
|
52
34
|
/**
|
|
53
35
|
*
|
|
54
36
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
filename: filename,
|
|
71
|
-
offset: ops.length,
|
|
72
|
-
count: OP_FETCHING_COUNT,
|
|
73
|
-
isOpComposed: false
|
|
74
|
-
});
|
|
75
|
-
case 4:
|
|
76
|
-
_yield$getOrgMaterial = _context.sent;
|
|
77
|
-
newOps = _yield$getOrgMaterial.ops;
|
|
78
|
-
setOps(function (prev) {
|
|
79
|
-
return [].concat(_rollupPluginBabelHelpers.toConsumableArray(prev), _rollupPluginBabelHelpers.toConsumableArray(newOps));
|
|
80
|
-
});
|
|
81
|
-
case 7:
|
|
82
|
-
case "end":
|
|
83
|
-
return _context.stop();
|
|
84
|
-
}
|
|
85
|
-
}, _callee);
|
|
86
|
-
}));
|
|
87
|
-
return function loadMoreVersions() {
|
|
88
|
-
return _ref.apply(this, arguments);
|
|
89
|
-
};
|
|
90
|
-
}();
|
|
37
|
+
const loadMoreVersions = async () => {
|
|
38
|
+
if (!filename) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const {
|
|
42
|
+
ops: newOps
|
|
43
|
+
} = await apiClient.getOrgMaterialExerciseUsercodeOpList({
|
|
44
|
+
exerciseRoomId,
|
|
45
|
+
filename,
|
|
46
|
+
offset: ops.length,
|
|
47
|
+
count: OP_FETCHING_COUNT,
|
|
48
|
+
isOpComposed: false
|
|
49
|
+
});
|
|
50
|
+
setOps(prev => [...prev, ...newOps]);
|
|
51
|
+
};
|
|
91
52
|
/**
|
|
92
53
|
*
|
|
93
54
|
*/
|
|
94
|
-
|
|
55
|
+
const changeVersion = selectedVersion => {
|
|
95
56
|
if (selectedVersion === version) {
|
|
96
57
|
return;
|
|
97
58
|
}
|
|
@@ -101,69 +62,56 @@ var useUsercodeHistory = function useUsercodeHistory(exerciseRoomId, filename) {
|
|
|
101
62
|
//
|
|
102
63
|
//
|
|
103
64
|
//
|
|
104
|
-
reactUse.useMount(
|
|
65
|
+
reactUse.useMount(() => {
|
|
105
66
|
if (!filename) {
|
|
106
67
|
return;
|
|
107
68
|
}
|
|
108
|
-
void
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
setDoc(usercode.content);
|
|
132
|
-
setOps(_ops);
|
|
133
|
-
setVersion(_ops[0].version);
|
|
134
|
-
setLatestVersion(_ops[0].version);
|
|
135
|
-
if (_ops.length < _ops[0].version) {
|
|
136
|
-
setHasMoreVersion(true);
|
|
137
|
-
}
|
|
138
|
-
_context2.next = 17;
|
|
139
|
-
break;
|
|
140
|
-
case 15:
|
|
141
|
-
_context2.prev = 15;
|
|
142
|
-
_context2.t0 = _context2["catch"](0);
|
|
143
|
-
case 17:
|
|
144
|
-
case "end":
|
|
145
|
-
return _context2.stop();
|
|
69
|
+
void (async () => {
|
|
70
|
+
try {
|
|
71
|
+
const [{
|
|
72
|
+
usercode
|
|
73
|
+
}, {
|
|
74
|
+
ops
|
|
75
|
+
}] = await Promise.all([apiClient.getOrgMaterialExerciseUsercodeGet({
|
|
76
|
+
exerciseRoomId,
|
|
77
|
+
filename
|
|
78
|
+
}), apiClient.getOrgMaterialExerciseUsercodeOpList({
|
|
79
|
+
exerciseRoomId,
|
|
80
|
+
filename,
|
|
81
|
+
offset: 0,
|
|
82
|
+
count: OP_FETCHING_COUNT,
|
|
83
|
+
isOpComposed: false
|
|
84
|
+
})]);
|
|
85
|
+
latestDocRef.current = usercode.content;
|
|
86
|
+
setDoc(usercode.content);
|
|
87
|
+
setOps(ops);
|
|
88
|
+
setVersion(ops[0].version);
|
|
89
|
+
setLatestVersion(ops[0].version);
|
|
90
|
+
if (ops.length < ops[0].version) {
|
|
91
|
+
setHasMoreVersion(true);
|
|
146
92
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
93
|
+
} catch (_) {
|
|
94
|
+
//
|
|
95
|
+
}
|
|
96
|
+
})();
|
|
149
97
|
});
|
|
150
98
|
//
|
|
151
99
|
//
|
|
152
100
|
//
|
|
153
|
-
React.useEffect(
|
|
101
|
+
React.useEffect(() => {
|
|
154
102
|
setHasMoreVersion(latestVersion !== undefined && ops.length < latestVersion);
|
|
155
103
|
}, [latestVersion, ops]);
|
|
156
104
|
//
|
|
157
105
|
//
|
|
158
106
|
//
|
|
159
107
|
return {
|
|
160
|
-
doc
|
|
161
|
-
ops
|
|
162
|
-
version
|
|
163
|
-
latestVersion
|
|
164
|
-
hasMoreVersion
|
|
165
|
-
changeVersion
|
|
166
|
-
loadMoreVersions
|
|
108
|
+
doc,
|
|
109
|
+
ops,
|
|
110
|
+
version,
|
|
111
|
+
latestVersion,
|
|
112
|
+
hasMoreVersion,
|
|
113
|
+
changeVersion,
|
|
114
|
+
loadMoreVersions
|
|
167
115
|
};
|
|
168
116
|
};
|
|
169
117
|
|
package/cjs/utils/arduino.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
|
|
4
3
|
var arduino = require('../constants/arduino.js');
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Create url to communicate with arduino.
|
|
8
7
|
*/
|
|
9
8
|
function createArduinoUrl(options) {
|
|
10
|
-
|
|
9
|
+
const url = new URL(`${options.protocol}://127.0.0.1`);
|
|
11
10
|
if (options.pathname) {
|
|
12
11
|
url.pathname = options.pathname;
|
|
13
12
|
}
|
|
@@ -20,21 +19,12 @@ function createArduinoUrl(options) {
|
|
|
20
19
|
*
|
|
21
20
|
*/
|
|
22
21
|
function getArduinoBoardType(port) {
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
29
|
-
var pair = _step.value;
|
|
30
|
-
if (pair.vendorId === port.VendorID && pair.productId === port.ProductID) {
|
|
31
|
-
return board;
|
|
32
|
-
}
|
|
22
|
+
const boards = arduino.ARDUINO_VENDOR_PRODUCT_IDS;
|
|
23
|
+
for (const board in boards) {
|
|
24
|
+
for (const pair of boards[board]) {
|
|
25
|
+
if (pair.vendorId === port.VendorID && pair.productId === port.ProductID) {
|
|
26
|
+
return board;
|
|
33
27
|
}
|
|
34
|
-
} catch (err) {
|
|
35
|
-
_iterator.e(err);
|
|
36
|
-
} finally {
|
|
37
|
-
_iterator.f();
|
|
38
28
|
}
|
|
39
29
|
}
|
|
40
30
|
return null;
|
|
@@ -43,8 +33,8 @@ function getArduinoBoardType(port) {
|
|
|
43
33
|
*
|
|
44
34
|
*/
|
|
45
35
|
function getDisplayName(port) {
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
const type = getArduinoBoardType(port);
|
|
37
|
+
const displayName = type !== null && Object.keys(arduino.ARDUINO_BOARD_NAMES).includes(type) ? `${arduino.ARDUINO_BOARD_NAMES[type]}` : `Unsupported Device`;
|
|
48
38
|
return displayName;
|
|
49
39
|
}
|
|
50
40
|
/**
|
|
@@ -52,22 +42,20 @@ function getDisplayName(port) {
|
|
|
52
42
|
*/
|
|
53
43
|
function getPortFromName(ports, name) {
|
|
54
44
|
var _a;
|
|
55
|
-
return (_a = ports.filter(
|
|
56
|
-
return port.Name === name;
|
|
57
|
-
})[0]) !== null && _a !== void 0 ? _a : null;
|
|
45
|
+
return (_a = ports.filter(port => port.Name === name)[0]) !== null && _a !== void 0 ? _a : null;
|
|
58
46
|
}
|
|
59
47
|
/**
|
|
60
48
|
*
|
|
61
49
|
*/
|
|
62
50
|
function getFileContent(encoded) {
|
|
63
|
-
|
|
51
|
+
const file = encoded.split(',');
|
|
64
52
|
return file[1];
|
|
65
53
|
}
|
|
66
54
|
/**
|
|
67
55
|
*
|
|
68
56
|
*/
|
|
69
57
|
function getFQBN(device) {
|
|
70
|
-
|
|
58
|
+
const type = getArduinoBoardType(device);
|
|
71
59
|
if (type) {
|
|
72
60
|
return arduino.ARDUINO_BOARD_FQBN[type];
|
|
73
61
|
}
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
/**
|
|
27
27
|
* Check whether the exercise file is editable.
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
const checkExerciseFileEditable = (filename, {
|
|
30
|
+
exercise,
|
|
31
|
+
exerciseRoom
|
|
32
|
+
}) => {
|
|
32
33
|
var _a;
|
|
33
34
|
if (!filename) {
|
|
34
35
|
return false;
|
|
@@ -38,16 +39,17 @@ var checkExerciseFileEditable = function checkExerciseFileEditable(filename, _re
|
|
|
38
39
|
/**
|
|
39
40
|
* Check whether the exercise file is resettable.
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const checkExerciseFileResettable = (filename, {
|
|
43
|
+
exercise,
|
|
44
|
+
exerciseRoom
|
|
45
|
+
}) => {
|
|
44
46
|
var _a, _b, _c;
|
|
45
47
|
if (!filename) {
|
|
46
48
|
return false;
|
|
47
49
|
}
|
|
48
50
|
return [checkExerciseFileEditable(filename, {
|
|
49
|
-
exercise
|
|
50
|
-
exerciseRoom
|
|
51
|
+
exercise,
|
|
52
|
+
exerciseRoom
|
|
51
53
|
}), (_a = exercise === null || exercise === void 0 ? void 0 : exercise.readyExerciseImage) === null || _a === void 0 ? void 0 : _a.taskFilelist.includes(filename), !((_b = exercise === null || exercise === void 0 ? void 0 : exercise.readyExerciseImage) === null || _b === void 0 ? void 0 : _b.readOnlyFilelist.includes(filename)), !((_c = exercise === null || exercise === void 0 ? void 0 : exercise.readyExerciseImage) === null || _c === void 0 ? void 0 : _c.hiddenFilelist.includes(filename))].every(Boolean);
|
|
52
54
|
};
|
|
53
55
|
|
package/cjs/utils/runner.js
CHANGED
|
@@ -4,82 +4,66 @@
|
|
|
4
4
|
// This logic is based on the following spreadsheet.
|
|
5
5
|
// https://docs.google.com/spreadsheets/d/1AeIf1eIlxp2MFR5hZijr-s304xVHMdtuAzcODS6nL-g/edit#gid=0
|
|
6
6
|
//
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
const PythonRuntimeErrorRegex = new RegExp(/Traceback \(most recent call last\):\n\s*File "\S+", line \d+, in \S+\n\s*.*\n(.+\n)*\S+Error:\s.+/gm);
|
|
8
|
+
const PythonSyntaxErrorRegex = new RegExp(/File "(.*?)", line (\d+)\n\s*.+\n\s*(\^+)\n(.+)Error:\s(.+)/gm);
|
|
9
|
+
const CCCPCompileErrorRegex = new RegExp(/(.*?):(\d+):(\d+):\s+(warning|error|note):\s+(.*)(\n.+\n.+)?/gm);
|
|
10
|
+
const CCCPSyntaxCompileErrorRegex = new RegExp(/(.*?\.cpp.*?)+error:\s+(.*)?/gm);
|
|
11
|
+
const CCCPRuntimeErrorRegex = new RegExp(/(\w+ fault)\s+\(.*\)/gm);
|
|
12
|
+
const JavaCompileErrorRegex = new RegExp(/(.*?):(\d+):\s+error:\s+(.*)\n.+\n.+(\n\s*symbol.+)?(\n\s*location.+)?/gm);
|
|
13
|
+
const JavaRuntimeErrorRegex = new RegExp(/^Exception in thread ".+" (.+)$\n((?:\s+at .+$\n)+)/gm);
|
|
14
|
+
const JavascriptRuntimeErrorRegex = new RegExp(/(Uncaught )?(\w+Error):\s+(.*)\n((?:\s+at .+$\n)+)/gm);
|
|
15
15
|
/**
|
|
16
16
|
* Get Programming Error Results from text.
|
|
17
17
|
*/
|
|
18
18
|
function getProgrammingErrorResult(text) {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
20
|
-
|
|
20
|
+
const escapedText = text.replace(/[\r|\\]/gm, '');
|
|
21
21
|
switch (true) {
|
|
22
22
|
case PythonRuntimeErrorRegex.test(escapedText):
|
|
23
23
|
return {
|
|
24
|
-
errorCode: (_b = (_a = escapedText.match(PythonRuntimeErrorRegex)) === null || _a === void 0 ? void 0 : _a.reduce(
|
|
25
|
-
return acc + '\n' + curr;
|
|
26
|
-
})) !== null && _b !== void 0 ? _b : '',
|
|
24
|
+
errorCode: (_b = (_a = escapedText.match(PythonRuntimeErrorRegex)) === null || _a === void 0 ? void 0 : _a.reduce((acc, curr) => acc + '\n' + curr)) !== null && _b !== void 0 ? _b : '',
|
|
27
25
|
errorLangType: 'python',
|
|
28
26
|
errorType: 'runtime'
|
|
29
27
|
};
|
|
30
28
|
case PythonSyntaxErrorRegex.test(escapedText):
|
|
31
29
|
return {
|
|
32
|
-
errorCode: (_d = (_c = escapedText.match(PythonSyntaxErrorRegex)) === null || _c === void 0 ? void 0 : _c.reduce(
|
|
33
|
-
return acc + '\n' + curr;
|
|
34
|
-
})) !== null && _d !== void 0 ? _d : '',
|
|
30
|
+
errorCode: (_d = (_c = escapedText.match(PythonSyntaxErrorRegex)) === null || _c === void 0 ? void 0 : _c.reduce((acc, curr) => acc + '\n' + curr)) !== null && _d !== void 0 ? _d : '',
|
|
35
31
|
errorLangType: 'python',
|
|
36
32
|
errorType: 'syntax'
|
|
37
33
|
};
|
|
38
34
|
case CCCPCompileErrorRegex.test(escapedText):
|
|
39
35
|
return {
|
|
40
|
-
errorCode: (_f = (_e = escapedText.match(CCCPCompileErrorRegex)) === null || _e === void 0 ? void 0 : _e.reduce(
|
|
41
|
-
return acc + '\n' + curr;
|
|
42
|
-
})) !== null && _f !== void 0 ? _f : '',
|
|
36
|
+
errorCode: (_f = (_e = escapedText.match(CCCPCompileErrorRegex)) === null || _e === void 0 ? void 0 : _e.reduce((acc, curr) => acc + '\n' + curr)) !== null && _f !== void 0 ? _f : '',
|
|
43
37
|
errorLangType: 'c/cpp',
|
|
44
38
|
errorType: 'compile'
|
|
45
39
|
};
|
|
46
40
|
case CCCPSyntaxCompileErrorRegex.test(escapedText):
|
|
47
41
|
return {
|
|
48
|
-
errorCode: (_h = (_g = escapedText.match(CCCPSyntaxCompileErrorRegex)) === null || _g === void 0 ? void 0 : _g.reduce(
|
|
49
|
-
return acc + '\n' + curr;
|
|
50
|
-
})) !== null && _h !== void 0 ? _h : '',
|
|
42
|
+
errorCode: (_h = (_g = escapedText.match(CCCPSyntaxCompileErrorRegex)) === null || _g === void 0 ? void 0 : _g.reduce((acc, curr) => acc + '\n' + curr)) !== null && _h !== void 0 ? _h : '',
|
|
51
43
|
errorLangType: 'c/cpp',
|
|
52
44
|
errorType: 'compile'
|
|
53
45
|
};
|
|
54
46
|
case CCCPRuntimeErrorRegex.test(escapedText):
|
|
55
47
|
return {
|
|
56
|
-
errorCode: (_k = (_j = escapedText.match(CCCPRuntimeErrorRegex)) === null || _j === void 0 ? void 0 : _j.reduce(
|
|
57
|
-
return acc + '\n' + curr;
|
|
58
|
-
})) !== null && _k !== void 0 ? _k : '',
|
|
48
|
+
errorCode: (_k = (_j = escapedText.match(CCCPRuntimeErrorRegex)) === null || _j === void 0 ? void 0 : _j.reduce((acc, curr) => acc + '\n' + curr)) !== null && _k !== void 0 ? _k : '',
|
|
59
49
|
errorLangType: 'c/cpp',
|
|
60
50
|
errorType: 'runtime'
|
|
61
51
|
};
|
|
62
52
|
case JavaCompileErrorRegex.test(escapedText):
|
|
63
53
|
return {
|
|
64
|
-
errorCode: (_m = (_l = escapedText.match(JavaCompileErrorRegex)) === null || _l === void 0 ? void 0 : _l.reduce(
|
|
65
|
-
return acc + '\n' + curr;
|
|
66
|
-
})) !== null && _m !== void 0 ? _m : '',
|
|
54
|
+
errorCode: (_m = (_l = escapedText.match(JavaCompileErrorRegex)) === null || _l === void 0 ? void 0 : _l.reduce((acc, curr) => acc + '\n' + curr)) !== null && _m !== void 0 ? _m : '',
|
|
67
55
|
errorLangType: 'java',
|
|
68
56
|
errorType: 'compile'
|
|
69
57
|
};
|
|
70
58
|
case JavaRuntimeErrorRegex.test(escapedText):
|
|
71
59
|
return {
|
|
72
|
-
errorCode: (_p = (_o = escapedText.match(JavaRuntimeErrorRegex)) === null || _o === void 0 ? void 0 : _o.reduce(
|
|
73
|
-
return acc + '\n' + curr;
|
|
74
|
-
})) !== null && _p !== void 0 ? _p : '',
|
|
60
|
+
errorCode: (_p = (_o = escapedText.match(JavaRuntimeErrorRegex)) === null || _o === void 0 ? void 0 : _o.reduce((acc, curr) => acc + '\n' + curr)) !== null && _p !== void 0 ? _p : '',
|
|
75
61
|
errorLangType: 'java',
|
|
76
62
|
errorType: 'runtime'
|
|
77
63
|
};
|
|
78
64
|
case JavascriptRuntimeErrorRegex.test(escapedText):
|
|
79
65
|
return {
|
|
80
|
-
errorCode: (_r = (_q = escapedText.match(JavascriptRuntimeErrorRegex)) === null || _q === void 0 ? void 0 : _q.reduce(
|
|
81
|
-
return acc + '\n' + curr;
|
|
82
|
-
})) !== null && _r !== void 0 ? _r : '',
|
|
66
|
+
errorCode: (_r = (_q = escapedText.match(JavascriptRuntimeErrorRegex)) === null || _q === void 0 ? void 0 : _q.reduce((acc, curr) => acc + '\n' + curr)) !== null && _r !== void 0 ? _r : '',
|
|
83
67
|
errorLangType: 'javascript',
|
|
84
68
|
errorType: 'runtime'
|
|
85
69
|
};
|
package/es/assets/empty.png.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABzySURBVHgB7d1NbFxVlgfwc1/ZjhOTpMqQMElrRKXp2dCRcCToXTfOpluaHg1hMYgdzrLFSIHWzGyTbLulDkjTYhlnxzALktGwgE2KZgdIGCmw4uOxGJgEiJ0GJyZ2vdv3vHpll8v18arqfZx77/8nFZUPT49dcf19znn33asIoMvq17pOFaqSpjopqkY6Ms/BYaKoqrSq8p+ZD6tv/x+o+GOrA/9HFa2Zj1lLfreWPMwf6ZAoMH8X3QlUEMYfE5jHFoW1YyokgA6KwEtJKC1GKuKweTwJogXqDCIZQn7Ewabpy4CCFfN5hrWjaoXAOwgsx8XBFNBCFJgqiYOJ1CLJC6VxrZivicPsoyAIGjRFK7WaWiNwFgLLIaurumpaqYWIogUVqaeEVkx540psRQf6Ha7GakdUg8AZCCyLbQeUpqcVaQ6nRYJeGprUSqDoGqowuyGwLLN6Sy+YudOimTk9HVdQw4bd0EtDK30t0EEDszC7ILCE21VFKb2EgMocz8Aa5grlFbSP8iGwBNoJqeh5pdQZhFRBFK1pra+ayuta7WF1lUAcBJYgq9/oRYSUEO3wQuUlCgKrZK2QQrsnXKttnA4umoF9SFAaBFYJuOWLtqKleHCOK3u2WYkoeqUyXbmKq43FQ2AVCNWUQ9otI6quQiGwCsB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AQCawRoEyFjDWpVVQ2CVNASjqCjTTxLuJkaxhdSa6X6aYTVaFBhTQDLIGBE3PLx1b+X0f6NB4E1IRNafBM131DN8606AeyFoMoIAisjyXxriRBcsANBlTEEVsaS4FoktIo+Q1DlBIGVI8y4vMOLPvme1GUEVT4QWAUwwXXGPJ2jVuUF7mkQlicUAoFVoI4FqE8Tdjy1HVdQXE1dRVAVB4FVguTKYrvqWiCwScM8rhHavlIgsErWUXU9RZh1SYVqSggEliDJ7qdLhJZRAg4pPjbrCkJKDgSWUMmgnh8Ir+Jsh5R5rKDlkweBZYGOygttY/a22z1CSImHwLKMCS8e0i9Sq/JaJBgVBxKvl+LBecME1AqBNRBYFkuuNnKAcev4OCHA+mmYx0eEKsp6CCzHJO0jh9hTyXOd/BJSq4J6J3lGQDkEgeW4jipskVpVWJ3cWfsV0k71FP8a4eQ2BJankllYnVrh9Ujy6/ZDkpBalRIH0UfJc8PXk499h8CCPZLFrPyoJo/2rw/TTqC1/6771/2s0e7DPMKOP7uTPIedzwgl6PY3RiaOTzFx/lcAAAAASUVORK5CYII=";
|
|
2
|
+
var emptyImg = img;
|
|
2
3
|
|
|
3
|
-
export {
|
|
4
|
+
export { emptyImg as default };
|
|
@@ -6,5 +6,5 @@ export interface MaterialExerciseProps extends MaterialExerciseCommonProps {
|
|
|
6
6
|
export type MaterialExerciseApis = MaterialExerciseCommonApis;
|
|
7
7
|
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<MaterialExerciseProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
8
8
|
__intl: import("@elice/intl").EliceIntlShape;
|
|
9
|
-
} & React.RefAttributes<MaterialExerciseCommonApis
|
|
9
|
+
} & React.RefAttributes<MaterialExerciseCommonApis> & import("@elice/material-shared-utils").MaterialCommponentCommonProps, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>>;
|
|
10
10
|
export default _default;
|