GithubHelp home page GithubHelp logo

ignavan39 / telework Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 12.84 MB

Statistics on web platforms used by quarantined teachers on 04/12/20

Home Page: https://telework-statistic.herokuapp.com/

License: MIT License

JavaScript 97.92% HTML 0.49% TypeScript 1.53% CSS 0.04% Dockerfile 0.01% Shell 0.01%
chartjs csv-parsing express nodejs quarantined-teachers react redux statistics telework typescript

telework's Introduction

Hi there 👋

About:

  • My name is Ivan, I work 🏢 and write code 💻 all the time
  • Passionate about Web and Distributed Systems
  • Javascript expirience since 2020
  • Golang expirience since 2021
  • Started programming in 2016 in C to solve exam problems

🛠️ languages and tools:

golang javascript javascript clang cpp

expressjs nestjs docker graphql redux react vue vuex

postgresql docker rabbitMQ k8s nginx

📊 Stats

Anurag's GitHub stats

Top Langs

Contacts:

Telegram Badge Email Badge Hh Badge|

telework's People

Contributors

daniil-fox avatar dependabot-preview[bot] avatar dependabot[bot] avatar ignavan39 avatar ocultus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

telework's Issues

Миграция на React

  • Мигрировать клиента на реакт
  • библиотека для отрисовки пока что остановился вот на этой

для @Ocultus задачи :

  • оформить два компонента в которых будут обрабатываться данные перед отрисовкой графика

Разбить всё на компоненты

Atomic design

Некоторые компоненты ( графики ) по своей логике одинаковые - можно их шаблонизировать

  • вынести title , select, drop-down в компоненты, т.к они тоже повторяются

Формировать цвет для графика с помощью hsl

Иногда цвет генериться очень рандомно

  • добавить hsl вместо
colors = Array<string>();
    for (let i = 0; i < counters.length; i++) {
      colors.push(`rgb(
                ${Math.floor(Math.random() * Math.floor(255))}
                ,${Math.floor(Math.random() * Math.floor(255))}
                ,${Math.floor(Math.random() * Math.floor(255))})`);

Переделать логику графиков

Придумать как не плодить кучу страниц для разных графиков а унифицировать графики по их типу
(Pie / Bar) чтобы в итоге осталось две .vue сущности

Перекинуть всю логику обработки информации по запросу на бэкеннд

  • добавить query запросы по типу :
api/?school=108
  • перевести логику обработки формирования данных для графика на бэкеннд

Пример:

const parseData = () => {
    const answersMap = new Map<string, number>();
    let totalNumberHere = 0;
    if (school === "all") {
      answers.map((item) => {
        totalNumberHere++;
        if (answersMap.has(item.ready)) {
          let counter = answersMap.get(item.ready);
          if (counter) {
            counter++;
            answersMap.set(item.ready, counter);
          }
        } else {
          answersMap.set(item.ready, 1);
        }
      });
    } else {
      answers.map((item) => {
        if (item.school.trim() === school.trim()) {
          totalNumberHere++;
          if (answersMap.has(item.ready)) {
            let counter = answersMap.get(item.ready);
            if (counter) {
              counter++;
              answersMap.set(item.ready, counter);
            }
          } else {
            answersMap.set(item.ready, 1);
          }
        }
      });
    }

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.