Add extra filters to LibraryPage #176 and use Noto Sans instead of Open Sans
This commit is contained in:
7 files changed
+201
-11
No files matched your search
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.11.1",
|
"@emotion/react": "^11.11.1",
|
||||||
"@emotion/styled": "^11.11.0",
|
"@emotion/styled": "^11.11.0",
|
||||||
"@fontsource-variable/open-sans": "^5.0.13",
|
"@fontsource/noto-sans": "^5.0.12",
|
||||||
"@jellyfin/sdk": "^0.8.2",
|
"@jellyfin/sdk": "^0.8.2",
|
||||||
"@mdi/js": "^7.2.96",
|
"@mdi/js": "^7.2.96",
|
||||||
"@mui/lab": "5.0.0-alpha.145",
|
"@mui/lab": "5.0.0-alpha.145",
|
||||||
|
|||||||
Generated
+5
-5
@@ -11,9 +11,9 @@ dependencies:
|
|||||||
'@emotion/styled':
|
'@emotion/styled':
|
||||||
specifier: ^11.11.0
|
specifier: ^11.11.0
|
||||||
version: 11.11.0(@emotion/react@11.11.1)(react@18.2.0)
|
version: 11.11.0(@emotion/react@11.11.1)(react@18.2.0)
|
||||||
'@fontsource-variable/open-sans':
|
'@fontsource/noto-sans':
|
||||||
specifier: ^5.0.13
|
specifier: ^5.0.12
|
||||||
version: 5.0.13
|
version: 5.0.12
|
||||||
'@jellyfin/sdk':
|
'@jellyfin/sdk':
|
||||||
specifier: ^0.8.2
|
specifier: ^0.8.2
|
||||||
version: 0.8.2(axios@1.5.0)
|
version: 0.8.2(axios@1.5.0)
|
||||||
@@ -659,8 +659,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-qprfWkn82Iw821mcKofJ5Pk9wgioHicxcQMxx+5zt5GSKoqdWvgG5AxVmpmUUjzTLPVSH5auBrhI93Deayn/DA==}
|
resolution: {integrity: sha512-qprfWkn82Iw821mcKofJ5Pk9wgioHicxcQMxx+5zt5GSKoqdWvgG5AxVmpmUUjzTLPVSH5auBrhI93Deayn/DA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@fontsource-variable/open-sans@5.0.13:
|
/@fontsource/noto-sans@5.0.12:
|
||||||
resolution: {integrity: sha512-G/lTR5vVBcwRU0vkeYqFfX1UEqHfCG52ccdVgcjwSOcDvi5jQEL3ta212qA2rKwSdhmdei600yNburmYoT1wsg==}
|
resolution: {integrity: sha512-6qMnrAeCsjqI4tT2zWb1EQ/AeWr42iacn+QOV74pY1Ytm/0OY9jzSXlh4nK4mc9CbTmEZn1Iofa/SzvvKNMcpA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@jellyfin/sdk@0.8.2(axios@1.5.0):
|
/@jellyfin/sdk@0.8.2(axios@1.5.0):
|
||||||
|
|||||||
+18
-3
@@ -55,9 +55,24 @@ import { SideMenu } from "./components/menu/sidemenu.jsx";
|
|||||||
import { AppBar } from "./components/appBar/appBar.jsx";
|
import { AppBar } from "./components/appBar/appBar.jsx";
|
||||||
|
|
||||||
// Fonts
|
// Fonts
|
||||||
import "@fontsource-variable/open-sans"; // Defaults to wght axis
|
import "@fontsource/noto-sans/100.css";
|
||||||
import "@fontsource-variable/open-sans/wght.css"; // Specify axis
|
import "@fontsource/noto-sans/100-italic.css";
|
||||||
import "@fontsource-variable/open-sans/wght-italic.css"; // Specify axis and style
|
import "@fontsource/noto-sans/200.css";
|
||||||
|
import "@fontsource/noto-sans/200-italic.css";
|
||||||
|
import "@fontsource/noto-sans/300.css";
|
||||||
|
import "@fontsource/noto-sans/300-italic.css";
|
||||||
|
import "@fontsource/noto-sans/400.css";
|
||||||
|
import "@fontsource/noto-sans/400-italic.css";
|
||||||
|
import "@fontsource/noto-sans/500.css";
|
||||||
|
import "@fontsource/noto-sans/500-italic.css";
|
||||||
|
import "@fontsource/noto-sans/600.css";
|
||||||
|
import "@fontsource/noto-sans/600-italic.css";
|
||||||
|
import "@fontsource/noto-sans/700.css";
|
||||||
|
import "@fontsource/noto-sans/700-italic.css";
|
||||||
|
import "@fontsource/noto-sans/800.css";
|
||||||
|
import "@fontsource/noto-sans/800-italic.css";
|
||||||
|
import "@fontsource/noto-sans/900.css";
|
||||||
|
import "@fontsource/noto-sans/900-italic.css";
|
||||||
|
|
||||||
// Jellyfin SDK TypeScript
|
// Jellyfin SDK TypeScript
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1146,6 +1146,180 @@ const LibraryView = () => {
|
|||||||
</AccordionDetails>
|
</AccordionDetails>
|
||||||
</Accordion>
|
</Accordion>
|
||||||
)}
|
)}
|
||||||
|
{!onlyStatusFilterViews.includes(
|
||||||
|
currentLib.data.Items[0]
|
||||||
|
.CollectionType,
|
||||||
|
) && (
|
||||||
|
<Accordion className="library-filter-accordian">
|
||||||
|
<AccordionSummary
|
||||||
|
expandIcon={
|
||||||
|
<MdiChevronDown />
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Typography variant="subtitle1">
|
||||||
|
Features
|
||||||
|
</Typography>
|
||||||
|
</AccordionSummary>
|
||||||
|
<AccordionDetails
|
||||||
|
style={{
|
||||||
|
background:
|
||||||
|
"rgb(0 0 0 / 0.4)",
|
||||||
|
padding: "0 !important",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<FormControlLabel
|
||||||
|
className="library-filter"
|
||||||
|
label="Subtitles"
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
value={
|
||||||
|
hasSubtitles
|
||||||
|
}
|
||||||
|
onChange={(
|
||||||
|
e,
|
||||||
|
) => {
|
||||||
|
setHasSubtitles(
|
||||||
|
e
|
||||||
|
.target
|
||||||
|
.checked,
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
labelPlacement="start"
|
||||||
|
componentsProps={{
|
||||||
|
typography:
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
justifySelf:
|
||||||
|
"start",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<FormControlLabel
|
||||||
|
className="library-filter"
|
||||||
|
label="Trailer"
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
value={
|
||||||
|
hasTrailer
|
||||||
|
}
|
||||||
|
onChange={(
|
||||||
|
e,
|
||||||
|
) => {
|
||||||
|
setHasTrailer(
|
||||||
|
e
|
||||||
|
.target
|
||||||
|
.checked,
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
labelPlacement="start"
|
||||||
|
componentsProps={{
|
||||||
|
typography:
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
justifySelf:
|
||||||
|
"start",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<FormControlLabel
|
||||||
|
className="library-filter"
|
||||||
|
label="Special Features"
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
value={
|
||||||
|
hasSpecialFeature
|
||||||
|
}
|
||||||
|
onChange={(
|
||||||
|
e,
|
||||||
|
) => {
|
||||||
|
setHasSpecialFeature(
|
||||||
|
e
|
||||||
|
.target
|
||||||
|
.checked,
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
labelPlacement="start"
|
||||||
|
componentsProps={{
|
||||||
|
typography:
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
justifySelf:
|
||||||
|
"start",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<FormControlLabel
|
||||||
|
className="library-filter"
|
||||||
|
label="Theme Song"
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
value={
|
||||||
|
hasThemeSong
|
||||||
|
}
|
||||||
|
onChange={(
|
||||||
|
e,
|
||||||
|
) => {
|
||||||
|
setHasThemeSong(
|
||||||
|
e
|
||||||
|
.target
|
||||||
|
.checked,
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
labelPlacement="start"
|
||||||
|
componentsProps={{
|
||||||
|
typography:
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
justifySelf:
|
||||||
|
"start",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<FormControlLabel
|
||||||
|
className="library-filter"
|
||||||
|
label="Theme Video"
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
value={
|
||||||
|
hasThemeVideo
|
||||||
|
}
|
||||||
|
onChange={(
|
||||||
|
e,
|
||||||
|
) => {
|
||||||
|
setHasThemeVideo(
|
||||||
|
e
|
||||||
|
.target
|
||||||
|
.checked,
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
labelPlacement="start"
|
||||||
|
componentsProps={{
|
||||||
|
typography:
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
justifySelf:
|
||||||
|
"start",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</AccordionDetails>
|
||||||
|
</Accordion>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Grow>
|
</Grow>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ import { usePlaybackStore } from "../../utils/store/playback";
|
|||||||
import { useBackdropStore } from "../../utils/store/backdrop";
|
import { useBackdropStore } from "../../utils/store/backdrop";
|
||||||
import { ActorCard } from "../../components/card/actorCards";
|
import { ActorCard } from "../../components/card/actorCards";
|
||||||
import { SeasonSelectorSkeleton } from "../../components/skeleton/seasonSelector";
|
import { SeasonSelectorSkeleton } from "../../components/skeleton/seasonSelector";
|
||||||
|
import { stagger } from "framer-motion";
|
||||||
function TabPanel(props) {
|
function TabPanel(props) {
|
||||||
const { children, value, index, ...other } = props;
|
const { children, value, index, ...other } = props;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ div::-webkit-scrollbar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Open Sans Variable";
|
font-family: "Noto Sans";
|
||||||
background: $clr-background-default;
|
background: $clr-background-default;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ export const theme = createTheme({
|
|||||||
mode: "dark",
|
mode: "dark",
|
||||||
},
|
},
|
||||||
typography: {
|
typography: {
|
||||||
fontFamily: "Open Sans Variable",
|
fontFamily: "Noto Sans",
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
MuiButton: {
|
MuiButton: {
|
||||||
|
|||||||
Reference in new issue
Block a user