Start working on new server page #202

This commit is contained in:
Prayag Prajapati committed 2023-10-10 22:15:56 +05:30
1 parent 0e774ebc8c
commit 7e7535edfb
5 files changed
+161 -107

No files matched your search

+5 -11
View File
@@ -98,6 +98,7 @@ import PlaylistTitlePage from "./routes/playlist/index.jsx";
// Initial custom axios client to use tauri's http module
import axios from "axios";
import axiosTauriApiAdapter from "axios-tauri-api-adapter";
import { useApi } from "./utils/store/api.js";
export const axiosClient = axios.create({
adapter: axiosTauriApiAdapter,
@@ -170,12 +171,6 @@ const AnimationWrapper = () => {
function App() {
const navigate = useNavigate();
useEffect(() => {
document
.querySelector(".app-loading")
.setAttribute("style", "display:none");
}, []);
const [serverReachable, setServerReachable] = useState(true);
const [playbackDataLoading] = usePlaybackDataLoadStore((state) => [
@@ -486,6 +481,10 @@ function App() {
path="/"
element={<LogicalRoutes />}
/>
<Route
path="/login"
element={<LoginLogicalRoutes />}
/>
<Route path="/home" element={<Home />} />
<Route
@@ -569,11 +568,6 @@ function App() {
path="/player"
element={<VideoPlayer />}
/>
<Route
path="/login"
element={<LoginLogicalRoutes />}
/>
</Route>
</Routes>
</div>