Remove demo file viewer, update dependencies

This commit is contained in:
2023-05-10 15:08:29 +02:00
parent 15a1702063
commit 3f1318784e
8 changed files with 25 additions and 73 deletions

View File

@@ -8,7 +8,7 @@ let text_type = ""
export const set_file = file => {
console.log("loading text file", file.id)
if (file.name.endsWith(".md") || file.name.endsWith(".markdown") || file.mime_type === "text/demo") {
if (file.name.endsWith(".md") || file.name.endsWith(".markdown")) {
markdown(file)
} else if (file.name.endsWith(".txt") || file.size > 524288) {
// If the file is larger than 512KiB we do not enable code highlighting

View File

@@ -19,7 +19,7 @@ onMount(() => {
</div>
<div>
<div class="feat_label">Size limit per file</div>
<div class="feat_normal">10 GB per file (9.31 GiB)</div>
<div class="feat_normal">20 GB per file (18.63 GiB)</div>
<div class="feat_pro">
<span class="text_highlight">50 GB</span> per file (46.57 GiB)
</div>
@@ -29,7 +29,7 @@ onMount(() => {
Data transfer limit
</div>
<div class="feat_normal">
Download limit of <span class="text_highlight">10 GB</span> per day
Download limit of <span class="text_highlight">20 GB</span> per day
(24 hours). When this threshold is reached your download speed will
be reduced to 1 MiB/s
</div>