Update frontend dependencies (#498)

* update npm packages

* update tsconfig

* remove babelrc, babel presets as well as stable package

* fix svg namespace tag syntax errors

* fix reference error due to namespace and class component having same name

* replace tslint with eslint

* make eslint happier

* update .nvmrc to 14

* update node version to 14 in gh workflow

* fix eslint warnings due to warnings treated as errors on CI (process.env.CI = true)

* pretty fix

* bump node version in Dockerfile

* use createRoot instead of react-dom render

* update browsers list in package.json
This commit is contained in:
serge
2022-09-16 10:07:51 +00:00
committed by GitHub
parent d525056190
commit 41c93a8a19
72 changed files with 8089 additions and 8612 deletions
+3 -9
View File
@@ -17,18 +17,12 @@
import * as React from 'react';
import { Maybe } from '../../common';
import { State as AppState } from '../../state';
import { Row } from '../List';
import { PersistentObject } from '../../persist';
import { Ranking, Range } from '../../common/types';
import './Stats.css';
export namespace Stats {
export type Display = 'list' | 'map' | 'Stats';
export interface Props {
appState: Readonly<AppState>;
}
interface StatsProps {
appState: Readonly<AppState>;
}
function displayPercentage(percent: number): string {
@@ -138,7 +132,7 @@ function formatScore(value: Range): string {
return (min / 100).toFixed(1) + 'x';
}
export class Stats extends React.Component<Stats.Props, {}> {
export class Stats extends React.Component<StatsProps> {
public render() {
const { appState } = this.props;