Add support to upload custom file

This commit is contained in:
2023-12-15 19:53:36 +08:00
parent efcb276c45
commit cf38e9e981
12 changed files with 252 additions and 43 deletions

View File

@@ -7,8 +7,8 @@ import { get_host } from "./utils.ts";
const whole_maps = new Map<string, I18NMap>();
const LANGUAGES = ["zh-cn"];
type MODULE = "common" | "settings" | "task" | "user";
const MODULES: MODULE[] = ["common", "settings", "task", "user"];
type MODULE = "common" | "settings" | "task" | "upload" | "user";
const MODULES: MODULE[] = ["common", "settings", "task", "upload", "user"];
export async function load_translation(signal?: AbortSignal) {
let base = import.meta.resolve("../translation").slice(7);

View File

@@ -1,6 +1,7 @@
export type StatusData = {
ffmpeg_api_enabled: boolean;
ffmpeg_binary_enabled: boolean;
ffprobe_binary_enabled: boolean;
meilisearch_enabled: boolean;
meilisearch?: {
host: string;