ThaUnknown / miru

Bittorrent streaming software for cats. Stream anime torrents, real-time with no waiting for downloads.
https://miru.watch
GNU General Public License v3.0
2.13k stars 123 forks source link

[Feature Request]: use a router for navigation #470

Open lv01-GreyCat opened 5 days ago

lv01-GreyCat commented 5 days ago

Preflight checklist

Problem Description

When I'm browsing different pages on Miru; like 'New Releases', 'Popular This Season' or a search query. If I click on an episode, the previous context will be completely lost. I will have to type back the search term and scroll to where I was again for each new anime/episode I want to check out.

Proposed Solution

I am not certain what would be the best design for this but maybe having a back button in the video player (+ escape hotkey, like how you can escape the 'Now Playing' page).
I understand this might be difficult depending on how everything is handled. Hopefully my description has been clear enough.

ThaUnknown commented 5 days ago

yeah, the go-to solution for this is called a router which manages the paths you navigate to, issue is with the framework I'm using I cannot use a good router because I need to use a very specific compiler to get the torrent tech behind Miru working correctly

lv01-GreyCat commented 5 days ago

It does not sound like an easy fix, that's a shame.
When you say framework, are you talking about Svelte ?
What is it that makes the compiler not allow the usage of a good router if you don't mind me asking ?

ThaUnknown commented 4 days ago

if you're curious I currently use Svelte with Webpack[bundler], I'm get to find a good router for normal Svelte, I'd like to use SvelteKit and it's router because it's actually fucking goated, but its Vite[bundler] only

the reason I need webpack is because of module aliasing and resolution, I need a bundler which can build multiple outputs in multiple different ways, for example:

all in a single config in a single build. Vite can't do this

if you find a good router that can compare to sveltekit link it and I'll look at it