Allow unblocking files
This commit is contained in:
@@ -22,6 +22,7 @@ let block_form = {
|
|||||||
"gore",
|
"gore",
|
||||||
"malware",
|
"malware",
|
||||||
"doxing",
|
"doxing",
|
||||||
|
"none",
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
name: "reporter",
|
name: "reporter",
|
||||||
|
@@ -63,11 +63,11 @@ let embed_hotlink = () => {
|
|||||||
|
|
||||||
let t = file_type(file)
|
let t = file_type(file)
|
||||||
if (t === "video") {
|
if (t === "video") {
|
||||||
embed_html = `<video controls playsinline autoplay style="max-width: 100%; max-height: 100%;">`+
|
embed_html = `<video controls playsinline style="max-width: 100%; max-height: 100%;">`+
|
||||||
`<source src="${domain_url()}${file.get_href}" type="${file.mime_type}" />`+
|
`<source src="${domain_url()}${file.get_href}" type="${file.mime_type}" />`+
|
||||||
`</video>`
|
`</video>`
|
||||||
} else if (t === "audio") {
|
} else if (t === "audio") {
|
||||||
embed_html = `<audio controls autoplay style="width: 100%;">`+
|
embed_html = `<audio controls style="width: 100%;">`+
|
||||||
`<source src="${domain_url()}${file.get_href}" type="${file.mime_type}" />`+
|
`<source src="${domain_url()}${file.get_href}" type="${file.mime_type}" />`+
|
||||||
`</audio>`
|
`</audio>`
|
||||||
} else if (t === "image") {
|
} else if (t === "image") {
|
||||||
|
@@ -11,17 +11,16 @@ $: frac = used / total
|
|||||||
<ProgressBar total={total} used={used}></ProgressBar>
|
<ProgressBar total={total} used={used}></ProgressBar>
|
||||||
|
|
||||||
{#if frac > 0.99}
|
{#if frac > 0.99}
|
||||||
<div class="highlight_red">
|
<div class="highlight_yellow">
|
||||||
You have used all of your data cap. People can still download your
|
You have used all of your data cap. People can still download your
|
||||||
files, but not directly from the API anymore. The file viewer shows
|
files, but advertisements are shown and hotlinking is disabled.
|
||||||
ads on your files and download speeds are limited.
|
|
||||||
<br/>
|
<br/>
|
||||||
<a class="button button_highlight" href="https://www.patreon.com/join/pixeldrain">
|
<a class="button button_highlight" href="https://www.patreon.com/join/pixeldrain">
|
||||||
Upgrade options
|
Upgrade options
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{:else if frac > 0.8}
|
{:else if frac > 0.8}
|
||||||
<div class="highlight_yellow">
|
<div class="highlight_blue">
|
||||||
You have used {(frac*100).toFixed(0)}% of your data cap. If your
|
You have used {(frac*100).toFixed(0)}% of your data cap. If your
|
||||||
data runs out people won't be able to download your files directly
|
data runs out people won't be able to download your files directly
|
||||||
from the API anymore, ads will be shown on the file viewer and
|
from the API anymore, ads will be shown on the file viewer and
|
||||||
|
Reference in New Issue
Block a user