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

New component Slangroom-editor examplse loader #9

Closed
puria opened this issue Jul 22, 2024 · 2 comments · Fixed by #14
Closed

New component Slangroom-editor examplse loader #9

puria opened this issue Jul 22, 2024 · 2 comments · Fixed by #14

Comments

@puria
Copy link
Member

puria commented Jul 22, 2024

One component should be created to allow to read and load inside the editor some examples:

<dyne-slangroom-preset-loader target-id="editor" folder="./examples" />
<dyne-slangroom-editor id="editor">
</dyne-slangroom-editor>

I envision something like the code before.

The examples can also be written as slot inside like:

<dyne-slangroom-preset-loader>
  <dyne-slangroom-preset id=`` conrtact=`` data=`` keys=`` title=`` description=`` group=``></dyne-slangroom-preset>
</dyne-slangroom-preset-loader>
@bbtgnn
Copy link
Collaborator

bbtgnn commented Jul 22, 2024

Can i add https://github.com/dyne/slangroom/tree/main/docs/examples as submodule of this repo?
I have to add the whole repo as submodule?

@bbtgnn
Copy link
Collaborator

bbtgnn commented Jul 23, 2024

@puria I am using degit to clone only the examples, I added a npm script

@bbtgnn bbtgnn linked a pull request Jul 25, 2024 that will close this issue
@puria puria closed this as completed in #14 Aug 1, 2024
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 a pull request may close this issue.

2 participants