Update version to 0.0.3-dev
This commit is contained in:
5 files changed
+18
-16
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "jellyplayer",
|
"name": "jellyplayer",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "0.0.3-dev",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "jellyplayer"
|
name = "jellyplayer"
|
||||||
version = "0.0.1"
|
version = "0.0.3-dev"
|
||||||
description = "A Modern Jellyfin Client"
|
description = "A Modern Jellyfin Client"
|
||||||
authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"]
|
authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"]
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "JellyPlayer",
|
"productName": "JellyPlayer",
|
||||||
"version": "0.0.1"
|
"version": "0.0.3-dev"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -17,14 +17,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
&-indicator {
|
&-indicator {
|
||||||
height: 2px;
|
height: 3px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
transition: background $transition-time-fast,
|
transition: background $transition-time-fast,
|
||||||
height $transition-time-fast;
|
height $transition-time-fast;
|
||||||
|
background: rgb(255 255 255 / 0.5);
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 5px;
|
height: 6px;
|
||||||
background: rgb(255 255 255 / 0.8) !important;
|
background: rgb(255 255 255 / 0.8) !important;
|
||||||
}
|
}
|
||||||
&-container {
|
&-container {
|
||||||
@@ -38,7 +39,8 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
&.active {
|
&.active {
|
||||||
height: 5px;
|
height: 6px;
|
||||||
|
background: white !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -30,6 +30,10 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
className="carousel-button left"
|
className="carousel-button left"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
if (currentSlide == 0) {
|
||||||
|
setDirection("left");
|
||||||
|
setCurrentSlide(content.length - 1);
|
||||||
|
}
|
||||||
if (currentSlide > 0) {
|
if (currentSlide > 0) {
|
||||||
setDirection("left");
|
setDirection("left");
|
||||||
setCurrentSlide((init) => init - 1);
|
setCurrentSlide((init) => init - 1);
|
||||||
@@ -38,7 +42,7 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
sx={{
|
sx={{
|
||||||
background: " rgb(200 200 200 / 0.05)",
|
background: " rgb(200 200 200 / 0.05)",
|
||||||
}}
|
}}
|
||||||
disabled={currentSlide == 0}
|
// disabled={currentSlide == 0}
|
||||||
>
|
>
|
||||||
<div className="material-symbols-rounded">arrow_left</div>
|
<div className="material-symbols-rounded">arrow_left</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -50,7 +54,6 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
exit={{ opacity: 0 }}
|
exit={{ opacity: 0 }}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 0.25,
|
duration: 0.25,
|
||||||
ease: "easeInOut",
|
|
||||||
}}
|
}}
|
||||||
drag={"x"}
|
drag={"x"}
|
||||||
dragConstraints={{ left: 0, right: 0 }}
|
dragConstraints={{ left: 0, right: 0 }}
|
||||||
@@ -83,12 +86,15 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
className="carousel-button right"
|
className="carousel-button right"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (currentSlide < content.length - 1) {
|
if (currentSlide == content.length - 1) {
|
||||||
|
setDirection("right");
|
||||||
|
setCurrentSlide(0);
|
||||||
|
} else if (currentSlide < content.length - 1) {
|
||||||
setDirection("right");
|
setDirection("right");
|
||||||
setCurrentSlide((init) => init + 1);
|
setCurrentSlide((init) => init + 1);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
disabled={currentSlide == content.length - 1}
|
// disabled={currentSlide == content.length - 1}
|
||||||
sx={{
|
sx={{
|
||||||
background: " rgb(200 200 200 / 0.05)",
|
background: " rgb(200 200 200 / 0.05)",
|
||||||
}}
|
}}
|
||||||
@@ -104,12 +110,6 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
: "carousel-indicator"
|
: "carousel-indicator"
|
||||||
}
|
}
|
||||||
key={index}
|
key={index}
|
||||||
style={{
|
|
||||||
background:
|
|
||||||
currentSlide == index
|
|
||||||
? "white"
|
|
||||||
: "rgb(255 255 255 / 0.5)",
|
|
||||||
}}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (currentSlide > index) {
|
if (currentSlide > index) {
|
||||||
setDirection("left");
|
setDirection("left");
|
||||||
|
|||||||
Reference in new issue
Block a user