2021-10-26 22:15:01 +02:00
|
|
|
<script>
|
2023-04-04 16:00:14 +02:00
|
|
|
import { createEventDispatcher } from "svelte";
|
|
|
|
import IconBlock from "./IconBlock.svelte"
|
2022-02-08 11:32:36 +01:00
|
|
|
import TextBlock from "./TextBlock.svelte"
|
|
|
|
|
2023-04-04 16:00:14 +02:00
|
|
|
let dispatch = createEventDispatcher()
|
|
|
|
|
2021-12-13 16:33:23 +01:00
|
|
|
export const set_file = f => file = f
|
|
|
|
let file = {
|
2021-10-26 22:15:01 +02:00
|
|
|
id: "",
|
|
|
|
name: "",
|
|
|
|
abuse_type: "",
|
|
|
|
abuse_reporter_name: "",
|
2023-04-04 16:00:14 +02:00
|
|
|
can_download: false,
|
|
|
|
icon_href: "",
|
2021-10-26 22:15:01 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2023-01-17 19:03:14 +01:00
|
|
|
<h1>{file.name}</h1>
|
2023-01-17 22:53:41 +01:00
|
|
|
|
2023-01-17 19:03:14 +01:00
|
|
|
<TextBlock>
|
|
|
|
<h2>Unavailable for legal reasons</h2>
|
2021-10-26 22:15:01 +02:00
|
|
|
<p>
|
2023-01-02 14:35:36 +01:00
|
|
|
This file has been removed for violating pixeldrain's
|
2023-01-30 11:58:46 +01:00
|
|
|
<a href="/abuse">content policy</a>. Type of abuse: {file.abuse_type}.
|
2021-10-26 22:15:01 +02:00
|
|
|
</p>
|
|
|
|
<p>
|
2023-01-02 14:35:36 +01:00
|
|
|
{#if file.abuse_reporter_name === "User submitted reports"}
|
|
|
|
|
|
|
|
The file was reported by users of pixeldrain with the report button
|
|
|
|
in the toolbar.
|
|
|
|
|
2023-01-11 19:23:02 +01:00
|
|
|
{:else}
|
|
|
|
|
|
|
|
The file was reported through pixeldrain's abuse e-mail address.
|
|
|
|
|
2023-01-02 14:35:36 +01:00
|
|
|
{/if}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Pixeldrain has zero tolerance towards abuse. The IP address this file
|
|
|
|
originated from has been banned and is no longer able to upload files to
|
|
|
|
pixeldrain.
|
2021-10-26 22:15:01 +02:00
|
|
|
</p>
|
2022-02-08 11:32:36 +01:00
|
|
|
</TextBlock>
|
2023-04-04 16:00:14 +02:00
|
|
|
|
|
|
|
{#if file.can_download}
|
|
|
|
<IconBlock icon_href={file.icon_href}>
|
|
|
|
|
|
|
|
This file cannot be shared, but since you are the uploader of the file
|
|
|
|
you can still download it.
|
|
|
|
<br/>
|
|
|
|
<button class="button_highlight" on:click={() => {dispatch("download")}}>
|
|
|
|
<i class="icon">download</i>
|
|
|
|
<span>Download</span>
|
|
|
|
</button>
|
|
|
|
</IconBlock>
|
|
|
|
{/if}
|