Local storage #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
An hypothesis to use stolon as a guest, without credentials, would be to use local storage.
When not logged in and trying to save, when the login form pops up, a “continue as guest” would appear.
It would trigger a popup / alert to warn that local storage will be used (persistence is only guaranteed until browser data is wiped out).
We could then inject the local stems at the start of the stems gallery, marking them with a special border / ribbon.
mentioned in issue #28
That is an excellent idea!
Some quick notes, thrown here:
Ow…
This moment when you realize your idea was broken at start: some HTML, JS and CSS files are needed for the iframe! But we can’t create files locally (storing data is easy, but not creating files).
Pfu.. I fear the only option for “guests stems” would be a server-side option.
Yes true, unfortunately. We could store stems’ JSON to local storage but that would mean rewrite the entire folder-dependent PHP code just for that case. It doesn’t worth it. Plus, I wonder if this guest option is really needed, maybe on your side? But not on mine, at least for now.
I wanted to allow the local forking of stems by students, without giving full access and polluting the global gallery. But indeed, that would require a massive change in how stems are stored on the server (without even mentioning some security issues we don’t want to deal with!)? Definitely not worth it…
I was about to close the issue when I encountered https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc ;)
Oh. That could be interesting, also maybe to optimize the saving, that is sometimes a bit laggy.