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

Make the nebula wizard embed-able #113

Open
geofmureithi opened this issue Nov 23, 2023 · 2 comments
Open

Make the nebula wizard embed-able #113

geofmureithi opened this issue Nov 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@geofmureithi
Copy link
Contributor

Describe the solution you'd like
I would want to be able to pragmatically embed a contract. This would generate the usual invoke and similar commands.

Consider such an example:

<script src="path/to/embedded.js"/>
<div id="container"></div>
<script>
  let nebula = new NebulaEmbed({
       pulsarUrl: "some/path",
       contract: "some/git/path"
  });
  nebula.bind("container");
</script>

A Remix button can be included to redirect to the pulsar IDE.

Additional context
We can borrow more context from other similar embed-able wizards.

@geofmureithi geofmureithi added the enhancement New feature or request label Nov 23, 2023
@geofmureithi
Copy link
Contributor Author

How would this work?

  • Create a comprehensive component for the CodeEditor
  • Allow the component to be usable by both projects.
  • Allow compiling the component as a stand alone javascript file.

@geofmureithi
Copy link
Contributor Author

geofmureithi commented Dec 4, 2023

An alternative to the code syntax above:

<script 
    src="path/to/embed.js" 
    data-pulsar-url="/path" 
    data-contract-url="some-git-path" 
    data-bind-to="#container"
/>

References:
https://stackoverflow.com/questions/49626885/embedding-reactjs-in-remote-site-iframe
https://stackoverflow.com/questions/326069/how-to-identify-if-a-webpage-is-being-loaded-inside-an-iframe-or-directly-into-t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant