feat: renders movie download options on page

This commit is contained in:
2025-04-21 16:34:25 -05:00
parent fb4651c925
commit 7f29d737c1
13 changed files with 220 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
import { Controller } from '@hotwired/stimulus';
/*
* The following line makes this controller "lazy": it won't be downloaded until needed
* See https://github.com/symfony/stimulus-bridge#lazy-controllers
*/
/* stimulusFetch: 'lazy' */
export default class extends Controller {
static values = {
imdbId: String
};
connect() {
fetch(`/torrentio/movies/${this.imdbIdValue}`)
.then(res => res.text())
.then(response => {
this.element.innerHTML = response;
});
}
}