DEPSTRCZ

Untitled

Jul 18th, 2022
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 135.75 KB | None | 0 0
  1. yarn run v1.22.18
  2. $ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production
  3. $ cd public/assets && find . \( -name "*.js" -o -name "*.map" \) -type f -delete
  4. Hash: ed4fb0e05ec7896d47ca
  5. Version: webpack 4.43.0
  6. Time: 4071ms
  7. Built at: 07/18/2022 11:45:57 AM
  8. 1 asset
  9. Entrypoint main = bundle.13f15dbc.js
  10. [0] multi react-hot-loader/patch ./resources/scripts/index.tsx 40 bytes {0} [built]
  11. + 5 hidden modules
  12.  
  13. ERROR in multi react-hot-loader/patch ./resources/scripts/index.tsx
  14. Module not found: Error: Can't resolve './resources/scripts/index.tsx' in '/var/www/pterodactyl'
  15. @ multi react-hot-loader/patch ./resources/scripts/index.tsx main[1]
  16.  
  17. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:4:39
  18. TS2307: Cannot find module '@/api/auth/requestPasswordResetEmail' or its corresponding type declarations.
  19. 2 | import { useEffect, useRef, useState } from 'react';
  20. 3 | import { Link } from 'react-router-dom';
  21. > 4 | import requestPasswordResetEmail from '@/api/auth/requestPasswordResetEmail';
  22. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  23. 5 | import { httpErrorToHuman } from '@/api/http';
  24. 6 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
  25. 7 | import { useStoreState } from 'easy-peasy';
  26.  
  27. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:5:34
  28. TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
  29. 3 | import { Link } from 'react-router-dom';
  30. 4 | import requestPasswordResetEmail from '@/api/auth/requestPasswordResetEmail';
  31. > 5 | import { httpErrorToHuman } from '@/api/http';
  32. | ^^^^^^^^^^^^
  33. 6 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
  34. 7 | import { useStoreState } from 'easy-peasy';
  35. 8 | import Field from '@/components/elements/Field';
  36.  
  37. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:8:19
  38. TS2307: Cannot find module '@/components/elements/Field' or its corresponding type declarations.
  39. 6 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
  40. 7 | import { useStoreState } from 'easy-peasy';
  41. > 8 | import Field from '@/components/elements/Field';
  42. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  43. 9 | import { Formik, FormikHelpers } from 'formik';
  44. 10 | import { object, string } from 'yup';
  45. 11 | import tw from 'twin.macro';
  46.  
  47. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:12:20
  48. TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
  49. 10 | import { object, string } from 'yup';
  50. 11 | import tw from 'twin.macro';
  51. > 12 | import Button from '@/components/elements/Button';
  52. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  53. 13 | import Reaptcha from 'reaptcha';
  54. 14 | import useFlash from '@/plugins/useFlash';
  55. 15 |
  56.  
  57. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:14:22
  58. TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations.
  59. 12 | import Button from '@/components/elements/Button';
  60. 13 | import Reaptcha from 'reaptcha';
  61. > 14 | import useFlash from '@/plugins/useFlash';
  62. | ^^^^^^^^^^^^^^^^^^^^
  63. 15 |
  64. 16 | interface Values {
  65. 17 | email: string;
  66.  
  67. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:25:81
  68. TS2339: Property 'settings' does not exist on type 'StateMapper<_Pick<{}, never>>'.
  69. 23 |
  70. 24 | const { clearFlashes, addFlash } = useFlash();
  71. > 25 | const { enabled: recaptchaEnabled, siteKey } = useStoreState(state => state.settings.data!.recaptcha);
  72. | ^^^^^^^^
  73. 26 |
  74. 27 | useEffect(() => {
  75. 28 | clearFlashes();
  76.  
  77. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:48:19
  78. TS7006: Parameter 'response' implicitly has an 'any' type.
  79. 46 |
  80. 47 | requestPasswordResetEmail(email, token)
  81. > 48 | .then(response => {
  82. | ^^^^^^^^
  83. 49 | resetForm();
  84. 50 | addFlash({ type: 'success', title: 'Success', message: response });
  85. 51 | })
  86.  
  87. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:52:20
  88. TS7006: Parameter 'error' implicitly has an 'any' type.
  89. 50 | addFlash({ type: 'success', title: 'Success', message: response });
  90. 51 | })
  91. > 52 | .catch(error => {
  92. | ^^^^^
  93. 53 | console.error(error);
  94. 54 | addFlash({ type: 'error', title: 'Error', message: httpErrorToHuman(error) });
  95. 55 | })
  96.  
  97. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:77:21
  98. TS2322: Type '{ children: any[]; title: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
  99. Property 'css' does not exist on type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
  100. 75 | <LoginFormContainer
  101. 76 | title={'Request Password Reset'}
  102. > 77 | css={tw`w-full flex`}
  103. | ^^^
  104. 78 | >
  105. 79 | <Field
  106. 80 | light
  107.  
  108. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:86:26
  109. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  110. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  111. 84 | type={'email'}
  112. 85 | />
  113. > 86 | <div css={tw`mt-6`}>
  114. | ^^^
  115. 87 | <Button
  116. 88 | type={'submit'}
  117. 89 | size={'xlarge'}
  118.  
  119. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:111:26
  120. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  121. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  122. 109 | />
  123. 110 | }
  124. > 111 | <div css={tw`mt-6 text-center`}>
  125. | ^^^
  126. 112 | <Link
  127. 113 | to={'/auth/login'}
  128. 114 | css={tw`text-xs text-neutral-500 tracking-wide uppercase no-underline hover:text-neutral-700`}
  129.  
  130. ERROR in resources/scripts/components/auth/ForgotPasswordContainer.tsx:114:29
  131. TS2769: No overload matches this call.
  132. Overload 1 of 2, '(props: Readonly<LinkProps<any>>): Link<any>', gave the following error.
  133. Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  134. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  135. Overload 2 of 2, '(props: LinkProps<any>, context?: any): Link<any>', gave the following error.
  136. Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  137. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  138. 112 | <Link
  139. 113 | to={'/auth/login'}
  140. > 114 | css={tw`text-xs text-neutral-500 tracking-wide uppercase no-underline hover:text-neutral-700`}
  141. | ^^^
  142. 115 | >
  143. 116 | Return to Login
  144. 117 | </Link>
  145.  
  146. ERROR in resources/scripts/components/auth/LoginContainer.tsx:3:19
  147. TS2307: Cannot find module '@/api/auth/login' or its corresponding type declarations.
  148. 1 | import React, { useEffect, useRef, useState } from 'react';
  149. 2 | import { Link, RouteComponentProps } from 'react-router-dom';
  150. > 3 | import login from '@/api/auth/login';
  151. | ^^^^^^^^^^^^^^^^^^
  152. 4 | import LoginFormContainer from '@/components/auth/LoginFormContainer';
  153. 5 | import { useStoreState } from 'easy-peasy';
  154. 6 | import { Formik, FormikHelpers } from 'formik';
  155.  
  156. ERROR in resources/scripts/components/auth/LoginContainer.tsx:8:19
  157. TS2307: Cannot find module '@/components/elements/Field' or its corresponding type declarations.
  158. 6 | import { Formik, FormikHelpers } from 'formik';
  159. 7 | import { object, string } from 'yup';
  160. > 8 | import Field from '@/components/elements/Field';
  161. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  162. 9 | import tw from 'twin.macro';
  163. 10 | import Button from '@/components/elements/Button';
  164. 11 | import Reaptcha from 'reaptcha';
  165.  
  166. ERROR in resources/scripts/components/auth/LoginContainer.tsx:10:20
  167. TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
  168. 8 | import Field from '@/components/elements/Field';
  169. 9 | import tw from 'twin.macro';
  170. > 10 | import Button from '@/components/elements/Button';
  171. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  172. 11 | import Reaptcha from 'reaptcha';
  173. 12 | import useFlash from '@/plugins/useFlash';
  174. 13 |
  175.  
  176. ERROR in resources/scripts/components/auth/LoginContainer.tsx:12:22
  177. TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations.
  178. 10 | import Button from '@/components/elements/Button';
  179. 11 | import Reaptcha from 'reaptcha';
  180. > 12 | import useFlash from '@/plugins/useFlash';
  181. | ^^^^^^^^^^^^^^^^^^^^
  182. 13 |
  183. 14 | interface Values {
  184. 15 | username: string;
  185.  
  186. ERROR in resources/scripts/components/auth/LoginContainer.tsx:24:81
  187. TS2339: Property 'settings' does not exist on type 'StateMapper<_Pick<{}, never>>'.
  188. 22 |
  189. 23 | const { clearFlashes, clearAndAddHttpError } = useFlash();
  190. > 24 | const { enabled: recaptchaEnabled, siteKey } = useStoreState(state => state.settings.data!.recaptcha);
  191. | ^^^^^^^^
  192. 25 |
  193. 26 | useEffect(() => {
  194. 27 | clearFlashes();
  195.  
  196. ERROR in resources/scripts/components/auth/LoginContainer.tsx:47:19
  197. TS7006: Parameter 'response' implicitly has an 'any' type.
  198. 45 |
  199. 46 | login({ ...values, recaptchaData: token })
  200. > 47 | .then(response => {
  201. | ^^^^^^^^
  202. 48 | if (response.complete) {
  203. 49 | // @ts-ignore
  204. 50 | window.location = response.intended || '/';
  205.  
  206. ERROR in resources/scripts/components/auth/LoginContainer.tsx:56:20
  207. TS7006: Parameter 'error' implicitly has an 'any' type.
  208. 54 | history.replace('/auth/login/checkpoint', { token: response.confirmationToken });
  209. 55 | })
  210. > 56 | .catch(error => {
  211. | ^^^^^
  212. 57 | console.error(error);
  213. 58 |
  214. 59 | setToken('');
  215.  
  216. ERROR in resources/scripts/components/auth/LoginContainer.tsx:78:69
  217. TS2322: Type '{ children: any[]; title: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
  218. Property 'css' does not exist on type 'IntrinsicAttributes & Pick<Props, "key" | keyof FormHTMLAttributes<HTMLFormElement>> & RefAttributes<HTMLFormElement>'.
  219. 76 | >
  220. 77 | {({ isSubmitting, setSubmitting, submitForm }) => (
  221. > 78 | <LoginFormContainer title={'Login to Your Account'} css={tw`w-full flex`}>
  222. | ^^^
  223. 79 | <Field
  224. 80 | light
  225. 81 | type={'text'}
  226.  
  227. ERROR in resources/scripts/components/auth/LoginContainer.tsx:86:26
  228. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  229. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  230. 84 | disabled={isSubmitting}
  231. 85 | />
  232. > 86 | <div css={tw`mt-6`}>
  233. | ^^^
  234. 87 | <Field
  235. 88 | light
  236. 89 | type={'password'}
  237.  
  238. ERROR in resources/scripts/components/auth/LoginContainer.tsx:95:26
  239. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  240. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  241. 93 | />
  242. 94 | </div>
  243. > 95 | <div css={tw`mt-6`}>
  244. | ^^^
  245. 96 | <Button type={'submit'} size={'xlarge'} isLoading={isSubmitting} disabled={isSubmitting}>
  246. 97 | Login to Your Account
  247. 98 | </Button>
  248.  
  249. ERROR in resources/scripts/components/auth/LoginContainer.tsx:115:26
  250. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  251. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  252. 113 | />
  253. 114 | }
  254. > 115 | <div css={tw`mt-6 text-center`}>
  255. | ^^^
  256. 116 | <Link
  257. 117 | to={'/auth/password'}
  258. 118 | css={tw`text-xs text-neutral-500 tracking-wide no-underline uppercase hover:text-neutral-600`}
  259.  
  260. ERROR in resources/scripts/components/auth/LoginContainer.tsx:118:29
  261. TS2769: No overload matches this call.
  262. Overload 1 of 2, '(props: Readonly<LinkProps<any>>): Link<any>', gave the following error.
  263. Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  264. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  265. Overload 2 of 2, '(props: LinkProps<any>, context?: any): Link<any>', gave the following error.
  266. Type '{ children: string; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  267. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link<any>> & Readonly<LinkProps<any>> & Readonly<{ ...; }>'.
  268. 116 | <Link
  269. 117 | to={'/auth/password'}
  270. > 118 | css={tw`text-xs text-neutral-500 tracking-wide no-underline uppercase hover:text-neutral-600`}
  271. | ^^^
  272. 119 | >
  273. 120 | Forgot your password? Reset
  274. 121 | </Link>
  275.  
  276. ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:4:28
  277. TS2307: Cannot find module '@/theme' or its corresponding type declarations.
  278. 2 | import { Form } from 'formik';
  279. 3 | import styled from 'styled-components/macro';
  280. > 4 | import { breakpoint } from '@/theme';
  281. | ^^^^^^^^^
  282. 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  283. 6 | import tw from 'twin.macro';
  284. 7 |
  285.  
  286. ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:5:32
  287. TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations.
  288. 3 | import styled from 'styled-components/macro';
  289. 4 | import { breakpoint } from '@/theme';
  290. > 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  291. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  292. 6 | import tw from 'twin.macro';
  293. 7 |
  294. 8 | type Props = React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement> & {
  295.  
  296. ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:34:13
  297. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>'.
  298. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>'.
  299. 32 | <Container>
  300. 33 | {title &&
  301. > 34 | <h2 css={tw`text-3xl text-center text-neutral-100 font-medium py-4`}>
  302. | ^^^
  303. 35 | {title}
  304. 36 | </h2>
  305. 37 | }
  306.  
  307. ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:40:18
  308. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  309. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  310. 38 | <FlashMessageRender css={tw`mb-2 px-1`}/>
  311. 39 | <Form {...props} ref={ref}>
  312. > 40 | <div css={tw`md:flex w-full bg-white shadow-lg rounded-lg p-6 md:pl-0 mx-1`}>
  313. | ^^^
  314. 41 | <div css={tw`flex-1`}>
  315. 42 | {props.children}
  316. 43 | </div>
  317.  
  318. ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:41:22
  319. TS2322: Type '{ children: ReactNode; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  320. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  321. 39 | <Form {...props} ref={ref}>
  322. 40 | <div css={tw`md:flex w-full bg-white shadow-lg rounded-lg p-6 md:pl-0 mx-1`}>
  323. > 41 | <div css={tw`flex-1`}>
  324. | ^^^
  325. 42 | {props.children}
  326. 43 | </div>
  327. 44 | </div>
  328.  
  329. ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:46:12
  330. TS2322: Type '{ children: (string | number | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  331. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  332. 44 | </div>
  333. 45 | </Form>
  334. > 46 | <p css={tw`text-center text-neutral-500 text-xs mt-4`}>
  335. | ^^^
  336. 47 | &copy; 2015 - {(new Date()).getFullYear()}&nbsp;
  337. 48 | <a
  338. 49 | rel={'noopener nofollow noreferrer'}
  339.  
  340. ERROR in resources/scripts/components/auth/LoginFormContainer.tsx:52:17
  341. TS2322: Type '{ children: string; rel: string; href: string; target: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
  342. Property 'css' does not exist on type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
  343. 50 | href={'https://pterodactyl.io'}
  344. 51 | target={'_blank'}
  345. > 52 | css={tw`no-underline text-neutral-500 hover:text-neutral-300`}
  346. | ^^^
  347. 53 | >
  348. 54 | Pterodactyl Software
  349. 55 | </a><br></br>
  350.  
  351. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:2:24
  352. TS2307: Cannot find module '@/api/server/getServer' or its corresponding type declarations.
  353. 1 | import React, { useEffect, useState } from 'react';
  354. > 2 | import { Server } from '@/api/server/getServer';
  355. | ^^^^^^^^^^^^^^^^^^^^^^^^
  356. 3 | import getServers from '@/api/getServers';
  357. 4 | import ServerRow from '@/components/dashboard/ServerRow';
  358. 5 | import Spinner from '@/components/elements/Spinner';
  359.  
  360. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:3:24
  361. TS2307: Cannot find module '@/api/getServers' or its corresponding type declarations.
  362. 1 | import React, { useEffect, useState } from 'react';
  363. 2 | import { Server } from '@/api/server/getServer';
  364. > 3 | import getServers from '@/api/getServers';
  365. | ^^^^^^^^^^^^^^^^^^
  366. 4 | import ServerRow from '@/components/dashboard/ServerRow';
  367. 5 | import Spinner from '@/components/elements/Spinner';
  368. 6 | import PageContentBlock from '@/components/elements/PageContentBlock';
  369.  
  370. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:5:21
  371. TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations.
  372. 3 | import getServers from '@/api/getServers';
  373. 4 | import ServerRow from '@/components/dashboard/ServerRow';
  374. > 5 | import Spinner from '@/components/elements/Spinner';
  375. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  376. 6 | import PageContentBlock from '@/components/elements/PageContentBlock';
  377. 7 | import useFlash from '@/plugins/useFlash';
  378. 8 | import { useStoreState } from 'easy-peasy';
  379.  
  380. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:6:30
  381. TS2307: Cannot find module '@/components/elements/PageContentBlock' or its corresponding type declarations.
  382. 4 | import ServerRow from '@/components/dashboard/ServerRow';
  383. 5 | import Spinner from '@/components/elements/Spinner';
  384. > 6 | import PageContentBlock from '@/components/elements/PageContentBlock';
  385. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  386. 7 | import useFlash from '@/plugins/useFlash';
  387. 8 | import { useStoreState } from 'easy-peasy';
  388. 9 | import { usePersistedState } from '@/plugins/usePersistedState';
  389.  
  390. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:7:22
  391. TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations.
  392. 5 | import Spinner from '@/components/elements/Spinner';
  393. 6 | import PageContentBlock from '@/components/elements/PageContentBlock';
  394. > 7 | import useFlash from '@/plugins/useFlash';
  395. | ^^^^^^^^^^^^^^^^^^^^
  396. 8 | import { useStoreState } from 'easy-peasy';
  397. 9 | import { usePersistedState } from '@/plugins/usePersistedState';
  398. 10 | import Switch from '@/components/elements/Switch';
  399.  
  400. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:9:35
  401. TS2307: Cannot find module '@/plugins/usePersistedState' or its corresponding type declarations.
  402. 7 | import useFlash from '@/plugins/useFlash';
  403. 8 | import { useStoreState } from 'easy-peasy';
  404. > 9 | import { usePersistedState } from '@/plugins/usePersistedState';
  405. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  406. 10 | import Switch from '@/components/elements/Switch';
  407. 11 | import tw from 'twin.macro';
  408. 12 | import useSWR from 'swr';
  409.  
  410. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:10:20
  411. TS2307: Cannot find module '@/components/elements/Switch' or its corresponding type declarations.
  412. 8 | import { useStoreState } from 'easy-peasy';
  413. 9 | import { usePersistedState } from '@/plugins/usePersistedState';
  414. > 10 | import Switch from '@/components/elements/Switch';
  415. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  416. 11 | import tw from 'twin.macro';
  417. 12 | import useSWR from 'swr';
  418. 13 | import { PaginatedResult } from '@/api/http';
  419.  
  420. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:13:33
  421. TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
  422. 11 | import tw from 'twin.macro';
  423. 12 | import useSWR from 'swr';
  424. > 13 | import { PaginatedResult } from '@/api/http';
  425. | ^^^^^^^^^^^^
  426. 14 | import Pagination from '@/components/elements/Pagination';
  427. 15 | import { useLocation } from 'react-router-dom';
  428. 16 | import SearchContainer from '@/components/dashboard/search/SearchContainer';
  429.  
  430. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:14:24
  431. TS2307: Cannot find module '@/components/elements/Pagination' or its corresponding type declarations.
  432. 12 | import useSWR from 'swr';
  433. 13 | import { PaginatedResult } from '@/api/http';
  434. > 14 | import Pagination from '@/components/elements/Pagination';
  435. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  436. 15 | import { useLocation } from 'react-router-dom';
  437. 16 | import SearchContainer from '@/components/dashboard/search/SearchContainer';
  438. 17 | import { ApplicationStore } from '@/state';
  439.  
  440. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:17:34
  441. TS2307: Cannot find module '@/state' or its corresponding type declarations.
  442. 15 | import { useLocation } from 'react-router-dom';
  443. 16 | import SearchContainer from '@/components/dashboard/search/SearchContainer';
  444. > 17 | import { ApplicationStore } from '@/state';
  445. | ^^^^^^^^^
  446. 18 | import crypto from 'crypto';
  447. 19 |
  448. 20 | export default () => {
  449.  
  450. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:29:47
  451. TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'.
  452. 27 | const [ page, setPage ] = useState((!isNaN(defaultPage) && defaultPage > 0) ? defaultPage : 1);
  453. 28 | const { clearFlashes, clearAndAddHttpError } = useFlash();
  454. > 29 | const uuid = useStoreState(state => state.user.data!.uuid);
  455. | ^^^^
  456. 30 | const rootAdmin = useStoreState(state => state.user.data!.rootAdmin);
  457. 31 | const [ showOnlyAdmin, setShowOnlyAdmin ] = usePersistedState(`${uuid}:show_all_servers`, false);
  458. 32 |
  459.  
  460. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:30:52
  461. TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'.
  462. 28 | const { clearFlashes, clearAndAddHttpError } = useFlash();
  463. 29 | const uuid = useStoreState(state => state.user.data!.uuid);
  464. > 30 | const rootAdmin = useStoreState(state => state.user.data!.rootAdmin);
  465. | ^^^^
  466. 31 | const [ showOnlyAdmin, setShowOnlyAdmin ] = usePersistedState(`${uuid}:show_all_servers`, false);
  467. 32 |
  468. 33 | const { data: servers, error } = useSWR<PaginatedResult<Server>>(
  469.  
  470. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:96:22
  471. TS2322: Type '{ children: Element[]; css: TwStyle; className: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  472. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  473. 94 | <SearchContainer/>
  474. 95 | {rootAdmin &&
  475. > 96 | <div css={tw`mb-2 flex justify-end items-center`} className="switcher">
  476. | ^^^
  477. 97 | <p css={tw`uppercase text-xs text-neutral-400 mr-2`}>
  478. 98 | {showOnlyAdmin ? 'Showing others\' servers' : 'Showing your servers'}
  479. 99 | </p>
  480.  
  481. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:97:24
  482. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  483. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  484. 95 | {rootAdmin &&
  485. 96 | <div css={tw`mb-2 flex justify-end items-center`} className="switcher">
  486. > 97 | <p css={tw`uppercase text-xs text-neutral-400 mr-2`}>
  487. | ^^^
  488. 98 | {showOnlyAdmin ? 'Showing others\' servers' : 'Showing your servers'}
  489. 99 | </p>
  490. 100 | <Switch
  491.  
  492. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:103:58
  493. TS7006: Parameter 's' implicitly has an 'any' type.
  494. 101 | name={'show_all_servers'}
  495. 102 | defaultChecked={showOnlyAdmin}
  496. > 103 | onChange={() => setShowOnlyAdmin(s => !s)}
  497. | ^
  498. 104 | />
  499. 105 | </div>
  500. 106 | }
  501.  
  502. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:112:29
  503. TS7031: Binding element 'items' implicitly has an 'any' type.
  504. 110 | :
  505. 111 | <Pagination data={servers} onPageSelect={setPage}>
  506. > 112 | {({ items }) => (
  507. | ^^^^^
  508. 113 | items.length > 0 ?
  509. 114 | items.map((server, index) => (
  510. 115 | <ServerRow
  511.  
  512. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:114:44
  513. TS7006: Parameter 'server' implicitly has an 'any' type.
  514. 112 | {({ items }) => (
  515. 113 | items.length > 0 ?
  516. > 114 | items.map((server, index) => (
  517. | ^^^^^^
  518. 115 | <ServerRow
  519. 116 | key={server.uuid}
  520. 117 | server={server}
  521.  
  522. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:114:52
  523. TS7006: Parameter 'index' implicitly has an 'any' type.
  524. 112 | {({ items }) => (
  525. 113 | items.length > 0 ?
  526. > 114 | items.map((server, index) => (
  527. | ^^^^^
  528. 115 | <ServerRow
  529. 116 | key={server.uuid}
  530. 117 | server={server}
  531.  
  532. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:118:41
  533. TS2322: Type '{ key: any; server: any; css: TwStyle | undefined; }' is not assignable to type 'IntrinsicAttributes & { server: any; className?: string | undefined; }'.
  534. Property 'css' does not exist on type 'IntrinsicAttributes & { server: any; className?: string | undefined; }'.
  535. 116 | key={server.uuid}
  536. 117 | server={server}
  537. > 118 | css={index > 0 ? tw`mt-2` : undefined}
  538. | ^^^
  539. 119 | />
  540. 120 | ))
  541. 121 | :
  542.  
  543. ERROR in resources/scripts/components/dashboard/DashboardContainer.tsx:122:36
  544. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  545. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  546. 120 | ))
  547. 121 | :
  548. > 122 | <p css={tw`text-center text-sm text-neutral-400`}>
  549. | ^^^
  550. 123 | {showOnlyAdmin ?
  551. 124 | 'There are no other servers to display.'
  552. 125 | :
  553.  
  554. ERROR in resources/scripts/components/dashboard/search/SearchContainer.tsx:4:30
  555. TS2307: Cannot find module '@/plugins/useEventListener' or its corresponding type declarations.
  556. 2 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  557. 3 | import { faSearch } from '@fortawesome/free-solid-svg-icons';
  558. > 4 | import useEventListener from '@/plugins/useEventListener';
  559. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  560. 5 | import SearchModal from '@/components/dashboard/search/SearchModal';
  561. 6 |
  562. 7 | export default () => {
  563.  
  564. ERROR in resources/scripts/components/dashboard/search/SearchContainer.tsx:5:25
  565. TS2307: Cannot find module '@/components/dashboard/search/SearchModal' or its corresponding type declarations.
  566. 3 | import { faSearch } from '@fortawesome/free-solid-svg-icons';
  567. 4 | import useEventListener from '@/plugins/useEventListener';
  568. > 5 | import SearchModal from '@/components/dashboard/search/SearchModal';
  569. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  570. 6 |
  571. 7 | export default () => {
  572. 8 | const [ visible, setVisible ] = useState(false);
  573.  
  574. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:5:24
  575. TS2307: Cannot find module '@/api/server/getServer' or its corresponding type declarations.
  576. 3 | import { faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons';
  577. 4 | import { Link } from 'react-router-dom';
  578. > 5 | import { Server } from '@/api/server/getServer';
  579. | ^^^^^^^^^^^^^^^^^^^^^^^^
  580. 6 | import getServerResourceUsage, { ServerPowerState, ServerStats } from '@/api/server/getServerResourceUsage';
  581. 7 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
  582. 8 | import tw from 'twin.macro';
  583.  
  584. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:6:71
  585. TS2307: Cannot find module '@/api/server/getServerResourceUsage' or its corresponding type declarations.
  586. 4 | import { Link } from 'react-router-dom';
  587. 5 | import { Server } from '@/api/server/getServer';
  588. > 6 | import getServerResourceUsage, { ServerPowerState, ServerStats } from '@/api/server/getServerResourceUsage';
  589. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  590. 7 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
  591. 8 | import tw from 'twin.macro';
  592. 9 | import GreyRowBox from '@/components/elements/GreyRowBox';
  593.  
  594. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:7:48
  595. TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
  596. 5 | import { Server } from '@/api/server/getServer';
  597. 6 | import getServerResourceUsage, { ServerPowerState, ServerStats } from '@/api/server/getServerResourceUsage';
  598. > 7 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
  599. | ^^^^^^^^^^^
  600. 8 | import tw from 'twin.macro';
  601. 9 | import GreyRowBox from '@/components/elements/GreyRowBox';
  602. 10 | import Spinner from '@/components/elements/Spinner';
  603.  
  604. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:9:24
  605. TS2307: Cannot find module '@/components/elements/GreyRowBox' or its corresponding type declarations.
  606. 7 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
  607. 8 | import tw from 'twin.macro';
  608. > 9 | import GreyRowBox from '@/components/elements/GreyRowBox';
  609. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  610. 10 | import Spinner from '@/components/elements/Spinner';
  611. 11 | import styled from 'styled-components/macro';
  612. 12 | import isEqual from 'react-fast-compare';
  613.  
  614. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:10:21
  615. TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations.
  616. 8 | import tw from 'twin.macro';
  617. 9 | import GreyRowBox from '@/components/elements/GreyRowBox';
  618. > 10 | import Spinner from '@/components/elements/Spinner';
  619. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  620. 11 | import styled from 'styled-components/macro';
  621. 12 | import isEqual from 'react-fast-compare';
  622. 13 |
  623.  
  624. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:48:15
  625. TS7006: Parameter 'data' implicitly has an 'any' type.
  626. 46 |
  627. 47 | const getStats = () => getServerResourceUsage(server.uuid)
  628. > 48 | .then(data => setStats(data))
  629. | ^^^^
  630. 49 | .catch(error => console.error(error));
  631. 50 |
  632. 51 | useEffect(() => {
  633.  
  634. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:49:16
  635. TS7006: Parameter 'error' implicitly has an 'any' type.
  636. 47 | const getStats = () => getServerResourceUsage(server.uuid)
  637. 48 | .then(data => setStats(data))
  638. > 49 | .catch(error => console.error(error));
  639. | ^^^^^
  640. 50 |
  641. 51 | useEffect(() => {
  642. 52 | setIsSuspended(stats?.isSuspended || server.status === 'suspended');
  643.  
  644. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:83:18
  645. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  646. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  647. 81 | return (
  648. 82 | <StatusIndicatorBox as={Link} to={`/server/${server.id}`} className={className} $status={stats?.status}>
  649. > 83 | <div css={tw`flex items-center col-span-12 sm:col-span-5 lg:col-span-6`}>
  650. | ^^^
  651. 84 | <div className={'icon'} css={tw`mr-4`}>
  652. 85 | <FontAwesomeIcon icon={faServer}/>
  653. 86 | </div>
  654.  
  655. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:84:41
  656. TS2322: Type '{ children: Element; className: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  657. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  658. 82 | <StatusIndicatorBox as={Link} to={`/server/${server.id}`} className={className} $status={stats?.status}>
  659. 83 | <div css={tw`flex items-center col-span-12 sm:col-span-5 lg:col-span-6`}>
  660. > 84 | <div className={'icon'} css={tw`mr-4`}>
  661. | ^^^
  662. 85 | <FontAwesomeIcon icon={faServer}/>
  663. 86 | </div>
  664. 87 | <div>
  665.  
  666. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:88:24
  667. TS2322: Type '{ children: any; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  668. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  669. 86 | </div>
  670. 87 | <div>
  671. > 88 | <p css={tw`text-lg break-words`}>{server.name}</p>
  672. | ^^^
  673. 89 | {
  674. 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
  675. 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
  676.  
  677. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:90:51
  678. TS7006: Parameter 'alloc' implicitly has an 'any' type.
  679. 88 | <p css={tw`text-lg break-words`}>{server.name}</p>
  680. 89 | {
  681. > 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
  682. | ^^^^^
  683. 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
  684. 92 | <p css={tw`text-sm text-neutral-300 break-words`}>
  685. 93 | {allocation.alias || allocation.ip}:{allocation.port}
  686.  
  687. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:90:81
  688. TS7006: Parameter 'allocation' implicitly has an 'any' type.
  689. 88 | <p css={tw`text-lg break-words`}>{server.name}</p>
  690. 89 | {
  691. > 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
  692. | ^^^^^^^^^^
  693. 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
  694. 92 | <p css={tw`text-sm text-neutral-300 break-words`}>
  695. 93 | {allocation.alias || allocation.ip}:{allocation.port}
  696.  
  697. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:92:36
  698. TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  699. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  700. 90 | server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
  701. 91 | <React.Fragment key={allocation.ip + allocation.port.toString()}>
  702. > 92 | <p css={tw`text-sm text-neutral-300 break-words`}>
  703. | ^^^
  704. 93 | {allocation.alias || allocation.ip}:{allocation.port}
  705. 94 | </p>
  706. 95 | </React.Fragment>
  707.  
  708. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:100:18
  709. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  710. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  711. 98 | </div>
  712. 99 | </div>
  713. > 100 | <div css={tw`hidden col-span-7 lg:col-span-4 sm:flex items-baseline justify-center`}>
  714. | ^^^
  715. 101 | {(!stats || isSuspended) ?
  716. 102 | isSuspended ?
  717. 103 | <div css={tw`flex-1 text-center`}>
  718.  
  719. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:103:30
  720. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  721. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  722. 101 | {(!stats || isSuspended) ?
  723. 102 | isSuspended ?
  724. > 103 | <div css={tw`flex-1 text-center`}>
  725. | ^^^
  726. 104 | <span css={tw`bg-red-500 rounded px-2 py-1 text-red-100 text-xs`}>
  727. 105 | {server.status === 'suspended' ? 'Suspended' : 'Connection Error'}
  728. 106 | </span>
  729.  
  730. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:104:35
  731. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
  732. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
  733. 102 | isSuspended ?
  734. 103 | <div css={tw`flex-1 text-center`}>
  735. > 104 | <span css={tw`bg-red-500 rounded px-2 py-1 text-red-100 text-xs`}>
  736. | ^^^
  737. 105 | {server.status === 'suspended' ? 'Suspended' : 'Connection Error'}
  738. 106 | </span>
  739. 107 | </div>
  740.  
  741. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:110:34
  742. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  743. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  744. 108 | :
  745. 109 | (server.isTransferring || server.status) ?
  746. > 110 | <div css={tw`flex-1 text-center`}>
  747. | ^^^
  748. 111 | <span css={tw`bg-neutral-500 rounded px-2 py-1 text-neutral-100 text-xs`}>
  749. 112 | {server.isTransferring ?
  750. 113 | 'Transferring'
  751.  
  752. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:111:39
  753. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
  754. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
  755. 109 | (server.isTransferring || server.status) ?
  756. 110 | <div css={tw`flex-1 text-center`}>
  757. > 111 | <span css={tw`bg-neutral-500 rounded px-2 py-1 text-neutral-100 text-xs`}>
  758. | ^^^
  759. 112 | {server.isTransferring ?
  760. 113 | 'Transferring'
  761. 114 | :
  762.  
  763. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:128:30
  764. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  765. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  766. 126 | :
  767. 127 | <React.Fragment>
  768. > 128 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  769. | ^^^
  770. 129 | <div css={tw`flex justify-center`}>
  771. 130 | <Icon icon={faMicrochip} $alarm={alarms.cpu}/>
  772. 131 | <IconDescription $alarm={alarms.cpu}>
  773.  
  774. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:129:34
  775. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  776. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  777. 127 | <React.Fragment>
  778. 128 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  779. > 129 | <div css={tw`flex justify-center`}>
  780. | ^^^
  781. 130 | <Icon icon={faMicrochip} $alarm={alarms.cpu}/>
  782. 131 | <IconDescription $alarm={alarms.cpu}>
  783. 132 | {stats.cpuUsagePercent.toFixed(2)} %
  784.  
  785. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:135:32
  786. TS2322: Type '{ children: string[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  787. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  788. 133 | </IconDescription>
  789. 134 | </div>
  790. > 135 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {cpuLimit}</p>
  791. | ^^^
  792. 136 | </div>
  793. 137 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  794. 138 | <div css={tw`flex justify-center`}>
  795.  
  796. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:137:30
  797. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  798. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  799. 135 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {cpuLimit}</p>
  800. 136 | </div>
  801. > 137 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  802. | ^^^
  803. 138 | <div css={tw`flex justify-center`}>
  804. 139 | <Icon icon={faMemory} $alarm={alarms.memory}/>
  805. 140 | <IconDescription $alarm={alarms.memory}>
  806.  
  807. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:138:34
  808. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  809. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  810. 136 | </div>
  811. 137 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  812. > 138 | <div css={tw`flex justify-center`}>
  813. | ^^^
  814. 139 | <Icon icon={faMemory} $alarm={alarms.memory}/>
  815. 140 | <IconDescription $alarm={alarms.memory}>
  816. 141 | {bytesToHuman(stats.memoryUsageInBytes)}
  817.  
  818. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:144:32
  819. TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  820. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  821. 142 | </IconDescription>
  822. 143 | </div>
  823. > 144 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {memoryLimit}</p>
  824. | ^^^
  825. 145 | </div>
  826. 146 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  827. 147 | <div css={tw`flex justify-center`}>
  828.  
  829. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:146:30
  830. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  831. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  832. 144 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {memoryLimit}</p>
  833. 145 | </div>
  834. > 146 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  835. | ^^^
  836. 147 | <div css={tw`flex justify-center`}>
  837. 148 | <Icon icon={faHdd} $alarm={alarms.disk}/>
  838. 149 | <IconDescription $alarm={alarms.disk}>
  839.  
  840. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:147:34
  841. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  842. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  843. 145 | </div>
  844. 146 | <div css={tw`flex-1 ml-4 sm:block hidden`}>
  845. > 147 | <div css={tw`flex justify-center`}>
  846. | ^^^
  847. 148 | <Icon icon={faHdd} $alarm={alarms.disk}/>
  848. 149 | <IconDescription $alarm={alarms.disk}>
  849. 150 | {bytesToHuman(stats.diskUsageInBytes)}
  850.  
  851. ERROR in resources/scripts/components/dashboard/ServerRow.tsx:153:32
  852. TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  853. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  854. 151 | </IconDescription>
  855. 152 | </div>
  856. > 153 | <p css={tw`text-xs text-neutral-600 text-center mt-1`}>of {diskLimit}</p>
  857. | ^^^
  858. 154 | </div>
  859. 155 | </React.Fragment>
  860. 156 | }
  861.  
  862. ERROR in resources/scripts/components/NavigationBar.tsx:6:34
  863. TS2307: Cannot find module '@/state' or its corresponding type declarations.
  864. 4 | import { faCogs, faLayerGroup, faSignOutAlt, faUserCircle } from '@fortawesome/free-solid-svg-icons';
  865. 5 | import { useStoreState } from 'easy-peasy';
  866. > 6 | import { ApplicationStore } from '@/state';
  867. | ^^^^^^^^^
  868. 7 | import tw, { theme } from 'twin.macro';
  869. 8 | import styled from 'styled-components/macro';
  870. 9 | import http from '@/api/http';
  871.  
  872. ERROR in resources/scripts/components/NavigationBar.tsx:9:18
  873. TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
  874. 7 | import tw, { theme } from 'twin.macro';
  875. 8 | import styled from 'styled-components/macro';
  876. > 9 | import http from '@/api/http';
  877. | ^^^^^^^^^^^^
  878. 10 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
  879. 11 | import { useState } from 'react';
  880. 12 |
  881.  
  882. ERROR in resources/scripts/components/NavigationBar.tsx:10:28
  883. TS2307: Cannot find module '@/components/elements/SpinnerOverlay' or its corresponding type declarations.
  884. 8 | import styled from 'styled-components/macro';
  885. 9 | import http from '@/api/http';
  886. > 10 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
  887. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  888. 11 | import { useState } from 'react';
  889. 12 |
  890. 13 | const Navigation = styled.div`
  891.  
  892. ERROR in resources/scripts/components/NavigationBar.tsx:61:18
  893. TS2322: Type '{ children: Element; css: TwStyle; style: { maxWidth: string; height: string; }; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  894. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  895. 59 | <Navigation>
  896. 60 | <SpinnerOverlay visible={isLoggingOut} />
  897. > 61 | <div css={tw`mx-auto w-full flex items-center`} style={{ maxWidth: '1200px', height: '3.5rem' }}>
  898. | ^^^
  899. 62 |
  900. 63 | <RightNavigation>
  901. 64 | <a href="/" id="logo">
  902.  
  903. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:2:32
  904. TS2307: Cannot find module '@/api/server/databases/getServerDatabases' or its corresponding type declarations.
  905. 1 | import React, { useEffect, useState } from 'react';
  906. > 2 | import getServerDatabases from '@/api/server/databases/getServerDatabases';
  907. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  908. 3 | import { ServerContext } from '@/state/server';
  909. 4 | import { httpErrorToHuman } from '@/api/http';
  910. 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  911.  
  912. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:3:31
  913. TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
  914. 1 | import React, { useEffect, useState } from 'react';
  915. 2 | import getServerDatabases from '@/api/server/databases/getServerDatabases';
  916. > 3 | import { ServerContext } from '@/state/server';
  917. | ^^^^^^^^^^^^^^^^
  918. 4 | import { httpErrorToHuman } from '@/api/http';
  919. 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  920. 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow';
  921.  
  922. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:4:34
  923. TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
  924. 2 | import getServerDatabases from '@/api/server/databases/getServerDatabases';
  925. 3 | import { ServerContext } from '@/state/server';
  926. > 4 | import { httpErrorToHuman } from '@/api/http';
  927. | ^^^^^^^^^^^^
  928. 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  929. 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow';
  930. 7 | import Spinner from '@/components/elements/Spinner';
  931.  
  932. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:5:32
  933. TS2307: Cannot find module '@/components/FlashMessageRender' or its corresponding type declarations.
  934. 3 | import { ServerContext } from '@/state/server';
  935. 4 | import { httpErrorToHuman } from '@/api/http';
  936. > 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  937. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  938. 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow';
  939. 7 | import Spinner from '@/components/elements/Spinner';
  940. 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton';
  941.  
  942. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:6:25
  943. TS2307: Cannot find module '@/components/server/databases/DatabaseRow' or its corresponding type declarations.
  944. 4 | import { httpErrorToHuman } from '@/api/http';
  945. 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  946. > 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow';
  947. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  948. 7 | import Spinner from '@/components/elements/Spinner';
  949. 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton';
  950. 9 | import Can from '@/components/elements/Can';
  951.  
  952. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:7:21
  953. TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations.
  954. 5 | import FlashMessageRender from '@/components/FlashMessageRender';
  955. 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow';
  956. > 7 | import Spinner from '@/components/elements/Spinner';
  957. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  958. 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton';
  959. 9 | import Can from '@/components/elements/Can';
  960. 10 | import useFlash from '@/plugins/useFlash';
  961.  
  962. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:8:34
  963. TS2307: Cannot find module '@/components/server/databases/CreateDatabaseButton' or its corresponding type declarations.
  964. 6 | import DatabaseRow from '@/components/server/databases/DatabaseRow';
  965. 7 | import Spinner from '@/components/elements/Spinner';
  966. > 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton';
  967. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  968. 9 | import Can from '@/components/elements/Can';
  969. 10 | import useFlash from '@/plugins/useFlash';
  970. 11 | import tw from 'twin.macro';
  971.  
  972. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:9:17
  973. TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations.
  974. 7 | import Spinner from '@/components/elements/Spinner';
  975. 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton';
  976. > 9 | import Can from '@/components/elements/Can';
  977. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  978. 10 | import useFlash from '@/plugins/useFlash';
  979. 11 | import tw from 'twin.macro';
  980. 12 | import Fade from '@/components/elements/Fade';
  981.  
  982. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:10:22
  983. TS2307: Cannot find module '@/plugins/useFlash' or its corresponding type declarations.
  984. 8 | import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton';
  985. 9 | import Can from '@/components/elements/Can';
  986. > 10 | import useFlash from '@/plugins/useFlash';
  987. | ^^^^^^^^^^^^^^^^^^^^
  988. 11 | import tw from 'twin.macro';
  989. 12 | import Fade from '@/components/elements/Fade';
  990. 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  991.  
  992. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:12:18
  993. TS2307: Cannot find module '@/components/elements/Fade' or its corresponding type declarations.
  994. 10 | import useFlash from '@/plugins/useFlash';
  995. 11 | import tw from 'twin.macro';
  996. > 12 | import Fade from '@/components/elements/Fade';
  997. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  998. 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  999. 14 | import { useDeepMemoize } from '@/plugins/useDeepMemoize';
  1000. 15 |
  1001.  
  1002. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:13:32
  1003. TS2307: Cannot find module '@/components/elements/ServerContentBlock' or its corresponding type declarations.
  1004. 11 | import tw from 'twin.macro';
  1005. 12 | import Fade from '@/components/elements/Fade';
  1006. > 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1007. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1008. 14 | import { useDeepMemoize } from '@/plugins/useDeepMemoize';
  1009. 15 |
  1010. 16 | export default () => {
  1011.  
  1012. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:14:32
  1013. TS2307: Cannot find module '@/plugins/useDeepMemoize' or its corresponding type declarations.
  1014. 12 | import Fade from '@/components/elements/Fade';
  1015. 13 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1016. > 14 | import { useDeepMemoize } from '@/plugins/useDeepMemoize';
  1017. | ^^^^^^^^^^^^^^^^^^^^^^^^^^
  1018. 15 |
  1019. 16 | export default () => {
  1020. 17 | const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
  1021.  
  1022. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:17:46
  1023. TS7006: Parameter 'state' implicitly has an 'any' type.
  1024. 15 |
  1025. 16 | export default () => {
  1026. > 17 | const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
  1027. | ^^^^^
  1028. 18 | const databaseLimit = ServerContext.useStoreState(state => state.server.data!.featureLimits.databases);
  1029. 19 |
  1030. 20 | const { addError, clearFlashes } = useFlash();
  1031.  
  1032. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:18:55
  1033. TS7006: Parameter 'state' implicitly has an 'any' type.
  1034. 16 | export default () => {
  1035. 17 | const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
  1036. > 18 | const databaseLimit = ServerContext.useStoreState(state => state.server.data!.featureLimits.databases);
  1037. | ^^^^^
  1038. 19 |
  1039. 20 | const { addError, clearFlashes } = useFlash();
  1040. 21 | const [ loading, setLoading ] = useState(true);
  1041.  
  1042. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:23:66
  1043. TS7006: Parameter 'state' implicitly has an 'any' type.
  1044. 21 | const [ loading, setLoading ] = useState(true);
  1045. 22 |
  1046. > 23 | const databases = useDeepMemoize(ServerContext.useStoreState(state => state.databases.data));
  1047. | ^^^^^
  1048. 24 | const setDatabases = ServerContext.useStoreActions(state => state.databases.setDatabases);
  1049. 25 |
  1050. 26 | useEffect(() => {
  1051.  
  1052. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:24:56
  1053. TS7006: Parameter 'state' implicitly has an 'any' type.
  1054. 22 |
  1055. 23 | const databases = useDeepMemoize(ServerContext.useStoreState(state => state.databases.data));
  1056. > 24 | const setDatabases = ServerContext.useStoreActions(state => state.databases.setDatabases);
  1057. | ^^^^^
  1058. 25 |
  1059. 26 | useEffect(() => {
  1060. 27 | setLoading(!databases.length);
  1061.  
  1062. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:31:19
  1063. TS7006: Parameter 'databases' implicitly has an 'any' type.
  1064. 29 |
  1065. 30 | getServerDatabases(uuid)
  1066. > 31 | .then(databases => setDatabases(databases))
  1067. | ^^^^^^^^^
  1068. 32 | .catch(error => {
  1069. 33 | console.error(error);
  1070. 34 | addError({ key: 'databases', message: httpErrorToHuman(error) });
  1071.  
  1072. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:32:20
  1073. TS7006: Parameter 'error' implicitly has an 'any' type.
  1074. 30 | getServerDatabases(uuid)
  1075. 31 | .then(databases => setDatabases(databases))
  1076. > 32 | .catch(error => {
  1077. | ^^^^^
  1078. 33 | console.error(error);
  1079. 34 | addError({ key: 'databases', message: httpErrorToHuman(error) });
  1080. 35 | })
  1081.  
  1082. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:47:40
  1083. TS7006: Parameter 'database' implicitly has an 'any' type.
  1084. 45 | <div className="db">
  1085. 46 | {databases.length > 0 ?
  1086. > 47 | databases.map((database, index) => (
  1087. | ^^^^^^^^
  1088. 48 | <DatabaseRow
  1089. 49 | key={database.id}
  1090. 50 | database={database}
  1091.  
  1092. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:47:50
  1093. TS7006: Parameter 'index' implicitly has an 'any' type.
  1094. 45 | <div className="db">
  1095. 46 | {databases.length > 0 ?
  1096. > 47 | databases.map((database, index) => (
  1097. | ^^^^^
  1098. 48 | <DatabaseRow
  1099. 49 | key={database.id}
  1100. 50 | database={database}
  1101.  
  1102. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:55:28
  1103. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1104. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1105. 53 | ))
  1106. 54 | :
  1107. > 55 | <p css={tw`text-center text-sm text-neutral-300`}>
  1108. | ^^^
  1109. 56 | {databaseLimit > 0 ?
  1110. 57 | 'It looks like you have no databases.'
  1111. 58 | :
  1112.  
  1113. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:64:30
  1114. TS2322: Type '{ children: (false | Element)[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1115. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1116. 62 | }
  1117. 63 | <Can action={'database.create'}>
  1118. > 64 | <div css={tw`mt-6 flex items-center justify-end`}>
  1119. | ^^^
  1120. 65 | {(databaseLimit > 0 && databases.length > 0) &&
  1121. 66 | <p css={tw`text-sm text-neutral-300 mb-4 sm:mr-6 sm:mb-0`}>
  1122. 67 | {databases.length} of {databaseLimit} databases have been allocated to this
  1123.  
  1124. ERROR in resources/scripts/components/server/databases/DatabasesContainer.tsx:66:32
  1125. TS2322: Type '{ children: any[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1126. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1127. 64 | <div css={tw`mt-6 flex items-center justify-end`}>
  1128. 65 | {(databaseLimit > 0 && databases.length > 0) &&
  1129. > 66 | <p css={tw`text-sm text-neutral-300 mb-4 sm:mr-6 sm:mb-0`}>
  1130. | ^^^
  1131. 67 | {databases.length} of {databaseLimit} databases have been allocated to this
  1132. 68 | server.
  1133. 69 | </p>
  1134.  
  1135. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:2:34
  1136. TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
  1137. 1 | import React, { useEffect } from 'react';
  1138. > 2 | import { httpErrorToHuman } from '@/api/http';
  1139. | ^^^^^^^^^^^^
  1140. 3 | import { CSSTransition } from 'react-transition-group';
  1141. 4 | import Spinner from '@/components/elements/Spinner';
  1142. 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
  1143.  
  1144. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:4:21
  1145. TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations.
  1146. 2 | import { httpErrorToHuman } from '@/api/http';
  1147. 3 | import { CSSTransition } from 'react-transition-group';
  1148. > 4 | import Spinner from '@/components/elements/Spinner';
  1149. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1150. 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
  1151. 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
  1152. 7 | import { FileObject } from '@/api/server/files/loadDirectory';
  1153.  
  1154. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:6:36
  1155. TS2307: Cannot find module '@/components/server/files/FileManagerBreadcrumbs' or its corresponding type declarations.
  1156. 4 | import Spinner from '@/components/elements/Spinner';
  1157. 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
  1158. > 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
  1159. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1160. 7 | import { FileObject } from '@/api/server/files/loadDirectory';
  1161. 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
  1162. 9 | import { NavLink, useLocation } from 'react-router-dom';
  1163.  
  1164. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:7:28
  1165. TS2307: Cannot find module '@/api/server/files/loadDirectory' or its corresponding type declarations.
  1166. 5 | import FileObjectRow from '@/components/server/files/FileObjectRow';
  1167. 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
  1168. > 7 | import { FileObject } from '@/api/server/files/loadDirectory';
  1169. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1170. 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
  1171. 9 | import { NavLink, useLocation } from 'react-router-dom';
  1172. 10 | import Can from '@/components/elements/Can';
  1173.  
  1174. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:8:32
  1175. TS2307: Cannot find module '@/components/server/files/NewDirectoryButton' or its corresponding type declarations.
  1176. 6 | import FileManagerBreadcrumbs from '@/components/server/files/FileManagerBreadcrumbs';
  1177. 7 | import { FileObject } from '@/api/server/files/loadDirectory';
  1178. > 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
  1179. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1180. 9 | import { NavLink, useLocation } from 'react-router-dom';
  1181. 10 | import Can from '@/components/elements/Can';
  1182. 11 | import { ServerError } from '@/components/elements/ScreenBlock';
  1183.  
  1184. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:10:17
  1185. TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations.
  1186. 8 | import NewDirectoryButton from '@/components/server/files/NewDirectoryButton';
  1187. 9 | import { NavLink, useLocation } from 'react-router-dom';
  1188. > 10 | import Can from '@/components/elements/Can';
  1189. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1190. 11 | import { ServerError } from '@/components/elements/ScreenBlock';
  1191. 12 | import tw from 'twin.macro';
  1192. 13 | import Button from '@/components/elements/Button';
  1193.  
  1194. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:11:29
  1195. TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations.
  1196. 9 | import { NavLink, useLocation } from 'react-router-dom';
  1197. 10 | import Can from '@/components/elements/Can';
  1198. > 11 | import { ServerError } from '@/components/elements/ScreenBlock';
  1199. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1200. 12 | import tw from 'twin.macro';
  1201. 13 | import Button from '@/components/elements/Button';
  1202. 14 | import { ServerContext } from '@/state/server';
  1203.  
  1204. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:13:20
  1205. TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
  1206. 11 | import { ServerError } from '@/components/elements/ScreenBlock';
  1207. 12 | import tw from 'twin.macro';
  1208. > 13 | import Button from '@/components/elements/Button';
  1209. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1210. 14 | import { ServerContext } from '@/state/server';
  1211. 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
  1212. 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
  1213.  
  1214. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:14:31
  1215. TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
  1216. 12 | import tw from 'twin.macro';
  1217. 13 | import Button from '@/components/elements/Button';
  1218. > 14 | import { ServerContext } from '@/state/server';
  1219. | ^^^^^^^^^^^^^^^^
  1220. 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
  1221. 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
  1222. 17 | import UploadButton from '@/components/server/files/UploadButton';
  1223.  
  1224. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:15:31
  1225. TS2307: Cannot find module '@/plugins/useFileManagerSwr' or its corresponding type declarations.
  1226. 13 | import Button from '@/components/elements/Button';
  1227. 14 | import { ServerContext } from '@/state/server';
  1228. > 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
  1229. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1230. 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
  1231. 17 | import UploadButton from '@/components/server/files/UploadButton';
  1232. 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1233.  
  1234. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:16:28
  1235. TS2307: Cannot find module '@/components/server/files/MassActionsBar' or its corresponding type declarations.
  1236. 14 | import { ServerContext } from '@/state/server';
  1237. 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
  1238. > 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
  1239. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1240. 17 | import UploadButton from '@/components/server/files/UploadButton';
  1241. 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1242. 19 | import { useStoreActions } from '@/state/hooks';
  1243.  
  1244. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:17:26
  1245. TS2307: Cannot find module '@/components/server/files/UploadButton' or its corresponding type declarations.
  1246. 15 | import useFileManagerSwr from '@/plugins/useFileManagerSwr';
  1247. 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
  1248. > 17 | import UploadButton from '@/components/server/files/UploadButton';
  1249. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1250. 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1251. 19 | import { useStoreActions } from '@/state/hooks';
  1252. 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  1253.  
  1254. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:18:32
  1255. TS2307: Cannot find module '@/components/elements/ServerContentBlock' or its corresponding type declarations.
  1256. 16 | import MassActionsBar from '@/components/server/files/MassActionsBar';
  1257. 17 | import UploadButton from '@/components/server/files/UploadButton';
  1258. > 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1259. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1260. 19 | import { useStoreActions } from '@/state/hooks';
  1261. 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  1262. 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
  1263.  
  1264. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:19:33
  1265. TS2307: Cannot find module '@/state/hooks' or its corresponding type declarations.
  1266. 17 | import UploadButton from '@/components/server/files/UploadButton';
  1267. 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1268. > 19 | import { useStoreActions } from '@/state/hooks';
  1269. | ^^^^^^^^^^^^^^^
  1270. 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  1271. 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
  1272. 22 | import { hashToPath } from '@/helpers';
  1273.  
  1274. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:20:27
  1275. TS2307: Cannot find module '@/components/elements/ErrorBoundary' or its corresponding type declarations.
  1276. 18 | import ServerContentBlock from '@/components/elements/ServerContentBlock';
  1277. 19 | import { useStoreActions } from '@/state/hooks';
  1278. > 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  1279. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1280. 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
  1281. 22 | import { hashToPath } from '@/helpers';
  1282. 23 |
  1283.  
  1284. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:21:36
  1285. TS2307: Cannot find module '@/components/server/files/SelectFileCheckbox' or its corresponding type declarations.
  1286. 19 | import { useStoreActions } from '@/state/hooks';
  1287. 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  1288. > 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
  1289. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1290. 22 | import { hashToPath } from '@/helpers';
  1291. 23 |
  1292. 24 | const sortFiles = (files: FileObject[]): FileObject[] => {
  1293.  
  1294. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:22:28
  1295. TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
  1296. 20 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  1297. 21 | import { FileActionCheckbox } from '@/components/server/files/SelectFileCheckbox';
  1298. > 22 | import { hashToPath } from '@/helpers';
  1299. | ^^^^^^^^^^^
  1300. 23 |
  1301. 24 | const sortFiles = (files: FileObject[]): FileObject[] => {
  1302. 25 | return files.sort((a, b) => a.name.localeCompare(b.name))
  1303.  
  1304. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:30:44
  1305. TS7006: Parameter 'state' implicitly has an 'any' type.
  1306. 28 |
  1307. 29 | export default () => {
  1308. > 30 | const id = ServerContext.useStoreState(state => state.server.data!.id);
  1309. | ^^^^^
  1310. 31 | const { hash } = useLocation();
  1311. 32 | const { data: files, error, mutate } = useFileManagerSwr();
  1312. 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
  1313.  
  1314. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:33:51
  1315. TS7006: Parameter 'state' implicitly has an 'any' type.
  1316. 31 | const { hash } = useLocation();
  1317. 32 | const { data: files, error, mutate } = useFileManagerSwr();
  1318. > 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
  1319. | ^^^^^
  1320. 34 | const clearFlashes = useStoreActions(actions => actions.flashes.clearFlashes);
  1321. 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
  1322. 36 |
  1323.  
  1324. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:34:42
  1325. TS7006: Parameter 'actions' implicitly has an 'any' type.
  1326. 32 | const { data: files, error, mutate } = useFileManagerSwr();
  1327. 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
  1328. > 34 | const clearFlashes = useStoreActions(actions => actions.flashes.clearFlashes);
  1329. | ^^^^^^^
  1330. 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
  1331. 36 |
  1332. 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
  1333.  
  1334. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:35:56
  1335. TS7006: Parameter 'actions' implicitly has an 'any' type.
  1336. 33 | const directory = ServerContext.useStoreState(state => state.files.directory);
  1337. 34 | const clearFlashes = useStoreActions(actions => actions.flashes.clearFlashes);
  1338. > 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
  1339. | ^^^^^^^
  1340. 36 |
  1341. 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
  1342. 38 | const selectedFilesLength = ServerContext.useStoreState(state => state.files.selectedFiles.length);
  1343.  
  1344. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:37:60
  1345. TS7006: Parameter 'actions' implicitly has an 'any' type.
  1346. 35 | const setDirectory = ServerContext.useStoreActions(actions => actions.files.setDirectory);
  1347. 36 |
  1348. > 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
  1349. | ^^^^^^^
  1350. 38 | const selectedFilesLength = ServerContext.useStoreState(state => state.files.selectedFiles.length);
  1351. 39 |
  1352. 40 | useEffect(() => {
  1353.  
  1354. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:38:61
  1355. TS7006: Parameter 'state' implicitly has an 'any' type.
  1356. 36 |
  1357. 37 | const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
  1358. > 38 | const selectedFilesLength = ServerContext.useStoreState(state => state.files.selectedFiles.length);
  1359. | ^^^^^
  1360. 39 |
  1361. 40 | useEffect(() => {
  1362. 41 | clearFlashes('files');
  1363.  
  1364. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:51:64
  1365. TS7006: Parameter 'file' implicitly has an 'any' type.
  1366. 49 |
  1367. 50 | const onSelectAllClick = (e: React.ChangeEvent<HTMLInputElement>) => {
  1368. > 51 | setSelectedFiles(e.currentTarget.checked ? (files?.map(file => file.name) || []) : []);
  1369. | ^^^^
  1370. 52 | };
  1371. 53 |
  1372. 54 | if (error) {
  1373.  
  1374. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:62:18
  1375. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1376. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1377. 60 | return (
  1378. 61 | <ServerContentBlock title={'File Manager'} showFlashKey={'files'}>
  1379. > 62 | <div css={tw`flex flex-wrap-reverse md:flex-nowrap justify-center mb-4`}>
  1380. | ^^^
  1381. 63 | <ErrorBoundary>
  1382. 64 | <FileManagerBreadcrumbs
  1383. 65 | renderLeft={
  1384.  
  1385. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:77:30
  1386. TS2322: Type '{ children: Element[]; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1387. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1388. 75 | <Can action={'file.create'}>
  1389. 76 | <ErrorBoundary>
  1390. > 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`}>
  1391. | ^^^
  1392. 78 | <NewDirectoryButton css={tw`w-full flex-none mt-4 sm:mt-0 sm:w-auto sm:mr-4`}/>
  1393. 79 | <UploadButton css={tw`flex-1 mr-4 sm:flex-none sm:mt-0`}/>
  1394. 80 | <NavLink
  1395.  
  1396. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:82:33
  1397. TS2769: No overload matches this call.
  1398. Overload 1 of 2, '(props: Readonly<NavLinkProps<any>>): NavLink<any>', gave the following error.
  1399. Type '{ children: Element; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1400. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1401. Overload 2 of 2, '(props: NavLinkProps<any>, context?: any): NavLink<any>', gave the following error.
  1402. Type '{ children: Element; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1403. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1404. 80 | <NavLink
  1405. 81 | to={`/server/${id}/files/new${window.location.hash}`}
  1406. > 82 | css={tw`flex-1 sm:flex-none sm:mt-0`}
  1407. | ^^^
  1408. 83 | >
  1409. 84 | <Button css={tw`w-full`}>
  1410. 85 | New File
  1411.  
  1412. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:98:32
  1413. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1414. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1415. 96 | <div className="fileManager">
  1416. 97 | {!files.length ?
  1417. > 98 | <p css={tw`text-sm text-neutral-400 text-center`}>
  1418. | ^^^
  1419. 99 | This directory seems to be empty.
  1420. 100 | </p>
  1421. 101 | :
  1422.  
  1423. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:104:42
  1424. TS2322: Type '{ children: Element; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1425. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1426. 102 | <div>
  1427. 103 | {files.length > 250 &&
  1428. > 104 | <div css={tw`rounded bg-yellow-400 mb-px p-3`}>
  1429. | ^^^
  1430. 105 | <p css={tw`text-yellow-900 text-sm text-center`}>
  1431. 106 | This directory is too large to display in the browser,
  1432. 107 | limiting the output to the first 250 files.
  1433.  
  1434. ERROR in resources/scripts/components/server/files/FileManagerContainer.tsx:105:44
  1435. TS2322: Type '{ children: string; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1436. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>'.
  1437. 103 | {files.length > 250 &&
  1438. 104 | <div css={tw`rounded bg-yellow-400 mb-px p-3`}>
  1439. > 105 | <p css={tw`text-yellow-900 text-sm text-center`}>
  1440. | ^^^
  1441. 106 | This directory is too large to display in the browser,
  1442. 107 | limiting the output to the first 250 files.
  1443. 108 | </p>
  1444.  
  1445. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:3:50
  1446. TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
  1447. 1 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  1448. 2 | import { faFileAlt, faFileArchive, faFileImport, faFolder } from '@fortawesome/free-solid-svg-icons';
  1449. > 3 | import { bytesToHuman, encodePathSegments } from '@/helpers';
  1450. | ^^^^^^^^^^^
  1451. 4 | import { differenceInHours, format, formatDistanceToNow } from 'date-fns';
  1452. 5 | import React, { memo } from 'react';
  1453. 6 | import { FileObject } from '@/api/server/files/loadDirectory';
  1454.  
  1455. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:6:28
  1456. TS2307: Cannot find module '@/api/server/files/loadDirectory' or its corresponding type declarations.
  1457. 4 | import { differenceInHours, format, formatDistanceToNow } from 'date-fns';
  1458. 5 | import React, { memo } from 'react';
  1459. > 6 | import { FileObject } from '@/api/server/files/loadDirectory';
  1460. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1461. 7 | import FileDropdownMenu from '@/components/server/files/FileDropdownMenu';
  1462. 8 | import { ServerContext } from '@/state/server';
  1463. 9 | import { NavLink, useRouteMatch } from 'react-router-dom';
  1464.  
  1465. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:7:30
  1466. TS2307: Cannot find module '@/components/server/files/FileDropdownMenu' or its corresponding type declarations.
  1467. 5 | import React, { memo } from 'react';
  1468. 6 | import { FileObject } from '@/api/server/files/loadDirectory';
  1469. > 7 | import FileDropdownMenu from '@/components/server/files/FileDropdownMenu';
  1470. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1471. 8 | import { ServerContext } from '@/state/server';
  1472. 9 | import { NavLink, useRouteMatch } from 'react-router-dom';
  1473. 10 | import tw from 'twin.macro';
  1474.  
  1475. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:8:31
  1476. TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
  1477. 6 | import { FileObject } from '@/api/server/files/loadDirectory';
  1478. 7 | import FileDropdownMenu from '@/components/server/files/FileDropdownMenu';
  1479. > 8 | import { ServerContext } from '@/state/server';
  1480. | ^^^^^^^^^^^^^^^^
  1481. 9 | import { NavLink, useRouteMatch } from 'react-router-dom';
  1482. 10 | import tw from 'twin.macro';
  1483. 11 | import isEqual from 'react-fast-compare';
  1484.  
  1485. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:13:32
  1486. TS2307: Cannot find module '@/components/server/files/SelectFileCheckbox' or its corresponding type declarations.
  1487. 11 | import isEqual from 'react-fast-compare';
  1488. 12 | import styled from 'styled-components/macro';
  1489. > 13 | import SelectFileCheckbox from '@/components/server/files/SelectFileCheckbox';
  1490. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1491. 14 | import { usePermissions } from '@/plugins/usePermissions';
  1492. 15 | import { join } from 'path';
  1493. 16 |
  1494.  
  1495. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:14:32
  1496. TS2307: Cannot find module '@/plugins/usePermissions' or its corresponding type declarations.
  1497. 12 | import styled from 'styled-components/macro';
  1498. 13 | import SelectFileCheckbox from '@/components/server/files/SelectFileCheckbox';
  1499. > 14 | import { usePermissions } from '@/plugins/usePermissions';
  1500. | ^^^^^^^^^^^^^^^^^^^^^^^^^^
  1501. 15 | import { join } from 'path';
  1502. 16 |
  1503. 17 | const Row = styled.div`
  1504.  
  1505. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:23:51
  1506. TS7006: Parameter 'state' implicitly has an 'any' type.
  1507. 21 | const Clickable: React.FC<{ file: FileObject }> = memo(({ file, children }) => {
  1508. 22 | const [ canReadContents ] = usePermissions([ 'file.read-content' ]);
  1509. > 23 | const directory = ServerContext.useStoreState(state => state.files.directory);
  1510. | ^^^^^
  1511. 24 |
  1512. 25 | const match = useRouteMatch();
  1513. 26 |
  1514.  
  1515. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:29:18
  1516. TS2322: Type '{ children: ReactNode; css: TwStyle; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1517. Property 'css' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  1518. 27 | return (
  1519. 28 | (!canReadContents || (file.isFile && !file.isEditable())) ?
  1520. > 29 | <div css={tw`flex flex-1 text-neutral-300 no-underline p-3 cursor-default overflow-hidden truncate`}>
  1521. | ^^^
  1522. 30 | {children}
  1523. 31 | </div>
  1524. 32 | :
  1525.  
  1526. ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:35:17
  1527. TS2769: No overload matches this call.
  1528. Overload 1 of 2, '(props: Readonly<NavLinkProps<any>>): NavLink<any>', gave the following error.
  1529. Type '{ children: ReactNode; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1530. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1531. Overload 2 of 2, '(props: NavLinkProps<any>, context?: any): NavLink<any>', gave the following error.
  1532. Type '{ children: ReactNode; to: string; css: TwStyle; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1533. Property 'css' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<NavLink<any>> & Readonly<NavLinkProps<any>> & Readonly<...>'.
  1534. 33 | <NavLink
  1535. 34 | to={`${match.url}${file.isFile ? '/edit' : ''}#${encodePathSegments(join(directory, file.name))}`}
  1536. > 35 | css={tw`flex flex-1 text-neutral-300 no-underline p-3 overflow-hidden truncate`}
  1537. | ^^^
  1538. 36 | >
  1539. 37 | {children}
  1540. 38 | </NavLink>
  1541.  
  1542. ERROR in resources/scripts/components/server/PowerControls.tsx:3:17
  1543. TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations.
  1544. 1 | import React from 'react';
  1545. 2 | import tw from 'twin.macro';
  1546. > 3 | import Can from '@/components/elements/Can';
  1547. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1548. 4 | import Button from '@/components/elements/Button';
  1549. 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
  1550. 6 | import { PowerAction } from '@/components/server/ServerConsole';
  1551.  
  1552. ERROR in resources/scripts/components/server/PowerControls.tsx:4:20
  1553. TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
  1554. 2 | import tw from 'twin.macro';
  1555. 3 | import Can from '@/components/elements/Can';
  1556. > 4 | import Button from '@/components/elements/Button';
  1557. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1558. 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
  1559. 6 | import { PowerAction } from '@/components/server/ServerConsole';
  1560. 7 | import { ServerContext } from '@/state/server';
  1561.  
  1562. ERROR in resources/scripts/components/server/PowerControls.tsx:6:29
  1563. TS2307: Cannot find module '@/components/server/ServerConsole' or its corresponding type declarations.
  1564. 4 | import Button from '@/components/elements/Button';
  1565. 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
  1566. > 6 | import { PowerAction } from '@/components/server/ServerConsole';
  1567. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1568. 7 | import { ServerContext } from '@/state/server';
  1569. 8 |
  1570. 9 | const PowerControls = () => {
  1571.  
  1572. ERROR in resources/scripts/components/server/PowerControls.tsx:7:31
  1573. TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
  1574. 5 | import StopOrKillButton from '@/components/server/StopOrKillButton';
  1575. 6 | import { PowerAction } from '@/components/server/ServerConsole';
  1576. > 7 | import { ServerContext } from '@/state/server';
  1577. | ^^^^^^^^^^^^^^^^
  1578. 8 |
  1579. 9 | const PowerControls = () => {
  1580. 10 | const status = ServerContext.useStoreState(state => state.status.value);
  1581.  
  1582. ERROR in resources/scripts/components/server/PowerControls.tsx:10:48
  1583. TS7006: Parameter 'state' implicitly has an 'any' type.
  1584. 8 |
  1585. 9 | const PowerControls = () => {
  1586. > 10 | const status = ServerContext.useStoreState(state => state.status.value);
  1587. | ^^^^^
  1588. 11 | const instance = ServerContext.useStoreState(state => state.socket.instance);
  1589. 12 |
  1590. 13 | const sendPowerCommand = (command: PowerAction) => {
  1591.  
  1592. ERROR in resources/scripts/components/server/PowerControls.tsx:11:50
  1593. TS7006: Parameter 'state' implicitly has an 'any' type.
  1594. 9 | const PowerControls = () => {
  1595. 10 | const status = ServerContext.useStoreState(state => state.status.value);
  1596. > 11 | const instance = ServerContext.useStoreState(state => state.socket.instance);
  1597. | ^^^^^
  1598. 12 |
  1599. 13 | const sendPowerCommand = (command: PowerAction) => {
  1600. 14 | instance && instance.send('set state', command);
  1601.  
  1602. ERROR in resources/scripts/components/server/PowerControls.tsx:26:30
  1603. TS7006: Parameter 'e' implicitly has an 'any' type.
  1604. 24 | className='first'
  1605. 25 | disabled={status !== 'offline'}
  1606. > 26 | onClick={e => {
  1607. | ^
  1608. 27 | e.preventDefault();
  1609. 28 | sendPowerCommand('start');
  1610. 29 | }}
  1611.  
  1612. ERROR in resources/scripts/components/server/PowerControls.tsx:40:30
  1613. TS7006: Parameter 'e' implicitly has an 'any' type.
  1614. 38 | className='second'
  1615. 39 | disabled={!status}
  1616. > 40 | onClick={e => {
  1617. | ^
  1618. 41 | e.preventDefault();
  1619. 42 | sendPowerCommand('restart');
  1620. 43 | }}
  1621.  
  1622. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:48
  1623. TS2307: Cannot find module '@/helpers' or its corresponding type declarations.
  1624. 3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons';
  1625. 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  1626. > 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
  1627. | ^^^^^^^^^^^
  1628. 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  1629. 7 | import { ServerContext } from '@/state/server';
  1630. 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  1631.  
  1632. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:6:27
  1633. TS2307: Cannot find module '@/components/elements/TitledGreyBox' or its corresponding type declarations.
  1634. 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  1635. 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
  1636. > 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  1637. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1638. 7 | import { ServerContext } from '@/state/server';
  1639. 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  1640. 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
  1641.  
  1642. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:7:31
  1643. TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
  1644. 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
  1645. 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  1646. > 7 | import { ServerContext } from '@/state/server';
  1647. | ^^^^^^^^^^^^^^^^
  1648. 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  1649. 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
  1650. 10 | import UptimeDuration from '@/components/server/UptimeDuration';
  1651.  
  1652. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:8:25
  1653. TS2307: Cannot find module '@/components/elements/CopyOnClick' or its corresponding type declarations.
  1654. 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  1655. 7 | import { ServerContext } from '@/state/server';
  1656. > 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  1657. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1658. 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
  1659. 10 | import UptimeDuration from '@/components/server/UptimeDuration';
  1660. 11 |
  1661.  
  1662. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:9:44
  1663. TS2307: Cannot find module '@/components/server/events' or its corresponding type declarations.
  1664. 7 | import { ServerContext } from '@/state/server';
  1665. 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  1666. > 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
  1667. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1668. 10 | import UptimeDuration from '@/components/server/UptimeDuration';
  1669. 11 |
  1670. 12 | interface Stats {
  1671.  
  1672. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:10:28
  1673. TS2307: Cannot find module '@/components/server/UptimeDuration' or its corresponding type declarations.
  1674. 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  1675. 9 | import { SocketEvent, SocketRequest } from '@/components/server/events';
  1676. > 10 | import UptimeDuration from '@/components/server/UptimeDuration';
  1677. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1678. 11 |
  1679. 12 | interface Stats {
  1680. 13 | memory: number;
  1681.  
  1682. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:37:48
  1683. TS7006: Parameter 'state' implicitly has an 'any' type.
  1684. 35 | const [ stats, setStats ] = useState<Stats>({ memory: 0, cpu: 0, disk: 0, uptime: 0 });
  1685. 36 |
  1686. > 37 | const status = ServerContext.useStoreState(state => state.status.value);
  1687. | ^^^^^
  1688. 38 | const connected = ServerContext.useStoreState(state => state.socket.connected);
  1689. 39 | const instance = ServerContext.useStoreState(state => state.socket.instance);
  1690. 40 |
  1691.  
  1692. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:38:51
  1693. TS7006: Parameter 'state' implicitly has an 'any' type.
  1694. 36 |
  1695. 37 | const status = ServerContext.useStoreState(state => state.status.value);
  1696. > 38 | const connected = ServerContext.useStoreState(state => state.socket.connected);
  1697. | ^^^^^
  1698. 39 | const instance = ServerContext.useStoreState(state => state.socket.instance);
  1699. 40 |
  1700. 41 | const statsListener = (data: string) => {
  1701.  
  1702. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:39:50
  1703. TS7006: Parameter 'state' implicitly has an 'any' type.
  1704. 37 | const status = ServerContext.useStoreState(state => state.status.value);
  1705. 38 | const connected = ServerContext.useStoreState(state => state.socket.connected);
  1706. > 39 | const instance = ServerContext.useStoreState(state => state.socket.instance);
  1707. | ^^^^^
  1708. 40 |
  1709. 41 | const statsListener = (data: string) => {
  1710. 42 | let stats: any = {};
  1711.  
  1712. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:70:46
  1713. TS7006: Parameter 'state' implicitly has an 'any' type.
  1714. 68 | }, [ instance, connected ]);
  1715. 69 |
  1716. > 70 | const name = ServerContext.useStoreState(state => state.server.data!.name);
  1717. | ^^^^^
  1718. 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
  1719. 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  1720. 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  1721.  
  1722. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:71:54
  1723. TS7006: Parameter 'state' implicitly has an 'any' type.
  1724. 69 |
  1725. 70 | const name = ServerContext.useStoreState(state => state.server.data!.name);
  1726. > 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
  1727. | ^^^^^
  1728. 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  1729. 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  1730. 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
  1731.  
  1732. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:72:56
  1733. TS7006: Parameter 'state' implicitly has an 'any' type.
  1734. 70 | const name = ServerContext.useStoreState(state => state.server.data!.name);
  1735. 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
  1736. > 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  1737. | ^^^^^
  1738. 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  1739. 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
  1740. 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
  1741.  
  1742. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:73:48
  1743. TS7006: Parameter 'state' implicitly has an 'any' type.
  1744. 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
  1745. 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  1746. > 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  1747. | ^^^^^
  1748. 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
  1749. 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
  1750. 76 | )).toString();
  1751.  
  1752. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:74:59
  1753. TS7006: Parameter 'state' implicitly has an 'any' type.
  1754. 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  1755. 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  1756. > 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
  1757. | ^^^^^
  1758. 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
  1759. 76 | )).toString();
  1760. 77 |
  1761.  
  1762. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:74:106
  1763. TS7006: Parameter 'alloc' implicitly has an 'any' type.
  1764. 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  1765. 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  1766. > 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
  1767. | ^^^^^
  1768. 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
  1769. 76 | )).toString();
  1770. 77 |
  1771.  
  1772. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:75:9
  1773. TS7006: Parameter 'allocation' implicitly has an 'any' type.
  1774. 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  1775. 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
  1776. > 75 | allocation => (allocation.alias || allocation.ip) + ':' + allocation.port,
  1777. | ^^^^^^^^^^
  1778. 76 | )).toString();
  1779. 77 |
  1780. 78 | const diskLimit = limits.disk ? megabytesToHuman(limits.disk) : 'Unlimited';
  1781.  
  1782. ERROR in resources/scripts/components/server/StopOrKillButton.tsx:2:31
  1783. TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
  1784. 1 | import React, { memo, useEffect, useState } from 'react';
  1785. > 2 | import { ServerContext } from '@/state/server';
  1786. | ^^^^^^^^^^^^^^^^
  1787. 3 | import { PowerAction } from '@/components/server/ServerConsole';
  1788. 4 | import Button from '@/components/elements/Button';
  1789. 5 | import isEqual from 'react-fast-compare';
  1790.  
  1791. ERROR in resources/scripts/components/server/StopOrKillButton.tsx:3:29
  1792. TS2307: Cannot find module '@/components/server/ServerConsole' or its corresponding type declarations.
  1793. 1 | import React, { memo, useEffect, useState } from 'react';
  1794. 2 | import { ServerContext } from '@/state/server';
  1795. > 3 | import { PowerAction } from '@/components/server/ServerConsole';
  1796. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1797. 4 | import Button from '@/components/elements/Button';
  1798. 5 | import isEqual from 'react-fast-compare';
  1799. 6 |
  1800.  
  1801. ERROR in resources/scripts/components/server/StopOrKillButton.tsx:4:20
  1802. TS2307: Cannot find module '@/components/elements/Button' or its corresponding type declarations.
  1803. 2 | import { ServerContext } from '@/state/server';
  1804. 3 | import { PowerAction } from '@/components/server/ServerConsole';
  1805. > 4 | import Button from '@/components/elements/Button';
  1806. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1807. 5 | import isEqual from 'react-fast-compare';
  1808. 6 |
  1809. 7 | const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void }) => {
  1810.  
  1811. ERROR in resources/scripts/components/server/StopOrKillButton.tsx:9:48
  1812. TS7006: Parameter 'state' implicitly has an 'any' type.
  1813. 7 | const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void }) => {
  1814. 8 | const [ clicked, setClicked ] = useState(false);
  1815. > 9 | const status = ServerContext.useStoreState(state => state.status.value);
  1816. | ^^^^^
  1817. 10 |
  1818. 11 | useEffect(() => {
  1819. 12 | setClicked(status === 'stopping');
  1820.  
  1821. ERROR in resources/scripts/components/server/StopOrKillButton.tsx:21:22
  1822. TS7006: Parameter 'e' implicitly has an 'any' type.
  1823. 19 | disabled={!status || status === 'offline'}
  1824. 20 | className='third'
  1825. > 21 | onClick={e => {
  1826. | ^
  1827. 22 | e.preventDefault();
  1828. 23 | onPress(clicked ? 'kill' : 'stop');
  1829. 24 | setClicked(true);
  1830.  
  1831. ERROR in resources/scripts/routers/ServerRouter.tsx:1:30
  1832. TS2307: Cannot find module '@/components/server/TransferListener' or its corresponding type declarations.
  1833. > 1 | import TransferListener from '@/components/server/TransferListener';
  1834. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1835. 2 | import React, { useEffect, useState } from 'react';
  1836. 3 | import { NavLink, Route, Switch, useRouteMatch } from 'react-router-dom';
  1837. 4 | import NavigationBar from '@/components/NavigationBar';
  1838.  
  1839. ERROR in resources/scripts/routers/ServerRouter.tsx:5:27
  1840. TS2307: Cannot find module '@/components/server/ServerConsole' or its corresponding type declarations.
  1841. 3 | import { NavLink, Route, Switch, useRouteMatch } from 'react-router-dom';
  1842. 4 | import NavigationBar from '@/components/NavigationBar';
  1843. > 5 | import ServerConsole from '@/components/server/ServerConsole';
  1844. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1845. 6 | import TransitionRouter from '@/TransitionRouter';
  1846. 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
  1847. 8 | import { ServerContext } from '@/state/server';
  1848.  
  1849. ERROR in resources/scripts/routers/ServerRouter.tsx:6:30
  1850. TS2307: Cannot find module '@/TransitionRouter' or its corresponding type declarations.
  1851. 4 | import NavigationBar from '@/components/NavigationBar';
  1852. 5 | import ServerConsole from '@/components/server/ServerConsole';
  1853. > 6 | import TransitionRouter from '@/TransitionRouter';
  1854. | ^^^^^^^^^^^^^^^^^^^^
  1855. 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
  1856. 8 | import { ServerContext } from '@/state/server';
  1857. 9 | import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
  1858.  
  1859. ERROR in resources/scripts/routers/ServerRouter.tsx:7:30
  1860. TS2307: Cannot find module '@/components/server/WebsocketHandler' or its corresponding type declarations.
  1861. 5 | import ServerConsole from '@/components/server/ServerConsole';
  1862. 6 | import TransitionRouter from '@/TransitionRouter';
  1863. > 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
  1864. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1865. 8 | import { ServerContext } from '@/state/server';
  1866. 9 | import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
  1867. 10 | import FileManagerContainer from '@/components/server/files/FileManagerContainer';
  1868.  
  1869. ERROR in resources/scripts/routers/ServerRouter.tsx:8:31
  1870. TS2307: Cannot find module '@/state/server' or its corresponding type declarations.
  1871. 6 | import TransitionRouter from '@/TransitionRouter';
  1872. 7 | import WebsocketHandler from '@/components/server/WebsocketHandler';
  1873. > 8 | import { ServerContext } from '@/state/server';
  1874. | ^^^^^^^^^^^^^^^^
  1875. 9 | import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
  1876. 10 | import FileManagerContainer from '@/components/server/files/FileManagerContainer';
  1877. 11 | import { CSSTransition } from 'react-transition-group';
  1878.  
  1879. ERROR in resources/scripts/routers/ServerRouter.tsx:12:31
  1880. TS2307: Cannot find module '@/components/server/files/FileEditContainer' or its corresponding type declarations.
  1881. 10 | import FileManagerContainer from '@/components/server/files/FileManagerContainer';
  1882. 11 | import { CSSTransition } from 'react-transition-group';
  1883. > 12 | import FileEditContainer from '@/components/server/files/FileEditContainer';
  1884. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1885. 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
  1886. 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
  1887. 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
  1888.  
  1889. ERROR in resources/scripts/routers/ServerRouter.tsx:13:31
  1890. TS2307: Cannot find module '@/components/server/settings/SettingsContainer' or its corresponding type declarations.
  1891. 11 | import { CSSTransition } from 'react-transition-group';
  1892. 12 | import FileEditContainer from '@/components/server/files/FileEditContainer';
  1893. > 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
  1894. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1895. 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
  1896. 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
  1897. 16 | import UsersContainer from '@/components/server/users/UsersContainer';
  1898.  
  1899. ERROR in resources/scripts/routers/ServerRouter.tsx:14:31
  1900. TS2307: Cannot find module '@/components/server/schedules/ScheduleContainer' or its corresponding type declarations.
  1901. 12 | import FileEditContainer from '@/components/server/files/FileEditContainer';
  1902. 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
  1903. > 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
  1904. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1905. 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
  1906. 16 | import UsersContainer from '@/components/server/users/UsersContainer';
  1907. 17 | import Can from '@/components/elements/Can';
  1908.  
  1909. ERROR in resources/scripts/routers/ServerRouter.tsx:15:35
  1910. TS2307: Cannot find module '@/components/server/schedules/ScheduleEditContainer' or its corresponding type declarations.
  1911. 13 | import SettingsContainer from '@/components/server/settings/SettingsContainer';
  1912. 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
  1913. > 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
  1914. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1915. 16 | import UsersContainer from '@/components/server/users/UsersContainer';
  1916. 17 | import Can from '@/components/elements/Can';
  1917. 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
  1918.  
  1919. ERROR in resources/scripts/routers/ServerRouter.tsx:16:28
  1920. TS2307: Cannot find module '@/components/server/users/UsersContainer' or its corresponding type declarations.
  1921. 14 | import ScheduleContainer from '@/components/server/schedules/ScheduleContainer';
  1922. 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
  1923. > 16 | import UsersContainer from '@/components/server/users/UsersContainer';
  1924. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1925. 17 | import Can from '@/components/elements/Can';
  1926. 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
  1927. 19 | import Spinner from '@/components/elements/Spinner';
  1928.  
  1929. ERROR in resources/scripts/routers/ServerRouter.tsx:17:17
  1930. TS2307: Cannot find module '@/components/elements/Can' or its corresponding type declarations.
  1931. 15 | import ScheduleEditContainer from '@/components/server/schedules/ScheduleEditContainer';
  1932. 16 | import UsersContainer from '@/components/server/users/UsersContainer';
  1933. > 17 | import Can from '@/components/elements/Can';
  1934. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1935. 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
  1936. 19 | import Spinner from '@/components/elements/Spinner';
  1937. 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
  1938.  
  1939. ERROR in resources/scripts/routers/ServerRouter.tsx:18:29
  1940. TS2307: Cannot find module '@/components/server/backups/BackupContainer' or its corresponding type declarations.
  1941. 16 | import UsersContainer from '@/components/server/users/UsersContainer';
  1942. 17 | import Can from '@/components/elements/Can';
  1943. > 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
  1944. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1945. 19 | import Spinner from '@/components/elements/Spinner';
  1946. 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
  1947. 21 | import { httpErrorToHuman } from '@/api/http';
  1948.  
  1949. ERROR in resources/scripts/routers/ServerRouter.tsx:19:21
  1950. TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations.
  1951. 17 | import Can from '@/components/elements/Can';
  1952. 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
  1953. > 19 | import Spinner from '@/components/elements/Spinner';
  1954. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1955. 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
  1956. 21 | import { httpErrorToHuman } from '@/api/http';
  1957. 22 | import { useStoreState } from 'easy-peasy';
  1958.  
  1959. ERROR in resources/scripts/routers/ServerRouter.tsx:20:52
  1960. TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations.
  1961. 18 | import BackupContainer from '@/components/server/backups/BackupContainer';
  1962. 19 | import Spinner from '@/components/elements/Spinner';
  1963. > 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
  1964. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1965. 21 | import { httpErrorToHuman } from '@/api/http';
  1966. 22 | import { useStoreState } from 'easy-peasy';
  1967. 23 | import SubNavigation from '@/components/elements/SubNavigation';
  1968.  
  1969. ERROR in resources/scripts/routers/ServerRouter.tsx:21:34
  1970. TS2307: Cannot find module '@/api/http' or its corresponding type declarations.
  1971. 19 | import Spinner from '@/components/elements/Spinner';
  1972. 20 | import ScreenBlock, { NotFound, ServerError } from '@/components/elements/ScreenBlock';
  1973. > 21 | import { httpErrorToHuman } from '@/api/http';
  1974. | ^^^^^^^^^^^^
  1975. 22 | import { useStoreState } from 'easy-peasy';
  1976. 23 | import SubNavigation from '@/components/elements/SubNavigation';
  1977. 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
  1978.  
  1979. ERROR in resources/scripts/routers/ServerRouter.tsx:23:27
  1980. TS2307: Cannot find module '@/components/elements/SubNavigation' or its corresponding type declarations.
  1981. 21 | import { httpErrorToHuman } from '@/api/http';
  1982. 22 | import { useStoreState } from 'easy-peasy';
  1983. > 23 | import SubNavigation from '@/components/elements/SubNavigation';
  1984. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1985. 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
  1986. 25 | import InstallListener from '@/components/server/InstallListener';
  1987. 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
  1988.  
  1989. ERROR in resources/scripts/routers/ServerRouter.tsx:24:30
  1990. TS2307: Cannot find module '@/components/server/network/NetworkContainer' or its corresponding type declarations.
  1991. 22 | import { useStoreState } from 'easy-peasy';
  1992. 23 | import SubNavigation from '@/components/elements/SubNavigation';
  1993. > 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
  1994. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1995. 25 | import InstallListener from '@/components/server/InstallListener';
  1996. 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
  1997. 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  1998.  
  1999. ERROR in resources/scripts/routers/ServerRouter.tsx:25:29
  2000. TS2307: Cannot find module '@/components/server/InstallListener' or its corresponding type declarations.
  2001. 23 | import SubNavigation from '@/components/elements/SubNavigation';
  2002. 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
  2003. > 25 | import InstallListener from '@/components/server/InstallListener';
  2004. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2005. 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
  2006. 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  2007. 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  2008.  
  2009. ERROR in resources/scripts/routers/ServerRouter.tsx:26:30
  2010. TS2307: Cannot find module '@/components/server/startup/StartupContainer' or its corresponding type declarations.
  2011. 24 | import NetworkContainer from '@/components/server/network/NetworkContainer';
  2012. 25 | import InstallListener from '@/components/server/InstallListener';
  2013. > 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
  2014. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2015. 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  2016. 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  2017. 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
  2018.  
  2019. ERROR in resources/scripts/routers/ServerRouter.tsx:27:27
  2020. TS2307: Cannot find module '@/components/elements/ErrorBoundary' or its corresponding type declarations.
  2021. 25 | import InstallListener from '@/components/server/InstallListener';
  2022. 26 | import StartupContainer from '@/components/server/startup/StartupContainer';
  2023. > 27 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  2024. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2025. 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  2026. 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
  2027. 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
  2028.  
  2029. ERROR in resources/scripts/routers/ServerRouter.tsx:30:37
  2030. TS2307: Cannot find module '@/hoc/RequireServerPermission' or its corresponding type declarations.
  2031. 28 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  2032. 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
  2033. > 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
  2034. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2035. 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
  2036. 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
  2037. 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
  2038.  
  2039. ERROR in resources/scripts/routers/ServerRouter.tsx:31:30
  2040. TS2307: Cannot find module '@/assets/images/server_installing.svg' or its corresponding type declarations.
  2041. 29 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
  2042. 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
  2043. > 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
  2044. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2045. 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
  2046. 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
  2047. 34 | import { useLocation } from 'react-router';
  2048.  
  2049. ERROR in resources/scripts/routers/ServerRouter.tsx:32:30
  2050. TS2307: Cannot find module '@/assets/images/server_restore.svg' or its corresponding type declarations.
  2051. 30 | import RequireServerPermission from '@/hoc/RequireServerPermission';
  2052. 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
  2053. > 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
  2054. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2055. 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
  2056. 34 | import { useLocation } from 'react-router';
  2057. 35 |
  2058.  
  2059. ERROR in resources/scripts/routers/ServerRouter.tsx:33:28
  2060. TS2307: Cannot find module '@/assets/images/server_error.svg' or its corresponding type declarations.
  2061. 31 | import ServerInstallSvg from '@/assets/images/server_installing.svg';
  2062. 32 | import ServerRestoreSvg from '@/assets/images/server_restore.svg';
  2063. > 33 | import ServerErrorSvg from '@/assets/images/server_error.svg';
  2064. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2065. 34 | import { useLocation } from 'react-router';
  2066. 35 |
  2067. 36 | const ConflictStateRenderer = () => {
  2068.  
  2069. ERROR in resources/scripts/routers/ServerRouter.tsx:37:48
  2070. TS7006: Parameter 'state' implicitly has an 'any' type.
  2071. 35 |
  2072. 36 | const ConflictStateRenderer = () => {
  2073. > 37 | const status = ServerContext.useStoreState(state => state.server.data?.status || null);
  2074. | ^^^^^
  2075. 38 | const isTransferring = ServerContext.useStoreState(state => state.server.data?.isTransferring || false);
  2076. 39 |
  2077. 40 | return (
  2078.  
  2079. ERROR in resources/scripts/routers/ServerRouter.tsx:38:56
  2080. TS7006: Parameter 'state' implicitly has an 'any' type.
  2081. 36 | const ConflictStateRenderer = () => {
  2082. 37 | const status = ServerContext.useStoreState(state => state.server.data?.status || null);
  2083. > 38 | const isTransferring = ServerContext.useStoreState(state => state.server.data?.isTransferring || false);
  2084. | ^^^^^
  2085. 39 |
  2086. 40 | return (
  2087. 41 | status === 'installing' || status === 'install_failed' ?
  2088.  
  2089. ERROR in resources/scripts/routers/ServerRouter.tsx:66:52
  2090. TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'.
  2091. 64 | const match = useRouteMatch<{ id: string }>();
  2092. 65 | const location = useLocation();
  2093. > 66 | const rootAdmin = useStoreState(state => state.user.data!.rootAdmin);
  2094. | ^^^^
  2095. 67 | const [ error, setError ] = useState('');
  2096. 68 |
  2097. 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
  2098.  
  2099. ERROR in resources/scripts/routers/ServerRouter.tsx:69:44
  2100. TS7006: Parameter 'state' implicitly has an 'any' type.
  2101. 67 | const [ error, setError ] = useState('');
  2102. 68 |
  2103. > 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
  2104. | ^^^^^
  2105. 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
  2106. 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
  2107. 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
  2108.  
  2109. ERROR in resources/scripts/routers/ServerRouter.tsx:70:46
  2110. TS7006: Parameter 'state' implicitly has an 'any' type.
  2111. 68 |
  2112. 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
  2113. > 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
  2114. | ^^^^^
  2115. 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
  2116. 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
  2117. 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
  2118.  
  2119. ERROR in resources/scripts/routers/ServerRouter.tsx:71:57
  2120. TS7006: Parameter 'state' implicitly has an 'any' type.
  2121. 69 | const id = ServerContext.useStoreState(state => state.server.data?.id);
  2122. 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
  2123. > 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
  2124. | ^^^^^
  2125. 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
  2126. 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
  2127. 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
  2128.  
  2129. ERROR in resources/scripts/routers/ServerRouter.tsx:72:50
  2130. TS7006: Parameter 'state' implicitly has an 'any' type.
  2131. 70 | const uuid = ServerContext.useStoreState(state => state.server.data?.uuid);
  2132. 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
  2133. > 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
  2134. | ^^^^^
  2135. 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
  2136. 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
  2137. 75 |
  2138.  
  2139. ERROR in resources/scripts/routers/ServerRouter.tsx:73:53
  2140. TS7006: Parameter 'actions' implicitly has an 'any' type.
  2141. 71 | const inConflictState = ServerContext.useStoreState(state => state.server.inConflictState);
  2142. 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
  2143. > 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
  2144. | ^^^^^^^
  2145. 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
  2146. 75 |
  2147. 76 | useEffect(() => () => {
  2148.  
  2149. ERROR in resources/scripts/routers/ServerRouter.tsx:74:60
  2150. TS7006: Parameter 'actions' implicitly has an 'any' type.
  2151. 72 | const serverId = ServerContext.useStoreState(state => state.server.data?.internalId);
  2152. 73 | const getServer = ServerContext.useStoreActions(actions => actions.server.getServer);
  2153. > 74 | const clearServerState = ServerContext.useStoreActions(actions => actions.clearServerState);
  2154. | ^^^^^^^
  2155. 75 |
  2156. 76 | useEffect(() => () => {
  2157. 77 | clearServerState();
  2158.  
  2159. ERROR in resources/scripts/routers/ServerRouter.tsx:84:20
  2160. TS7006: Parameter 'error' implicitly has an 'any' type.
  2161. 82 |
  2162. 83 | getServer(match.params.id)
  2163. > 84 | .catch(error => {
  2164. | ^^^^^
  2165. 85 | console.error(error);
  2166. 86 | setError(httpErrorToHuman(error));
  2167. 87 | });
  2168. error Command failed with exit code 2.
Advertisement
Add Comment
Please, Sign In to add comment