Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

local storage wrapper #93

Merged
merged 4 commits into from
Jun 23, 2021
Merged

local storage wrapper #93

merged 4 commits into from
Jun 23, 2021

Conversation

s-cork
Copy link
Collaborator

@s-cork s-cork commented Jun 23, 2021

This module provides a python dictionary like wrapper around window.sessionsStorage and window.localStorage

the local_storage object allows for persistent data across sessions.
It can be used to create a simple todo app that works offline (for example)

@meatballs
Copy link
Member

Very nice indeed! If you're still working on it, could you make this PR a draft?

@s-cork
Copy link
Collaborator Author

s-cork commented Jun 23, 2021

@meatballs - how do I check the docs render nicely - i basically took the source code from the cpython dict rst and amended it...

@s-cork s-cork marked this pull request as draft June 23, 2021 14:33
@meatballs
Copy link
Member

meatballs commented Jun 23, 2021

At the moment, you have to build them locally. I keep meaning to look into how to get a preview via github actions.

https://anvil-extras.readthedocs.io/en/latest/guides/contributing.html#documentation

@s-cork
Copy link
Collaborator Author

s-cork commented Jun 23, 2021

oh yeah - i did that once ta - once i've checked the docs i think it'll be good to merge

@s-cork s-cork marked this pull request as ready for review June 23, 2021 15:27
@meatballs meatballs merged commit 5006044 into main Jun 23, 2021
@meatballs meatballs deleted the local-storage branch June 23, 2021 15:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants