mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-29 02:42:47 -04:00
* log to disk * remove some unwraps * panicless * some p2p error handling * clippy moment * Fix `<ErrorBoundary />` * open logs button * 39 to 0 * fix types * update deps and comment out broken tests * clippy * more clippy * upgrade rimraf - https://github.com/isaacs/rimraf/issues/259 * regen broken lockfile * update `notify` and update `commands.ts` * more clippy (pls work) * allow deprecated for p2p (hopefully temporary) * a * upgrade deps for p2p * do betterer * do it correctly * remove unused import * improve core startup error + bc keypair --------- Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com> Co-authored-by: brxken128 <77554505+brxken128@users.noreply.github.com>
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { useBridgeQuery, useLibraryQuery } from '@sd/client';
|
|
import { CodeBlock } from '~/components/Codeblock';
|
|
|
|
// TODO: Bring this back with a button in the sidebar near settings at the bottom
|
|
export const Component = () => {
|
|
const { data: nodeState } = useBridgeQuery(['nodeState']);
|
|
const { data: libraryState } = useBridgeQuery(['library.list']);
|
|
const { data: jobs } = useLibraryQuery(['jobs.getRunning']);
|
|
const { data: jobHistory } = useLibraryQuery(['jobs.getHistory']);
|
|
// const { mutate: purgeDB } = useBridgeCommand('PurgeDatabase', {
|
|
// onMutate: () => {
|
|
// alert('Database purged');
|
|
// }
|
|
// });
|
|
// const { mutate: identifyFiles } = useLibraryMutation('jobs.identifyUniqueFiles');
|
|
return (
|
|
<div className="flex flex-col space-y-5 p-5 pb-7 pt-2">
|
|
<h1 className="text-lg font-bold ">Developer Debugger</h1>
|
|
{/* <div className="flex flex-row pb-4 space-x-2">
|
|
<Button
|
|
className="w-40"
|
|
variant="gray"
|
|
size="sm"
|
|
onClick={() => {
|
|
if (nodeState && appPropsContext?.onOpen) {
|
|
appPropsContext.onOpen(nodeState.data_path);
|
|
}
|
|
}}
|
|
>
|
|
Open data folder
|
|
</Button>
|
|
</div> */}
|
|
<h1 className="text-sm font-bold ">Running Jobs</h1>
|
|
<CodeBlock src={{ ...jobs }} />
|
|
<h1 className="text-sm font-bold ">Job History</h1>
|
|
<CodeBlock src={{ ...jobHistory }} />
|
|
<h1 className="text-sm font-bold ">Node State</h1>
|
|
<CodeBlock src={{ ...nodeState }} />
|
|
<h1 className="text-sm font-bold ">Libraries</h1>
|
|
<CodeBlock src={{ ...libraryState }} />
|
|
</div>
|
|
);
|
|
};
|