Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix usage inside of stackblitz.com online IDE #58

Merged
merged 4 commits into from
Nov 16, 2024

Conversation

Simon-Laux
Copy link
Contributor

@Simon-Laux Simon-Laux commented Nov 15, 2024

Why?

Because it could become a convenient way to develop webxdc apps without installing anything.

What does this?

detect if it is run in stackblitz, if yes it transforms urls to make it work.

What's next?

maybe also fix/add support other webIDE software like Github Codespaces.

Copy link
Contributor

@WofWca WofWca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's just me being too out of the loop, but it's the first time I hear about WebContainers, so I personally would like to see some comments.

Also this includes unrelated formatting changes, but there is not a lot of them, so I guess it's fine.

Otherwise there aren't that many changes, it doesn't look like things are gonna break. And the feature itself is nice!

sim/webxdc.ts Outdated Show resolved Hide resolved
sim/webxdc.ts Outdated Show resolved Hide resolved
sim/webxdc.ts Outdated Show resolved Hide resolved
backend/instance_url.ts Outdated Show resolved Hide resolved
backend/run.ts Outdated
import process from "process";
import open from "open";
import process from 'process';
import open from 'open';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems you used prettier which caused some noise in the PR, we should integrate prettier to avoid such styling issues

@adbenitez
Copy link
Contributor

the code now is formatted with prettier, please rebase

Copy link
Contributor

@WofWca WofWca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from Prettier / formatting changes, looks good!
I did not test though.

sim/webxdc.ts Outdated Show resolved Hide resolved
@WofWca
Copy link
Contributor

WofWca commented Nov 16, 2024

the code now is formatted with prettier, please rebase

To clarify: IMU Prettier needs to be run before commit

Copy link
Contributor

@r10s r10s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stackblitz sounds interesting, indeed - and, without understanding too much nor tested things, the PR looks useful also otherwise and easy enough.

thanks for diving into that ❤️

@Simon-Laux Simon-Laux merged commit 3c8a002 into main Nov 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants