linty things
This commit is contained in:
parent
ced7a7ca82
commit
3eeb6eaece
18
web/package-lock.json
generated
18
web/package-lock.json
generated
@ -1566,6 +1566,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@types/chart.js": {
|
||||||
|
"version": "2.9.28",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/chart.js/-/chart.js-2.9.28.tgz",
|
||||||
|
"integrity": "sha512-9YYhsxRngRJb0dkuaU5BezkF+zvvVHnwdRw+rtlahtFb4zqNf9YSgWsOq+dLYeh0fqsWmHUYLR64eNigh02F+w==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"moment": "^2.10.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@types/color-name": {
|
"@types/color-name": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
|
||||||
@ -1613,6 +1622,15 @@
|
|||||||
"csstype": "^3.0.2"
|
"csstype": "^3.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@types/react-linkify": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/react-linkify/-/react-linkify-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-2NKXPQGaHNfh/dCqkVC55k1tAhQyNoNZa31J50nIneMVwHqUI00FAP+Lyp8e0BarPf84kn4GRVAhtWX9XJBzSQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/react": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@types/unist": {
|
"@types/unist": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.3.tgz",
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
"sass": "^1.26.11"
|
"sass": "^1.26.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/chart.js": "^2.9.28",
|
||||||
"@types/node": "^14.11.2",
|
"@types/node": "^14.11.2",
|
||||||
"@types/prop-types": "^15.7.3",
|
"@types/prop-types": "^15.7.3",
|
||||||
"@types/react": "^16.9.49",
|
"@types/react": "^16.9.49",
|
||||||
|
"@types/react-linkify": "^1.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.3.0",
|
"@typescript-eslint/eslint-plugin": "^4.3.0",
|
||||||
"@typescript-eslint/parser": "^4.3.0",
|
"@typescript-eslint/parser": "^4.3.0",
|
||||||
"eslint": "^7.10.0",
|
"eslint": "^7.10.0",
|
||||||
|
@ -2,12 +2,6 @@ import { LineChart } from 'react-chartkick'
|
|||||||
import styles from '../../styles/styles.module.scss';
|
import styles from '../../styles/styles.module.scss';
|
||||||
import 'chart.js';
|
import 'chart.js';
|
||||||
|
|
||||||
const defaultProps = {
|
|
||||||
active: false,
|
|
||||||
payload: Object,
|
|
||||||
unit: '',
|
|
||||||
};
|
|
||||||
|
|
||||||
interface TimedValue {
|
interface TimedValue {
|
||||||
time: Date;
|
time: Date;
|
||||||
value: number;
|
value: number;
|
||||||
|
@ -2,7 +2,7 @@ import { Table, Typography } from "antd";
|
|||||||
|
|
||||||
const { Title } = Typography;
|
const { Title } = Typography;
|
||||||
|
|
||||||
export default function KeyValueTable({ title, data }) {
|
export default function KeyValueTable({ title, data }: KeyValueTableProps) {
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: "Name",
|
title: "Name",
|
||||||
@ -23,3 +23,8 @@ export default function KeyValueTable({ title, data }) {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface KeyValueTableProps {
|
||||||
|
title: string,
|
||||||
|
data: any,
|
||||||
|
};
|
@ -1,4 +1,5 @@
|
|||||||
import { Typography, Statistic, Card, Progress} from "antd";
|
import { Typography, Statistic, Card, Progress} from "antd";
|
||||||
|
|
||||||
const { Text } = Typography;
|
const { Text } = Typography;
|
||||||
|
|
||||||
interface StatisticItemProps {
|
interface StatisticItemProps {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable no-array-constructor */
|
|
||||||
import { BulbOutlined, LaptopOutlined, SaveOutlined } from "@ant-design/icons";
|
import { BulbOutlined, LaptopOutlined, SaveOutlined } from "@ant-design/icons";
|
||||||
import { Row } from "antd";
|
import { Row } from "antd";
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable no-console */
|
|
||||||
/*
|
/*
|
||||||
Will display an overview with the following datasources:
|
Will display an overview with the following datasources:
|
||||||
1. Current broadcaster.
|
1. Current broadcaster.
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable react/prop-types */
|
|
||||||
import React, { useContext } from "react";
|
import React, { useContext } from "react";
|
||||||
import KeyValueTable from "./components/key-value-table";
|
import KeyValueTable from "./components/key-value-table";
|
||||||
import { ServerStatusContext } from '../utils/server-status-context';
|
import { ServerStatusContext } from '../utils/server-status-context';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable react/prop-types */
|
|
||||||
import React, { useContext } from 'react';
|
import React, { useContext } from 'react';
|
||||||
import { Table, Typography, Input } from 'antd';
|
import { Table, Typography, Input } from 'antd';
|
||||||
import { isEmptyObject } from '../utils/format';
|
import { isEmptyObject } from '../utils/format';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable react/prop-types */
|
|
||||||
import React, { useContext } from 'react';
|
import React, { useContext } from 'react';
|
||||||
import { Table, Typography } from 'antd';
|
import { Table, Typography } from 'antd';
|
||||||
import { ServerStatusContext } from '../utils/server-status-context';
|
import { ServerStatusContext } from '../utils/server-status-context';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable react/prop-types */
|
|
||||||
import React, { useState, useEffect, useContext } from 'react';
|
import React, { useState, useEffect, useContext } from 'react';
|
||||||
import { Table, Row } from "antd";
|
import { Table, Row } from "antd";
|
||||||
import { formatDistanceToNow } from "date-fns";
|
import { formatDistanceToNow } from "date-fns";
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve"
|
"jsx": "react"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user