Skip to content

Commit

Permalink
chore: update version to 0.0.5-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
prayag17 committed Mar 17, 2024
1 parent b0a32c6 commit bb89093
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 70 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jellyplayer",
"private": true,
"version": "0.0.4-dev",
"version": "0.0.5-dev",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jellyplayer"
version = "0.0.4-dev"
version = "0.0.5-dev"
description = "A Modern Jellyfin Client"
authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"]
license = "GPL-3.0-only"
Expand Down
138 changes: 70 additions & 68 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {

import { relaunch } from "@tauri-apps/api/process";
import {
UpdateManifest,
type UpdateManifest,
checkUpdate,
installUpdate,
} from "@tauri-apps/api/updater";
Expand Down Expand Up @@ -124,7 +124,7 @@ import {
getServer,
setDefaultServer,
} from "./utils/storage/servers";
import { UserStore, delUser, getUser } from "./utils/storage/user";
import { type UserStore, delUser, getUser } from "./utils/storage/user";
import { axiosClient, createApi, useApi } from "./utils/store/api";

const handleAuthError = async () => {
Expand Down Expand Up @@ -449,72 +449,74 @@ function AppReady() {
{audioPlayerVisible && <AudioPlayer />}
<ErrorBoundary FallbackComponent={ErrorNotice} key={location.key}>
<Routes location={location}>
<Route path="/" element={<Navigate to={initialRoute} />} />
<Route
path="/error"
element={
<Dialog
open
onClose={handleRelaunch}
aria-labelledby="alert-dialog-text"
aria-describedby="alert-dialog-desc"
maxWidth="md"
>
<DialogTitle id="alert-dialog-text">
Unable to reach server
</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-desc">
Unable to connect to the jellyfin server.
</DialogContentText>
</DialogContent>
<DialogActions>
<Button
color="secondary"
variant="contained"
onClick={() => navigate("/servers/list")}
>
Change Server
</Button>
<Button
variant="contained"
color="primary"
onClick={handleRelaunch}
>
Restart JellyPlayer
</Button>
</DialogActions>
</Dialog>
}
/>
<Route path="/login/index" element={<LoginRoute />} />

<Route path="/home" element={<Home />} />
<Route path="/setup/server" element={<ServerSetup />} />
<Route path="/servers/list" element={<ServerList />} />
<Route
path="/login/withImg/:userName/:userId/"
element={<LoginWithImage />}
/>
<Route path="/login/users" element={<UserLogin />} />
<Route path="/login/manual" element={<UserLoginManual />} />
<Route path="/library/:id" element={<LibraryView />} />
<Route path="/item/:id" element={<ItemDetail />} />
<Route
path="/musicalbum/:id"
element={<MusicAlbumTitlePage />}
errorElement={<div>Error</div>}
/>
<Route path="/artist/:id" element={<ArtistTitlePage />} />
<Route path="/boxset/:id" element={<BoxSetTitlePage />} />
<Route path="/episode/:id" element={<EpisodeTitlePage />} />
<Route path="/person/:id" element={<PersonTitlePage />} />
<Route path="/playlist/:id" element={<PlaylistTitlePage />} />
<Route path="/series/:id" element={<SeriesTitlePage />} />
<Route path="/search" element={<SearchPage />} />
<Route path="/favorite" element={<FavoritePage />} />
<Route path="/about" element={<About />} />
<Route path="/player" element={<VideoPlayer />} />
<Route key={location.key}>
<Route path="/" element={<Navigate to={initialRoute} />} />
<Route
path="/error"
element={
<Dialog
open
onClose={handleRelaunch}
aria-labelledby="alert-dialog-text"
aria-describedby="alert-dialog-desc"
maxWidth="md"
>
<DialogTitle id="alert-dialog-text">
Unable to reach server
</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-desc">
Unable to connect to the jellyfin server.
</DialogContentText>
</DialogContent>
<DialogActions>
<Button
color="secondary"
variant="contained"
onClick={() => navigate("/servers/list")}
>
Change Server
</Button>
<Button
variant="contained"
color="primary"
onClick={handleRelaunch}
>
Restart JellyPlayer
</Button>
</DialogActions>
</Dialog>
}
/>
<Route path="/login/index" element={<LoginRoute />} />

<Route path="/home" element={<Home />} />
<Route path="/setup/server" element={<ServerSetup />} />
<Route path="/servers/list" element={<ServerList />} />
<Route
path="/login/withImg/:userName/:userId/"
element={<LoginWithImage />}
/>
<Route path="/login/users" element={<UserLogin />} />
<Route path="/login/manual" element={<UserLoginManual />} />
<Route path="/library/:id" element={<LibraryView />} />
<Route path="/item/:id" element={<ItemDetail />} />
<Route
path="/musicalbum/:id"
element={<MusicAlbumTitlePage />}
errorElement={<div>Error</div>}
/>
<Route path="/artist/:id" element={<ArtistTitlePage />} />
<Route path="/boxset/:id" element={<BoxSetTitlePage />} />
<Route path="/episode/:id" element={<EpisodeTitlePage />} />
<Route path="/person/:id" element={<PersonTitlePage />} />
<Route path="/playlist/:id" element={<PlaylistTitlePage />} />
<Route path="/series/:id" element={<SeriesTitlePage />} />
<Route path="/search" element={<SearchPage />} />
<Route path="/favorite" element={<FavoritePage />} />
<Route path="/about" element={<About />} />
<Route path="/player" element={<VideoPlayer />} />
</Route>
</Routes>
</ErrorBoundary>
</div>
Expand Down

0 comments on commit bb89093

Please sign in to comment.