Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
jio
jio
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Merge Requests 18
    • Merge Requests 18
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Commits
  • nexedi
  • jiojio
  • Merge Requests
  • !43

Open
Opened Jan 27, 2017 by Sven Franck@frequent
  • Report abuse
Report abuse

WIP serviceworker storage prototype

A first implementation of jIO serviceworker storage. I use it with the serviceworker.js file I put into tests. A document is a cache (there can be multiple), files are attachments.

The storage just implements the jIO api using postmessage, the serviceworker file handles the incoming events and interacts with cache (not indexeddb). It does not hook into fetch to override the default way of requesting files, because I only use it as a pure storage, not a server replacement.

It's missing tests and I don't know which jslint rules to follow. I'll add those when feasible.

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://lab.nexedi.com/frequent/jio.git serviceworker_storage
git checkout -b frequent/jio-serviceworker_storage FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/master
git merge --no-ff frequent/jio-serviceworker_storage

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 0
  • Commits 1
  • Changes 3
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/jio!43
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7