ui(server): disable file manager upload, due to library issues

This commit is contained in:
Matthew Penner 2022-11-29 14:39:48 -07:00
parent ee863fa262
commit 209711c826
No known key found for this signature in database
4 changed files with 23 additions and 22 deletions

View file

@ -45,7 +45,7 @@
"@headlessui/react": "1.7.3", "@headlessui/react": "1.7.3",
"@heroicons/react": "1.0.6", "@heroicons/react": "1.0.6",
"@lezer/highlight": "1.1.2", "@lezer/highlight": "1.1.2",
"@preact/signals-react": "1.1.1", "@preact/signals-react": "1.2.1",
"@tailwindcss/forms": "0.5.3", "@tailwindcss/forms": "0.5.3",
"@tailwindcss/line-clamp": "0.4.2", "@tailwindcss/line-clamp": "0.4.2",
"axios": "0.27.2", "axios": "0.27.2",
@ -56,7 +56,7 @@
"date-fns": "2.29.3", "date-fns": "2.29.3",
"debounce": "1.2.1", "debounce": "1.2.1",
"deepmerge-ts": "4.2.2", "deepmerge-ts": "4.2.2",
"easy-peasy": "5.1.0", "easy-peasy": "5.2.0",
"events": "3.3.0", "events": "3.3.0",
"formik": "2.2.9", "formik": "2.2.9",
"framer-motion": "7.6.2", "framer-motion": "7.6.2",

View file

@ -1,21 +1,21 @@
import { Fragment } from 'react';
import MessageBox from '@/components/MessageBox';
import { useStoreState } from 'easy-peasy'; import { useStoreState } from 'easy-peasy';
import tw from 'twin.macro'; import { Fragment } from 'react';
import MessageBox from '@/components/MessageBox';
type Props = Readonly<{ type Props = Readonly<{
byKey?: string; byKey?: string;
className?: string; className?: string;
}>; }>;
const FlashMessageRender = ({ byKey, className }: Props) => { function FlashMessageRender({ byKey, className }: Props) {
const flashes = useStoreState(state => state.flashes.items.filter(flash => (byKey ? flash.key === byKey : true))); const flashes = useStoreState(state => state.flashes.items.filter(flash => (byKey ? flash.key === byKey : true)));
return flashes.length ? ( return flashes.length ? (
<div className={className}> <div className={className}>
{flashes.map((flash, index) => ( {flashes.map((flash, index) => (
<Fragment key={flash.id || flash.type + flash.message}> <Fragment key={flash.id || flash.type + flash.message}>
{index > 0 && <div css={tw`mt-2`}></div>} {index > 0 && <div className="mt-2" />}
<MessageBox type={flash.type} title={flash.title}> <MessageBox type={flash.type} title={flash.title}>
{flash.message} {flash.message}
</MessageBox> </MessageBox>
@ -23,6 +23,6 @@ const FlashMessageRender = ({ byKey, className }: Props) => {
))} ))}
</div> </div>
) : null; ) : null;
}; }
export default FlashMessageRender; export default FlashMessageRender;

View file

@ -14,9 +14,9 @@ import { ServerError } from '@/components/elements/ScreenBlock';
import { Button } from '@/components/elements/button/index'; import { Button } from '@/components/elements/button/index';
import { ServerContext } from '@/state/server'; import { ServerContext } from '@/state/server';
import useFileManagerSwr from '@/plugins/useFileManagerSwr'; import useFileManagerSwr from '@/plugins/useFileManagerSwr';
import FileManagerStatus from '@/components/server/files/FileManagerStatus'; // import FileManagerStatus from '@/components/server/files/FileManagerStatus';
import MassActionsBar from '@/components/server/files/MassActionsBar'; import MassActionsBar from '@/components/server/files/MassActionsBar';
import UploadButton from '@/components/server/files/UploadButton'; // import UploadButton from '@/components/server/files/UploadButton';
import ServerContentBlock from '@/components/elements/ServerContentBlock'; import ServerContentBlock from '@/components/elements/ServerContentBlock';
import { useStoreActions } from '@/state/hooks'; import { useStoreActions } from '@/state/hooks';
import ErrorBoundary from '@/components/elements/ErrorBoundary'; import ErrorBoundary from '@/components/elements/ErrorBoundary';
@ -77,9 +77,9 @@ export default () => {
/> />
<Can action={'file.create'}> <Can action={'file.create'}>
<div className={style.manager_actions}> <div className={style.manager_actions}>
<FileManagerStatus /> {/*<FileManagerStatus />*/}
<NewDirectoryButton /> <NewDirectoryButton />
<UploadButton /> {/*<UploadButton />*/}
<NavLink to={`/server/${id}/files/new${window.location.hash}`}> <NavLink to={`/server/${id}/files/new${window.location.hash}`}>
<Button>New File</Button> <Button>New File</Button>
</NavLink> </NavLink>

View file

@ -1085,17 +1085,18 @@
"@nodelib/fs.scandir" "2.1.4" "@nodelib/fs.scandir" "2.1.4"
fastq "^1.6.0" fastq "^1.6.0"
"@preact/signals-core@^1.2.1": "@preact/signals-core@^1.2.2":
version "1.2.2" version "1.2.2"
resolved "https://registry.yarnpkg.com/@preact/signals-core/-/signals-core-1.2.2.tgz#279dcc5ab249de2f2e8f6e6779b1958256ba843e" resolved "https://registry.yarnpkg.com/@preact/signals-core/-/signals-core-1.2.2.tgz#279dcc5ab249de2f2e8f6e6779b1958256ba843e"
integrity sha512-z3/bCj7rRA21RJb4FeJ4guCrD1CQbaURHkCTunUWQpxUMAFOPXCD8tSFqERyGrrcSb4T3Hrmdc1OAl0LXBHwiw== integrity sha512-z3/bCj7rRA21RJb4FeJ4guCrD1CQbaURHkCTunUWQpxUMAFOPXCD8tSFqERyGrrcSb4T3Hrmdc1OAl0LXBHwiw==
"@preact/signals-react@1.1.1": "@preact/signals-react@1.2.1":
version "1.1.1" version "1.2.1"
resolved "https://registry.yarnpkg.com/@preact/signals-react/-/signals-react-1.1.1.tgz#8c77e86bc94dcd7f58143e06b6d7564ee79e9585" resolved "https://registry.yarnpkg.com/@preact/signals-react/-/signals-react-1.2.1.tgz#6d5d305ebdb38c879043acebc65c0d9351e663c1"
integrity sha512-U5HNWBt4q5pmsZjDOuVcz3OXLQtaBMMSErnTHFohOFQClBqHlVD/hmhayEEO38I9iU71kofhw2ngeWso/GsVMw== integrity sha512-73J8sL1Eru7Ot4yBYOCPj1izEZjzCEXlembRgk6C7PkwsqoAVbCxMlDOFfCLoPFuJ6qeGatrJzRkcycXppMqVQ==
dependencies: dependencies:
"@preact/signals-core" "^1.2.1" "@preact/signals-core" "^1.2.2"
use-sync-external-store "^1.2.0"
"@remix-run/router@1.0.2": "@remix-run/router@1.0.2":
version "1.0.2" version "1.0.2"
@ -2086,10 +2087,10 @@ dset@^2.0.1:
resolved "https://registry.yarnpkg.com/dset/-/dset-2.0.1.tgz#a15fff3d1e4d60ac0c95634625cbd5441a76deb1" resolved "https://registry.yarnpkg.com/dset/-/dset-2.0.1.tgz#a15fff3d1e4d60ac0c95634625cbd5441a76deb1"
integrity sha512-nI29OZMRYq36hOcifB6HTjajNAAiBKSXsyWZrq+VniusseuP2OpNlTiYgsaNRSGvpyq5Wjbc2gQLyBdTyWqhnQ== integrity sha512-nI29OZMRYq36hOcifB6HTjajNAAiBKSXsyWZrq+VniusseuP2OpNlTiYgsaNRSGvpyq5Wjbc2gQLyBdTyWqhnQ==
easy-peasy@5.1.0: easy-peasy@5.2.0:
version "5.1.0" version "5.2.0"
resolved "https://registry.yarnpkg.com/easy-peasy/-/easy-peasy-5.1.0.tgz#5fbd3a2d4803ef982b42083be47badf553227341" resolved "https://registry.yarnpkg.com/easy-peasy/-/easy-peasy-5.2.0.tgz#aee9a06d4bf72aa1e20442d5019306a552f350a0"
integrity sha512-Gd5jzTRrWrE6r59014GXTzpcq5abJ5AMGxc4fzd9sM8PCy18evzxVF9MYlkkzdTnUI/Rbvf0sQW50ev8DXyNjw== integrity sha512-QHRRJTsF15ZLK5vLcCLDF3A7sMrE4+7S/8ggZempfMbXX3xNsH2R3HVA+Xo5rZA65Rg8Zf5X6fflEMGuzfgwTw==
dependencies: dependencies:
"@babel/runtime" "^7.17.2" "@babel/runtime" "^7.17.2"
fast-deep-equal "^3.1.3" fast-deep-equal "^3.1.3"