Skip to content

Commit

Permalink
feat: Independently encapsulate the project runner (goplus#119)
Browse files Browse the repository at this point in the history
* refactor:

* refactor: demo finished

* tidy comments

* tidy directory: remove wase_exec and rename

* feat: Independently encapsulate the project runner

* fix: Accept PR suggestions

* feat: Embed main.html into the project runner

* feat: Add stop function to project runner and fix PR recommend

* feat: Reconstruct the project runner according to the new plan

* feat: Add asynchronous calls

* fix after rebase

* do not create dir on build-wasm

* add wasm_exec to git

* feat: rebuild project runner

* remove link of runner.html as it's no longer used

* feat: Using import to import assets

* feat: run project for project-runner

* refactor: finish running/stopping

* remove debug logs in wasm

* update wasm build script

* remove unused async

* update build script and paths

* use imperative apis

* include data fetching in run

* clone fs on chroot

* Refactor ProjectRunner.vue component

* explicitly depend on ref for iframeDisplay

---------

Co-authored-by: ComfyFluffy <[email protected]>
  • Loading branch information
qing-wq and ComfyFluffy authored Mar 6, 2024
1 parent c7eba08 commit 90c46b3
Show file tree
Hide file tree
Showing 31 changed files with 342 additions and 2,002 deletions.
6 changes: 3 additions & 3 deletions spx-gui/build-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ source build.sh

cd ..

mkdir -p ../spx-gui/public/wasm
cp fmt/static/main.wasm ../spx-gui/public/wasm/format.wasm
cp ispx/main.wasm ../spx-gui/public/wasm/run.wasm
cp fmt/static/main.wasm ../spx-gui/src/assets/format.wasm
cp ispx/main.wasm ../spx-gui/src/assets/ispx/main.wasm
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ../spx-gui/src/assets/wasm_exec.js
1 change: 0 additions & 1 deletion spx-gui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<div id="appLoading"></div>
</div>
<script type="module" src="/src/main.ts"></script>
<script src="/js/wasm_exec.js"></script>
</body>

</html>
Expand Down
100 changes: 0 additions & 100 deletions spx-gui/public/js/filesystem.js

This file was deleted.

Loading

0 comments on commit 90c46b3

Please sign in to comment.