Shared file bug fixes, redesigned pin system, new info button
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m15s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m15s
This commit is contained in:
parent
71ba029fbc
commit
2bcfca983c
7 changed files with 511 additions and 276 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Reference in a new issue