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",
"@heroicons/react": "1.0.6",
"@lezer/highlight": "1.1.2",
"@preact/signals-react": "1.1.1",
"@preact/signals-react": "1.2.1",
"@tailwindcss/forms": "0.5.3",
"@tailwindcss/line-clamp": "0.4.2",
"axios": "0.27.2",
@ -56,7 +56,7 @@
"date-fns": "2.29.3",
"debounce": "1.2.1",
"deepmerge-ts": "4.2.2",
"easy-peasy": "5.1.0",
"easy-peasy": "5.2.0",
"events": "3.3.0",
"formik": "2.2.9",
"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 tw from 'twin.macro';
import { Fragment } from 'react';
import MessageBox from '@/components/MessageBox';
type Props = Readonly<{
byKey?: 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)));
return flashes.length ? (
<div className={className}>
{flashes.map((flash, index) => (
<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}>
{flash.message}
</MessageBox>
@ -23,6 +23,6 @@ const FlashMessageRender = ({ byKey, className }: Props) => {
))}
</div>
) : null;
};
}
export default FlashMessageRender;

View file

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

View file

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