feat: localize UI and improve playback
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- translate the interface into Russian - add picture-in-picture and video fit modes - derive skip segments from Jellyfin chapter markers - align player navigation and add a window drag region - keep audio playback alive across routes
This commit is contained in:
1 parent
5784036eb1
commit
d9bce4de04
100 files changed
+1364
-706
No files matched your search
@@ -9,8 +9,10 @@
|
||||
z-index: 999 !important;
|
||||
top: 0 !important;
|
||||
|
||||
// Keep the left controls clear of the macOS traffic lights.
|
||||
// Keep the left controls clear of the macOS traffic lights and put the
|
||||
// header row on the same level as them.
|
||||
html.is-macos & {
|
||||
padding-top: 0.6rem;
|
||||
padding-left: calc(#{$page-margin} - 1.7em + 72px);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,9 +76,9 @@ const AppBarContent = () => {
|
||||
|
||||
const fallbackTitle = (() => {
|
||||
const path = location.pathname;
|
||||
if (path === "/favorite") return "Favorites";
|
||||
if (path.startsWith("/music/")) return "Music";
|
||||
if (path.startsWith("/player/audio")) return "Now Playing";
|
||||
if (path === "/favorite") return "Избранное";
|
||||
if (path.startsWith("/music/")) return "Музыка";
|
||||
if (path.startsWith("/player/audio")) return "Сейчас играет";
|
||||
return "";
|
||||
})();
|
||||
const title = pageTitle || fallbackTitle;
|
||||
@@ -100,14 +100,14 @@ const AppBarContent = () => {
|
||||
data-tauri-drag-region
|
||||
style={{ gap: "0.6em" }}
|
||||
>
|
||||
<Tooltip title="Open navigation">
|
||||
<IconButton onClick={handleDrawerOpen} aria-label="Open navigation">
|
||||
<Tooltip title="Открыть меню">
|
||||
<IconButton onClick={handleDrawerOpen} aria-label="Открыть меню">
|
||||
<span className="material-symbols-rounded">menu</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<MemoizeBackButton />
|
||||
<Tooltip title="Home">
|
||||
<IconButton onClick={handleNavigateToHome} aria-label="Home">
|
||||
<Tooltip title="Главная">
|
||||
<IconButton onClick={handleNavigateToHome} aria-label="Главная">
|
||||
<span
|
||||
className={
|
||||
location.pathname === "/home"
|
||||
@@ -132,24 +132,24 @@ const AppBarContent = () => {
|
||||
data-tauri-drag-region
|
||||
style={{ gap: "0.6em" }}
|
||||
>
|
||||
<Tooltip title="Watch together">
|
||||
<Tooltip title="Смотреть вместе">
|
||||
<IconButton
|
||||
onClick={openSyncPlayDialog}
|
||||
aria-label="Watch together"
|
||||
aria-label="Смотреть вместе"
|
||||
>
|
||||
<span className="material-symbols-rounded">groups</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<CastButton />
|
||||
<Tooltip title="Search">
|
||||
<IconButton onClick={toggleSearchDialog} aria-label="Search">
|
||||
<Tooltip title="Поиск">
|
||||
<IconButton onClick={toggleSearchDialog} aria-label="Поиск">
|
||||
<span className="material-symbols-rounded">search</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<Tooltip title="Favorites">
|
||||
<Tooltip title="Избранное">
|
||||
<IconButton
|
||||
onClick={handleNavigateToFavorite}
|
||||
aria-label="Favorites"
|
||||
aria-label="Избранное"
|
||||
>
|
||||
<span className="material-symbols-rounded">favorite</span>
|
||||
</IconButton>
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function AppBarBackOnly() {
|
||||
edge="start"
|
||||
//@ts-ignore
|
||||
color="white"
|
||||
aria-label="back"
|
||||
aria-label="Назад"
|
||||
disabled={history.length <= 1}
|
||||
onClick={handleBack}
|
||||
sx={{ mr: 2 }}
|
||||
|
||||
@@ -63,7 +63,7 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
||||
<ListItem>
|
||||
<ListItemButton onClick={onClose}>
|
||||
<span className="material-symbols-rounded">menu_open</span>
|
||||
<div style={{ marginLeft: "8px" }}>Close</div>
|
||||
<div style={{ marginLeft: "8px" }}>Закрыть</div>
|
||||
</ListItemButton>
|
||||
</ListItem>
|
||||
</List>
|
||||
@@ -72,14 +72,14 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
||||
variant="overline"
|
||||
sx={{ display: "block", px: 2, pt: 1.5, opacity: 0.55 }}
|
||||
>
|
||||
Browse
|
||||
Обзор
|
||||
</Typography>
|
||||
<List>
|
||||
<ListItemLink
|
||||
className="library-drawer-item"
|
||||
to="/home"
|
||||
icon="home"
|
||||
primary="Home"
|
||||
primary="Главная"
|
||||
onClick={onClose}
|
||||
/>
|
||||
<ListItemLink
|
||||
@@ -87,14 +87,14 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
||||
to="/search"
|
||||
search={{ query: "" }}
|
||||
icon="search"
|
||||
primary="Search"
|
||||
primary="Поиск"
|
||||
onClick={onClose}
|
||||
/>
|
||||
<ListItemLink
|
||||
className="library-drawer-item"
|
||||
to="/favorite"
|
||||
icon="favorite"
|
||||
primary="Favorites"
|
||||
primary="Избранное"
|
||||
onClick={onClose}
|
||||
/>
|
||||
{libraries.isSuccess &&
|
||||
@@ -107,7 +107,7 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
||||
icon={
|
||||
library.CollectionType && getTypeIcon(library.CollectionType)
|
||||
}
|
||||
primary={library.Name ?? "Library"}
|
||||
primary={library.Name ?? "Библиотека"}
|
||||
onClick={onClose}
|
||||
/>
|
||||
))}
|
||||
@@ -117,27 +117,27 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
||||
variant="overline"
|
||||
sx={{ display: "block", px: 2, pt: 1.5, opacity: 0.55 }}
|
||||
>
|
||||
Settings
|
||||
Настройки
|
||||
</Typography>
|
||||
<List>
|
||||
<ListItemLink
|
||||
to="/settings/preferences"
|
||||
icon="settings"
|
||||
primary="Settings"
|
||||
primary="Настройки"
|
||||
className="library-drawer-item"
|
||||
onClick={onClose}
|
||||
/>
|
||||
<ListItemLink
|
||||
to="/settings/changeServer"
|
||||
icon="dns"
|
||||
primary="Change Server"
|
||||
primary="Сменить сервер"
|
||||
className="library-drawer-item"
|
||||
onClick={onClose}
|
||||
/>
|
||||
<ListItemLink
|
||||
to="/settings/about"
|
||||
icon="info"
|
||||
primary="About"
|
||||
primary="О приложении"
|
||||
className="library-drawer-item"
|
||||
onClick={onClose}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user