diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index f8107dea7..3ac0ae982 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -36,7 +36,7 @@ jobs: run: cp -r src/java build - name: Deploy 🚀 - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build # The folder the action should deploy. diff --git a/.gitignore b/.gitignore index 9dc657cb0..bad059b58 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,7 @@ scripts/bin.js .Trashes ehthumbs.db Thumbs.db + +# IDE # +####### +.idea/ diff --git a/.gitmodules b/.gitmodules index c1655131a..f8c2f2871 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "src/java/java-packages"] path = src/java/java-packages - url = https://github.com/source-academy/java-packages + url = ../../source-academy/java-packages.git diff --git a/.vscode/settings.json b/.vscode/settings.json index df07be32f..9ae728d45 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { "eslint.experimental.useFlatConfig": true, "files.eol": "\r\n", -} \ No newline at end of file +} diff --git a/devserver/README.md b/devserver/README.md index b43160729..0107c4a8f 100644 --- a/devserver/README.md +++ b/devserver/README.md @@ -2,4 +2,4 @@ This server relies on [`Vite`](https://vitejs.dev) to create a server that automatically reloads when it detects file system changes. This allows Source Academy developers to make changes to their tabs without having to use the frontend, and have it render code changes live. -The server is designed to be run using `yarn devserver` from the repository's root directory, hence `vite.config.ts` is not located within this folder. \ No newline at end of file +The server is designed to be run using `yarn devserver` from the repository's root directory, hence `vite.config.ts` is not located within this folder. diff --git a/devserver/index.html b/devserver/index.html index 840263ca9..02cac35ad 100644 --- a/devserver/index.html +++ b/devserver/index.html @@ -1,4 +1,4 @@ - +
diff --git a/devserver/src/components/Playground.tsx b/devserver/src/components/Playground.tsx index 734d6a633..1d7e2c646 100644 --- a/devserver/src/components/Playground.tsx +++ b/devserver/src/components/Playground.tsx @@ -58,42 +58,41 @@ const Playground: React.FC<{}> = () => { } }; - const getAutoComplete = useCallback((row: number, col: number, callback: any) => { - getNames(editorValue, row, col, codeContext) - .then(([editorNames, displaySuggestions]) => { - if (!displaySuggestions) { - callback(); - return; - } - - const editorSuggestions = editorNames.map((editorName: any) => ({ - ...editorName, - caption: editorName.name, - value: editorName.name, - score: editorName.score ? editorName.score + 1000 : 1000, - name: undefined - })); - - const builtins: Record{props.output.consoleLogs.join('\n')}+
+ {props.output.consoleLogs.join('\n')} +
{props.output.consoleLogs.join('\n')}+
+ {props.output.consoleLogs.join('\n')} +
{props.output.value}
- Run some code that imports modules in the editor on the left. You should see the corresponding module tab spawn.
- Whenever you make changes to the tab, the server should automatically reload and show the changes that you've made
- If that does not happen, you can click the refresh button to manually reload tabs
-
+ Run some code that imports modules in the editor on the left. You should
+ see the corresponding module tab spawn.
+
+ Whenever you make changes to the tab, the server should automatically
+ reload and show the changes that you've made
+ If that does not happen, you can click the refresh button to manually
+ reload tabs
+
Preparing to load Unity Academy... + left: '0%', + top: '0%', + zIndex: '9999' + }} + > +
+ Preparing to load Unity Academy...
{state.description}
-
@@ -326,29 +308,21 @@ class CopyGC extends React.Component
- Your GPU is probably busy. Waiting for browser to re-establish connection... -
-+ Your GPU is probably busy. Waiting for browser to re-establish + connection... +
+Here's the details:
+
{this.state.errored.toString()}
-
{state.description}
@@ -330,29 +320,21 @@ class MarkSweep extends React.Component
Queue: [
- {state.queue.map((child) => (
+ {state.queue.map(child => (
{child},
))}
]
@@ -374,19 +356,13 @@ class MarkSweep extends React.Component