mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 18:35:58 +02:00
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:
parent
2fcca6686e
commit
c2f40e667f
12 changed files with 790 additions and 362 deletions
|
@ -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(
|
||||
|
|
|
@ -200,8 +200,6 @@ export async function editUser(
|
|||
statusCode: number;
|
||||
} | undefined;
|
||||
|
||||
console.error(data)
|
||||
|
||||
if (data) return data.error
|
||||
|
||||
return "Something went wrong..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue