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

Synchronise configuration #11

Open
clanghout opened this issue Jul 24, 2018 · 3 comments
Open

Synchronise configuration #11

clanghout opened this issue Jul 24, 2018 · 3 comments

Comments

@clanghout
Copy link
Owner

The configuration is currently stored in localstorage, which means that if you use the dashboard on another device, you start with a blank grid.
Session storage is an option to use. This can be used to store data that will be synchronised using a google account.

The problem is that the configuration I am currently using produces json that is too big (in file size) to immediately save to session storage.

The json can possibly be trimmed, but will not fix the entire problem in the case people want to load in complete configurations.

@clanghout
Copy link
Owner Author

My current thought is making a list of actions that can be pushed to the session storage from the localstorage. This will also mean that a history will be saved that can be used to undo changes.

@clanghout
Copy link
Owner Author

Also a merge might be necessary if different configurations are pushed to the session storage.

Basing the storing on events will be a fix, if the newly added widgets do not fit in the current config, gridstack should automatically reposition them.

@clanghout
Copy link
Owner Author

See #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant