Fix images
No files matched your search
|
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 451 KiB After Width: | Height: | Size: 451 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 23 KiB |
@@ -35,6 +35,9 @@ import { useDrawerStore } from "../../utils/store/drawer";
|
|||||||
import { delServer } from "../../utils/storage/servers";
|
import { delServer } from "../../utils/storage/servers";
|
||||||
import { delUser } from "../../utils/storage/user";
|
import { delUser } from "../../utils/storage/user";
|
||||||
import { MdiDelete } from "../icons/mdiDelete";
|
import { MdiDelete } from "../icons/mdiDelete";
|
||||||
|
|
||||||
|
import logo from "../../assets/logo.png";
|
||||||
|
|
||||||
export const AppBar = () => {
|
export const AppBar = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
@@ -100,7 +103,7 @@ export const AppBar = () => {
|
|||||||
if (display) {
|
if (display) {
|
||||||
return (
|
return (
|
||||||
<MuiAppBar
|
<MuiAppBar
|
||||||
sx={{
|
style={{
|
||||||
backgroundColor: "transparent",
|
backgroundColor: "transparent",
|
||||||
paddingRight: "0 !important",
|
paddingRight: "0 !important",
|
||||||
}}
|
}}
|
||||||
@@ -140,17 +143,11 @@ export const AppBar = () => {
|
|||||||
>
|
>
|
||||||
<MdiArrowLeft />
|
<MdiArrowLeft />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
</div>
|
||||||
<TextField
|
<div style={{ display: "flex", gap: "1.2em" }}>
|
||||||
variant="outlined"
|
<IconButton disabled>
|
||||||
placeholder="Search..."
|
|
||||||
size="small"
|
|
||||||
/>
|
|
||||||
<IconButton>
|
|
||||||
<MdiMagnify />
|
<MdiMagnify />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</div>
|
|
||||||
<div style={{ display: "flex", gap: "2em" }}>
|
|
||||||
<IconButton disabled>
|
<IconButton disabled>
|
||||||
<MdiHeartOutline />
|
<MdiHeartOutline />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
backdrop-filter $transition-time-fast,
|
backdrop-filter $transition-time-fast,
|
||||||
box-shadow $transition-time-default !important;
|
box-shadow $transition-time-default !important;
|
||||||
&.backdropVisible {
|
&.backdropVisible {
|
||||||
background-color: $clr-background-dark-opacity-0_8;
|
background-color: $clr-background-dark-opacity-0_8 !important;
|
||||||
backdrop-filter: blur(30px);
|
backdrop-filter: blur(30px);
|
||||||
}
|
}
|
||||||
&-avatar {
|
&-avatar {
|
||||||
@@ -14,6 +14,9 @@
|
|||||||
fill: url(#clr-gradient-default) !important;
|
fill: url(#clr-gradient-default) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&-logo {
|
||||||
|
height: 1.8em !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.appLoading {
|
.appLoading {
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ import Chip from "@mui/material/Chip";
|
|||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
|
|
||||||
import { yellow } from "@mui/material/colors";
|
import { yellow } from "@mui/material/colors";
|
||||||
|
import ErrorBoundary from "../errorBoundary";
|
||||||
import { ErrorBoundary } from "react-error-boundary";
|
|
||||||
|
|
||||||
import CarouselSlideError from "../errors/carousel";
|
import CarouselSlideError from "../errors/carousel";
|
||||||
import { MdiStar } from "../icons/mdiStar";
|
import { MdiStar } from "../icons/mdiStar";
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
class ErrorBoundary extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = { hasError: false };
|
||||||
|
}
|
||||||
|
|
||||||
|
static getDerivedStateFromError(error) {
|
||||||
|
// Update state so the next render will show the fallback UI.
|
||||||
|
return { hasError: true };
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidCatch(error, info) {
|
||||||
|
// Example "componentStack":
|
||||||
|
// in ComponentThatThrows (created by App)
|
||||||
|
// in ErrorBoundary (created by App)
|
||||||
|
// in div (created by App)
|
||||||
|
// in App
|
||||||
|
logErrorToMyService(error, info.componentStack);
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
if (this.state.hasError) {
|
||||||
|
// You can render any custom fallback UI
|
||||||
|
return this.props.fallback;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.props.children;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default ErrorBoundary;
|
||||||