Some fixes

This commit is contained in:
2022-02-28 21:52:12 +01:00
parent f8d89eb8e6
commit 3174439d78
5 changed files with 27 additions and 19 deletions

View File

@@ -22,9 +22,9 @@ export const set_file = async file => {
} else if (file.abuse_type !== "") {
viewer_type = "abuse"
} else if (
file.availability !== "file_rate_limited_captcha_required" ||
file.availability !== "ip_download_limited_captcha_required" ||
file.availability !== "ip_transfer_limited_captcha_required"
file.availability === "file_rate_limited_captcha_required" ||
file.availability === "ip_download_limited_captcha_required" ||
file.availability === "ip_transfer_limited_captcha_required"
) {
viewer_type = "rate_limit"
} else {

View File

@@ -55,11 +55,10 @@ onMount(async () => {
Download limit reached
</h1>
<p>
You have reached your download limit for today. People without a
pixeldrain account are limited to downloading
{limits.download_limit} files or
{formatDataVolume(limits.transfer_limit, 3)} per day. This limit is
counted per IP address, so if you're on a shared network it's
You have reached your download limit for today. Without a pixeldrain
account you are limited to downloading {limits.download_limit} files
or {formatDataVolume(limits.transfer_limit, 3)} per day. This limit
is counted per IP address, so if you're on a shared network it's
possible that others have also contributed to this limit.
</p>
<p>
@@ -90,11 +89,11 @@ onMount(async () => {
<div class="file_description">
Name: {file.name}<br/>
Type: {file.mime_type}<br/>
<button class="button_highlight" on:click={() => {dispatch("download")}}>
<i class="icon">save</i> Download
<button on:click={() => {dispatch("download")}}>
<i class="icon">download</i> Download
</button>
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5291427&cadence=12" target="_blank" class="button button_highlight">
<i class="icon">upgrade</i> Support Pixeldrain on Patreon
<i class="icon">bolt</i> Support Pixeldrain on Patreon
</a>
</div>
</TextBlock>

View File

@@ -10,7 +10,7 @@ export let center = false
<style>
.block {
display: inline-block;
text-align: left;
text-align: initial;
padding-left: 8px;
vertical-align: middle;

View File

@@ -79,16 +79,16 @@ let download = () => { dispatch("download", {}) }
<img src={file.icon_href} class="video_icon" alt="Video icon">
<TextBlock width="600px">
The online video player on pixeldrain is only available when the
uploader of the video has a Pro account, or if you have a Pro
account. You can still download the video and watch it locally on
your computer.
uploader of the file you is a Patreon supporter, or if you are a
Patreon supporter. You can still download the video and watch it
locally on your computer.
<br/>
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5291427&cadence=12" class="button button_highlight">
<i class="icon">upgrade</i> Upgrade to Pro
</a>
<button on:click={download}>
<i class="icon">download</i> Download
</button>
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5291427&cadence=12" class="button button_highlight">
<i class="icon">bolt</i> Support Pixeldrain on Patreon
</a>
</TextBlock>
<br/><br/>
<LargeFileMessage file={file}></LargeFileMessage>

View File

@@ -1,5 +1,5 @@
<script>
export let style;
export let style;
</script>
<svg style={style} enable-background="new 0 0 283.46 283.46" version="1.1" viewBox="0 0 288 288" xmlns="http://www.w3.org/2000/svg">
<path d="m142 2.23c-77 0-139 62.5-139 140 0 77 62.5 139 139 139 77 0 139-62.5 139-139 1e-3 -77-62.5-140-139-140zm0 258c-65.7 0-119-53.2-119-119s53.2-119 119-119c65.7 0 119 53.2 119 119 0 65.7-53.2 119-119 119zm0-219c-55.1 0-99.8 44.7-99.8 99.8 0 55.1 44.7 99.8 99.8 99.8s99.8-44.7 99.8-99.8c0-55.1-44.7-99.8-99.8-99.8zm49.3 36c8.69 0 15.7 7.04 15.7 15.7 0 8.69-7.04 15.7-15.7 15.7s-15.7-7.04-15.7-15.7c0-8.69 7.04-15.7 15.7-15.7zm-49.3-20c8.69 0 15.7 7.04 15.7 15.7 0 8.69-7.04 15.7-15.7 15.7s-15.7-7.04-15.7-15.7c0-8.69 7.04-15.7 15.7-15.7zm-48.7 20c8.69 0 15.7 7.04 15.7 15.7 0 8.69-7.04 15.7-15.7 15.7s-15.7-7.04-15.7-15.7c-1e-3 -8.69 7.04-15.7 15.7-15.7zm-35 63.8c0-8.69 7.04-15.7 15.7-15.7s15.7 7.04 15.7 15.7c0 8.69-7.04 15.7-15.7 15.7-8.69 0-15.7-7.04-15.7-15.7zm35 65.6c-8.69 0-15.7-7.04-15.7-15.7s7.04-15.7 15.7-15.7 15.7 7.04 15.7 15.7-7.04 15.7-15.7 15.7zm48.7 20.7c-8.69 0-15.7-7.04-15.7-15.7 0-8.69 7.04-15.7 15.7-15.7 8.69 0 15.7 7.04 15.7 15.7 1e-3 8.68-7.04 15.7-15.7 15.7zm2e-3 -47c-21.2 0-38.5-17.2-38.5-38.5 0-21.2 17.2-38.5 38.5-38.5 21.2 0 38.5 17.2 38.5 38.5 0 21.2-17.2 38.5-38.5 38.5zm49.3 26.3c-8.69 0-15.7-7.04-15.7-15.7s7.04-15.7 15.7-15.7 15.7 7.04 15.7 15.7-7.04 15.7-15.7 15.7zm18.6-49.9c-8.69 0-15.7-7.04-15.7-15.7 0-8.69 7.04-15.7 15.7-15.7s15.7 7.04 15.7 15.7c0 8.69-7.04 15.7-15.7 15.7z"/>
@@ -8,5 +8,14 @@
<style>
svg {
fill: currentColor;
animation: rotation 12s infinite linear;
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
</style>