Fix TS issues
This commit is contained in:
parent
0066f5c931
commit
1f34cb5aa5
7 changed files with 14384 additions and 153 deletions
17
dashboard/.eslintrc.js
Normal file
17
dashboard/.eslintrc.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
module.exports = {
|
||||||
|
extends: ['next/core-web-vitals', 'airbnb-typescript', 'eslint:recommended', 'plugin:import/typescript'],
|
||||||
|
parser: '@typescript-eslint/parser',
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
sourceType: 'module',
|
||||||
|
project: './tsconfig.json',
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
plugins: ['@typescript-eslint', 'import'],
|
||||||
|
rules: {
|
||||||
|
'arrow-body-style': 0,
|
||||||
|
'no-restricted-exports': 0,
|
||||||
|
'max-len': [1, { code: 200 }],
|
||||||
|
'import/extensions': ['error', 'ignorePackages', { js: 'never', jsx: 'never', ts: 'never', tsx: 'never' }],
|
||||||
|
},
|
||||||
|
};
|
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
"extends": [
|
|
||||||
"next/core-web-vitals",
|
|
||||||
"airbnb-typescript",
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:import/typescript"
|
|
||||||
],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": "latest",
|
|
||||||
"sourceType": "module",
|
|
||||||
"project": "./tsconfig.json"
|
|
||||||
},
|
|
||||||
"plugins": ["@typescript-eslint", "import"],
|
|
||||||
"rules": {
|
|
||||||
"arrow-body-style": 0,
|
|
||||||
"no-restricted-exports": 0,
|
|
||||||
"max-len": [1, { "code": 200 }],
|
|
||||||
"import/extensions": [
|
|
||||||
"error",
|
|
||||||
"ignorePackages",
|
|
||||||
{ "js": "never", "jsx": "never", "ts": "never", "tsx": "never" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +1,8 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FiPauseCircle, FiPlayCircle } from 'react-icons/fi';
|
import { FiPauseCircle, FiPlayCircle } from 'react-icons/fi';
|
||||||
|
import { AppStatus as TAppStatus } from '../../core/types';
|
||||||
|
|
||||||
const AppStatus: React.FC<{ status: 'running' | 'stopped' }> = ({ status }) => {
|
const AppStatus: React.FC<{ status: TAppStatus }> = ({ status }) => {
|
||||||
if (status === 'running') {
|
if (status === 'running') {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import axios, { Method } from 'axios';
|
import axios, { Method } from 'axios';
|
||||||
|
|
||||||
const BASE_URL = 'http://localhost:3001';
|
const BASE_URL = 'http://192.168.2.146:3001';
|
||||||
|
|
||||||
interface IFetchParams {
|
interface IFetchParams {
|
||||||
endpoint: string;
|
endpoint: string;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"installed":" filerun nextcloud wg-easy freshrss radarr transmission plex jellyfin","environment":{"anonaddy":{}}}
|
{"installed":" transmission radarr jellyfin","environment":{"anonaddy":{}}}
|
14488
system-api/package-lock.json
generated
14488
system-api/package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue