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
+19 -26
View File
@@ -237,31 +237,24 @@ export function bindState(bind: React.Component, state: State): Update {
};
}
export namespace State {
export interface Settings {
location: boolean;
validator: boolean;
implementation: boolean;
networkId: boolean;
peers: boolean;
txs: boolean;
upload: boolean;
download: boolean;
stateCacheSize: boolean;
blocknumber: boolean;
blockhash: boolean;
finalized: boolean;
finalizedhash: boolean;
blocktime: boolean;
blockpropagation: boolean;
blocklasttime: boolean;
uptime: boolean;
}
export interface SortBy {
column: string;
reverse: boolean;
}
export interface StateSettings {
location: boolean;
validator: boolean;
implementation: boolean;
networkId: boolean;
peers: boolean;
txs: boolean;
upload: boolean;
download: boolean;
stateCacheSize: boolean;
blocknumber: boolean;
blockhash: boolean;
finalized: boolean;
finalizedhash: boolean;
blocktime: boolean;
blockpropagation: boolean;
blocklasttime: boolean;
uptime: boolean;
}
export interface State {
@@ -275,7 +268,7 @@ export interface State {
subscribed: Maybe<Types.GenesisHash>;
chains: Map<Types.GenesisHash, ChainData>;
nodes: SortedCollection<Node>;
settings: Readonly<State.Settings>;
settings: Readonly<StateSettings>;
pins: Readonly<Set<Types.NodeName>>;
sortBy: Readonly<Maybe<number>>;
selectedColumns: Column[];