Coder Social home page Coder Social logo

iansjk / arknights-materials-checklist Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 44.46 MB

Create material checklists for Arknights

Home Page: https://arknights-materials-checklist.vercel.app

License: MIT License

JavaScript 47.91% HTML 1.14% TypeScript 50.95%

arknights-materials-checklist's People

Contributors

iansjk avatar

arknights-materials-checklist's Issues

Add export functionality

Currently the code uses useLocalStorage to preserve state across sessions.

Proposal:

  • Add "export" button
  • When clicked, generate a string of length 3 in base62, called slug
  • Check if it already exists in MongoDB, if so regenerate it
  • Rewrite current URL to end in /slug
  • Bind current localStorage state to slug in MongoDB
  • Inform user to bookmark <baseurl>/<slug> and visit that URL on other devices to import.

Future site visits that have a /slug in their URL will fetch state from MongoDB on page load.
To resolve conflicts, use last-write-wins. (Will need to start storing a lastUpdated property in localStorage as well.)

Allow goals to be completed, not just deleted

Currently the only modification that can be made to existing operator goals is to delete them ("x"). There should be an equivalent "โœ…" button that removes the goal but also deducts owned materials for that goal.

The overall idea is to keep manual updates to owned material counts as small as possible. (Deleting an operator goal without deducting its required items desyncs the checklist counts from ingame counts.)

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.