Giter VIP home page Giter VIP logo

Comments (6)

5e-Cleric avatar 5e-Cleric commented on May 26, 2024

So, how would this fit with autosave to db? i see no mention of when to do the request, once a day? every 2 hours?

from homebrewery.

calculuschild avatar calculuschild commented on May 26, 2024

Autosave to DB would be untouched (3 seconds after the last activity).

This just adds additional backup copies to localstorage.

from homebrewery.

5e-Cleric avatar 5e-Cleric commented on May 26, 2024

oh mb this is not to replace autosave, but to provide previous backup as a faux versioning system, right?

I mean, it would be an actual versioning system, even if rudimentary.

from homebrewery.

calculuschild avatar calculuschild commented on May 26, 2024

Yes. Essentially provides temporary a versioning system locally.

from homebrewery.

5e-Cleric avatar 5e-Cleric commented on May 26, 2024

Adn about time stamps, i guess it is as simple as checking all 5 timestamp diffs in every autosave.

from homebrewery.

calculuschild avatar calculuschild commented on May 26, 2024

Check all timestamp diffs, starting with the largest diff (2 days), and expire only the first one found (oldest) that is past its expiry time. Then move all the other backups down one slot, and add a new backup at the lowest open slot.

from homebrewery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.