Git Product home page Git Product logo

new-tab-myanimelist's People

Contributors

ricklancee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

new-tab-myanimelist's Issues

Sort watching by airing first then start date

The current watching list is sorted by start dates first, but it would be an improvement to sort the list by what's airing first and then start dates. This will make sure two-cour shows are not falling behind shows that are finished.

Current, ACCA is finished but LWA is still airing.

The desired way would be LWA first since it's still airing.

Complete an anime when finished

When finished with watching a show the a card should prompt to complete the show. This should also set the completed at date (if it's not already set).

Add localisation option

The app should have some form of localisation with localisation strings in a json file and toggleable with an option.

lang/
  en.json
  nl.json

Refactor and improve the way state is handled

Currently the way state is handled is done by passing through a global state (the list) and not always copied but passed as a reference within each component. This isn't the best way since changing the state object would result in the state changing within each component.

Retry connection when offline

With no connection the list is still loaded from localstorage and images from disk (if cached), however some images might nog get loaded and an error is thrown that mal could not be updated.
The app should retry to fetch the list when connection is back up and show a different error when down.

  • Retry connection when internet is back online
  • Any changes made to the list should be saved and uploaded to mal when back online (check for changes on mal first)
  • Possible use a service worker for cached images

Remove moment js

Remove moment js since it's HUGE and only used for displaying human readable dates diffs like
in 2 days which can be written manually.

Refactor components into a more manageable way

Currently components have a lot of duplicate code, especially bootstrapping and passing dependencies. This should be done in a more modular way.

For instance create a factory that binds dependencies.

// component.js
function component({ bus, time }, selector, state) {
  ...
}

export default componentFactory(deps) {
  return component.bind(null, deps);
}

// shell.js
...
const component = componentFactor({ time, bus });
component('selector', state)

Components should also be composed together with some way of generic component bootstrapping to avoid having to write a register function for each component.

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.