Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:35:29
- TS2349: This expression is not callable.
- Type 'FileUploadData' has no call signatures.
- 33 | const { close } = useContext(DialogWrapperContext);
- 34 | const uploads = ServerContext.useStoreState((state) =>
- > 35 | state.files.uploads.sort((a, b) => a.name.localeCompare(b.name))
- | ^^^^
- 36 | );
- 37 |
- 38 | return (
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:35:35
- TS7006: Parameter 'a' implicitly has an 'any' type.
- 33 | const { close } = useContext(DialogWrapperContext);
- 34 | const uploads = ServerContext.useStoreState((state) =>
- > 35 | state.files.uploads.sort((a, b) => a.name.localeCompare(b.name))
- | ^
- 36 | );
- 37 |
- 38 | return (
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:35:38
- TS7006: Parameter 'b' implicitly has an 'any' type.
- 33 | const { close } = useContext(DialogWrapperContext);
- 34 | const uploads = ServerContext.useStoreState((state) =>
- > 35 | state.files.uploads.sort((a, b) => a.name.localeCompare(b.name))
- | ^
- 36 | );
- 37 |
- 38 | return (
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:40:27
- TS7006: Parameter 'file' implicitly has an 'any' type.
- 38 | return (
- 39 | <div className={'space-y-2 mt-6'}>
- > 40 | {uploads.map((file) => (
- | ^^^^
- 41 | <div key={file.name} className={'flex items-center space-x-3 bg-gray-700 p-3 rounded'}>
- 42 | <Tooltip content={`${Math.floor((file.loaded / file.total) * 100)}%`} placement={'left'}>
- 43 | <div className={'flex-shrink-0'}>
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:67:39
- TS2349: This expression is not callable.
- Type 'FileUploadData' has no call signatures.
- 65 | const count = ServerContext.useStoreState((state) => state.files.uploads.length);
- 66 | const progress = ServerContext.useStoreState((state) => ({
- > 67 | uploaded: state.files.uploads.reduce((count, file) => count + file.loaded, 0),
- | ^^^^^^
- 68 | total: state.files.uploads.reduce((count, file) => count + file.total, 0),
- 69 | }));
- 70 |
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:67:47
- TS7006: Parameter 'count' implicitly has an 'any' type.
- 65 | const count = ServerContext.useStoreState((state) => state.files.uploads.length);
- 66 | const progress = ServerContext.useStoreState((state) => ({
- > 67 | uploaded: state.files.uploads.reduce((count, file) => count + file.loaded, 0),
- | ^^^^^
- 68 | total: state.files.uploads.reduce((count, file) => count + file.total, 0),
- 69 | }));
- 70 |
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:67:54
- TS7006: Parameter 'file' implicitly has an 'any' type.
- 65 | const count = ServerContext.useStoreState((state) => state.files.uploads.length);
- 66 | const progress = ServerContext.useStoreState((state) => ({
- > 67 | uploaded: state.files.uploads.reduce((count, file) => count + file.loaded, 0),
- | ^^^^
- 68 | total: state.files.uploads.reduce((count, file) => count + file.total, 0),
- 69 | }));
- 70 |
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:68:36
- TS2349: This expression is not callable.
- Type 'FileUploadData' has no call signatures.
- 66 | const progress = ServerContext.useStoreState((state) => ({
- 67 | uploaded: state.files.uploads.reduce((count, file) => count + file.loaded, 0),
- > 68 | total: state.files.uploads.reduce((count, file) => count + file.total, 0),
- | ^^^^^^
- 69 | }));
- 70 |
- 71 | useEffect(() => {
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:68:44
- TS7006: Parameter 'count' implicitly has an 'any' type.
- 66 | const progress = ServerContext.useStoreState((state) => ({
- 67 | uploaded: state.files.uploads.reduce((count, file) => count + file.loaded, 0),
- > 68 | total: state.files.uploads.reduce((count, file) => count + file.total, 0),
- | ^^^^^
- 69 | }));
- 70 |
- 71 | useEffect(() => {
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:68:51
- TS7006: Parameter 'file' implicitly has an 'any' type.
- 66 | const progress = ServerContext.useStoreState((state) => ({
- 67 | uploaded: state.files.uploads.reduce((count, file) => count + file.loaded, 0),
- > 68 | total: state.files.uploads.reduce((count, file) => count + file.total, 0),
- | ^^^^
- 69 | }));
- 70 |
- 71 | useEffect(() => {
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:72:13
- TS2367: This condition will always return 'false' since the types 'FileUploadData' and 'number' have no overlap.
- 70 |
- 71 | useEffect(() => {
- > 72 | if (count === 0) {
- | ^^^^^^^^^^^
- 73 | setOpen(false);
- 74 | }
- 75 | }, [count]);
- ERROR in resources/scripts/components/server/files/FileManagerStatus.tsx:79:14
- TS2365: Operator '>' cannot be applied to types 'FileUploadData' and 'number'.
- 77 | return (
- 78 | <>
- > 79 | {count > 0 && (
- | ^^^^^^^^^
- 80 | <Tooltip content={`${count} files are uploading, click to view`}>
- 81 | <button className={'flex items-center justify-center w-10 h-10'} onClick={setOpen.bind(this, true)}>
- 82 | <Spinner progress={(progress.uploaded / progress.total) * 100} className={'w-8 h-8'} />
- ERROR in resources/scripts/components/server/files/UploadButton.tsx:34:31
- TS2339: Property 'appendFileUpload' does not exist on type 'RecursiveActions<ServerFileStore>'.
- 32 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid);
- 33 | const directory = ServerContext.useStoreState((state) => state.files.directory);
- > 34 | const { clearFileUploads, appendFileUpload, removeFileUpload } = ServerContext.useStoreActions(
- | ^^^^^^^^^^^^^^^^
- 35 | (actions) => actions.files
- 36 | );
- 37 |
- ERROR in resources/scripts/state/server/index.ts:33:86
- TS2339: Property 'isNodeUnderMaintenance' does not exist on type 'Server'.
- 31 | }
- 32 |
- > 33 | return state.data.status !== null || state.data.isTransferring || state.data.isNodeUnderMaintenance;
- | ^^^^^^^^^^^^^^^^^^^^^^
- 34 | }),
- 35 |
- 36 | isInstalling: computed((state) => {
- error Command failed with exit code 2.
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- root@vmi900287:/var/www/pterodactyl#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement