mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-21 06:59:17 -04:00
* added base UI for categories on overview * update core * cleanup ui * Inspector default view if nothing is selected, explorer takes child components, hidden menu tweak if no items are sm:flex * wip * somewhat functional * scroll * category fixes * clean category bar * added config store + made toolbar available on all explorer screens * clean up overview.tsx * added counts * fix inspector bug * add support for favorites + add book extension support * refactor into smaller components * Some small rust nitpicks * fix camel case location_type * Rust fmt * fix typescript CI --------- Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com> Co-authored-by: nikec <nikec.job@gmail.com> Co-authored-by: Ericson Soares <ericson.ds999@gmail.com>
69 lines
1.7 KiB
TypeScript
69 lines
1.7 KiB
TypeScript
import {
|
|
ArchiveBox,
|
|
Broadcast,
|
|
CirclesFour,
|
|
CopySimple,
|
|
Crosshair,
|
|
Eraser,
|
|
FilmStrip,
|
|
MonitorPlay,
|
|
Planet
|
|
} from 'phosphor-react';
|
|
import { useClientContext } from '@sd/client';
|
|
import { SubtleButton } from '~/components/SubtleButton';
|
|
import Icon from './Icon';
|
|
import { LibrarySection } from './LibrarySection';
|
|
import SidebarLink from './Link';
|
|
import Section from './Section';
|
|
|
|
export default () => {
|
|
const { library } = useClientContext();
|
|
|
|
return (
|
|
<div className="no-scrollbar mask-fade-out flex grow flex-col overflow-x-hidden overflow-y-scroll pb-10">
|
|
<div className="space-y-0.5">
|
|
<SidebarLink to="overview">
|
|
<Icon component={Planet} />
|
|
Overview
|
|
</SidebarLink>
|
|
{/* <SidebarLink disabled to="spaces">
|
|
<Icon component={CirclesFour} />
|
|
Spaces
|
|
</SidebarLink> */}
|
|
<SidebarLink to="spacedrop">
|
|
<Icon component={Broadcast} />
|
|
Spacedrop
|
|
</SidebarLink>
|
|
{/* <SidebarLink disabled to="media">
|
|
<Icon component={MonitorPlay} />
|
|
Media
|
|
</SidebarLink> */}
|
|
<SidebarLink to="imports">
|
|
<Icon component={ArchiveBox} />
|
|
Imports
|
|
</SidebarLink>
|
|
</div>
|
|
{library && <LibrarySection />}
|
|
<Section name="Tools" actionArea={<SubtleButton />}>
|
|
<SidebarLink disabled to="duplicate-finder">
|
|
<Icon component={CopySimple} />
|
|
Duplicate Finder
|
|
</SidebarLink>
|
|
<SidebarLink disabled to="lost-and-found">
|
|
<Icon component={Crosshair} />
|
|
Find a File
|
|
</SidebarLink>
|
|
<SidebarLink disabled to="cache-cleaner">
|
|
<Icon component={Eraser} />
|
|
Cache Cleaner
|
|
</SidebarLink>
|
|
<SidebarLink disabled to="media-encoder">
|
|
<Icon component={FilmStrip} />
|
|
Media Encoder
|
|
</SidebarLink>
|
|
</Section>
|
|
<div className="grow" />
|
|
</div>
|
|
);
|
|
};
|