Compare commits

..
322 Commits
Author SHA1 Message Date
1xDed cbb750a413 update
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 0s
Continuous Integration / build (macos-latest) (push) Skipped
2026-12-02 08:37:23 +03:00
1xDed 7fb3d6cfa4 feat(mobile): add dev phone preview and system-bar safe areas
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
2026-12-01 20:20:53 +03:00
1xDed c15742ff2a feat(android): add mobile entry point and arm64 release build
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
- split Tauri setup into lib.rs with mobile_entry_point
- gate desktop-only qBittorrent, updater, window-state and shortcuts
- add the generated Android project with release signing configuration
2026-12-01 19:23:36 +03:00
1xDed 336dbefe74 fix(player): hide the floating bar on the full player route
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
The reference redesign accidentally dropped the player-full-open rule, so the
mini bar stayed visible under the full-screen player. Restore the hide rule.
2026-12-01 18:23:00 +03:00
1xDed 5c773841f7 feat(player): match the floating bar to the reference
Continuous Integration / build_web (push) Failing after 0s
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
- charcoal glass capsule with a circular sleeve and minimal transport
- one seek line with current and total time
- monochrome like, shuffle, repeat and mute actions on the right;
  removed the extra queue/device/expand controls
2026-12-01 18:20:34 +03:00
1xDed 94decd674c feat(player): restyle the floating media bar as liquid glass
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
- cover-tinted translucent surface with a specular rim, grain and glow
- centered transport dock and right-hand control capsule
- adaptive accent colour, glass cover treatment and shared artwork
  between the bar and the full player
2026-12-01 18:06:36 +03:00
1xDed 72909fd3b2 feat(ui): animate page transitions and scroll long menus
Continuous Integration / build_web (push) Failing after 0s
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
- richer view-transition crossfade with lift and blur, reduced-motion safe
- navigation drawer scrolls with a sticky close action and compact rows on
  short windows
- settings sidebar scrolls independently when the window is short
2026-12-01 16:38:56 +03:00
1xDed 785f64a72e fix(window): restore first-click titlebar dragging
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 / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- update wry 0.57.0 -> 0.57.4, which drops the WM_ENTERSIZEMOVE focus
  call that swallowed the first drag on Windows
- let the global drag handler take clicks on non-interactive children of
  data-tauri-drag-region elements (title text, logo), with double-click
  maximize
2026-12-01 16:23:52 +03:00
1xDed daa1c3f007 fix(downloads): keep the UI responsive while saving settings
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
- run all qBittorrent commands on the async runtime
- call the OS keyring and write settings outside the state mutex
- load the stored secret lazily instead of during Tauri setup
2026-12-01 14:19:00 +03:00
1xDed 87315d9679 feat(downloads): add qBittorrent integration
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
- Rust client for the WebUI API: password/API-key auth, categories,
  magnet and .torrent add, sync polling, pause/resume/delete
- downloads page with progress, speed, ETA, filters, notifications and
  per-torrent actions
- settings page with OS keyring storage, self-signed TLS, Jellyfin
  refresh and polling options
- cross-platform keyring setup for Windows, macOS and Linux
2026-12-01 12:56:53 +03:00
1xDed fe30c4f1f9 docs: make the qBittorrent plan cross-platform
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
- keyring on Windows/macOS/Linux with a session-only fallback when no
  Secret Service is available
- cross-platform requirements: paths, file dialogs, notifications, titlebar,
  packaging and mobile widths
- per-OS test matrix and acceptance criteria
2026-12-01 12:08:27 +03:00
1xDed ae1f312e84 feat(font): use Medeo Mono for code and stats
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Bundle the Medeo Mono variable webfonts and replace the remaining monospace fallbacks so every text style belongs to the Medeo family.
2026-12-01 12:02:05 +03:00
1xDed ed91735b2b feat(font): use local Medeo Sans everywhere
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Bundle the Medeo Sans variable webfonts, set them as the default UI and theme font, and update the home wordmark, remote page and filter dialog. Include the OFL license.
2026-12-01 11:58:52 +03:00
1xDed 5776b7c0d2 docs: add qBittorrent integration plan
Continuous Integration / build (windows-latest) (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 / nightly_release (push) Skipped
- magnet / .torrent add flow with categories and per-item download status
- complete WebUI API reference (auth, categories, add, sync, controls)
- settings, architecture, UI, polling, edge cases, tests and phases
2026-12-01 11:57:59 +03:00
1xDed 2e099ecafa feat(mobile): adapt every page to phone widths
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / nightly_release (push) Skipped
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
Compact headers and dialogs, two-column grids, responsive item heroes, player controls, settings tabs, login and server setup screens.
2026-12-01 11:32:01 +03:00
1xDed d80db29a02 fix(player): stop the cover flicker after the crossfade
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- the incoming sleeve keeps its static class after the old one is removed, so
  its fade-in animation no longer restarts ~0.6s later (the flicker)
2026-12-01 11:09:32 +03:00
1xDed 8e9e5eeff2 fix(player): keep the new cover opaque during the crossfade
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
- the incoming sleeve no longer fades in from zero while the old one fades
  out, so the artwork does not dim mid-transition
2026-12-01 11:04:08 +03:00
1xDed 4b67c94494 feat(player): plain crossfade between covers
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
- dropped the SVG turbulence/displacement filter entirely
- the previous sleeve now simply dissolves over the next one, 0.55s ease
- cover swap still waits for the new image to load
2026-12-01 11:02:11 +03:00
1xDed f20578a552 feat(player): liquid crossfade when the cover changes
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- the previous sleeve stays while the next one loads, then both melt under an SVG turbulence/displacement filter during a soft crossfade with a light zoom
- kept subtle: small displacement, slow single-octave noise and an 0.8s transition
2026-12-01 10:54:57 +03:00
1xDed ae1e81d8d8 fix(music): crossfade the player background between tracks
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
2026-12-01 08:53:40 +03:00
1xDed 4d85f09003 fix(music): align the queue panel with the album cover
Continuous Integration / build (windows-11-arm) (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-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
2026-12-01 08:46:38 +03:00
1xDed 6bd2106f3d fix(music): queue the whole songs list from track rows
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
2026-12-01 08:27:27 +03:00
1xDed 5f5803c9f8 feat: add gamepad navigation and music library improvements
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
- add TV/gamepad spatial navigation, focus ring and back/select controls
- cache artwork persistently and add music cover placeholders
- add compact songs list, shuffle-all queue and library error recovery
- polish remote control layout and optimistic seek timeline
2026-12-01 04:24:56 +03:00
1xDed 04ab9f767b chore(dev): enable the Tauri MCP bridge for debugging
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 0s
- dev-only config with withGlobalTauri and the mcp-bridge capability
- tauri:dev:mcp script runs the app with the bridge feature
- explicit capability list keeps the MCP permission out of release builds
2026-12-01 02:48:48 +03:00
1xDed e93de2beea feat(remote): remote control page for another Jellyfin client
- device list with live sessions, now-playing poster, metadata and overview
- five round transport buttons, seek bar, subtitles menu, volume, quality and fullscreen
- cover-derived wall colour, app accent and a compact service bar
- reachable from the app bar, the drawer and the audio player menu
2026-12-01 02:48:28 +03:00
1xDed 9f314582c0 feat(music): redesign the music section around the player
- album, playlist and artist pages share one layout: sleeve with a record edge, large title, metadata, full-width track list and an about block
- full-screen player: wall colour from the cover's blurhash, large sleeve, transport at the bottom, queue sliding out from under the cover
- queue rows show current/upcoming tracks with covers, hearts and durations; lyrics open in the same panel
- bottom bar follows: floating capsule, white play button and accent progress
- artist page rebuilt with a round portrait, tabs and an album grid
- music library gets a calmer grid and an aligned alphabet rail
2026-12-01 02:48:05 +03:00
1xDed fcf61012db fix(ui): unify titlebar and playback state
- window buttons live in the page header on library/search pages and in a shared chrome strip where a page has no header; removed the 44px root padding toggle that made pages jump on navigation
- video player gets its own titlebar row with window controls; the audio player hides the global app bar
- starting a video stops music and vice versa; a single track queues the rest of its album, or the artist's songs when AlbumId is missing
- album page no longer crashes on albums without AlbumArtists
- queue summary is localized
2026-12-01 02:47:40 +03:00
1xDed d9bce4de04 feat: localize UI and improve playback
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (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
2026-11-30 19:19:51 +03:00
1xDed 5784036eb1 fix(realtime): report playback stopped after a remote Stop
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
A remote Stop paused and reset the local player but left the server session showing a stale NowPlayingItem. Report PlaybackStopped with the last item, source, play session and position.
2026-11-29 08:47:13 +03:00
1xDed e89932fc7d fix(syncplay): report latency pings for timely commands
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
SyncPlay expects Ping as a latency in milliseconds, not a timestamp. Date.now() was clamped to 10s and delayed scheduled unpause/seek commands. Send a 50 ms latency every 3 seconds while in a group.
2026-11-29 08:41:08 +03:00
1xDed 31826f1098 fix(realtime): reconnect a dropped Jellyfin websocket
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Add a watchdog that reconnects when the server stops delivering messages and retry on window focus/online. Reverse proxies can drop an idle socket without emitting a close event, leaving the session uncontrollable (SupportsRemoteControl=false).
2026-11-29 08:30:03 +03:00
1xDed 5746bf35a5 feat: add cross-device playback and remote control
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 0s
- native SyncPlay groups with shared queues, ready/buffering and local pause/seek reporting
- follow-me prompt that transfers another session's playback to this device
- auto-skip intros/recaps and skip-credits for final items
- blink:// deep links with timestamped scene sharing via QR
- Quick Connect approval and QR onboarding from a phone
- Rust WebSocket client with Authorization header for Jellyfin 12, capabilities advertising, live sessions and remote commands
2026-11-29 08:03:21 +03:00
1xDed cb5ee9b672 fix(navigation): align page headers with the home header level
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Pins the library header to the top of the window instead of letting it float lower in the page, matches the home row's insets including the macOS traffic-light offset, keeps the scrolled pill surface above the grid, and gives the global app bar the same top padding for consistent header levels.
2026-11-28 18:12:11 +03:00
1xDed 7c5fa8f869 feat(navigation): clearer labels, context and direct destinations
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Shows the current page in the app bar, labels every top-level icon action, adds Search/Favorites and a Shows shortcut to the main navigation, removes the redundant search icon on the search page, and cleans up page titles on leave.
2026-11-28 17:47:35 +03:00
1xDed b592680006 feat(splash): use the home-page wordmark without the icon
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
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
Inlines the Caveat Blink wordmark as a data URI for instant paint, removes the gradient icon and duplicate text, and keeps a subtle opacity pulse (disabled for reduced motion).
2026-11-28 17:36:29 +03:00
1xDed e5f1ff34ed test(startup): expose startup performance marks and clear cache on auth loss
Continuous Integration / build_web (push) Failing after 0s
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
Marks splash/session/render/home timings in production as well, and drops cached home data when the session is rejected.
2026-11-28 17:30:39 +03:00
1xDed 6a1467e864 perf(startup): split routes, defer background work and relax dev prebundle
Continuous Integration / build_web (push) Failing after 0s
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
Enables TanStack Router automatic route code splitting, preloads routes on intent, skips random search suggestions and update checks during the first paint, registers the search hotkey once, and stops forcing a full Vite dependency re-optimization on every dev launch.
2026-11-28 17:19:04 +03:00
1xDed 205b655d00 perf(startup): instant splash, cached home and non-blocking auth
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / nightly_release (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
Renders a static branded splash immediately, restores the last user/API session from disk, hydrates home/library queries from localStorage, shows a home skeleton while the first request runs, drops blocking auth network checks, and redirects a streamless /player to home.
2026-11-28 17:08:08 +03:00
1xDed b1d9b40def feat(window): drag the frameless window from any page
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Adds a global titlebar drag zone for pages without a header drag region, while leaving buttons, inputs, menus, sliders, resize handles and native drag regions untouched.
2026-11-28 16:37:16 +03:00
1xDed 610a7e4dbf feat(ui): fast page transitions with View Transitions
Continuous Integration / build_web (push) Failing after 0s
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 (macos-latest) (push) Skipped
Cross-fades page changes in 160ms on compositor, skips transitions for search query updates, and removes the item-detail fade that would make the new snapshot start blank.
2026-11-28 16:29:09 +03:00
1xDed 0d2edcab3d fix(ui): compact library/search titlebars and reliable local stop
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 0s
Continuous Integration / build (macos-latest) (push) Skipped
Library/search headers no longer overflow at narrow widths and use the shared titlebar strip outside macOS. Transferring a local video now pauses it before reporting it stopped, preventing a ghost playback session.
2026-11-28 02:40:42 +03:00
1xDed 5b4efd20c0 fix(playback): stop local video after transferring it away
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / nightly_release (push) Skipped
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
Report playback stopped before clearing the local video state, so the old Blink session does not linger as playing after a transfer.
2026-11-28 02:31:18 +03:00
1xDed 67c69208c4 fix(ui): about page header and clean typecheck
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 0s
Separates the logo from the version label, keeps the support button above the player bar, and disables declaration emit for this app so tsc --noEmit passes cleanly.
2026-11-28 02:18:36 +03:00
1xDed 23cdfb010d fix(ui): search results, navigation and window controls on headers
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 / nightly_release (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Search queries no longer cache empty results while auth is restoring, the search header gets a working navigation drawer, and library/search headers include the custom window controls on Windows/Linux. Idle remote-session polling is reduced.
2026-11-28 02:14:47 +03:00
1xDed 3cfa52ffc9 fix(player): keep transferred video at its start position
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
The HLS wrapper can reset to the manifest start after a seek. Track and re-apply the pending transfer/resume target for 15 seconds, read progress from the real video element, and let a manual seek cancel the pending target.
2026-11-28 01:57:47 +03:00
1xDed 75b4ddd598 fix(auth): do not log out on transient network errors
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 0s
Only 401/403 clears the saved session; other failures keep the token. Routes without a token now redirect to login instead of showing a permanent spinner.
2026-11-28 01:44:00 +03:00
1xDed ae5a2133fa chore: window resize handles, UI cleanup and type fixes
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Adds edge resize handles for frameless Windows/Linux windows, reserves space for the custom titlebar, and fixes assorted unused imports, error-boundary typing and image decoding hints.
2026-11-28 01:37:33 +03:00
1xDed 6675a55957 feat: cross-platform titlebar, video transfers and client cleanup
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
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 / nightly_release (push) Skipped
Adds frameless-window controls for Windows/Linux (native traffic lights on macOS), keeps transfers at the current position for video, lets the video player use the same sync/device controls as the media bar, and removes dead code plus assorted UI/perf issues.
2026-11-28 01:31:16 +03:00
1xDed 4bdd0139bf feat(playback): keep transfer position and sync devices
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Transfers now start the current item first in the queue and send a corrective Seek for clients that ignore StartPositionTicks. Adds a Sync playback mode that keeps other sessions playing the same item aligned with the active device.
2026-11-28 00:31:03 +03:00
1xDed df392eb647 feat(home): hand-drawn Blink wordmark
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Replaces the neon logo with a marker-style wordmark (Caveat, bundled locally) and a quick doodled eye mark, matching the requested hand-lettered look.
2026-11-27 19:19:36 +03:00
1xDed 5aaa3435da fix(home): flush top and side edges of the cinema frame
Continuous Integration / build_web (push) Failing after 1s
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 (macos-latest) (push) Skipped
The home frame now reaches the top, left and right window edges, with the bottom inset kept. The macOS header clears the traffic lights, the left arrow no longer overlaps the copy, and the hero rail reserves space from the bar's real visibility instead of its lingering DOM node.
2026-11-27 19:04:09 +03:00
1xDed 0f80d4db4e feat(home): self-hosted neon wordmark font
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Adds Tilt Neon as the Blink wordmark: handwritten neon feel with a technical edge. The font is bundled from @fontsource (no Google Fonts requests) and only used for the home logo. Also keeps the hero copy usable on short windows with the player bar visible.
2026-11-27 18:56:41 +03:00
1xDed 4a0cb46734 fix(home): keep hero actions clear of the trending rail
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Reserve room for the resume-time caption and keep the frame on an opaque background.
2026-11-27 18:43:25 +03:00
1xDed d5c1bfac64 feat(home): cinematic rounded home page with integrated hero
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
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
Home is now a floating rounded window: an integrated header over full-bleed artwork, a large featured title with actions, and a Trending now rail that switches the hero. Existing home sections continue below in the same frame.
2026-11-27 18:42:19 +03:00
1xDed affbd00157 feat(ui): overlay page scrollbar that takes no layout space
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Hides the native page scrollbar and draws a fixed overlay thumb, so content no longer shifts when it appears. The thumb is driven by a CSS scroll timeline where supported, with a lightweight scroll-listener fallback, to keep scrolling smooth.
2026-11-27 18:29:54 +03:00
1xDed e39a5c70c0 chore: remove TanStack DevTools overlay
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Drops the floating palm trigger and its magnetic-mode overlay from the app, along with the unused devtools packages.
2026-11-27 18:15:19 +03:00
1xDed c80d13744d feat: shuffle, repeat and volume for remote playback
Continuous Integration / build_web (push) Failing after 0s
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
Use SendFullGeneralCommand with SetShuffleQueue, SetRepeatMode and SetVolume,
reflecting PlayState.PlaybackOrder/RepeatMode/VolumeLevel. The media bar now
shows these controls in remote mode like it does locally.
2026-11-27 17:56:34 +03:00
1xDed 5994b94406 fix: label remote playback in the media bar
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 0s
2026-11-27 15:14:38 +03:00
1xDed a1af85dd72 feat: unify remote control into a Spotify-like media bar
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- one bottom bar for local playback and remote devices, replacing the separate
  remote strip
- minimal layout from the reference: cover/title/more, transport, seek times,
  queue/devices/volume/expand; extra actions in the overflow and device menus
- selecting a device transfers playback (local<->remote) with position/queue
- remote mode drives the session via playstate commands; local keeps
  shuffle/repeat/volume/queue
2026-11-27 15:12:36 +03:00
1xDed ffdedc7b9b fix: type narrowing for the remote session id
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
2026-11-27 14:57:01 +03:00
1xDed 289ac4958d fix: refresh the remote session position before transfer
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
The bar polls every 5s; re-read the session at transfer time so a recent seek or
progress update is used. Remove the temporary dev test harness.
2026-11-27 14:55:54 +03:00
1xDed a07ae9b264 fix: return to login when the stored token is revoked
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Verify the saved access token in the /_api guard (it was commented out) and
clear storage/redirect to /login/manual on 401. Also catch fetchCurrentUser
failures during startup.
2026-11-27 14:40:51 +03:00
1xDed dd0bf8b493 fix: actually apply the transferred audio position
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
The loadedmetadata handler still only updated media session state; seek to the
remote PositionTicks before that.
2026-11-27 14:34:50 +03:00
1xDed 5ca4694c2b fix: transfer starts at the remote position
Continuous Integration / build_web (push) Failing after 0s
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
Audio transferred from another session now seeks to the remote PositionTicks
after metadata loads instead of always starting at 0. Also surface sessions
without an active control channel in the remote dialog.
2026-11-27 14:19:00 +03:00
1xDed 89581e1ba8 fix: list all sessions for remote control/cast
Continuous Integration / build_web (push) Failing after 1s
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 / build (macos-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
The server reports SupportsRemoteControl=false on the session DTO even when
Capabilities.SupportsMediaControl is true (Android, Web, Finamp), and
controllableByUserId filters those out. Query all sessions instead and filter
locally by device/user; show the remote playback bar for any active session.
2026-11-27 14:04:28 +03:00
1xDed 2aa3e4106c fix: repack the library grid only after resize settles
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Recomputing columns on every pixel of a window drag made cards jump between
layouts. Debounce width changes by 120ms.
2026-11-27 13:40:41 +03:00
1xDed 08f0ca0df1 fix: stop layout wobble when the window is resized
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
- drop the global transition:all on .scrollY/.library-items (it animated
  width/height during every resize)
- library grid reacts to width changes only, coalesced in rAF, and measures
  offsetTop after the new columns are applied
- header transitions no longer animate layout properties
- disable transitions for 200ms while the OS window is being resized
2026-11-27 13:39:26 +03:00
1xDed fa29331c1c feat: Spotify-style transfer between devices
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
- persistent remote playback bar when another session is playing
  (device, title, play/pause, Transfer here)
- transfer remote -> local for audio and video, preserving position and queue,
  then stop the remote session
- cast from local players now sends the queue, start index and position, and
  stops local playback after the transfer
- full-screen player and remote dialog share the transfer payload
2026-11-27 13:32:13 +03:00
1xDed a98663691d feat: instant mix, remote control and stable music library
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
- Instant Mix button on albums, artists, the audio player and full-screen player
- Remote control dialog (cast icon in app bar/header/item/player): lists other
  sessions, play/pause/next/prev/seek/stop, and Play-on-device for an item
- Music library: repair persisted view types (CollectionFolder/undefined) and
  fall back to Songs when a music library has no album grouping
- Music jitter: remove full-screen backdrop-filters (audio bar and player page)
  and the body ResizeObserver in the virtualized grid
2026-11-27 13:18:09 +03:00
1xDed cc1391bb7d fix: refresh libraries on drawer open and stop playlist page render loop
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- Zustand selector returned a new array on every render in PlaylistTitlePage,
  causing getSnapshot/useSyncExternalStore infinite updates.
- Cache playlist tracks per playlist id.
- Refetch server views each time the drawer opens so newly added libraries
  (e.g. Music) appear without restarting the app.
2026-11-27 11:57:49 +03:00
1xDed b00f93d262 fix: stop artwork/background flashing when pages open
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 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
- disable router view transitions (they cross-faded through a black frame)
- keep the last app backdrop instead of clearing it to nothing on navigation
- drop opacity fade-in on cards, hero and detail artwork: cached images must be
  visible on the first paint, not fade from empty
- keep the hero slide mounted so the old image remains until the new one loads
- ambient backdrop falls back to the poster BlurHash for poster-only items
- show the router loader only after 250ms so fast navigations don't blink
2026-11-27 09:20:36 +03:00
1xDed 4c9dd86962 feat(hero): pick the best Jellyfin artwork for the home hero
Jellyfin stores several images per item. Ask /Items/{id}/Images for their real
sizes and use the biggest wide image (Backdrop, then Thumb) for the 16:9 hero.
Poster-only items are no longer stretched: the poster is blurred into an ambient
background with the sharp poster displayed beside the text. The slide element is
kept mounted across changes so the previous artwork stays until the next loads.
2026-11-27 09:20:26 +03:00
1xDed 3131c1f905 fix(dev): keep the MCP bridge capability out of default builds
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
The bridge needs no capability (it talks to the plugin over its own socket),
and a capability referencing an optional plugin broke builds without the
feature.
2026-11-27 03:14:00 +03:00
1xDed c560f8ae1b chore(dev): optional MCP bridge for UI automation
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build (macos-latest) (push) Skipped
Enable with: pnpm tauri dev -- --features mcp-bridge (debug only).
2026-11-27 03:11:27 +03:00
1xDed cf5fb43377 fix: stop library cards from jumping while scrolling
- stable measureElement ref (the inline ref re-attached on every render and
  re-triggered measurement, causing continuous row re-layout)
- reactive scrollMargin instead of reading offsetTop once at mount
- size rows from the real card aspect ratio (portrait vs square) and text block
- remove duplicated row padding/gap
2026-11-27 03:11:23 +03:00
1xDed 5a9b3ad273 fix: artwork fallbacks everywhere and hero layout
- resolveItemImage(): try the item's own images, then series/album/parent artwork
- hero sidebar tickers fall back from Thumb to Backdrop/Primary instead of an icon
- hero background falls back to the poster when no backdrop exists
- stop stacked slides when the carousel advances (drop leaking AnimatePresence)
- keep the hero title/logo inside the slide on narrow windows
- sensible slides-per-view on tablet/mobile widths
2026-11-27 03:11:17 +03:00
1xDed 1c499f42ec feat: custom in-app titlebar with overlay window chrome
- macOS: titleBarStyle Overlay + hiddenTitle, traffic lights aligned with the header
- header itself is the titlebar: draggable regions, no native glass strip
- solid (not blurred) header surfaces once content scrolls
- keep traffic lights clear of controls on library/login/settings pages
2026-11-27 03:11:09 +03:00
--remove-section 61ebc66127 feat: redesigned login pages 2026-10-20 18:36:02 +05:30
--remove-section c232c1bf12 feat: added new music player and fix some UI issues 2026-10-20 18:31:09 +05:30
--remove-section 2d5f49c32e fix: player throws error whenever settings panel is openned 2026-10-20 18:08:50 +05:30
--remove-section 0c50acddd9 fix: quickconnect not saving user 2026-10-20 17:55:02 +05:30
--remove-section 56ba65d23e chore(deps); update and migrate to latest node and cargo packages 2026-10-20 17:53:01 +05:30
Prayag Prajapati b8f544b483 Merge pull request #639 from Molier/feat/windows-arm64
feat: add Windows ARM64 build support
2026-10-20 17:13:01 +05:30
Molier 690cfb398c feat: add Windows ARM64 build support
Add windows-11-arm runner to CI and release workflows to produce
native ARM64 Windows installers. Resolves #634.
2026-04-12 19:36:21 +02:00
Prayag Prajapati 45dbfbb7ec refactor: update images 2026-02-10 21:37:30 +05:30
--remove-section e5171b7bb8 refactor: update workflows 2026-02-08 13:55:22 +05:30
--remove-section 9211faabf0 feat: auto generate release notes 2026-02-08 13:27:00 +05:30
--remove-section 422b1d6aa4 chore(deps): update dependencies 2026-02-07 17:14:06 +05:30
--remove-section 7f7866b28d fix: vite build failing because of jassub 2026-02-03 21:18:48 +05:30
--remove-section 1defb53945 feat: implement a new updator 2026-02-03 01:20:33 +05:30
--remove-section 73e3b865ab refactor: update UI for setup 2026-02-01 17:11:19 +05:30
--remove-section 691df70aff refactor: redesign sidebar component 2026-01-29 21:36:13 +05:30
--remove-section 6f2d5a5627 feat: add new server page 2026-01-28 23:21:35 +05:30
--remove-section 7804ab2b86 fix: home page carousel causing scroll on item change and fix other performance issues 2026-01-28 21:07:11 +05:30
--remove-section 4ade92bccc chore(deps): update dependencies 2026-01-27 21:48:12 +05:30
--remove-section ab1aa23725 feat: redesign card scroller 2026-01-27 21:37:29 +05:30
--remove-section 0131a23dc2 feat: add new favorites page 2026-01-27 21:02:02 +05:30
--remove-section 72ca2fb4f3 refactor: cleanup css code and remove duplicates 2026-01-21 21:36:06 +05:30
--remove-section b39a15449d refactor: improve hero carousel styling 2026-01-21 20:53:38 +05:30
--remove-section cb83b05c7a feat: add new adv. search page 2026-01-21 20:43:20 +05:30
--remove-section 32f5b3b3cf refactor: cleanup search animation 2026-01-20 20:17:20 +05:30
--remove-section 94e6a03e87 feat: autofocus input in search dialog 2026-01-17 20:27:10 +05:30
--remove-section 690070207b refactor: improve UI components 2026-01-17 20:20:20 +05:30
--remove-section 79c70e6d46 feat: add new search dialog 2026-01-17 19:30:43 +05:30
Prayag Prajapati cf1f3c772d Merge pull request #609 from tedhinklater/main
Update index.tsx "Perferences" to "Preferences"
2026-01-10 22:39:41 +05:30
tedhinklater b870a119e5 Update index.tsx "Perferences" to "Preferences" 2026-01-10 17:00:02 +00:00
--remove-section 0883cb0fe1 fix: series page not showing correct bg 2026-01-09 21:46:57 +05:30
--remove-section 8519c12c45 chore(deps): update to latest deps 2026-01-09 21:35:44 +05:30
--remove-section d6c1b0992e feat: add new last media layout 2026-01-09 21:09:05 +05:30
--remove-section 9c3cc53278 fix(ci): only upload dundles in nightly release 2025-12-26 20:46:20 +05:30
--remove-section abc7d68016 feat: persist volume across different medias 2025-12-26 20:41:35 +05:30
--remove-section ad8d8545e9 feat: revamp the entire audio player with a refreshed look and cleanup audioPlayer code 2025-12-26 20:27:05 +05:30
--remove-section 1c8c048df0 fix: subtitle track not setting properly on first render 2025-12-26 17:13:32 +05:30
Prayag Prajapati c0402fe8cf Merge pull request #595 from vikingnope/fix-niightly-release
fix: Clean nightly process
2025-12-26 02:24:22 +05:30
--remove-section ce6e4b681b fix: episode page not showing series details 2025-12-23 22:05:11 +05:30
--remove-section 6bf7f434b5 refactor: cleanup api setting and optimize rerendering due to api setting 2025-12-23 21:56:06 +05:30
--remove-section 4834a31cb5 fix: upNext not showing up in homepage 2025-12-23 21:49:35 +05:30
--remove-section b49f187098 feat: implement proper queue functionality and improve upnext flyout and skip segment buttons 2025-12-23 21:45:32 +05:30
--remove-section e41b5b3085 fix: display and report correct playback method 2025-12-22 22:29:59 +05:30
Vikingnope c19198e706 Made nightly builds cleaner 2025-12-21 23:14:09 +01:00
Prayag Prajapati 78c4b7a206 Merge pull request #569 from prayag17/renovate/react-monorepo
chore(deps): update dependency babel-plugin-react-compiler to v19.1.0-rc.3
2025-12-21 14:21:57 +05:30
Prayag Prajapati 5579d5e5e8 Merge pull request #578 from prayag17/renovate/major-github-artifact-actions
chore(deps): update actions/upload-artifact action to v6
2025-12-21 14:21:04 +05:30
Prayag Prajapati e50ae60216 Merge pull request #525 from prayag17/renovate/pnpm-action-setup-4.x
chore(deps): update pnpm/action-setup action to v4
2025-12-21 14:20:45 +05:30
Prayag Prajapati 4bc6044ca2 Merge pull request #535 from vikingnope/nightly-releases
chore: added nightly release to CI
2025-12-21 14:20:31 +05:30
--remove-section 7d55810f08 Merge branch 'main' of https://github.com/prayag17/Blink 2025-12-21 14:19:18 +05:30
--remove-section 40651fd3d6 fix: episode page breaking 2025-12-21 14:19:16 +05:30
Prayag Prajapati fdf43aba18 Merge pull request #588 from prayag17/renovate/actions-cache-5.x
chore(deps): update actions/cache action to v5
2025-12-21 14:18:17 +05:30
Prayag Prajapati 03bd7c027b Merge pull request #589 from prayag17/renovate/actions-checkout-6.x
chore(deps): update actions/checkout action to v6
2025-12-21 14:18:05 +05:30
renovate[bot] 995d75dbec chore(deps): update actions/checkout action to v6 2025-12-21 08:42:59 +00:00
renovate[bot] 4952d8842b chore(deps): update actions/cache action to v5 2025-12-21 08:42:55 +00:00
--remove-section f527d97912 chore(deps): update dependencies 2025-12-21 14:12:07 +05:30
--remove-section ef8dfbc23a fix: mediaSegment not being loaded properly 2025-12-21 14:10:27 +05:30
--remove-section 6576bfe5f3 refactor: improve UI and fix videoplayer bugs 2025-12-20 15:00:41 +05:30
--remove-section 3000146e66 fix: controls.tsx 2025-12-20 13:19:30 +05:30
--remove-section 81e0c3b9a8 fix: endsAt not updating correctly 2025-12-20 13:19:01 +05:30
--remove-section 27d8e04b0f fix: typeerrors in player 2025-12-19 14:52:13 +05:30
--remove-section 50de0b7b51 refactor: improve the playback experience 2025-12-19 02:26:03 +05:30
--remove-section 64c5b7570b refactor: cleanup item pages code and make them more perfomant 2025-12-19 01:33:57 +05:30
--remove-section d46e143262 refactor: update update signing keys 2025-12-18 22:31:36 +05:30
renovate[bot] 6542ed9487 chore(deps): update dependency babel-plugin-react-compiler to v19.1.0-rc.3 2025-12-18 16:48:47 +00:00
--remove-section d39c064600 refactor: improve library page, fix playbutton issues, improve overall app performance 2025-12-18 22:16:43 +05:30
renovate[bot] d254d3033d chore(deps): update pnpm/action-setup action to v4 2025-12-15 14:47:12 +00:00
renovate[bot] 3abf27724f chore(deps): update actions/upload-artifact action to v6 2025-12-12 20:57:43 +00:00
Prayag Prajapati 120e283e3d fix: item pages not renderinf 2025-11-12 00:37:20 +05:30
Prayag Prajapati 706fb7b890 Merge branch 'main' of https://github.com/prayag17/Blink 2025-11-11 23:51:19 +05:30
Prayag Prajapati 11b4a878ac feat: add new library page with performance improvements 2025-11-11 23:51:06 +05:30
Prayag Prajapati 6695bdc6ee Merge pull request #509 from prayag17/renovate/tanstack-router-monorepo
chore(deps): update tanstack-router monorepo to v1.133.22
2025-10-22 12:36:07 +05:30
Prayag Prajapati 17922127dd Merge pull request #571 from prayag17/renovate/actions-setup-node-6.x
chore(deps): update actions/setup-node action to v6
2025-10-22 12:35:47 +05:30
Prayag Prajapati a135d1be5f Merge pull request #572 from prayag17/renovate/pnpm-10.x
chore(deps): update dependency pnpm to v10
2025-10-22 12:34:25 +05:30
renovate[bot] 88c42d8110 chore(deps): update dependency pnpm to v10 2025-10-22 06:45:45 +00:00
renovate[bot] 8e667a2253 chore(deps): update actions/setup-node action to v6 2025-10-22 06:45:41 +00:00
renovate[bot] e08eaea1d1 chore(deps): update tanstack-router monorepo to v1.133.22 2025-10-22 06:45:33 +00:00
Prayag Prajapati 937e9385f2 chore(biome): update config schema version 2025-10-22 00:13:41 +05:30
Prayag Prajapati bb2c0272a2 chore(deps): update dependencies 2025-10-22 00:10:49 +05:30
Prayag Prajapati 6b4d6ed0d3 Merge pull request #516 from vikingnope/wayland-temp-fix
fix: Temporary fix for Wayland protocol error
2025-09-22 11:46:56 +05:30
Prayag Prajapati 374cba8f63 Merge pull request #547 from haloTT100/main
Show Specials for Tv or anime shows, Smart Season Selection Logic
2025-09-22 11:45:25 +05:30
Prayag Prajapati 07522b50c5 Merge pull request #561 from DavideSirico/main
Improve PlayButton with Preferences and Error Handling; Fix Manual Route Param Handling
2025-09-22 11:43:08 +05:30
Prayag Prajapati 257ff8e552 refactor: start using seach params in library route 2025-08-02 17:53:12 +05:30
DavideSirico 37e898e4cf feat: add user language preference for subtitles and audio tracks in PlayButton 2025-07-09 15:37:13 +02:00
DavideSirico 65e5370dbf feat: enhance PlayButton to fetch and display current episode data 2025-07-08 17:54:28 +02:00
DavideSirico 2d4b0d66b4 fix: handle undefined redirect in validateSearch function 2025-07-08 17:54:11 +02:00
Prayag Prajapati 54d0b07666 refactor: cleanup appBar hide logic 2025-07-07 17:38:29 +05:30
Prayag Prajapati 9ac556d001 feat: add mediaSession api support 2025-07-07 14:36:20 +05:30
Prayag Prajapati 333fe09f45 feat: add new about page 2025-07-06 21:11:43 +05:30
Prayag Prajapati a8ee9c190c feat: animate canvas backdrop changes 2025-07-05 15:14:17 +05:30
Prayag Prajapati 0cf87da218 feat: shpw upNext card and reset segements while seeking 2025-07-05 15:06:51 +05:30
Prayag Prajapati f919162dfc feat: change skip segment button position depending if controls are visible 2025-07-04 15:29:31 +05:30
Prayag Prajapati c9d16f4669 refactor: use blurhash to render background 2025-07-04 15:19:38 +05:30
Prayag Prajapati 53311a1728 fix: seekTo not working as intended 2025-07-01 22:04:55 +05:30
Prayag Prajapati c4073f1368 refactor: migrate to react-player v3, fixing multiple instance of video player being created 2025-07-01 21:46:23 +05:30
Prayag Prajapati c69a547379 refactor: unmount card image if not visible 2025-06-27 16:58:24 +05:30
Prayag Prajapati 7b0b22b611 refactor: rewrite video player 2025-06-27 16:55:17 +05:30
haloTT100 47a486a3ad feat: add custom hook for managing default season selection in TV series 2025-06-22 18:14:05 +02:00
Prayag Prajapati 0f5482627a refactor: use language preferences for audio and subtitles 2025-06-08 17:53:53 +05:30
Prayag Prajapati 4ca90e713d Merge pull request #491 from prayag17/renovate/vedantmgoyal9-winget-releaser-digest
chore(deps): update vedantmgoyal9/winget-releaser digest to 19e706d
2025-05-31 18:51:25 +05:30
Prayag Prajapati 093e40a929 chore(deps): update dependencies 2025-05-30 22:10:10 +05:30
renovate[bot] 797d0600c3 chore(deps): update vedantmgoyal9/winget-releaser digest to 19e706d 2025-05-29 10:21:28 +00:00
Prayag Prajapati 18d55a4af6 refactor: use suspense queries to fetch page data 2025-05-21 23:12:17 +05:30
vikingnope d7f3317913 Merge branch 'prayag17:main' into nightly-releases 2025-05-12 12:01:24 +02:00
Aiden Schembri 52b73f7475 syntax issues 2025-05-11 07:33:15 +02:00
Aiden Schembri 0c8b282469 few more fixes 2025-05-11 07:32:00 +02:00
Aiden Schembri 25479b2278 Added nightly release to CI 2025-05-11 07:28:12 +02:00
Prayag Prajapati dfb8eeee12 feat: add new preferences page 2025-04-29 21:52:16 +05:30
Prayag Prajapati 790f3f163b Merge pull request #510 from vikingnope/fix-password-label
fix: Removed colon from password label to match username label
2025-04-25 22:41:49 +05:30
Prayag Prajapati db74b4f58b Merge branches 'main' and 'main' of https://github.com/prayag17/JellyPlayer 2025-04-25 21:43:40 +05:30
Prayag Prajapati 18ebe4ef1e refactor: update to react 19 and remove NProgress element fixing multiple player instances in videoPlayer 2025-04-25 21:43:24 +05:30
Prayag Prajapati f0c8458dc4 Update README.md 2025-04-25 12:15:50 +05:30
Prayag Prajapati 80080e841a fix: revert to react 18 to fix multiple instace of player being created 2025-04-18 22:30:35 +05:30
Prayag Prajapati d60cb2b5fb fix: multiple player instances being spawned 2025-04-18 21:56:56 +05:30
Prayag Prajapati 7086892843 refactor: remove virtualization from library page #465 2025-03-25 21:37:14 +05:30
Aiden Schembri 951cf61a89 added it for CI as well 2025-03-25 12:11:13 +01:00
Aiden Schembri ceee9311aa added disabling of DMABUF 2025-03-25 11:32:00 +01:00
Aiden Schembri 21a6e492f4 Removed colon from password label to match username 2025-03-18 19:19:38 +01:00
Prayag Prajapati b916560c6a feat: save last window state ie. position and size 2025-03-17 22:16:17 +05:30
Prayag Prajapati d3d5c5ac54 refactor: use reducers in videplayer to manage state instead of individual useState 2025-03-17 20:00:25 +05:30
Prayag Prajapati 3f5e764cd7 feat(playback): add pgssub format support 2025-03-13 00:58:24 +05:30
Prayag Prajapati 4381b6e28e Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2025-02-19 22:19:04 +05:30
Prayag Prajapati 83c96cf65c chore(deps): update to react 19 2025-02-19 22:18:47 +05:30
Prayag Prajapati 4ff422ae61 Create FUNDING.yml 2025-01-21 09:16:33 +05:30
Prayag Prajapati c0d7d4e03d Merge pull request #469 from vikingnope/main
Added automatic WinGet Releases
2025-01-18 11:00:50 +05:30
vikingnope cd768a088b Changed user to exactly match his username 2025-01-17 08:18:30 +00:00
vikingnope 2f12fe0862 Adds stable release 2025-01-12 12:29:55 +00:00
vikingnope f6c0963f48 Update winget-releaser.yml 2025-01-12 13:08:10 +01:00
vikingnope 4ae8a087ed Merge branch 'prayag17:main' into main 2024-12-28 17:05:59 +01:00
Prayag Prajapati 412e54fd82 fix: video player takes long time to load #473 2024-12-28 14:13:06 +05:30
vikingnope 51848a39ae adds winget releaser 2024-12-17 06:41:01 +00:00
Prayag Prajapati 295b8da8eb Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2024-12-11 17:47:16 +05:30
Prayag Prajapati 6d1c55dda5 refactor: prepare for alpha 3 2024-12-11 17:46:13 +05:30
Prayag Prajapati 0c47660501 refactor: prepare for alpha 3 2024-12-11 17:41:49 +05:30
Prayag Prajapati e9b37d99aa refactor: cleanup 2024-12-11 17:34:50 +05:30
Prayag Prajapati f19ffb4361 refactor: remove unused imports 2024-12-11 17:33:47 +05:30
Prayag Prajapati ce533dde4b fix: series page not fetching correct season 2024-12-11 15:32:06 +05:30
Prayag Prajapati 6d2448ef36 feat: add key binding for macos users #435 2024-12-11 15:21:52 +05:30
Prayag Prajapati c572cb35cb refactor: remove jellyPlayer naming from code #460 2024-12-11 15:10:48 +05:30
Prayag Prajapati f57e78b244 feat: add playlist playback support 2024-12-11 15:03:45 +05:30
Prayag Prajapati af8dec5844 refactor: improve server add process 2024-12-10 23:06:50 +05:30
Prayag Prajapati 7d2659f32b feat: show current time while scrubbing video progress #339 2024-12-10 18:59:29 +05:30
Prayag Prajapati 06015d7702 style: increase the sharpness of card images 2024-12-10 11:52:56 +05:30
Prayag Prajapati 0847c2b2ef feat: add skip recap button 2024-12-10 11:49:02 +05:30
Prayag Prajapati bc6d39b004 refactor: cleanup video player 2024-12-09 23:38:40 +05:30
Prayag Prajapati 9f7fde2173 feat: add chapter navigation buttons to video player #457 2024-12-09 23:38:08 +05:30
Prayag Prajapati 7410c8f3e3 feat: allow changing audio track from video player 2024-12-09 22:59:06 +05:30
Prayag Prajapati fcf18c01e8 feat: allow changing chapters from a chapter list #457 2024-12-09 21:20:45 +05:30
Prayag Prajapati 620b4ce253 refactor: cleanup search route 2024-12-09 10:39:46 +05:30
Prayag Prajapati 9dbe11ce23 refactor: cleanup some components 2024-12-09 10:15:20 +05:30
Prayag Prajapati 5d5f127525 refactor: unmount card image if not inView 2024-12-08 15:50:19 +05:30
Prayag Prajapati d7f3892ff3 refactor: cleanup person route 2024-12-08 11:01:07 +05:30
Prayag Prajapati dc72f381e8 style: replace noto-sans with plus-jakarta-sans 2024-12-08 00:34:55 +05:30
Prayag Prajapati d238aeff1f refactor: cleanup login routes 2024-12-08 00:04:07 +05:30
Prayag Prajapati 1c38893c68 fix: library items not of same size #380 2024-12-07 23:55:45 +05:30
Prayag Prajapati 000e62873a refactor: cleanup item.tsx 2024-12-07 14:15:54 +05:30
Prayag Prajapati 5b322d49e6 fix: series page breaking if season is not loaded 2024-12-07 10:56:00 +05:30
Prayag Prajapati 232aad5e8a fix: do not display missing items in series 2024-12-07 10:51:59 +05:30
Prayag Prajapati 7aceb89e11 refactor: move more files to ts 2024-12-06 23:55:29 +05:30
Prayag Prajapati 42c154f17a refactor: move more files to ts 2024-12-06 23:19:41 +05:30
Prayag Prajapati 27cc14c1f5 refactor: move more files to ts 2024-12-04 18:34:18 +05:30
Prayag Prajapati cf8c5d4490 refactor: move more files to typescript 2024-12-03 22:21:48 +05:30
Prayag Prajapati 97526e29b4 refactor: move more components to ts 2024-12-03 19:01:17 +05:30
Prayag Prajapati e049ce9ad6 refactore: cleanup __root.tsx 2024-12-03 18:13:36 +05:30
Prayag Prajapati 561daa7d81 chore(deps): update dependencies 2024-12-02 17:43:42 +05:30
Prayag Prajapati 2ad920af9d fix: collections page not rendering #447 2024-12-02 17:40:53 +05:30
Prayag Prajapati 907753b041 fix: quick connect not working #445 2024-12-02 17:33:42 +05:30
Prayag Prajapati 591fce7e5c fix: playback error if subtitle is not set 2024-11-30 13:47:03 +05:30
Prayag Prajapati 9d96667d60 fix: index not being assigned proper value #420 2024-11-30 11:18:07 +05:30
Prayag Prajapati 5c8624a73c fix: synced lyrics not working 2024-11-29 18:15:27 +05:30
Prayag Prajapati 0319d9711e Merge pull request #446 from prayag17/renovate/node-22.x-lockfile
fix(deps): update dependency @types/node to v22.10.1
2024-11-29 07:35:26 +05:30
Prayag Prajapati 70da3b3754 refactor: use saved lyrics 2024-11-28 22:45:47 +05:30
Prayag Prajapati 98078585d6 refactor: change GenreView to genreFilter 2024-11-28 22:05:17 +05:30
renovate[bot] cf66b8d20c fix(deps): update dependency @types/node to v22.10.1 2024-11-28 06:24:49 +00:00
Prayag Prajapati a198e09864 Merge pull request #393 from prayag17/renovate/tanstack-router-monorepo
fix(deps): update tanstack-router monorepo
2024-11-26 21:28:17 +05:30
Prayag Prajapati 25d9702283 Merge pull request #424 from prayag17/renovate/tanstack-query-monorepo
fix(deps): update tanstack-query monorepo to v5.61.4
2024-11-26 21:28:01 +05:30
renovate[bot] 0790f0afd5 fix(deps): update tanstack-router monorepo 2024-11-26 15:56:10 +00:00
Prayag Prajapati 240ed3b365 Merge pull request #426 from prayag17/renovate/node-22.x-lockfile
fix(deps): update dependency @types/node to v22.10.0
2024-11-26 21:25:10 +05:30
renovate[bot] 5cd9b57e1f fix(deps): update dependency @types/node to v22.10.0 2024-11-26 15:54:55 +00:00
Prayag Prajapati 88b016f6f5 Merge pull request #437 from prayag17/dependabot/cargo/src-tauri/rustls-0.23.18
chore(deps): bump rustls from 0.23.16 to 0.23.18 in /src-tauri
2024-11-26 21:24:53 +05:30
renovate[bot] 8a459f588d fix(deps): update tanstack-query monorepo to v5.61.4 2024-11-26 15:54:44 +00:00
Prayag Prajapati 6c5335648d Merge pull request #438 from prayag17/renovate/axios-1.x-lockfile
fix(deps): update dependency axios to v1.7.8
2024-11-26 21:24:14 +05:30
Prayag Prajapati fc9abf6c5b Merge pull request #439 from prayag17/renovate/vitejs-plugin-react-4.x-lockfile
chore(deps): update dependency @vitejs/plugin-react to v4.3.4
2024-11-26 21:24:04 +05:30
renovate[bot] a53224f802 chore(deps): update dependency @vitejs/plugin-react to v4.3.4 2024-11-26 15:15:43 +00:00
Prayag Prajapati 865c42b419 refactore: move more components to typescript 2024-11-26 18:51:58 +05:30
Prayag Prajapati 12f963d718 fix: episode and series not playing if episode is not present in nextUp and continueWatching 2024-11-26 14:18:47 +05:30
Prayag Prajapati 8917dd240a feat: show current episode in PlayButton 2024-11-26 11:22:41 +05:30
Prayag Prajapati 685ef4b2fc fix: episode indexing for absolute numbering indexNumbers in PlayButton 2024-11-26 10:18:59 +05:30
Prayag Prajapati f141ddbaf3 fix: unable to read Id of undefined in PlayButton 2024-11-26 09:51:00 +05:30
renovate[bot] 6e55a287eb fix(deps): update dependency axios to v1.7.8 2024-11-26 00:46:43 +00:00
dependabot[bot] 9c110ea8fa chore(deps): bump rustls from 0.23.16 to 0.23.18 in /src-tauri
Bumps [rustls](https://github.com/rustls/rustls) from 0.23.16 to 0.23.18.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.23.16...v/0.23.18)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 17:00:57 +00:00
Prayag Prajapati ebbe686a57 fix(ci): not uploading debug builds 2024-11-25 20:54:27 +05:30
Prayag Prajapati 2cb10aa342 refactor(ci): build debug builds in CI 2024-11-25 18:08:42 +05:30
Prayag Prajapati a64f5876f2 Merge pull request #425 from prayag17/renovate/serde_json-1.x-lockfile
fix(deps): update rust crate serde_json to v1.0.133
2024-11-25 18:07:14 +05:30
Prayag Prajapati 95a180e968 Merge pull request #436 from sambartik/macos-universal-dmg
Add universal dmg for macOS in release job
2024-11-25 18:06:13 +05:30
Prayag Prajapati 99ec17501d chore(deps): update dependencies 2024-11-25 18:05:21 +05:30
Prayag Prajapati a7eab72639 refactor: convert more files to typescript 2024-11-25 17:33:30 +05:30
Prayag Prajapati 81695a583d fix: improper handling of undefined api leading to crashes 2024-11-25 00:11:53 +05:30
Prayag Prajapati c6b5d6a4a2 refactor: move all buttons to tsx #338 2024-11-24 23:46:20 +05:30
Samuel Bartík 7ef8e33669 Add universal dmg for macOS in release job 2024-11-24 18:58:03 +01:00
Prayag Prajapati 9be02b6392 fix: audio queue not moving after 2 changes #182 2024-11-23 23:22:56 +05:30
Prayag Prajapati dd16f3a204 fix: playing track from album not updating the queue #182 2024-11-23 21:33:26 +05:30
Prayag Prajapati 7e7f44ce94 refactor: use MediaSegments api for intro/outro skipping 2024-11-22 13:34:18 +05:30
Prayag Prajapati 61fa734629 fix: trickplay images not showing up 2024-11-21 14:24:16 +05:30
Prayag Prajapati 45f67aac40 refactor: improve login page UI #338 #202 2024-11-20 21:51:42 +05:30
Prayag Prajapati 19343b4ea3 chore(release): update latest.json 2024-11-20 13:36:49 +05:30
Prayag Prajapati d08998f7d8 chore: update Blink to 0.0.7-dev 2024-11-20 12:21:16 +05:30
Prayag Prajapati 0fe7ba0f59 chore(deps): update dependencies 2024-11-20 12:19:31 +05:30
Prayag Prajapati c8409d8a01 refactor: change UI of login/list and fix Api not being defined in context 2024-11-20 11:16:22 +05:30
Prayag Prajapati b0e08ce4bd fix: player/audio route not able to interact with audioPlayer 2024-11-17 11:50:16 +05:30
renovate[bot] 0dde74ab70 fix(deps): update rust crate serde_json to v1.0.133 2024-11-17 04:04:52 +00:00
Prayag Prajapati 60895ceecf fix: audio player info not visible 2024-11-16 11:24:59 +05:30
Prayag Prajapati 500a90bcc0 fix: audio player not playing audio 2024-11-16 11:22:16 +05:30
Prayag Prajapati 24e07df249 fix: toggling ssubtitles not working 2024-11-15 21:00:55 +05:30
Prayag Prajapati d641ddfc98 fix: subtitles not being rendered #401 2024-11-15 19:53:40 +05:30
Prayag Prajapati e91834ad6d fix: hero carousel indicators not scrolling 2024-11-10 23:19:44 +05:30
Prayag Prajapati 9d4d523d9d fix: vite build error for safari13 2024-11-09 19:44:45 +05:30
Prayag Prajapati d586c3e38d fix: blink not launching or rendering on opening 2024-11-09 18:31:31 +05:30
Prayag Prajapati 61441b918c Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2024-11-07 19:48:09 +05:30
Prayag Prajapati 60b734c615 chore(deps): update dependencies 2024-11-07 19:47:53 +05:30
Prayag Prajapati 8115f2e9e7 Merge pull request #410 from prayag17/renovate/tauri-plugin-notification-2.x-lockfile
fix(deps): update rust crate tauri-plugin-notification to v2.0.1
2024-10-14 08:18:17 +05:30
Prayag Prajapati 78cabc421c Merge pull request #409 from Blackspirits/patch-1
Refactor: fix github repo url
2024-10-14 08:18:04 +05:30
Prayag Prajapati 31aad0f0d7 chore(deps): update dependencies 2024-10-13 20:10:07 +05:30
renovate[bot] 15241dd3d3 fix(deps): update rust crate tauri-plugin-notification to v2.0.1 2024-10-13 14:39:55 +00:00
Prayag Prajapati f0fd4fe353 feat: allow downloading images from ImageViewer 2024-10-13 20:09:07 +05:30
Blackspirits 7fb772c3b6 Update index.tsx 2024-10-11 15:27:18 +02:00
Prayag Prajapati 3f6bdb392f feat: implement basic image viewer #338 #240 2024-10-04 19:17:10 +05:30
Prayag Prajapati a1bb8f8e23 fix: react infinite depth error 2024-09-29 00:02:47 +05:30
Prayag Prajapati d78676560f fix: vite config 2024-09-28 22:19:28 +05:30
Prayag Prajapati b83eb3aea9 refactor: remove @million/js and @million/lint 2024-09-28 22:18:18 +05:30
Prayag Prajapati 1265e2281b refactor: remove Cargo.lock from .gitignore #400 2024-09-28 19:00:47 +05:30
Prayag Prajapati b8f2f9ae67 chore(deps): update dependencies 2024-09-27 11:10:16 +05:30
Prayag Prajapati bf9ba21f39 refactor: code cleanup 2024-09-27 10:57:57 +05:30
Prayag Prajapati 8038680683 fix: bug_report showing extra fields 2024-09-26 10:14:17 +05:30
Prayag Prajapati 647dcc3690 refactor: remove redundant calls for getCurrentUser 2024-09-25 20:35:38 +05:30
Prayag Prajapati e82ff1ff0c feat: show queue item from currently playing item in queueButton 2024-09-14 11:33:18 +05:30
Prayag Prajapati 48af14b64f chore(deps): update dependencies 2024-09-13 10:47:53 +05:30
Prayag Prajapati 15e78a370c feat: remember library filters #192 2024-09-13 10:39:48 +05:30
Prayag Prajapati a19ea1c52f Merge pull request #370 from prayag17/renovate/tauri-apps-plugin-clipboard-manager-2.x
fix(deps): update dependency @tauri-apps/plugin-clipboard-manager to v2.1.0-beta.6
2024-09-07 12:20:20 +05:30
renovate[bot] 35f6c8f74a fix(deps): update dependency @tauri-apps/plugin-clipboard-manager to v2.1.0-beta.6 2024-09-07 06:48:36 +00:00
Prayag Prajapati b73629ce80 Merge pull request #381 from prayag17/renovate/wavesurfer.js-7.x-lockfile
fix(deps): update dependency wavesurfer.js to v7.8.5
2024-09-07 12:17:29 +05:30
Prayag Prajapati 9afe933d8d Merge pull request #342 from prayag17/renovate/tanstack-router-monorepo
fix(deps): update tanstack-router monorepo to v1.56.3
2024-09-07 12:17:09 +05:30
Prayag Prajapati 8f0f7b2218 Merge pull request #368 from prayag17/renovate/tauri-monorepo
fix(deps): update tauri monorepo
2024-09-07 12:16:49 +05:30
Prayag Prajapati 74ea154954 chore(release): update latest.json 2024-09-07 02:13:16 +05:30
renovate[bot] cb4af781e2 fix(deps): update tauri monorepo 2024-09-06 18:32:08 +00:00
renovate[bot] 9fd51f10ca fix(deps): update tanstack-router monorepo to v1.56.2 2024-09-06 18:31:59 +00:00
renovate[bot] 43bdaa1ae2 fix(deps): update dependency wavesurfer.js to v7.8.5 2024-09-06 18:31:49 +00:00
419 changed files with 65242 additions and 24097 deletions

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# These are supported funding model platforms
github: [prayag17] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+3 -10
View File
@@ -24,15 +24,8 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
- OS: [e.g. Windows]
- Version [e.g. v0.0.6-dev]
- Jellyfin Version [e.g. 10.9]
**Additional context**
Add any other context about the problem here.
+11
View File
@@ -0,0 +1,11 @@
changelog:
categories:
- title: 🏕 Features
labels:
- '*'
exclude:
labels:
- dependencies
- title: 👒 Dependencies
labels:
- dependencies
+65 -14
View File
@@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 7
version: 10
run_install: false
- name: Get pnpm store directory
@@ -26,7 +26,7 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
@@ -35,7 +35,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Sync node version and setup cache
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "lts/*"
cache: "pnpm"
@@ -56,12 +56,12 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-22.04, windows-latest]
platform: [macos-latest, ubuntu-22.04, windows-latest, windows-11-arm]
runs-on: ${{ matrix.platform }}
environment: TAURI
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
@@ -78,10 +78,10 @@ jobs:
with:
workspaces: "./src-tauri -> target"
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 7
version: 10
run_install: false
- name: Get pnpm store directory
@@ -89,7 +89,7 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
@@ -98,7 +98,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Sync node version and setup cache
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "lts/*"
cache: "pnpm"
@@ -107,7 +107,7 @@ jobs:
run: pnpm install --no-frozen-lockfile
- name: Build app
run: pnpm run tauri build
run: pnpm run tauri build --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
@@ -115,8 +115,59 @@ jobs:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
# TODO: Remove the below command after upstream issue is fixed
# Related issue: https://github.com/tauri-apps/tauri/issues/10702
WEBKIT_DISABLE_DMABUF_RENDERER: 1 # Disable DMABUF renderer on Wayland
- name: Upload build Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: Blink-${{ matrix.platform }}-dev${{ github.sha }}
path: src-tauri/target/release/bundle/*
path: src-tauri/target/debug/bundle/*
# Create or update nightly release
nightly_release:
needs: build
if: github.repository == 'prayag17/Blink' && github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write # Required for creating/updating releases
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.1
- name: Download all artifacts
uses: actions/download-artifact@v7.0.0
with:
path: artifacts
- name: Prepare assets
run: |
mkdir -p release_assets
find artifacts -type f \( -name "*.exe" -o -name "*.msi" -o -name "*.dmg" -o -name "*.deb" -o -name "*.AppImage" -o -name "*.rpm" -o -name "*.tar.gz" \) | while read -r file; do
# Extract platform from artifact name (e.g. Blink-ubuntu-22.04-devSHA)
artifact_name=$(echo "$file" | cut -d'/' -f2)
platform=$(echo "$artifact_name" | sed -E 's/Blink-(.*)-dev.*/\1/' | sed 's/-/_/g')
filename=$(basename "$file")
cp "$file" "release_assets/${platform}-${filename}"
done
- name: Delete old nightly release
run: gh release delete nightly --yes --repo ${{ github.repository }} || true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create nightly release
uses: softprops/action-gh-release@v2.5.0
with:
tag_name: nightly
name: Nightly Build (${{ github.sha }})
body: |
Nightly build from the latest main branch.
**Last commit:** ${{ github.event.head_commit.message }}
**SHA:** ${{ github.sha }}
prerelease: true
files: release_assets/*
fail_on_unmatched_files: true
+11 -7
View File
@@ -12,12 +12,12 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-22.04, windows-latest]
platform: [macos-latest, ubuntu-22.04, windows-latest, windows-11-arm]
runs-on: ${{ matrix.platform }}
environment: TAURI
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
@@ -28,16 +28,19 @@ jobs:
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 7
version: 10
run_install: false
- name: Get pnpm store directory
@@ -45,7 +48,7 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
@@ -54,7 +57,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Sync node version and setup cache
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "lts/*"
cache: "pnpm" # Set this to npm, yarn or pnpm.
@@ -64,7 +67,7 @@ jobs:
run: pnpm install --no-frozen-lockfile && pnpm run build # Change this to npm, yarn or pnpm.
- name: Build the app
uses: tauri-apps/tauri-action@dev
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -78,3 +81,4 @@ jobs:
releaseBody: "See the assets to download and install this version."
releaseDraft: true
prerelease: false
args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}
+26
View File
@@ -0,0 +1,26 @@
name: Publish Releases to WinGet
on:
release:
types: [published]
jobs:
publish-alpha:
runs-on: ubuntu-latest
if: contains(github.event.release.tag_name, '-alpha')
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: prayag17.Blink.Alpha
version: ${{ github.event.release.tag_name }}
installers-regex: '\.exe$'
token: ${{ secrets.WINGET_TOKEN }}
publish-stable:
runs-on: ubuntu-latest
if: "!contains(github.event.release.tag_name, '-alpha')"
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: prayag17.Blink
version: ${{ github.event.release.tag_name }}
installers-regex: '\.exe$'
token: ${{ secrets.WINGET_TOKEN }}
+12 -2
View File
@@ -31,10 +31,20 @@ target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
*.pdb
generateBanner
# Million Lint
.million
# TypeScript incremental build cache
*.tsbuildinfo
# local multi-client test profiles
.clients/
-1
View File
@@ -1 +0,0 @@
{"encodings":["src\\main.tsx","ProviderWrapper",[40,0,44,1],[41,13,41,42],[42,19,42,54],[43,8,43,71],"src\\utils\\store\\api.tsx","ApiProvider",[57,27,71,1],[57,28,57,40],[58,17,69,2],[70,8,70,75],"useApiInContext",[73,7,79,1],[74,15,74,37],[78,8,78,34],"src\\routes\\_api\\search\\index.jsx","SearchPage",[30,0,448,1],[31,13,31,36],[33,37,33,49],[34,21,34,49],[36,14,44,3],[48,16,62,3],[63,16,77,3],[78,20,92,3],[93,15,107,3],[108,14,122,3],[123,22,137,3],[138,16,150,3],[151,18,164,3],[166,23,166,71],[168,1,171,7],[173,2,446,8],[183,3,236,9],[184,4,235,6],[201,7,230,24],[202,8,229,14],[210,9,227,11],[228,9,228,65],[237,3,421,9],[243,5,262,20],[245,7,260,9],[265,5,290,20],[267,7,288,9],[293,5,307,20],[296,8,304,10],[310,5,329,20],[312,7,327,9],[332,5,352,20],[334,7,350,9],[355,5,375,20],[357,7,373,9],[378,5,397,20],[380,7,395,9],[400,5,419,20],[402,7,417,9],[438,5,444,11],[443,6,443,68],"src\\routes\\_api\\favorite\\index.tsx","FavoritePage",[20,0,304,1],[21,13,21,36],[22,23,22,71],[24,14,32,3],[34,16,45,3],[47,16,58,3],[60,20,71,3],[73,15,84,3],[86,14,97,3],[99,22,110,3],[112,16,123,3],[125,1,127,3],[130,2,302,9],[141,4,160,19],[143,6,158,8],[163,4,188,19],[165,6,186,8],[191,4,210,19],[193,6,208,8],[213,4,233,19],[215,6,231,8],[236,4,256,19],[238,6,254,8],[259,4,278,19],[261,6,276,8],[281,4,300,19],[283,6,298,8],"src\\routes\\_api\\home\\index.tsx","Home",[38,0,419,1],[39,13,39,42],[41,14,49,3],[51,19,61,3],[63,21,83,3],[85,26,99,3],[101,26,114,3],[116,21,135,3],[137,47,137,59],[139,18,139,31],[145,1,162,26],[162,5,162,24],[171,3,416,10],[178,4,205,20],[180,6,180,26],[183,7,202,9],[185,9,185,52],[207,4,241,20],[209,6,211,12],[210,7,210,51],[215,6,215,23],[217,6,239,21],[221,10,236,12],[242,4,303,20],[244,6,246,12],[245,7,245,52],[250,6,250,23],[254,6,301,21],[257,9,298,11],[304,4,362,20],[306,6,308,12],[307,7,307,59],[312,6,312,23],[317,6,360,21],[320,9,357,11],[363,4,404,20],[365,6,367,12],[366,7,366,59],[371,6,371,23],[376,6,402,21],[379,9,399,11],[405,4,415,20],[407,6,409,12],[408,7,408,62],[413,13,413,69],"src\\routes\\setup\\server.add.tsx","ServerSetup",[25,0,152,1],[26,33,26,45],[28,29,28,42],[30,18,30,60],[32,21,66,3],[70,3,79,5],[80,3,149,15],[88,4,148,11],[95,5,97,12],[96,6,96,54],[98,5,108,12],[99,6,107,8],[109,5,123,12],[110,6,122,22],[116,8,116,71],[124,5,147,12],[136,6,143,13],[144,6,146,19],"src\\routes\\_api\\player\\index.tsx","VideoPlayer",[81,0,592,1],[82,13,82,36],[83,21,83,32],[84,39,84,54],[96,5,106,3],[108,31,108,45],[109,41,109,55],[111,51,111,66],[114,31,114,46],[115,31,115,45],[116,35,116,50],[117,45,117,68],[118,33,118,56],[119,43,119,58],[120,43,120,67],[121,49,123,2],[124,29,124,40],[125,27,125,42],[127,1,127,41],[129,49,129,71],[209,16,209,28],[223,24,259,7],[261,1,269,21],[269,5,269,19],[271,1,302,38],[302,5,302,18],[302,20,302,36],[304,1,307,15],[307,5,307,13],[310,2,590,8],[311,3,334,21],[313,5,332,18],[331,6,331,52],[335,3,562,16],[352,4,400,10],[353,5,355,18],[354,6,354,66],[356,5,360,18],[359,6,359,64],[361,5,399,12],[382,6,398,18],[390,7,392,18],[394,8,396,19],[401,4,561,10],[402,5,409,18],[405,7,407,20],[410,5,560,11],[411,6,452,12],[412,7,445,9],[446,7,451,13],[447,8,449,21],[450,8,450,61],[453,6,559,12],[454,7,485,13],[455,8,455,30],[456,8,464,21],[461,9,463,16],[465,8,469,21],[466,9,468,16],[470,8,478,21],[475,9,477,16],[479,8,479,26],[480,8,484,21],[486,7,558,13],[487,8,523,21],[509,9,511,22],[512,9,522,11],[524,8,537,21],[530,9,536,16],[538,8,538,23],[539,8,545,21],[540,9,544,16],[546,8,557,21],[554,9,556,16],[564,3,589,5],"src\\routes\\_api\\login\\index.tsx","LoginRoute",[19,0,91,1],[20,18,20,31],[21,18,21,31],[22,13,22,36],[23,29,23,65],[25,19,32,3],[48,2,89,13],[48,22,48,45],[49,3,88,9],[60,4,60,48],[61,4,87,22],[62,5,86,18],[75,6,85,19],"src\\routes\\setup\\server.list.tsx","ServerList",[28,0,203,1],[29,18,29,31],[30,39,30,53],[31,29,31,42],[33,21,33,37],[35,17,38,3],[40,23,43,3],[45,28,63,3],[87,1,89,7],[92,2,201,8],[93,3,93,21],[94,3,114,9],[103,4,105,17],[106,4,113,17],[112,5,112,56],[115,3,200,11],[118,6,198,12],[119,7,121,13],[122,7,170,13],[123,8,151,21],[133,10,149,12],[135,12,141,25],[152,8,160,21],[161,8,169,21],[171,7,197,13],[172,8,183,21],[182,9,182,62],[184,8,196,21],[195,9,195,71],"src\\routes\\_api\\playlist\\$id.jsx","TabPanel",[23,0,38,1],[23,18,23,23],[27,2,36,8],[35,23,35,44],"PlaylistTitlePage",[57,0,229,1],[58,16,58,33],[59,13,59,36],[61,14,69,3],[71,14,84,3],[86,22,99,3],[101,21,112,3],[114,26,114,74],[116,1,126,7],[130,3,140,9],[139,4,139,24],[145,3,223,9],[160,7,168,9],[174,5,221,20],[181,8,218,10],[227,9,227,24],"src\\routes\\_api\\series\\$id.tsx",[65,0,80,1],[65,18,65,23],[69,2,78,8],[77,23,77,44],"SeriesTitlePage",[99,0,1205,1],[100,16,100,33],[102,13,102,36],[104,14,112,3],[114,14,127,3],[129,22,142,3],[144,17,157,3],[159,23,174,3],[176,43,179,3],[180,55,180,70],[182,43,185,3],[187,27,199,3],[201,18,216,3],[218,25,228,3],[229,26,229,74],[231,35,231,47],[232,31,232,43],[233,29,233,41],[234,35,234,47],[236,1,260,21],[260,5,260,19],[262Line truncated
+3 -1
View File
@@ -26,5 +26,7 @@
"typescript.tsdk": "node_modules/typescript/lib",
"[scss]": {
"editor.defaultFormatter": "vscode.css-language-features"
}
},
"millionLint.theme": "million",
"millionLint.disableOutdatedVersionMessage": true
}
+114
View File
@@ -1,3 +1,117 @@
- # Alpha 3 (11/12/2024)
- refactor: prepare for alpha 3
- refactor: cleanup
- refactor: remove unused imports
- fix: series page not fetching correct season
- feat: add key binding for macos users #435
- refactor: remove jellyPlayer naming from code #460
- feat: add playlist playback support
- refactor: improve server add process
- feat: show current time while scrubbing video progress #339
- style: increase the sharpness of card images
- feat: add skip recap button
- refactor: cleanup video player
- feat: add chapter navigation buttons to video player #457
- feat: allow changing audio track from video player
- feat: allow changing chapters from a chapter list #457
- refactor: cleanup search route
- refactor: cleanup some components
- refactor: unmount card image if not inView
- refactor: cleanup person route
- style: replace noto-sans with plus-jakarta-sans
- refactor: cleanup login routes
- fix: library items not of same size #380
- refactor: cleanup item.tsx
- fix: series page breaking if season is not loaded
- fix: do not display missing items in series
- refactor: move more files to ts
- refactor: move more files to ts
- refactor: move more files to ts
- refactor: move more files to typescript
- refactor: move more components to ts
- refactore: cleanup __root.tsx
- chore(deps): update dependencies
- fix: collections page not rendering #447
- fix: quick connect not working #445
- fix: playback error if subtitle is not set
- fix: index not being assigned proper value #420
- fix: synced lyrics not working
- Merge pull request #446 from prayag17/renovate/node-22.x-lockfile
- refactor: use saved lyrics
- refactor: change GenreView to genreFilter
- fix(deps): update dependency @types/node to v22.10.1
- Merge pull request #393 from prayag17/renovate/tanstack-router-monorepo
- Merge pull request #424 from prayag17/renovate/tanstack-query-monorepo
- fix(deps): update tanstack-router monorepo
- Merge pull request #426 from prayag17/renovate/node-22.x-lockfile
- fix(deps): update dependency @types/node to v22.10.0
- Merge pull request #437 from prayag17/dependabot/cargo/src-tauri/rustls-0.23.18
- fix(deps): update tanstack-query monorepo to v5.61.4
- Merge pull request #438 from prayag17/renovate/axios-1.x-lockfile
- Merge pull request #439 from prayag17/renovate/vitejs-plugin-react-4.x-lockfile
- chore(deps): update dependency @vitejs/plugin-react to v4.3.4
- refactore: move more components to typescript
- fix: episode and series not playing if episode is not present in nextUp and continueWatching
- feat: show current episode in PlayButton
- fix: episode indexing for absolute numbering indexNumbers in PlayButton
- fix: unable to read Id of undefined in PlayButton
- fix(deps): update dependency axios to v1.7.8
- chore(deps): bump rustls from 0.23.16 to 0.23.18 in /src-tauri
- fix(ci): not uploading debug builds
- refactor(ci): build debug builds in CI
- Merge pull request #425 from prayag17/renovate/serde_json-1.x-lockfile
- Merge pull request #436 from sambartik/macos-universal-dmg
- chore(deps): update dependencies
- refactor: convert more files to typescript
- fix: improper handling of undefined api leading to crashes
- refactor: move all buttons to tsx #338
- Add universal dmg for macOS in release job
- fix: audio queue not moving after 2 changes #182
- fix: playing track from album not updating the queue #182
- refactor: use MediaSegments api for intro/outro skipping
- fix: trickplay images not showing up
- refactor: improve login page UI #338 #202
- chore(release): update latest.json
- fix(deps): update rust crate serde_json to v1.0.133
- # 0.0.7-dev (20/11/2024)
- chore(deps): update dependencies
- refactor: change UI of login/list and fix Api not being defined in context
- fix: player/audio route not able to interact with audioPlayer
- fix: audio player info not visible
- fix: audio player not playing audio
- fix: toggling ssubtitles not working
- fix: subtitles not being rendered #401
- fix: hero carousel indicators not scrolling
- fix: vite build error for safari13
- fix: blink not launching or rendering on opening
- Merge branch 'main' of https://github.com/prayag17/JellyPlayer
- chore(deps): update dependencies
- Merge pull request #410 from prayag17/renovate/tauri-plugin-notification-2.x-lockfile
- Merge pull request #409 from Blackspirits/patch-1
- chore(deps): update dependencies
- (origin/renovate/tauri-plugin-notification-2.x-lockfile) fix(deps): update rust crate tauri-plugin-notification to v2.0.1
- feat: allow downloading images from ImageViewer
- Update index.tsx
- feat: implement basic image viewer #338 #240
- fix: react infinite depth error
- fix: vite config
- refactor: remove @million/js and @million/lint
- refactor: remove Cargo.lock from .gitignore #400
- chore(deps): update dependencies
- refactor: code cleanup
- fix: bug_report showing extra fields
- refactor: remove redundant calls for getCurrentUser
- feat: show queue item from currently playing item in queueButton
- chore(deps): update dependencies
- feat: remember library filters #192
- Merge pull request #370 from prayag17/renovate/tauri-apps-plugin-clipboard-manager-2.x
- fix(deps): update dependency @tauri-apps/plugin-clipboard-manager to v2.1.0-beta.6
- Merge pull request #381 from prayag17/renovate/wavesurfer.js-7.x-lockfile
- Merge pull request #342 from prayag17/renovate/tanstack-router-monorepo
- Merge pull request #368 from prayag17/renovate/tauri-monorepo
- chore(release): update latest.json
- # 0.0.6-dev (9/7/2024)
> **Note** : This is an unstable release
- feat: add video player slider bubble theming #337
+22 -17
View File
@@ -1,9 +1,9 @@
![Banner](https://github.com/user-attachments/assets/cf3ffbe3-3b48-4fab-bd7e-f011928286fa)
<div align="center">
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/prayag17/JellyPlayer?sort=date&display_name=tag&style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iODc4IiBoZWlnaHQ9IjEwMTIiIHZpZXdCb3g9IjAgMCA4NzggMTAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MzguODA5IDUwNkwzNS40MDQ4IDczOC45MDZMNDM4LjgwOSA5NzEuODEyTDg0Mi4yMTQgNzM4LjkwNlYyNzMuMDk0TDQzOC44MDkgNDAuMTg4NUwzNS40MDQ4IDI3My4wOTRMNDM4LjgwOSA1MDZaTTQzOC44MDkgMEw4NzcuMDE4IDI1M1Y3NTlMNDM4LjgwOSAxMDEyTDAuNjAwNTg2IDc1OVY3MTguODEyVjI5My4xODhWMjUzTDQzOC44MDkgMFoiIGZpbGw9IndoaXRlIi8%2BCjwvc3ZnPgo%3D&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%2FJellyPlayer%2Freleases%2Flatest">
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/prayag17/JellyPlayer?style=for-the-badge&logo=github&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%2FJellyPlayer%2Fstargazers">
<img alt="GitHub License" src="https://img.shields.io/github/license/prayag17/JellyPlayer?style=for-the-badge&labelColor=000">
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/prayag17/JellyPlayer/continuous-integration.yml?style=for-the-badge&logo=github&label=CI&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%2FJellyPlayer%2Factions%2Fworkflows%2Fcontinuous-integration.yml">
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/prayag17/Blink?sort=date&display_name=tag&style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iODc4IiBoZWlnaHQ9IjEwMTIiIHZpZXdCb3g9IjAgMCA4NzggMTAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MzguODA5IDUwNkwzNS40MDQ4IDczOC45MDZMNDM4LjgwOSA5NzEuODEyTDg0Mi4yMTQgNzM4LjkwNlYyNzMuMDk0TDQzOC44MDkgNDAuMTg4NUwzNS40MDQ4IDI3My4wOTRMNDM4LjgwOSA1MDZaTTQzOC44MDkgMEw4NzcuMDE4IDI1M1Y3NTlMNDM4LjgwOSAxMDEyTDAuNjAwNTg2IDc1OVY3MTguODEyVjI5My4xODhWMjUzTDQzOC44MDkgMFoiIGZpbGw9IndoaXRlIi8%2BCjwvc3ZnPgo%3D&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%Blink%2Freleases%2Flatest">
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/prayag17/Blink?style=for-the-badge&logo=github&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%Blink%2Fstargazers">
<img alt="GitHub License" src="https://img.shields.io/github/license/prayag17/Blink?style=for-the-badge&labelColor=000">
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/prayag17/Blink/continuous-integration.yml?style=for-the-badge&logo=github&label=CI&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%Blink%2Factions%2Fworkflows%2Fcontinuous-integration.yml">
</div>
###
@@ -13,8 +13,8 @@
## 📝 Prerequisites
- Nodejs (≥19.1.0)
- Rust (≥1.76.0)
- Nodejs (22.14.0)
- Rust (>=1.85.0)
- Visual Studio C++ Build tools
- [pnpm](https://pnpm.io/)
@@ -42,7 +42,7 @@
pnpm run tauri build
```
- other commands can be found inside the `"scripts"` inside [package.json](https://github.com/prayag17/JellyPlayer/blob/main/package.json)
- other commands can be found inside the `"scripts"` inside [package.json](https://github.com/prayag17/Blink/blob/main/package.json)
## 💻 Contribution
@@ -60,21 +60,25 @@
- Sort/Filter library items
- Queue playback support
- Intro Skip button using [jumoog/Intro-Skipper](https://github.com/jumoog/intro-skipper) plugin
- Mediasegment support
## 📷 Screenshots
- Home
![home](https://github.com/prayag17/JellyPlayer/assets/55829513/ffda4dc5-c147-4278-a232-bb58b1051501)
- Title Page - Movie
![title-movie](https://github.com/prayag17/JellyPlayer/assets/55829513/1086f51b-a743-46e4-a761-c9f70a0d21bd)
- Title Page - Show
![title-show](https://github.com/prayag17/JellyPlayer/assets/55829513/23b42d4a-2892-497b-aa32-0ae73e300655)
- Episode List
![show-episodes](https://github.com/prayag17/JellyPlayer/assets/55829513/9fe69ddd-ffa3-4a6b-a2a7-c2e639b6b2e4)
<img width="2560" height="1600" alt="Screenshot 2026-02-10 212208" src="https://github.com/user-attachments/assets/036c2339-e8f1-4c8d-a908-af0ece9bb1f3" />
- Library
<img width="2560" height="1600" alt="Screenshot 2026-02-10 212723" src="https://github.com/user-attachments/assets/6520a325-3cf3-47a0-9056-b27aded4bb8c" />
- Music Player Detailed
<img width="2560" height="1600" alt="Screenshot 2026-02-10 213017" src="https://github.com/user-attachments/assets/00a89efa-0a4c-4272-868e-f52c9fcfeaac" />
- Item Page
<img width="2560" height="1600" alt="Screenshot 2026-02-10 212653" src="https://github.com/user-attachments/assets/5d281f8c-48ba-4787-b8ca-a4b86ccab5c1" />
- Album / Music Player
<img width="2560" height="1600" alt="Screenshot 2026-02-10 212949" src="https://github.com/user-attachments/assets/d99aaea5-e242-4b3d-a5c5-d2868313728b" />
- Search Dialog
<img width="2560" height="1600" alt="Screenshot 2026-02-10 212749" src="https://github.com/user-attachments/assets/4ad87072-86ad-4510-95a4-567d6d11e997" />
- Video Player
![playback-video](https://github.com/prayag17/JellyPlayer/assets/55829513/a84850e6-3be7-41c5-8cf7-e14c3cd0df29)
- About Dialog
![about](https://github.com/prayag17/JellyPlayer/assets/55829513/fc3adf83-87fd-4901-8abd-39b148418f8d)
<img width="2560" height="1600" alt="Screenshot 2026-02-10 213049" src="https://github.com/user-attachments/assets/effcca22-3650-46e1-9a86-b3b434851f2f" />
## 📃 Roadmap
@@ -86,3 +90,4 @@
- [@ferferga](https://github.com/ferferga) for helping in development behind the scenes.
- All contributors of [jellyfin/jellyfin-vue](https://github.com/jellyfin/jellyfin-vue).
- And also [@jellyfin](https://github.com/jellyfin/) for creating the main service
+23 -14
View File
@@ -1,19 +1,27 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"organizeImports": {
"enabled": true
},
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noNonNullAssertion": "off",
"useEnumInitializers": "off"
"useEnumInitializers": "off",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
},
"a11y": {
"useKeyWithClickEvents": "off",
"useMediaCaption": "off"
"useMediaCaption": "off",
"noStaticElementInteractions": "off"
},
"correctness": {
"useExhaustiveDependencies": "off",
@@ -21,17 +29,18 @@
},
"suspicious": {
"noExplicitAny": "off"
}
},
"nursery": {}
}
},
"files": {
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.jsx",
"src/**/*.js",
"*.json",
"*.scss"
"includes": [
"**/src/**/*.ts",
"**/src/**/*.tsx",
"**/src/**/*.jsx",
"**/src/**/*.js",
"**/*.json",
"**/*.scss"
],
"ignoreUnknown": true
},
+256
View File
@@ -0,0 +1,256 @@
# Blink Remote Control + SyncPlay Plan
## Goal
логин root пароль 12345
сервер https://jel.midns.ru
Make remote control and SyncPlay predictable for Blink clients only:
- Remote control lists only `Client = Blink` sessions, with readable device names.
- Quick transfer of the current media to any selected Blink device.
- Media takeover cards for taking playback from another Blink device.
- SyncPlay groups are Blink groups; add an auto-group for all running Blink clients.
- Keep group playback as close to frame-accurate as the Jellyfin SyncPlay protocol allows.
- Redesign all remote/session cards with a glass surface, clear hierarchy and motion.
## Constraints
- Do not expose non-Blink Jellyfin sessions in remote control or SyncPlay UI.
- Do not rely on `GroupInfoDto.Participants` for device names: the server stores
distinct user names there, not device names or sessions.
- Device identity must be stable per installation and readable by humans.
- Multi-client testing should use the same Jellyfin user, like a household setup.
## Workstreams
### 1. Blink identity and shared session utilities
- Add a device identity helper: stable id, readable name
(`Blink · Windows · 4F2A`), optional local override.
- Set `deviceInfo.name` from that helper so Jellyfin reports a useful
`DeviceName` for every Blink client.
- Add a local "device name" field in Settings → Preferences.
- Add shared helpers:
- `isBlinkSession`
- `getBlinkSessions(sessions, { userId, selfDeviceId })`
- `getBlinkDeviceName`
- `getBlinkDeviceKind`
- Blink group marker/prefix and predicate.
### 2. Remote control: Blink only + quick transfer
- Shared `useBlinkSessions` hook: realtime WebSocket snapshot first, API poll as
fallback. Filters by `Client=Blink`, same user, excludes the local device.
- Use the shared filter in:
- titlebar cast dialog
- remote page
- audio player device menu / remote bar
- FollowMe takeover prompt
- legacy playback sync
- `CastButton` without explicit media uses the current local media
(video/audio item, queue, position, paused state).
- Redesign the cast dialog:
- "Сейчас играет" media preview.
- Blink device cards.
- One-click "Отправить сюда".
- "Забрать сюда" when the target is playing.
- "Открыть пульт" for full control.
### 3. Remote page: full control
- Blink-only device list with proper names.
- Glass session cards: device, status, now playing, progress.
- Add actions missing today:
- take remote playback here
- send current local media to the selected device
- stop remote playback
- audio track selection (alongside subtitles)
- volume/mute, seek, play/pause, next/prev, fullscreen
- open SyncPlay group controls from the remote page
- Motion: card lift, progress animation, active-device glow.
### 4. SyncPlay: Blink groups + auto-group
- Group name prefix `Blink ·`; only prefixed groups are listed and joinable.
- Create groups with the prefix hidden from the visible name.
- Auto-group:
- name `Blink · Автогруппа`
- host can create/join with one click
- other Blink clients auto-join when the setting is enabled (default on)
- host can optionally share the current queue at the same time
- SyncPlay dialog shows online Blink devices by name and uses Blink-only
groups.
- `GroupInfoDto.Participants` is shown as users, never as devices.
- Avoid the old "participants <= 1 => force resume" shortcut when other Blink
devices are online; let the server's group-wait complete.
### 5. Maximum SyncPlay synchronization
- Measure real ping (EMA of SyncPlay ping round-trip) instead of a fixed 50 ms.
- Only report `Ready` once local playback is actually ready (video ready and not
buffering; audio element has enough data).
- Reduce drift tolerance to the server's practical sync window (~500 ms) and
keep seek throttling.
- Keep assistant controllers: pings every 3 s, ready retry only while waiting.
- Do not auto-resume a group before other online Blink clients are ready.
### 6. Glass takeover cards + animations
- Shared `SessionCard` component for remote dialog, remote page and device
lists.
- Glass surface: translucent gradient, 1 px highlight border, blur, depth
shadow, poster-driven accent.
- States: selected, playing, paused, idle, unsupported.
- Motion: entrance stagger, hover lift, press scale, progress transition,
active pulse.
- FollowMe takeover prompt uses the same glass language.
### 7. Testing with 2-3 clients
- Launch the current dev build as 2 extra WebView2 profiles, each with its own
localStorage device id; share the same Jellyfin user/token.
- Verify:
1. all three appear as `Client=Blink` with distinct readable names
2. remote dialog lists only Blink devices
3. screenshot/internal API check of the glass cards
4. send current media from client 1 to client 2; verify client 2 starts at
the same position and client 1 stops
5. take media back to client 1; verify client 2 stops
6. create auto-group from client 1; clients 2/3 join automatically
7. share queue; all three play the same item; compare positions/drift
8. pause/resume/seek from client 1; verify clients 2/3 follow
9. verify non-Blink sessions/groups are not shown
- Record results in the final report.
## Definition of done
- `tsc --noEmit` and `pnpm build` pass.
- No non-Blink session or group appears in remote/SyncPlay UI.
- Three-device test passes for transfer, takeover, auto-group and
pause/resume/seek synchronization.
- Final short report with issue count and serious fixes.
## Verification results (2026-12-02)
Stand: three Blink clients on one Windows machine (`2346`, `5A33`, `1959`),
one Jellyfin user, dev build, server `https://jel.midns.ru`.
| Scenario | Result |
| --- | --- |
| Blink-only filters and names | Jellyfin Web / other sessions never shown; devices appear as `Blink · Windows · XXXX` |
| Send current media to another client | Target starts at the same position with the shared queue; source stops |
| Take playback back | Target stops, initiator resumes at the transferred position |
| Auto-group with all three clients | Clients join in 1–3 s; no 30 s `Waiting` timeout |
| Group queue start | `Playing` within ~1 s, positions 0.00/0.00/0.00 (spread ≤ 0.02 s) |
| Pause | `Paused` within ~1 s, all at the same position (spread 0.00 s) |
| Resume | Server schedules the unpause by ping (≈2 s in this setup), spread 0.01 s |
| Seek to 05:00 | `Waiting → Playing`, final spread 0.02–0.03 s at 306.3 s |
| Non-Blink groups | Not listed, not joinable |
### Serious fixes found by the three-client test
1. **Buffer end was reported as another Buffer request.** The Jellyfin server
treats any Buffer request as “this session is buffering”, so every client
that finished buffering was marked buffering again. Buffer end now sends
`Ready`, as jellyfin-web does.
2. **Parking tolerance was 30 ms instead of 400 ms.** While waiting for a new
queue, clients seeked every second against a 30 ms threshold and never sent
`Ready`; the group only started via the server’s 30 s timeout. The threshold
is now 400 ms, below the server’s 500 ms acceptance window.
3. **Paused position was read from a stale store value.** `playerState.currentTime`
only updates on `timeupdate`, which can stand still while paused, so seeks
looked unapplied. Position now comes from the `<video>` element directly.
4. **Seek was extrapolated as if playing.** After a group seek the server stays
in `Waiting` at the seek position; the client kept adding elapsed time,
making the server chase a moving target. A Seek now freezes the timeline at
the target and pauses locally until the group unpause.
5. **State updates resumed/paused clients immediately.** That bypassed the
server’s scheduled `When`, so each client started at a different instant.
Only Pause/Unpause/Seek commands drive playback now; the state update is
informational.
6. **Local parking echoed Pause/Seek/Buffer requests.** Pausing a client to
park it looked like a user request and flipped the group to `Paused` or
restarted the wait. Parking is guarded, and pause/resume/seek/buffer reports
are suppressed while the group is parking.
7. **Readiness waited for `HAVE_CURRENT_DATA`/`onReady`.** A player parked
before its first frame could stay at metadata only, so it never reported
ready and the group waited 30 s. Readiness now accepts loaded metadata
(`readyState >= 1`), which is enough to start in sync.
8. **Command timeline.** Pause/Unpause/Seek positions are now anchored to the
server’s `When` + `PositionTicks` and reset on every play-queue update,
instead of extrapolating from a stale queue snapshot.
9. **Auto-group start window.** Auto-join polling is 2 s and, when other Blink
devices are online, sharing the queue waits 2.2 s so they join before the
first unpause instead of joining mid-playback.
`pnpm exec tsc --noEmit` and `pnpm build` pass after these changes.
## Audio, transfers and group edge cases (2026-12-02, follow-up)
### Additional fixes
1. **Audio playback was invisible to Jellyfin.** The `<audio>` element played
locally but never sent `reportPlaybackStart/Progress/Stopped`. As a result
`/Sessions` stayed empty, so audio could not be cast, taken over, followed or
synchronised. Audio now reports start, progress (10 s), pause and stop; the
session shows the track and position like a video.
2. **A group was moving unrelated local music.** Group `Seek`/`Pause`/`Unpause`
commands and drift correction were applied to whatever media the client was
playing. Starting music while a group video was running made the server seek
the track to the video position: the song jumped to its end, ended and
restarted every couple of seconds. Commands now only touch the group's
current item; other local media is ignored.
3. **Starting media echoed a Pause into the group.** Pausing the old video when
music starts looked like a user Pause request. A short media-switch guard
suppresses Pause/Seek/Buffer reports while audio and video swap.
4. **A client playing local media held the whole group.** Such a client is now
marked with `IgnoreWait` on the server, and the mark is cleared when it
returns to the group item. The group no longer waits 30 s for a member that
deliberately switched to music; its own playback is unaffected.
5. **Transfers stopped the source before the target had started.** `playOnSession`
now waits until the target session reports the requested item (up to two
attempts), then corrects its position. If the target never starts, the
mutation fails and the source keeps playing instead of stopping everywhere.
6. **Audio transfers always looked unsuccessful.** Because audio was never
reported, the source could not verify the target. With audio reporting the
same confirmation works for music and video.
7. **Follow-me card was hidden by an idle audio player.** It used to hide
whenever the audio bar had an item, even when paused. It now hides only while
audio is actually playing, so “Продолжить здесь” appears over an open but
idle audio player.
8. **Audio/video mixing.** Starting one medium stops the other; the group item
guard prevents cross-media seeks; media-switch guards prevent old-player
events from being sent as group commands.
9. **Two-second loop at the start of a group video.** Late auto-joins each put
the group back into Waiting and re-parked everyone at the first seconds.
Auto-join polls every 1 s, the host waits 3 s before sharing the queue when
other Blink clients are online, and the old “solo force resume” was removed.
Three clients now start together in about 1 s with no loop.
10. **Back from the player.** The group is not left. The player exit no longer
reports a Pause, and after ~3 s without local media the client is marked
`IgnoreWait`, so the group keeps playing while the user browses.
11. **Audio autoplay overrode SyncPlay parking.** The `<audio autoPlay>` element
started even when the group had parked it, so clients played ~3 s and the
server then seeked everyone back to 0. The element no longer autoplays:
playback follows the shared store flag, and parking pauses it before the
element even mounts.
### Follow-up verification
| Scenario | Result |
| --- | --- |
| Audio session visibility | `/Sessions` shows the track, type Audio, live position |
| Audio send, one client to another | Target starts at the transferred position; source stops only after confirmation |
| Follow-me with the audio player open | Card appears over the paused/ended audio player; takeover works for audio and video |
| Music during a group video | Group stays Playing; music advances 31→35 s while video 5→10 s |
| Group pause while one client plays music | State `Paused` in 1 s; video pauses, music keeps playing |
| Music vs. group seek | Group seek to 05:00 does not move the music (33→44 s) |
| Three-client group start | `Playing` in ~1 s, positions identical, no 2 s loop |
| Group audio start | Parks at 0, no 3 s restart; pause 8.6/8.7/8.6 → resume 9.8/9.8/9.8 |
| Group audio seek to 01:00 | All at 60–61 s, then advance together, no end loop |
| Back from the group player | Group remains; other clients continue; Pause reaches `Paused` in 1 s with the browsing client ignored |
| `tsc --noEmit` / `pnpm build` | Pass |
+605
View File
@@ -0,0 +1,605 @@
# Интеграция qBittorrent в Blink — план
> Статус: **реализовано** (Rust-клиент, страница «Загрузки», настройки).
> Проверено на qBittorrent 5.3.0 / WebAPI 2.16.2; совместимость с 4.x
> заложена в клиент, но на живой 4.x не прогонялась.
## 0. Заметки по реализации
- qBittorrent 5.x принимает параметр `stopped` при добавлении раздачи, 4.x —
`paused`. Клиент отправляет оба: каждая версия читает свой и игнорирует
чужой.
- `sync/maindata` **не повторяет `hash` внутри объекта торрента** — хеш является
ключом словаря. Без подстановки ключа строки получали пустой hash, ломая
действия; в `QbTorrentRaw::from_value` хеш берётся из ключа.
- Для API-ключа заголовок `Authorization: Bearer …` нужно добавлять и к
multipart-запросу `torrents/add`; без него qB отвечает `403` (при этом
обычные GET/POST-формы работают).
- Секрет хранится в системном keyring (`blink-qbittorrent` / `default`) либо
только в памяти до закрытия приложения; в `qbittorrent.json` его нет.
## 1. Цель и рамки
Добавить в Blink страницу загрузок qBittorrent:
1. Добавление раздачи по **magnet-ссылке**.
2. Добавление **.torrent файла**.
3. Выбор **категории** qBittorrent (у категории может быть своя папка).
4. Список позиций со **статусом скачивания**: прогресс, скорость, ETA, состояние,
категория, размер; действия пауза/продолжить/удалить.
5. Настройки подключения к qBittorrent и проверка соединения.
Вне рамок этого этапа: поиск раздач, RSS, автозагрузка, интеграция с
Radarr/Sonarr/Seerr, несколько qB-серверов одновременно, поддержка Usenet.
## 2. Пользовательские сценарии
### 2.1. Добавить магнит
1. «Загрузки» → кнопка «Добавить» (или «+» в шапке страницы).
2. Вкладка «Магнит»: вставить `magnet:?xt=urn:btih:…`.
3. Категория выбирается из списка, полученного из qB; рядом показывается
`savePath` категории (или «папка по умолчанию»).
4. «Добавить» → тост «Раздача добавлена» → строка сразу появляется в списке
со статусом «Получение метаданных» / «В очереди».
5. Если qB вернул дубликат — сообщение «Такая раздача уже есть».
### 2.2. Добавить .torrent
1. Вкладка «Файл»: выбор файла через диалог Tauri (`.torrent`).
2. Тот же выбор категории и кнопка «Добавить».
3. Файл отправляется в qB как multipart (`torrents`).
### 2.3. Статус загрузки
Список обновляется опросом `/sync/maindata`:
имя, категория, размер, прогресс (%, полоса), скорость ↓/↑, ETA, состояние.
Состояния в UI:
| Состояние qB | Подпись в Blink |
| --- | --- |
| `metaDL` | Получение метаданных |
| `queuedDL`, `queuedUP` | В очереди |
| `downloading`, `forcedDL`, `stalledDL` | Скачивается |
| `checkingDL`, `checkingUP`, `checkingResumeData` | Проверка |
| `moving` | Перемещение |
| `uploading`, `forcedUP`, `stalledUP` | Раздаётся |
| `pausedDL`, `stoppedDL` | Пауза |
| `pausedUP`, `stoppedUP` | Завершено |
| `error`, `missingFiles` | Ошибка |
| `unknown` | Неизвестно |
«Добавленные из Blink» помечаются локально: хеши, полученные при добавлении,
хранятся в store; фильтр «Все / Добавленные из Blink».
### 2.4. Настройки
Новый раздел «Настройки → Загрузки» (или отдельная страница настроек
интеграции):
| Поле | Обязательное | Описание |
| --- | --- | --- |
| Адрес WebUI | да | `http://192.168.1.10:8080` — без `/api/v2` |
| Способ входа | да | «Логин и пароль» / «API-ключ» (qB 5.3+, WebAPI 2.17+) |
| Логин | для пароля | пользователь WebUI |
| Пароль | для пароля | системное хранилище секретов (см. 4.2) или ввод при запуске |
| API-ключ | для ключа | там же |
| Разрешить самоподписанный TLS | нет | только для HTTPS, с предупреждением |
| Категория по умолчанию | нет | подставляется в диалоге |
| Добавлять на паузе | нет | параметр `paused` |
| Автоуправление (autoTMM) | нет | параметр `autoTMM`; по умолчанию `true`, чтобы работала папка категории |
| Обновлять Jellyfin после завершения | нет | `POST /Library/Refresh` |
| Интервал опроса | нет | по умолчанию 2000 мс, минимум 1000 |
Кнопка «Проверить соединение»: логин → `/app/version` → `/app/webapiVersion` →
`/app/defaultSavePath`; показывает версию qB и WebAPI.
## 3. qBittorrent WebUI API
База: `{baseUrl}/api/v2`. Все методы — `GET` или `POST`; мутации только `POST`.
Авторизация — cookie-сессия (логин/пароль) или API-ключ.
### 3.1. Версии и совместимость
| qBittorrent | WebAPI | Особенности |
| --- | --- | --- |
| 4.1–4.6 | 2.0–2.8 | базовые методы; логин `200` при успехе и неудаче (тело `Ok.` / `Fails.`) |
| 5.0–5.2 | 2.9–2.14 | cookie может называться `QBT_SID_<port>`; `torrents/add` в 2.14+ отвечает JSON |
| 5.2+ | 2.14+ | логин `204`/`401`; `torrents/add`: `200`, `202` (есть pending), `409` (ничего не добавлено) |
| 5.3+ | 2.17+ | API-ключ (`Authorization: Bearer …` / `X-API-Key`); `torrents/add` без `skip_checking` с 2.16 |
Минимальная поддерживаемая версия — **qBittorrent 4.1 / WebAPI 2.0**.
Версию определять через `/app/webapiVersion` при проверке соединения.
### 3.2. Авторизация
`POST /api/v2/auth/login`
| Параметр | Тип | Описание |
| --- | --- | --- |
| `username` | string | логин WebUI |
| `password` | string | пароль WebUI |
Заголовки:
- `Referer: {baseUrl}` и `Origin: {baseUrl}` обязательны — иначе qB отклоняет
запрос. Хост и порт должны совпадать с `Host`.
- `Content-Type: application/x-www-form-urlencoded`.
Ответы:
| Код | Значение |
| --- | --- |
| `200` | до 5.2: успех/неудача в теле (`Ok.` / `Fails.`) |
| `204` | 5.2+: успех, тела нет |
| `401` | 5.2+: неверные учётные данные |
| `403` | IP забанен после N неудачных попыток |
Cookie: имя брать из `Set-Cookie` (`SID` или `QBT_SID_<port>`), не хардкодить.
Сессия живёт `web_ui_session_timeout` (по умолчанию 3600 с); при `401/403`
нужно один раз повторить логин и запрос.
API-ключ (WebAPI 2.17+): заголовок `Authorization: Bearer <key>`; логин не
нужен. В настройках qB ключ создаётся в «WebUI → API».
`POST /api/v2/auth/logout` — завершение сессии (использовать при смене
настроек/выходе).
### 3.3. Служебные методы
| Метод | Параметры | Ответ |
| --- | --- | --- |
| `GET /app/version` | — | строка, например `v5.0.3` |
| `GET /app/webapiVersion` | — | строка, например `2.11` |
| `GET /app/defaultSavePath` | — | путь по умолчанию |
| `GET /app/preferences` | — | объект; нужны `save_path`, `auto_tmm_enabled` |
| `POST /app/setPreferences` | `json` | не используется в этом этапе |
### 3.4. Категории
| Метод | Параметры | Ответ |
| --- | --- | --- |
| `GET /torrents/categories` | — | объект `{ "movies": { "name": "movies", "savePath": "D:/Media/Movies", "downloadPath": … } }` |
| `POST /torrents/createCategory` | `category`, `savePath` | `200` / `409` (уже есть) |
| `POST /torrents/editCategory` | `category`, `savePath` | `200` |
| `POST /torrents/removeCategories` | `categories` (по `\n`) | `200` |
`savePath` может быть пустым — тогда используется общий путь qB.
`downloadPath` в ответе может быть `null`.
В UI: выпадающий список из `GET /torrents/categories` + пункт «Без категории».
Под списком — подсказка с `savePath` выбранной категории. Создание категории
из Blink — опционально (фаза 4), с полем пути.
### 3.5. Добавление раздачи
`POST /api/v2/torrents/add` — **multipart/form-data** (обязательно; для магнита
тоже можно multipart с полем `urls`).
| Поле | Тип | Обязательное | Описание |
| --- | --- | --- | --- |
| `urls` | string | да для магнита | ссылки через `\n` (`magnet:`, `http(s)://…`) |
| `torrents` | file | да для файла | содержимое `.torrent`; поле можно повторять |
| `savepath` | string | нет | папка; при `autoTMM=true` игнорируется/переопределяется категорией |
| `category` | string | нет | имя категории |
| `tags` | string | нет | теги через запятую |
| `paused` | bool | нет | добавить на паузе |
| `autoTMM` | bool | нет | автоуправление категорией |
| `sequentialDownload` | bool | нет | последовательная загрузка |
| `firstLastPiecePrio` | bool | нет | приоритет первых/последних кусков |
| `skip_checking` | bool | нет | **удалён в WebAPI 2.16**; не отправлять при новых версиях |
| `root_folder` | bool | нет | создавать корневую папку |
| `rename` | string | нет | переименовать раздачу |
| `upLimit`, `dlLimit` | int | нет | лимиты, байт/с |
| `ratioLimit`, `seedingTimeLimit` | float/int | нет | лимиты раздачи |
Ответы:
| Код | Значение |
| --- | --- |
| `200` | успех (до 5.2 — все сценарии, тело `Ok.` / `Fails.`) |
| `202` | 5.2+: часть добавлена, часть в обработке (`pending_count > 0`) |
| `409` | 5.2+: ничего не добавлено (дубликаты/ошибки) |
| `415` | `.torrent` невалиден |
С WebAPI 2.14 тело ответа — JSON:
`{ "success_count": 1, "pending_count": 0, "failure_count": 0, "added_torrent_ids": ["…"] }`.
Для старых версий тело — текст; дубликат определяется по `Fails.` и/или
сравнением списка торрентов после добавления.
### 3.6. Список и прогресс
`GET /api/v2/torrents/info` — полный снимок.
Параметры: `filter` (`all`, `downloading`, `seeding`, `completed`, `stopped`,
`active`, `inactive`, `running`, `stalled`, `errored`), `category`, `tag`,
`sort`, `reverse`, `limit`, `offset`, `hashes` (через `|`).
Поля, которые нужны UI:
| Поле | Назначение |
| --- | --- |
| `hash` | ключ строки |
| `name` | название |
| `category` | категория |
| `size`, `completed`, `downloaded` | размер и прогресс |
| `progress` | 0..1 |
| `dlspeed`, `upspeed` | скорости, байт/с |
| `eta` | секунды (8640000 = бесконечно) |
| `state` | состояние (см. таблицу выше) |
| `save_path`, `content_path` | куда скачалось |
| `added_on`, `completion_on` | время |
| `ratio` | раздача |
| `num_seeds`, `num_leechs` | пиры |
| `error` | причина ошибки (WebAPI 2.17+) |
`GET /api/v2/sync/maindata?rid=N` — инкрементально, для опроса:
| Поле | Значение |
| --- | --- |
| `rid` | новый идентификатор; передавать в следующий запрос |
| `full_update` | `true` — заменить всё локальное состояние |
| `torrents` | изменения по хешам (те же поля, что в `torrents/info`) |
| `torrents_removed` | массив удалённых хешей |
| `categories` | новые/изменённые категории |
| `server_state` | общая скорость, свободное место и т.п. |
Алгоритм: хранить `rid` и `Map<hash, QbTorrent>`; при `full_update` очищать
Map; удалять `torrents_removed`; мержить `torrents`.
### 3.7. Управление
| Метод | Параметры | Примечание |
| --- | --- | --- |
| `POST /torrents/pause` | `hashes` (`all` или `a\|b`) | в 5.x остаётся |
| `POST /torrents/resume` | `hashes` | |
| `POST /torrents/delete` | `hashes`, `deleteFiles=true/false` | удаление с файлами — подтверждение |
| `POST /torrents/setCategory` | `hashes`, `category` | смена категории на лету |
| `GET /transfer/info` | — | глобальная скорость (для шапки) |
### 3.8. Ошибки и их разбор
| Ситуация | Признак | Что показать |
| --- | --- | --- |
| qB недоступен | connect timeout / connection refused | «qBittorrent недоступен» + адрес |
| Неверный логин | `401` / `Fails.` | «Проверьте логин и пароль» |
| Бан IP | `403` на логине | «qB заблокировал IP, подождите» |
| Нет категории | `409` при createCategory | «Категория уже существует» |
| Дубликат | `409` / `Fails.` | «Раздача уже добавлена» |
| Битый .torrent | `415` | «Файл не является торрентом» |
| Сессия истекла | `403` на обычном запросе | повторный логин один раз |
| Self-signed TLS | ошибка сертификата | подсказка включить «Разрешить самоподписанный TLS» |
## 4. Архитектура в Blink
### 4.1. Rust-бэкенд (почему не fetch из webview)
qBittorrent WebUI **не отдаёт CORS-заголовки**, а также требует совпадения
`Referer`/`Host`. Поэтому запросы делает Rust через `reqwest` с cookie-jar.
Webview вызывает только Tauri-команды.
Новый модуль: `src-tauri/src/qbittorrent/mod.rs` (+ `client.rs`, `types.rs`,
`commands.rs`). Зависимости в `Cargo.toml`:
- `reqwest` с `cookies`, `json`, `multipart`, `rustls-tls` (без OpenSSL — важно
для Linux-пакетов);
- `keyring` 3 с платформенными бэкендами (`windows-native`, `apple-native`,
`sync-secret-service`);
- `thiserror`/`serde` — уже есть в проекте;
- `tokio` — уже есть через Tauri.
Состояние: `QbState { client: Mutex<Option<Client>>, config_hash }` — клиент
пересоздаётся при изменении настроек.
Команды:
| Команда | Вход | Выход |
| --- | --- | --- |
| `qb_test_connection` | `{ baseUrl, auth }` | `{ appVersion, apiVersion, defaultSavePath }` |
| `qb_categories` | — | `QbCategory[]` |
| `qb_create_category` | `{ name, savePath }` | `()` |
| `qb_add_magnet` | `{ magnet, category?, paused?, autoTMM? }` | `QbAddResult` |
| `qb_add_torrent_file` | `{ fileName, bytesBase64, category?, … }` | `QbAddResult` |
| `qb_torrents` | — | `QbTorrent[]` (полный снимок) |
| `qb_sync` | `{ rid }` | `QbSyncResponse` (diff) |
| `qb_pause` / `qb_resume` | `{ hashes }` | `()` |
| `qb_delete` | `{ hashes, deleteFiles }` | `()` |
| `qb_set_category` | `{ hashes, category }` | `()` |
Типы (TS/Rust):
```ts
type QbCategory = { name: string; savePath: string };
type QbTorrent = {
hash: string; name: string; category: string;
size: number; completed: number; progress: number;
dlspeed: number; upspeed: number; eta: number;
state: string; savePath: string; addedOn: number;
ratio: number; numSeeds: number; numLeeches: number;
error?: string;
};
type QbAddResult = {
status: "added" | "pending" | "duplicate" | "invalid";
addedHashes: string[];
message?: string;
};
```
Ошибки: единый `QbError { kind: "unreachable" | "auth" | "banned" | "api" |
"torrent" | "duplicate" | "tls" | "http"; message: string; status?: number }`.
Таймауты: connect 5 с, чтение 15 с; добавление файла — 60 с.
### 4.2. Хранение настроек и секретов (все ОС)
- Не секреты (`baseUrl`, категория по умолчанию, флаги, таймаут) — через
`tauri-plugin-store` (как `.user.dat`), файл `qbittorrent.json` в app-data
каталоге ОС (Windows `%APPDATA%`, macOS `~/Library/Application Support`,
Linux `~/.local/share`).
- Пароль и API-ключ — через `keyring` 3 в системное хранилище:
- **Windows** — Credential Manager (DPAPI);
- **macOS** — Keychain (при первом обращении система покажет свой запрос —
это нормально);
- **Linux** — Secret Service через DBus (GNOME Keyring / KWallet).
`service = "blink-qbittorrent"`, `user = baseUrl`.
- **Linux без Secret Service** (сервер, минимальный дистрибутив, нет
keyring-демона): `keyring` вернёт ошибку. Приложение **не** пишет пароль в
открытый файл. По умолчанию пароль запрашивается при запуске (session-only).
Опционально, с явным предупреждением, — шифрованный vault (age/scrypt) в
app-data; решение принять на этапе 1.
- В store хранится только флаг «секрет сохранён» и способ входа.
- Никогда не логировать пароль, cookie и `Authorization`.
### 4.3. Фронтенд
Новые файлы (ориентировочно):
- `src/routes/_api/downloads.tsx` и `downloads.scss` — страница списка.
- `src/components/downloads/addTorrentDialog.tsx` — магнит/файл + категория.
- `src/components/downloads/torrentRow.tsx` — строка списка.
- `src/components/downloads/downloadsEmpty.tsx`.
- `src/utils/store/qbittorrent.ts` — настройки и локальный список добавленных
хешей (zustand + tauri store).
- `src/utils/queries/qbittorrent.ts` — React Query хуки.
- Настройки: секция в `src/routes/_api/settings/preferences.tsx` или отдельный
маршрут `settings/downloads.tsx`.
Доступ к странице: иконка `download` в верхней панели и пункт в боковом меню
(рядом с «Пультом»).
Опрос: React Query с `refetchInterval: 2000`, `refetchIntervalInBackground:
false`; внутри — `qb_sync` с `rid`, а не полный `torrents/info`.
Мутации инвалидируют запрос и показывают тост.
### 4.4. Локальная память добавленного
qB не хранит «кто добавил». Чтобы показать «Добавленные из Blink»:
- после успешного `qb_add_*` сохранить хеши в store;
- для старых qB (без `added_torrent_ids`) — найти торрент по имени/магниту
после первого sync и сохранить его хеш;
- список хешей чистить при удалении и по кнопке «Забыть».
Альтернатива (проще): показывать все торренты qB — это и есть «статус каждой
добавленной позиции», а фильтр «из Blink» сделать опционально в фазе 5.
### 4.5. Кроссплатформенность
Функционал обязан работать на **Windows, macOS и Linux**. qBittorrent при этом
может быть установлен на любой ОС и даже на другой машине — Blink общается с
ним только по HTTP(S).
| Слой | Требование |
| --- | --- |
| HTTP/TLS | `reqwest` + `rustls`, без OpenSSL; поддержка IPv4/IPv6/localhost; флаг «самоподписанный сертификат» |
| Секреты | `keyring` (Credential Manager / Keychain / Secret Service); при недоступности — session-only, без plaintext |
| Пути | `savePath`/`contentPath` из qB — непрозрачные строки в ОС **сервера qB**; показывать как есть, не склеивать с локальными путями и не проверять их существование |
| Файлы | нативный диалог `tauri-plugin-dialog` с фильтром `.torrent`; без shell-команд `open`/`explorer` |
| Уведомления | `tauri-plugin-notification`; на macOS запросить разрешение, на Linux — libnotify (если нет — тихо пропустить) |
| Заголовок окна | страница использует общий titlebar приложения: macOS — отступ под traffic lights, Windows/Linux — штатные кнопки окна; своих кнопок не рисовать |
| Адаптивность | следовать мобильным правилам из `feat(mobile)`: ≤900 px — одна колонка, ≤640 px — компактные строки, крупные touch-цели |
| Хранение | `tauri-plugin-store` в app-data каждой ОС; никаких путей, зашитых под Windows |
| Сборка | Windows NSIS/MSI, macOS dmg/app (arm64 и x86_64), Linux AppImage/deb; без новых системных зависимостей, кроме Secret Service на Linux |
Отдельно: категория в qB может иметь путь вида `D:/Media/Movies` (Windows) или
`/mnt/media/movies` (Linux) — это путь на машине qB. UI только показывает его
и при создании категории подсказывает, что путь вводится для сервера qB.
## 5. Макеты экранов
### 5.1. Страница «Загрузки»
```
┌──────────────────────────────────────────────────────────────┐
│ Загрузки [Обновить] [+ Добавить] │
│ ▼ 12 ГБ/с ▲ 3 ГБ/с Свободно: 120 ГБ │
├──────────────────────────────────────────────────────────────┤
│ [Все] [Скачиваются] [Завершённые] [Из Blink] │
│ │
│ 🎬 Interstellar.2014.1080p Скачивается │
│ movies · 8.4 ГБ из 14 ГБ · 72% · 6.2 МБ/с · 18 мин │
│ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░ [⏸] [🗑] │
│ │
│ 📺 Series.S01.1080p Завершено │
│ series · 22 ГБ · 100% · раздаётся 1.4× [⏸] [🗑] │
└──────────────────────────────────────────────────────────────┘
```
### 5.2. Диалог «Добавить»
- Табы: **Магнит** | **Файл**.
- Магнит: textarea, вставка из буфера, валидация `magnet:?xt=urn:btih:`.
- Файл: кнопка выбора `.torrent`, имя файла, размер.
- Категория: select из qB + «Без категории»; подсказка `savePath`.
- Дополнительно (свернуть): «на паузе», «autoTMM», «последовательная
загрузка».
- Кнопки: «Отмена», «Добавить».
### 5.3. Пустые и ошибочные состояния
- Не настроено подключение → карточка «Подключите qBittorrent» + кнопка в
настройки.
- qB недоступен → «qBittorrent не отвечает» + «Повторить».
- Нет раздач → «Пока ничего не скачивается» + «Добавить раздачу».
### 5.4. Адаптивность
- ≥1200 px: список во всю ширину, панель итогов сверху.
- 900–1200 px: те же строки, меньше второстепенных данных (сиды/раздача
скрываются в «…»).
- ≤900 px: одна колонка, диалог добавления на всю ширину, действия строки —
иконки в ряд.
- ≤640 px: компактные строки в две линии (имя + состояние; прогресс + размер),
крупные touch-цели ≥40 px, фильтры — горизонтальный скролл.
- Учитывать titlebar каждой ОС: на macOS — отступ под traffic lights, на
Windows/Linux — место под кнопки окна (общий заголовок приложения, не свой).
Правила — как в мобильном коммите `2e099ec`.
## 6. Полинг и производительность
- Пока страница открыта — `sync/maindata` каждые 2 с; при скрытом окне — стоп.
- После действия (добавление/пауза) — внеочередной sync через 300 мс.
- Ошибки сети — экспоненциальный backoff до 15 с, без спама тостами.
- Полный снимок `torrents/info` — только при первом открытии и `full_update`.
- Не держать больше одного запроса в полёте; отменять предыдущий при уходе
со страницы.
## 7. Краевые случаи
1. **Дубликат**: `409`/`Fails.` → не ошибка, а «Уже добавлено»; подсветить
существующую строку.
2. **Категория удалена в qB**, пока Blink открыт → при добавлении `409`;
обновить категории и предложить другую.
3. **Категория без savePath** и `autoTMM=false` → скачается в общий путь;
показать предупреждение.
4. **magnet без `dn`** — имя появится после метаданных; строка «Получение
метаданных».
5. **qB 4.x**: нет JSON-ответа на add, cookie `SID`, `skip_checking` допустим.
6. **qB 5.2+**: `202` значит «в процессе»; `409` — отказ; `skip_checking`
убран с 2.16.
7. **HTTPS self-signed**: отдельный флаг «Разрешить самоподписанный TLS»;
по умолчанию выключен.
8. **Пароль изменён в qB** → `401`; сбросить сессию, показать настройки.
9. **Удаление с файлами** — только после подтверждения; по умолчанию
`deleteFiles=false`.
10. **Большой .torrent** — ограничить 10 МБ, ошибка до отправки.
11. **Переименование/перемещение** торрента в qB — статус `moving`;
UI не ломается.
12. **Остановка qB** — статус «недоступен», список сохраняется до следующего
успешного sync.
## 8. Безопасность
- Пароль/ключ — только в системном keyring (Windows/macOS/Linux) или
session-only; в конфиге и логах их нет, plaintext-файла нет.
- qB WebUI не должен быть открыт в интернет; интеграция рассчитана на LAN/VPN.
- TLS: предпочтителен `https`; самоподписанный сертификат — осознанный флаг.
- В логах — метод, URL без query-секретов, код ответа; без тел с кредами.
- Никаких прямых запросов из webview (обходим CORS и Referer-проверку в Rust).
- Учётные данные не передаются в Jellyfin и обратно.
## 9. Jellyfin: обновление библиотеки (опционально)
После перехода торрента в `pausedUP`/`stoppedUP` (или `progress === 1`):
- `POST {jellyfin}/Library/Refresh` с токеном текущего пользователя
(`Authorization: MediaBrowser Token="…"`);
- только если пользователь админ (иначе `403`) — показать подсказку;
- дебаунс: не чаще одного раза в 30 с;
- альтернатива без кода: qB «Run external program on torrent finished» с
`curl` на Jellyfin — описать в документации.
## 10. Тестирование
### Rust
- Юнит-тесты клиента на mock-сервере (`wiremock`): логин, категории, add
(магнит и файл), 202/409/415, sync-diff, истёкшая сессия.
- Тест сборки multipart для файла.
- Тест парсинга состояний и ETA.
### UI
- Пустое состояние, ошибка подключения, успешное добавление, дубликат.
- Список: скачивание, пауза, завершение, ошибка, удаление.
- Смена категории и удаление с файлами (подтверждение).
- Опрос останавливается при скрытом окне.
### Ручной чек-лист
- qB 4.6 и qB 5.x (если доступны);
- магнит и .torrent;
- категория с путём и без;
- неверный пароль, остановленный qB, self-signed HTTPS;
- перезапуск Blink при активной загрузке.
### Кроссплатформенная матрица
| Проверка | Windows 10/11 | macOS (arm64) | Linux (AppImage/deb) |
| --- | --- | --- | --- |
| Логин и категории | + | + | + |
| Добавление магнита | + | + | + |
| Добавление `.torrent` через диалог | + | + | + |
| Список, прогресс, действия | + | + | + |
| Сохранение пароля в keyring | Credential Manager | Keychain | Secret Service |
| Работа без keyring (Linux) | — | — | пароль спрашивается при запуске |
| Self-signed HTTPS | + | + | + |
| Уведомление о завершении | + | + (разрешение) | + (libnotify) |
| Мобильная ширина окна | + | + | + |
Проверять минимум одну сборку на каждой ОС; Linux — GNOME и KDE (Secret
Service), а также окружение без keyring-демона.
## 11. Этапы
| Этап | Что входит | Результат |
| --- | --- | --- |
| 1. Rust-клиент | login, версия, категории, тест соединения, ошибки | настройки сохраняются, «Проверить» работает |
| 2. Добавление магнита | диалог, категории, `torrents/add`, тосты | магнит добавляется, дубликат обрабатывается |
| 3. Список и статус | страница, sync-поллинг, строки, действия | прогресс/скорость/ETA по каждой позиции |
| 4. Файл и опции | `.torrent` через диалог, пауза/autoTMM/sequential, создание категории | полный сценарий из ТЗ |
| 5. Полировка | уведомления о завершении, Jellyfin refresh, фильтр «из Blink» | готово к использованию |
| 6. Тесты | mock-сервер, ручной чек-лист, совместимость | приёмка |
Оценка после получения нового кода: этап 1 — 0.5–1 день (включая keyring на
трёх ОС и fallback), этап 2 — 1 день, этап 3 — 1–1.5 дня, этап 4 — 0.5–1 день,
этап 5–6 — 1–1.5 дня (сборка и проверка на Windows/macOS/Linux). Итого ~5–6
рабочих дней без учёта незнакомых изменений в новом коде.
## 12. Критерии приёмки
1. Магнит добавляется в qB с выбранной категорией; категория видна в qB.
2. `.torrent` добавляется тем же способом.
3. Дубликат не создаёт вторую раздачу и понятно объясняется.
4. На странице загрузок у каждой позиции есть имя, категория, размер,
прогресс, скорость, ETA и состояние.
5. Пауза/продолжить/удаление работают и отражаются в qB.
6. Ошибки qB (недоступен, неверный пароль, бан) показываются человеческим
текстом.
7. Пароль не хранится в открытом виде.
8. Опрос не нагружает qB при скрытом окне.
9. Работает на Windows, macOS и Linux; на Linux без keyring-демона пароль
запрашивается при запуске, plaintext-файла не появляется.
10. Страница корректна на мобильной ширине и не конфликтует с кнопками окна
каждой ОС.
## 13. Открытые вопросы
- Показывать все торренты qB или только добавленные из Blink? (план:
все + фильтр).
- Нужны ли уведомления о завершении в системный трей?
- Нужен ли автозапуск Jellyfin-скана или достаточно real-time monitoring?
- Создавать категории из Blink или только выбирать существующие?
- Поддержка API-ключа qB 5.3+ — включать сразу или во втором релизе?
- Linux без Secret Service: session-only по умолчанию (план) или шифрованный
vault с паролем-мастером?
## 14. Ссылки
- [qBittorrent WebUI API 4.1](https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1))
- [qBittorrent WebUI API 5.0](https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-5.0))
- [WebAPI changelog](https://github.com/qbittorrent/qBittorrent/blob/master/WebAPI_Changelog.md)
- [qBittorrent: Run external program](https://github.com/qbittorrent/qBittorrent/wiki/How-to-use-the-external-program-feature)
- [Tauri store plugin](https://v2.tauri.app/plugin/store/)
- [Tauri dialog plugin](https://v2.tauri.app/plugin/dialog/)
+38 -52
View File
@@ -1,84 +1,70 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<!-- <script src="http://localhost:8097"></script> -->
<title>Jellyplayer</title>
<title>Blink</title>
<style>
html,
body {
background: #08001f;
margin: 0;
}
.app-loading {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: #fff;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
transition: opacity 0.25s ease-in-out;
opacity: 0;
animation: fadeIn linear 500ms forwards;
pointer-events: none;
transition: opacity 0.2s ease;
}
.app-loading.hidden {
display: none;
opacity: 0;
}
.app-loading-logo {
width: 5vw;
display: block;
width: min(230px, 62vw);
height: auto;
filter: drop-shadow(0 10px 30px rgb(0 0 0 / 0.35));
animation: splashPulse 1.4s ease-in-out infinite;
}
.app-loading-bar-container{
height: 2px;
width: 16vw;
position: absolute;
left: 50%;
bottom: 36vh;
transform: translateX(-50%);
overflow: hidden;
}
.app-loading-bar{
width: 100%;
height: 100%;
background: #101010;
transform: scaleX(0);
animation: loading 1s ease-in-out infinite both;
transform-origin: left;
}
@keyframes fadeIn {
0%{
opacity: 0;
}
100%{
@keyframes splashPulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.62;
}
}
@keyframes loading {
0%{
transform: translate(-100%);
}
50%{
transform: translate(0%);
}
100%{
transform: translate(100%);
@media (prefers-reduced-motion: reduce) {
.app-loading-logo {
animation: none;
}
}
</style>
</head>
<body>
<div class="app-loading">
<img src="./src/assets/icon-outline.svg" class="app-loading-logo" />
<div class="app-loading-bar-container">
<div class="app-loading-bar"></div>
</div>
<div class="app-loading" role="status" aria-label="Загрузка Blink">
<img
class="app-loading-logo"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAX8AAACqCAYAAABFwE9PAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAABf6ADAAQAAAABAAAAqgAAAAAX35FHAAA3E0lEQVR4Ae2dB/wcRfn/CSGEGgi9hNB7b9IhQAhFQHqTjhRFQRB/gAiIggIK/hWkozQhRIr03nsvIiWUQCD03kNJ/u9PuPt6ue/e3c7sM3u7d/O8Xs/3dmdnPk+Z2Wdnp+y3zySRGnpg/Pjxfbk4KzwQnq7C/fn9HP64wh/y+2afPn3G8RspeiB6IHqgFB7oUwotc1KSYD8Fos6BB8FzwXPCegC0orFkeBEeCT9fw8/xUHiD80jRA9ED0QOF8kBXBX+C+0J4fw14PlgBfnJYPXcF/QHwyvAcsCW9ANgN8I3wbTwMPrEEj1jRA9ED0QM+Hujo4E+w74dT1oO3rfzO7uMkwzJfg3UfrAfBCB4EekuIlMID1KXaKi6Lw2sp3BWzlNgDtHV1SteE1RmdDdbQ85Swhprfgx+Ab+ZeeJPfSFUP4LhJ4SHw6fC7cFFpHIpdDevhFKnGA/hkefhgeAT8CPwO/C38MjxPTdZ4GD3QMR6gbU8GHwZ/ArcixY/jYHVwu5twwvfgE+ExcNnovyi8NzxVt9Yitg+CFfBvhptRfAB0ayPpYLtp8Oq0XtWs4Te4diXpaeYlO8t7GD0APgB+Hu4Eeg8j9oQ7ejiuvhVi7+rw23Baig+AeifG81J7gIZ/fNrGn5Dv9FIb76o8DvgZrGDZiXQHRi3s6pMy5sfOGWCXwF+tbz0A5i6jzVHn6IFaD9CO14Y1jJOFtqrF7NhjPKTecafTlxh4BKzJn44l7MvS43mB8lqOGyl6oJQeoP1OA6sjk5XeAsBp/H/SUnpskkkGl1RvF7W1mewo+FEqtZN7uKu7OKUu7/yc34J/tBoiUvRAGT1wJEpb3N+zgLOMiwPKGvy1VLJbaHEM1TDQPB1qsOzLQhoe0yTxTFlAYtnogbw9QJtdApk/N5S7ggtWWYP/3Rj5uouhJc+rnoEeANqc1jFUsUeb67KSbqIzs4LE8tEDOXvgb8ibzFDmNy5YpQz+bG4Yj5FXuBjaAXk11HU7AVNDHZ1CQwwN2QzfrGuIF6GiB4J5gLaqjadrGgt4zgWvlMG/YuBx/L7rYmwH5NX3hvQAmL4DbJEJGxjbsb8xXoSLHjD3APevdusebwysXv9TLpilDf70/l/BUH03p9toEAYfUXajuQG0MmGYsR0a/okUPVB0DxyEgnqTt6QriYnvuwCWejMRAWQMxlp/iM3Ff+3Kq28ELUllO73mtUvZJLnU3VDSb0q6liFNw4FT4ZcvM2DEotEDwTxAu9fS5JGw9W7+YbR7p/uptD1/nKghkG4M/GqY6jWfqIMS02aBdNcDIFL0QFE98AcUsw78GgG52dXg0gZ/DF3f1dgOy78RD8ANy2gTeqvdbRFA99fo/YwNgBshowcye4B2vzwgO2YG6g3wO9q9c6enzMF/694+6LqUY0pq8WroPXsA3dUDihQ9UFQPnIBi1kPtj4F5vo/BlmtMfeR7leEJqt1seS3rew1Z+n62+GH4LVgTK+JxsHaXKpCJF4KHwFrCNQAOTcvii8E89UeHFmSMH+rBHYO/cUVFOBsPcJ9uCtJaNmgToRzk0+ufCKFMJzjyIDgkvQ/4ybBe05yJcn1hfWL6LPgrOCTt7axgGwvgiD7wa4Ec8n9tNC2Kjh5I9ABtXd/pfyZAm78mUWCnJuJABY+RARwpyG/gk2CzdfRgzVXBDPUQKNVmN3yxGhyKNu/Udh/tKq8HaOz7BGjw+udGi5XXKx6aY/A6ARxZhdzBQ6VURRCwPpzmP/RUdUn7+ykZS/PlT3T9S1rDHPPpK6h5DLWlqu+YKXpAHqBN6qudbzq25TTZR3Sdh/HKFWk845HHa9LEpQLQaXlYn161Jq2ZLzxhtP5b0evWxlfwLiu8A6KCXecB2uZvArX35bI6s1SrfXDi/Bi8cVajG5S/vkG6WTITM48ApiWO35qBfgc0xBgvFJz0DLHKR/oO159I0QNF8QDxSotBfhFAn5uIJY9mxS1V8MfYn8GhdH4yqzPTlKfS7iGf9RLNsmx22z6Njzzy6BtPpZr78LAxFimfB45E5WkCqK3/89E9xFNUY2cfwSFIkyf98/ImsjT7/x9DQ67KS3dfOdjaD9YqqhB0rK9esVz0QAgP0MgXhL8O0Ngvt9I3VC/aSr9anF04CTWh9yI98rG1wkIeI+sb8G80lDGzIVYoKO3IHhgAXHstTguAGyGjB7J4QG/31vuovgLz4CxK1Za1Vq4W2+yYp6d2xf3UDLA30Dm9k4Kn3G8ooQzBP9SQz7U8TF/29SVtSw+kTWHNJ+l+GA0/A99TeUhzGCl6IL0HaFMrknvr9CVS5zyONjkyde5OyIgzh8KhSMsvZ8jbT8hcwdCgj/PW30UedmrITktSQ5DXSicU6Q8fCzfS6x2unQ7P62JrzBs9QJu5FbYm7W3KbWi6MLWI0aGWd6qCNImcOyF3Twk3pMI2DGzcxdDOWqgnfCsOkHNqgZoca//A7+EQE3e+6sdyBfUA7UT7eUJQXp+zKY5n8eK8sCZkQ5D+L25b5j2Qe6GxQbMVp9Ym1gQ7Q/SE5D7NAzkT5bZQYUfS/oSdnYXFAl3jAdqHvj7wiGO7SpP9oq5xYq2heOaPabzjkWcMZdoSMJE7PfyZh87NirTFltq6SjpG4cHwuGaKe17T94H6JclslkaZaeE3PGWq2GHN8OO17vUAbWOrDO2qUVENS+ofwJhTW3q9aa3AaP3Tgz3S5nfM92cmT950LGOVfTeALP+hw0fg6WujRaSdUEoT9tb0/6i/rz1A96NMlgfl0bTLUG3Sw5xYpAgeoE30RY+jA+jye9r5mAC4xYbEodbj4kBOII3jzt0O65HbD35xghZ2f25phy1pZGLic3Zm9iB9yJHzsl/KqNf/Xg+K/4E+ALhJGvtjnu7wAO1hd//m1LDkK1yZIpQHC93zx+hQk7FH8TR9JZRTW+D+iOvztcjjevkh1wJ55Kfhrowc/Y8DazqV+vNZ4aT2ZLGyS728M7BPv5G63AO0Ay220G5ea/oV7fxLa9DC4+HQtWBrGg3glXBbHnrInQoO8WGzrYpYodh6CmxNemtzHrahjFWvv9Yer2WmRayrqJO/B2gQ+9U2CqPjB8EJMVzaY2hbgmCP9OYHIXr92lm7A09T7QptBx2AUOsPm30B5s3tMKaZTBquekPbNcvjee1c6s9nrsaq11+r9g61J/G4+zxAO9ewzCEBLD+Kdj4+AG6xIXHoXLDGVa3p1HZZjiFzw9YrfOSfv7fLpmZy0SvEyge1iQWayU26RpkQvX5gx8d/G5nk8C5Kow3sr4ZgTC+BF7xjHlyAZzv4CeWsx1P1XYzjPPWxKPYXQCxX+FR1Oq16ULDfEGvi/0VvyCfghuj1y92DuEmDvpoXrE6jOjUeoO7V6zf71k4N9MG083aNTtSokfOhHAq/C1vTCTmb0iMOQza2NqaC90iPkAIdoNsscIgvGi7taiZ6hOr1V6pgwjfbXdWK+TvAAzSAEGP9ub3JF7Hnrw+AzWjcNt4G77fGmKngaCAa+1avPwQVtdevsfDJjA3WB9ye8MAM1euvqmKxeqiKFX9L4gHua/3r1F8aq7srbXx3Y8zywOHUx2Br2q1dHsCQg62NqeDpw2NTt8uuZnLR69EANq/ZTGbSNXQI3euXmdYT+EmmxLSCeYB630uVb0jayWs91F0wrzVRB+NXN3RmFeoRDtoyLovcWeGPq4oY/+7fxJVtu4SNSxrbKbgHfQyi3DEBdKmF1GcrrN9wfEyNZXL0AHWujZqjYEsy+yctaV1RtGGfEN/s/wWvUu1aMvV7KmLatJXhkG8Uedu2cqmFnru2uO5z+U+uhbgr16JMiMm4WlWeoW1p+XCk7vKAFjPMY2zyxcZ45YHjZp0d/sryUQrWte3yALKXg0N9jbSQ68uxd3L4bdiStOzN6XWY/DPC+vBbaDq8Xe0rym2PB2hQk8HWn2d5C0zNIeRKRer5743lzl9pbOGto1tcD3KZipwS4PPgEP59FNyLgiieHVT/Ecv6v4rpA27fOqqmJb1BvoRYp8fwuvN42vke0MbF+YzNPJs2rqXo3UcES42hWX/24LZ2eRJbzoRD0dB22dVKLgZfb2y0/uG786Q2ZZ4w1iMJrpDfU2pVR/F6Ng/QEPTZBUvS6MDc2bTyKx2iZ+qjyZYUsl41cayPIlnLUJHbgvGjrDgNyl9ND6Fwn3KQrtg9mJ/1Gujtm3wa9n7mUVibb0LT+aEFRPxieYA2vgoarWis1XW08VeMMVPBFSX4W0/0Pof1N6bygGEmGodeB88whKyF+oiTfWoTCnas5bSW7UmvwSd52vi+Z7m0xZ4kY1En3NPaEPO5eyDECrvT3dWwKWF5s3ppRMBchoKreRVuXOhknqbjG1+2v4Id+r68lmvpNwQdiE2F/KcO2K52tLux0Rdg7xuemArOoUire7QZx+cfyYTSKeIG9gBtXHNIGqGwpFcBa9uilLYHf4y37vV/Aua5ljXUCouGoZn6y+ClWuX1vH4DwSa3bd8eOmq4R8M+VjQOoCzfYbrPSpEEnGOoi8cS0mNSZ3tA3xuz3tNxFm3JdTFDZ3iZoDkQ/hy2pFDDLolOR3H90+YLLA2ow9ImsbkShRckEf0urdM562mmNc8Inwb+JKsSCeUfJ816RVpBajGq0cgD1Lm+N6Yd9Zakb1/N0UhmHunt7vnvgZFaFmlJZ1uCpcD6A3l+mCKfb5aD6B3o9bCQRAOeDcU2MVbu+Cx4+OtTyl+YBSOh7Aek7Qh2HO5JcE6HJ+2AfTMZ2ziCtvS6MWY54Agak8LWmyWeytN69N8XDklX5WmPjyLine truncated
alt="Blink"
width="383"
height="170"
/>
</div>
<div id="root"></div>
<svg style="width: 0; height: 0; position: absolute" aria-hidden="true" focusable="false">
+17 -17
View File
@@ -1,19 +1,19 @@
{
"version": "0.0.5-dev",
"notes": "![banner](https://i.imgur.com/bv4WBCC.png)\n- feat(web): Add new About page (#258) by @prayag17\n- feat(web): Allow managing servers from settings dialog by @prayag17\n- feat(search): Add Episode to search by @prayag17\n- feat(settings-server): Add a refretch button by @prayag17\n- feat(web): Add a global query fetch/mutation status by @prayag17\n- fix(server): Use redirect instead of relaunch when changing or deleting a server by @prayag17\n- refactor(player): Rewrite and improve video playback by @prayag17\n- feat(web): Use season backdrop in series page if available by @prayag17\n- feat(player): Allow selecting subtitles during playback by @prayag17\n- feat(ui): Add new episode layout by @prayag17",
"pub_date": "2024-03-17T11:50:31.121Z",
"platforms": {
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bVZjYWVCcmxtUk5tRTV0bC9acGxUQkdGMlMrVFdkOVJCS3ZsMlY1aXR0M3BvdnBVTnl6MUVpcWsxUzdFbVNXbHF5S1pQbTZIM0JXallCeklYaUdyWFFBPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzEwNjc1OTMxCWZpbGU6SmVsbHlQbGF5ZXIuYXBwLnRhci5negpGM2xCQnR1YWhDWi9mMCtLZjFHQ0twMUNub3VBTHE2SHZSMnpGOVRWVGVncE42ODZ5Q2M1bm9aa3VGUFhpM245eVhIMDZWWkRyQnVMaWY4c1Z2WE5Edz09Cg==",
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.5-dev/JellyPlayer_x64.app.tar.gz"
},
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bVMvOXE1SGNiWmRDVWVMYVBLTnU4MXJheTd4NmY2WWszRjdUcnRySnl5TkdEVThYa1lHNHRXT1FIUzFwelhMZ3U4S2lJTjI4Y1IrV05iOVRmZWgzS1FrPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzEwNjc2MDE4CWZpbGU6amVsbHktcGxheWVyXzAuMC41LWRldl9hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKcko3VUZFZVcwcVVZK0IwY3lZUlk5WThySjI2NEptY1BFb1dYYlRDMTQxZzFJekovS2tHVFMwK0pTS01JV3NSMWxvL2QwNEVqb2VTZVE2MmQ2UFhXQ1E9PQo=",
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.5-dev/jelly-player_0.0.5-dev_amd64.AppImage.tar.gz"
},
"windows-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bVZyK3o0d0FWVURRcDg3QnorYzNDUVNwamJIZ2JDTTNwUjdFUS9jMXN2cVFiVXNKdFNoaVNUUFlSaVI2Z3dyeEdqWmRCekFqSkYwa09xTFZSaG5mb1FRPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzEwNjc2MjIxCWZpbGU6SmVsbHlQbGF5ZXJfMC4wLjUtZGV2X3g2NC1zZXR1cC5uc2lzLnppcApPdGxzdk1aU0pJSC80a2xvYk5TbWhJeUNvVjNDa2piYkNQOTF0bmFWVTJ6TFVNc0trRkhqeUNxdGNNNUQvUXd4TUpXTzNoRHd1QUN2YnN5Y1BUTGVDQT09Cg==",
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.5-dev/JellyPlayer_0.0.5-dev_x64-setup.nsis.zip"
}
}
"version": "0.0.7-dev",
"notes": "![Banner](https://i.imgur.com/rnhjwsl.png)\n- chore(deps): update dependencies\n- refactor: change UI of login/list and fix Api not being defined in context\n- fix: player/audio route not able to interact with audioPlayer\n- fix: audio player info not visible\n- fix: audio player not playing audio\n- fix: toggling ssubtitles not working\n- fix: subtitles not being rendered #401\n- fix: hero carousel indicators not scrolling\n- fix: vite build error for safari13\n- fix: blink not launching or rendering on opening\n- Merge branch 'main' of https://github.com/prayag17/JellyPlayer\n- chore(deps): update dependencies\n- Merge pull request #410 from prayag17/renovate/tauri-plugin-notification-2.x-lockfile\n- Merge pull request #409 from Blackspirits/patch-1\n- chore(deps): update dependencies\n- fix(deps): update rust crate tauri-plugin-notification to v2.0.1\n- feat: allow downloading images from ImageViewer\n- Update index.tsx\n- feat: implement basic image viewer #338 #240\n- fix: react infinite depth error\n- fix: vite config\n- refactor: remove @million/js and @million/lint\n- refactor: remove Cargo.lock from .gitignore #400\n- chore(deps): update dependencies\n- refactor: code cleanup\n- fix: bug_report showing extra fields\n- refactor: remove redundant calls for getCurrentUser\n- feat: show queue item from currently playing item in queueButton\n- chore(deps): update dependencies\n- feat: remember library filters #192\n- Merge pull request #370 from prayag17/renovate/tauri-apps-plugin-clipboard-manager-2.x\n- fix(deps): update dependency @tauri-apps/plugin-clipboard-manager to v2.1.0-beta.6\n- Merge pull request #381 from prayag17/renovate/wavesurfer.js-7.x-lockfile\n- Merge pull request #342 from prayag17/renovate/tanstack-router-monorepo\n- Merge pull request #368 from prayag17/renovate/tauri-monorepo\n- chore(release): update latest.json",
"pub_date": "2024-11-20T07:04:53.965Z",
"platforms": {
"darwin-aarch64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVSNkxEL1dFMElZL2RHaC9wc3VMQzJxeFRYaHVVN0xEZW91WWgwZkluYkYrdW5hUWl2UFlSeEUyRk93dm13WUdmQVZETWhmNW9MZ2lPUFdOdERzbGFibkpPNHJWMU1BYlFrPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMDg1ODYyCWZpbGU6QmxpbmsuYXBwLnRhci5negpjK0VIaW9oVzlrUU92UWZudzcvRGlZNExwM0NOdmpHVGd1QUc2WWZ0bnRkU2NsWkdqQUJrR01ucVVRTktvR0RaV0l0L09KQ2luZHNUdjMvTGVlM2RCUT09Cg==",
"url": "https://github.com/prayag17/Blink/releases/download/v0.0.7-dev/Blink_aarch64.app.tar.gz"
},
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVSNkxEL1dFMElZL1hKZGoxZFUvZzl5SmNnUEFRTGQ2TmFNMlphK25lTU9MTjJEM0JYQWt0Sy91Um9yRmk4QTl6dEtUSmRuRmFNODRwajJ2YW4rTGJzYVZjcmhFb1IxZkFnPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMDg2MTQxCWZpbGU6QmxpbmtfMC4wLjctZGV2X2FtZDY0LkFwcEltYWdlCndKZURUdjF0bkNna1VCVDNEMFNodEZBZGkzZFBKVWx2cThSNE5najBmd2U5Rzh5SDFIbUxqRHlKOWdxMnY2QU9NdTRiQmtWY2VVaVlhNjRrNDVHMUFRPT0K",
"url": "https://github.com/prayag17/Blink/releases/download/v0.0.7-dev/Blink_0.0.7-dev_amd64.AppImage"
},
"windows-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVSNkxEL1dFMElZL1MwRVJ0UXBUUEYvd01JbXhBalFwQ0w5bEdkZkdlblZNeW1EMXQxajhYeVd0cERWcnhWOWFOaXV4Q0hDU1VRTEhabXF1ekFIbzB0KzRmL0pxdEIzMEFrPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMDg2Mjg5CWZpbGU6QmxpbmtfMC4wLjctZGV2X3g2NC1zZXR1cC5uc2lzLnppcApJMmRORUFhV3NKV3BCTTliQkIwcWtSZStKTzEwY002QndCWmxKb0ZRd2p2K0cvek90dmdsbmQ0MHhNOVJsWnE3Y29qQmNDckdxdUNabWpTWjJ3d0xBUT09Cg==",
"url": "https://github.com/prayag17/Blink/releases/download/v0.0.7-dev/Blink_0.0.7-dev_x64-setup.nsis.zip"
}
}
}
+76 -52
View File
@@ -1,77 +1,101 @@
{
"name": "blink",
"private": true,
"version": "0.0.6-dev",
"version": "1.0.0-alpha.4",
"type": "module",
"scripts": {
"dev": "vite && tsr watch",
"build": "vite build",
"preview": "vite preview",
"tauri": "tauri",
"tauri:dev:mcp": "tauri dev -c src-tauri/tauri.mcp.conf.json -- --features mcp-bridge",
"lint": "biome check src/**/*",
"lint:fix": "biome check --apply src/**/*",
"tanstack-router-dev": "tsr watch"
},
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@fontsource-variable/jetbrains-mono": "^5.0.22",
"@fontsource-variable/noto-sans": "^5.0.5",
"@jellyfin/sdk": "0.10.0",
"@million/lint": "1.0.0-rc.84",
"@mui/lab": "6.0.0-beta.9",
"@mui/material": "6.0.2",
"@react-spring/web": "^9.7.4",
"@tanem/react-nprogress": "^5.0.51",
"@tanstack/react-query": "^5.55.0",
"@tanstack/react-query-devtools": "^5.55.0",
"@tanstack/react-router": "^1.56.1",
"@tanstack/react-virtual": "^3.10.7",
"@tauri-apps/api": "2.0.0-beta.15",
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.5",
"@tauri-apps/plugin-process": "2.0.0-rc.1",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@fontsource-variable/caveat": "^5.3.0",
"@fontsource-variable/jetbrains-mono": "^5.3.0",
"@fontsource-variable/noto-sans": "^5.3.0",
"@fontsource-variable/plus-jakarta-sans": "^5.3.0",
"@fontsource-variable/space-grotesk": "^5.3.0",
"@jellyfin/sdk": "1.0.1",
"@mui/lab": "9.0.0-beta.10",
"@mui/material": "9.5.0",
"@popperjs/core": "^2.11.8",
"@react-spring/web": "^10.1.2",
"@tanem/react-nprogress": "^7.1.7",
"@tanstack/react-form": "^1.33.5",
"@tanstack/react-query": "^5.104.4",
"@tanstack/react-router": "^1.170.45",
"@tanstack/react-virtual": "^3.14.21",
"@tauri-apps/api": "2.12.4",
"@tauri-apps/plugin-clipboard-manager": "2.5.0",
"@tauri-apps/plugin-deep-link": "2.6.3",
"@tauri-apps/plugin-dialog": "2.8.3",
"@tauri-apps/plugin-global-shortcut": "~2.4.1",
"@tauri-apps/plugin-notification": "2.7.0",
"@tauri-apps/plugin-process": "2.4.0",
"@tauri-apps/plugin-shell": "~2.5.0",
"@tauri-apps/plugin-store": "github:tauri-apps/tauri-plugin-store#v2",
"@tauri-apps/plugin-updater": "2.0.0-rc.2",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"axios": "^1.7.7",
"axios-tauri-api-adapter": "^0.2.2",
"@tauri-apps/plugin-updater": "2.14.0",
"@tauri-apps/plugin-upload": "2.5.0",
"@tauri-apps/plugin-websocket": "2.5.0",
"@tauri-apps/plugin-window-state": "~2.5.0",
"@types/node": "^26.6.5",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"axios": "^1.20.0",
"axios-tauri-api-adapter": "^2.0.6",
"blurhash": "^2.0.5",
"framer-motion": "^11.5.4",
"jassub": "^1.7.17",
"lodash": "^4.17.21",
"material-symbols": "^0.23.0",
"million": "^3.1.11",
"notistack": "^3.0.1",
"react": "18.3.1",
"blurhash-wasm": "^0.2.0",
"immer": "^11.1.21",
"jassub": "^2.5.22",
"libpgs": "^0.9.0",
"lodash": "^4.18.1",
"material-symbols": "^0.48.0",
"motion": "^14.4.0",
"notistack": "^3.0.2",
"qrcode": "^1.5.4",
"react": "^19.3.1",
"react-blurhash": "^0.3.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "18.3.1",
"react-error-boundary": "^4.0.13",
"react-markdown": "^9.0.1",
"react-multi-carousel": "^2.8.5",
"react-player": "^2.16.0",
"react-use-konami": "^1.1.0",
"remark-gfm": "^4.0.0",
"typescript": "^5.5.4",
"vite-plugin-svgr": "^4.2.0",
"wavesurfer.js": "^7.8.4",
"zustand": "^4.5.5"
"react-dom": "^19.3.1",
"react-error-boundary": "^6.1.6",
"react-intersection-observer": "^11.0.1",
"react-markdown": "^10.1.0",
"react-multi-carousel": "^2.8.6",
"react-player": "^3.4.0",
"remark-gfm": "^4.0.1",
"typescript": "^7.0.2",
"vite-plugin-svgr": "^5.2.0",
"vite-plugin-top-level-await": "^1.6.0",
"wavesurfer.js": "^8.0.3",
"zod": "^4.6.7",
"zustand": "5.0.15"
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining-assign": "^7.24.7",
"@biomejs/biome": "^1.8.3",
"@tanstack/router-cli": "^1.56.1",
"@tanstack/router-devtools": "^1.56.1",
"@tanstack/router-vite-plugin": "^1.56.1",
"@tauri-apps/cli": "2.0.0-beta.22",
"@types/lodash": "^4.17.7",
"@vitejs/plugin-react": "^4.3.1",
"@babel/plugin-proposal-optional-chaining-assign": "^8.0.1",
"@biomejs/biome": "^2.5.15",
"@tanstack/router-cli": "^1.167.45",
"@tanstack/router-vite-plugin": "^1.167.47",
"@tauri-apps/cli": "2.12.3",
"@types/lodash": "^4.17.26",
"@types/qrcode": "^1.5.6",
"@vitejs/plugin-react": "^6.1.2",
"babel-plugin-react-compiler": "19.1.0-rc.3",
"eslint-plugin-react-hooks": "7.1.1",
"prop-types": "^15.8.1",
"sass": "^1.78.0",
"vite": "^5.4.3"
"sass": "^1.105.2",
"vite": "^8.3.4",
"vite-plugin-wasm": "^3.6.0"
},
"license": "GPL-3.0-only"
}
+4144 -3486
View File
File diff suppressed because it is too large. Load diff
+5
View File
@@ -0,0 +1,5 @@
allowBuilds:
'@parcel/watcher': true
'@swc/core': true
core-js: true
lfa-ponyfill: true
Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

+7567
View File
File diff suppressed because it is too large. Load diff
+43 -6
View File
@@ -1,10 +1,10 @@
[package]
name = "blink"
version = "0.0.6-dev"
version = "1.0.0-alpha.4"
description = "A Modern Jellyfin Client"
authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"]
authors = ["prayag17", "Blink contributors (https://github.com/prayag17/Blink/graphs/contributors)"]
license = "GPL-3.0-only"
repository = "https://github.com/prayag17/JellyPlayer/"
repository = "https://github.com/prayag17/Blink/"
default-run = "blink"
edition = "2021"
rust-version = "1.59"
@@ -12,26 +12,63 @@ rust-version = "1.59"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "2.0.0-beta", features = [] }
tauri-build = { version = "2.5.4", features = [] }
[lib]
name = "blink_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[dependencies]
log = "^0.4.21"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "2.0.0-beta", features = [ "devtools"] }
tauri = { version = "2.10.1", features = [ "devtools"] }
tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2", features = ["colored"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
portpicker = "0.1" # used in the example to pick a random free port
tauri-plugin-process = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-updater = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-clipboard-manager = "2.1.0-beta.6"
tauri-plugin-notification = "2.0.0-rc.1"
tauri-plugin-upload = "2.0.0"
tauri-plugin-dialog = "2.0.0"
tauri-plugin-shell = "2.3.5"
tauri-plugin-websocket = "2.5.0"
tauri-plugin-deep-link = "2.6.3"
tauri-plugin-mcp-bridge = { version = "0.13.2", optional = true }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
# Dev-only MCP bridge for UI automation: `pnpm tauri dev -- --features mcp-bridge`
mcp-bridge = ["dep:tauri-plugin-mcp-bridge"]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-global-shortcut = "2"
tauri-plugin-window-state = "2"
reqwest = { version = "0.12", default-features = false, features = [
"cookies",
"json",
"multipart",
"gzip",
"rustls-tls",
] }
# Keep each OS on its native secret store without pulling the others' system
# libraries into every build.
[target.'cfg(target_os = "windows")'.dependencies]
keyring = { version = "3", default-features = false, features = ["windows-native"] }
[target.'cfg(target_os = "macos")'.dependencies]
keyring = { version = "3", default-features = false, features = ["apple-native"] }
[target.'cfg(target_os = "linux")'.dependencies]
keyring = { version = "3", default-features = false, features = [
"sync-secret-service",
"crypto-rust",
] }
+20
View File
@@ -0,0 +1,20 @@
{
"identifier": "desktop-capability",
"platforms": [
"macOS",
"windows",
"linux"
],
"windows": [
"main"
],
"permissions": [
"window-state:default",
"global-shortcut:default",
"global-shortcut:allow-is-registered",
"global-shortcut:allow-register",
"global-shortcut:allow-unregister",
"websocket:default",
"shell:default"
]
}
+20 -1
View File
@@ -12,6 +12,25 @@
"store:allow-keys",
"store:allow-load",
"updater:allow-check",
"updater:allow-download-and-install"
"updater:allow-download-and-install",
"updater:allow-download",
"updater:allow-install",
"notification:default",
"core:webview:allow-internal-toggle-devtools",
"core:window:allow-start-dragging",
"core:window:allow-start-resize-dragging",
"core:window:allow-minimize",
"core:window:allow-maximize",
"core:window:allow-unmaximize",
"core:window:allow-toggle-maximize",
"core:window:allow-close",
"core:window:allow-is-maximized",
"dialog:default",
"upload:allow-download",
"clipboard-manager:allow-write-text",
"websocket:default",
"deep-link:default",
"shell:default",
"shell:allow-open"
]
}
+7
View File
@@ -0,0 +1,7 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "mcp-bridge-capability",
"description": "Dev-only permissions for the Tauri MCP bridge (AI debugging). Enabled only by tauri.mcp.conf.json.",
"windows": ["main"],
"permissions": ["mcp-bridge:default"]
}
+18 -15
View File
@@ -1,17 +1,20 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "migrated",
"description": "permissions that were migrated from v1",
"local": true,
"windows": ["main"],
"permissions": [
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
"core:window:allow-set-fullscreen"
]
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "migrated",
"description": "permissions that were migrated from v1",
"local": true,
"windows": [
"main"
],
"permissions": [
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
"core:window:allow-set-fullscreen",
"shell:default"
]
}
+12
View File
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
+20
View File
@@ -0,0 +1,20 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
build
/captures
.externalNativeBuild
.cxx
local.properties
key.properties
keystore.properties
/.tauri
/tauri.settings.gradle
+6
View File
@@ -0,0 +1,6 @@
/src/main/**/generated
/src/main/jniLibs/**/*.so
/src/main/assets/tauri.conf.json
/tauri.build.gradle.kts
/proguard-tauri.pro
/tauri.properties
+105
View File
@@ -0,0 +1,105 @@
import java.util.Properties
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("rust")
}
val tauriProperties = Properties().apply {
val propFile = file("tauri.properties")
if (propFile.exists()) {
propFile.inputStream().use { load(it) }
}
}
val keystoreProperties = Properties().apply {
val propFile = rootProject.file("keystore.properties")
if (propFile.exists()) {
propFile.inputStream().use { load(it) }
}
}
android {
compileSdk = 37
namespace = "com.blink.prayag17"
signingConfigs {
if (keystoreProperties.getProperty("storeFile") != null) {
create("release") {
storeFile = file(keystoreProperties.getProperty("storeFile"))
storePassword = keystoreProperties.getProperty("storePassword")
keyAlias = keystoreProperties.getProperty("keyAlias")
keyPassword = keystoreProperties.getProperty("keyPassword")
}
}
}
defaultConfig {
manifestPlaceholders["usesCleartextTraffic"] = "false"
applicationId = "com.blink.prayag17"
minSdk = 24
targetSdk = 37
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()
versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0")
}
buildTypes {
getByName("debug") {
manifestPlaceholders["usesCleartextTraffic"] = "true"
isDebuggable = true
isJniDebuggable = true
isMinifyEnabled = false
packaging {
jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so")
jniLibs.keepDebugSymbols.add("*/armeabi-v7a/*.so")
jniLibs.keepDebugSymbols.add("*/x86/*.so")
jniLibs.keepDebugSymbols.add("*/x86_64/*.so")
}
}
getByName("release") {
signingConfig = if (keystoreProperties.getProperty("storeFile") != null) {
signingConfigs.getByName("release")
} else {
signingConfigs.getByName("debug")
}
optimization {
enable = true
}
proguardFiles(
*fileTree(".") {
include("**/*.pro")
exclude("build/**")
}.files.toTypedArray()
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
buildFeatures {
buildConfig = true
}
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
}
}
rust {
rootDirRel = "../../../"
}
dependencies {
implementation("androidx.webkit:webkit:1.14.0")
implementation("androidx.appcompat:appcompat:1.7.1")
implementation("androidx.activity:activity-ktx:1.10.1")
implementation("com.google.android.material:material:1.12.0")
implementation("androidx.lifecycle:lifecycle-process:2.10.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.4")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0")
}
apply(from = file("tauri.build.gradle.kts"))
+21
View File
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<!-- AndroidTV support -->
<uses-feature android:name="android.software.leanback" android:required="false" />
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.blink"
android:usesCleartextTraffic="${usesCleartextTraffic}">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:launchMode="singleTask"
android:label="@string/main_activity_title"
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<!-- AndroidTV support -->
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<!-- DEEP LINK PLUGIN. AUTO-GENERATED. DO NOT REMOVE. -->
<!-- DEEP LINK PLUGIN. AUTO-GENERATED. DO NOT REMOVE. -->
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>
@@ -0,0 +1,11 @@
package com.blink.prayag17
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
class MainActivity : TauriActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
super.onCreate(savedInstanceState)
}
}
@@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
@@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@@ -0,0 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.blink" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
@@ -0,0 +1,4 @@
<resources>
<string name="app_name">"Blink"</string>
<string name="main_activity_title">"Blink"</string>
</resources>
@@ -0,0 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.blink" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="my_images" path="." />
<cache-path name="my_cache_images" path="." />
</paths>
+22
View File
@@ -0,0 +1,22 @@
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:9.3.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.10")
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.register("clean").configure {
delete("build")
}
@@ -0,0 +1,23 @@
plugins {
`kotlin-dsl`
}
gradlePlugin {
plugins {
create("pluginsForCoolKids") {
id = "rust"
implementationClass = "RustPlugin"
}
}
}
repositories {
google()
mavenCentral()
}
dependencies {
compileOnly(gradleApi())
implementation("com.android.tools.build:gradle:9.3.1")
}
@@ -0,0 +1,75 @@
import java.io.File
import org.apache.tools.ant.taskdefs.condition.Os
import org.gradle.api.DefaultTask
import org.gradle.api.GradleException
import org.gradle.api.logging.LogLevel
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.TaskAction
import javax.inject.Inject
import org.gradle.process.ExecOperations
abstract class BuildTask : DefaultTask() {
@get:Inject
abstract val execOperations: ExecOperations
@Input
var rootDirRel: String? = null
@Input
var projectDir: String? = null
@Input
var target: String? = null
@Input
var release: Boolean? = null
@TaskAction
fun assemble() {
val executable = """pnpm""";
try {
runTauriCli(executable)
} catch (e: Exception) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
// Try different Windows-specific extensions
val fallbacks = listOf(
"$executable.exe",
"$executable.cmd",
"$executable.bat",
)
var lastException: Exception = e
for (fallback in fallbacks) {
try {
runTauriCli(fallback)
return
} catch (fallbackException: Exception) {
lastException = fallbackException
}
}
throw lastException
} else {
throw e;
}
}
}
fun runTauriCli(executable: String) {
val rootDirRel = rootDirRel ?: throw GradleException("rootDirRel cannot be null")
val target = target ?: throw GradleException("target cannot be null")
val release = release ?: throw GradleException("release cannot be null")
val args = listOf("tauri", "android", "android-studio-script");
execOperations.exec {
workingDir(File(projectDir, rootDirRel))
executable(executable)
args(args)
if (logger.isEnabled(LogLevel.DEBUG)) {
args("-vv")
} else if (logger.isEnabled(LogLevel.INFO)) {
args("-v")
}
if (release) {
args("--release")
}
args(listOf("--target", target))
}.assertNormalExitValue()
}
}
@@ -0,0 +1,86 @@
import com.android.build.api.dsl.ApplicationExtension
import org.gradle.api.DefaultTask
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.get
const val TASK_GROUP = "rust"
open class Config {
lateinit var rootDirRel: String
}
open class RustPlugin : Plugin<Project> {
private lateinit var config: Config
override fun apply(project: Project) = with(project) {
config = extensions.create("rust", Config::class.java)
val defaultAbiList = listOf("arm64-v8a", "armeabi-v7a", "x86", "x86_64");
val abiList = (findProperty("abiList") as? String)?.split(',') ?: defaultAbiList
val defaultArchList = listOf("arm64", "arm", "x86", "x86_64");
val archList = (findProperty("archList") as? String)?.split(',') ?: defaultArchList
val targetsList = (findProperty("targetList") as? String)?.split(',') ?: listOf("aarch64", "armv7", "i686", "x86_64")
extensions.configure<ApplicationExtension> {
@Suppress("UnstableApiUsage")
flavorDimensions.add("abi")
productFlavors {
create("universal") {
dimension = "abi"
ndk {
abiFilters += abiList
}
}
defaultArchList.forEachIndexed { index, arch ->
create(arch) {
dimension = "abi"
ndk {
abiFilters.add(defaultAbiList[index])
}
}
}
}
}
afterEvaluate {
for (profile in listOf("debug", "release")) {
val profileCapitalized = profile.replaceFirstChar { it.uppercase() }
val buildTask = tasks.maybeCreate(
"rustBuildUniversal$profileCapitalized",
DefaultTask::class.java
).apply {
group = TASK_GROUP
description = "Build dynamic library in $profile mode for all targets"
}
tasks["mergeUniversal${profileCapitalized}JniLibFolders"].dependsOn(buildTask)
for (targetPair in targetsList.withIndex()) {
val targetName = targetPair.value
val targetArch = archList[targetPair.index]
val targetArchCapitalized = targetArch.replaceFirstChar { it.uppercase() }
val targetBuildTask = project.tasks.register(
"rustBuild$targetArchCapitalized$profileCapitalized",
BuildTask::class.java
) {
group = TASK_GROUP
description = "Build dynamic library in $profile mode for $targetArch"
rootDirRel = config.rootDirRel
projectDir = project.projectDir.path
target = targetName
release = profile == "release"
}
buildTask.dependsOn(targetBuildTask)
tasks["merge$targetArchCapitalized${profileCapitalized}JniLibFolders"].dependsOn(
targetBuildTask
)
}
}
}
}
}
+26
View File
@@ -0,0 +1,26 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
org.gradle.configuration-cache=true
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Our old plugin template had a bug that caused missing `consumer-rules.pro` files
# so we have to disable it for now.
# See https://github.com/tauri-apps/tauri/pull/15828#issuecomment-5199937796
android.proguard.failOnMissingFiles=false
# Keeping Gradle 9 compatible with current plugins
# TODO: Remove this in v3
android.builtInKotlin=false
android.newDsl=false
Binary file not shown.
@@ -0,0 +1,6 @@
#Tue May 10 19:22:52 CST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
+248
View File
@@ -0,0 +1,248 @@
#!/bin/sh
#
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
+82
View File
@@ -0,0 +1,82 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
+3
View File
@@ -0,0 +1,3 @@
include ':app'
apply from: 'tauri.settings.gradle'
+1 -1
View File
@@ -1 +1 @@
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["alloLine truncated
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-secret":{"identifier":"allow-write-secret","description":"Enables the write_secret command without any pre-configured scope.","commands":{"allow":["write_secret"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-secret":{"identifier":"deny-write-secret","description":"Denies the write_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["write_secret"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","coLine truncated
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1 +1 @@
{"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen"]}}
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default","global-shortcut:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","websocket:default","shell:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","updater:allow-download","updater:allow-install","notification:default","core:webview:allow-internal-toggle-devtools","core:window:allow-start-dragging","core:window:allow-start-resize-dragging","core:window:allow-minimize","core:window:allow-maximize","core:window:allow-unmaximize","core:window:allow-toggle-maximize","core:window:allow-close","core:window:allow-is-maximized","dialog:default","upload:allow-download","clipboard-manager:allow-write-text","websocket:default","deep-link:default","shell:default","shell:allow-open"]},"mcp-bridge-capability":{"identifier":"mcp-bridge-capability","description":"Dev-only permissions for the Tauri MCP bridge (AI debugging). Enabled only by tauri.mcp.conf.json.","local":true,"windows":["main"],"permissions":["mcp-bridge:default"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen","shell:default"]}}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+74
View File
@@ -0,0 +1,74 @@
use tauri::Manager;
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, Target, TargetKind};
#[cfg(not(any(target_os = "android", target_os = "ios")))]
mod qbittorrent;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
let builder = tauri::Builder::default();
// Dev-only MCP bridge: `pnpm tauri dev -- --features mcp-bridge`.
#[cfg(all(debug_assertions, feature = "mcp-bridge"))]
let builder = builder.plugin(
tauri_plugin_mcp_bridge::Builder::new()
.bind_address("127.0.0.1")
.build(),
);
// Desktop-only integrations. The Android/iOS build has no qBittorrent
// commands, global shortcuts, window state or in-app updater.
#[cfg(not(any(target_os = "android", target_os = "ios")))]
let builder = builder
.invoke_handler(tauri::generate_handler![
qbittorrent::qb_get_settings,
qbittorrent::qb_save_settings,
qbittorrent::qb_forget_secret,
qbittorrent::qb_test_connection,
qbittorrent::qb_categories,
qbittorrent::qb_add_torrent,
qbittorrent::qb_poll,
qbittorrent::qb_pause,
qbittorrent::qb_resume,
qbittorrent::qb_delete,
qbittorrent::qb_set_category,
])
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
.plugin(tauri_plugin_window_state::Builder::new().build())
.plugin(tauri_plugin_updater::Builder::default().build());
builder
.setup(|app| {
#[cfg(not(any(
target_os = "android",
target_os = "ios",
target_os = "macos"
)))]
{
app.manage(qbittorrent::QbState::load(app.handle()));
// Frameless window outside macOS. macOS uses the native overlay
// titlebar with its traffic lights.
if let Some(window) = app.get_webview_window("main") {
window.set_decorations(false)?;
}
}
Ok(())
})
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_upload::init())
.plugin(tauri_plugin_notification::init())
.plugin(tauri_plugin_clipboard_manager::init())
.plugin(tauri_plugin_websocket::init())
.plugin(tauri_plugin_deep_link::init())
.plugin(
tauri_plugin_log::Builder::default()
.targets([Target::new(TargetKind::Webview)])
.with_colors(ColoredLevelConfig::default())
.build(),
)
.plugin(tauri_plugin_store::Builder::default().build())
.run(tauri::generate_context!())
.expect("error while running Blink");
}
+1 -15
View File
@@ -1,19 +1,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, Target, TargetKind};
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_clipboard_manager::init())
.plugin(
tauri_plugin_log::Builder::default()
.targets([Target::new(TargetKind::Webview)])
.with_colors(ColoredLevelConfig::default())
.build(),
)
.plugin(tauri_plugin_store::Builder::default().build())
.plugin(tauri_plugin_updater::Builder::default().build())
// .plugin(tauri_plugin_window_state::Builder::default().build())
.run(tauri::generate_context!())
.expect("error while running JellyPlayer");
blink_lib::run();
}
+496
View File
@@ -0,0 +1,496 @@
use std::collections::HashMap;
use std::path::Path;
use std::time::Duration;
use reqwest::header::{ORIGIN, REFERER};
use reqwest::multipart::{Form, Part};
use reqwest::{Client, RequestBuilder, Response, StatusCode};
use serde_json::Value;
use super::types::{QbAddResponse, QbAddResult, QbCategory, QbConnectionInfo, QbError, QbSettings};
const CONNECT_TIMEOUT: Duration = Duration::from_secs(5);
const REQUEST_TIMEOUT: Duration = Duration::from_secs(20);
const UPLOAD_TIMEOUT: Duration = Duration::from_secs(60);
pub struct AddTorrentInput {
pub magnet: Option<String>,
pub file_name: Option<String>,
pub file_bytes: Option<Vec<u8>>,
pub category: Option<String>,
pub paused: bool,
pub auto_tmm: bool,
}
/// Trim, validate and normalise a WebUI address.
///
/// Accepts `host:port`, `http(s)://host:port`, a trailing slash, and a pasted
/// `.../api/v2` URL, because those are the shapes users actually copy around.
pub fn normalize_base_url(raw: &str) -> Result<String, QbError> {
let mut url = raw.trim().trim_end_matches('/').to_string();
if url.is_empty() {
return Err(QbError::config("Укажите адрес qBittorrent WebUI"));
}
if !url.starts_with("http://") && !url.starts_with("https://") {
url = format!("http://{url}");
}
if let Some(stripped) = url.strip_suffix("/api/v2") {
url = stripped.trim_end_matches('/').to_string();
}
if url.is_empty() {
return Err(QbError::config("Укажите адрес qBittorrent WebUI"));
}
let parsed = reqwest::Url::parse(&url)
.map_err(|_| QbError::config("Некорректный адрес qBittorrent WebUI"))?;
if parsed.scheme() != "http" && parsed.scheme() != "https" {
return Err(QbError::config(
"Адрес qBittorrent должен начинаться с http:// или https://",
));
}
if parsed.host_str().is_none() {
return Err(QbError::config("В адресе qBittorrent нет имени хоста"));
}
Ok(url)
}
fn map_reqwest(err: reqwest::Error) -> QbError {
let text = err.to_string();
let lower = text.to_lowercase();
if lower.contains("certificate") || lower.contains("tls") || lower.contains("ssl") {
return QbError::new(
"tls",
"Сертификат qBittorrent не принят. Если используется самоподписанный \
сертификат, включите соответствующую настройку.",
);
}
if err.is_timeout() {
return QbError::new("unreachable", "qBittorrent не ответил вовремя");
}
if err.is_connect() || lower.contains("connection refused") {
return QbError::new(
"unreachable",
"Не удалось подключиться к qBittorrent. Проверьте адрес и что WebUI запущен.",
);
}
QbError::new("http", text)
}
fn http_error(status: StatusCode) -> QbError {
let code = status.as_u16();
match code {
401 => QbError::with_status(
"auth",
"qBittorrent отклонил сессию. Проверьте логин и пароль.",
code,
),
403 => QbError::with_status(
"auth",
"qBittorrent запретил запрос (403). Проверьте вход и адрес WebUI; \
после нескольких неудачных попыток qBittorrent временно блокирует IP.",
code,
),
404 => QbError::with_status(
"http",
"Метод qBittorrent не найден (404). Возможно, версия qBittorrent слишком старая.",
code,
),
415 => QbError::with_status("torrent", "qBittorrent не принял файл торрента", code),
_ => QbError::with_status("http", format!("qBittorrent вернул ошибку {code}"), code),
}
}
fn join_hashes(hashes: &[String]) -> String {
if hashes.is_empty() {
"all".to_string()
} else {
hashes.join("|")
}
}
#[derive(Clone)]
pub struct QbClient {
pub http: Client,
pub base_url: String,
username: String,
secret: String,
use_api_key: bool,
/// Minor part of the WebAPI version (`2.11` -> `11`); 0 until connected.
pub api_minor: u32,
}
impl QbClient {
pub fn new(settings: &QbSettings, secret: &str) -> Result<Self, QbError> {
let base_url = normalize_base_url(&settings.base_url)?;
let http = Client::builder()
.cookie_store(true)
.connect_timeout(CONNECT_TIMEOUT)
.timeout(REQUEST_TIMEOUT)
.user_agent(concat!("Blink/", env!("CARGO_PKG_VERSION")))
.danger_accept_invalid_certs(settings.allow_invalid_certs)
.build()
.map_err(map_reqwest)?;
Ok(Self {
http,
base_url,
username: settings.username.trim().to_string(),
secret: secret.to_string(),
use_api_key: settings.use_api_key,
api_minor: 0,
})
}
/// Create a client, authenticate it and read its WebAPI version.
pub async fn connect(settings: &QbSettings, secret: &str) -> Result<Self, QbError> {
let mut client = Self::new(settings, secret)?;
if !client.use_api_key {
client.login().await?;
}
let version = client.get_text("/api/v2/app/webapiVersion").await?;
client.api_minor = version
.trim()
.split('.')
.nth(1)
.and_then(|minor| minor.parse().ok())
.unwrap_or(0);
Ok(client)
}
fn url(&self, path: &str) -> String {
format!("{}{}", self.base_url, path)
}
fn decorate(&self, request: RequestBuilder) -> RequestBuilder {
let request = request
.header(REFERER, &self.base_url)
.header(ORIGIN, &self.base_url);
if self.use_api_key {
request.bearer_auth(&self.secret)
} else {
request
}
}
async fn send<F>(&self, build: F) -> Result<Response, QbError>
where
F: Fn() -> RequestBuilder,
{
let first = self.decorate(build()).send().await.map_err(map_reqwest)?;
// The WebUI session can expire while the app is open. Re-login once
// and repeat the request instead of surfacing a spurious auth error.
if matches!(first.status().as_u16(), 401 | 403) && !self.use_api_key {
drop(first);
self.login().await?;
return self.decorate(build()).send().await.map_err(map_reqwest);
}
Ok(first)
}
async fn login(&self) -> Result<(), QbError> {
let response = self
.http
.post(self.url("/api/v2/auth/login"))
.header(REFERER, &self.base_url)
.header(ORIGIN, &self.base_url)
.form(&[
("username", self.username.as_str()),
("password", self.secret.as_str()),
])
.send()
.await
.map_err(map_reqwest)?;
let status = response.status();
match status.as_u16() {
200 => {
let body = response.text().await.unwrap_or_default();
if body.trim().eq_ignore_ascii_case("Fails.") {
Err(QbError::with_status(
"auth",
"Неверный логин или пароль qBittorrent",
200,
))
} else {
Ok(())
}
}
204 => Ok(()),
401 => Err(QbError::with_status(
"auth",
"Неверный логин или пароль qBittorrent",
401,
)),
403 => Err(QbError::with_status(
"banned",
"qBittorrent заблокировал вход с этого IP. Подождите и попробуйте снова.",
403,
)),
_ => Err(http_error(status)),
}
}
async fn get_text(&self, path: &str) -> Result<String, QbError> {
let url = self.url(path);
let response = self.send(|| self.http.get(&url)).await?;
let status = response.status();
if !status.is_success() {
return Err(http_error(status));
}
response.text().await.map_err(map_reqwest)
}
async fn get_json<T>(&self, path: &str) -> Result<T, QbError>
where
T: serde::de::DeserializeOwned,
{
let text = self.get_text(path).await?;
serde_json::from_str(&text)
.map_err(|err| QbError::new("http", format!("Некорректный ответ qBittorrent: {err}")))
}
async fn post_form(&self, path: &str, form: Vec<(String, String)>) -> Result<(), QbError> {
let url = self.url(path);
let response = self
.send(|| self.http.post(&url).form(&form))
.await
.map_err(|err| err)?;
let status = response.status();
if status.is_success() {
Ok(())
} else {
Err(http_error(status))
}
}
pub async fn connection_info(&self) -> Result<QbConnectionInfo, QbError> {
let app_version = self.get_text("/api/v2/app/version").await?;
let api_version = self.get_text("/api/v2/app/webapiVersion").await?;
let default_save_path = self.get_text("/api/v2/app/defaultSavePath").await?;
Ok(QbConnectionInfo {
app_version: app_version.trim().to_string(),
api_version: api_version.trim().to_string(),
default_save_path: default_save_path.trim().to_string(),
})
}
pub async fn categories(&self) -> Result<Vec<QbCategory>, QbError> {
let categories: HashMap<String, QbCategory> =
self.get_json("/api/v2/torrents/categories").await?;
let mut list: Vec<QbCategory> = categories
.into_iter()
.map(|(name, mut category)| {
if category.name.is_empty() {
category.name = name;
}
category
})
.collect();
list.sort_by_key(|category| category.name.to_lowercase());
Ok(list)
}
pub async fn add_torrent(&self, input: AddTorrentInput) -> Result<QbAddResult, QbError> {
let url = self.url("/api/v2/torrents/add");
let magnet = input.magnet.clone();
let file_name = input.file_name.clone();
let file_bytes = input.file_bytes.clone();
let category = input.category.clone();
let paused = input.paused;
let auto_tmm = input.auto_tmm;
// Build the multipart body on every attempt: a Form cannot be cloned,
// and send() may retry once after re-login.
let build_form = || {
let mut form = Form::new()
// qBittorrent 4.x spells this `paused`, 5.x `stopped`; both
// ignore the other key, so sending both keeps every version.
.text("paused", if paused { "true" } else { "false" })
.text("stopped", if paused { "true" } else { "false" })
.text("autoTMM", if auto_tmm { "true" } else { "false" });
if let Some(category) = category.as_ref().filter(|value| !value.is_empty()) {
form = form.text("category", category.clone());
}
if let Some(magnet) = magnet.as_ref().filter(|value| !value.is_empty()) {
form = form.text("urls", magnet.clone());
}
if let (Some(name), Some(bytes)) = (file_name.as_ref(), file_bytes.as_ref()) {
let part = Part::bytes(bytes.clone())
.file_name(name.clone())
.mime_str("application/x-bittorrent")
.unwrap_or_else(|_| Part::bytes(bytes.clone()));
form = form.part("torrents", part);
}
form
};
let response = self
.decorate(
self.http
.post(&url)
.timeout(UPLOAD_TIMEOUT)
.multipart(build_form()),
)
.send()
.await
.map_err(map_reqwest)?;
if matches!(response.status().as_u16(), 401 | 403) && !self.use_api_key {
self.login().await?;
let retry = self
.decorate(
self.http
.post(&url)
.timeout(UPLOAD_TIMEOUT)
.multipart(build_form()),
)
.send()
.await
.map_err(map_reqwest)?;
return parse_add_response(retry).await;
}
parse_add_response(response).await
}
pub async fn stop(&self, hashes: &[String]) -> Result<(), QbError> {
self.control(hashes, true).await
}
pub async fn start(&self, hashes: &[String]) -> Result<(), QbError> {
self.control(hashes, false).await
}
async fn control(&self, hashes: &[String], stop: bool) -> Result<(), QbError> {
let action = if stop { "stop" } else { "start" };
let fallback = if stop { "pause" } else { "resume" };
let form = vec![("hashes".to_string(), join_hashes(hashes))];
let result = self
.post_form(&format!("/api/v2/torrents/{action}"), form.clone())
.await;
match result {
Ok(()) => Ok(()),
// qBittorrent 5.0 renamed pause/resume to stop/start (WebAPI
// 2.11). If the server is older than reported, fall back once.
Err(err) if err.status == Some(404) => {
self.post_form(&format!("/api/v2/torrents/{fallback}"), form)
.await
}
Err(err) => Err(err),
}
}
pub async fn delete(&self, hashes: &[String], delete_files: bool) -> Result<(), QbError> {
let form = vec![
("hashes".to_string(), join_hashes(hashes)),
(
"deleteFiles".to_string(),
if delete_files { "true" } else { "false" }.to_string(),
),
];
self.post_form("/api/v2/torrents/delete", form).await
}
pub async fn set_category(&self, hashes: &[String], category: &str) -> Result<(), QbError> {
let form = vec![
("hashes".to_string(), join_hashes(hashes)),
("category".to_string(), category.to_string()),
];
self.post_form("/api/v2/torrents/setCategory", form).await
}
pub async fn sync(&self, rid: i64) -> Result<Value, QbError> {
self.get_json(&format!("/api/v2/sync/maindata?rid={rid}"))
.await
}
/// Read a local `.torrent` file for upload.
pub fn read_torrent_file(path: &str) -> Result<(String, Vec<u8>), QbError> {
let path = Path::new(path);
let name = path
.file_name()
.and_then(|name| name.to_str())
.unwrap_or("torrent.torrent")
.to_string();
let metadata = std::fs::metadata(path)
.map_err(|err| QbError::new("torrent", format!("Не удалось открыть файл: {err}")))?;
if metadata.len() > 10 * 1024 * 1024 {
return Err(QbError::new(
"torrent",
"Файл торрента больше 10 МБ — это не похоже на обычный .torrent",
));
}
let bytes = std::fs::read(path)
.map_err(|err| QbError::new("torrent", format!("Не удалось прочитать файл: {err}")))?;
Ok((name, bytes))
}
}
async fn parse_add_response(response: Response) -> Result<QbAddResult, QbError> {
let status = response.status();
let text = response.text().await.unwrap_or_default();
let trimmed = text.trim();
if status == StatusCode::UNSUPPORTED_MEDIA_TYPE {
return Ok(QbAddResult::new(
"invalid",
Vec::new(),
Some("qBittorrent не принял файл: это не корректный .torrent".to_string()),
));
}
if status == StatusCode::CONFLICT {
return Ok(QbAddResult::new(
"duplicate",
Vec::new(),
Some("qBittorrent не добавил раздачу: она уже есть или отклонена".to_string()),
));
}
if !status.is_success() {
return Err(http_error(status));
}
if trimmed.starts_with('{') {
if let Ok(parsed) = serde_json::from_str::<QbAddResponse>(trimmed) {
let hashes = parsed.added_torrent_ids.clone();
if parsed.success_count > 0 {
return Ok(QbAddResult::new("added", hashes, None));
}
if parsed.pending_count > 0 {
return Ok(QbAddResult::new(
"pending",
hashes,
Some("qBittorrent обрабатывает раздачу".to_string()),
));
}
let message = if parsed.failure_count > 0 {
format!(
"qBittorrent не добавил раздачу (ошибок: {})",
parsed.failure_count
)
} else {
"qBittorrent не добавил раздачу: она уже есть или отклонена".to_string()
};
return Ok(QbAddResult::new("duplicate", hashes, Some(message)));
}
}
if trimmed.eq_ignore_ascii_case("Fails.") {
return Ok(QbAddResult::new(
"duplicate",
Vec::new(),
Some("qBittorrent не добавил раздачу: она уже есть или отклонена".to_string()),
));
}
Ok(QbAddResult::new("added", Vec::new(), None))
}
+546
View File
@@ -0,0 +1,546 @@
use std::collections::HashMap;
use std::path::PathBuf;
use std::sync::{Mutex, MutexGuard};
use serde_json::{Map, Value};
use tauri::{AppHandle, Manager, State};
pub mod client;
pub mod types;
use client::{normalize_base_url, AddTorrentInput, QbClient};
use types::{
QbAddRequest, QbAddResult, QbCategory, QbConnectionInfo, QbError, QbServerState,
QbServerStateRaw, QbSettings, QbSnapshot, QbTorrent, QbTorrentRaw,
};
const KEYRING_SERVICE: &str = "blink-qbittorrent";
const KEYRING_USER: &str = "default";
const SETTINGS_FILE: &str = "qbittorrent.json";
struct Inner {
settings: QbSettings,
/// Password or API key, kept in memory for this run even when the user
/// chose not to write it to the OS keyring.
secret: Option<String>,
secret_saved: bool,
/// Whether the OS keyring has already been queried in this run.
secret_checked: bool,
client: Option<QbClient>,
torrents: HashMap<String, Value>,
server_state: Value,
rid: i64,
synced: bool,
}
impl Default for Inner {
fn default() -> Self {
Self {
settings: QbSettings::default(),
secret: None,
secret_saved: false,
secret_checked: false,
client: None,
torrents: HashMap::new(),
server_state: Value::Null,
rid: 0,
synced: false,
}
}
}
pub struct QbState {
inner: Mutex<Inner>,
}
impl QbState {
pub fn load(app: &AppHandle) -> Self {
// The OS keyring is intentionally not touched here: setup runs on the
// main thread, and a slow Credential Manager/Keychain call must not
// delay (or freeze) the window. The secret is loaded lazily by
// `qb_get_settings` on the async runtime.
Self {
inner: Mutex::new(Inner {
settings: read_settings(app),
..Inner::default()
}),
}
}
fn lock(&self) -> Result<MutexGuard<'_, Inner>, QbError> {
self.inner
.lock()
.map_err(|_| QbError::new("internal", "Внутреннее состояние qBittorrent повреждено"))
}
}
fn keyring_entry() -> Result<keyring::Entry, QbError> {
keyring::Entry::new(KEYRING_SERVICE, KEYRING_USER).map_err(|err| {
QbError::new(
"config",
format!("Системное хранилище секретов недоступно: {err}"),
)
})
}
fn keyring_read() -> Option<String> {
keyring_entry()
.ok()
.and_then(|entry| entry.get_password().ok())
.filter(|secret| !secret.is_empty())
}
fn keyring_write(secret: &str) -> bool {
keyring_entry()
.and_then(|entry| {
entry.set_password(secret).map_err(|err| {
QbError::new("config", format!("Не удалось сохранить секрет: {err}"))
})
})
.is_ok()
}
fn keyring_delete() {
if let Ok(entry) = keyring_entry() {
let _ = entry.delete_credential();
}
}
fn settings_path(app: &AppHandle) -> Result<PathBuf, QbError> {
let directory = app.path().app_config_dir().map_err(|err| {
QbError::new(
"config",
format!("Не удалось определить каталог настроек: {err}"),
)
})?;
std::fs::create_dir_all(&directory).map_err(|err| {
QbError::new(
"config",
format!("Не удалось создать каталог настроек: {err}"),
)
})?;
Ok(directory.join(SETTINGS_FILE))
}
fn read_settings(app: &AppHandle) -> QbSettings {
let Ok(path) = settings_path(app) else {
return QbSettings::default();
};
let Ok(text) = std::fs::read_to_string(path) else {
return QbSettings::default();
};
serde_json::from_str(&text).unwrap_or_default()
}
fn write_settings(app: &AppHandle, settings: &QbSettings) -> Result<(), QbError> {
let path = settings_path(app)?;
let mut persisted = settings.clone();
persisted.secret_saved = false;
persisted.has_secret = false;
let json = serde_json::to_string_pretty(&persisted)
.map_err(|err| QbError::new("config", format!("Не удалось сохранить настройки: {err}")))?;
std::fs::write(path, json)
.map_err(|err| QbError::new("config", format!("Не удалось сохранить настройки: {err}")))
}
fn public_settings(inner: &Inner) -> QbSettings {
let mut settings = inner.settings.clone();
settings.secret_saved = inner.secret_saved;
settings.has_secret = inner.secret.is_some();
settings
}
fn reset_session(inner: &mut Inner) {
inner.client = None;
inner.torrents.clear();
inner.server_state = Value::Null;
inner.rid = 0;
inner.synced = false;
}
fn merge_json(base: &mut Value, patch: &Value) {
if let (Some(base), Some(patch)) = (base.as_object_mut(), patch.as_object()) {
for (key, value) in patch {
base.insert(key.clone(), value.clone());
}
}
}
fn apply_sync(inner: &mut Inner, data: &Value) {
let full_update = data
.get("full_update")
.and_then(Value::as_bool)
.unwrap_or(false);
if full_update {
inner.torrents.clear();
inner.server_state = Value::Null;
}
if let Some(torrents) = data.get("torrents").and_then(Value::as_object) {
for (hash, patch) in torrents {
if !patch.is_object() {
continue;
}
let entry = inner
.torrents
.entry(hash.clone())
.or_insert_with(|| Value::Object(Map::new()));
merge_json(entry, patch);
}
}
if let Some(removed) = data.get("torrents_removed").and_then(Value::as_array) {
for hash in removed {
if let Some(hash) = hash.as_str() {
inner.torrents.remove(hash);
}
}
}
if let Some(server_state) = data.get("server_state") {
if server_state.is_object() {
if inner.server_state.is_null() {
inner.server_state = Value::Object(Map::new());
}
merge_json(&mut inner.server_state, server_state);
}
}
if let Some(rid) = data.get("rid").and_then(Value::as_i64) {
inner.rid = rid;
}
inner.synced = true;
}
fn snapshot(inner: &Inner) -> QbSnapshot {
let mut torrents: Vec<QbTorrent> = inner
.torrents
.iter()
.filter(|(_, value)| value.is_object())
.map(|(hash, value)| QbTorrent::from(QbTorrentRaw::from_value(value, hash)))
.collect();
// Newest first; the UI groups by state on top of that.
torrents.sort_by(|left, right| right.added_on.cmp(&left.added_on));
let server_state = QbServerState::from(QbServerStateRaw::from_value(&inner.server_state));
QbSnapshot {
torrents,
server_state,
synced: inner.synced,
}
}
async fn client_and_settings(state: &QbState) -> Result<(QbClient, QbSettings), QbError> {
let (settings, secret, cached) = {
let inner = state.lock()?;
(
inner.settings.clone(),
inner.secret.clone(),
inner.client.clone(),
)
};
if let Some(client) = cached {
return Ok((client, settings));
}
let secret = secret.ok_or_else(|| {
QbError::new(
"auth",
"Пароль qBittorrent не задан. Откройте «Настройки → Загрузки».",
)
})?;
let client = QbClient::connect(&settings, &secret).await?;
{
let mut inner = state.lock()?;
// Another command may have connected while this one awaited.
if inner.client.is_none() {
inner.client = Some(client.clone());
}
}
Ok((client, settings))
}
#[tauri::command]
pub async fn qb_get_settings(state: State<'_, QbState>) -> Result<QbSettings, QbError> {
let should_read = {
let inner = state.lock()?;
inner.secret.is_none() && inner.settings.remember_secret && !inner.secret_checked
};
if should_read {
{
let mut inner = state.lock()?;
inner.secret_checked = true;
}
let stored = tauri::async_runtime::spawn_blocking(keyring_read)
.await
.unwrap_or(None);
if let Some(secret) = stored {
let mut inner = state.lock()?;
if inner.secret.is_none() {
inner.secret = Some(secret);
inner.secret_saved = true;
}
}
}
let inner = state.lock()?;
Ok(public_settings(&inner))
}
#[tauri::command]
pub async fn qb_save_settings(
app: AppHandle,
state: State<'_, QbState>,
mut settings: QbSettings,
secret: Option<String>,
) -> Result<QbSettings, QbError> {
settings.base_url = normalize_base_url(&settings.base_url)?;
settings.username = settings.username.trim().to_string();
settings.poll_interval_ms = settings.poll_interval_ms.clamp(1000, 60_000);
settings.default_category = settings.default_category.trim().to_string();
let new_secret = secret.and_then(|value| {
let value = value.trim().to_string();
if value.is_empty() {
None
} else {
Some(value)
}
});
let secret_changed = new_secret.is_some();
let remember_secret = settings.remember_secret;
// Never call the OS keyring (or write files) while holding the state
// mutex: Credential Manager can block for seconds or show a system prompt,
// and every other qB command would queue behind it.
let secret_for_keyring = {
let mut inner = state.lock()?;
inner.secret_checked = true;
if let Some(secret) = new_secret {
inner.secret = Some(secret);
}
let connection_changed = inner.settings.base_url != settings.base_url
|| inner.settings.username != settings.username
|| inner.settings.use_api_key != settings.use_api_key
|| inner.settings.allow_invalid_certs != settings.allow_invalid_certs;
inner.settings = settings.clone();
if connection_changed || secret_changed {
reset_session(&mut inner);
}
inner.secret.clone()
};
let keyring_result = tauri::async_runtime::spawn_blocking(move || {
if remember_secret {
secret_for_keyring
.as_deref()
.map(keyring_write)
.unwrap_or(false)
} else {
keyring_delete();
false
}
})
.await
.map_err(|err| {
QbError::new(
"internal",
format!("Не удалось выполнить операцию с секретом: {err}"),
)
})?;
{
let mut inner = state.lock()?;
inner.secret_saved = keyring_result;
}
write_settings(&app, &settings)?;
let inner = state.lock()?;
Ok(public_settings(&inner))
}
#[tauri::command]
pub async fn qb_forget_secret(
app: AppHandle,
state: State<'_, QbState>,
) -> Result<QbSettings, QbError> {
let settings = {
let mut inner = state.lock()?;
inner.secret = None;
inner.secret_saved = false;
inner.secret_checked = true;
reset_session(&mut inner);
inner.settings.clone()
};
tauri::async_runtime::spawn_blocking(keyring_delete)
.await
.map_err(|err| {
QbError::new(
"internal",
format!("Не удалось удалить сохранённый секрет: {err}"),
)
})?;
write_settings(&app, &settings)?;
let inner = state.lock()?;
Ok(public_settings(&inner))
}
#[tauri::command]
pub async fn qb_test_connection(
state: State<'_, QbState>,
mut settings: QbSettings,
secret: Option<String>,
) -> Result<QbConnectionInfo, QbError> {
settings.base_url = normalize_base_url(&settings.base_url)?;
let provided = secret.and_then(|value| {
let value = value.trim().to_string();
if value.is_empty() {
None
} else {
Some(value)
}
});
let secret = match provided {
Some(secret) => secret,
None => state.lock()?.secret.clone().ok_or_else(|| {
QbError::new(
"auth",
"Введите пароль qBittorrent (или API-ключ), чтобы проверить соединение",
)
})?,
};
let client = QbClient::connect(&settings, &secret).await?;
client.connection_info().await
}
#[tauri::command]
pub async fn qb_categories(state: State<'_, QbState>) -> Result<Vec<QbCategory>, QbError> {
let (client, _settings) = client_and_settings(&state).await?;
client.categories().await
}
#[tauri::command]
pub async fn qb_add_torrent(
state: State<'_, QbState>,
request: QbAddRequest,
) -> Result<QbAddResult, QbError> {
let magnet = request
.magnet
.map(|value| value.trim().to_string())
.filter(|value| !value.is_empty());
let file_path = request
.file_path
.map(|value| value.trim().to_string())
.filter(|value| !value.is_empty());
if magnet.is_some() && file_path.is_some() {
return Err(QbError::config(
"Выберите что-то одно: magnet-ссылку или .torrent файл",
));
}
if magnet.is_none() && file_path.is_none() {
return Err(QbError::config(
"Вставьте magnet-ссылку или выберите .torrent",
));
}
if let Some(magnet) = magnet.as_deref() {
if !magnet.starts_with("magnet:?") {
return Err(QbError::config("Ссылка не похожа на magnet-ссылку"));
}
}
let (file_name, file_bytes) = match file_path.as_deref() {
Some(path) => {
let (name, bytes) = QbClient::read_torrent_file(path)?;
(Some(name), Some(bytes))
}
None => (None, None),
};
let (client, settings) = client_and_settings(&state).await?;
let category = request
.category
.map(|value| value.trim().to_string())
.filter(|value| !value.is_empty())
.or_else(|| {
let default = settings.default_category.trim().to_string();
if default.is_empty() {
None
} else {
Some(default)
}
});
let result = client
.add_torrent(AddTorrentInput {
magnet,
file_name,
file_bytes,
category,
paused: request.paused.unwrap_or(settings.add_paused),
auto_tmm: request.auto_tmm.unwrap_or(settings.auto_tmm),
})
.await?;
// The torrent list is now stale; the next poll would receive an empty diff
// if we kept the old rid. Force a full update.
if result.status == "added" || result.status == "pending" {
let mut inner = state.lock()?;
inner.rid = 0;
inner.synced = false;
}
Ok(result)
}
#[tauri::command]
pub async fn qb_poll(state: State<'_, QbState>) -> Result<QbSnapshot, QbError> {
let (client, _settings) = client_and_settings(&state).await?;
let rid = state.lock()?.rid;
let data = client.sync(rid).await?;
let mut inner = state.lock()?;
apply_sync(&mut inner, &data);
Ok(snapshot(&inner))
}
#[tauri::command]
pub async fn qb_pause(state: State<'_, QbState>, hashes: Vec<String>) -> Result<(), QbError> {
let (client, _settings) = client_and_settings(&state).await?;
client.stop(&hashes).await
}
#[tauri::command]
pub async fn qb_resume(state: State<'_, QbState>, hashes: Vec<String>) -> Result<(), QbError> {
let (client, _settings) = client_and_settings(&state).await?;
client.start(&hashes).await
}
#[tauri::command]
pub async fn qb_delete(
state: State<'_, QbState>,
hashes: Vec<String>,
delete_files: bool,
) -> Result<(), QbError> {
let (client, _settings) = client_and_settings(&state).await?;
client.delete(&hashes, delete_files).await
}
#[tauri::command]
pub async fn qb_set_category(
state: State<'_, QbState>,
hashes: Vec<String>,
category: String,
) -> Result<(), QbError> {
let (client, _settings) = client_and_settings(&state).await?;
client.set_category(&hashes, category.trim()).await
}
+369
View File
@@ -0,0 +1,369 @@
use serde::{Deserialize, Serialize};
/// qBittorrent connection settings.
///
/// Stored as `qbittorrent.json` in the app config directory. The password (or
/// API key) is never part of this struct: it lives in the OS secret store and
/// only its presence is reported back to the UI.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase", default)]
pub struct QbSettings {
pub base_url: String,
pub username: String,
/// `true` when the secret is a qBittorrent API key (WebAPI 2.17+) instead
/// of the WebUI password.
pub use_api_key: bool,
/// Persist the secret in the OS keyring.
pub remember_secret: bool,
pub default_category: String,
/// Pass `autoTMM=true` when adding a torrent, so the category save path is
/// honoured.
pub auto_tmm: bool,
pub add_paused: bool,
pub allow_invalid_certs: bool,
pub refresh_jellyfin: bool,
pub notify_on_complete: bool,
pub poll_interval_ms: u64,
/// Read-only flags for the UI; recomputed on every load/save.
#[serde(default)]
pub secret_saved: bool,
#[serde(default)]
pub has_secret: bool,
}
impl Default for QbSettings {
fn default() -> Self {
Self {
base_url: "http://127.0.0.1:8080".to_string(),
username: "admin".to_string(),
use_api_key: false,
remember_secret: false,
default_category: String::new(),
auto_tmm: true,
add_paused: false,
allow_invalid_certs: false,
refresh_jellyfin: false,
notify_on_complete: true,
poll_interval_ms: 2000,
secret_saved: false,
has_secret: false,
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase", default)]
pub struct QbCategory {
pub name: String,
pub save_path: String,
pub download_path: Option<String>,
}
#[derive(Debug, Clone, Default)]
pub struct QbTorrentRaw {
pub hash: String,
pub name: String,
pub category: String,
pub size: i64,
pub completed: i64,
pub downloaded: i64,
pub progress: f64,
pub dlspeed: i64,
pub upspeed: i64,
pub eta: i64,
pub state: String,
pub save_path: String,
pub content_path: String,
pub added_on: i64,
pub completion_on: i64,
pub ratio: f64,
pub num_seeds: i64,
pub num_leechs: i64,
pub error: Option<String>,
pub tags: String,
pub seeding_time: i64,
pub time_active: i64,
pub amount_left: i64,
pub tracker: String,
}
impl QbTorrentRaw {
/// `hash` is the key of the `sync/maindata` torrents map; qBittorrent does
/// not repeat it inside the value.
pub fn from_value(value: &serde_json::Value, hash: &str) -> Self {
let text = |key: &str| -> String {
value
.get(key)
.and_then(serde_json::Value::as_str)
.unwrap_or_default()
.to_string()
};
let number = |key: &str| -> i64 {
value
.get(key)
.and_then(serde_json::Value::as_i64)
.unwrap_or_default()
};
let float = |key: &str| -> f64 {
value
.get(key)
.and_then(serde_json::Value::as_f64)
.unwrap_or_default()
};
Self {
hash: hash.to_string(),
name: text("name"),
category: text("category"),
size: number("size"),
completed: number("completed"),
downloaded: number("downloaded"),
progress: float("progress"),
dlspeed: number("dlspeed"),
upspeed: number("upspeed"),
eta: number("eta"),
state: text("state"),
save_path: text("save_path"),
content_path: text("content_path"),
added_on: number("added_on"),
completion_on: number("completion_on"),
ratio: float("ratio"),
num_seeds: number("num_seeds"),
num_leechs: number("num_leechs"),
error: value
.get("error")
.and_then(serde_json::Value::as_str)
.filter(|message| !message.is_empty())
.map(str::to_string),
tags: text("tags"),
seeding_time: number("seeding_time"),
time_active: number("time_active"),
amount_left: number("amount_left"),
tracker: text("tracker"),
}
}
}
#[derive(Debug, Clone, Serialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct QbTorrent {
pub hash: String,
pub name: String,
pub category: String,
pub size: i64,
pub completed: i64,
pub downloaded: i64,
pub progress: f64,
pub dlspeed: i64,
pub upspeed: i64,
pub eta: i64,
pub state: String,
pub save_path: String,
pub content_path: String,
pub added_on: i64,
pub completion_on: i64,
pub ratio: f64,
pub num_seeds: i64,
pub num_leechs: i64,
pub error: Option<String>,
pub tags: String,
pub seeding_time: i64,
pub time_active: i64,
pub amount_left: i64,
pub tracker: String,
}
impl From<QbTorrentRaw> for QbTorrent {
fn from(raw: QbTorrentRaw) -> Self {
Self {
hash: raw.hash,
name: raw.name,
category: raw.category,
size: raw.size,
completed: raw.completed,
downloaded: raw.downloaded,
progress: raw.progress,
dlspeed: raw.dlspeed,
upspeed: raw.upspeed,
eta: raw.eta,
state: raw.state,
save_path: raw.save_path,
content_path: raw.content_path,
added_on: raw.added_on,
completion_on: raw.completion_on,
ratio: raw.ratio,
num_seeds: raw.num_seeds,
num_leechs: raw.num_leechs,
error: raw.error,
tags: raw.tags,
seeding_time: raw.seeding_time,
time_active: raw.time_active,
amount_left: raw.amount_left,
tracker: raw.tracker,
}
}
}
#[derive(Debug, Clone, Default)]
pub struct QbServerStateRaw {
pub dl_info_speed: i64,
pub up_info_speed: i64,
pub dl_info_data: i64,
pub up_info_data: i64,
pub free_space_on_disk: i64,
pub connection_status: String,
pub queueing: bool,
pub dht_nodes: i64,
}
impl QbServerStateRaw {
pub fn from_value(value: &serde_json::Value) -> Self {
let number = |key: &str| -> i64 {
value
.get(key)
.and_then(serde_json::Value::as_i64)
.unwrap_or_default()
};
let text = |key: &str| -> String {
value
.get(key)
.and_then(serde_json::Value::as_str)
.unwrap_or_default()
.to_string()
};
Self {
dl_info_speed: number("dl_info_speed"),
up_info_speed: number("up_info_speed"),
dl_info_data: number("dl_info_data"),
up_info_data: number("up_info_data"),
free_space_on_disk: number("free_space_on_disk"),
connection_status: text("connection_status"),
queueing: value
.get("queueing")
.and_then(serde_json::Value::as_bool)
.unwrap_or_default(),
dht_nodes: number("dht_nodes"),
}
}
}
#[derive(Debug, Clone, Serialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct QbServerState {
pub dl_info_speed: i64,
pub up_info_speed: i64,
pub dl_info_data: i64,
pub up_info_data: i64,
pub free_space_on_disk: i64,
pub connection_status: String,
pub queueing: bool,
pub dht_nodes: i64,
}
impl From<QbServerStateRaw> for QbServerState {
fn from(raw: QbServerStateRaw) -> Self {
Self {
dl_info_speed: raw.dl_info_speed,
up_info_speed: raw.up_info_speed,
dl_info_data: raw.dl_info_data,
up_info_data: raw.up_info_data,
free_space_on_disk: raw.free_space_on_disk,
connection_status: raw.connection_status,
queueing: raw.queueing,
dht_nodes: raw.dht_nodes,
}
}
}
#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct QbSnapshot {
pub torrents: Vec<QbTorrent>,
pub server_state: QbServerState,
pub synced: bool,
}
#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct QbAddResult {
/// `added`, `pending`, `duplicate` or `invalid`.
pub status: String,
pub added_hashes: Vec<String>,
pub message: Option<String>,
}
impl QbAddResult {
pub fn new(status: &str, added_hashes: Vec<String>, message: Option<String>) -> Self {
Self {
status: status.to_string(),
added_hashes,
message,
}
}
}
#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct QbConnectionInfo {
pub app_version: String,
pub api_version: String,
pub default_save_path: String,
}
/// Error returned by every qBittorrent command.
///
/// `kind` is a stable machine-readable value:
/// `unreachable`, `auth`, `banned`, `tls`, `duplicate`, `torrent`, `http`,
/// `config` or `internal`.
#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct QbError {
pub kind: String,
pub message: String,
pub status: Option<u16>,
}
impl QbError {
pub fn new(kind: &str, message: impl Into<String>) -> Self {
Self {
kind: kind.to_string(),
message: message.into(),
status: None,
}
}
pub fn with_status(kind: &str, message: impl Into<String>, status: u16) -> Self {
Self {
kind: kind.to_string(),
message: message.into(),
status: Some(status),
}
}
pub fn config(message: impl Into<String>) -> Self {
Self::new("config", message)
}
}
#[derive(Debug, Clone, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QbAddRequest {
pub magnet: Option<String>,
pub file_path: Option<String>,
pub category: Option<String>,
pub paused: Option<bool>,
pub auto_tmm: Option<bool>,
}
#[derive(Debug, Deserialize, Default)]
pub struct QbAddResponse {
#[serde(default)]
pub success_count: i64,
#[serde(default)]
pub pending_count: i64,
#[serde(default)]
pub failure_count: i64,
#[serde(default)]
pub added_torrent_ids: Vec<String>,
}
+99 -88
View File
@@ -1,89 +1,100 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "pnpm run build",
"beforeDevCommand": "pnpm run dev",
"frontendDist": "../dist",
"devUrl": "http://localhost:5173"
},
"bundle": {
"active": true,
"category": "Video",
"copyright": "GPL-3.0-only",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": "",
"nsis": {
"sidebarImage": "../public/installerSideBarImage.bmp",
"headerImage": "../public/installerHeaderImage.bmp",
"installerIcon": "icons/icon.ico",
"displayLanguageSelector": true
}
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"linux": {
"deb": {
"depends": []
},
"appimage": {
"bundleMediaFramework": true
}
},
"longDescription": "A modern desktop client for Jellyfin",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "Blink",
"targets": [
"deb",
"appimage",
"nsis",
"app",
"dmg"
],
"licenseFile": "../LICENSE",
"createUpdaterArtifacts": "v1Compatible"
},
"productName": "Blink",
"version": "../package.json",
"identifier": "com.blink.prayag17",
"plugins": {
"updater": {
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEZEMTg0MjEzRDYzRjJDN0EKUldSNkxEL1dFMElZL1dxbHA0V2lyVDFEdGpOZXkxMG9XdHVLVnRpVVV5c1Z0OFNRUE45dkpxbFAK",
"endpoints": [
"https://raw.githack.com/prayag17/JellyPlayer/main/latest.json"
]
}
},
"app": {
"windows": [
{
"fullscreen": false,
"height": 600,
"width": 800,
"resizable": true,
"title": "Blink",
"visible": true,
"center": true,
"label": "main",
"dragDropEnabled": false
}
],
"security": {
"csp": null
}
}
}
"build": {
"beforeBuildCommand": "pnpm run build",
"beforeDevCommand": "pnpm run dev",
"frontendDist": "../dist",
"devUrl": "http://localhost:5173"
},
"bundle": {
"active": true,
"category": "Video",
"copyright": "GPL-3.0-only",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": "",
"nsis": {
"sidebarImage": "../public/installerSideBarImage.bmp",
"headerImage": "../public/installerHeaderImage.bmp",
"installerIcon": "icons/icon.ico",
"displayLanguageSelector": true
}
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"linux": {
"deb": {
"depends": []
},
"appimage": {
"bundleMediaFramework": true
}
},
"longDescription": "A modern desktop client for Jellyfin",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "Blink",
"targets": ["deb", "appimage", "nsis", "app", "dmg"],
"licenseFile": "../LICENSE",
"createUpdaterArtifacts": "v1Compatible"
},
"productName": "Blink",
"version": "../package.json",
"identifier": "com.blink.prayag17",
"plugins": {
"deep-link": {
"desktop": {
"schemes": ["blink"]
}
},
"updater": {
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEZBOTJGNzM3REU2Q0JEMEYKUldRUHZXemVOL2VTK2k2andMWTZYbEN6SnIwV0V0L2Z3NlA4RzFabThPaXRqSFRMc004WGhCb2kK",
"endpoints": [
"https://rawcdn.githack.com/prayag17/Blink/refs/heads/main/latest.json"
],
"windows": {
"installMode": "passive"
}
}
},
"app": {
"windows": [
{
"fullscreen": false,
"height": 600,
"width": 800,
"resizable": true,
"title": "Blink",
"visible": true,
"center": true,
"label": "main",
"dragDropEnabled": false,
"backgroundColor": "#08001f",
"transparent": false,
"titleBarStyle": "Overlay",
"hiddenTitle": true,
"trafficLightPosition": { "x": 18, "y": 31 }
}
],
"security": {
"csp": null,
"capabilities": [
"desktop-capability",
"main-capabilities",
"migrated"
]
}
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"app": {
"withGlobalTauri": true,
"security": {
"capabilities": [
"desktop-capability",
"main-capabilities",
"migrated",
"mcp-bridge-capability"
]
}
}
}
Binary file not shown.
Binary file not shown.
+98
View File
@@ -0,0 +1,98 @@
Copyright 2026 The Medeo Project Authors (https://github.com/DNFDEVS/medeo-font)
Copyright 2024-2026 The Geist Project Authors (https://github.com/vercel/geist-font)
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
Copyright (c) 2010, ParaType Ltd. (http://www.paratype.com/public),
with Reserved Font Names "PT Sans", "PT Serif" and "ParaType".
Copyright 2012 Google Inc. (Noto Serif Display)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+9
View File
@@ -0,0 +1,9 @@
# Medeo
Local copy of the Medeo variable web fonts used throughout Blink.
- Source: https://github.com/DNFDEVS/medeo-font
- Version: 1.1.0 (font version 1.100)
- Sans: `MedeoSansVariable.woff2`, `MedeoSansVariable-Italic.woff2`
- Mono: `MedeoMonoVariable.woff2`, `MedeoMonoVariable-Italic.woff2`
- License: SIL Open Font License 1.1, see `OFL.txt`
Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

+2 -2
View File
@@ -1,3 +1,3 @@
<svg width="1310" height="1512" viewBox="0 0 1310 1512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M654.715 756L52 1103.98L654.715 1451.96L1257.43 1103.98V408.022L654.715 60.0444L52 408.022L654.715 756ZM654.715 0L1309.43 378V1134L654.715 1512L0 1134V1073.96V438.044V378L654.715 0Z" fill="#101010"/>
<svg width="1512" height="1512" viewBox="0 0 1512 1512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M755.715 756L153 1103.98L755.715 1451.96L1358.43 1103.98V408.022L755.715 60.0444L153 408.022L755.715 756ZM755.715 0L1410.43 378V1134L755.715 1512L101 1134V1073.96V438.044V378L755.715 0Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

+58 -56
View File
@@ -1,4 +1,3 @@
import useDebounce from "@/utils/hooks/useDebounce";
import React, {
type ReactNode,
useCallback,
@@ -11,12 +10,7 @@ import { useSpring } from "@react-spring/web";
import { debounce } from "lodash";
import "./style.scss";
import { Button, IconButton } from "@mui/material";
enum Direction {
RIGHT = 0,
LEFT = 1,
}
import { IconButton } from "@mui/material";
const Slider = ({
content,
@@ -76,7 +70,7 @@ const Slider = ({
},
}));
const slide = (direction: Direction) => {
const slideLeft = useCallback(() => {
const clientWidth =
containerRef.current?.getBoundingClientRect().width ?? 0;
const cardWidth =
@@ -86,66 +80,75 @@ const Slider = ({
const visibleItems = Math.floor(clientWidth / cardWidth);
const scrollOffset = scrollPosition % cardWidth;
if (direction === Direction.LEFT) {
const newX = Math.max(
scrollPosition - scrollOffset - visibleItems * cardWidth,
0,
);
setX.start({
from: { x: scrollPosition },
to: { x: newX },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
reset: true,
config: { friction: 60, tension: 1000, velocity: 2 },
});
const newX = Math.max(
scrollPosition - scrollOffset - visibleItems * cardWidth,
0,
);
setX({
from: { x: scrollPosition },
to: { x: newX },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
reset: true,
config: { friction: 60, tension: 1000, velocity: 2 },
});
if (newX === 0) {
setScrollPos({ isStart: true, isEnd: false });
} else {
setScrollPos({ isStart: false, isEnd: false });
}
} else if (direction === Direction.RIGHT) {
const newX = Math.min(
scrollPosition - scrollOffset + visibleItems * cardWidth,
containerRef.current?.scrollWidth ?? 0 - clientWidth,
);
setX.start({
from: { x: scrollPosition },
to: { x: newX },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
reset: true,
config: { friction: 60, tension: 500, velocity: 2 },
});
if (newX >= (containerRef.current?.scrollWidth ?? 0) - clientWidth) {
setScrollPos({ isStart: false, isEnd: true });
} else {
setScrollPos({ isStart: false, isEnd: false });
}
if (newX === 0) {
setScrollPos({ isStart: true, isEnd: false });
} else {
setScrollPos({ isStart: false, isEnd: false });
}
};
}, [setX]);
const slideRight = useCallback(() => {
const clientWidth =
containerRef.current?.getBoundingClientRect().width ?? 0;
const cardWidth =
containerRef.current?.firstElementChild?.getBoundingClientRect().width ??
0;
const scrollPosition = containerRef.current?.scrollLeft ?? 0;
const visibleItems = Math.floor(clientWidth / cardWidth);
const scrollOffset = scrollPosition % cardWidth;
const newX = Math.min(
scrollPosition - scrollOffset + visibleItems * cardWidth,
containerRef.current?.scrollWidth ?? 0 - clientWidth,
);
setX({
from: { x: scrollPosition },
to: { x: newX },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
reset: true,
config: { friction: 60, tension: 500, velocity: 2 },
});
if (newX >= (containerRef.current?.scrollWidth ?? 0) - clientWidth) {
setScrollPos({ isStart: false, isEnd: true });
} else {
setScrollPos({ isStart: false, isEnd: false });
}
}, [setX]);
return (
<div className="slider">
<IconButton
className="slider-button left"
onClick={() => slide(Direction.LEFT)}
onClick={slideLeft}
disabled={scrollPos.isStart}
variant="contained"
>
<span className="material-symbols-rounded">chevron_left</span>
</IconButton>
<div className="slider-track" ref={containerRef} onScroll={onScroll}>
{content?.map((item, index) => (
<div
//biome-ignore lint/suspicious/noArrayIndexKey: item does not have a unique key
key={index}
className={
currentSlide === index
@@ -159,9 +162,8 @@ const Slider = ({
</div>
<IconButton
className="slider-button right"
onClick={() => slide(Direction.RIGHT)}
onClick={slideRight}
disabled={scrollPos.isEnd}
variant="contained"
>
<span className="material-symbols-rounded">chevron_right</span>
</IconButton>
+193
View File
@@ -0,0 +1,193 @@
import { LoadingButton } from "@mui/lab";
import {
Box,
Button,
Dialog,
InputBase,
Stack,
Typography,
} from "@mui/material";
import { useMutation } from "@tanstack/react-query";
import { enqueueSnackbar } from "notistack";
import React, { useState } from "react";
import { setServer } from "@/utils/storage/servers";
import { jellyfin } from "@/utils/store/api";
type AddServerDialogProps = {
open: boolean;
setAddServerDialog: (value: boolean) => void;
sideEffect?: () => Promise<unknown>;
hideBackdrop?: boolean;
};
export default function AddServerDialog(props: AddServerDialogProps) {
const { open, setAddServerDialog, sideEffect, hideBackdrop } = props;
const [serverIp, setServerIp] = useState("");
const addServer = useMutation({
mutationKey: ["add-server"],
mutationFn: async () => {
const servers =
await jellyfin.discovery.getRecommendedServerCandidates(serverIp);
const bestServer = jellyfin.discovery.findBestServer(servers);
return bestServer;
},
onSuccess: async (bestServer) => {
if (bestServer) {
await setServer(bestServer.systemInfo?.Id ?? "", bestServer);
setAddServerDialog(false);
enqueueSnackbar(
"Сервер добавлен. Возможно, потребуется обновить список серверов.",
{
variant: "success",
},
);
if (sideEffect) {
await sideEffect();
}
}
},
onError: (err) => {
console.error(err);
enqueueSnackbar(`${err}`, { variant: "error" });
enqueueSnackbar("Что-то пошло не так", { variant: "error" });
},
onSettled: async (bestServer) => {
if (!bestServer) {
enqueueSnackbar("Указанный адрес не является сервером Jellyfin.", {
variant: "error",
});
}
},
});
return (
<Dialog
open={open}
onClose={() => setAddServerDialog(false)}
hideBackdrop={Boolean(hideBackdrop)}
fullWidth
maxWidth="sm"
disableScrollLock={true}
slotProps={{
paper: {
sx: {
backgroundColor: "rgba(20, 20, 30, 0.7)",
backdropFilter: "blur(24px) saturate(180%)",
backgroundImage:
"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0))",
border: "1px solid rgba(255, 255, 255, 0.08)",
boxShadow: "0 20px 50px rgba(0,0,0,0.5)",
borderRadius: 4,
overflow: "hidden",
},
},
}}
>
<Stack
spacing={3}
sx={{
p: 4,
}}
>
<Stack
spacing={1}
sx={{
alignItems: "center",
}}
>
<span
className="material-symbols-rounded"
style={{
fontSize: "48px",
color: "var(--mui-palette-primary-main)",
}}
>
add_to_queue
</span>
<Typography
variant="h5"
sx={{
fontWeight: "bold",
textAlign: "center",
}}
>
Подключиться к серверу
</Typography>
<Typography
variant="body2"
sx={{
color: "text.secondary",
textAlign: "center",
}}
>
Введите адрес сервера Jellyfin, чтобы продолжить
</Typography>
</Stack>
<Box
sx={{
p: "2px 16px",
bgcolor: "rgba(0,0,0,0.2)",
borderRadius: 2,
border: "1px solid",
borderColor: "rgba(255,255,255,0.05)",
display: "flex",
alignItems: "center",
gap: 2,
"&:focus-within": {
borderColor: "var(--mui-palette-primary-main)",
bgcolor: "rgba(0,0,0,0.3)",
},
transition: "border-color 0.2s, background-color 0.2s",
}}
>
<span className="material-symbols-rounded" style={{ opacity: 0.5 }}>
dns
</span>
<InputBase
placeholder="https://jellyfin.example.com"
fullWidth
value={serverIp}
onChange={(e) => setServerIp(e.target.value)}
sx={{ py: 1.5 }}
autoFocus
onKeyDown={(e) => {
if (e.key === "Enter") {
addServer.mutate();
}
}}
/>
</Box>
<Stack
direction="row"
spacing={2}
sx={{
justifyContent: "flex-end",
pt: 1,
}}
>
<Button
onClick={() => setAddServerDialog(false)}
color="inherit"
variant="text"
sx={{ borderRadius: 2 }}
>
Отмена
</Button>
<LoadingButton
loading={addServer.isPending}
onClick={() => addServer.mutate()}
variant="contained"
color="primary"
sx={{ borderRadius: 2, px: 3 }}
disabled={!serverIp}
>
Подключиться
</LoadingButton>
</Stack>
</Stack>
</Dialog>
);
}
@@ -0,0 +1,111 @@
.album-track {
display: grid;
grid-template-columns: 2.4em minmax(0, 1fr) 4.5em 2.6em;
gap: 1em;
align-items: center;
padding: 0.5em 1em;
border-radius: 8px;
cursor: pointer;
transition: background $transition-time-fast;
&-index {
position: relative;
display: grid;
place-items: center;
}
&-number {
font-size: 0.8rem;
color: rgb(255 255 255 / 0.4);
font-variant-numeric: tabular-nums;
}
&-play {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.9);
opacity: 0;
font-size: 1.4rem;
color: #fff;
transition: opacity $transition-time-fast, transform $transition-time-fast;
}
&-info {
display: flex;
flex-direction: column;
gap: 0.15em;
min-width: 0;
}
&-name {
font-size: 0.95rem;
color: rgb(255 255 255 / 0.92);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&-artist {
display: flex;
align-items: center;
gap: 0.5em;
font-size: 0.78rem;
color: rgb(255 255 255 / 0.45);
img {
width: 1em;
height: 1em;
opacity: 0.7;
}
}
&-duration {
text-align: right;
font-size: 0.8rem;
color: rgb(255 255 255 / 0.45);
font-variant-numeric: tabular-nums;
}
&-like {
display: flex;
justify-content: center;
opacity: 0;
transition: opacity $transition-time-fast;
.MuiIconButton-root {
padding: 4px;
}
}
&:hover {
background: rgb(255 255 255 / 0.06);
.album-track-number {
opacity: 0;
}
.album-track-play {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
.album-track-like {
opacity: 1;
}
}
&.is-playing {
background: rgb(245 25 107 / 0.1);
.album-track-name,
.album-track-number,
.album-track-duration {
color: $clr-accent-default;
}
.album-track-like {
opacity: 1;
}
}
}
+120
View File
@@ -0,0 +1,120 @@
import type {
BaseItemDto,
BaseItemDtoQueryResult,
} from "@jellyfin/sdk/lib/generated-client";
import React from "react";
import { useSnackbar } from "notistack";
import lyricsIcon from "../../assets/icons/lyrics.svg";
import { getRuntimeMusic } from "@/utils/date/time";
import {
generateAudioStreamUrl,
playAudio,
useAudioPlayback,
} from "@/utils/store/audioPlayback";
import { useApiInContext } from "@/utils/store/api";
import { useCentralStore } from "@/utils/store/central";
import { setQueue } from "@/utils/store/queue";
import LikeButton from "../buttons/likeButton";
import "./albumMusicTrack.scss";
type AlbumMusicTrackProps = {
track: BaseItemDto;
/**
* This is the index of the track in the musicTracks array (not to be confused with IndexNumber property of the track)
*/
trackIndex: number;
musicTracks: BaseItemDtoQueryResult | null;
};
export default function AlbumMusicTrack(props: AlbumMusicTrackProps) {
const { track, musicTracks, trackIndex } = props;
const [currentPlayingItem] = useAudioPlayback((state) => [state.item]);
const user = useCentralStore((state) => state.currentUser);
const api = useApiInContext((s) => s.api);
const { enqueueSnackbar } = useSnackbar();
const handlePlayback = (
index: number,
item: BaseItemDto,
queue: BaseItemDto[],
) => {
if (!user?.Id || !api) {
console.error("User not logged in");
enqueueSnackbar("Войдите, чтобы слушать музыку", {
variant: "error",
});
return;
}
if (item.Id) {
const url = generateAudioStreamUrl(
item.Id,
user.Id,
api.deviceInfo.id,
api.basePath,
api.accessToken,
);
playAudio(url, item);
setQueue(queue, index);
}
};
const isPlaying = currentPlayingItem?.Id === track.Id;
const artists = track.Artists?.filter(Boolean) ?? [];
return (
<div
className={isPlaying ? "album-track is-playing" : "album-track"}
onClick={() => {
if (musicTracks?.Items) {
handlePlayback(trackIndex, track, musicTracks.Items);
}
}}
onKeyDown={(event) => {
if (event.key === "Enter" || event.key === " ") {
event.preventDefault();
if (musicTracks?.Items) {
handlePlayback(trackIndex, track, musicTracks.Items);
}
}
}}
role="button"
tabIndex={0}
aria-label={track.Name ?? "Трек"}
>
<div className="album-track-index">
<span className="material-symbols-rounded album-track-play">
play_arrow
</span>
<span className="album-track-number">
{track.IndexNumber ?? "–"}
</span>
</div>
<div className="album-track-info">
<span className="album-track-name">{track.Name}</span>
{(artists.length > 0 || track.HasLyrics) && (
<span className="album-track-artist">
{track.HasLyrics && (
<img src={lyricsIcon} alt="Есть текст песни" />
)}
{artists.join(", ")}
</span>
)}
</div>
<span className="album-track-duration">
{getRuntimeMusic(track.RunTimeTicks ?? 0)}
</span>
<div className="album-track-like" onClick={(e) => e.stopPropagation()}>
<LikeButton
itemId={track.Id}
isFavorite={track.UserData?.IsFavorite}
queryKey={["item", "musicTracks"]}
userId={user?.Id}
itemName={track.Name}
/>
</div>
</div>
);
}
@@ -0,0 +1,33 @@
.alpha-selector {
position: sticky;
top: 80px;
right: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 4px;
margin-left: auto;
user-select: none;
z-index: 2;
}
.alpha-letter {
font-size: 12px;
line-height: 1;
padding: 6px 8px;
border-radius: 8px;
background: transparent;
color: rgba(255,255,255,0.7);
border: none;
cursor: pointer;
}
.alpha-letter.active {
background: rgba(255,255,255,0.12);
color: #fff;
}
.alpha-letter:hover {
background: rgba(255,255,255,0.08);
}
+51
View File
@@ -0,0 +1,51 @@
import { getRouteApi } from "@tanstack/react-router";
import React, { useMemo } from "react";
import { useShallow } from "zustand/shallow";
import { useLibraryStateStore } from "@/utils/store/libraryState";
import "./alphaSelector.scss";
const libraryRoute = getRouteApi("/_api/library/$id");
export const AlphaSelector = React.memo(function AlphaSelector() {
const { id: currentLibraryId } = libraryRoute.useParams();
const { nameStartsWith } = useLibraryStateStore(
useShallow((s) => ({
nameStartsWith: s.libraries[currentLibraryId || ""]?.nameStartsWith,
})),
);
const updateLibrary = useLibraryStateStore((s) => s.updateLibrary);
const letters = useMemo(() => {
const arr = Array.from({ length: 26 }, (_, i) =>
String.fromCharCode(65 + i),
);
return ["Все", ...arr];
}, []);
const handleSelect = (letter: string) => {
const value = letter === "Все" ? undefined : letter;
if (currentLibraryId)
updateLibrary(currentLibraryId, { nameStartsWith: value });
};
return (
<div className="alpha-selector">
{letters.map((l) => {
const active = (nameStartsWith || "Все") === l;
return (
<button
key={l}
className={active ? "alpha-letter active" : "alpha-letter"}
onClick={() => handleSelect(l)}
aria-label={`Фильтр по букве ${l}`}
type="button"
>
{l}
</button>
);
})}
</div>
);
});
export default AlphaSelector;
-113
View File
@@ -1,113 +0,0 @@
.appBar {
transition: background-color $transition-time-fast,
backdrop-filter $transition-time-fast,
box-shadow $transition-time-default !important;
padding: 0.8em ($page-margin - 1.7em);
z-index: 999 !important;
.flex {
transition: $transition-time-fast;
border-radius: 1000px;
}
&.elevated{
.flex {
padding: 0.5em;
background: rgb(0 0 0 / 0.4);
backdrop-filter: blur(40px);
box-shadow: 0 0 25px rgb(0 0 0 / 0.45);
}
}
&-avatar {
background: rgb(255 255 255 / 0.1) !important;
&-icon {
color: white;
}
}
&-text {
opacity: 0.7;
transition: opacity $transition-time-fast;
position: relative;
color: white;
text-decoration: none;
&::after {
content: "";
width: 100%;
height: 1.2px;
background: white;
opacity: 0.7;
position: absolute;
bottom: 4.6px;
left: 0;
transform: scaleX(0);
transition: transform $transition-time-fast,
background $transition-time-fast,
opacity $transition-time-fast;
}
&:hover {
opacity: 0.8;
&::after {
transform: scaleX(0.25);
opacity: 0.8;
}
}
&.active {
opacity: 1;
color: $clr-accent-default;
&::after {
transform: scaleX(0.5);
opacity: 1;
background: $clr-accent-default;
}
}
}
}
.library-drawer{
width: 20em;
margin: 1.4em;
height: calc(100vh - 2.8em) !important;
border-radius: 20px;
overflow-x: hidden;
overflow-y: auto;
.library-drawer-item{
position: relative;
overflow: hidden;
border-radius: 1000px;
> div::before{
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: transparent;
transition: $transition-time-default;
z-index: -1;
border-radius: 100px;
}
}
.active.library-drawer-item {
.material-symbols-rounded{
--fill: 1;
}
&> div::before {
background: $clr-accent-default;
}
}
// Magic scrollbar
&::-webkit-scrollbar {
&-thumb {
height: 150px;
max-height: 33%;
}
&-track {
margin-top: 15px;
margin-bottom: 15px;
background: transparent !important;
}
}
}
.appLoading {
opacity: 0;
}
-345
View File
@@ -1,345 +0,0 @@
import React, { type ReactNode } from "react";
import { useEffect, useState } from "react";
import MuiAppBar from "@mui/material/AppBar";
import Avatar from "@mui/material/Avatar";
import IconButton from "@mui/material/IconButton";
import ListItemIcon from "@mui/material/ListItemIcon";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import useScrollTrigger from "@mui/material/useScrollTrigger";
import { Link, useLocation, useNavigate } from "@tanstack/react-router";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { delUser } from "@/utils/storage/user";
import "./appBar.scss";
import { getTypeIcon } from "../utils/iconsCollection";
import { useApiInContext } from "@/utils/store/api";
import {
setSettingsDialogOpen,
setSettingsTabValue,
} from "@/utils/store/settings";
import {
Divider,
Drawer,
List,
ListItem,
ListItemButton,
ListItemText,
} from "@mui/material";
import BackButton from "../buttons/backButton";
interface ListItemLinkProps {
icon?: ReactNode;
primary: string;
to: string;
}
function ListItemLink(props: ListItemLinkProps) {
const { icon, primary, to } = props;
return (
<li>
<ListItem
component={Link}
activeClassName="active"
className="library-drawer-item"
to={to}
>
<ListItemButton
style={{
borderRadius: "100px",
gap: "0.85em",
color: "white",
textDecoration: "none",
}}
>
<div className="material-symbols-rounded">{icon}</div>
<ListItemText primary={primary} />
</ListItemButton>
</ListItem>
</li>
);
}
export const AppBar = () => {
const api = useApiInContext((s) => s.api);
const navigate = useNavigate();
const [display, setDisplay] = useState(false);
const location = useLocation();
const user = useQuery({
queryKey: ["user"],
queryFn: async () => {
const usr = await getUserApi(api).getCurrentUser();
return usr.data;
},
enabled: display && Boolean(api?.accessToken),
throwOnError: true,
});
const libraries = useQuery({
queryKey: ["libraries"],
queryFn: async () => {
const libs = await getUserViewsApi(api).getUserViews({
userId: user.data?.Id,
});
return libs.data;
},
enabled: !!user.data && !!api.accessToken,
networkMode: "always",
});
const trigger = useScrollTrigger({
disableHysteresis: true,
threshold: 20,
});
const [anchorEl, setAnchorEl] = useState(null);
const openMenu = Boolean(anchorEl);
const handleMenuOpen = (event) => {
setAnchorEl(event.currentTarget);
};
const handleMenuClose = () => {
setAnchorEl(null);
};
const queryClient = useQueryClient();
const handleLogout = async () => {
console.log("Logging out user...");
await api.logout();
delUser();
sessionStorage.removeItem("accessToken");
queryClient.clear();
setAnchorEl(null);
navigate({ to: "/login" });
};
useEffect(() => {
if (
location.pathname.includes("login") ||
location.pathname.includes("setup") ||
location.pathname.includes("server") ||
location.pathname === "/player" ||
location.pathname.includes("error") ||
location.pathname === "/"
) {
setDisplay(false);
} else {
setDisplay(true);
}
}, [location]);
const [showDrawer, setShowDrawer] = useState(false);
if (!display) {
return <></>;
}
if (display) {
return (
<>
<MuiAppBar
style={{
backgroundColor: "transparent",
paddingRight: "0 !important",
}}
className={
trigger
? "appBar flex flex-row flex-justify-spaced-between elevated"
: "appBar flex flex-row flex-justify-spaced-between"
}
elevation={0}
color="transparent"
>
<div className="flex flex-row" style={{ gap: "0.6em" }}>
<IconButton onClick={() => setShowDrawer(true)}>
<div className="material-symbols-rounded">menu</div>
</IconButton>
<BackButton />
<IconButton onClick={() => navigate({ to: "/home" })}>
<div
className={
location.pathname === "/home"
? "material-symbols-rounded fill"
: "material-symbols-rounded"
}
>
home
</div>
</IconButton>
</div>
<div className="flex flex-row" style={{ gap: "0.6em" }}>
<IconButton onClick={() => navigate({ to: "/search" })}>
<div className="material-symbols-rounded">search</div>
</IconButton>
<IconButton onClick={() => navigate({ to: "/favorite" })}>
<div className="material-symbols-rounded">favorite</div>
</IconButton>
<IconButton sx={{ p: 0 }} onClick={handleMenuOpen}>
{user.isSuccess &&
(user.data.PrimaryImageTag === undefined ? (
<Avatar
className="appBar-avatar"
alt={user.data.Name ?? "image"}
>
<span className="material-symbols-rounded appBar-avatar-icon">
account_circle
</span>
</Avatar>
) : (
<Avatar
className="appBar-avatar"
src={`${api.basePath}/Users/${user.data.Id}/Images/Primary`}
alt={user.data.Name ?? "image"}
>
<span className="material-symbols-rounded appBar-avatar-icon">
account_circle
</span>
</Avatar>
))}
</IconButton>
<Menu
anchorEl={anchorEl}
open={openMenu}
onClose={handleMenuClose}
sx={{ mt: 2 }}
disableScrollLock
>
<MenuItem
onClick={() => {
handleLogout();
handleMenuClose();
}}
>
<ListItemIcon>
<div className="material-symbols-rounded">logout</div>
</ListItemIcon>
Logout
</MenuItem>
<Divider />
<MenuItem
onClick={() => {
setSettingsDialogOpen(true);
setSettingsTabValue(1);
handleMenuClose();
}}
>
<ListItemIcon>
<div className="material-symbols-rounded">settings</div>
</ListItemIcon>
Settings
</MenuItem>
<MenuItem
onClick={() => {
setSettingsDialogOpen(true);
setSettingsTabValue(10);
handleMenuClose();
}}
>
<ListItemIcon>
<div className="material-symbols-rounded">info</div>
</ListItemIcon>
About
</MenuItem>
</Menu>
</div>
</MuiAppBar>
<Drawer
open={showDrawer}
PaperProps={{
className: "glass library-drawer",
elevation: 6,
}}
className="library-drawer"
onClose={() => setShowDrawer(false)}
>
<List>
<ListItem>
<ListItemButton
onClick={() => setShowDrawer(false)}
style={{
borderRadius: "100px",
gap: "0.85em",
}}
>
<span className="material-symbols-rounded">menu_open</span>
Close
</ListItemButton>
</ListItem>
</List>
<Divider variant="middle" />
<List>
<ListItemLink to="/home" icon="home" primary="Home" />
{libraries.isSuccess &&
libraries.data.Items?.map((library, index) => (
<ListItemLink
key={library.Id}
to={`/library/${library.Id}`}
icon={getTypeIcon(library.CollectionType)}
primary={library.Name}
/>
))}
</List>
<Divider variant="middle" />
<List>
<ListItem>
<ListItemButton
onClick={() => {
setSettingsDialogOpen(true);
setSettingsTabValue(1);
}}
style={{
borderRadius: "100px",
gap: "0.85em",
}}
>
<span className="material-symbols-rounded">settings</span>
Settings
</ListItemButton>
</ListItem>
<ListItem>
<ListItemButton
onClick={() => {
setSettingsDialogOpen(true);
setSettingsTabValue(2);
}}
style={{
borderRadius: "100px",
gap: "0.85em",
}}
>
<span className="material-symbols-rounded">dns</span>
Change Server
</ListItemButton>
</ListItem>
<ListItem>
<ListItemButton
onClick={() => {
setSettingsDialogOpen(true);
setSettingsTabValue(10);
}}
style={{
borderRadius: "100px",
gap: "0.85em",
}}
>
<span className="material-symbols-rounded">info</span>
About
</ListItemButton>
</ListItem>
</List>
</Drawer>
</>
);
}
};
-29
View File
@@ -1,29 +0,0 @@
import AppBar from "@mui/material/AppBar";
import IconButton from "@mui/material/IconButton";
import Toolbar from "@mui/material/Toolbar";
import { useRouter } from "@tanstack/react-router";
export const AppBarBackOnly = () => {
const { history } = useRouter();
const handleBack = () => {
history.go(-1);
};
return (
<AppBar elevation={0} color="transparent" position="fixed">
<Toolbar>
<IconButton
size="large"
edge="start"
color="white"
aria-label="back"
onClick={handleBack}
sx={{ mr: 2 }}
>
<span className="material-symbols-rounded">arrow_back</span>
</IconButton>
</Toolbar>
</AppBar>
);
};
Loaded 100 of 419 files, more files were not shown because too many files have changed in this diff. Show more