Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yarn run v1.22.18
- $ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production
- $ cd public/assets && find . \( -name "*.js" -o -name "*.map" \) -type f -delete
- Hash: ed4fb0e05ec7896d47ca
- Version: webpack 4.43.0
- Time: 4071ms
- Built at: 07/18/2022 11:45:57 AM
- 1 asset
- Entrypoint main = bundle.13f15dbc.js
- [0] multi react-hot-loader/patch ./resources/scripts/index.tsx 40 bytes {0} [built]
- + 5 hidden modules
- ERROR in multi react-hot-loader/patch ./resources/scripts/index.tsx
- Module not found: Error: Can't resolve './resources/scripts/index.tsx' in '/var/www/pterodactyl'
- @ multi react-hot-loader/patch ./resources/scripts/index.tsx main[1]
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:4:39
- TS2307: Cannot find module '@/api/auth/requestPasswordResetEmail' or its corresponding type declarations.
- 2 | import { useEffect, useRef, useState } from 'react';
- 3 | import { Link } from 'react-router-dom';
- > 4 | import requestPasswordResetEmail from '@/api/auth/requestPasswordResetEmail';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 5 | import { httpErrorToHuman } from '@/api/http';
- 6 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
- 7 | import { useStoreState } from 'easy-peasy';
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:5:34
- TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
- 3 | import { Link } from 'react-router-dom';
- 4 | import requestPasswordResetEmail from '@/api/auth/requestPasswordResetEmail';
- > 5 | import { httpErrorToHuman } from '@/api/http';
- | ^^^^^^^^^^^^
- 6 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
- 7 | import { useStoreState } from 'easy-peasy';
- 8 | import Field from '@/components/elements/Field';
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:8:19
- TS2307: Cannot find module '@/components/elements/Field' or its corresponding type declarations.
- 6 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
- 7 | import { useStoreState } from 'easy-peasy';
- > 8 | import Field from '@/components/elements/Field';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 9 | import { Formik, FormikHelpers } from 'formik';
- 10 | import { object, string } from 'yup';
- 11 | import tw from 'twin.macro';
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:12:20
- TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
- 10 | import { object, string } from 'yup';
- 11 | import tw from 'twin.macro';
- > 12 | import Button from '@/components/elements/Button';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 13 | import Reaptcha from 'reaptcha';
- 14 | import useFlash from '@/plugins/useFlash';
- 15 |
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:14:22
- TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations.
- 12 | import Button from '@/components/elements/Button';
- 13 | import Reaptcha from 'reaptcha';
- > 14 | import useFlash from '@/plugins/useFlash';
- | ^^^^^^^^^^^^^^^^^^^^
- 15 |
- 16 | interface Values {
- 17 | email: string;
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:25:81
- TS2339: Property 'settings' does not exist on type 'StateMapper<_Pick<{}, never>>'.
- 23 |
- 24 | const { clearFlashes, addFlash } = useFlash();
- > 25 | const { enabled: recaptchaEnabled, siteKey } = useStoreState(state => state.settings.data!.recaptcha);
- | ^^^^^^^^
- 26 |
- 27 | useEffect(() => {
- 28 | clearFlashes();
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:48:19
- TS7006: Parameter 'response' implicitly has an 'any' type.
- 46 |
- 47 | requestPasswordResetEmail(email, token)
- > 48 | .then(response => {
- | ^^^^^^^^
- 49 | resetForm();
- 50 | addFlash({ type: 'success', title: 'Success', message: response });
- 51 | })
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:52:20
- TS7006: Parameter 'error' implicitly has an 'any' type.
- 50 | addFlash({ type: 'success', title: 'Success', message: response });
- 51 | })
- > 52 | .catch(error => {
- | ^^^^^
- 53 | console.error(error);
- 54 | addFlash({ type: 'error', title: 'Error', message: httpErrorToHuman(error) });
- 55 | })
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:77:21
- TS2322: Type '{ children: any[]; title: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
- 75 | <LoginFormContainer
- 76 | title={'Request Password Reset'}
- > 77 | css={tw`w-full flex`}
- | ^^^
- 78 | >
- 79 | <Field
- 80 | light
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:86:26
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 84 | type={'email'}
- 85 | />
- > 86 | <div css={tw`mt-6`}>
- | ^^^
- 87 | <Button
- 88 | type={'submit'}
- 89 | size={'xlarge'}
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:111:26
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 109 | />
- 110 | }
- > 111 | <div css={tw`mt-6 text-center`}>
- | ^^^
- 112 | <Link
- 113 | to={'/auth/login'}
- 114 | css={tw`text-xs text-neutral-500 tracking-wide uppercase no-underline hover:text-neutral-700`}
- ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:114:29
- TS2769: No overload matches this call.
- Overload 1 of 2, '(props: Readonly<LinkProps<any>>): Link<any>', gave the following error.
- Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- Overload 2 of 2, '(props: LinkProps<any>, context?: any): Link<any>', gave the following error.
- Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- 112 | <Link
- 113 | to={'/auth/login'}
- > 114 | css={tw`text-xs text-neutral-500 tracking-wide uppercase no-underline hover:text-neutral-700`}
- | ^^^
- 115 | >
- 116 | Return to Login
- 117 | </Link>
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:3:19
- TS2307: Cannot find module '@/api/auth/login' or its corresponding type declarations.
- 1 | import React, { useEffect, useRef, useState } from 'react';
- 2 | import { Link, RouteComponentProps } from 'react-router-dom';
- > 3 | import login from '@/api/auth/login';
- | ^^^^^^^^^^^^^^^^^^
- 4 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
- 5 | import { useStoreState } from 'easy-peasy';
- 6 | import { Formik, FormikHelpers } from 'formik';
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:8:19
- TS2307: Cannot find module '@/components/elements/Field' or its corresponding type declarations.
- 6 | import { Formik, FormikHelpers } from 'formik';
- 7 | import { object, string } from 'yup';
- > 8 | import Field from '@/components/elements/Field';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 9 | import tw from 'twin.macro';
- 10 | import Button from '@/components/elements/Button';
- 11 | import Reaptcha from 'reaptcha';
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:10:20
- TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
- 8 | import Field from '@/components/elements/Field';
- 9 | import tw from 'twin.macro';
- > 10 | import Button from '@/components/elements/Button';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 11 | import Reaptcha from 'reaptcha';
- 12 | import useFlash from '@/plugins/useFlash';
- 13 |
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:12:22
- TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations.
- 10 | import Button from '@/components/elements/Button';
- 11 | import Reaptcha from 'reaptcha';
- > 12 | import useFlash from '@/plugins/useFlash';
- | ^^^^^^^^^^^^^^^^^^^^
- 13 |
- 14 | interface Values {
- 15 | username: string;
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:24:81
- TS2339: Property 'settings' does not exist on type 'StateMapper<_Pick<{}, never>>'.
- 22 |
- 23 | const { clearFlashes, clearAndAddHttpError } = useFlash();
- > 24 | const { enabled: recaptchaEnabled, siteKey } = useStoreState(state => state.settings.data!.recaptcha);
- | ^^^^^^^^
- 25 |
- 26 | useEffect(() => {
- 27 | clearFlashes();
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:47:19
- TS7006: Parameter 'response' implicitly has an 'any' type.
- 45 |
- 46 | login({ ...values, recaptchaData: token })
- > 47 | .then(response => {
- | ^^^^^^^^
- 48 | if (response.complete) {
- 49 | // @ts-ignore
- 50 | window.location = response.intended || '/';
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:56:20
- TS7006: Parameter 'error' implicitly has an 'any' type.
- 54 | history.replace('/auth/login/checkpoint', { token: response.confirmationToken });
- 55 | })
- > 56 | .catch(error => {
- | ^^^^^
- 57 | console.error(error);
- 58 |
- 59 | setToken('');
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:78:69
- TS2322: Type '{ children: any[]; title: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
- 76 | >
- 77 | {({ isSubmitting, setSubmitting, submitForm }) => (
- > 78 | <LoginFormContainer title={'Login to Your Account'} css={tw`w-full flex`}>
- | ^^^
- 79 | <Field
- 80 | light
- 81 | type={'text'}
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:86:26
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 84 | disabled={isSubmitting}
- 85 | />
- > 86 | <div css={tw`mt-6`}>
- | ^^^
- 87 | <Field
- 88 | light
- 89 | type={'password'}
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:95:26
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 93 | />
- 94 | </div>
- > 95 | <div css={tw`mt-6`}>
- | ^^^
- 96 | <Button type={'submit'} size={'xlarge'} isLoading={isSubmitting} disabled={isSubmitting}>
- 97 | Login to Your Account
- 98 | </Button>
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:115:26
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 113 | />
- 114 | }
- > 115 | <div css={tw`mt-6 text-center`}>
- | ^^^
- 116 | <Link
- 117 | to={'/auth/password'}
- 118 | css={tw`text-xs text-neutral-500 tracking-wide no-underline uppercase hover:text-neutral-600`}
- ERROR in resources/scripts/components/auth/LoginContainer.tsx:118:29
- TS2769: No overload matches this call.
- Overload 1 of 2, '(props: Readonly<LinkProps<any>>): Link<any>', gave the following error.
- Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- Overload 2 of 2, '(props: LinkProps<any>, context?: any): Link<any>', gave the following error.
- Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
- 116 | <Link
- 117 | to={'/auth/password'}
- > 118 | css={tw`text-xs text-neutral-500 tracking-wide no-underline uppercase hover:text-neutral-600`}
- | ^^^
- 119 | >
- 120 | Forgot your password? Reset
- 121 | </Link>
- 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 | type Props = React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement> & {
- ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:34:13
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>'.
- 32 | <Container>
- 33 | {title &&
- > 34 | <h2 css={tw`text-3xl text-center text-neutral-100 font-medium py-4`}>
- | ^^^
- 35 | {title}
- 36 | </h2>
- 37 | }
- ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:40:18
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 38 | <FlashMessageRender css={tw`mb-2 px-1`}/>
- 39 | <Form {...props} ref={ref}>
- > 40 | <div css={tw`md:flex w-full bg-white shadow-lg rounded-lg p-6 md:pl-0 mx-1`}>
- | ^^^
- 41 | <div css={tw`flex-1`}>
- 42 | {props.children}
- 43 | </div>
- ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:41:22
- TS2322: Type '{ children: ReactNode; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 39 | <Form {...props} ref={ref}>
- 40 | <div css={tw`md:flex w-full bg-white shadow-lg rounded-lg p-6 md:pl-0 mx-1`}>
- > 41 | <div css={tw`flex-1`}>
- | ^^^
- 42 | {props.children}
- 43 | </div>
- 44 | </div>
- ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:46:12
- TS2322: Type '{ children: (string | number | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 44 | </div>
- 45 | </Form>
- > 46 | <p css={tw`text-center text-neutral-500 text-xs mt-4`}>
- | ^^^
- 47 | © 2015 - {(new Date()).getFullYear()}
- 48 | <a
- 49 | rel={'noopener nofollow noreferrer'}
- ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:52:17
- TS2322: Type '{ children: string; rel: string; href: string; target: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
- 50 | href={'https://pterodactyl.io'}
- 51 | target={'_blank'}
- > 52 | css={tw`no-underline text-neutral-500 hover:text-neutral-300`}
- | ^^^
- 53 | >
- 54 | Pterodactyl Software
- 55 | </a><br></br>
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:2:24
- TS2307: Cannot find module '@/api/server/getServer' 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';
- 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 | import SearchContainer from '@/components/dashboard/search/SearchContainer';
- 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 | import SearchContainer from '@/components/dashboard/search/SearchContainer';
- 17 | import { ApplicationStore } from '@/state';
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:17:34
- TS2307: Cannot find module '@/state' or its corresponding type declarations.
- 15 | import { useLocation } from 'react-router-dom';
- 16 | import SearchContainer from '@/components/dashboard/search/SearchContainer';
- > 17 | import { ApplicationStore } from '@/state';
- | ^^^^^^^^^
- 18 | import crypto from 'crypto';
- 19 |
- 20 | export default () => {
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:29:47
- TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'.
- 27 | const [ page, setPage ] = useState((!isNaN(defaultPage) && defaultPage > 0) ? defaultPage : 1);
- 28 | const { clearFlashes, clearAndAddHttpError } = useFlash();
- > 29 | const uuid = useStoreState(state => state.user.data!.uuid);
- | ^^^^
- 30 | const rootAdmin = useStoreState(state => state.user.data!.rootAdmin);
- 31 | const [ showOnlyAdmin, setShowOnlyAdmin ] = usePersistedState(`${uuid}:show_all_servers`, false);
- 32 |
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:30:52
- TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'.
- 28 | const { clearFlashes, clearAndAddHttpError } = useFlash();
- 29 | const uuid = useStoreState(state => state.user.data!.uuid);
- > 30 | const rootAdmin = useStoreState(state => state.user.data!.rootAdmin);
- | ^^^^
- 31 | const [ showOnlyAdmin, setShowOnlyAdmin ] = usePersistedState(`${uuid}:show_all_servers`, false);
- 32 |
- 33 | const { data: servers, error } = useSWR<PaginatedResult<Server>>(
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:96:22
- TS2322: Type '{ children: Element[]; css: TwStyle; className: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 94 | <SearchContainer/>
- 95 | {rootAdmin &&
- > 96 | <div css={tw`mb-2 flex justify-end items-center`} className="switcher">
- | ^^^
- 97 | <p css={tw`uppercase text-xs text-neutral-400 mr-2`}>
- 98 | {showOnlyAdmin ? 'Showing others\' servers' : 'Showing your servers'}
- 99 | </p>
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:97:24
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 95 | {rootAdmin &&
- 96 | <div css={tw`mb-2 flex justify-end items-center`} className="switcher">
- > 97 | <p css={tw`uppercase text-xs text-neutral-400 mr-2`}>
- | ^^^
- 98 | {showOnlyAdmin ? 'Showing others\' servers' : 'Showing your servers'}
- 99 | </p>
- 100 | <Switch
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:103:58
- TS7006: Parameter 's' implicitly has an 'any' type.
- 101 | name={'show_all_servers'}
- 102 | defaultChecked={showOnlyAdmin}
- > 103 | onChange={() => setShowOnlyAdmin(s => !s)}
- | ^
- 104 | />
- 105 | </div>
- 106 | }
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:112:29
- TS7031: Binding element 'items' implicitly has an 'any' type.
- 110 | :
- 111 | <Pagination data={servers} onPageSelect={setPage}>
- > 112 | {({ items }) => (
- | ^^^^^
- 113 | items.length > 0 ?
- 114 | items.map((server, index) => (
- 115 | <ServerRow
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:114:44
- TS7006: Parameter 'server' implicitly has an 'any' type.
- 112 | {({ items }) => (
- 113 | items.length > 0 ?
- > 114 | items.map((server, index) => (
- | ^^^^^^
- 115 | <ServerRow
- 116 | key={server.uuid}
- 117 | server={server}
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:114:52
- TS7006: Parameter 'index' implicitly has an 'any' type.
- 112 | {({ items }) => (
- 113 | items.length > 0 ?
- > 114 | items.map((server, index) => (
- | ^^^^^
- 115 | <ServerRow
- 116 | key={server.uuid}
- 117 | server={server}
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:118:41
- TS2322: Type '{ key: any; server: any; css: TwStyle | undefined; }' is not assignable to type 'IntrinsicAttributes & { server: any; className?: string | undefined; }'.
- Property 'css' does not exist on type 'IntrinsicAttributes & { server: any; className?: string | undefined; }'.
- 116 | key={server.uuid}
- 117 | server={server}
- > 118 | css={index > 0 ? tw`mt-2` : undefined}
- | ^^^
- 119 | />
- 120 | ))
- 121 | :
- ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:122:36
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 120 | ))
- 121 | :
- > 122 | <p css={tw`text-center text-sm text-neutral-400`}>
- | ^^^
- 123 | {showOnlyAdmin ?
- 124 | 'There are no other servers to display.'
- 125 | :
- ERROR in resources/scripts/components/dashboard/search/SearchContainer.tsx:4:30
- TS2307: Cannot find module '@/plugins/useEventListener' or its corresponding type declarations.
- 2 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- 3 | import { faSearch } from '@fortawesome/free-solid-svg-icons';
- > 4 | import useEventListener from '@/plugins/useEventListener';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 5 | import SearchModal from '@/components/dashboard/search/SearchModal';
- 6 |
- 7 | export default () => {
- ERROR in resources/scripts/components/dashboard/search/SearchContainer.tsx:5:25
- TS2307: Cannot find module '@/components/dashboard/search/SearchModal' or its corresponding type declarations.
- 3 | import { faSearch } from '@fortawesome/free-solid-svg-icons';
- 4 | import useEventListener from '@/plugins/useEventListener';
- > 5 | import SearchModal from '@/components/dashboard/search/SearchModal';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 6 |
- 7 | export default () => {
- 8 | const [ visible, setVisible ] = useState(false);
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:5:24
- TS2307: Cannot find module '@/api/server/getServer' or its corresponding type declarations.
- 3 | import { faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons';
- 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 { bytesToHuman, megabytesToHuman } from '@/helpers';
- 8 | import tw from 'twin.macro';
- 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 { bytesToHuman, megabytesToHuman } from '@/helpers';
- 8 | import tw from 'twin.macro';
- 9 | import GreyRowBox from '@/components/elements/GreyRowBox';
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:7:48
- TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
- 5 | import { Server } from '@/api/server/getServer';
- 6 | import getServerResourceUsage, { ServerPowerState, ServerStats } from '@/api/server/getServerResourceUsage';
- > 7 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
- | ^^^^^^^^^^^
- 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 { bytesToHuman, megabytesToHuman } from '@/helpers';
- 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:48:15
- TS7006: Parameter 'data' implicitly has an 'any' type.
- 46 |
- 47 | const getStats = () => getServerResourceUsage(server.uuid)
- > 48 | .then(data => setStats(data))
- | ^^^^
- 49 | .catch(error => console.error(error));
- 50 |
- 51 | useEffect(() => {
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:49:16
- TS7006: Parameter 'error' implicitly has an 'any' type.
- 47 | const getStats = () => getServerResourceUsage(server.uuid)
- 48 | .then(data => setStats(data))
- > 49 | .catch(error => console.error(error));
- | ^^^^^
- 50 |
- 51 | useEffect(() => {
- 52 | setIsSuspended(stats?.isSuspended || server.status === 'suspended');
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:83:18
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 81 | return (
- 82 | <StatusIndicatorBox as={Link} to={`/server/${server.id}`} className={className} $status={stats?.status}>
- > 83 | <div css={tw`flex items-center col-span-12 sm:col-span-5 lg:col-span-6`}>
- | ^^^
- 84 | <div className={'icon'} css={tw`mr-4`}>
- 85 | <FontAwesomeIcon icon={faServer}/>
- 86 | </div>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:84:41
- TS2322: Type '{ children: Element; className: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 82 | <StatusIndicatorBox as={Link} to={`/server/${server.id}`} className={className} $status={stats?.status}>
- 83 | <div css={tw`flex items-center col-span-12 sm:col-span-5 lg:col-span-6`}>
- > 84 | <div className={'icon'} css={tw`mr-4`}>
- | ^^^
- 85 | <FontAwesomeIcon icon={faServer}/>
- 86 | </div>
- 87 | <div>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:88:24
- TS2322: Type '{ children: any; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 86 | </div>
- 87 | <div>
- > 88 | <p css={tw`text-lg break-words`}>{server.name}</p>
- | ^^^
- 89 | {
- 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
- 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:90:51
- TS7006: Parameter 'alloc' implicitly has an 'any' type.
- 88 | <p css={tw`text-lg break-words`}>{server.name}</p>
- 89 | {
- > 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
- | ^^^^^
- 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
- 92 | <p css={tw`text-sm text-neutral-300 break-words`}>
- 93 | {allocation.alias || allocation.ip}:{allocation.port}
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:90:81
- TS7006: Parameter 'allocation' implicitly has an 'any' type.
- 88 | <p css={tw`text-lg break-words`}>{server.name}</p>
- 89 | {
- > 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
- | ^^^^^^^^^^
- 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
- 92 | <p css={tw`text-sm text-neutral-300 break-words`}>
- 93 | {allocation.alias || allocation.ip}:{allocation.port}
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:92:36
- TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
- 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
- > 92 | <p css={tw`text-sm text-neutral-300 break-words`}>
- | ^^^
- 93 | {allocation.alias || allocation.ip}:{allocation.port}
- 94 | </p>
- 95 | </React.Fragment>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:100:18
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 98 | </div>
- 99 | </div>
- > 100 | <div css={tw`hidden col-span-7 lg:col-span-4 sm:flex items-baseline justify-center`}>
- | ^^^
- 101 | {(!stats || isSuspended) ?
- 102 | isSuspended ?
- 103 | <div css={tw`flex-1 text-center`}>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:103:30
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 101 | {(!stats || isSuspended) ?
- 102 | isSuspended ?
- > 103 | <div css={tw`flex-1 text-center`}>
- | ^^^
- 104 | <span css={tw`bg-red-500 rounded px-2 py-1 text-red-100 text-xs`}>
- 105 | {server.status === 'suspended' ? 'Suspended' : 'Connection Error'}
- 106 | </span>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:104:35
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
- 102 | isSuspended ?
- 103 | <div css={tw`flex-1 text-center`}>
- > 104 | <span css={tw`bg-red-500 rounded px-2 py-1 text-red-100 text-xs`}>
- | ^^^
- 105 | {server.status === 'suspended' ? 'Suspended' : 'Connection Error'}
- 106 | </span>
- 107 | </div>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:110:34
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 108 | :
- 109 | (server.isTransferring || server.status) ?
- > 110 | <div css={tw`flex-1 text-center`}>
- | ^^^
- 111 | <span css={tw`bg-neutral-500 rounded px-2 py-1 text-neutral-100 text-xs`}>
- 112 | {server.isTransferring ?
- 113 | 'Transferring'
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:111:39
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
- 109 | (server.isTransferring || server.status) ?
- 110 | <div css={tw`flex-1 text-center`}>
- > 111 | <span css={tw`bg-neutral-500 rounded px-2 py-1 text-neutral-100 text-xs`}>
- | ^^^
- 112 | {server.isTransferring ?
- 113 | 'Transferring'
- 114 | :
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:128:30
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 126 | :
- 127 | <React.Fragment>
- > 128 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- | ^^^
- 129 | <div css={tw`flex justify-center`}>
- 130 | <Icon icon={faMicrochip} $alarm={alarms.cpu}/>
- 131 | <IconDescription $alarm={alarms.cpu}>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:129:34
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 127 | <React.Fragment>
- 128 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- > 129 | <div css={tw`flex justify-center`}>
- | ^^^
- 130 | <Icon icon={faMicrochip} $alarm={alarms.cpu}/>
- 131 | <IconDescription $alarm={alarms.cpu}>
- 132 | {stats.cpuUsagePercent.toFixed(2)} %
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:135:32
- TS2322: Type '{ children: string[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 133 | </IconDescription>
- 134 | </div>
- > 135 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {cpuLimit}</p>
- | ^^^
- 136 | </div>
- 137 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- 138 | <div css={tw`flex justify-center`}>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:137:30
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 135 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {cpuLimit}</p>
- 136 | </div>
- > 137 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- | ^^^
- 138 | <div css={tw`flex justify-center`}>
- 139 | <Icon icon={faMemory} $alarm={alarms.memory}/>
- 140 | <IconDescription $alarm={alarms.memory}>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:138:34
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 136 | </div>
- 137 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- > 138 | <div css={tw`flex justify-center`}>
- | ^^^
- 139 | <Icon icon={faMemory} $alarm={alarms.memory}/>
- 140 | <IconDescription $alarm={alarms.memory}>
- 141 | {bytesToHuman(stats.memoryUsageInBytes)}
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:144:32
- TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 142 | </IconDescription>
- 143 | </div>
- > 144 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {memoryLimit}</p>
- | ^^^
- 145 | </div>
- 146 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- 147 | <div css={tw`flex justify-center`}>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:146:30
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 144 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {memoryLimit}</p>
- 145 | </div>
- > 146 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- | ^^^
- 147 | <div css={tw`flex justify-center`}>
- 148 | <Icon icon={faHdd} $alarm={alarms.disk}/>
- 149 | <IconDescription $alarm={alarms.disk}>
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:147:34
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 145 | </div>
- 146 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
- > 147 | <div css={tw`flex justify-center`}>
- | ^^^
- 148 | <Icon icon={faHdd} $alarm={alarms.disk}/>
- 149 | <IconDescription $alarm={alarms.disk}>
- 150 | {bytesToHuman(stats.diskUsageInBytes)}
- ERROR in resources/scripts/components/dashboard/ServerRow.tsx:153:32
- TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 151 | </IconDescription>
- 152 | </div>
- > 153 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {diskLimit}</p>
- | ^^^
- 154 | </div>
- 155 | </React.Fragment>
- 156 | }
- ERROR in resources/scripts/components/NavigationBar.tsx:6:34
- TS2307: Cannot find module '@/state' or its corresponding type declarations.
- 4 | import { faCogs, faLayerGroup, faSignOutAlt, faUserCircle } from '@fortawesome/free-solid-svg-icons';
- 5 | import { useStoreState } from 'easy-peasy';
- > 6 | import { ApplicationStore } from '@/state';
- | ^^^^^^^^^
- 7 | import tw, { theme } from 'twin.macro';
- 8 | import styled from 'styled-components/macro';
- 9 | import http from '@/api/http';
- ERROR in resources/scripts/components/NavigationBar.tsx:9:18
- TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
- 7 | import tw, { theme } from 'twin.macro';
- 8 | import styled from 'styled-components/macro';
- > 9 | import http from '@/api/http';
- | ^^^^^^^^^^^^
- 10 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
- 11 | import { useState } from 'react';
- 12 |
- ERROR in resources/scripts/components/NavigationBar.tsx:10:28
- TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations.
- 8 | import styled from 'styled-components/macro';
- 9 | import http from '@/api/http';
- > 10 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 11 | import { useState } from 'react';
- 12 |
- 13 | const Navigation = styled.div`
- ERROR in resources/scripts/components/NavigationBar.tsx:61:18
- TS2322: Type '{ children: Element; css: TwStyle; style: { maxWidth: string; height: string; }; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 59 | <Navigation>
- 60 | <SpinnerOverlay visible={isLoggingOut} />
- > 61 | <div css={tw`mx-auto w-full flex items-center`} style={{ maxWidth: '1200px', height: '3.5rem' }}>
- | ^^^
- 62 |
- 63 | <RightNavigation>
- 64 | <a href="/" id="logo">
- 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 | export default () => {
- 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 | export default () => {
- 17 | const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:17:46
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 15 |
- 16 | export default () => {
- > 17 | const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
- | ^^^^^
- 18 | const databaseLimit = ServerContext.useStoreState(state => state.server.data!.featureLimits.databases);
- 19 |
- 20 | const { addError, clearFlashes } = useFlash();
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:18:55
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 16 | export default () => {
- 17 | const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
- > 18 | const databaseLimit = ServerContext.useStoreState(state => state.server.data!.featureLimits.databases);
- | ^^^^^
- 19 |
- 20 | const { addError, clearFlashes } = useFlash();
- 21 | const [ loading, setLoading ] = useState(true);
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:23:66
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 21 | const [ loading, setLoading ] = useState(true);
- 22 |
- > 23 | const databases = useDeepMemoize(ServerContext.useStoreState(state => state.databases.data));
- | ^^^^^
- 24 | const setDatabases = ServerContext.useStoreActions(state => state.databases.setDatabases);
- 25 |
- 26 | useEffect(() => {
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:24:56
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 22 |
- 23 | const databases = useDeepMemoize(ServerContext.useStoreState(state => state.databases.data));
- > 24 | const setDatabases = ServerContext.useStoreActions(state => state.databases.setDatabases);
- | ^^^^^
- 25 |
- 26 | useEffect(() => {
- 27 | setLoading(!databases.length);
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:31:19
- TS7006: Parameter 'databases' implicitly has an 'any' type.
- 29 |
- 30 | getServerDatabases(uuid)
- > 31 | .then(databases => setDatabases(databases))
- | ^^^^^^^^^
- 32 | .catch(error => {
- 33 | console.error(error);
- 34 | addError({ key: 'databases', message: httpErrorToHuman(error) });
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:32:20
- TS7006: Parameter 'error' implicitly has an 'any' type.
- 30 | getServerDatabases(uuid)
- 31 | .then(databases => setDatabases(databases))
- > 32 | .catch(error => {
- | ^^^^^
- 33 | console.error(error);
- 34 | addError({ key: 'databases', message: httpErrorToHuman(error) });
- 35 | })
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:47:40
- TS7006: Parameter 'database' implicitly has an 'any' type.
- 45 | <div className="db">
- 46 | {databases.length > 0 ?
- > 47 | databases.map((database, index) => (
- | ^^^^^^^^
- 48 | <DatabaseRow
- 49 | key={database.id}
- 50 | database={database}
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:47:50
- TS7006: Parameter 'index' implicitly has an 'any' type.
- 45 | <div className="db">
- 46 | {databases.length > 0 ?
- > 47 | databases.map((database, index) => (
- | ^^^^^
- 48 | <DatabaseRow
- 49 | key={database.id}
- 50 | database={database}
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:55:28
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 53 | ))
- 54 | :
- > 55 | <p css={tw`text-center text-sm text-neutral-300`}>
- | ^^^
- 56 | {databaseLimit > 0 ?
- 57 | 'It looks like you have no databases.'
- 58 | :
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:64:30
- TS2322: Type '{ children: (false | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 62 | }
- 63 | <Can action={'database.create'}>
- > 64 | <div css={tw`mt-6 flex items-center justify-end`}>
- | ^^^
- 65 | {(databaseLimit > 0 && databases.length > 0) &&
- 66 | <p css={tw`text-sm text-neutral-300 mb-4 sm:mr-6 sm:mb-0`}>
- 67 | {databases.length} of {databaseLimit} databases have been allocated to this
- ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:66:32
- TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 64 | <div css={tw`mt-6 flex items-center justify-end`}>
- 65 | {(databaseLimit > 0 && databases.length > 0) &&
- > 66 | <p css={tw`text-sm text-neutral-300 mb-4 sm:mr-6 sm:mb-0`}>
- | ^^^
- 67 | {databases.length} of {databaseLimit} databases have been allocated to this
- 68 | server.
- 69 | </p>
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:2:34
- TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
- 1 | import React, { useEffect } from 'react';
- > 2 | import { httpErrorToHuman } from '@/api/http';
- | ^^^^^^^^^^^^
- 3 | import { CSSTransition } from 'react-transition-group';
- 4 | import Spinner from '@/components/elements/Spinner';
- 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:4:21
- TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations.
- 2 | import { httpErrorToHuman } from '@/api/http';
- 3 | import { CSSTransition } from 'react-transition-group';
- > 4 | import Spinner from '@/components/elements/Spinner';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
- 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
- 7 | import { FileObject } from '@/api/server/files/loadDirectory';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:6:36
- TS2307: Cannot find module '@/components/server/files/FileManagerBreadcrumbs' or its corresponding type declarations.
- 4 | import Spinner from '@/components/elements/Spinner';
- 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
- > 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 7 | import { FileObject } from '@/api/server/files/loadDirectory';
- 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
- 9 | import { NavLink, useLocation } from 'react-router-dom';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:7:28
- TS2307: Cannot find module '@/api/server/files/loadDirectory' or its corresponding type declarations.
- 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
- 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
- > 7 | import { FileObject } from '@/api/server/files/loadDirectory';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
- 9 | import { NavLink, useLocation } from 'react-router-dom';
- 10 | import Can from '@/components/elements/Can';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:8:32
- TS2307: Cannot find module '@/components/server/files/NewDirectoryButton' or its corresponding type declarations.
- 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
- 7 | import { FileObject } from '@/api/server/files/loadDirectory';
- > 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 9 | import { NavLink, useLocation } from 'react-router-dom';
- 10 | import Can from '@/components/elements/Can';
- 11 | import { ServerError } from '@/components/elements/ScreenBlock';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:10:17
- TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations.
- 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
- 9 | import { NavLink, useLocation } from 'react-router-dom';
- > 10 | import Can from '@/components/elements/Can';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 11 | import { ServerError } from '@/components/elements/ScreenBlock';
- 12 | import tw from 'twin.macro';
- 13 | import Button from '@/components/elements/Button';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:11:29
- TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations.
- 9 | import { NavLink, useLocation } from 'react-router-dom';
- 10 | import Can from '@/components/elements/Can';
- > 11 | import { ServerError } from '@/components/elements/ScreenBlock';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 12 | import tw from 'twin.macro';
- 13 | import Button from '@/components/elements/Button';
- 14 | import { ServerContext } from '@/state/server';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:13:20
- TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
- 11 | import { ServerError } from '@/components/elements/ScreenBlock';
- 12 | import tw from 'twin.macro';
- > 13 | import Button from '@/components/elements/Button';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 14 | import { ServerContext } from '@/state/server';
- 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
- 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:14:31
- TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
- 12 | import tw from 'twin.macro';
- 13 | import Button from '@/components/elements/Button';
- > 14 | import { ServerContext } from '@/state/server';
- | ^^^^^^^^^^^^^^^^
- 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
- 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
- 17 | import UploadButton from '@/components/server/files/UploadButton';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:15:31
- TS2307: Cannot find module '@/plugins/useFileManagerSwr' or its corresponding type declarations.
- 13 | import Button from '@/components/elements/Button';
- 14 | import { ServerContext } from '@/state/server';
- > 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
- 17 | import UploadButton from '@/components/server/files/UploadButton';
- 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:16:28
- TS2307: Cannot find module '@/components/server/files/MassActionsBar' or its corresponding type declarations.
- 14 | import { ServerContext } from '@/state/server';
- 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
- > 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 17 | import UploadButton from '@/components/server/files/UploadButton';
- 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
- 19 | import { useStoreActions } from '@/state/hooks';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:17:26
- TS2307: Cannot find module '@/components/server/files/UploadButton' or its corresponding type declarations.
- 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
- 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
- > 17 | import UploadButton from '@/components/server/files/UploadButton';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
- 19 | import { useStoreActions } from '@/state/hooks';
- 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:18:32
- TS2307: Cannot find module '@/components/elements/ServerContentBlock' or its corresponding type declarations.
- 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
- 17 | import UploadButton from '@/components/server/files/UploadButton';
- > 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 19 | import { useStoreActions } from '@/state/hooks';
- 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:19:33
- TS2307: Cannot find module '@/state/hooks' or its corresponding type declarations.
- 17 | import UploadButton from '@/components/server/files/UploadButton';
- 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
- > 19 | import { useStoreActions } from '@/state/hooks';
- | ^^^^^^^^^^^^^^^
- 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
- 22 | import { hashToPath } from '@/helpers';
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:20:27
- TS2307: Cannot find module '@/components/elements/ErrorBoundary' or its corresponding type declarations.
- 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
- 19 | import { useStoreActions } from '@/state/hooks';
- > 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
- 22 | import { hashToPath } from '@/helpers';
- 23 |
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:21:36
- TS2307: Cannot find module '@/components/server/files/SelectFileCheckbox' or its corresponding type declarations.
- 19 | import { useStoreActions } from '@/state/hooks';
- 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- > 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 22 | import { hashToPath } from '@/helpers';
- 23 |
- 24 | const sortFiles = (files: FileObject[]): FileObject[] => {
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:22:28
- TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
- 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
- > 22 | import { hashToPath } from '@/helpers';
- | ^^^^^^^^^^^
- 23 |
- 24 | const sortFiles = (files: FileObject[]): FileObject[] => {
- 25 | return files.sort((a, b) => a.name.localeCompare(b.name))
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:30:44
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 28 |
- 29 | export default () => {
- > 30 | const id = ServerContext.useStoreState(state => state.server.data!.id);
- | ^^^^^
- 31 | const { hash } = useLocation();
- 32 | const { data: files, error, mutate } = useFileManagerSwr();
- 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:33:51
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 31 | const { hash } = useLocation();
- 32 | const { data: files, error, mutate } = useFileManagerSwr();
- > 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
- | ^^^^^
- 34 | const clearFlashes = useStoreActions(actions => actions.flashes.clearFlashes);
- 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
- 36 |
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:34:42
- TS7006: Parameter 'actions' implicitly has an 'any' type.
- 32 | const { data: files, error, mutate } = useFileManagerSwr();
- 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
- > 34 | const clearFlashes = useStoreActions(actions => actions.flashes.clearFlashes);
- | ^^^^^^^
- 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
- 36 |
- 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:35:56
- TS7006: Parameter 'actions' implicitly has an 'any' type.
- 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
- 34 | const clearFlashes = useStoreActions(actions => actions.flashes.clearFlashes);
- > 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
- | ^^^^^^^
- 36 |
- 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
- 38 | const selectedFilesLength = ServerContext.useStoreState(state => state.files.selectedFiles.length);
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:37:60
- TS7006: Parameter 'actions' implicitly has an 'any' type.
- 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
- 36 |
- > 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
- | ^^^^^^^
- 38 | const selectedFilesLength = ServerContext.useStoreState(state => state.files.selectedFiles.length);
- 39 |
- 40 | useEffect(() => {
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:38:61
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 36 |
- 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
- > 38 | const selectedFilesLength = ServerContext.useStoreState(state => state.files.selectedFiles.length);
- | ^^^^^
- 39 |
- 40 | useEffect(() => {
- 41 | clearFlashes('files');
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:51:64
- TS7006: Parameter 'file' implicitly has an 'any' type.
- 49 |
- 50 | const onSelectAllClick = (e: React.ChangeEvent<HTMLInputElement>) => {
- > 51 | setSelectedFiles(e.currentTarget.checked ? (files?.map(file => file.name) || []) : []);
- | ^^^^
- 52 | };
- 53 |
- 54 | if (error) {
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:62:18
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 60 | return (
- 61 | <ServerContentBlock title={'File Manager'} showFlashKey={'files'}>
- > 62 | <div css={tw`flex flex-wrap-reverse md:flex-nowrap justify-center mb-4`}>
- | ^^^
- 63 | <ErrorBoundary>
- 64 | <FileManagerBreadcrumbs
- 65 | renderLeft={
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:77:30
- TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 75 | <Can action={'file.create'}>
- 76 | <ErrorBoundary>
- > 77 | <div css={tw`flex flex-shrink-0 flex-wrap-reverse md:flex-nowrap justify-end mb-4 md:mb-0 ml-0 md:ml-auto`}>
- | ^^^
- 78 | <NewDirectoryButton css={tw`w-full flex-none mt-4 sm:mt-0 sm:w-auto sm:mr-4`}/>
- 79 | <UploadButton css={tw`flex-1 mr-4 sm:flex-none sm:mt-0`}/>
- 80 | <NavLink
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:82:33
- TS2769: No overload matches this call.
- Overload 1 of 2, '(props: Readonly<NavLinkProps<any>>): NavLink<any>', gave the following error.
- Type '{ children: Element; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- Overload 2 of 2, '(props: NavLinkProps<any>, context?: any): NavLink<any>', gave the following error.
- Type '{ children: Element; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- 80 | <NavLink
- 81 | to={`/server/${id}/files/new${window.location.hash}`}
- > 82 | css={tw`flex-1 sm:flex-none sm:mt-0`}
- | ^^^
- 83 | >
- 84 | <Button css={tw`w-full`}>
- 85 | New File
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:98:32
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 96 | <div className="fileManager">
- 97 | {!files.length ?
- > 98 | <p css={tw`text-sm text-neutral-400 text-center`}>
- | ^^^
- 99 | This directory seems to be empty.
- 100 | </p>
- 101 | :
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:104:42
- TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 102 | <div>
- 103 | {files.length > 250 &&
- > 104 | <div css={tw`rounded bg-yellow-400 mb-px p-3`}>
- | ^^^
- 105 | <p css={tw`text-yellow-900 text-sm text-center`}>
- 106 | This directory is too large to display in the browser,
- 107 | limiting the output to the first 250 files.
- ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:105:44
- TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
- 103 | {files.length > 250 &&
- 104 | <div css={tw`rounded bg-yellow-400 mb-px p-3`}>
- > 105 | <p css={tw`text-yellow-900 text-sm text-center`}>
- | ^^^
- 106 | This directory is too large to display in the browser,
- 107 | limiting the output to the first 250 files.
- 108 | </p>
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:3:50
- TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
- 1 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- 2 | import { faFileAlt, faFileArchive, faFileImport, faFolder } from '@fortawesome/free-solid-svg-icons';
- > 3 | import { bytesToHuman, encodePathSegments } from '@/helpers';
- | ^^^^^^^^^^^
- 4 | import { differenceInHours, format, formatDistanceToNow } from 'date-fns';
- 5 | import React, { memo } from 'react';
- 6 | import { FileObject } from '@/api/server/files/loadDirectory';
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:6:28
- TS2307: Cannot find module '@/api/server/files/loadDirectory' or its corresponding type declarations.
- 4 | import { differenceInHours, format, formatDistanceToNow } from 'date-fns';
- 5 | import React, { memo } from 'react';
- > 6 | import { FileObject } from '@/api/server/files/loadDirectory';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 7 | import FileDropdownMenu from '@/components/server/files/FileDropdownMenu';
- 8 | import { ServerContext } from '@/state/server';
- 9 | import { NavLink, useRouteMatch } from 'react-router-dom';
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:7:30
- TS2307: Cannot find module '@/components/server/files/FileDropdownMenu' or its corresponding type declarations.
- 5 | import React, { memo } from 'react';
- 6 | import { FileObject } from '@/api/server/files/loadDirectory';
- > 7 | import FileDropdownMenu from '@/components/server/files/FileDropdownMenu';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 8 | import { ServerContext } from '@/state/server';
- 9 | import { NavLink, useRouteMatch } from 'react-router-dom';
- 10 | import tw from 'twin.macro';
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:8:31
- TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
- 6 | import { FileObject } from '@/api/server/files/loadDirectory';
- 7 | import FileDropdownMenu from '@/components/server/files/FileDropdownMenu';
- > 8 | import { ServerContext } from '@/state/server';
- | ^^^^^^^^^^^^^^^^
- 9 | import { NavLink, useRouteMatch } from 'react-router-dom';
- 10 | import tw from 'twin.macro';
- 11 | import isEqual from 'react-fast-compare';
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:13:32
- TS2307: Cannot find module '@/components/server/files/SelectFileCheckbox' or its corresponding type declarations.
- 11 | import isEqual from 'react-fast-compare';
- 12 | import styled from 'styled-components/macro';
- > 13 | import SelectFileCheckbox from '@/components/server/files/SelectFileCheckbox';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 14 | import { usePermissions } from '@/plugins/usePermissions';
- 15 | import { join } from 'path';
- 16 |
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:14:32
- TS2307: Cannot find module '@/plugins/usePermissions' or its corresponding type declarations.
- 12 | import styled from 'styled-components/macro';
- 13 | import SelectFileCheckbox from '@/components/server/files/SelectFileCheckbox';
- > 14 | import { usePermissions } from '@/plugins/usePermissions';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
- 15 | import { join } from 'path';
- 16 |
- 17 | const Row = styled.div`
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:23:51
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 21 | const Clickable: React.FC<{ file: FileObject }> = memo(({ file, children }) => {
- 22 | const [ canReadContents ] = usePermissions([ 'file.read-content' ]);
- > 23 | const directory = ServerContext.useStoreState(state => state.files.directory);
- | ^^^^^
- 24 |
- 25 | const match = useRouteMatch();
- 26 |
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:29:18
- TS2322: Type '{ children: ReactNode; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
- 27 | return (
- 28 | (!canReadContents || (file.isFile && !file.isEditable())) ?
- > 29 | <div css={tw`flex flex-1 text-neutral-300 no-underline p-3 cursor-default overflow-hidden truncate`}>
- | ^^^
- 30 | {children}
- 31 | </div>
- 32 | :
- ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:35:17
- TS2769: No overload matches this call.
- Overload 1 of 2, '(props: Readonly<NavLinkProps<any>>): NavLink<any>', gave the following error.
- Type '{ children: ReactNode; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- Overload 2 of 2, '(props: NavLinkProps<any>, context?: any): NavLink<any>', gave the following error.
- Type '{ children: ReactNode; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
- 33 | <NavLink
- 34 | to={`${match.url}${file.isFile ? '/edit' : ''}#${encodePathSegments(join(directory, file.name))}`}
- > 35 | css={tw`flex flex-1 text-neutral-300 no-underline p-3 overflow-hidden truncate`}
- | ^^^
- 36 | >
- 37 | {children}
- 38 | </NavLink>
- ERROR in resources/scripts/components/server/PowerControls.tsx:3:17
- TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations.
- 1 | import React from 'react';
- 2 | import tw from 'twin.macro';
- > 3 | import Can from '@/components/elements/Can';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 4 | import Button from '@/components/elements/Button';
- 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
- 6 | import { PowerAction } from '@/components/server/ServerConsole';
- ERROR in resources/scripts/components/server/PowerControls.tsx:4:20
- TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
- 2 | import tw from 'twin.macro';
- 3 | import Can from '@/components/elements/Can';
- > 4 | import Button from '@/components/elements/Button';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
- 6 | import { PowerAction } from '@/components/server/ServerConsole';
- 7 | import { ServerContext } from '@/state/server';
- ERROR in resources/scripts/components/server/PowerControls.tsx:6:29
- TS2307: Cannot find module '@/components/server/ServerConsole' or its corresponding type declarations.
- 4 | import Button from '@/components/elements/Button';
- 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
- > 6 | import { PowerAction } from '@/components/server/ServerConsole';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 7 | import { ServerContext } from '@/state/server';
- 8 |
- 9 | const PowerControls = () => {
- ERROR in resources/scripts/components/server/PowerControls.tsx:7:31
- TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
- 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
- 6 | import { PowerAction } from '@/components/server/ServerConsole';
- > 7 | import { ServerContext } from '@/state/server';
- | ^^^^^^^^^^^^^^^^
- 8 |
- 9 | const PowerControls = () => {
- 10 | const status = ServerContext.useStoreState(state => state.status.value);
- ERROR in resources/scripts/components/server/PowerControls.tsx:10:48
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 8 |
- 9 | const PowerControls = () => {
- > 10 | const status = ServerContext.useStoreState(state => state.status.value);
- | ^^^^^
- 11 | const instance = ServerContext.useStoreState(state => state.socket.instance);
- 12 |
- 13 | const sendPowerCommand = (command: PowerAction) => {
- ERROR in resources/scripts/components/server/PowerControls.tsx:11:50
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 9 | const PowerControls = () => {
- 10 | const status = ServerContext.useStoreState(state => state.status.value);
- > 11 | const instance = ServerContext.useStoreState(state => state.socket.instance);
- | ^^^^^
- 12 |
- 13 | const sendPowerCommand = (command: PowerAction) => {
- 14 | instance && instance.send('set state', command);
- ERROR in resources/scripts/components/server/PowerControls.tsx:26:30
- TS7006: Parameter 'e' implicitly has an 'any' type.
- 24 | className='first'
- 25 | disabled={status !== 'offline'}
- > 26 | onClick={e => {
- | ^
- 27 | e.preventDefault();
- 28 | sendPowerCommand('start');
- 29 | }}
- ERROR in resources/scripts/components/server/PowerControls.tsx:40:30
- TS7006: Parameter 'e' implicitly has an 'any' type.
- 38 | className='second'
- 39 | disabled={!status}
- > 40 | onClick={e => {
- | ^
- 41 | e.preventDefault();
- 42 | sendPowerCommand('restart');
- 43 | }}
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:48
- TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
- 3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons';
- 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- > 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
- | ^^^^^^^^^^^
- 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
- 7 | import { ServerContext } from '@/state/server';
- 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:6:27
- TS2307: Cannot find module '@/components/elements/TitledGreyBox' or its corresponding type declarations.
- 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
- > 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 7 | import { ServerContext } from '@/state/server';
- 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
- 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:7:31
- TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
- 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
- 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
- > 7 | import { ServerContext } from '@/state/server';
- | ^^^^^^^^^^^^^^^^
- 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
- 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
- 10 | import UptimeDuration from '@/components/server/UptimeDuration';
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:8:25
- TS2307: Cannot find module '@/components/elements/CopyOnClick' or its corresponding type declarations.
- 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
- 7 | import { ServerContext } from '@/state/server';
- > 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
- 10 | import UptimeDuration from '@/components/server/UptimeDuration';
- 11 |
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:9:44
- TS2307: Cannot find module '@/components/server/events' or its corresponding type declarations.
- 7 | import { ServerContext } from '@/state/server';
- 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
- > 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 10 | import UptimeDuration from '@/components/server/UptimeDuration';
- 11 |
- 12 | interface Stats {
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:10:28
- TS2307: Cannot find module '@/components/server/UptimeDuration' or its corresponding type declarations.
- 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
- 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
- > 10 | import UptimeDuration from '@/components/server/UptimeDuration';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 11 |
- 12 | interface Stats {
- 13 | memory: number;
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:37:48
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 35 | const [ stats, setStats ] = useState<Stats>({ memory: 0, cpu: 0, disk: 0, uptime: 0 });
- 36 |
- > 37 | const status = ServerContext.useStoreState(state => state.status.value);
- | ^^^^^
- 38 | const connected = ServerContext.useStoreState(state => state.socket.connected);
- 39 | const instance = ServerContext.useStoreState(state => state.socket.instance);
- 40 |
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:38:51
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 36 |
- 37 | const status = ServerContext.useStoreState(state => state.status.value);
- > 38 | const connected = ServerContext.useStoreState(state => state.socket.connected);
- | ^^^^^
- 39 | const instance = ServerContext.useStoreState(state => state.socket.instance);
- 40 |
- 41 | const statsListener = (data: string) => {
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:39:50
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 37 | const status = ServerContext.useStoreState(state => state.status.value);
- 38 | const connected = ServerContext.useStoreState(state => state.socket.connected);
- > 39 | const instance = ServerContext.useStoreState(state => state.socket.instance);
- | ^^^^^
- 40 |
- 41 | const statsListener = (data: string) => {
- 42 | let stats: any = {};
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:70:46
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 68 | }, [ instance, connected ]);
- 69 |
- > 70 | const name = ServerContext.useStoreState(state => state.server.data!.name);
- | ^^^^^
- 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
- 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
- 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:71:54
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 69 |
- 70 | const name = ServerContext.useStoreState(state => state.server.data!.name);
- > 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
- | ^^^^^
- 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
- 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
- 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:72:56
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 70 | const name = ServerContext.useStoreState(state => state.server.data!.name);
- 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
- > 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
- | ^^^^^
- 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
- 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
- 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:73:48
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
- 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
- > 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
- | ^^^^^
- 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
- 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
- 76 | )).toString();
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:74:59
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
- 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
- > 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
- | ^^^^^
- 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
- 76 | )).toString();
- 77 |
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:74:106
- TS7006: Parameter 'alloc' implicitly has an 'any' type.
- 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
- 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
- > 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
- | ^^^^^
- 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
- 76 | )).toString();
- 77 |
- ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:75:9
- TS7006: Parameter 'allocation' implicitly has an 'any' type.
- 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
- 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
- > 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
- | ^^^^^^^^^^
- 76 | )).toString();
- 77 |
- 78 | const diskLimit = limits.disk ? megabytesToHuman(limits.disk) : 'Unlimited';
- ERROR in resources/scripts/components/server/StopOrKillButton.tsx:2:31
- TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
- 1 | import React, { memo, useEffect, useState } from 'react';
- > 2 | import { ServerContext } from '@/state/server';
- | ^^^^^^^^^^^^^^^^
- 3 | import { PowerAction } from '@/components/server/ServerConsole';
- 4 | import Button from '@/components/elements/Button';
- 5 | import isEqual from 'react-fast-compare';
- ERROR in resources/scripts/components/server/StopOrKillButton.tsx:3:29
- TS2307: Cannot find module '@/components/server/ServerConsole' or its corresponding type declarations.
- 1 | import React, { memo, useEffect, useState } from 'react';
- 2 | import { ServerContext } from '@/state/server';
- > 3 | import { PowerAction } from '@/components/server/ServerConsole';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 4 | import Button from '@/components/elements/Button';
- 5 | import isEqual from 'react-fast-compare';
- 6 |
- ERROR in resources/scripts/components/server/StopOrKillButton.tsx:4:20
- TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
- 2 | import { ServerContext } from '@/state/server';
- 3 | import { PowerAction } from '@/components/server/ServerConsole';
- > 4 | import Button from '@/components/elements/Button';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 5 | import isEqual from 'react-fast-compare';
- 6 |
- 7 | const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void }) => {
- ERROR in resources/scripts/components/server/StopOrKillButton.tsx:9:48
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 7 | const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void }) => {
- 8 | const [ clicked, setClicked ] = useState(false);
- > 9 | const status = ServerContext.useStoreState(state => state.status.value);
- | ^^^^^
- 10 |
- 11 | useEffect(() => {
- 12 | setClicked(status === 'stopping');
- ERROR in resources/scripts/components/server/StopOrKillButton.tsx:21:22
- TS7006: Parameter 'e' implicitly has an 'any' type.
- 19 | disabled={!status || status === 'offline'}
- 20 | className='third'
- > 21 | onClick={e => {
- | ^
- 22 | e.preventDefault();
- 23 | onPress(clicked ? 'kill' : 'stop');
- 24 | setClicked(true);
- ERROR in resources/scripts/routers/ServerRouter.tsx:1:30
- TS2307: Cannot find module '@/components/server/TransferListener' or its corresponding type declarations.
- > 1 | import TransferListener from '@/components/server/TransferListener';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2 | import React, { useEffect, useState } from 'react';
- 3 | import { NavLink, Route, Switch, useRouteMatch } from 'react-router-dom';
- 4 | import NavigationBar from '@/components/NavigationBar';
- ERROR in resources/scripts/routers/ServerRouter.tsx:5:27
- TS2307: Cannot find module '@/components/server/ServerConsole' or its corresponding type declarations.
- 3 | import { NavLink, Route, Switch, useRouteMatch } from 'react-router-dom';
- 4 | import NavigationBar from '@/components/NavigationBar';
- > 5 | import ServerConsole from '@/components/server/ServerConsole';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 6 | import TransitionRouter from '@/TransitionRouter';
- 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
- 8 | import { ServerContext } from '@/state/server';
- ERROR in resources/scripts/routers/ServerRouter.tsx:6:30
- TS2307: Cannot find module '@/TransitionRouter' or its corresponding type declarations.
- 4 | import NavigationBar from '@/components/NavigationBar';
- 5 | import ServerConsole from '@/components/server/ServerConsole';
- > 6 | import TransitionRouter from '@/TransitionRouter';
- | ^^^^^^^^^^^^^^^^^^^^
- 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
- 8 | import { ServerContext } from '@/state/server';
- 9 | import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
- ERROR in resources/scripts/routers/ServerRouter.tsx:7:30
- TS2307: Cannot find module '@/components/server/WebsocketHandler' or its corresponding type declarations.
- 5 | import ServerConsole from '@/components/server/ServerConsole';
- 6 | import TransitionRouter from '@/TransitionRouter';
- > 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 8 | import { ServerContext } from '@/state/server';
- 9 | import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
- 10 | import FileManagerContainer from '@/components/server/files/FileManagerContainer';
- ERROR in resources/scripts/routers/ServerRouter.tsx:8:31
- TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
- 6 | import TransitionRouter from '@/TransitionRouter';
- 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
- > 8 | import { ServerContext } from '@/state/server';
- | ^^^^^^^^^^^^^^^^
- 9 | import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
- 10 | import FileManagerContainer from '@/components/server/files/FileManagerContainer';
- 11 | import { CSSTransition } from 'react-transition-group';
- ERROR in resources/scripts/routers/ServerRouter.tsx:12:31
- TS2307: Cannot find module '@/components/server/files/FileEditContainer' or its corresponding type declarations.
- 10 | import FileManagerContainer from '@/components/server/files/FileManagerContainer';
- 11 | import { CSSTransition } from 'react-transition-group';
- > 12 | import FileEditContainer from '@/components/server/files/FileEditContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
- 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
- 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
- ERROR in resources/scripts/routers/ServerRouter.tsx:13:31
- TS2307: Cannot find module '@/components/server/settings/SettingsContainer' or its corresponding type declarations.
- 11 | import { CSSTransition } from 'react-transition-group';
- 12 | import FileEditContainer from '@/components/server/files/FileEditContainer';
- > 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
- 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
- 16 | import UsersContainer from '@/components/server/users/UsersContainer';
- ERROR in resources/scripts/routers/ServerRouter.tsx:14:31
- TS2307: Cannot find module '@/components/server/schedules/ScheduleContainer' or its corresponding type declarations.
- 12 | import FileEditContainer from '@/components/server/files/FileEditContainer';
- 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
- > 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
- 16 | import UsersContainer from '@/components/server/users/UsersContainer';
- 17 | import Can from '@/components/elements/Can';
- ERROR in resources/scripts/routers/ServerRouter.tsx:15:35
- TS2307: Cannot find module '@/components/server/schedules/ScheduleEditContainer' or its corresponding type declarations.
- 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
- 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
- > 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 16 | import UsersContainer from '@/components/server/users/UsersContainer';
- 17 | import Can from '@/components/elements/Can';
- 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
- ERROR in resources/scripts/routers/ServerRouter.tsx:16:28
- TS2307: Cannot find module '@/components/server/users/UsersContainer' or its corresponding type declarations.
- 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
- 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
- > 16 | import UsersContainer from '@/components/server/users/UsersContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 17 | import Can from '@/components/elements/Can';
- 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
- 19 | import Spinner from '@/components/elements/Spinner';
- ERROR in resources/scripts/routers/ServerRouter.tsx:17:17
- TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations.
- 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
- 16 | import UsersContainer from '@/components/server/users/UsersContainer';
- > 17 | import Can from '@/components/elements/Can';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
- 19 | import Spinner from '@/components/elements/Spinner';
- 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
- ERROR in resources/scripts/routers/ServerRouter.tsx:18:29
- TS2307: Cannot find module '@/components/server/backups/BackupContainer' or its corresponding type declarations.
- 16 | import UsersContainer from '@/components/server/users/UsersContainer';
- 17 | import Can from '@/components/elements/Can';
- > 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 19 | import Spinner from '@/components/elements/Spinner';
- 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
- 21 | import { httpErrorToHuman } from '@/api/http';
- ERROR in resources/scripts/routers/ServerRouter.tsx:19:21
- TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations.
- 17 | import Can from '@/components/elements/Can';
- 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
- > 19 | import Spinner from '@/components/elements/Spinner';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
- 21 | import { httpErrorToHuman } from '@/api/http';
- 22 | import { useStoreState } from 'easy-peasy';
- ERROR in resources/scripts/routers/ServerRouter.tsx:20:52
- TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations.
- 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
- 19 | import Spinner from '@/components/elements/Spinner';
- > 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 21 | import { httpErrorToHuman } from '@/api/http';
- 22 | import { useStoreState } from 'easy-peasy';
- 23 | import SubNavigation from '@/components/elements/SubNavigation';
- ERROR in resources/scripts/routers/ServerRouter.tsx:21:34
- TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
- 19 | import Spinner from '@/components/elements/Spinner';
- 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
- > 21 | import { httpErrorToHuman } from '@/api/http';
- | ^^^^^^^^^^^^
- 22 | import { useStoreState } from 'easy-peasy';
- 23 | import SubNavigation from '@/components/elements/SubNavigation';
- 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
- ERROR in resources/scripts/routers/ServerRouter.tsx:23:27
- TS2307: Cannot find module '@/components/elements/SubNavigation' or its corresponding type declarations.
- 21 | import { httpErrorToHuman } from '@/api/http';
- 22 | import { useStoreState } from 'easy-peasy';
- > 23 | import SubNavigation from '@/components/elements/SubNavigation';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
- 25 | import InstallListener from '@/components/server/InstallListener';
- 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
- ERROR in resources/scripts/routers/ServerRouter.tsx:24:30
- TS2307: Cannot find module '@/components/server/network/NetworkContainer' or its corresponding type declarations.
- 22 | import { useStoreState } from 'easy-peasy';
- 23 | import SubNavigation from '@/components/elements/SubNavigation';
- > 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 25 | import InstallListener from '@/components/server/InstallListener';
- 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
- 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- ERROR in resources/scripts/routers/ServerRouter.tsx:25:29
- TS2307: Cannot find module '@/components/server/InstallListener' or its corresponding type declarations.
- 23 | import SubNavigation from '@/components/elements/SubNavigation';
- 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
- > 25 | import InstallListener from '@/components/server/InstallListener';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
- 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- ERROR in resources/scripts/routers/ServerRouter.tsx:26:30
- TS2307: Cannot find module '@/components/server/startup/StartupContainer' or its corresponding type declarations.
- 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
- 25 | import InstallListener from '@/components/server/InstallListener';
- > 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
- ERROR in resources/scripts/routers/ServerRouter.tsx:27:27
- TS2307: Cannot find module '@/components/elements/ErrorBoundary' or its corresponding type declarations.
- 25 | import InstallListener from '@/components/server/InstallListener';
- 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
- > 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
- 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
- ERROR in resources/scripts/routers/ServerRouter.tsx:30:37
- TS2307: Cannot find module '@/hoc/RequireServerPermission' or its corresponding type declarations.
- 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
- 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
- > 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
- 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
- 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
- ERROR in resources/scripts/routers/ServerRouter.tsx:31:30
- TS2307: Cannot find module '@/assets/images/server_installing.svg' or its corresponding type declarations.
- 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
- 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
- > 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
- 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
- 34 | import { useLocation } from 'react-router';
- ERROR in resources/scripts/routers/ServerRouter.tsx:32:30
- TS2307: Cannot find module '@/assets/images/server_restore.svg' or its corresponding type declarations.
- 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
- 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
- > 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
- 34 | import { useLocation } from 'react-router';
- 35 |
- ERROR in resources/scripts/routers/ServerRouter.tsx:33:28
- TS2307: Cannot find module '@/assets/images/server_error.svg' or its corresponding type declarations.
- 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
- 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
- > 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 34 | import { useLocation } from 'react-router';
- 35 |
- 36 | const ConflictStateRenderer = () => {
- ERROR in resources/scripts/routers/ServerRouter.tsx:37:48
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 35 |
- 36 | const ConflictStateRenderer = () => {
- > 37 | const status = ServerContext.useStoreState(state => state.server.data?.status || null);
- | ^^^^^
- 38 | const isTransferring = ServerContext.useStoreState(state => state.server.data?.isTransferring || false);
- 39 |
- 40 | return (
- ERROR in resources/scripts/routers/ServerRouter.tsx:38:56
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 36 | const ConflictStateRenderer = () => {
- 37 | const status = ServerContext.useStoreState(state => state.server.data?.status || null);
- > 38 | const isTransferring = ServerContext.useStoreState(state => state.server.data?.isTransferring || false);
- | ^^^^^
- 39 |
- 40 | return (
- 41 | status === 'installing' || status === 'install_failed' ?
- ERROR in resources/scripts/routers/ServerRouter.tsx:66:52
- TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'.
- 64 | const match = useRouteMatch<{ id: string }>();
- 65 | const location = useLocation();
- > 66 | const rootAdmin = useStoreState(state => state.user.data!.rootAdmin);
- | ^^^^
- 67 | const [ error, setError ] = useState('');
- 68 |
- 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
- ERROR in resources/scripts/routers/ServerRouter.tsx:69:44
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 67 | const [ error, setError ] = useState('');
- 68 |
- > 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
- | ^^^^^
- 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
- 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
- 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
- ERROR in resources/scripts/routers/ServerRouter.tsx:70:46
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 68 |
- 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
- > 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
- | ^^^^^
- 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
- 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
- 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
- ERROR in resources/scripts/routers/ServerRouter.tsx:71:57
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
- 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
- > 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
- | ^^^^^
- 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
- 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
- 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
- ERROR in resources/scripts/routers/ServerRouter.tsx:72:50
- TS7006: Parameter 'state' implicitly has an 'any' type.
- 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
- 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
- > 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
- | ^^^^^
- 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
- 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
- 75 |
- ERROR in resources/scripts/routers/ServerRouter.tsx:73:53
- TS7006: Parameter 'actions' implicitly has an 'any' type.
- 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
- 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
- > 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
- | ^^^^^^^
- 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
- 75 |
- 76 | useEffect(() => () => {
- ERROR in resources/scripts/routers/ServerRouter.tsx:74:60
- TS7006: Parameter 'actions' implicitly has an 'any' type.
- 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
- 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
- > 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
- | ^^^^^^^
- 75 |
- 76 | useEffect(() => () => {
- 77 | clearServerState();
- ERROR in resources/scripts/routers/ServerRouter.tsx:84:20
- TS7006: Parameter 'error' implicitly has an 'any' type.
- 82 |
- 83 | getServer(match.params.id)
- > 84 | .catch(error => {
- | ^^^^^
- 85 | console.error(error);
- 86 | setError(httpErrorToHuman(error));
- 87 | });
- error Command failed with exit code 2.
Advertisement
Add Comment
Please, Sign In to add comment