ERROR in ./resources/scripts/index.tsx Module not found: Error: Can't resolve './i18n' in '/var/www/pterodactyl/resources/scripts' @ ./resources/scripts/index.tsx 7:0-16 @ multi react-hot-loader/patch ./resources/scripts/index.tsx ERROR in ./resources/scripts/index.tsx Module not found: Error: Can't resolve '@/components/App' in '/var/www/pterodactyl/resources/scripts' @ ./resources/scripts/index.tsx 3:0-35 16:50-53 @ multi react-hot-loader/patch ./resources/scripts/index.tsx ERROR in resources/scripts/api/server/getServer.ts:1:64 TS2307: Cannot find module '@/api/http' or its corresponding type declarations. > 1 | import http, { FractalResponseData, FractalResponseList } from '@/api/http'; | ^^^^^^^^^^^^ 2 | import { rawDataToServerAllocation, rawDataToServerEggVariable } from '@/api/transformers'; 3 | import { ServerEggVariable, ServerStatus } from '@/api/server/types'; 4 | ERROR in resources/scripts/api/server/getServer.ts:2:71 TS2307: Cannot find module '@/api/transformers' or its corresponding type declarations. 1 | import http, { FractalResponseData, FractalResponseList } from '@/api/http'; > 2 | import { rawDataToServerAllocation, rawDataToServerEggVariable } from '@/api/transformers'; | ^^^^^^^^^^^^^^^^^^^^ 3 | import { ServerEggVariable, ServerStatus } from '@/api/server/types'; 4 | 5 | export interface Allocation { ERROR in resources/scripts/api/server/getServer.ts:3:49 TS2307: Cannot find module '@/api/server/types' or its corresponding type declarations. 1 | import http, { FractalResponseData, FractalResponseList } from '@/api/http'; 2 | import { rawDataToServerAllocation, rawDataToServerEggVariable } from '@/api/transformers'; > 3 | import { ServerEggVariable, ServerStatus } from '@/api/server/types'; | ^^^^^^^^^^^^^^^^^^^^ 4 | 5 | export interface Allocation { 6 | id: number; ERROR in resources/scripts/api/server/getServer.ts:87:16 TS7031: Binding element 'data' implicitly has an 'any' type. 85 | http 86 | .get(`/api/client/servers/${uuid}`) > 87 | .then(({ data }) => | ^^^^ 88 | resolve([ 89 | rawDataToServerObject(data), 90 | // eslint-disable-next-line camelcase ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:4:26 TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations. 2 | import { NavLink, Route, Switch } from 'react-router-dom'; 3 | import { useLocation } from 'react-router'; > 4 | import { NotFound } from '@/components/elements/ScreenBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import TransitionRouter from '@/TransitionRouter'; 6 | import DashboardContainer from '@/components/dashboard/DashboardContainer'; 7 | import Spinner from '@/components/elements/Spinner'; ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:5:30 TS2307: Cannot find module '@/TransitionRouter' or its corresponding type declarations. 3 | import { useLocation } from 'react-router'; 4 | import { NotFound } from '@/components/elements/ScreenBlock'; > 5 | import TransitionRouter from '@/TransitionRouter'; | ^^^^^^^^^^^^^^^^^^^^ 6 | import DashboardContainer from '@/components/dashboard/DashboardContainer'; 7 | import Spinner from '@/components/elements/Spinner'; 8 | import { useStoreState } from 'easy-peasy'; ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:7:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 5 | import TransitionRouter from '@/TransitionRouter'; 6 | import DashboardContainer from '@/components/dashboard/DashboardContainer'; > 7 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 | import { useStoreState } from 'easy-peasy'; 9 | 10 | import routes from '@/routers/routes'; ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:10:20 TS2307: Cannot find module '@/routers/routes' or its corresponding type declarations. 8 | import { useStoreState } from 'easy-peasy'; 9 | > 10 | import routes from '@/routers/routes'; | ^^^^^^^^^^^^^^^^^^ 11 | import blueprintRoutes from './routes'; 12 | 13 | export const NavigationLinks = () => { ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:14:52 TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'. 12 | 13 | export const NavigationLinks = () => { > 14 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); | ^^^^ 15 | return ( 16 | <> 17 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:20:18 TS7006: Parameter 'route' implicitly has an 'any' type. 18 | {/* Pterodactyl routes */} 19 | {routes.account > 20 | .filter((route) => !!route.name) | ^^^^^ 21 | .map(({ path, name, exact = false }) => ( 22 | 23 | {name} ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:21:17 TS7031: Binding element 'path' implicitly has an 'any' type. 19 | {routes.account 20 | .filter((route) => !!route.name) > 21 | .map(({ path, name, exact = false }) => ( | ^^^^ 22 | 23 | {name} 24 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:21:23 TS7031: Binding element 'name' implicitly has an 'any' type. 19 | {routes.account 20 | .filter((route) => !!route.name) > 21 | .map(({ path, name, exact = false }) => ( | ^^^^ 22 | 23 | {name} 24 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:45:52 TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'. 43 | export const NavigationRouter = () => { 44 | const location = useLocation(); > 45 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); | ^^^^ 46 | return ( 47 | <> 48 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:56:36 TS7031: Binding element 'path' implicitly has an 'any' type. 54 | 55 | {/* Pterodactyl routes */} > 56 | {routes.account.map(({ path, component: Component }) => ( | ^^^^ 57 | 58 | 59 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:56:53 TS7031: Binding element 'Component' implicitly has an 'any' type. 54 | 55 | {/* Pterodactyl routes */} > 56 | {routes.account.map(({ path, component: Component }) => ( | ^^^^^^^^^ 57 | 58 | 59 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:3:30 TS2307: Cannot find module '@/TransitionRouter' or its corresponding type declarations. 1 | import React, { useState, useEffect } from 'react'; 2 | import { NavLink, Route, Switch, useRouteMatch } from 'react-router-dom'; > 3 | import TransitionRouter from '@/TransitionRouter'; | ^^^^^^^^^^^^^^^^^^^^ 4 | import PermissionRoute from '@/components/elements/PermissionRoute'; 5 | import Can from '@/components/elements/Can'; 6 | import Spinner from '@/components/elements/Spinner'; ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:4:29 TS2307: Cannot find module '@/components/elements/PermissionRoute' or its corresponding type declarations. 2 | import { NavLink, Route, Switch, useRouteMatch } from 'react-router-dom'; 3 | import TransitionRouter from '@/TransitionRouter'; > 4 | import PermissionRoute from '@/components/elements/PermissionRoute'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import Can from '@/components/elements/Can'; 6 | import Spinner from '@/components/elements/Spinner'; 7 | import { NotFound } from '@/components/elements/ScreenBlock'; ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:5:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 3 | import TransitionRouter from '@/TransitionRouter'; 4 | import PermissionRoute from '@/components/elements/PermissionRoute'; > 5 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import Spinner from '@/components/elements/Spinner'; 7 | import { NotFound } from '@/components/elements/ScreenBlock'; 8 | import { useLocation } from 'react-router'; ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:6:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 4 | import PermissionRoute from '@/components/elements/PermissionRoute'; 5 | import Can from '@/components/elements/Can'; > 6 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import { NotFound } from '@/components/elements/ScreenBlock'; 8 | import { useLocation } from 'react-router'; 9 | import { useStoreState } from 'easy-peasy'; ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:7:26 TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations. 5 | import Can from '@/components/elements/Can'; 6 | import Spinner from '@/components/elements/Spinner'; > 7 | import { NotFound } from '@/components/elements/ScreenBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 | import { useLocation } from 'react-router'; 9 | import { useStoreState } from 'easy-peasy'; 10 | import { ServerContext } from '@/state/server'; ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:10:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 8 | import { useLocation } from 'react-router'; 9 | import { useStoreState } from 'easy-peasy'; > 10 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 11 | 12 | import routes from '@/routers/routes'; 13 | import blueprintRoutes from './routes'; ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:12:20 TS2307: Cannot find module '@/routers/routes' or its corresponding type declarations. 10 | import { ServerContext } from '@/state/server'; 11 | > 12 | import routes from '@/routers/routes'; | ^^^^^^^^^^^^^^^^^^ 13 | import blueprintRoutes from './routes'; 14 | 15 | const blueprintExtensions = [...new Set(blueprintRoutes.server.map((route) => route.identifier))]; ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:40:52 TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'. 38 | 39 | export const NavigationLinks = () => { > 40 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); | ^^^^ 41 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId); 42 | const match = useRouteMatch<{ id: string }>(); 43 | const to = (value: string, url = false) => { ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:41:50 TS7006: Parameter 'state' implicitly has an 'any' type. 39 | export const NavigationLinks = () => { 40 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); > 41 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId); | ^^^^^ 42 | const match = useRouteMatch<{ id: string }>(); 43 | const to = (value: string, url = false) => { 44 | if (value === '/') { ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:55:18 TS7006: Parameter 'route' implicitly has an 'any' type. 53 | {/* Pterodactyl routes */} 54 | {routes.server > 55 | .filter((route) => !!route.name) | ^^^^^ 56 | .map((route) => 57 | route.permission ? ( 58 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:56:15 TS7006: Parameter 'route' implicitly has an 'any' type. 54 | {routes.server 55 | .filter((route) => !!route.name) > 56 | .map((route) => | ^^^^^ 57 | route.permission ? ( 58 | 59 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:98:52 TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'. 96 | 97 | export const NavigationRouter = () => { > 98 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); | ^^^^ 99 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId); 100 | const match = useRouteMatch<{ id: string }>(); 101 | const to = (value: string, url = false) => { ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:99:50 TS7006: Parameter 'state' implicitly has an 'any' type. 97 | export const NavigationRouter = () => { 98 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); > 99 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId); | ^^^^^ 100 | const match = useRouteMatch<{ id: string }>(); 101 | const to = (value: string, url = false) => { 102 | if (value === '/') { ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:115:33 TS7031: Binding element 'path' implicitly has an 'any' type. 113 | 114 | {/* Pterodactyl routes */} > 115 | {routes.server.map(({ path, permission, component: Component }) => ( | ^^^^ 116 | 117 | 118 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:115:39 TS7031: Binding element 'permission' implicitly has an 'any' type. 113 | 114 | {/* Pterodactyl routes */} > 115 | {routes.server.map(({ path, permission, component: Component }) => ( | ^^^^^^^^^^ 116 | 117 | 118 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:115:62 TS7031: Binding element 'Component' implicitly has an 'any' type. 113 | 114 | {/* Pterodactyl routes */} > 115 | {routes.server.map(({ path, permission, component: Component }) => ( | ^^^^^^^^^ 116 | 117 | 118 | ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:4:28 TS2307: Cannot find module '@/theme' or its corresponding type declarations. 2 | import { Form } from 'formik'; 3 | import styled from 'styled-components/macro'; > 4 | import { breakpoint } from '@/theme'; | ^^^^^^^^^ 5 | import FlashMessageRender from '@/components/FlashMessageRender'; 6 | import tw from 'twin.macro'; 7 | ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:5:32 TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations. 3 | import styled from 'styled-components/macro'; 4 | import { breakpoint } from '@/theme'; > 5 | import FlashMessageRender from '@/components/FlashMessageRender'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import tw from 'twin.macro'; 7 | 8 | import BeforeContent from '@/blueprint/components/Authentication/Container/BeforeContent'; ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:36:23 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLHeadingElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLHeadingElement>'. 34 | export default forwardRef(({ title, ...props }, ref) => ( 35 | > 36 | {title &&

{title}

} | ^^^ 37 | 38 | 39 |
ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:40:18 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 38 | 39 | > 40 |
| ^^^ 41 |
42 | 43 |
ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:41:22 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 39 | 40 |
> 41 |
| ^^^ 42 | 43 |
44 |
{props.children}
ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:42:63 TS2322: Type '{ src: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLImageElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLImageElement>'. 40 |
41 |
> 42 | | ^^^ 43 |
44 |
{props.children}
45 |
ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:44:22 TS2322: Type '{ children: ReactNode; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 42 | 43 |
> 44 |
{props.children}
| ^^^ 45 |
46 | 47 | ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:48:12 TS2322: Type '{ children: (string | number | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 46 | 47 | > 48 |

| ^^^ 49 | © 2015 - {new Date().getFullYear()}  50 | , HTMLAnchorElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLAnchorElement>'. 52 | href={'https://pterodactyl.io'} 53 | target={'_blank'} > 54 | css={tw`no-underline text-neutral-500 hover:text-neutral-300`} | ^^^ 55 | > 56 | Pterodactyl Software 57 | ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:2:24 TS2307: Cannot find module '@/components/elements/ContentBox' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; > 2 | import ContentBox from '@/components/elements/ContentBox'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import CreateApiKeyForm from '@/components/dashboard/forms/CreateApiKeyForm'; 4 | import getApiKeys, { ApiKey } from '@/api/account/getApiKeys'; 5 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:3:30 TS2307: Cannot find module '@/components/dashboard/forms/CreateApiKeyForm' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; 2 | import ContentBox from '@/components/elements/ContentBox'; > 3 | import CreateApiKeyForm from '@/components/dashboard/forms/CreateApiKeyForm'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 | import getApiKeys, { ApiKey } from '@/api/account/getApiKeys'; 5 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 6 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:4:36 TS2307: Cannot find module '@/api/account/getApiKeys' or its corresponding type declarations. 2 | import ContentBox from '@/components/elements/ContentBox'; 3 | import CreateApiKeyForm from '@/components/dashboard/forms/CreateApiKeyForm'; > 4 | import getApiKeys, { ApiKey } from '@/api/account/getApiKeys'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 6 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 7 | import { faKey, faTrashAlt } from '@fortawesome/free-solid-svg-icons'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:5:28 TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations. 3 | import CreateApiKeyForm from '@/components/dashboard/forms/CreateApiKeyForm'; 4 | import getApiKeys, { ApiKey } from '@/api/account/getApiKeys'; > 5 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 7 | import { faKey, faTrashAlt } from '@fortawesome/free-solid-svg-icons'; 8 | import deleteApiKey from '@/api/account/deleteApiKey'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:8:26 TS2307: Cannot find module '@/api/account/deleteApiKey' or its corresponding type declarations. 6 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 7 | import { faKey, faTrashAlt } from '@fortawesome/free-solid-svg-icons'; > 8 | import deleteApiKey from '@/api/account/deleteApiKey'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 | import FlashMessageRender from '@/components/FlashMessageRender'; 10 | import { format } from 'date-fns'; 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:9:32 TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations. 7 | import { faKey, faTrashAlt } from '@fortawesome/free-solid-svg-icons'; 8 | import deleteApiKey from '@/api/account/deleteApiKey'; > 9 | import FlashMessageRender from '@/components/FlashMessageRender'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import { format } from 'date-fns'; 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; 12 | import tw from 'twin.macro'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:11:30 TS2307: Cannot find module '@/components/elements/PageContentBlock' or its corresponding type declarations. 9 | import FlashMessageRender from '@/components/FlashMessageRender'; 10 | import { format } from 'date-fns'; > 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 | import tw from 'twin.macro'; 13 | import GreyRowBox from '@/components/elements/GreyRowBox'; 14 | import { Dialog } from '@/components/elements/dialog'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:13:24 TS2307: Cannot find module '@/components/elements/GreyRowBox' or its corresponding type declarations. 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; 12 | import tw from 'twin.macro'; > 13 | import GreyRowBox from '@/components/elements/GreyRowBox'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 | import { Dialog } from '@/components/elements/dialog'; 15 | import { useFlashKey } from '@/plugins/useFlash'; 16 | import Code from '@/components/elements/Code'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:14:24 TS2307: Cannot find module '@/components/elements/dialog' or its corresponding type declarations. 12 | import tw from 'twin.macro'; 13 | import GreyRowBox from '@/components/elements/GreyRowBox'; > 14 | import { Dialog } from '@/components/elements/dialog'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | import { useFlashKey } from '@/plugins/useFlash'; 16 | import Code from '@/components/elements/Code'; 17 | ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:15:29 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 13 | import GreyRowBox from '@/components/elements/GreyRowBox'; 14 | import { Dialog } from '@/components/elements/dialog'; > 15 | import { useFlashKey } from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 16 | import Code from '@/components/elements/Code'; 17 | 18 | import BeforeContent from '@/blueprint/components/Account/API/BeforeContent'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:16:18 TS2307: Cannot find module '@/components/elements/Code' or its corresponding type declarations. 14 | import { Dialog } from '@/components/elements/dialog'; 15 | import { useFlashKey } from '@/plugins/useFlash'; > 16 | import Code from '@/components/elements/Code'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | 18 | import BeforeContent from '@/blueprint/components/Account/API/BeforeContent'; 19 | import AfterContent from '@/blueprint/components/Account/API/AfterContent'; ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:29:20 TS7006: Parameter 'keys' implicitly has an 'any' type. 27 | useEffect(() => { 28 | getApiKeys() > 29 | .then((keys) => setKeys(keys)) | ^^^^ 30 | .then(() => setLoading(false)) 31 | .catch((error) => clearAndAddHttpError(error)); 32 | }, []); ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:31:21 TS7006: Parameter 'error' implicitly has an 'any' type. 29 | .then((keys) => setKeys(keys)) 30 | .then(() => setLoading(false)) > 31 | .catch((error) => clearAndAddHttpError(error)); | ^^^^^ 32 | }, []); 33 | 34 | const doDeletion = (identifier: string) => { ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:40:21 TS7006: Parameter 'error' implicitly has an 'any' type. 38 | deleteApiKey(identifier) 39 | .then(() => setKeys((s) => [...(s || []).filter((key) => key.identifier !== identifier)])) > 40 | .catch((error) => clearAndAddHttpError(error)) | ^^^^^ 41 | .then(() => { 42 | setLoading(false); 43 | setDeleteIdentifier(''); ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:51:18 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 49 | 50 | > 51 |

| ^^^ 52 | 53 | setKeys((s) => [...s!, key])} /> 54 | ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:53:54 TS7006: Parameter 'key' implicitly has an 'any' type. 51 |
52 | > 53 | setKeys((s) => [...s!, key])} /> | ^^^ 54 | 55 | 56 | ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:67:28 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 65 | 66 | {keys.length === 0 ? ( > 67 |

| ^^^ 68 | {loading ? 'Loading...' : 'No API keys exist for this account.'} 69 |

70 | ) : ( ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:76:63 TS2322: Type '{ icon: IconDefinition; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 74 | css={[tw`bg-neutral-600 flex items-center`, index > 0 && tw`mt-2`]} 75 | > > 76 | | ^^^ 77 |
78 |

{key.description}

79 |

ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:77:38 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 75 | > 76 | > 77 |

| ^^^ 78 |

{key.description}

79 |

80 | Last used:  ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:78:40 TS2322: Type '{ children: any; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 76 | 77 |

> 78 |

{key.description}

| ^^^ 79 |

80 | Last used:  81 | {key.lastUsedAt ? format(key.lastUsedAt, 'MMM do, yyyy HH:mm') : 'Never'} ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:79:40 TS2322: Type '{ children: string[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 77 |

78 |

{key.description}

> 79 |

| ^^^ 80 | Last used:  81 | {key.lastUsedAt ? format(key.lastUsedAt, 'MMM do, yyyy HH:mm') : 'Never'} 82 |

ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:84:36 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 82 |

83 |
> 84 | 87 |
84 | 87 | 93 | ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:2:24 TS2307: Cannot find module '@/components/elements/ContentBox' or its corresponding type declarations. 1 | import * as React from 'react'; > 2 | import ContentBox from '@/components/elements/ContentBox'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import UpdatePasswordForm from '@/components/dashboard/forms/UpdatePasswordForm'; 4 | import UpdateEmailAddressForm from '@/components/dashboard/forms/UpdateEmailAddressForm'; 5 | import ConfigureTwoFactorForm from '@/components/dashboard/forms/ConfigureTwoFactorForm'; ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:3:32 TS2307: Cannot find module '@/components/dashboard/forms/UpdatePasswordForm' or its corresponding type declarations. 1 | import * as React from 'react'; 2 | import ContentBox from '@/components/elements/ContentBox'; > 3 | import UpdatePasswordForm from '@/components/dashboard/forms/UpdatePasswordForm'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 | import UpdateEmailAddressForm from '@/components/dashboard/forms/UpdateEmailAddressForm'; 5 | import ConfigureTwoFactorForm from '@/components/dashboard/forms/ConfigureTwoFactorForm'; 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:4:36 TS2307: Cannot find module '@/components/dashboard/forms/UpdateEmailAddressForm' or its corresponding type declarations. 2 | import ContentBox from '@/components/elements/ContentBox'; 3 | import UpdatePasswordForm from '@/components/dashboard/forms/UpdatePasswordForm'; > 4 | import UpdateEmailAddressForm from '@/components/dashboard/forms/UpdateEmailAddressForm'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import ConfigureTwoFactorForm from '@/components/dashboard/forms/ConfigureTwoFactorForm'; 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; 7 | import tw from 'twin.macro'; ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:5:36 TS2307: Cannot find module '@/components/dashboard/forms/ConfigureTwoFactorForm' or its corresponding type declarations. 3 | import UpdatePasswordForm from '@/components/dashboard/forms/UpdatePasswordForm'; 4 | import UpdateEmailAddressForm from '@/components/dashboard/forms/UpdateEmailAddressForm'; > 5 | import ConfigureTwoFactorForm from '@/components/dashboard/forms/ConfigureTwoFactorForm'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; 7 | import tw from 'twin.macro'; 8 | import { breakpoint } from '@/theme'; ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:6:30 TS2307: Cannot find module '@/components/elements/PageContentBlock' or its corresponding type declarations. 4 | import UpdateEmailAddressForm from '@/components/dashboard/forms/UpdateEmailAddressForm'; 5 | import ConfigureTwoFactorForm from '@/components/dashboard/forms/ConfigureTwoFactorForm'; > 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import tw from 'twin.macro'; 8 | import { breakpoint } from '@/theme'; 9 | import styled from 'styled-components/macro'; ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:8:28 TS2307: Cannot find module '@/theme' or its corresponding type declarations. 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; 7 | import tw from 'twin.macro'; > 8 | import { breakpoint } from '@/theme'; | ^^^^^^^^^ 9 | import styled from 'styled-components/macro'; 10 | import MessageBox from '@/components/MessageBox'; 11 | import { useLocation } from 'react-router-dom'; ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:10:24 TS2307: Cannot find module '@/components/MessageBox' or its corresponding type declarations. 8 | import { breakpoint } from '@/theme'; 9 | import styled from 'styled-components/macro'; > 10 | import MessageBox from '@/components/MessageBox'; | ^^^^^^^^^^^^^^^^^^^^^^^^^ 11 | import { useLocation } from 'react-router-dom'; 12 | 13 | import BeforeContent from '@/blueprint/components/Account/Overview/BeforeContent'; ERROR in resources/scripts/components/dashboard/AccountOverviewContainer.tsx:44:24 TS2769: No overload matches this call. Overload 1 of 2, '(props: Omit, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error. Type '{ children: Element[]; css: TwStyle[]; }' is not assignable to type 'IntrinsicAttributes & Omit, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'. Property 'css' does not exist on type 'IntrinsicAttributes & Omit, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'. Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div">): ReactElement, string | JSXElementConstructor<...>>', gave the following error. Type '{ children: Element[]; css: TwStyle[]; }' is not assignable to type 'IntrinsicAttributes & Omit, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'. Property 'css' does not exist on type 'IntrinsicAttributes & Omit, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'. 42 | 43 | > 44 | | ^^^ 45 | 46 | 47 | ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:3:24 TS2307: Cannot find module '@/api/getServers' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; 2 | import { Server } from '@/api/server/getServer'; > 3 | import getServers from '@/api/getServers'; | ^^^^^^^^^^^^^^^^^^ 4 | import ServerRow from '@/components/dashboard/ServerRow'; 5 | import Spinner from '@/components/elements/Spinner'; 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:5:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 3 | import getServers from '@/api/getServers'; 4 | import ServerRow from '@/components/dashboard/ServerRow'; > 5 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; 7 | import useFlash from '@/plugins/useFlash'; 8 | import { useStoreState } from 'easy-peasy'; ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:6:30 TS2307: Cannot find module '@/components/elements/PageContentBlock' or its corresponding type declarations. 4 | import ServerRow from '@/components/dashboard/ServerRow'; 5 | import Spinner from '@/components/elements/Spinner'; > 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import useFlash from '@/plugins/useFlash'; 8 | import { useStoreState } from 'easy-peasy'; 9 | import { usePersistedState } from '@/plugins/usePersistedState'; ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:7:22 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 5 | import Spinner from '@/components/elements/Spinner'; 6 | import PageContentBlock from '@/components/elements/PageContentBlock'; > 7 | import useFlash from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 8 | import { useStoreState } from 'easy-peasy'; 9 | import { usePersistedState } from '@/plugins/usePersistedState'; 10 | import Switch from '@/components/elements/Switch'; ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:9:35 TS2307: Cannot find module '@/plugins/usePersistedState' or its corresponding type declarations. 7 | import useFlash from '@/plugins/useFlash'; 8 | import { useStoreState } from 'easy-peasy'; > 9 | import { usePersistedState } from '@/plugins/usePersistedState'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import Switch from '@/components/elements/Switch'; 11 | import tw from 'twin.macro'; 12 | import useSWR from 'swr'; ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:10:20 TS2307: Cannot find module '@/components/elements/Switch' or its corresponding type declarations. 8 | import { useStoreState } from 'easy-peasy'; 9 | import { usePersistedState } from '@/plugins/usePersistedState'; > 10 | import Switch from '@/components/elements/Switch'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 | import tw from 'twin.macro'; 12 | import useSWR from 'swr'; 13 | import { PaginatedResult } from '@/api/http'; ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:13:33 TS2307: Cannot find module '@/api/http' or its corresponding type declarations. 11 | import tw from 'twin.macro'; 12 | import useSWR from 'swr'; > 13 | import { PaginatedResult } from '@/api/http'; | ^^^^^^^^^^^^ 14 | import Pagination from '@/components/elements/Pagination'; 15 | import { useLocation } from 'react-router-dom'; 16 | ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:14:24 TS2307: Cannot find module '@/components/elements/Pagination' or its corresponding type declarations. 12 | import useSWR from 'swr'; 13 | import { PaginatedResult } from '@/api/http'; > 14 | import Pagination from '@/components/elements/Pagination'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | import { useLocation } from 'react-router-dom'; 16 | 17 | import BeforeContent from '@/blueprint/components/Dashboard/BeforeContent'; ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:26:49 TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'. 24 | const [page, setPage] = useState(!isNaN(defaultPage) && defaultPage > 0 ? defaultPage : 1); 25 | const { clearFlashes, clearAndAddHttpError } = useFlash(); > 26 | const uuid = useStoreState((state) => state.user.data!.uuid); | ^^^^ 27 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); 28 | const [showOnlyAdmin, setShowOnlyAdmin] = usePersistedState(`${uuid}:show_all_servers`, false); 29 | ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:27:54 TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'. 25 | const { clearFlashes, clearAndAddHttpError } = useFlash(); 26 | const uuid = useStoreState((state) => state.user.data!.uuid); > 27 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); | ^^^^ 28 | const [showOnlyAdmin, setShowOnlyAdmin] = usePersistedState(`${uuid}:show_all_servers`, false); 29 | 30 | const { data: servers, error } = useSWR>( ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:58:22 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 56 | 57 | {rootAdmin && ( > 58 |
| ^^^ 59 |

60 | {showOnlyAdmin ? "Showing others' servers" : 'Showing your servers'} 61 |

ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:59:24 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 57 | {rootAdmin && ( 58 |
> 59 |

| ^^^ 60 | {showOnlyAdmin ? "Showing others' servers" : 'Showing your servers'} 61 |

62 | 65 | onChange={() => setShowOnlyAdmin((s) => !s)} | ^ 66 | /> 67 |
68 | )} ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:73:25 TS7031: Binding element 'items' implicitly has an 'any' type. 71 | ) : ( 72 | > 73 | {({ items }) => | ^^^^^ 74 | items.length > 0 ? ( 75 | items.map((server, index) => ( 76 | 0 ? tw`mt-2` : undefined} /> ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:75:40 TS7006: Parameter 'server' implicitly has an 'any' type. 73 | {({ items }) => 74 | items.length > 0 ? ( > 75 | items.map((server, index) => ( | ^^^^^^ 76 | 0 ? tw`mt-2` : undefined} /> 77 | )) 78 | ) : ( ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:75:48 TS7006: Parameter 'index' implicitly has an 'any' type. 73 | {({ items }) => 74 | items.length > 0 ? ( > 75 | items.map((server, index) => ( | ^^^^^ 76 | 0 ? tw`mt-2` : undefined} /> 77 | )) 78 | ) : ( ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:76:78 TS2322: Type '{ key: any; server: any; css: TwStyle | undefined; }' is not assignable to type 'IntrinsicAttributes & { server: Server; className?: string | undefined; }'. Property 'css' does not exist on type 'IntrinsicAttributes & { server: Server; className?: string | undefined; }'. 74 | items.length > 0 ? ( 75 | items.map((server, index) => ( > 76 | 0 ? tw`mt-2` : undefined} /> | ^^^ 77 | )) 78 | ) : ( 79 |

ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:79:32 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 77 | )) 78 | ) : ( > 79 |

| ^^^ 80 | {showOnlyAdmin 81 | ? 'There are no other servers to display.' 82 | : 'There are no servers associated with your account.'} ERROR in resources/scripts/components/dashboard/ServerRow.tsx:6:71 TS2307: Cannot find module '@/api/server/getServerResourceUsage' or its corresponding type declarations. 4 | import { Link } from 'react-router-dom'; 5 | import { Server } from '@/api/server/getServer'; > 6 | import getServerResourceUsage, { ServerPowerState, ServerStats } from '@/api/server/getServerResourceUsage'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import { bytesToString, ip, mbToBytes } from '@/lib/formatters'; 8 | import tw from 'twin.macro'; 9 | import GreyRowBox from '@/components/elements/GreyRowBox'; ERROR in resources/scripts/components/dashboard/ServerRow.tsx:7:46 TS2307: Cannot find module '@/lib/formatters' or its corresponding type declarations. 5 | import { Server } from '@/api/server/getServer'; 6 | import getServerResourceUsage, { ServerPowerState, ServerStats } from '@/api/server/getServerResourceUsage'; > 7 | import { bytesToString, ip, mbToBytes } from '@/lib/formatters'; | ^^^^^^^^^^^^^^^^^^ 8 | import tw from 'twin.macro'; 9 | import GreyRowBox from '@/components/elements/GreyRowBox'; 10 | import Spinner from '@/components/elements/Spinner'; ERROR in resources/scripts/components/dashboard/ServerRow.tsx:9:24 TS2307: Cannot find module '@/components/elements/GreyRowBox' or its corresponding type declarations. 7 | import { bytesToString, ip, mbToBytes } from '@/lib/formatters'; 8 | import tw from 'twin.macro'; > 9 | import GreyRowBox from '@/components/elements/GreyRowBox'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import Spinner from '@/components/elements/Spinner'; 11 | import styled from 'styled-components/macro'; 12 | import isEqual from 'react-fast-compare'; ERROR in resources/scripts/components/dashboard/ServerRow.tsx:10:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 8 | import tw from 'twin.macro'; 9 | import GreyRowBox from '@/components/elements/GreyRowBox'; > 10 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 | import styled from 'styled-components/macro'; 12 | import isEqual from 'react-fast-compare'; 13 | ERROR in resources/scripts/components/dashboard/ServerRow.tsx:65:20 TS7006: Parameter 'data' implicitly has an 'any' type. 63 | const getStats = () => 64 | getServerResourceUsage(server.uuid) > 65 | .then((data) => setStats(data)) | ^^^^ 66 | .catch((error) => console.error(error)); 67 | 68 | useEffect(() => { ERROR in resources/scripts/components/dashboard/ServerRow.tsx:66:21 TS7006: Parameter 'error' implicitly has an 'any' type. 64 | getServerResourceUsage(server.uuid) 65 | .then((data) => setStats(data)) > 66 | .catch((error) => console.error(error)); | ^^^^^ 67 | 68 | useEffect(() => { 69 | setIsSuspended(stats?.isSuspended || server.status === 'suspended'); ERROR in resources/scripts/components/dashboard/ServerRow.tsx:99:18 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 97 | return ( 98 | > 99 |

| ^^^ 100 |
101 | 102 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:105:24 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 103 |
104 | > 105 |

{server.name}

| ^^^ 106 | 107 | {!!server.description && ( 108 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:110:32 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 108 |
109 | > 110 |

{server.description}

| ^^^ 111 | 112 |
113 | )} ERROR in resources/scripts/components/dashboard/ServerRow.tsx:116:18 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 114 |
115 |
> 116 |
| ^^^ 117 |
118 | 119 |

ERROR in resources/scripts/components/dashboard/ServerRow.tsx:117:22 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 115 |

116 |
> 117 |
| ^^^ 118 | 119 |

120 | {server.allocations ERROR in resources/scripts/components/dashboard/ServerRow.tsx:118:56 TS2322: Type '{ icon: IconDefinition; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 116 |

117 |
> 118 | | ^^^ 119 |

120 | {server.allocations 121 | .filter((alloc) => alloc.isDefault) ERROR in resources/scripts/components/dashboard/ServerRow.tsx:119:24 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 117 |

118 | > 119 |

| ^^^ 120 | {server.allocations 121 | .filter((alloc) => alloc.isDefault) 122 | .map((allocation) => ( ERROR in resources/scripts/components/dashboard/ServerRow.tsx:130:18 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 128 |

129 |
> 130 |
| ^^^ 131 | {!stats || isSuspended ? ( 132 | isSuspended ? ( 133 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:133:30 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 131 | {!stats || isSuspended ? ( 132 | isSuspended ? ( > 133 |
| ^^^ 134 | 135 | {server.status === 'suspended' ? 'Suspended' : 'Connection Error'} 136 | ERROR in resources/scripts/components/dashboard/ServerRow.tsx:134:35 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLSpanElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLSpanElement>'. 132 | isSuspended ? ( 133 |
> 134 | | ^^^ 135 | {server.status === 'suspended' ? 'Suspended' : 'Connection Error'} 136 | 137 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:139:30 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 137 |
138 | ) : server.isTransferring || server.status ? ( > 139 |
| ^^^ 140 | 141 | {server.isTransferring 142 | ? 'Transferring' ERROR in resources/scripts/components/dashboard/ServerRow.tsx:140:35 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLSpanElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLSpanElement>'. 138 | ) : server.isTransferring || server.status ? ( 139 |
> 140 | | ^^^ 141 | {server.isTransferring 142 | ? 'Transferring' 143 | : server.status === 'installing' ERROR in resources/scripts/components/dashboard/ServerRow.tsx:155:30 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 153 | ) : ( 154 | > 155 |
| ^^^ 156 |
157 | 158 | ERROR in resources/scripts/components/dashboard/ServerRow.tsx:156:34 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 154 | 155 |
> 156 |
| ^^^ 157 | 158 | 159 | {stats.cpuUsagePercent.toFixed(2)} % ERROR in resources/scripts/components/dashboard/ServerRow.tsx:162:32 TS2322: Type '{ children: string[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 160 | 161 |
> 162 |

of {cpuLimit}

| ^^^ 163 |
164 |
165 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:164:30 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 162 |

of {cpuLimit}

163 |
> 164 |
| ^^^ 165 |
166 | 167 | ERROR in resources/scripts/components/dashboard/ServerRow.tsx:165:34 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 163 |
164 |
> 165 |
| ^^^ 166 | 167 | 168 | {bytesToString(stats.memoryUsageInBytes)} ERROR in resources/scripts/components/dashboard/ServerRow.tsx:171:32 TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 169 | 170 |
> 171 |

of {memoryLimit}

| ^^^ 172 |
173 |
174 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:173:30 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 171 |

of {memoryLimit}

172 |
> 173 |
| ^^^ 174 |
175 | 176 | ERROR in resources/scripts/components/dashboard/ServerRow.tsx:174:34 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 172 |
173 |
> 174 |
| ^^^ 175 | 176 | 177 | {bytesToString(stats.diskUsageInBytes)} ERROR in resources/scripts/components/dashboard/ServerRow.tsx:180:32 TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 178 | 179 |
> 180 |

of {diskLimit}

| ^^^ 181 |
182 | 183 | ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:2:24 TS2307: Cannot find module '@/components/elements/ContentBox' or its corresponding type declarations. 1 | import React, { useEffect } from 'react'; > 2 | import ContentBox from '@/components/elements/ContentBox'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 4 | import FlashMessageRender from '@/components/FlashMessageRender'; 5 | import PageContentBlock from '@/components/elements/PageContentBlock'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:3:28 TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations. 1 | import React, { useEffect } from 'react'; 2 | import ContentBox from '@/components/elements/ContentBox'; > 3 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 | import FlashMessageRender from '@/components/FlashMessageRender'; 5 | import PageContentBlock from '@/components/elements/PageContentBlock'; 6 | import tw from 'twin.macro'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:4:32 TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations. 2 | import ContentBox from '@/components/elements/ContentBox'; 3 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; > 4 | import FlashMessageRender from '@/components/FlashMessageRender'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import PageContentBlock from '@/components/elements/PageContentBlock'; 6 | import tw from 'twin.macro'; 7 | import GreyRowBox from '@/components/elements/GreyRowBox'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:5:30 TS2307: Cannot find module '@/components/elements/PageContentBlock' or its corresponding type declarations. 3 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 4 | import FlashMessageRender from '@/components/FlashMessageRender'; > 5 | import PageContentBlock from '@/components/elements/PageContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import tw from 'twin.macro'; 7 | import GreyRowBox from '@/components/elements/GreyRowBox'; 8 | import { useSSHKeys } from '@/api/account/ssh-keys'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:7:24 TS2307: Cannot find module '@/components/elements/GreyRowBox' or its corresponding type declarations. 5 | import PageContentBlock from '@/components/elements/PageContentBlock'; 6 | import tw from 'twin.macro'; > 7 | import GreyRowBox from '@/components/elements/GreyRowBox'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 | import { useSSHKeys } from '@/api/account/ssh-keys'; 9 | import { useFlashKey } from '@/plugins/useFlash'; 10 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:8:28 TS2307: Cannot find module '@/api/account/ssh-keys' or its corresponding type declarations. 6 | import tw from 'twin.macro'; 7 | import GreyRowBox from '@/components/elements/GreyRowBox'; > 8 | import { useSSHKeys } from '@/api/account/ssh-keys'; | ^^^^^^^^^^^^^^^^^^^^^^^^ 9 | import { useFlashKey } from '@/plugins/useFlash'; 10 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 11 | import { faKey } from '@fortawesome/free-solid-svg-icons'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:9:29 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 7 | import GreyRowBox from '@/components/elements/GreyRowBox'; 8 | import { useSSHKeys } from '@/api/account/ssh-keys'; > 9 | import { useFlashKey } from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 10 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 11 | import { faKey } from '@fortawesome/free-solid-svg-icons'; 12 | import { format } from 'date-fns'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:13:30 TS2307: Cannot find module '@/components/dashboard/ssh/CreateSSHKeyForm' or its corresponding type declarations. 11 | import { faKey } from '@fortawesome/free-solid-svg-icons'; 12 | import { format } from 'date-fns'; > 13 | import CreateSSHKeyForm from '@/components/dashboard/ssh/CreateSSHKeyForm'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 | import DeleteSSHKeyButton from '@/components/dashboard/ssh/DeleteSSHKeyButton'; 15 | 16 | import BeforeContent from '@/blueprint/components/Account/SSH/BeforeContent'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:14:32 TS2307: Cannot find module '@/components/dashboard/ssh/DeleteSSHKeyButton' or its corresponding type declarations. 12 | import { format } from 'date-fns'; 13 | import CreateSSHKeyForm from '@/components/dashboard/ssh/CreateSSHKeyForm'; > 14 | import DeleteSSHKeyButton from '@/components/dashboard/ssh/DeleteSSHKeyButton'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | 16 | import BeforeContent from '@/blueprint/components/Account/SSH/BeforeContent'; 17 | import AfterContent from '@/blueprint/components/Account/SSH/AfterContent'; ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:34:18 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 32 | 33 | > 34 |
| ^^^ 35 | 36 | 37 | ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:41:28 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 39 | 40 | {!data || !data.length ? ( > 41 |

| ^^^ 42 | {!data ? 'Loading...' : 'No SSH Keys exist for this account.'} 43 |

44 | ) : ( ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:45:35 TS7006: Parameter 'key' implicitly has an 'any' type. 43 |

44 | ) : ( > 45 | data.map((key, index) => ( | ^^^ 46 | 0 && tw`mt-2`]} ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:45:40 TS7006: Parameter 'index' implicitly has an 'any' type. 43 |

44 | ) : ( > 45 | data.map((key, index) => ( | ^^^^^ 46 | 0 && tw`mt-2`]} ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:50:63 TS2322: Type '{ icon: IconDefinition; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 48 | css={[tw`bg-neutral-600 flex space-x-4 items-center`, index > 0 && tw`mt-2`]} 49 | > > 50 | | ^^^ 51 |
52 |

{key.name}

53 |

SHA256:{key.fingerprint}

ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:51:38 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 49 | > 50 | > 51 |
| ^^^ 52 |

{key.name}

53 |

SHA256:{key.fingerprint}

54 |

ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:52:40 TS2322: Type '{ children: any; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 50 | 51 |

> 52 |

{key.name}

| ^^^ 53 |

SHA256:{key.fingerprint}

54 |

55 | Added on:  ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:53:40 TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 51 |

52 |

{key.name}

> 53 |

SHA256:{key.fingerprint}

| ^^^ 54 |

55 | Added on:  56 | {format(key.createdAt, 'MMM do, yyyy HH:mm')} ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:54:40 TS2322: Type '{ children: string[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 52 |

{key.name}

53 |

SHA256:{key.fingerprint}

> 54 |

| ^^^ 55 | Added on:  56 | {format(key.createdAt, 'MMM do, yyyy HH:mm')} 57 |

ERROR in resources/scripts/components/NavigationBar.tsx:7:34 TS2307: Cannot find module '@/state' or its corresponding type declarations. 5 | import { faCogs, faLayerGroup, faSignOutAlt } from '@fortawesome/free-solid-svg-icons'; 6 | import { useStoreState } from 'easy-peasy'; > 7 | import { ApplicationStore } from '@/state'; | ^^^^^^^^^ 8 | import SearchContainer from '@/components/dashboard/search/SearchContainer'; 9 | import tw, { theme } from 'twin.macro'; 10 | import styled from 'styled-components/macro'; ERROR in resources/scripts/components/NavigationBar.tsx:8:29 TS2307: Cannot find module '@/components/dashboard/search/SearchContainer' or its corresponding type declarations. 6 | import { useStoreState } from 'easy-peasy'; 7 | import { ApplicationStore } from '@/state'; > 8 | import SearchContainer from '@/components/dashboard/search/SearchContainer'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 | import tw, { theme } from 'twin.macro'; 10 | import styled from 'styled-components/macro'; 11 | import http from '@/api/http'; ERROR in resources/scripts/components/NavigationBar.tsx:11:18 TS2307: Cannot find module '@/api/http' or its corresponding type declarations. 9 | import tw, { theme } from 'twin.macro'; 10 | import styled from 'styled-components/macro'; > 11 | import http from '@/api/http'; | ^^^^^^^^^^^^ 12 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 13 | import Tooltip from '@/components/elements/tooltip/Tooltip'; 14 | import Avatar from '@/components/Avatar'; ERROR in resources/scripts/components/NavigationBar.tsx:12:28 TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations. 10 | import styled from 'styled-components/macro'; 11 | import http from '@/api/http'; > 12 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | import Tooltip from '@/components/elements/tooltip/Tooltip'; 14 | import Avatar from '@/components/Avatar'; 15 | ERROR in resources/scripts/components/NavigationBar.tsx:13:21 TS2307: Cannot find module '@/components/elements/tooltip/Tooltip' or its corresponding type declarations. 11 | import http from '@/api/http'; 12 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; > 13 | import Tooltip from '@/components/elements/tooltip/Tooltip'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 | import Avatar from '@/components/Avatar'; 15 | 16 | import BeforeNavigation from '@/blueprint/components/Navigation/NavigationBar/BeforeNavigation'; ERROR in resources/scripts/components/NavigationBar.tsx:14:20 TS2307: Cannot find module '@/components/Avatar' or its corresponding type declarations. 12 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 13 | import Tooltip from '@/components/elements/tooltip/Tooltip'; > 14 | import Avatar from '@/components/Avatar'; | ^^^^^^^^^^^^^^^^^^^^^ 15 | 16 | import BeforeNavigation from '@/blueprint/components/Navigation/NavigationBar/BeforeNavigation'; 17 | import AdditionalItems from '@/blueprint/components/Navigation/NavigationBar/AdditionalItems'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:2:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 1 | import React, { useContext, useEffect, useState } from 'react'; > 2 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import useFlash from '@/plugins/useFlash'; 4 | import Can from '@/components/elements/Can'; 5 | import CreateBackupButton from '@/components/server/backups/CreateBackupButton'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:3:22 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 1 | import React, { useContext, useEffect, useState } from 'react'; 2 | import Spinner from '@/components/elements/Spinner'; > 3 | import useFlash from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 4 | import Can from '@/components/elements/Can'; 5 | import CreateBackupButton from '@/components/server/backups/CreateBackupButton'; 6 | import FlashMessageRender from '@/components/FlashMessageRender'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:4:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 2 | import Spinner from '@/components/elements/Spinner'; 3 | import useFlash from '@/plugins/useFlash'; > 4 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import CreateBackupButton from '@/components/server/backups/CreateBackupButton'; 6 | import FlashMessageRender from '@/components/FlashMessageRender'; 7 | import BackupRow from '@/components/server/backups/BackupRow'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:5:32 TS2307: Cannot find module '@/components/server/backups/CreateBackupButton' or its corresponding type declarations. 3 | import useFlash from '@/plugins/useFlash'; 4 | import Can from '@/components/elements/Can'; > 5 | import CreateBackupButton from '@/components/server/backups/CreateBackupButton'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import FlashMessageRender from '@/components/FlashMessageRender'; 7 | import BackupRow from '@/components/server/backups/BackupRow'; 8 | import tw from 'twin.macro'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:6:32 TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations. 4 | import Can from '@/components/elements/Can'; 5 | import CreateBackupButton from '@/components/server/backups/CreateBackupButton'; > 6 | import FlashMessageRender from '@/components/FlashMessageRender'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import BackupRow from '@/components/server/backups/BackupRow'; 8 | import tw from 'twin.macro'; 9 | import getServerBackups, { Context as ServerBackupContext } from '@/api/swr/getServerBackups'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:7:23 TS2307: Cannot find module '@/components/server/backups/BackupRow' or its corresponding type declarations. 5 | import CreateBackupButton from '@/components/server/backups/CreateBackupButton'; 6 | import FlashMessageRender from '@/components/FlashMessageRender'; > 7 | import BackupRow from '@/components/server/backups/BackupRow'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 | import tw from 'twin.macro'; 9 | import getServerBackups, { Context as ServerBackupContext } from '@/api/swr/getServerBackups'; 10 | import { ServerContext } from '@/state/server'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:9:66 TS2307: Cannot find module '@/api/swr/getServerBackups' or its corresponding type declarations. 7 | import BackupRow from '@/components/server/backups/BackupRow'; 8 | import tw from 'twin.macro'; > 9 | import getServerBackups, { Context as ServerBackupContext } from '@/api/swr/getServerBackups'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import { ServerContext } from '@/state/server'; 11 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; 12 | import Pagination from '@/components/elements/Pagination'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:10:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 8 | import tw from 'twin.macro'; 9 | import getServerBackups, { Context as ServerBackupContext } from '@/api/swr/getServerBackups'; > 10 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 11 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; 12 | import Pagination from '@/components/elements/Pagination'; 13 | ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:11:32 TS2307: Cannot find module '@/components/elements/ServerContentBlock' or its corresponding type declarations. 9 | import getServerBackups, { Context as ServerBackupContext } from '@/api/swr/getServerBackups'; 10 | import { ServerContext } from '@/state/server'; > 11 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 | import Pagination from '@/components/elements/Pagination'; 13 | 14 | import BeforeContent from '@/blueprint/components/Server/Backups/BeforeContent'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:12:24 TS2307: Cannot find module '@/components/elements/Pagination' or its corresponding type declarations. 10 | import { ServerContext } from '@/state/server'; 11 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; > 12 | import Pagination from '@/components/elements/Pagination'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | 14 | import BeforeContent from '@/blueprint/components/Server/Backups/BeforeContent'; 15 | import AfterContent from '@/blueprint/components/Server/Backups/AfterContent'; ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:22:54 TS7006: Parameter 'state' implicitly has an 'any' type. 20 | const { data: backups, error, isValidating } = getServerBackups(); 21 | > 22 | const backupLimit = ServerContext.useStoreState((state) => state.server.data!.featureLimits.backups); | ^^^^^ 23 | 24 | useEffect(() => { 25 | if (!error) { ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:43:21 TS7031: Binding element 'items' implicitly has an 'any' type. 41 | 42 | > 43 | {({ items }) => | ^^^^^ 44 | !items.length ? ( 45 | // Don't show any error messages if the server has no backups and the user cannot 46 | // create additional ones for the server. ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:48:32 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 46 | // create additional ones for the server. 47 | !backupLimit ? null : ( > 48 |

| ^^^ 49 | {page > 1 50 | ? "Looks like we've run out of backups to show you, try going back a page." 51 | : 'It looks like there are no backups currently stored for this server.'} ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:55:36 TS7006: Parameter 'backup' implicitly has an 'any' type. 53 | ) 54 | ) : ( > 55 | items.map((backup, index) => ( | ^^^^^^ 56 | 0 ? tw`mt-2` : undefined} /> 57 | )) 58 | ) ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:55:44 TS7006: Parameter 'index' implicitly has an 'any' type. 53 | ) 54 | ) : ( > 55 | items.map((backup, index) => ( | ^^^^^ 56 | 0 ? tw`mt-2` : undefined} /> 57 | )) 58 | ) ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:62:20 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 60 | 61 | {backupLimit === 0 && ( > 62 |

| ^^^ 63 | Backups cannot be created for this server because the backup limit is set to 0. 64 |

65 | )} ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:67:22 TS2322: Type '{ children: (false | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 65 | )} 66 | > 67 |
| ^^^ 68 | {backupLimit > 0 && backups.backupCount > 0 && ( 69 |

70 | {backups.backupCount} of {backupLimit} backups have been created for this server. ERROR in resources/scripts/components/server/backups/BackupContainer.tsx:69:28 TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 67 |

68 | {backupLimit > 0 && backups.backupCount > 0 && ( > 69 |

| ^^^ 70 | {backups.backupCount} of {backupLimit} backups have been created for this server. 71 |

72 | )} ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:11:49 TS2307: Cannot find module '@/components/elements/DropdownMenu' or its corresponding type declarations. 9 | } from '@fortawesome/free-solid-svg-icons'; 10 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; > 11 | import DropdownMenu, { DropdownButtonRow } from '@/components/elements/DropdownMenu'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 | import getBackupDownloadUrl from '@/api/server/backups/getBackupDownloadUrl'; 13 | import useFlash from '@/plugins/useFlash'; 14 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:12:34 TS2307: Cannot find module '@/api/server/backups/getBackupDownloadUrl' or its corresponding type declarations. 10 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 11 | import DropdownMenu, { DropdownButtonRow } from '@/components/elements/DropdownMenu'; > 12 | import getBackupDownloadUrl from '@/api/server/backups/getBackupDownloadUrl'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | import useFlash from '@/plugins/useFlash'; 14 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 15 | import deleteBackup from '@/api/server/backups/deleteBackup'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:13:22 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 11 | import DropdownMenu, { DropdownButtonRow } from '@/components/elements/DropdownMenu'; 12 | import getBackupDownloadUrl from '@/api/server/backups/getBackupDownloadUrl'; > 13 | import useFlash from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 14 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 15 | import deleteBackup from '@/api/server/backups/deleteBackup'; 16 | import Can from '@/components/elements/Can'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:14:28 TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations. 12 | import getBackupDownloadUrl from '@/api/server/backups/getBackupDownloadUrl'; 13 | import useFlash from '@/plugins/useFlash'; > 14 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | import deleteBackup from '@/api/server/backups/deleteBackup'; 16 | import Can from '@/components/elements/Can'; 17 | import tw from 'twin.macro'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:15:26 TS2307: Cannot find module '@/api/server/backups/deleteBackup' or its corresponding type declarations. 13 | import useFlash from '@/plugins/useFlash'; 14 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; > 15 | import deleteBackup from '@/api/server/backups/deleteBackup'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | import Can from '@/components/elements/Can'; 17 | import tw from 'twin.macro'; 18 | import getServerBackups from '@/api/swr/getServerBackups'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:16:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 14 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 15 | import deleteBackup from '@/api/server/backups/deleteBackup'; > 16 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | import tw from 'twin.macro'; 18 | import getServerBackups from '@/api/swr/getServerBackups'; 19 | import { ServerBackup } from '@/api/server/types'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:18:30 TS2307: Cannot find module '@/api/swr/getServerBackups' or its corresponding type declarations. 16 | import Can from '@/components/elements/Can'; 17 | import tw from 'twin.macro'; > 18 | import getServerBackups from '@/api/swr/getServerBackups'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 19 | import { ServerBackup } from '@/api/server/types'; 20 | import { ServerContext } from '@/state/server'; 21 | import Input from '@/components/elements/Input'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:19:30 TS2307: Cannot find module '@/api/server/types' or its corresponding type declarations. 17 | import tw from 'twin.macro'; 18 | import getServerBackups from '@/api/swr/getServerBackups'; > 19 | import { ServerBackup } from '@/api/server/types'; | ^^^^^^^^^^^^^^^^^^^^ 20 | import { ServerContext } from '@/state/server'; 21 | import Input from '@/components/elements/Input'; 22 | import { restoreServerBackup } from '@/api/server/backups'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:20:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 18 | import getServerBackups from '@/api/swr/getServerBackups'; 19 | import { ServerBackup } from '@/api/server/types'; > 20 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 21 | import Input from '@/components/elements/Input'; 22 | import { restoreServerBackup } from '@/api/server/backups'; 23 | import http, { httpErrorToHuman } from '@/api/http'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:21:19 TS2307: Cannot find module '@/components/elements/Input' or its corresponding type declarations. 19 | import { ServerBackup } from '@/api/server/types'; 20 | import { ServerContext } from '@/state/server'; > 21 | import Input from '@/components/elements/Input'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 22 | import { restoreServerBackup } from '@/api/server/backups'; 23 | import http, { httpErrorToHuman } from '@/api/http'; 24 | import { Dialog } from '@/components/elements/dialog'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:22:37 TS2307: Cannot find module '@/api/server/backups' or its corresponding type declarations. 20 | import { ServerContext } from '@/state/server'; 21 | import Input from '@/components/elements/Input'; > 22 | import { restoreServerBackup } from '@/api/server/backups'; | ^^^^^^^^^^^^^^^^^^^^^^ 23 | import http, { httpErrorToHuman } from '@/api/http'; 24 | import { Dialog } from '@/components/elements/dialog'; 25 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:23:40 TS2307: Cannot find module '@/api/http' or its corresponding type declarations. 21 | import Input from '@/components/elements/Input'; 22 | import { restoreServerBackup } from '@/api/server/backups'; > 23 | import http, { httpErrorToHuman } from '@/api/http'; | ^^^^^^^^^^^^ 24 | import { Dialog } from '@/components/elements/dialog'; 25 | 26 | import DropdownItems from '@/blueprint/components/Server/Backups/DropdownItems'; ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:24:24 TS2307: Cannot find module '@/components/elements/dialog' or its corresponding type declarations. 22 | import { restoreServerBackup } from '@/api/server/backups'; 23 | import http, { httpErrorToHuman } from '@/api/http'; > 24 | import { Dialog } from '@/components/elements/dialog'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 25 | 26 | import DropdownItems from '@/blueprint/components/Server/Backups/DropdownItems'; 27 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:33:47 TS7006: Parameter 'state' implicitly has an 'any' type. 31 | 32 | export default ({ backup }: Props) => { > 33 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); | ^^^^^ 34 | const setServerFromState = ServerContext.useStoreActions((actions) => actions.server.setServerFromState); 35 | const [modal, setModal] = useState(''); 36 | const [loading, setLoading] = useState(false); ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:34:63 TS7006: Parameter 'actions' implicitly has an 'any' type. 32 | export default ({ backup }: Props) => { 33 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); > 34 | const setServerFromState = ServerContext.useStoreActions((actions) => actions.server.setServerFromState); | ^^^^^^^ 35 | const [modal, setModal] = useState(''); 36 | const [loading, setLoading] = useState(false); 37 | const [truncate, setTruncate] = useState(false); ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:45:20 TS7006: Parameter 'url' implicitly has an 'any' type. 43 | clearFlashes('backups'); 44 | getBackupDownloadUrl(uuid, backup.uuid) > 45 | .then((url) => { | ^^^ 46 | // @ts-expect-error this is valid 47 | window.location = url; 48 | }) ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:46:17 TS2578: Unused '@ts-expect-error' directive. 44 | getBackupDownloadUrl(uuid, backup.uuid) 45 | .then((url) => { > 46 | // @ts-expect-error this is valid | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 47 | window.location = url; 48 | }) 49 | .catch((error) => { ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:49:21 TS7006: Parameter 'error' implicitly has an 'any' type. 47 | window.location = url; 48 | }) > 49 | .catch((error) => { | ^^^^^ 50 | console.error(error); 51 | clearAndAddHttpError({ key: 'backups', error }); 52 | }) ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:62:22 TS7006: Parameter 'data' implicitly has an 'any' type. 60 | .then(() => 61 | mutate( > 62 | (data) => ({ | ^^^^ 63 | ...data, 64 | items: data.items.filter((b) => b.uuid !== backup.uuid), 65 | backupCount: data.backupCount - 1, ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:64:51 TS7006: Parameter 'b' implicitly has an 'any' type. 62 | (data) => ({ 63 | ...data, > 64 | items: data.items.filter((b) => b.uuid !== backup.uuid), | ^ 65 | backupCount: data.backupCount - 1, 66 | }), 67 | false ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:70:21 TS7006: Parameter 'error' implicitly has an 'any' type. 68 | ) 69 | ) > 70 | .catch((error) => { | ^^^^^ 71 | console.error(error); 72 | clearAndAddHttpError({ key: 'backups', error }); 73 | setLoading(false); ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:83:37 TS7006: Parameter 's' implicitly has an 'any' type. 81 | restoreServerBackup(uuid, backup.uuid, truncate) 82 | .then(() => > 83 | setServerFromState((s) => ({ | ^ 84 | ...s, 85 | status: 'restoring_backup', 86 | })) ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:88:21 TS7006: Parameter 'error' implicitly has an 'any' type. 86 | })) 87 | ) > 88 | .catch((error) => { | ^^^^^ 89 | console.error(error); 90 | clearAndAddHttpError({ key: 'backups', error }); 91 | }) ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:104:22 TS7006: Parameter 'data' implicitly has an 'any' type. 102 | .then(() => 103 | mutate( > 104 | (data) => ({ | ^^^^ 105 | ...data, 106 | items: data.items.map((b) => 107 | b.uuid !== backup.uuid ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:106:48 TS7006: Parameter 'b' implicitly has an 'any' type. 104 | (data) => ({ 105 | ...data, > 106 | items: data.items.map((b) => | ^ 107 | b.uuid !== backup.uuid 108 | ? b 109 | : { ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:118:21 TS7006: Parameter 'error' implicitly has an 'any' type. 116 | ) 117 | ) > 118 | .catch((error) => alert(httpErrorToHuman(error))) | ^^^^^ 119 | .then(() => setModal('')); 120 | }; 121 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:143:20 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 141 | manager, or create additional backups until completed. 142 |

> 143 |

| ^^^ 144 |

143 |

> 144 |

| ^^^ 179 | 180 | 181 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:181:87 TS2322: Type '{ fixedWidth: true; icon: IconDefinition; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 179 | 180 | > 181 | | ^^^ 182 | Download 183 | 184 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:182:39 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLSpanElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLSpanElement>'. 180 | 181 | > 182 | Download | ^^^ 183 | 184 | 185 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:187:78 TS2322: Type '{ fixedWidth: true; icon: IconDefinition; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 185 | 186 | setModal('restore')}> > 187 | | ^^^ 188 | Restore 189 | 190 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:188:39 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLSpanElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLSpanElement>'. 186 | setModal('restore')}> 187 | > 188 | Restore | ^^^ 189 | 190 | 191 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:197:41 TS2322: Type '{ fixedWidth: true; icon: IconDefinition; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 195 | fixedWidth 196 | icon={backup.isLocked ? faUnlock : faLock} > 197 | css={tw`text-xs mr-2`} | ^^^ 198 | /> 199 | {backup.isLocked ? 'Unlock' : 'Lock'} 200 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:203:87 TS2322: Type '{ fixedWidth: true; icon: IconDefinition; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 201 | {!backup.isLocked && ( 202 | setModal('delete')}> > 203 | | ^^^ 204 | Delete 205 | 206 | )} ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:204:47 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLSpanElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLSpanElement>'. 202 | setModal('delete')}> 203 | > 204 | Delete | ^^^ 205 | 206 | )} 207 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:215:21 TS2322: Type '{ children: Element; onClick: () => void; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLButtonElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLButtonElement>'. 213 | ERROR in resources/scripts/components/server/console/Console.tsx:7:39 TS2307: Cannot find module '@/plugins/XtermScrollDownHelperAddon' or its corresponding type declarations. 5 | import { SearchBarAddon } from 'xterm-addon-search-bar'; 6 | import { WebLinksAddon } from 'xterm-addon-web-links'; > 7 | import { ScrollDownHelperAddon } from '@/plugins/XtermScrollDownHelperAddon'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 9 | import { ServerContext } from '@/state/server'; 10 | import { usePermissions } from '@/plugins/usePermissions'; ERROR in resources/scripts/components/server/console/Console.tsx:8:28 TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations. 6 | import { WebLinksAddon } from 'xterm-addon-web-links'; 7 | import { ScrollDownHelperAddon } from '@/plugins/XtermScrollDownHelperAddon'; > 8 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 | import { ServerContext } from '@/state/server'; 10 | import { usePermissions } from '@/plugins/usePermissions'; 11 | import { theme as th } from 'twin.macro'; ERROR in resources/scripts/components/server/console/Console.tsx:9:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 7 | import { ScrollDownHelperAddon } from '@/plugins/XtermScrollDownHelperAddon'; 8 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; > 9 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 10 | import { usePermissions } from '@/plugins/usePermissions'; 11 | import { theme as th } from 'twin.macro'; 12 | import useEventListener from '@/plugins/useEventListener'; ERROR in resources/scripts/components/server/console/Console.tsx:10:32 TS2307: Cannot find module '@/plugins/usePermissions' or its corresponding type declarations. 8 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 9 | import { ServerContext } from '@/state/server'; > 10 | import { usePermissions } from '@/plugins/usePermissions'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 | import { theme as th } from 'twin.macro'; 12 | import useEventListener from '@/plugins/useEventListener'; 13 | import { debounce } from 'debounce'; ERROR in resources/scripts/components/server/console/Console.tsx:12:30 TS2307: Cannot find module '@/plugins/useEventListener' or its corresponding type declarations. 10 | import { usePermissions } from '@/plugins/usePermissions'; 11 | import { theme as th } from 'twin.macro'; > 12 | import useEventListener from '@/plugins/useEventListener'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | import { debounce } from 'debounce'; 14 | import { usePersistedState } from '@/plugins/usePersistedState'; 15 | import { SocketEvent, SocketRequest } from '@/components/server/events'; ERROR in resources/scripts/components/server/console/Console.tsx:14:35 TS2307: Cannot find module '@/plugins/usePersistedState' or its corresponding type declarations. 12 | import useEventListener from '@/plugins/useEventListener'; 13 | import { debounce } from 'debounce'; > 14 | import { usePersistedState } from '@/plugins/usePersistedState'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | import { SocketEvent, SocketRequest } from '@/components/server/events'; 16 | import classNames from 'classnames'; 17 | import { ChevronDoubleRightIcon } from '@heroicons/react/solid'; ERROR in resources/scripts/components/server/console/Console.tsx:15:44 TS2307: Cannot find module '@/components/server/events' or its corresponding type declarations. 13 | import { debounce } from 'debounce'; 14 | import { usePersistedState } from '@/plugins/usePersistedState'; > 15 | import { SocketEvent, SocketRequest } from '@/components/server/events'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | import classNames from 'classnames'; 17 | import { ChevronDoubleRightIcon } from '@heroicons/react/solid'; 18 | ERROR in resources/scripts/components/server/console/Console.tsx:22:20 TS2307: Cannot find module './style.module.css' or its corresponding type declarations. 20 | 21 | import 'xterm/css/xterm.css'; > 22 | import styles from './style.module.css'; | ^^^^^^^^^^^^^^^^^^^^ 23 | 24 | const theme = { 25 | background: th`colors.black`.toString(), ERROR in resources/scripts/components/server/console/Console.tsx:65:66 TS7006: Parameter 'state' implicitly has an 'any' type. 63 | const webLinksAddon = new WebLinksAddon(); 64 | const scrollDownHelperAddon = new ScrollDownHelperAddon(); > 65 | const { connected, instance } = ServerContext.useStoreState((state) => state.socket); | ^^^^^ 66 | const [canSendCommands] = usePermissions(['control.console']); 67 | const serverId = ServerContext.useStoreState((state) => state.server.data!.id); 68 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); ERROR in resources/scripts/components/server/console/Console.tsx:67:51 TS7006: Parameter 'state' implicitly has an 'any' type. 65 | const { connected, instance } = ServerContext.useStoreState((state) => state.socket); 66 | const [canSendCommands] = usePermissions(['control.console']); > 67 | const serverId = ServerContext.useStoreState((state) => state.server.data!.id); | ^^^^^ 68 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); 69 | const [history, setHistory] = usePersistedState(`${serverId}:command_history`, []); 70 | const [historyIndex, setHistoryIndex] = useState(-1); ERROR in resources/scripts/components/server/console/Console.tsx:68:57 TS7006: Parameter 'state' implicitly has an 'any' type. 66 | const [canSendCommands] = usePermissions(['control.console']); 67 | const serverId = ServerContext.useStoreState((state) => state.server.data!.id); > 68 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); | ^^^^^ 69 | const [history, setHistory] = usePersistedState(`${serverId}:command_history`, []); 70 | const [historyIndex, setHistoryIndex] = useState(-1); 71 | // SearchBarAddon has hardcoded z-index: 999 :( ERROR in resources/scripts/components/server/console/Console.tsx:118:25 TS7006: Parameter 'prevHistory' implicitly has an 'any' type. 116 | const command = e.currentTarget.value; 117 | if (e.key === 'Enter' && command.length > 0) { > 118 | setHistory((prevHistory) => [command, ...prevHistory!].slice(0, 32)); | ^^^^^^^^^^^ 119 | setHistoryIndex(-1); 120 | 121 | instance && instance.send('send command', command); ERROR in resources/scripts/components/server/console/PowerButtons.tsx:2:24 TS2307: Cannot find module '@/components/elements/button/index' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; > 2 | import { Button } from '@/components/elements/button/index'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import Can from '@/components/elements/Can'; 4 | import { ServerContext } from '@/state/server'; 5 | import { PowerAction } from '@/components/server/console/ServerConsoleContainer'; ERROR in resources/scripts/components/server/console/PowerButtons.tsx:3:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; 2 | import { Button } from '@/components/elements/button/index'; > 3 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 | import { ServerContext } from '@/state/server'; 5 | import { PowerAction } from '@/components/server/console/ServerConsoleContainer'; 6 | import { Dialog } from '@/components/elements/dialog'; ERROR in resources/scripts/components/server/console/PowerButtons.tsx:4:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 2 | import { Button } from '@/components/elements/button/index'; 3 | import Can from '@/components/elements/Can'; > 4 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 5 | import { PowerAction } from '@/components/server/console/ServerConsoleContainer'; 6 | import { Dialog } from '@/components/elements/dialog'; 7 | ERROR in resources/scripts/components/server/console/PowerButtons.tsx:6:24 TS2307: Cannot find module '@/components/elements/dialog' or its corresponding type declarations. 4 | import { ServerContext } from '@/state/server'; 5 | import { PowerAction } from '@/components/server/console/ServerConsoleContainer'; > 6 | import { Dialog } from '@/components/elements/dialog'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | 8 | import AdditionalPowerButtons from '@/blueprint/components/Server/Terminal/AdditionalPowerButtons'; 9 | ERROR in resources/scripts/components/server/console/PowerButtons.tsx:16:49 TS7006: Parameter 'state' implicitly has an 'any' type. 14 | export default ({ className }: PowerButtonProps) => { 15 | const [open, setOpen] = useState(false); > 16 | const status = ServerContext.useStoreState((state) => state.status.value); | ^^^^^ 17 | const instance = ServerContext.useStoreState((state) => state.socket.instance); 18 | 19 | const killable = status === 'stopping'; ERROR in resources/scripts/components/server/console/PowerButtons.tsx:17:51 TS7006: Parameter 'state' implicitly has an 'any' type. 15 | const [open, setOpen] = useState(false); 16 | const status = ServerContext.useStoreState((state) => state.status.value); > 17 | const instance = ServerContext.useStoreState((state) => state.socket.instance); | ^^^^^ 18 | 19 | const killable = status === 'stopping'; 20 | const onButtonClick = ( ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:2:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 1 | import React, { memo } from 'react'; > 2 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 3 | import Can from '@/components/elements/Can'; 4 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; 5 | import isEqual from 'react-fast-compare'; ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:3:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 1 | import React, { memo } from 'react'; 2 | import { ServerContext } from '@/state/server'; > 3 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; 5 | import isEqual from 'react-fast-compare'; 6 | import Spinner from '@/components/elements/Spinner'; ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:4:32 TS2307: Cannot find module '@/components/elements/ServerContentBlock' or its corresponding type declarations. 2 | import { ServerContext } from '@/state/server'; 3 | import Can from '@/components/elements/Can'; > 4 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import isEqual from 'react-fast-compare'; 6 | import Spinner from '@/components/elements/Spinner'; 7 | import Features from '@feature/Features'; ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:6:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 4 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; 5 | import isEqual from 'react-fast-compare'; > 6 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import Features from '@feature/Features'; 8 | import Console from '@/components/server/console/Console'; 9 | import StatGraphs from '@/components/server/console/StatGraphs'; ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:7:22 TS2307: Cannot find module '@feature/Features' or its corresponding type declarations. 5 | import isEqual from 'react-fast-compare'; 6 | import Spinner from '@/components/elements/Spinner'; > 7 | import Features from '@feature/Features'; | ^^^^^^^^^^^^^^^^^^^ 8 | import Console from '@/components/server/console/Console'; 9 | import StatGraphs from '@/components/server/console/StatGraphs'; 10 | import PowerButtons from '@/components/server/console/PowerButtons'; ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:9:24 TS2307: Cannot find module '@/components/server/console/StatGraphs' or its corresponding type declarations. 7 | import Features from '@feature/Features'; 8 | import Console from '@/components/server/console/Console'; > 9 | import StatGraphs from '@/components/server/console/StatGraphs'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import PowerButtons from '@/components/server/console/PowerButtons'; 11 | import ServerDetailsBlock from '@/components/server/console/ServerDetailsBlock'; 12 | import { Alert } from '@/components/elements/alert'; ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:12:23 TS2307: Cannot find module '@/components/elements/alert' or its corresponding type declarations. 10 | import PowerButtons from '@/components/server/console/PowerButtons'; 11 | import ServerDetailsBlock from '@/components/server/console/ServerDetailsBlock'; > 12 | import { Alert } from '@/components/elements/alert'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | 14 | import BeforeContent from '@/blueprint/components/Server/Terminal/BeforeContent'; 15 | import AfterContent from '@/blueprint/components/Server/Terminal/AfterContent'; ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:20:47 TS7006: Parameter 'state' implicitly has an 'any' type. 18 | 19 | const ServerConsoleContainer = () => { > 20 | const name = ServerContext.useStoreState((state) => state.server.data!.name); | ^^^^^ 21 | const description = ServerContext.useStoreState((state) => state.server.data!.description); 22 | const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling); 23 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:21:54 TS7006: Parameter 'state' implicitly has an 'any' type. 19 | const ServerConsoleContainer = () => { 20 | const name = ServerContext.useStoreState((state) => state.server.data!.name); > 21 | const description = ServerContext.useStoreState((state) => state.server.data!.description); | ^^^^^ 22 | const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling); 23 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); 24 | const eggFeatures = ServerContext.useStoreState((state) => state.server.data!.eggFeatures, isEqual); ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:22:55 TS7006: Parameter 'state' implicitly has an 'any' type. 20 | const name = ServerContext.useStoreState((state) => state.server.data!.name); 21 | const description = ServerContext.useStoreState((state) => state.server.data!.description); > 22 | const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling); | ^^^^^ 23 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); 24 | const eggFeatures = ServerContext.useStoreState((state) => state.server.data!.eggFeatures, isEqual); 25 | const isNodeUnderMaintenance = ServerContext.useStoreState((state) => state.server.data!.isNodeUnderMaintenance); ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:23:57 TS7006: Parameter 'state' implicitly has an 'any' type. 21 | const description = ServerContext.useStoreState((state) => state.server.data!.description); 22 | const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling); > 23 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); | ^^^^^ 24 | const eggFeatures = ServerContext.useStoreState((state) => state.server.data!.eggFeatures, isEqual); 25 | const isNodeUnderMaintenance = ServerContext.useStoreState((state) => state.server.data!.isNodeUnderMaintenance); 26 | ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:24:54 TS7006: Parameter 'state' implicitly has an 'any' type. 22 | const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling); 23 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); > 24 | const eggFeatures = ServerContext.useStoreState((state) => state.server.data!.eggFeatures, isEqual); | ^^^^^ 25 | const isNodeUnderMaintenance = ServerContext.useStoreState((state) => state.server.data!.isNodeUnderMaintenance); 26 | 27 | return ( ERROR in resources/scripts/components/server/console/ServerConsoleContainer.tsx:25:65 TS7006: Parameter 'state' implicitly has an 'any' type. 23 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); 24 | const eggFeatures = ServerContext.useStoreState((state) => state.server.data!.eggFeatures, isEqual); > 25 | const isNodeUnderMaintenance = ServerContext.useStoreState((state) => state.server.data!.isNodeUnderMaintenance); | ^^^^^ 26 | 27 | return ( 28 | ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:11:46 TS2307: Cannot find module '@/lib/formatters' or its corresponding type declarations. 9 | faWifi, 10 | } from '@fortawesome/free-solid-svg-icons'; > 11 | import { bytesToString, ip, mbToBytes } from '@/lib/formatters'; | ^^^^^^^^^^^^^^^^^^ 12 | import { ServerContext } from '@/state/server'; 13 | import { SocketEvent, SocketRequest } from '@/components/server/events'; 14 | import UptimeDuration from '@/components/server/UptimeDuration'; ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:12:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 10 | } from '@fortawesome/free-solid-svg-icons'; 11 | import { bytesToString, ip, mbToBytes } from '@/lib/formatters'; > 12 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 13 | import { SocketEvent, SocketRequest } from '@/components/server/events'; 14 | import UptimeDuration from '@/components/server/UptimeDuration'; 15 | import StatBlock from '@/components/server/console/StatBlock'; ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:13:44 TS2307: Cannot find module '@/components/server/events' or its corresponding type declarations. 11 | import { bytesToString, ip, mbToBytes } from '@/lib/formatters'; 12 | import { ServerContext } from '@/state/server'; > 13 | import { SocketEvent, SocketRequest } from '@/components/server/events'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 | import UptimeDuration from '@/components/server/UptimeDuration'; 15 | import StatBlock from '@/components/server/console/StatBlock'; 16 | import useWebsocketEvent from '@/plugins/useWebsocketEvent'; ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:14:28 TS2307: Cannot find module '@/components/server/UptimeDuration' or its corresponding type declarations. 12 | import { ServerContext } from '@/state/server'; 13 | import { SocketEvent, SocketRequest } from '@/components/server/events'; > 14 | import UptimeDuration from '@/components/server/UptimeDuration'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | import StatBlock from '@/components/server/console/StatBlock'; 16 | import useWebsocketEvent from '@/plugins/useWebsocketEvent'; 17 | import classNames from 'classnames'; ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:15:23 TS2307: Cannot find module '@/components/server/console/StatBlock' or its corresponding type declarations. 13 | import { SocketEvent, SocketRequest } from '@/components/server/events'; 14 | import UptimeDuration from '@/components/server/UptimeDuration'; > 15 | import StatBlock from '@/components/server/console/StatBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | import useWebsocketEvent from '@/plugins/useWebsocketEvent'; 17 | import classNames from 'classnames'; 18 | import { capitalize } from '@/lib/strings'; ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:16:31 TS2307: Cannot find module '@/plugins/useWebsocketEvent' or its corresponding type declarations. 14 | import UptimeDuration from '@/components/server/UptimeDuration'; 15 | import StatBlock from '@/components/server/console/StatBlock'; > 16 | import useWebsocketEvent from '@/plugins/useWebsocketEvent'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | import classNames from 'classnames'; 18 | import { capitalize } from '@/lib/strings'; 19 | ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:18:28 TS2307: Cannot find module '@/lib/strings' or its corresponding type declarations. 16 | import useWebsocketEvent from '@/plugins/useWebsocketEvent'; 17 | import classNames from 'classnames'; > 18 | import { capitalize } from '@/lib/strings'; | ^^^^^^^^^^^^^^^ 19 | 20 | import BeforeInformation from '@/blueprint/components/Server/Terminal/BeforeInformation'; 21 | import AfterInformation from '@/blueprint/components/Server/Terminal/AfterInformation'; ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:48:49 TS7006: Parameter 'state' implicitly has an 'any' type. 46 | const [stats, setStats] = useState({ memory: 0, cpu: 0, disk: 0, uptime: 0, tx: 0, rx: 0 }); 47 | > 48 | const status = ServerContext.useStoreState((state) => state.status.value); | ^^^^^ 49 | const connected = ServerContext.useStoreState((state) => state.socket.connected); 50 | const instance = ServerContext.useStoreState((state) => state.socket.instance); 51 | const limits = ServerContext.useStoreState((state) => state.server.data!.limits); ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:49:52 TS7006: Parameter 'state' implicitly has an 'any' type. 47 | 48 | const status = ServerContext.useStoreState((state) => state.status.value); > 49 | const connected = ServerContext.useStoreState((state) => state.socket.connected); | ^^^^^ 50 | const instance = ServerContext.useStoreState((state) => state.socket.instance); 51 | const limits = ServerContext.useStoreState((state) => state.server.data!.limits); 52 | ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:50:51 TS7006: Parameter 'state' implicitly has an 'any' type. 48 | const status = ServerContext.useStoreState((state) => state.status.value); 49 | const connected = ServerContext.useStoreState((state) => state.socket.connected); > 50 | const instance = ServerContext.useStoreState((state) => state.socket.instance); | ^^^^^ 51 | const limits = ServerContext.useStoreState((state) => state.server.data!.limits); 52 | 53 | const textLimits = useMemo( ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:51:49 TS7006: Parameter 'state' implicitly has an 'any' type. 49 | const connected = ServerContext.useStoreState((state) => state.socket.connected); 50 | const instance = ServerContext.useStoreState((state) => state.socket.instance); > 51 | const limits = ServerContext.useStoreState((state) => state.server.data!.limits); | ^^^^^ 52 | 53 | const textLimits = useMemo( 54 | () => ({ ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:62:53 TS7006: Parameter 'state' implicitly has an 'any' type. 60 | ); 61 | > 62 | const allocation = ServerContext.useStoreState((state) => { | ^^^^^ 63 | const match = state.server.data!.allocations.find((allocation) => allocation.isDefault); 64 | 65 | return !match ? 'n/a' : `${match.alias || ip(match.ip)}:${match.port}`; ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:63:60 TS7006: Parameter 'allocation' implicitly has an 'any' type. 61 | 62 | const allocation = ServerContext.useStoreState((state) => { > 63 | const match = state.server.data!.allocations.find((allocation) => allocation.isDefault); | ^^^^^^^^^^ 64 | 65 | return !match ? 'n/a' : `${match.alias || ip(match.ip)}:${match.port}`; 66 | }); ERROR in resources/scripts/components/server/console/ServerDetailsBlock.tsx:76:43 TS7006: Parameter 'data' implicitly has an 'any' type. 74 | }, [instance, connected]); 75 | > 76 | useWebsocketEvent(SocketEvent.STATS, (data) => { | ^^^^ 77 | let stats: any = {}; 78 | try { 79 | stats = JSON.parse(data); ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:2:32 TS2307: Cannot find module '@/api/server/databases/getServerDatabases' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; > 2 | import getServerDatabases from '@/api/server/databases/getServerDatabases'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import { ServerContext } from '@/state/server'; 4 | import { httpErrorToHuman } from '@/api/http'; 5 | import FlashMessageRender from '@/components/FlashMessageRender'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:3:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; 2 | import getServerDatabases from '@/api/server/databases/getServerDatabases'; > 3 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 4 | import { httpErrorToHuman } from '@/api/http'; 5 | import FlashMessageRender from '@/components/FlashMessageRender'; 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:4:34 TS2307: Cannot find module '@/api/http' or its corresponding type declarations. 2 | import getServerDatabases from '@/api/server/databases/getServerDatabases'; 3 | import { ServerContext } from '@/state/server'; > 4 | import { httpErrorToHuman } from '@/api/http'; | ^^^^^^^^^^^^ 5 | import FlashMessageRender from '@/components/FlashMessageRender'; 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow'; 7 | import Spinner from '@/components/elements/Spinner'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:5:32 TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations. 3 | import { ServerContext } from '@/state/server'; 4 | import { httpErrorToHuman } from '@/api/http'; > 5 | import FlashMessageRender from '@/components/FlashMessageRender'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow'; 7 | import Spinner from '@/components/elements/Spinner'; 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:6:25 TS2307: Cannot find module '@/components/server/databases/DatabaseRow' or its corresponding type declarations. 4 | import { httpErrorToHuman } from '@/api/http'; 5 | import FlashMessageRender from '@/components/FlashMessageRender'; > 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import Spinner from '@/components/elements/Spinner'; 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton'; 9 | import Can from '@/components/elements/Can'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:7:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 5 | import FlashMessageRender from '@/components/FlashMessageRender'; 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow'; > 7 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton'; 9 | import Can from '@/components/elements/Can'; 10 | import useFlash from '@/plugins/useFlash'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:8:34 TS2307: Cannot find module '@/components/server/databases/CreateDatabaseButton' or its corresponding type declarations. 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow'; 7 | import Spinner from '@/components/elements/Spinner'; > 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 | import Can from '@/components/elements/Can'; 10 | import useFlash from '@/plugins/useFlash'; 11 | import tw from 'twin.macro'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:9:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 7 | import Spinner from '@/components/elements/Spinner'; 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton'; > 9 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import useFlash from '@/plugins/useFlash'; 11 | import tw from 'twin.macro'; 12 | import Fade from '@/components/elements/Fade'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:10:22 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton'; 9 | import Can from '@/components/elements/Can'; > 10 | import useFlash from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 11 | import tw from 'twin.macro'; 12 | import Fade from '@/components/elements/Fade'; 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:12:18 TS2307: Cannot find module '@/components/elements/Fade' or its corresponding type declarations. 10 | import useFlash from '@/plugins/useFlash'; 11 | import tw from 'twin.macro'; > 12 | import Fade from '@/components/elements/Fade'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; 14 | import { useDeepMemoize } from '@/plugins/useDeepMemoize'; 15 | ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:13:32 TS2307: Cannot find module '@/components/elements/ServerContentBlock' or its corresponding type declarations. 11 | import tw from 'twin.macro'; 12 | import Fade from '@/components/elements/Fade'; > 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 | import { useDeepMemoize } from '@/plugins/useDeepMemoize'; 15 | 16 | import BeforeContent from '@/blueprint/components/Server/Databases/BeforeContent'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:14:32 TS2307: Cannot find module '@/plugins/useDeepMemoize' or its corresponding type declarations. 12 | import Fade from '@/components/elements/Fade'; 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock'; > 14 | import { useDeepMemoize } from '@/plugins/useDeepMemoize'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | 16 | import BeforeContent from '@/blueprint/components/Server/Databases/BeforeContent'; 17 | import AfterContent from '@/blueprint/components/Server/Databases/AfterContent'; ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:20:47 TS7006: Parameter 'state' implicitly has an 'any' type. 18 | 19 | export default () => { > 20 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); | ^^^^^ 21 | const databaseLimit = ServerContext.useStoreState((state) => state.server.data!.featureLimits.databases); 22 | 23 | const { addError, clearFlashes } = useFlash(); ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:21:56 TS7006: Parameter 'state' implicitly has an 'any' type. 19 | export default () => { 20 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); > 21 | const databaseLimit = ServerContext.useStoreState((state) => state.server.data!.featureLimits.databases); | ^^^^^ 22 | 23 | const { addError, clearFlashes } = useFlash(); 24 | const [loading, setLoading] = useState(true); ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:26:67 TS7006: Parameter 'state' implicitly has an 'any' type. 24 | const [loading, setLoading] = useState(true); 25 | > 26 | const databases = useDeepMemoize(ServerContext.useStoreState((state) => state.databases.data)); | ^^^^^ 27 | const setDatabases = ServerContext.useStoreActions((state) => state.databases.setDatabases); 28 | 29 | useEffect(() => { ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:27:57 TS7006: Parameter 'state' implicitly has an 'any' type. 25 | 26 | const databases = useDeepMemoize(ServerContext.useStoreState((state) => state.databases.data)); > 27 | const setDatabases = ServerContext.useStoreActions((state) => state.databases.setDatabases); | ^^^^^ 28 | 29 | useEffect(() => { 30 | setLoading(!databases.length); ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:34:20 TS7006: Parameter 'databases' implicitly has an 'any' type. 32 | 33 | getServerDatabases(uuid) > 34 | .then((databases) => setDatabases(databases)) | ^^^^^^^^^ 35 | .catch((error) => { 36 | console.error(error); 37 | addError({ key: 'databases', message: httpErrorToHuman(error) }); ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:35:21 TS7006: Parameter 'error' implicitly has an 'any' type. 33 | getServerDatabases(uuid) 34 | .then((databases) => setDatabases(databases)) > 35 | .catch((error) => { | ^^^^^ 36 | console.error(error); 37 | addError({ key: 'databases', message: httpErrorToHuman(error) }); 38 | }) ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:52:44 TS7006: Parameter 'database' implicitly has an 'any' type. 50 | 51 | {databases.length > 0 ? ( > 52 | databases.map((database, index) => ( | ^^^^^^^^ 53 | 51 | {databases.length > 0 ? ( > 52 | databases.map((database, index) => ( | ^^^^^ 53 | , HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 58 | )) 59 | ) : ( > 60 |

| ^^^ 61 | {databaseLimit > 0 62 | ? 'It looks like you have no databases.' 63 | : 'Databases cannot be created for this server.'} ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:67:34 TS2322: Type '{ children: (false | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 65 | )} 66 | > 67 |

| ^^^ 68 | {databaseLimit > 0 && databases.length > 0 && ( 69 |

70 | {databases.length} of {databaseLimit} databases have been allocated to this ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:69:40 TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 67 |

68 | {databaseLimit > 0 && databases.length > 0 && ( > 69 |

| ^^^ 70 | {databases.length} of {databaseLimit} databases have been allocated to this 71 | server. 72 |

ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:15:29 TS2307: Cannot find module '@/components/server/files/RenameFileModal' or its corresponding type declarations. 13 | IconDefinition, 14 | } from '@fortawesome/free-solid-svg-icons'; > 15 | import RenameFileModal from '@/components/server/files/RenameFileModal'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | import { ServerContext } from '@/state/server'; 17 | import { join } from 'path'; 18 | import deleteFiles from '@/api/server/files/deleteFiles'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:16:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 14 | } from '@fortawesome/free-solid-svg-icons'; 15 | import RenameFileModal from '@/components/server/files/RenameFileModal'; > 16 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 17 | import { join } from 'path'; 18 | import deleteFiles from '@/api/server/files/deleteFiles'; 19 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:18:25 TS2307: Cannot find module '@/api/server/files/deleteFiles' or its corresponding type declarations. 16 | import { ServerContext } from '@/state/server'; 17 | import { join } from 'path'; > 18 | import deleteFiles from '@/api/server/files/deleteFiles'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 19 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 20 | import copyFile from '@/api/server/files/copyFile'; 21 | import Can from '@/components/elements/Can'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:19:28 TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations. 17 | import { join } from 'path'; 18 | import deleteFiles from '@/api/server/files/deleteFiles'; > 19 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20 | import copyFile from '@/api/server/files/copyFile'; 21 | import Can from '@/components/elements/Can'; 22 | import getFileDownloadUrl from '@/api/server/files/getFileDownloadUrl'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:20:22 TS2307: Cannot find module '@/api/server/files/copyFile' or its corresponding type declarations. 18 | import deleteFiles from '@/api/server/files/deleteFiles'; 19 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; > 20 | import copyFile from '@/api/server/files/copyFile'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21 | import Can from '@/components/elements/Can'; 22 | import getFileDownloadUrl from '@/api/server/files/getFileDownloadUrl'; 23 | import useFlash from '@/plugins/useFlash'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:21:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 19 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 20 | import copyFile from '@/api/server/files/copyFile'; > 21 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 22 | import getFileDownloadUrl from '@/api/server/files/getFileDownloadUrl'; 23 | import useFlash from '@/plugins/useFlash'; 24 | import tw from 'twin.macro'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:22:32 TS2307: Cannot find module '@/api/server/files/getFileDownloadUrl' or its corresponding type declarations. 20 | import copyFile from '@/api/server/files/copyFile'; 21 | import Can from '@/components/elements/Can'; > 22 | import getFileDownloadUrl from '@/api/server/files/getFileDownloadUrl'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 23 | import useFlash from '@/plugins/useFlash'; 24 | import tw from 'twin.macro'; 25 | import { FileObject } from '@/api/server/files/loadDirectory'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:23:22 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 21 | import Can from '@/components/elements/Can'; 22 | import getFileDownloadUrl from '@/api/server/files/getFileDownloadUrl'; > 23 | import useFlash from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 24 | import tw from 'twin.macro'; 25 | import { FileObject } from '@/api/server/files/loadDirectory'; 26 | import useFileManagerSwr from '@/plugins/useFileManagerSwr'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:25:28 TS2307: Cannot find module '@/api/server/files/loadDirectory' or its corresponding type declarations. 23 | import useFlash from '@/plugins/useFlash'; 24 | import tw from 'twin.macro'; > 25 | import { FileObject } from '@/api/server/files/loadDirectory'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 26 | import useFileManagerSwr from '@/plugins/useFileManagerSwr'; 27 | import DropdownMenu from '@/components/elements/DropdownMenu'; 28 | import styled from 'styled-components/macro'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:26:31 TS2307: Cannot find module '@/plugins/useFileManagerSwr' or its corresponding type declarations. 24 | import tw from 'twin.macro'; 25 | import { FileObject } from '@/api/server/files/loadDirectory'; > 26 | import useFileManagerSwr from '@/plugins/useFileManagerSwr'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 27 | import DropdownMenu from '@/components/elements/DropdownMenu'; 28 | import styled from 'styled-components/macro'; 29 | import useEventListener from '@/plugins/useEventListener'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:27:26 TS2307: Cannot find module '@/components/elements/DropdownMenu' or its corresponding type declarations. 25 | import { FileObject } from '@/api/server/files/loadDirectory'; 26 | import useFileManagerSwr from '@/plugins/useFileManagerSwr'; > 27 | import DropdownMenu from '@/components/elements/DropdownMenu'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 28 | import styled from 'styled-components/macro'; 29 | import useEventListener from '@/plugins/useEventListener'; 30 | import compressFiles from '@/api/server/files/compressFiles'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:29:30 TS2307: Cannot find module '@/plugins/useEventListener' or its corresponding type declarations. 27 | import DropdownMenu from '@/components/elements/DropdownMenu'; 28 | import styled from 'styled-components/macro'; > 29 | import useEventListener from '@/plugins/useEventListener'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30 | import compressFiles from '@/api/server/files/compressFiles'; 31 | import decompressFiles from '@/api/server/files/decompressFiles'; 32 | import isEqual from 'react-fast-compare'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:30:27 TS2307: Cannot find module '@/api/server/files/compressFiles' or its corresponding type declarations. 28 | import styled from 'styled-components/macro'; 29 | import useEventListener from '@/plugins/useEventListener'; > 30 | import compressFiles from '@/api/server/files/compressFiles'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 31 | import decompressFiles from '@/api/server/files/decompressFiles'; 32 | import isEqual from 'react-fast-compare'; 33 | import ChmodFileModal from '@/components/server/files/ChmodFileModal'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:31:29 TS2307: Cannot find module '@/api/server/files/decompressFiles' or its corresponding type declarations. 29 | import useEventListener from '@/plugins/useEventListener'; 30 | import compressFiles from '@/api/server/files/compressFiles'; > 31 | import decompressFiles from '@/api/server/files/decompressFiles'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | import isEqual from 'react-fast-compare'; 33 | import ChmodFileModal from '@/components/server/files/ChmodFileModal'; 34 | import { Dialog } from '@/components/elements/dialog'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:33:28 TS2307: Cannot find module '@/components/server/files/ChmodFileModal' or its corresponding type declarations. 31 | import decompressFiles from '@/api/server/files/decompressFiles'; 32 | import isEqual from 'react-fast-compare'; > 33 | import ChmodFileModal from '@/components/server/files/ChmodFileModal'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 34 | import { Dialog } from '@/components/elements/dialog'; 35 | 36 | import DropdownItems from '@/blueprint/components/Server/Files/Browse/DropdownItems'; ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:34:24 TS2307: Cannot find module '@/components/elements/dialog' or its corresponding type declarations. 32 | import isEqual from 'react-fast-compare'; 33 | import ChmodFileModal from '@/components/server/files/ChmodFileModal'; > 34 | import { Dialog } from '@/components/elements/dialog'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 35 | 36 | import DropdownItems from '@/blueprint/components/Server/Files/Browse/DropdownItems'; 37 | ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:54:38 TS2322: Type '{ icon: IconDefinition; css: TwStyle; fixedWidth: true; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'. Property 'css' does not exist on type 'IntrinsicAttributes & FontAwesomeIconProps'. 52 | const Row = ({ icon, title, ...props }: RowProps) => ( 53 | > 54 | | ^^^ 55 | {title} 56 | 57 | ); ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:55:15 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLSpanElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLSpanElement>'. 53 | 54 | > 55 | {title} | ^^^ 56 | 57 | ); 58 | ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:65:47 TS7006: Parameter 'state' implicitly has an 'any' type. 63 | const [showConfirmation, setShowConfirmation] = useState(false); 64 | > 65 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); | ^^^^^ 66 | const { mutate } = useFileManagerSwr(); 67 | const { clearAndAddHttpError, clearFlashes } = useFlash(); 68 | const directory = ServerContext.useStoreState((state) => state.files.directory); ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:68:52 TS7006: Parameter 'state' implicitly has an 'any' type. 66 | const { mutate } = useFileManagerSwr(); 67 | const { clearAndAddHttpError, clearFlashes } = useFlash(); > 68 | const directory = ServerContext.useStoreState((state) => state.files.directory); | ^^^^^ 69 | 70 | useEventListener(`pterodactyl:files:ctx:${file.key}`, (e: CustomEvent) => { 71 | if (onClickRef.current) { ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:81:17 TS7006: Parameter 'files' implicitly has an 'any' type. 79 | // For UI speed, immediately remove the file from the listing before calling the deletion function. 80 | // If the delete actually fails, we'll fetch the current directory contents again automatically. > 81 | mutate((files) => files.filter((f) => f.key !== file.key), false); | ^^^^^ 82 | 83 | deleteFiles(uuid, directory, [file.name]).catch((error) => { 84 | mutate(); ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:81:41 TS7006: Parameter 'f' implicitly has an 'any' type. 79 | // For UI speed, immediately remove the file from the listing before calling the deletion function. 80 | // If the delete actually fails, we'll fetch the current directory contents again automatically. > 81 | mutate((files) => files.filter((f) => f.key !== file.key), false); | ^ 82 | 83 | deleteFiles(uuid, directory, [file.name]).catch((error) => { 84 | mutate(); ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:83:58 TS7006: Parameter 'error' implicitly has an 'any' type. 81 | mutate((files) => files.filter((f) => f.key !== file.key), false); 82 | > 83 | deleteFiles(uuid, directory, [file.name]).catch((error) => { | ^^^^^ 84 | mutate(); 85 | clearAndAddHttpError({ key: 'files', error }); 86 | }); ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:95:21 TS7006: Parameter 'error' implicitly has an 'any' type. 93 | copyFile(uuid, join(directory, file.name)) 94 | .then(() => mutate()) > 95 | .catch((error) => clearAndAddHttpError({ key: 'files', error })) | ^^^^^ 96 | .then(() => setShowSpinner(false)); 97 | }; 98 | ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:104:20 TS7006: Parameter 'url' implicitly has an 'any' type. 102 | 103 | getFileDownloadUrl(uuid, join(directory, file.name)) > 104 | .then((url) => { | ^^^ 105 | // @ts-expect-error this is valid 106 | window.location = url; 107 | }) ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:105:17 TS2578: Unused '@ts-expect-error' directive. 103 | getFileDownloadUrl(uuid, join(directory, file.name)) 104 | .then((url) => { > 105 | // @ts-expect-error this is valid | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 106 | window.location = url; 107 | }) 108 | .catch((error) => clearAndAddHttpError({ key: 'files', error })) ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:108:21 TS7006: Parameter 'error' implicitly has an 'any' type. 106 | window.location = url; 107 | }) > 108 | .catch((error) => clearAndAddHttpError({ key: 'files', error })) | ^^^^^ 109 | .then(() => setShowSpinner(false)); 110 | }; 111 | ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:118:21 TS7006: Parameter 'error' implicitly has an 'any' type. 116 | compressFiles(uuid, directory, [file.name]) 117 | .then(() => mutate()) > 118 | .catch((error) => clearAndAddHttpError({ key: 'files', error })) | ^^^^^ 119 | .then(() => setShowSpinner(false)); 120 | }; 121 | ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:128:21 TS7006: Parameter 'error' implicitly has an 'any' type. 126 | decompressFiles(uuid, directory, file.name) 127 | .then(() => mutate()) > 128 | .catch((error) => clearAndAddHttpError({ key: 'files', error })) | ^^^^^ 129 | .then(() => setShowSpinner(false)); 130 | }; 131 | ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:146:32 TS7006: Parameter 'onClick' implicitly has an 'any' type. 144 | 146 | renderToggle={(onClick) => ( | ^^^^^^^ 147 |
148 | 149 | {modal ? ( ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:147:26 TS2322: Type '{ children: (Element | null)[]; css: TwStyle; onClick: any; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 145 | ref={onClickRef} 146 | renderToggle={(onClick) => ( > 147 |
| ^^^ 148 | 149 | {modal ? ( 150 | modal === 'chmod' ? ( ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:2:29 TS2307: Cannot find module '@/api/server/files/getFileContents' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; > 2 | import getFileContents from '@/api/server/files/getFileContents'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import { httpErrorToHuman } from '@/api/http'; 4 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 5 | import saveFileContents from '@/api/server/files/saveFileContents'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:3:34 TS2307: Cannot find module '@/api/http' or its corresponding type declarations. 1 | import React, { useEffect, useState } from 'react'; 2 | import getFileContents from '@/api/server/files/getFileContents'; > 3 | import { httpErrorToHuman } from '@/api/http'; | ^^^^^^^^^^^^ 4 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 5 | import saveFileContents from '@/api/server/files/saveFileContents'; 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:4:28 TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations. 2 | import getFileContents from '@/api/server/files/getFileContents'; 3 | import { httpErrorToHuman } from '@/api/http'; > 4 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import saveFileContents from '@/api/server/files/saveFileContents'; 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs'; 7 | import { useHistory, useLocation, useParams } from 'react-router'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:5:30 TS2307: Cannot find module '@/api/server/files/saveFileContents' or its corresponding type declarations. 3 | import { httpErrorToHuman } from '@/api/http'; 4 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; > 5 | import saveFileContents from '@/api/server/files/saveFileContents'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs'; 7 | import { useHistory, useLocation, useParams } from 'react-router'; 8 | import FileNameModal from '@/components/server/files/FileNameModal'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:6:36 TS2307: Cannot find module '@/components/server/files/FileManagerBreadcrumbs' or its corresponding type declarations. 4 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; 5 | import saveFileContents from '@/api/server/files/saveFileContents'; > 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | import { useHistory, useLocation, useParams } from 'react-router'; 8 | import FileNameModal from '@/components/server/files/FileNameModal'; 9 | import Can from '@/components/elements/Can'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:8:27 TS2307: Cannot find module '@/components/server/files/FileNameModal' or its corresponding type declarations. 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs'; 7 | import { useHistory, useLocation, useParams } from 'react-router'; > 8 | import FileNameModal from '@/components/server/files/FileNameModal'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 | import Can from '@/components/elements/Can'; 10 | import FlashMessageRender from '@/components/FlashMessageRender'; 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:9:17 TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations. 7 | import { useHistory, useLocation, useParams } from 'react-router'; 8 | import FileNameModal from '@/components/server/files/FileNameModal'; > 9 | import Can from '@/components/elements/Can'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import FlashMessageRender from '@/components/FlashMessageRender'; 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; 12 | import { ServerError } from '@/components/elements/ScreenBlock'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:10:32 TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations. 8 | import FileNameModal from '@/components/server/files/FileNameModal'; 9 | import Can from '@/components/elements/Can'; > 10 | import FlashMessageRender from '@/components/FlashMessageRender'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; 12 | import { ServerError } from '@/components/elements/ScreenBlock'; 13 | import tw from 'twin.macro'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:11:30 TS2307: Cannot find module '@/components/elements/PageContentBlock' or its corresponding type declarations. 9 | import Can from '@/components/elements/Can'; 10 | import FlashMessageRender from '@/components/FlashMessageRender'; > 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 | import { ServerError } from '@/components/elements/ScreenBlock'; 13 | import tw from 'twin.macro'; 14 | import Button from '@/components/elements/Button'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:12:29 TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations. 10 | import FlashMessageRender from '@/components/FlashMessageRender'; 11 | import PageContentBlock from '@/components/elements/PageContentBlock'; > 12 | import { ServerError } from '@/components/elements/ScreenBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | import tw from 'twin.macro'; 14 | import Button from '@/components/elements/Button'; 15 | import Select from '@/components/elements/Select'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:14:20 TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations. 12 | import { ServerError } from '@/components/elements/ScreenBlock'; 13 | import tw from 'twin.macro'; > 14 | import Button from '@/components/elements/Button'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | import Select from '@/components/elements/Select'; 16 | import modes from '@/modes'; 17 | import useFlash from '@/plugins/useFlash'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:15:20 TS2307: Cannot find module '@/components/elements/Select' or its corresponding type declarations. 13 | import tw from 'twin.macro'; 14 | import Button from '@/components/elements/Button'; > 15 | import Select from '@/components/elements/Select'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | import modes from '@/modes'; 17 | import useFlash from '@/plugins/useFlash'; 18 | import { ServerContext } from '@/state/server'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:16:19 TS2307: Cannot find module '@/modes' or its corresponding type declarations. 14 | import Button from '@/components/elements/Button'; 15 | import Select from '@/components/elements/Select'; > 16 | import modes from '@/modes'; | ^^^^^^^^^ 17 | import useFlash from '@/plugins/useFlash'; 18 | import { ServerContext } from '@/state/server'; 19 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:17:22 TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations. 15 | import Select from '@/components/elements/Select'; 16 | import modes from '@/modes'; > 17 | import useFlash from '@/plugins/useFlash'; | ^^^^^^^^^^^^^^^^^^^^ 18 | import { ServerContext } from '@/state/server'; 19 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; 20 | import { encodePathSegments, hashToPath } from '@/helpers'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:18:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 16 | import modes from '@/modes'; 17 | import useFlash from '@/plugins/useFlash'; > 18 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 19 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; 20 | import { encodePathSegments, hashToPath } from '@/helpers'; 21 | import { dirname } from 'path'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:19:27 TS2307: Cannot find module '@/components/elements/ErrorBoundary' or its corresponding type declarations. 17 | import useFlash from '@/plugins/useFlash'; 18 | import { ServerContext } from '@/state/server'; > 19 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20 | import { encodePathSegments, hashToPath } from '@/helpers'; 21 | import { dirname } from 'path'; 22 | import CodemirrorEditor from '@/components/elements/CodemirrorEditor'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:20:48 TS2307: Cannot find module '@/helpers' or its corresponding type declarations. 18 | import { ServerContext } from '@/state/server'; 19 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; > 20 | import { encodePathSegments, hashToPath } from '@/helpers'; | ^^^^^^^^^^^ 21 | import { dirname } from 'path'; 22 | import CodemirrorEditor from '@/components/elements/CodemirrorEditor'; 23 | ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:22:30 TS2307: Cannot find module '@/components/elements/CodemirrorEditor' or its corresponding type declarations. 20 | import { encodePathSegments, hashToPath } from '@/helpers'; 21 | import { dirname } from 'path'; > 22 | import CodemirrorEditor from '@/components/elements/CodemirrorEditor'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 23 | 24 | import BeforeEdit from '@/blueprint/components/Server/Files/Edit/BeforeEdit'; 25 | import AfterEdit from '@/blueprint/components/Server/Files/Edit/AfterEdit'; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:38:45 TS7006: Parameter 'state' implicitly has an 'any' type. 36 | const { hash } = useLocation(); 37 | > 38 | const id = ServerContext.useStoreState((state) => state.server.data!.id); | ^^^^^ 39 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); 40 | const setDirectory = ServerContext.useStoreActions((actions) => actions.files.setDirectory); 41 | const { addError, clearFlashes } = useFlash(); ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:39:47 TS7006: Parameter 'state' implicitly has an 'any' type. 37 | 38 | const id = ServerContext.useStoreState((state) => state.server.data!.id); > 39 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); | ^^^^^ 40 | const setDirectory = ServerContext.useStoreActions((actions) => actions.files.setDirectory); 41 | const { addError, clearFlashes } = useFlash(); 42 | ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:40:57 TS7006: Parameter 'actions' implicitly has an 'any' type. 38 | const id = ServerContext.useStoreState((state) => state.server.data!.id); 39 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); > 40 | const setDirectory = ServerContext.useStoreActions((actions) => actions.files.setDirectory); | ^^^^^^^ 41 | const { addError, clearFlashes } = useFlash(); 42 | 43 | let fetchFileContent: null | (() => Promise) = null; ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:54:21 TS7006: Parameter 'error' implicitly has an 'any' type. 52 | getFileContents(uuid, path) 53 | .then(setContent) > 54 | .catch((error) => { | ^^^^^ 55 | console.error(error); 56 | setError(httpErrorToHuman(error)); 57 | }) ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:93:22 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 91 | 92 | > 93 |
| ^^^ 94 | 95 |
96 |
ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:99:22 TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 97 | 98 | {hash.replace(/^#/, '').endsWith('.pteroignore') && ( > 99 |
| ^^^ 100 |

101 | You're editing a .pteroignore{' '} 102 | file. Any files or directories listed in here will be excluded from backups. Wildcards are ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:100:24 TS2322: Type '{ children: (string | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLParagraphElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLParagraphElement>'. 98 | {hash.replace(/^#/, '').endsWith('.pteroignore') && ( 99 |

> 100 |

| ^^^ 101 | You're editing a .pteroignore{' '} 102 | file. Any files or directories listed in here will be excluded from backups. Wildcards are 103 | supported by using an asterisk (*). ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:101:53 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLElement>'. 99 |

100 |

> 101 | You're editing a .pteroignore{' '} | ^^^ 102 | file. Any files or directories listed in here will be excluded from backups. Wildcards are 103 | supported by using an asterisk (*). 104 | You can negate a prior rule by prepending an exclamation point ( ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:103:63 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLElement>'. 101 | You're editing a .pteroignore{' '} 102 | file. Any files or directories listed in here will be excluded from backups. Wildcards are > 103 | supported by using an asterisk (*). | ^^^ 104 | You can negate a prior rule by prepending an exclamation point ( 105 | !). 106 |

ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:105:31 TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLElement>'. 103 | supported by using an asterisk (*). 104 | You can negate a prior rule by prepending an exclamation point ( > 105 | !). | ^^^ 106 |

107 |
108 | )} ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:112:31 TS7006: Parameter 'name' implicitly has an 'any' type. 110 | visible={modalVisible} 111 | onDismissed={() => setModalVisible(false)} > 112 | onFileNamed={(name) => { | ^^^^ 113 | setModalVisible(false); 114 | save(name); 115 | }} ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:117:18 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 115 | }} 116 | /> > 117 |
| ^^^ 118 | 119 | 124 | fetchContent={(value) => { | ^^^^^ 125 | fetchFileContent = value; 126 | }} 127 | onContentSaved={() => { ERROR in resources/scripts/components/server/files/FileEditContainer.tsx:136:18 TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps, HTMLDivElement>'. Property 'css' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'. 134 | /> 135 |
> 136 |
| ^^^ 137 |
138 | setMode(e.currentTarget.value)}> 139 | {modes.map((mode) => ( 140 |