From 61235749b91eac36c3a8fc9f2b9ef9f6a142e7e4 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Wed, 13 Jan 2021 22:06:54 +0100 Subject: [PATCH] Update apps page --- res/template/apps.html | 38 +++++++++++++++++++++++++++++++++-- res/template/file_viewer.html | 2 +- webcontroller/file_viewer.go | 4 ++-- 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/res/template/apps.html b/res/template/apps.html index 8ae3312..8cb29a5 100644 --- a/res/template/apps.html +++ b/res/template/apps.html @@ -3,13 +3,26 @@ {{template "meta_tags" "Apps"}} {{template "user_style" .}} + + {{template "page_top" .}}

Apps

-

ShareX (Windows only)

+

ShareX

+
+ Platform: Windows 7, 8.1 and 10 | + License: GPL-3.0 | + Website | + GitHub +

@@ -47,7 +60,28 @@

-

pdup (Linux only)

+

go-pixeldrain

+
+ Platform: Linux, Mac OS, Windows (CLI) | + License: MIT | + Website | + GitHub +
+

+ go-pixeldrain is a command line interface for pixeldrain created + by Junpei Kawamoto. You can use it to upload and download files + and directories from your terminal. Compiled binaries are + available on the GitHub releases page. +

+ +

pdup

+
+ Platform: Linux, BSD, Mac OS (CLI) | + License: None | + GitHub +

pdup is a little bash script for uploading files to pixeldrain from the terminal. It's available {{ else if not .Other.FileAdsEnabled }}

- The uploader of this file disabled advertisements. You can do the same for only €2 per month! + The uploader of this file disabled advertisements. You can do the same for only €2 per month!
{{end}}
diff --git a/webcontroller/file_viewer.go b/webcontroller/file_viewer.go index 1f02620..3cd278b 100644 --- a/webcontroller/file_viewer.go +++ b/webcontroller/file_viewer.go @@ -58,9 +58,9 @@ func adType() int { return pdpro3 case 6: return pdpro4 - case 7, 8: + case 7, 8, 9, 10: return adMaven - case 9, 10, 11, 12, 13, 14: + case 11, 12, 13, 14: return propellerAds default: panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))