Feat: vite & upgraded dependencies (#100)

* On every route change, update local variables from query params

* ResultSection is keyed to query to force re-render

* Resolved lint warnings

* replace webpack w/ vite

* update all imports with alias @ and scss

* vite environment variables, also typed

* upgraded eslint, defined new rules & added ignore comments

* resolved linting issues

* moved index.html to project root

* updated dockerfile w/ build stage before runtime image definition

* sign drone config
This commit is contained in:
2026-02-23 20:53:19 +01:00
committed by GitHub
parent fb3b4c8f7d
commit 8e586811ec
74 changed files with 3007 additions and 10582 deletions

View File

@@ -1,4 +1,3 @@
/* eslint-disable no-use-before-define */
import { MediaTypes } from "./IList";
export interface IAutocompleteResult {

View File

@@ -1,5 +1,3 @@
/* eslint-disable no-use-before-define */
export enum GraphTypes {
Plays = "plays",
Duration = "duration"
@@ -12,12 +10,12 @@ export enum GraphValueTypes {
export interface IGraphDataset {
name: string;
data: Array<number>;
data: number[];
}
export interface IGraphData {
labels: Array<string>;
series: Array<IGraphDataset>;
labels: string[];
series: IGraphDataset[];
}
export interface IGraphResponse {

View File

@@ -67,7 +67,7 @@ export interface IMovie {
backdrop: string;
release_date: string | Date;
rating: number;
genres: Array<MovieGenres>;
genres: MovieGenres[];
production_status: MovieProductionStatus;
tagline: string;
runtime: number;
@@ -88,9 +88,9 @@ export interface IShow {
seasons?: number;
episodes?: number;
popularity?: number;
genres?: Array<ShowGenres>;
genres?: ShowGenres[];
production_status?: string;
runtime?: Array<number>;
runtime?: number[];
exists_in_plex?: boolean;
type: MediaTypes.Show;
}
@@ -135,19 +135,19 @@ export interface ICrew {
}
export interface IMediaCredits {
cast: Array<ICast>;
crew: Array<ICrew>;
cast: ICast[];
crew: ICrew[];
id: number;
}
export interface IPersonCredits {
cast: Array<IMovie | IShow>;
crew: Array<ICrew>;
cast: (IMovie | IShow)[];
crew: ICrew[];
id: number;
type?: string;
}
export type ListResults = Array<IMovie | IShow | IPerson | IRequest>;
export type ListResults = (IMovie | IShow | IPerson | IRequest)[];
export interface IList {
results: ListResults;

View File

@@ -1,7 +1,7 @@
export default interface INavigationIcon {
title: string;
route: string;
icon: any; // eslint-disable-line @typescript-eslint/no-explicit-any
icon: any;
requiresAuth?: boolean;
useStroke?: boolean;
}

View File

@@ -1,6 +1,6 @@
import type ITorrent from "./ITorrent";
export default interface IStateTorrent {
results: Array<ITorrent>;
results: ITorrent[];
resultCount: number | null;
}

View File

@@ -7,5 +7,5 @@ export default interface ITorrent {
seed: string;
leech: string;
url: string | null;
release_type: Array<string>;
release_type: string[];
}