Shared file bug fixes, redesigned pin system, new info button
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m15s

This commit is contained in:
Elijah 2026-05-22 18:59:26 -07:00
parent 71ba029fbc
commit 2bcfca983c
7 changed files with 511 additions and 276 deletions

View file

@ -151,6 +151,11 @@ class ApiClient {
return res.json();
}
async getExtendedFileInfo(path: string) {
const res = await this.request(`/api/files/info/${encodeURIComponent(path)}`);
return res.json();
}
async createFolder(path: string) {
const res = await this.request('/api/files/mkdir', {
method: 'POST',
@ -331,7 +336,9 @@ class ApiClient {
method: 'POST',
body: { path, password, expires_in: expiresIn, max_downloads: maxDownloads },
});
return res.json();
const data = await res.json();
if (!res.ok) throw new Error(data.error || 'Failed to create share');
return data;
}
async listShares() {