finish fullscreen file view, added app settings, moved hooks in fileDisplay to avoid lesser/more hooks error, changed text upload mimetypes to x-zipline-...

This commit is contained in:
Stef-00012 2025-02-04 02:39:18 +01:00
parent 2fcca6686e
commit c2f40e667f
No known key found for this signature in database
GPG key ID: 28BE9A9E4EF0E6BF
12 changed files with 790 additions and 362 deletions

View file

@ -2,6 +2,7 @@ import type {
APIFile,
APIFiles,
APISettings,
APITag,
APIUploadFile,
} from "@/types/zipline";
import * as FileSystem from "expo-file-system";
@ -158,12 +159,13 @@ export async function updateFileTags(
}
}
interface EditFileOptions {
export interface EditFileOptions {
originalName?: string;
maxViews?: number;
password?: string;
maxViews?: number | null;
password?: string | null;
type?: string;
favorite?: boolean;
tags?: Array<APITag["id"]>
}
// PATCH /api/user/files/[id]
export async function editFile(

View file

@ -200,8 +200,6 @@ export async function editUser(
statusCode: number;
} | undefined;
console.error(data)
if (data) return data.error
return "Something went wrong..."