mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -05:00
Adding Upload button to the FileBrowser. Adding ErrorBoundaries to prevent entire app from crashing.
This commit is contained in:
parent
166d6a47c3
commit
5c8f164c1a
7 changed files with 508 additions and 29 deletions
|
|
@ -59,7 +59,15 @@ import {InputForm, useForm} from "../hooks/useForm";
|
|||
import {CollectionTagModal} from "./collections/CollectionTagModal";
|
||||
import {Link, Route, Routes, useLocation, useNavigate, useParams} from "react-router";
|
||||
import Message from "semantic-ui-react/dist/commonjs/collections/Message";
|
||||
import {useArchive, useDomain, useDomains, useOneQuery, useSearchArchives, useSearchDomain, useSearchOrder} from "../hooks/customHooks";
|
||||
import {
|
||||
useArchive,
|
||||
useDomain,
|
||||
useDomains,
|
||||
useOneQuery,
|
||||
useSearchArchives,
|
||||
useSearchDomain,
|
||||
useSearchOrder
|
||||
} from "../hooks/customHooks";
|
||||
import {FileCards, FileRowTagIcon, FilesView} from "./Files";
|
||||
import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
|
||||
import _ from "lodash";
|
||||
|
|
@ -218,9 +226,10 @@ function ArchivePage() {
|
|||
await fetchArchive();
|
||||
}
|
||||
|
||||
const archivedDatetimeString = isoDatetimeToAgoPopup(archiveFile.download_datetime, true);
|
||||
const publishedDatetimeString = archiveFile.published_datetime ? isoDatetimeToAgoPopup(archiveFile.published_datetime, true)
|
||||
: 'unknown';
|
||||
const downloadDatetimeString = archiveFile.download_datetime ?
|
||||
isoDatetimeToAgoPopup(archiveFile.download_datetime, true) : 'unknown';
|
||||
const publishedDatetimeString = archiveFile.published_datetime ?
|
||||
isoDatetimeToAgoPopup(archiveFile.published_datetime, true) : 'unknown';
|
||||
const modifiedDatetimeString = archiveFile.published_modified_datetime
|
||||
? isoDatetimeToAgoPopup(archiveFile.published_modified_datetime, true)
|
||||
: 'unknown';
|
||||
|
|
@ -295,7 +304,7 @@ function ArchivePage() {
|
|||
<Header as='h4'>Published: {publishedDatetimeString}</Header>
|
||||
</GridColumn>
|
||||
<GridColumn>
|
||||
<Header as='h4'>Archived: {archivedDatetimeString}</Header>
|
||||
<Header as='h4'>Downloaded: {downloadDatetimeString}</Header>
|
||||
</GridColumn>
|
||||
</GridRow>
|
||||
</Grid>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue