Start working on new server page #202
This commit is contained in:
5 files changed
+161
-107
No files matched your search
+5
-11
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user