diff --git a/frontend/src/network/models.ts b/frontend/src/network/models.ts index 4c4575e..155a236 100644 --- a/frontend/src/network/models.ts +++ b/frontend/src/network/models.ts @@ -105,6 +105,7 @@ export interface RFile { user: User; resource?: Resource; hash?: string; + storage_name?: string; } export interface UploadingFile { diff --git a/frontend/src/pages/home_page.tsx b/frontend/src/pages/home_page.tsx index 8c54c0e..10d27a5 100644 --- a/frontend/src/pages/home_page.tsx +++ b/frontend/src/pages/home_page.tsx @@ -85,7 +85,7 @@ function HomeHeader() { if (pinned && stats) { return; } - + const prefetchData = app.getPreFetchData(); if (prefetchData && prefetchData.background) { navigator.setBackground( diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index c05953c..5a9863c 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -29,7 +29,9 @@ import { MdOutlineAdd, MdOutlineArchive, MdOutlineArticle, + MdOutlineCloud, MdOutlineComment, + MdOutlineContentCopy, MdOutlineDataset, MdOutlineDelete, MdOutlineDownload, @@ -730,14 +732,48 @@ function FileTile({ file }: { file: RFile }) { {file.is_redirect ? t("Redirect") : fileSizeToString(file.size)} {file.hash && ( -