From 1261563f31fc125deb6a08a93a5afe649c3a9408 Mon Sep 17 00:00:00 2001
From: Wim Brand
Date: Tue, 4 Jun 2019 10:13:19 +0200
Subject: [PATCH] Add info to home page
---
res/static/script/compiled/home.js | 4 ++--
res/static/typescript/home/home.ts | 2 +-
res/template/home.html | 4 ++++
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/res/static/script/compiled/home.js b/res/static/script/compiled/home.js
index 7083bd6..776224f 100644
--- a/res/static/script/compiled/home.js
+++ b/res/static/script/compiled/home.js
@@ -187,7 +187,7 @@ btnCopyLinks.addEventListener("click", function () {
for (var i = 0; i < finishedUploads.length; i++) {
// Example: https://pixeldrain.com/u/abcd1234: Some_file.png
text += window.location.protocol + "//" + window.location.hostname + "/u/" + finishedUploads[i].id +
- ": " + finishedUploads[i].name + "\n";
+ " " + finishedUploads[i].name + "\n";
}
var defaultButtonText = btnCopyLinks.innerHTML;
// Copy the selected text
@@ -314,7 +314,7 @@ var UploadWorker = /** @class */ (function () {
};
UploadWorker.prototype.newFile = function () {
var file = this.manager.grabFile();
- if (file === undefined) {
+ if (file === undefined) { // No more files in the queue. We're finished
this.uploading = false;
console.debug("No files left in queue");
return; // Stop the thread
diff --git a/res/static/typescript/home/home.ts b/res/static/typescript/home/home.ts
index 57c6dab..cbe5910 100644
--- a/res/static/typescript/home/home.ts
+++ b/res/static/typescript/home/home.ts
@@ -226,7 +226,7 @@ btnCopyLinks.addEventListener("click", function(){
for (var i = 0; i < finishedUploads.length; i++) {
// Example: https://pixeldrain.com/u/abcd1234: Some_file.png
text += window.location.protocol + "//" + window.location.hostname + "/u/" + finishedUploads[i].id +
- ": " + finishedUploads[i].name + "\n";
+ " " + finishedUploads[i].name + "\n";
}
var defaultButtonText = btnCopyLinks.innerHTML;
diff --git a/res/template/home.html b/res/template/home.html
index 8ad7eaa..b149178 100644
--- a/res/template/home.html
+++ b/res/template/home.html
@@ -42,6 +42,10 @@
Pixeldrain is a file sharing website built for speed and ease of
use.
+
+ The file size limit is 10 GB. There is no limit on the number of
+ files you can upload. A list can contain up to 10000 files.
+
Questions and Answers