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

Settings saved server side #27

Open
magma1447 opened this issue May 21, 2015 · 1 comment
Open

Settings saved server side #27

magma1447 opened this issue May 21, 2015 · 1 comment

Comments

@magma1447
Copy link
Owner

Now when the Router() is run after CheckPGCLogin(), we can fetch settings from server side. Most end users probably wants the same settings in all their browsers. Settings should be returned with the GetMyUsername method.

However, a local override of server side settings stored with GM_setValue would be nice. This makes it a bit tricky. For each setting we need to show the server side setting and then 3 radio buttons (with checkbox look?) for "use server side", "checked", "unchecked". A final column with the effective result would be nice. Some extra javascript writing.

A button named "Push settings to PGC" or similar should be added for server side save. The old button should be renamed to "Local save" or so.

@magma1447
Copy link
Owner Author

Assigned to me due to lack of server side support.

I will probably create a generic json data store server side. For storing settings one can the do something like {StoreData: {"key": "Settings", "value": json}}.

Initially there will be a limit of how much data can be stored that is fairly low, like 1 kB. In the future maybe we would like to be able to save longer cache notes this way?

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