mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 05:45:01 -04:00
* init * changes * Now updating statistics once a minute * More robust statistics updater * Concurrency is hard * improvements to stats * refactor * adjust setting back/forward padding so it matches top bar * refactor sidebar * rename * setting up screens * some changes * Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com> * yes * yes2 * refactored explorerItem.ts * important explorer code shouldn't be thrown away in a util moment * support for multiple thumbnails in ExplorerItem * clippy * move debug * yes * label filters * ts * comment out unconnected stuff * added .mid for midi files --------- Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com> Co-authored-by: Brendan Allan <brendonovich@outlook.com>
36 lines
906 B
TypeScript
36 lines
906 B
TypeScript
import { ArrowsClockwise, Cloud, Database, Factory } from '@phosphor-icons/react';
|
|
import { useFeatureFlag } from '@sd/client';
|
|
|
|
import Icon from '../../SidebarLayout/Icon';
|
|
import SidebarLink from '../../SidebarLayout/Link';
|
|
import Section from '../../SidebarLayout/Section';
|
|
|
|
export default function DebugSection() {
|
|
const debugRoutes = useFeatureFlag('debugRoutes');
|
|
|
|
if (!debugRoutes) return <></>;
|
|
|
|
return (
|
|
<Section name="Debug">
|
|
<div className="space-y-0.5">
|
|
<SidebarLink to="debug/sync">
|
|
<Icon component={ArrowsClockwise} />
|
|
Sync
|
|
</SidebarLink>
|
|
<SidebarLink to="debug/cloud">
|
|
<Icon component={Cloud} />
|
|
Cloud
|
|
</SidebarLink>
|
|
<SidebarLink to="debug/cache">
|
|
<Icon component={Database} />
|
|
Cache
|
|
</SidebarLink>
|
|
<SidebarLink to="debug/actors">
|
|
<Icon component={Factory} />
|
|
Actors
|
|
</SidebarLink>
|
|
</div>
|
|
</Section>
|
|
);
|
|
}
|