More updates #26
This commit is contained in:
12 files changed
+136
-54
No files matched your search
+8
-5
@@ -61,10 +61,11 @@ import { Jellyfin } from "@jellyfin/sdk";
|
|||||||
import { version as appVer } from "../package.json";
|
import { version as appVer } from "../package.json";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import { delServer, getServer } from "./utils/storage/servers.js";
|
import { delServer, getServer } from "./utils/storage/servers.js";
|
||||||
import { getUser } from "./utils/storage/user.js";
|
import { delUser, getUser } from "./utils/storage/user.js";
|
||||||
|
|
||||||
import { useDispatch } from "react-redux";
|
import { useDispatch } from "react-redux";
|
||||||
import { showSidemenu } from "./utils/slice/sidemenu.js";
|
import { showSidemenu } from "./utils/slice/sidemenu.js";
|
||||||
|
import FavouritePage from "./routes/favourite/root.jsx";
|
||||||
const jellyfin = new Jellyfin({
|
const jellyfin = new Jellyfin({
|
||||||
clientInfo: {
|
clientInfo: {
|
||||||
name: "JellyPlayer",
|
name: "JellyPlayer",
|
||||||
@@ -77,10 +78,7 @@ const jellyfin = new Jellyfin({
|
|||||||
});
|
});
|
||||||
|
|
||||||
event.on("create-jellyfin-api", (serverAddress) => {
|
event.on("create-jellyfin-api", (serverAddress) => {
|
||||||
window.api = jellyfin.createApi(
|
window.api = jellyfin.createApi(serverAddress);
|
||||||
serverAddress,
|
|
||||||
sessionStorage.getItem("accessToken"),
|
|
||||||
);
|
|
||||||
// window.api = jellyfin.createApi(serverAddress);
|
// window.api = jellyfin.createApi(serverAddress);
|
||||||
});
|
});
|
||||||
event.on("set-api-accessToken", (serverAddress) => {
|
event.on("set-api-accessToken", (serverAddress) => {
|
||||||
@@ -262,6 +260,7 @@ function App() {
|
|||||||
|
|
||||||
const handleRemoveServer = async () => {
|
const handleRemoveServer = async () => {
|
||||||
await delServer();
|
await delServer();
|
||||||
|
await delUser();
|
||||||
let result = await relaunch();
|
let result = await relaunch();
|
||||||
console.log(result);
|
console.log(result);
|
||||||
};
|
};
|
||||||
@@ -389,6 +388,10 @@ function App() {
|
|||||||
path="/item/:id"
|
path="/item/:id"
|
||||||
element={<ItemDetail />}
|
element={<ItemDetail />}
|
||||||
/>
|
/>
|
||||||
|
<Route
|
||||||
|
path="/favourite"
|
||||||
|
element={<FavouritePage />}
|
||||||
|
/>
|
||||||
|
|
||||||
{/* Logical Routes */}
|
{/* Logical Routes */}
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ export const Card = ({
|
|||||||
>
|
>
|
||||||
<CardActionArea
|
<CardActionArea
|
||||||
sx={{ p: "1px" }}
|
sx={{ p: "1px" }}
|
||||||
component="div"
|
component={Box}
|
||||||
onClick={
|
onClick={
|
||||||
!!onClickEvent
|
!!onClickEvent
|
||||||
? onClickEvent
|
? onClickEvent
|
||||||
@@ -142,6 +142,7 @@ export const Card = ({
|
|||||||
navigate(`/item/${itemId}`);
|
navigate(`/item/${itemId}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
className="cardBox"
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
className="card-media-container"
|
className="card-media-container"
|
||||||
|
|||||||
@@ -24,8 +24,9 @@
|
|||||||
transition: opacity $transition-time-default;
|
transition: opacity $transition-time-default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:hover .card-media-overlay,
|
&Box:hover .card-media-overlay,
|
||||||
&:focus .card-media-overlay {
|
&Box:focus-within .card-media-overlay,
|
||||||
|
&Box:focus .card-media-overlay {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
&-image {
|
&-image {
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate, Link } from "react-router-dom";
|
||||||
|
// import Link from "@mui/material/Link";
|
||||||
|
|
||||||
import Divider from "@mui/material/Divider";
|
import Divider from "@mui/material/Divider";
|
||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
@@ -52,6 +53,7 @@ export const EpisodeCard = ({
|
|||||||
showName,
|
showName,
|
||||||
episodeLocation,
|
episodeLocation,
|
||||||
centerAlignText = false,
|
centerAlignText = false,
|
||||||
|
parentId,
|
||||||
}) => {
|
}) => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [imgLoading, setImgLoading] = useState(true);
|
const [imgLoading, setImgLoading] = useState(true);
|
||||||
@@ -111,6 +113,7 @@ export const EpisodeCard = ({
|
|||||||
navigate(`/item/${itemId}`);
|
navigate(`/item/${itemId}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
className="cardBox"
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
className="card-media-container"
|
className="card-media-container"
|
||||||
@@ -249,8 +252,19 @@ export const EpisodeCard = ({
|
|||||||
noWrap
|
noWrap
|
||||||
width="fit-content"
|
width="fit-content"
|
||||||
maxWidth="100%"
|
maxWidth="100%"
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
navigate(`/item/${parentId}`);
|
||||||
|
}}
|
||||||
|
sx={{
|
||||||
|
"&:hover": {
|
||||||
|
textDecoration: "underline",
|
||||||
|
},
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{`${showName} - ${episodeLocation}`}
|
{showName}
|
||||||
|
{" - "}
|
||||||
|
{episodeLocation}
|
||||||
</Typography>
|
</Typography>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -402,4 +416,5 @@ EpisodeCard.propTypes = {
|
|||||||
itemTicks: PropTypes.number,
|
itemTicks: PropTypes.number,
|
||||||
itemRating: PropTypes.number,
|
itemRating: PropTypes.number,
|
||||||
centerAlignText: PropTypes.bool,
|
centerAlignText: PropTypes.bool,
|
||||||
|
parentId: PropTypes.any,
|
||||||
};
|
};
|
||||||
@@ -52,7 +52,7 @@ export const CardScroller = ({
|
|||||||
return (
|
return (
|
||||||
<Box className="card-scroller-container" sx={{ mb: 4 }}>
|
<Box className="card-scroller-container" sx={{ mb: 4 }}>
|
||||||
<Box
|
<Box
|
||||||
sx={{ mb: 2 }}
|
sx={{ mb: 1 }}
|
||||||
className={
|
className={
|
||||||
disableDecoration
|
disableDecoration
|
||||||
? `card-scroller-header-container hidden-decoration`
|
? `card-scroller-header-container hidden-decoration`
|
||||||
|
|||||||
@@ -32,6 +32,6 @@
|
|||||||
|
|
||||||
.hidden-decoration {
|
.hidden-decoration {
|
||||||
.card-scroller-heading-decoration {
|
.card-scroller-heading-decoration {
|
||||||
display: hidden;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,8 @@ export const SideMenu = ({}) => {
|
|||||||
console.log("Logging out user...");
|
console.log("Logging out user...");
|
||||||
await window.api.logout();
|
await window.api.logout();
|
||||||
delUser();
|
delUser();
|
||||||
dispatch(hideSidemenu());
|
sessionStorage.removeItem("accessToken");
|
||||||
|
event.emit("create-jellyfin-api", window.api.basePath);
|
||||||
navigate("/login");
|
navigate("/login");
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -230,25 +231,14 @@ export const SideMenu = ({}) => {
|
|||||||
<ListItem
|
<ListItem
|
||||||
className="sidemenu-item-container"
|
className="sidemenu-item-container"
|
||||||
disablePadding
|
disablePadding
|
||||||
>
|
|
||||||
<NavLink
|
|
||||||
to="/home"
|
|
||||||
className={({
|
|
||||||
isActive,
|
|
||||||
isPending,
|
|
||||||
}) =>
|
|
||||||
isPending
|
|
||||||
? "sidemenu-item-pending sidemenu-item"
|
|
||||||
: isActive
|
|
||||||
? "sidemenu-item-active sidemenu-item"
|
|
||||||
: "sidemenu-item"
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<ListItemButton
|
<ListItemButton
|
||||||
|
component={NavLink}
|
||||||
|
to="/home"
|
||||||
|
className="sidemenu-item"
|
||||||
sx={{
|
sx={{
|
||||||
minHeight: 48,
|
minHeight: 48,
|
||||||
justifyContent:
|
justifyContent: "center",
|
||||||
"center",
|
|
||||||
px: 2.5,
|
px: 2.5,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -262,7 +252,6 @@ export const SideMenu = ({}) => {
|
|||||||
<MdiHomeVariantOutline></MdiHomeVariantOutline>
|
<MdiHomeVariantOutline></MdiHomeVariantOutline>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</NavLink>
|
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
const FavouritePage = () => {
|
||||||
|
return <></>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default FavouritePage;
|
||||||
@@ -167,6 +167,8 @@ const Home = () => {
|
|||||||
console.log("Logging out user...");
|
console.log("Logging out user...");
|
||||||
await window.api.logout();
|
await window.api.logout();
|
||||||
delUser();
|
delUser();
|
||||||
|
sessionStorage.removeItem("accessToken");
|
||||||
|
event.emit("create-jellyfin-api", window.api.basePath);
|
||||||
navigate("/login");
|
navigate("/login");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+75
-23
@@ -14,6 +14,7 @@ import Tab from "@mui/material/Tab";
|
|||||||
import Grid2 from "@mui/material/Unstable_Grid2";
|
import Grid2 from "@mui/material/Unstable_Grid2";
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
// import Chip from "@mui/material/Chip";
|
||||||
import { green, pink } from "@mui/material/colors";
|
import { green, pink } from "@mui/material/colors";
|
||||||
|
|
||||||
import { Blurhash } from "react-blurhash";
|
import { Blurhash } from "react-blurhash";
|
||||||
@@ -56,6 +57,7 @@ function TabPanel(props) {
|
|||||||
id={`full-width-tabpanel-${index}`}
|
id={`full-width-tabpanel-${index}`}
|
||||||
aria-labelledby={`full-width-tab-${index}`}
|
aria-labelledby={`full-width-tab-${index}`}
|
||||||
{...other}
|
{...other}
|
||||||
|
style={{ marginTop: "1em" }}
|
||||||
>
|
>
|
||||||
{value === index && <Box>{children}</Box>}
|
{value === index && <Box>{children}</Box>}
|
||||||
</div>
|
</div>
|
||||||
@@ -198,24 +200,8 @@ const ItemDetail = () => {
|
|||||||
refetchOnWindowFocus: true,
|
refetchOnWindowFocus: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const personShows = useQuery({
|
|
||||||
queryKey: ["item", "personShows"],
|
|
||||||
queryFn: async () => {
|
|
||||||
const result = await getItemsApi(window.api).getItems({
|
|
||||||
userId: user.data.Id,
|
|
||||||
personIds: [id],
|
|
||||||
includeItemTypes: [BaseItemKind.Series],
|
|
||||||
recursive: true,
|
|
||||||
sortBy: ["PremiereDate", "ProductionYear", "SortName"],
|
|
||||||
sortOrder: ["Descending"],
|
|
||||||
});
|
|
||||||
return result.data;
|
|
||||||
},
|
|
||||||
enabled: item.isSuccess && item.data.Type == "Person",
|
|
||||||
networkMode: "always",
|
|
||||||
});
|
|
||||||
const personMovies = useQuery({
|
const personMovies = useQuery({
|
||||||
queryKey: ["item", "personMovies"],
|
queryKey: ["item", id, "personMovies"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const result = await getItemsApi(window.api).getItems({
|
const result = await getItemsApi(window.api).getItems({
|
||||||
userId: user.data.Id,
|
userId: user.data.Id,
|
||||||
@@ -230,8 +216,25 @@ const ItemDetail = () => {
|
|||||||
enabled: item.isSuccess && item.data.Type == "Person",
|
enabled: item.isSuccess && item.data.Type == "Person",
|
||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
});
|
});
|
||||||
|
const personShows = useQuery({
|
||||||
|
queryKey: ["item", id, "personShows"],
|
||||||
|
queryFn: async () => {
|
||||||
|
const result = await getItemsApi(window.api).getItems({
|
||||||
|
userId: user.data.Id,
|
||||||
|
personIds: [id],
|
||||||
|
includeItemTypes: [BaseItemKind.Series],
|
||||||
|
recursive: true,
|
||||||
|
sortBy: ["PremiereDate", "ProductionYear", "SortName"],
|
||||||
|
sortOrder: ["Descending"],
|
||||||
|
});
|
||||||
|
return result.data;
|
||||||
|
},
|
||||||
|
enabled: item.isSuccess && item.data.Type == "Person",
|
||||||
|
networkMode: "always",
|
||||||
|
});
|
||||||
|
|
||||||
const personBooks = useQuery({
|
const personBooks = useQuery({
|
||||||
queryKey: ["item", "personBooks"],
|
queryKey: ["item", id, "personBooks"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const result = await getItemsApi(window.api).getItems({
|
const result = await getItemsApi(window.api).getItems({
|
||||||
userId: user.data.Id,
|
userId: user.data.Id,
|
||||||
@@ -247,7 +250,7 @@ const ItemDetail = () => {
|
|||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
});
|
});
|
||||||
const personPhotos = useQuery({
|
const personPhotos = useQuery({
|
||||||
queryKey: ["item", "personPhotos"],
|
queryKey: ["item", id, "personPhotos"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const result = await getItemsApi(window.api).getItems({
|
const result = await getItemsApi(window.api).getItems({
|
||||||
userId: user.data.Id,
|
userId: user.data.Id,
|
||||||
@@ -262,7 +265,7 @@ const ItemDetail = () => {
|
|||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
});
|
});
|
||||||
const personEpisodes = useQuery({
|
const personEpisodes = useQuery({
|
||||||
queryKey: ["item", "personEpisodes"],
|
queryKey: ["item", id, "personEpisodes"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const result = await getItemsApi(window.api).getItems({
|
const result = await getItemsApi(window.api).getItems({
|
||||||
userId: user.data.Id,
|
userId: user.data.Id,
|
||||||
@@ -314,6 +317,34 @@ const ItemDetail = () => {
|
|||||||
|
|
||||||
const personTabs = ["Movies", "TV Shows", "Books", "Photos", "Episodes"];
|
const personTabs = ["Movies", "TV Shows", "Books", "Photos", "Episodes"];
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (
|
||||||
|
personMovies.isSuccess &&
|
||||||
|
personShows.isSuccess &&
|
||||||
|
personBooks.isSuccess &&
|
||||||
|
personPhotos.isSuccess &&
|
||||||
|
personEpisodes.isSuccess
|
||||||
|
) {
|
||||||
|
if (personMovies.data.Items.length != 0) {
|
||||||
|
setActivePersonTab(0);
|
||||||
|
} else if (personShows.data.Items.length != 0) {
|
||||||
|
setActivePersonTab(1);
|
||||||
|
} else if (personBooks.data.Items.length != 0) {
|
||||||
|
setActivePersonTab(2);
|
||||||
|
} else if (personPhotos.data.Items.length != 0) {
|
||||||
|
setActivePersonTab(3);
|
||||||
|
} else if (personEpisodes.data.Items.length != 0) {
|
||||||
|
setActivePersonTab(4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, [
|
||||||
|
personMovies.isLoading,
|
||||||
|
personShows.isLoading,
|
||||||
|
personBooks.isLoading,
|
||||||
|
personPhotos.isLoading,
|
||||||
|
personEpisodes.isLoading,
|
||||||
|
]);
|
||||||
|
|
||||||
if (item.isLoading || similarItems.isLoading) {
|
if (item.isLoading || similarItems.isLoading) {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
@@ -362,7 +393,6 @@ const ItemDetail = () => {
|
|||||||
pb: 3,
|
pb: 3,
|
||||||
position: "relative",
|
position: "relative",
|
||||||
flexFlow: "column",
|
flexFlow: "column",
|
||||||
gap: 1,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box className="item-detail-header" mb={0}>
|
<Box className="item-detail-header" mb={0}>
|
||||||
@@ -434,6 +464,19 @@ const ItemDetail = () => {
|
|||||||
: {}
|
: {}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
<Chip
|
||||||
|
className="card-indicator"
|
||||||
|
label={<MdiCheck />}
|
||||||
|
sx={{
|
||||||
|
transition: "opacity 150ms",
|
||||||
|
opacity: item.data.UserData
|
||||||
|
.Played
|
||||||
|
? 1
|
||||||
|
: 0,
|
||||||
|
top: 5,
|
||||||
|
right: 5,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
{!!item.data.ImageTags.Primary && (
|
{!!item.data.ImageTags.Primary && (
|
||||||
<img
|
<img
|
||||||
src={
|
src={
|
||||||
@@ -691,7 +734,10 @@ const ItemDetail = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
{item.data.Genres != 0 && (
|
{item.data.Genres != 0 && (
|
||||||
<Box className="item-media-container">
|
<Box
|
||||||
|
className="item-media-container"
|
||||||
|
sx={{ mb: 2 }}
|
||||||
|
>
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
gap={1}
|
gap={1}
|
||||||
@@ -800,7 +846,7 @@ const ItemDetail = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{seasons.isSuccess && (
|
{seasons.isSuccess && (
|
||||||
<Box>
|
<Box sx={{ mb: 2 }}>
|
||||||
<Tabs
|
<Tabs
|
||||||
variant="scrollable"
|
variant="scrollable"
|
||||||
scrollButtons="auto"
|
scrollButtons="auto"
|
||||||
@@ -809,6 +855,7 @@ const ItemDetail = () => {
|
|||||||
setCurrentSeason(newVal);
|
setCurrentSeason(newVal);
|
||||||
}}
|
}}
|
||||||
sx={{ mb: 2 }}
|
sx={{ mb: 2 }}
|
||||||
|
selectionFollowsFocus
|
||||||
>
|
>
|
||||||
{seasons.data.Items.map(
|
{seasons.data.Items.map(
|
||||||
(season, index) => {
|
(season, index) => {
|
||||||
@@ -939,6 +986,7 @@ const ItemDetail = () => {
|
|||||||
}}
|
}}
|
||||||
displayCards={8}
|
displayCards={8}
|
||||||
title="Cast"
|
title="Cast"
|
||||||
|
disableDecoration
|
||||||
>
|
>
|
||||||
{item.data.People.map((person, index) => {
|
{item.data.People.map((person, index) => {
|
||||||
return (
|
return (
|
||||||
@@ -1594,6 +1642,9 @@ const ItemDetail = () => {
|
|||||||
mitem.SeriesName
|
mitem.SeriesName
|
||||||
}
|
}
|
||||||
episodeLocation={`S${mitem.ParentIndexNumber}:E${mitem.IndexNumber}`}
|
episodeLocation={`S${mitem.ParentIndexNumber}:E${mitem.IndexNumber}`}
|
||||||
|
parentId={
|
||||||
|
mitem.SeriesId
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</Grid2>
|
</Grid2>
|
||||||
);
|
);
|
||||||
@@ -1615,6 +1666,7 @@ const ItemDetail = () => {
|
|||||||
}}
|
}}
|
||||||
displayCards={8}
|
displayCards={8}
|
||||||
title={`More Like This`}
|
title={`More Like This`}
|
||||||
|
disableDecoration
|
||||||
>
|
>
|
||||||
{similarItems.data.Items.map(
|
{similarItems.data.Items.map(
|
||||||
(simItem, index) => {
|
(simItem, index) => {
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ export const UserLoginManual = () => {
|
|||||||
).getBrandingOptions();
|
).getBrandingOptions();
|
||||||
return result.data;
|
return result.data;
|
||||||
},
|
},
|
||||||
enabled: !window.api,
|
enabled: !!window.api,
|
||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -410,7 +410,6 @@ export const UserLoginManual = () => {
|
|||||||
event.emit("set-api-accessToken", window.api.basePath);
|
event.emit("set-api-accessToken", window.api.basePath);
|
||||||
// setAccessToken(user.data.AccessToken)
|
// setAccessToken(user.data.AccessToken)
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
dispatch(showSidemenu());
|
|
||||||
navigate(`/home`);
|
navigate(`/home`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -216,7 +216,20 @@ export const ServerSetup = (props) => {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
// inputRef={serverIp}
|
// inputRef={serverIp}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
|
if (
|
||||||
|
event.target.value.charAt(
|
||||||
|
event.target.value.length - 1,
|
||||||
|
) == "/"
|
||||||
|
) {
|
||||||
|
setServerIp(
|
||||||
|
event.target.value.slice(
|
||||||
|
0,
|
||||||
|
-1,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
setServerIp(event.target.value);
|
setServerIp(event.target.value);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
helperText="Add your server adddress with https:// or http://"
|
helperText="Add your server adddress with https:// or http://"
|
||||||
></TextField>
|
></TextField>
|
||||||
|
|||||||
Reference in new issue
Block a user