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

Load .dst file from public URL dynamically #68

Open
JJediny opened this issue Oct 19, 2019 · 3 comments
Open

Load .dst file from public URL dynamically #68

JJediny opened this issue Oct 19, 2019 · 3 comments
Labels
feature concrete new feature or request

Comments

@JJediny
Copy link

JJediny commented Oct 19, 2019

Is your feature request related to a problem? Please describe.
While collaborative editing #66 seems an unreasonable lift (websockets and all), having the ability to dynamically load a url as a file import via a url construction would solve alot of the workflow around shared editing/re-loading/displaying of exported files to continue to edit.

Describe the solution you'd like
I as a user would atleast like to maintain a github gist (etc), to give me a stable/public url, where I can continue to make updates without the url changing to a .dst file. If I was able to append that URL as part of the editor's URL to auto load, then all I would need to do to update and maintain my Domain Knowledge diagram would be load the full URL, make updates, re-download/update the github gist to version it. Next time I revisit the updated diagram would be there for me to pick up again.

Describe alternatives you've considered
Mermaid live editor uses a base64 scheme to encode the file contents to make it a shareable url:

Additional context
The editor does need some ability to save state on the internet and dynamically load from it to be useful in standard practice.

@hofstef hofstef added the feature concrete new feature or request label Mar 26, 2020
@hofstef
Copy link
Member

hofstef commented Mar 26, 2020

Loading/saving models from/to a stable public URL could improve collaboration. Using gist is certainly an option.
Alternatively encoding the whole model in the URL is not an option as we have to include the SVG of all icons as well (to support custom icons). The resulting strings (even if base64) can get really long and might exceed browser's URL limits.

@almereyda
Copy link
Contributor

Loading files from CORS-enabled enpoints denoted in a URL fragment will improve collaboration workflows a lot.

@StevenVanDijk
Copy link

I give a course on DDD and use your site for knowledge crunching phase. Currently I have a DST with extra icons etc in a gist that participants have to download, save to their machine and then manually import. This all takes time and when they don't figure it out I have to come in and help them out. It would be very helpful if I could provide a link they could click and have the import take place automatically.

This issue seems to address my need, but it is open since 2019. Is it still considered?

As an aside, I appreciate the service you are providing to the community with this tool and understand you probably have limited time to work on this. I'm just checking the status.

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

No branches or pull requests

4 participants