mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-19 01:03:56 +00:00
feat: download page wip
This commit is contained in:
@@ -120,13 +120,15 @@ export class API<T> implements Readable<T> {
|
||||
}
|
||||
|
||||
// API Endpoints
|
||||
import type { Patch, Repository } from '../types';
|
||||
import type { Patch, Repository, Tool } from '../types';
|
||||
import { dev_log } from "$lib/utils";
|
||||
|
||||
export type ContribData = { repositories: Repository[] };
|
||||
export type PatchesData = { patches: Patch[]; packages: string[] };
|
||||
export type ToolsData = { tools: Tool[] };
|
||||
|
||||
export const contributors = new API<ContribData>("contributors", undefined, { repositories: [] });
|
||||
export const tools = new API<ToolsData>("tools", undefined, { tools: [] } )
|
||||
|
||||
export const patches = new API<PatchesData>("patches", patches => {
|
||||
let packages: string[] = [];
|
||||
|
||||
@@ -32,3 +32,13 @@ export interface PatchOption {
|
||||
required: boolean;
|
||||
choices: string[];
|
||||
}
|
||||
|
||||
export interface Tool {
|
||||
repository: string
|
||||
version: string
|
||||
timestamp: string
|
||||
name: string
|
||||
size?: string
|
||||
browser_download_url: string
|
||||
content_type: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user