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

VuePlayground component #30

Open
benatkin opened this issue Nov 9, 2022 · 1 comment
Open

VuePlayground component #30

benatkin opened this issue Nov 9, 2022 · 1 comment

Comments

@benatkin
Copy link
Member

benatkin commented Nov 9, 2022

Make a component that creates a live-updating playground for Vue. Property ideas:

  • sandbox="group" or sandbox="page" - require it to be sandboxed as a group/page
  • sandbox="on" - require it to be sandboxed individually
  • sandbox="off" - don't require sandbox - should be indexed so it can be inspected for security
  • permissions="" list of permissions of things accessed through postMessage and the sandbox attribute
  • style libraries and whether to wrap in web component (separate styles)
  • link to file (can be used to make sure windicss/unocss styles inside it are compiled)
@benatkin
Copy link
Member Author

Sandbox

<p class="hello">Hello, World.</p>

Sandbox

.hello {
  color: rebeccapurple;
}

Sandbox

document.querySelector('.hello').innerText = 'Hello, IndieWebCamp!!!'

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

No branches or pull requests

1 participant