Coder Social home page Coder Social logo

summonersconfig's People

Contributors

marcincichocki avatar

Watchers

 avatar  avatar

summonersconfig's Issues

Display loading animation on bootstrap.

During bootstraping screen is blank. User might be confused what is going on. Name of application and loading spinner should be displayed on the screen until app is loaded.

Percentage pipe.

runeService should not have function to modify view. Its purpose is to provide data and operation on these, not to change the view. .isPercentage() should be moved to new pipe and used from there.

Provide interfaces for static data.

Data loaded on init(runes and masteries static data) should have own interfaces instead of being type any. Here is preview for runeService

// staticData.ts
export interface STATIC_DATA_UNITS {
  [key: string]: string;
}

export interface STATIC_DATA_RUNES {
  [key: string]: {
    id: number;
    name: string;
    description: string;
    tier: number;
    image: string;
    primary: string;
    type: string;
    available: boolean;
    ip: number;
    tags: string[];
    stats: {
      [key: string]: number;
    };
  };
}

// runeService.ts
import {STATIC_DATA_UNITS, STATIC_DATA_RUNES} from './staticData';
// ...
class RuneService { 
  // Data is loaded async.
  public units: STATIC_DATA_UNITS = {};
  public runes: STATIC_DATA_RUNES = {};
  // ...

  someFunction(id, unitId) {
    // Intelisense works!
    this.runes[id].stats[unitId].toFixed(2);
  }
}

Import runes and masteries.

Allow user to import runes and masteries for given server and summoner name.

Things to be done:

  • Import component(home should be fine, now it is empty).
  • Styles(form should be big, easy to notice, most probably centerd).
  • Server handle request to riot api and return data.
  • Client populate pages with data received(services should handle that).

Rune list search box error.

Search pipe throws an error when special character is passed. It happen because whole filtering thing is builded with regexp. This should be fixed with escaping special characters(like * or +) or using different method(like includes or indexOf).

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.