fix: Fixed romm login, now uses token

feat: Moved romm to internal plugin
fix: Made focusing and navigation more reliable
fix: Loading errors on first time launch
This commit is contained in:
Simeon Radivoev 2026-03-28 17:32:51 +02:00
parent 7c10f4e4c2
commit 816d50ae4d
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
81 changed files with 1659 additions and 1097 deletions

View file

@ -5,14 +5,6 @@ import fs from 'node:fs/promises';
import { createWriteStream } from "node:fs";
import { config, jar } from "../api/app";
export interface FileEntry
{
url: URL;
file_path: string;
file_name: string;
size?: number;
}
export interface ProgressStats
{
progress: number;
@ -20,7 +12,7 @@ export interface ProgressStats
interface TmpDownloadMetadata
{
files: FileEntry[];
files: DownloadFileEntry[];
}
/**
@ -29,11 +21,11 @@ interface TmpDownloadMetadata
*/
export class Downloader
{
files: FileEntry[];
files: DownloadFileEntry[];
headers?: Record<string, string>;
onProgress?: (stats: ProgressStats) => void;
signal?: AbortSignal;
activeFile?: FileEntry;
activeFile?: DownloadFileEntry;
downloadPath: string;
id: string;
tmpPath: string;
@ -41,7 +33,7 @@ export class Downloader
constructor(
id: string,
files: FileEntry[],
files: DownloadFileEntry[],
downloadPath: string, init?: {
headers?: Record<string, string>,
onProgress?: (stats: ProgressStats) => void;