Coder Social home page Coder Social logo

japro-webapp's Introduction

Hi there ๐Ÿ‘‹

  • โšก Iโ€™m full time working as a Software Engineer
  • ๐Ÿ“ซ You can reach me by email: [email protected]
  • โšก My ELO System from Jedi Knight: Jedi Academy Games: https://skirata.pro/

๐Ÿ› ๏ธ Languages and Tools :

NodeJSย  JavaScriptย  PostgreSQL

GitHub Streak

japro-webapp's People

Contributors

miguelsotobaez avatar videop avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

videop qk-lite

japro-webapp's Issues

Duel elo graph needs improvement

It should have a dropdown filter to pick which style to graph, or it should graph all at once with different line colors.

It should also smooth the lines maybe?

improve update functinality

(When page is loaded?), Server check if last update was within X time, and if so auto update.

(When page is loaded?) Client check if last update was more than Y time ago, if so draw update button. Otherwise gray button out and print "up to date".

Update button needs to reload the datatables with the new json

If last update was less than Y time ago, draw last update time and make update button clickable.

X= 6 hours?
Y= 1 minute?

longshot - it should reload the tables/charts instead of the whole page

website race scores desync

the website scores get desyncd (they seem to always be lower than the ingame ones).
its a problem with the website or stat API i think. ingame is correct and does not change when rebuilt.
maybe a problem with last_update column somewhere.
remaking the web race DB fixes the problem.

its not a problem with the # of rows (its the same before and after remake). but some of the contents (rank/season_rank/entries/season_entries) are getting desyncd somehow?

In race list table, remove existing datatable dropdown filters and replace them with new ones

The style and user dropdowns can get their values from the existing raceranks json data, the map dropdown will have to use a new json from a new query

They should update filterPlayer, filterMap, filterStyle vars
On select/change, they should requery getJSON

This lets us have a fast pageload (only load recent races to .json) but also have every option for filtering, and when a filter is applied a new query will be done.

This would replace the existing dropdown filters in race_list

Ideally the new dropdowns would use live-search https://silviomoreto.github.io/bootstrap-select/examples/

Gun Stats

The stats of guns section does not seems to show correctly, need to show up gun name and not his id.

adapt website to work with stats_api

so website can get .db info from external gameserver

update button and last update time text should exist on - race, player, and duel pages

if last update time is >6 hours(?), auto update
otherwise only update when button is pressed
dont allow update from button press if last update was within 1 minute

when button is pressed, update (race page updates race table, etc)
player page updates everything

store last_update_time for localduel (end_time), and localaccount (lastlogin)
only get rows since last updatetime for localduel/localaccount

for localrun, get all rows since races affect other race scores (or store last_update_time in the localrun row and compare to that?)

either be aware of race duplicates when updating or just insert then cleanup duplicates at very end

when races are updated, create race_rank query cache
when duels are updated, create duel_rank query cache

use json compression

Fix number formatting

Most items with decimal places should be rounded to 2 decimal digits, but only if needed. For example, 5 instead of 5.00.

Move style filter box to top of race page

Remove the style filter boxes from inside the panels on the race page and move it to the top of page. It should then apply to all panels on the page (race list, race ranks, pie chart).

Sometimes the "entries" column is not the same between website and gameserver ?

All other columns seem to be syncd.
Tested with select sum(entries) from both, gives different values (webserver has lower number). Can't replicate ATM. Does not seem to happen after a webserver DB wipe and refresh.

Also even with identical data, mysql seems to calculate the dftoprank score column differently?
to replicate: clear web DB, get up to date race stats from gameserver. Check the race_rank table and also run the race_rank query n sqlite on the gameserver data and the numbers will be different.

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.