Reverting to older singlefile container to keep archive screenshot ratio. Using FileGroup.url on ArchivePage.

This commit is contained in:
Roland 2023-10-31 10:20:45 -06:00
parent 9ea2dadde5
commit 73cb142ae1
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
11 changed files with 56 additions and 28 deletions

View file

@ -149,9 +149,7 @@ function ArchivePage() {
if (domain) {
const domainUrl = `/archive?domain=${domain}`;
domainHeader = <Header as='h4'>
<CardLink to={domainUrl}>
{domain}
</CardLink>
<a href={domainUrl}>{domain}</a>
</Header>;
}
@ -181,7 +179,7 @@ function ArchivePage() {
{humanFileSize(size)}
<Header as={'h3'}>URL</Header>
<p>{data.url ? <a href={data.url}>{data.url}</a> : 'N/A'}</p>
<p>{archiveFile.url ? <a href={archiveFile.url}>{archiveFile.url}</a> : 'N/A'}</p>
<Header as={'h3'}>Modified Date</Header>
<p>{modifiedDatetimeString}</p>
@ -310,7 +308,7 @@ export function ArchiveCard({file}) {
<Button icon='file alternate' content='Details'
labelPosition='left'/>
</Link>
<Button icon='external' href={data.url} target='_blank' rel='noopener noreferrer'/>
<Button icon='external' href={file.url} target='_blank' rel='noopener noreferrer'/>
</CardDescription>
</CardContent>
</Card>

View file

@ -277,7 +277,7 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
export default VideoPage;
const chapterRegex = new RegExp('^(\\(?(?:((\\d?\\d):)?(?:(\\d?\\d):(\\d\\d)))\\)?)\\s+(.*)$', 'i');
const chapterRegex = new RegExp('^(\\(?(?:((\\d?\\d):)?(?:(\\d?\\d):(\\d\\d)))\\)?)\.?\\s+(.*)$', 'i');
function formatVideoDescription(description, setVideoTime) {
// Convert timestamps to links which change the video's playback location. Change hashtags to search links.