mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 14:10:20 +00:00
feat: Add singlefile to link_details
This commit is contained in:
parent
3d22da39fe
commit
42b0c80465
3 changed files with 14 additions and 1 deletions
|
@ -1,6 +1,5 @@
|
||||||
__package__ = 'archivebox.extractors'
|
__package__ = 'archivebox.extractors'
|
||||||
|
|
||||||
import os
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
|
@ -406,6 +406,7 @@ class Link:
|
||||||
'google_favicon_path': 'https://www.google.com/s2/favicons?domain={}'.format(self.domain),
|
'google_favicon_path': 'https://www.google.com/s2/favicons?domain={}'.format(self.domain),
|
||||||
'wget_path': wget_output_path(self),
|
'wget_path': wget_output_path(self),
|
||||||
'warc_path': 'warc',
|
'warc_path': 'warc',
|
||||||
|
'singlefile_path': 'single-file.html',
|
||||||
'pdf_path': 'output.pdf',
|
'pdf_path': 'output.pdf',
|
||||||
'screenshot_path': 'screenshot.png',
|
'screenshot_path': 'screenshot.png',
|
||||||
'dom_path': 'output.html',
|
'dom_path': 'output.html',
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
.card {
|
.card {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 2px 3px 14px 0px rgba(0,0,0,0.02);
|
box-shadow: 2px 3px 14px 0px rgba(0,0,0,0.02);
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
.card h4 {
|
.card h4 {
|
||||||
font-size: 1.4vw;
|
font-size: 1.4vw;
|
||||||
|
@ -335,6 +336,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-lg-2">
|
||||||
|
<div class="card">
|
||||||
|
<iframe class="card-img-top" src="$singlefile_path" sandbox="allow-same-origin allow-scripts allow-forms" scrolling="no"></iframe>
|
||||||
|
<div class="card-body">
|
||||||
|
<a href="$singlefile_path" style="float:right" title="Open in new tab..." target="_blank" rel="noopener">
|
||||||
|
<img src="../../static/external.png" class="external"/>
|
||||||
|
</a>
|
||||||
|
<a href="$singlefile_path" target="preview"><h4 class="card-title">SingleFile</h4></a>
|
||||||
|
<p class="card-text">archive/single-file.html</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-lg-2">
|
<div class="col-lg-2">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<iframe class="card-img-top pdf-frame" src="$pdf_path" scrolling="no"></iframe>
|
<iframe class="card-img-top pdf-frame" src="$pdf_path" scrolling="no"></iframe>
|
||||||
|
|
Loading…
Reference in a new issue