mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
Reverting to older singlefile container to keep archive screenshot ratio. Using FileGroup.url on ArchivePage.
This commit is contained in:
parent
9ea2dadde5
commit
73cb142ae1
11 changed files with 56 additions and 28 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue