mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
Fix casing
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { useRef } from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import { PlaybackType } from '../../../../types';
|
||||
import { PlaybackType } from '@/renderer/types';
|
||||
import { AudioPlayer } from '../../../components';
|
||||
import { usePlayerStore } from '../../../store';
|
||||
import { CenterControls } from './center-controls';
|
||||
+1
-1
@@ -25,7 +25,7 @@ const StyledSlider = styled(ReactSlider)<SliderProps | any>`
|
||||
display: ${(props) =>
|
||||
props.$isDragging && props.$hasToolTip ? 'block' : 'none'};
|
||||
padding: 2px 6px;
|
||||
color: var(--tooltip-text-color);
|
||||
color: var(--tooltip-fg);
|
||||
white-space: nowrap;
|
||||
background: var(--tooltip-bg);
|
||||
border-radius: 4px;
|
||||
@@ -1,35 +0,0 @@
|
||||
import styled from '@emotion/styled';
|
||||
import {
|
||||
RiDashboardFill,
|
||||
RiFileList2Fill,
|
||||
RiSearch2Line,
|
||||
} from 'react-icons/ri';
|
||||
import { AppRoute } from '../../../router/routes';
|
||||
import { ListItem } from './list-item';
|
||||
|
||||
const StyledSidebar = styled.div``;
|
||||
|
||||
export const Sidebar = () => {
|
||||
return (
|
||||
<StyledSidebar>
|
||||
<ListItem>
|
||||
<ListItem.Link to={AppRoute.HOME}>
|
||||
<RiDashboardFill size={20} />
|
||||
Home
|
||||
</ListItem.Link>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListItem.Link to={AppRoute.LIBRARY}>
|
||||
<RiFileList2Fill size={20} />
|
||||
Library
|
||||
</ListItem.Link>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListItem.Link to={AppRoute.SEARCH}>
|
||||
<RiSearch2Line size={20} />
|
||||
Search
|
||||
</ListItem.Link>
|
||||
</ListItem>
|
||||
</StyledSidebar>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,135 @@
|
||||
import styled from '@emotion/styled';
|
||||
import { Stack, Group, Grid, Accordion } from '@mantine/core';
|
||||
import { SpotlightProvider, openSpotlight } from '@mantine/spotlight';
|
||||
import {
|
||||
RiAlbumLine,
|
||||
RiArrowLeftSLine,
|
||||
RiArrowRightSLine,
|
||||
RiDatabaseLine,
|
||||
RiEyeLine,
|
||||
RiFolder3Line,
|
||||
RiHome5Line,
|
||||
RiMusicLine,
|
||||
RiPlayListLine,
|
||||
RiSearchLine,
|
||||
RiUserVoiceLine,
|
||||
} from 'react-icons/ri';
|
||||
import { useNavigate } from 'react-router';
|
||||
import { Button, TextInput } from '@/renderer/components';
|
||||
import { AppRoute } from '../../../router/routes';
|
||||
import { SidebarItem } from './sidebar-item';
|
||||
|
||||
const StyledSidebar = styled.div``;
|
||||
|
||||
export const Sidebar = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<StyledSidebar>
|
||||
<Stack p={10}>
|
||||
<Grid>
|
||||
<Grid.Col span={8}>
|
||||
<SpotlightProvider actions={[]}>
|
||||
<TextInput
|
||||
readOnly
|
||||
icon={<RiSearchLine />}
|
||||
placeholder="Search"
|
||||
rightSectionWidth={90}
|
||||
onClick={() => openSpotlight()}
|
||||
/>
|
||||
</SpotlightProvider>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={4}>
|
||||
<Group grow spacing={5}>
|
||||
<Button
|
||||
px={5}
|
||||
sx={{ color: 'var(--titlebar-fg)' }}
|
||||
variant="default"
|
||||
onClick={() => navigate(-1)}
|
||||
>
|
||||
<RiArrowLeftSLine size={20} />
|
||||
</Button>
|
||||
<Button
|
||||
px={5}
|
||||
sx={{ color: 'var(--titlebar-fg)' }}
|
||||
variant="default"
|
||||
onClick={() => navigate(1)}
|
||||
>
|
||||
<RiArrowRightSLine size={20} />
|
||||
</Button>
|
||||
</Group>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
</Stack>
|
||||
<SidebarItem to={AppRoute.HOME}>
|
||||
<Group>
|
||||
<RiHome5Line size={15} />
|
||||
Home
|
||||
</Group>
|
||||
</SidebarItem>
|
||||
<SidebarItem>
|
||||
<SidebarItem.Link disabled to={AppRoute.EXPLORE}>
|
||||
<Group>
|
||||
<RiEyeLine />
|
||||
Explore
|
||||
</Group>
|
||||
</SidebarItem.Link>
|
||||
</SidebarItem>
|
||||
|
||||
<Accordion disableChevronRotation multiple>
|
||||
<Accordion.Item value="library">
|
||||
<Accordion.Control p="1rem">
|
||||
<Group>
|
||||
<RiDatabaseLine size={15} />
|
||||
Library
|
||||
</Group>
|
||||
</Accordion.Control>
|
||||
<Accordion.Panel>
|
||||
<SidebarItem to={AppRoute.LIBRARY_ALBUMS}>
|
||||
<Group>
|
||||
<RiAlbumLine />
|
||||
Albums
|
||||
</Group>
|
||||
</SidebarItem>
|
||||
<SidebarItem disabled to={AppRoute.LIBRARY_SONGS}>
|
||||
<Group>
|
||||
<RiMusicLine />
|
||||
Tracks
|
||||
</Group>
|
||||
</SidebarItem>
|
||||
<SidebarItem disabled to={AppRoute.LIBRARY_ALBUMARTISTS}>
|
||||
<Group>
|
||||
<RiUserVoiceLine />
|
||||
Artists
|
||||
</Group>
|
||||
</SidebarItem>
|
||||
<SidebarItem disabled to={AppRoute.LIBRARY_FOLDERS}>
|
||||
<Group>
|
||||
<RiFolder3Line />
|
||||
Folders
|
||||
</Group>
|
||||
</SidebarItem>
|
||||
</Accordion.Panel>
|
||||
</Accordion.Item>
|
||||
<Accordion.Item value="collections">
|
||||
<Accordion.Control disabled p="1rem">
|
||||
<Group>
|
||||
<RiPlayListLine size={20} />
|
||||
Collections
|
||||
</Group>
|
||||
</Accordion.Control>
|
||||
<Accordion.Panel />
|
||||
</Accordion.Item>
|
||||
<Accordion.Item value="playlists">
|
||||
<Accordion.Control disabled p="1rem">
|
||||
<Group>
|
||||
<RiPlayListLine size={20} />
|
||||
Playlists
|
||||
</Group>
|
||||
</Accordion.Control>
|
||||
<Accordion.Panel />
|
||||
</Accordion.Item>
|
||||
</Accordion>
|
||||
</StyledSidebar>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user