ui: minor changes
This commit is contained in:
7 files changed
+307
-351
No files matched your search
+9
-10
@@ -19,19 +19,18 @@
|
|||||||
"@jellyfin/sdk": "0.8.2",
|
"@jellyfin/sdk": "0.8.2",
|
||||||
"@mui/lab": "5.0.0-alpha.165",
|
"@mui/lab": "5.0.0-alpha.165",
|
||||||
"@mui/material": "^5.15.10",
|
"@mui/material": "^5.15.10",
|
||||||
"@mui/styles": "^5.15.10",
|
|
||||||
"@tanem/react-nprogress": "^5.0.51",
|
"@tanem/react-nprogress": "^5.0.51",
|
||||||
"@tanstack/react-query": "^5.21.2",
|
"@tanstack/react-query": "^5.22.2",
|
||||||
"@tanstack/react-query-devtools": "^5.21.3",
|
"@tanstack/react-query-devtools": "^5.24.0",
|
||||||
"@tauri-apps/api": "^1.5.3",
|
"@tauri-apps/api": "^1.5.3",
|
||||||
"@types/node": "^20.11.19",
|
"@types/node": "^20.11.20",
|
||||||
"@types/react": "^18.2.56",
|
"@types/react": "^18.2.58",
|
||||||
"@types/react-dom": "^18.2.19",
|
"@types/react-dom": "^18.2.19",
|
||||||
"axios": "^1.6.7",
|
"axios": "^1.6.7",
|
||||||
"axios-tauri-api-adapter": "^0.2.1",
|
"axios-tauri-api-adapter": "^0.2.1",
|
||||||
"blurhash": "^2.0.5",
|
"blurhash": "^2.0.5",
|
||||||
"events": "^3.3.0",
|
"events": "^3.3.0",
|
||||||
"framer-motion": "^11.0.5",
|
"framer-motion": "^11.0.6",
|
||||||
"material-symbols": "^0.15.0",
|
"material-symbols": "^0.15.0",
|
||||||
"million": "^3.0.3",
|
"million": "^3.0.3",
|
||||||
"notistack": "^3.0.1",
|
"notistack": "^3.0.1",
|
||||||
@@ -54,14 +53,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "^1.5.3",
|
"@biomejs/biome": "^1.5.3",
|
||||||
"@tauri-apps/cli": "^1.5.9",
|
"@tauri-apps/cli": "^1.5.10",
|
||||||
"@vitejs/plugin-react": "^4.2.1",
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-plugin-react": "^7.33.2",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"eslint-plugin-react-refresh": "^0.4.5",
|
"eslint-plugin-react-refresh": "^0.4.5",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"sass": "^1.71.0",
|
"sass": "^1.71.1",
|
||||||
"vite": "^5.1.3",
|
"vite": "^5.1.4",
|
||||||
"vite-plugin-compression": "^0.5.1"
|
"vite-plugin-compression": "^0.5.1"
|
||||||
},
|
},
|
||||||
"license": "GPL-3.0-only"
|
"license": "GPL-3.0-only"
|
||||||
|
|||||||
Generated
+233
-333
File diff suppressed because it is too large.
Load diff
@@ -25,8 +25,9 @@
|
|||||||
&-container {
|
&-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
|
box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid rgb(255 255 255 / 0.1);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: auto;
|
height: auto;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
@@ -44,7 +45,7 @@
|
|||||||
&-icon {
|
&-icon {
|
||||||
font-size: 5.4em !important;
|
font-size: 5.4em !important;
|
||||||
&-container {
|
&-container {
|
||||||
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.1));
|
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -140,4 +141,27 @@
|
|||||||
border-radius: 100% !important;
|
border-radius: 100% !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-progress{
|
||||||
|
width: attr('data-progress');
|
||||||
|
height: 100%;
|
||||||
|
background: white;
|
||||||
|
transition: width $transition-time-default ease-in-out;
|
||||||
|
&-container{
|
||||||
|
$padding: 12px;
|
||||||
|
position: absolute;
|
||||||
|
bottom: $padding;
|
||||||
|
left: $padding;
|
||||||
|
right: $padding;
|
||||||
|
height: 4.5px;
|
||||||
|
background: rgb(255 255 255 / 0.5);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
box-shadow: 0 0 10px rgb(20 20 20 / 0.5);
|
||||||
|
z-index: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
box-sizing: content-box;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -184,6 +184,16 @@ export const Card = ({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{item.UserData?.PlaybackPositionTicks > 0 && (
|
||||||
|
<div className="card-progress-container">
|
||||||
|
<div
|
||||||
|
className="card-progress"
|
||||||
|
style={{
|
||||||
|
width: `${item.UserData?.PlayedPercentage}%`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{/*
|
{/*
|
||||||
{item.UserData?.PlaybackPositionTicks > 0 && (
|
{item.UserData?.PlaybackPositionTicks > 0 && (
|
||||||
<LinearProgress
|
<LinearProgress
|
||||||
|
|||||||
@@ -42,8 +42,9 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
&-grid {
|
&-grid {
|
||||||
|
--number-of-cols:8;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(8, minmax(0, 1fr));
|
grid-template-columns: repeat(var(--number-of-cols), minmax(0, 1fr));
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,7 +158,10 @@ const SeriesTitlePage = () => {
|
|||||||
refetchOnWindowFocus: true,
|
refetchOnWindowFocus: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const [currentSeason, setCurrentSeason] = useState(0);
|
const [currentSeason, setCurrentSeason] = useState(() => {
|
||||||
|
const result = sessionStorage.getItem(`season-${item.data?.Id}`);
|
||||||
|
return result ?? 0;
|
||||||
|
});
|
||||||
|
|
||||||
const currentSeasonItem = useQuery({
|
const currentSeasonItem = useQuery({
|
||||||
queryKey: ["item", id, "season", currentSeason],
|
queryKey: ["item", id, "season", currentSeason],
|
||||||
@@ -232,7 +235,10 @@ const SeriesTitlePage = () => {
|
|||||||
}, [item.isSuccess]);
|
}, [item.isSuccess]);
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
if (seasons.isSuccess) {
|
if (
|
||||||
|
seasons.isSuccess &&
|
||||||
|
!sessionStorage.getItem(`season-${item.data?.Id}`)
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
seasons.data.TotalRecordCount > 1 &&
|
seasons.data.TotalRecordCount > 1 &&
|
||||||
seasons.data.Items[0].Name.toLowerCase().includes("special")
|
seasons.data.Items[0].Name.toLowerCase().includes("special")
|
||||||
@@ -890,7 +896,13 @@ const SeriesTitlePage = () => {
|
|||||||
)}
|
)}
|
||||||
<TextField
|
<TextField
|
||||||
value={currentSeason}
|
value={currentSeason}
|
||||||
onChange={(e) => setCurrentSeason(e.target.value)}
|
onChange={(e) => {
|
||||||
|
setCurrentSeason(e.target.value);
|
||||||
|
sessionStorage.setItem(
|
||||||
|
`season-${item.data?.Id}`,
|
||||||
|
e.target.value,
|
||||||
|
);
|
||||||
|
}}
|
||||||
select
|
select
|
||||||
SelectProps={{
|
SelectProps={{
|
||||||
MenuProps: {
|
MenuProps: {
|
||||||
|
|||||||
+12
-2
@@ -56,16 +56,26 @@ export const theme = createTheme({
|
|||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
paper: {
|
paper: {
|
||||||
borderRadius: "10px",
|
borderRadius: "10px",
|
||||||
// boxShadow: "0 0 5px hsl(273, 100%, 36%)",
|
|
||||||
background: "hsl(256, 100%, 2%, 40%)",
|
background: "hsl(256, 100%, 2%, 40%)",
|
||||||
backdropFilter: "blur(20px)",
|
backdropFilter: "blur(20px)",
|
||||||
// border: "1.8px solid hsl(273, 100%, 36%)",
|
border: "1px solid rgb(255 255 255 / 0.1)",
|
||||||
|
},
|
||||||
|
list: {
|
||||||
|
padding: "8px",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
disableScrollLock: true,
|
disableScrollLock: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
MuiMenuItem: {
|
||||||
|
styleOverrides: {
|
||||||
|
root: {
|
||||||
|
borderRadius: "4px",
|
||||||
|
transition: "250ms",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
MuiDialog: {
|
MuiDialog: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
paper: {
|
paper: {
|
||||||
|
|||||||
Reference in new issue
Block a user