-
Notifications
You must be signed in to change notification settings - Fork 199
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
Add Svelte repl #182
Comments
When you click for example on Vue3 REPL on a snippet, look at the URL. |
@matschik looks like it's not implemented, but there's an open issue on it: sveltejs/sites#330 Could we use another repl for this purpose though? Perhaps codesandbox.io like Alpine does? |
Not sure how you do it with Alpine, but I'm guessing you use some starting template, and populate it with code via the url. If that's the case we can probably do the same with svelte using this template: https://codesandbox.io/s/svelte |
The Alpine playground is not a good example. The good example is Vue 3 playground. |
I see. I don't know unfortunately |
We should make sure the contents of the REPL stay in sync with the contents here. Using a hashed URL like suggested in sveltejs/sites#330 would make that difficult, so a better feature might be for the REPL to load the source from GitHub or something along those lines. |
Why would using a hashed URL be difficult? So long as we can programatically create the URL it shouldn't be an issue |
If we expose the ability to create a hashed URL then we can never change the hashing scheme because every site using it would need to be updated |
Fair point. Would definitely be neat to have a repl created and updated based on a GitHub repo |
That should not be much of an issue. A version number could be added so migrations are possible later. E.g.
|
Svelte's preview repl for the upcoming runes feature set supports encoded URLs: https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACkVPQQrCMBD8yhI8KArVa2wF_-DNeqjpVhbTTUk2goT-3bRFPc7Mzs5MUh1ZDEpfk-KmR6XVeRjUTsl7mEB4oRXMOLjozcSUwXga5FRzLRYFjIssUMEqSCO43m-OWclaF9kIOQZi47FHlvUG0qTUsni2FRyOC1EUcMEgxA9ANq7FFqK38P3RWJL3dDnWXBb_Alzeo0jOcKyNJfOs0i9tnBvObNCQ5sjZvlhOeVPvWuoIW6XFRxxv4wd_ijFPDgEAAA== Perhaps the current svelte.repl also does under the hood? I don't see any documentation on it though... So I wouldn't know how it works, or what encoding they use |
I would not recommend relying on this domain as the site will not live on after the Svelte 5 launch
It does not |
The comment above is a scam & phishing attempt. report the user. it just randomly mentioned some users. the website also is not official and a fake clone used for phishing |
Thanks @AliSawari, I just deleted the content and reported the user. |
Can we use : https://www.sveltelab.dev for this ? |
I see that some languages like
Vue 3
,Alpine
andSolidJS
have playground links to run the code:It would be nice to have the same for Svelte.
You can use the svelte repl for this purpose: https://svelte.dev/repl/
The text was updated successfully, but these errors were encountered: