From e6d4d96693bfa8a8b8dd9464895667d82e139714 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Tue, 17 Sep 2019 12:14:25 +0700 Subject: [PATCH] Fixed URLs uploader being disabled & updated todo etc. --- todo.md | 2 ++ views/auth.njk | 4 ---- views/faq.njk | 8 ++++---- views/home.njk | 8 ++++---- views/nojs.njk | 4 ++-- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/todo.md b/todo.md index 0b11a6b..95d0347 100644 --- a/todo.md +++ b/todo.md @@ -17,6 +17,8 @@ Normal priority: * [x] Show expiry date in thumbs view. * [ ] Add Select all checkbox somewhere in thumbs view. * [x] Display renders after API check. +* [ ] Enforce pass min/max lengths in dashboard's change password form. +* [ ] Add a copy all links to clipboard when there are more than 2 uploads in history. Low priority: diff --git a/views/auth.njk b/views/auth.njk index 143cef0..20976ff 100644 --- a/views/auth.njk +++ b/views/auth.njk @@ -41,10 +41,6 @@
- {#- - Explicitly use "button" for type attribute - to prevent browsers from treating this button as the "submit" button. - #}
- {% if noJsMaxSize and chunkSize -%} + {% if noJsMaxSizeInt and chunkSizeInt -%}

Why is the maximum file size in the No-JS uploader form smaller?

@@ -106,7 +106,7 @@
{%- endif %} - {% if chunkSize -%} + {% if chunkSizeInt -%}

So your API supports chunked uploads?

diff --git a/views/home.njk b/views/home.njk index b052d6a..f3f2e2a 100644 --- a/views/home.njk +++ b/views/home.njk @@ -1,7 +1,7 @@ {% extends "_layout.njk" %} -{% set maxSizeInt = config.maxSize | int %} -{% set urlMaxSizeInt = config.urlMaxSize | int %} +{% set maxSizeInt = config.uploads.maxSize | int %} +{% set urlMaxSizeInt = config.uploads.urlMaxSize | int %} {% set urlDisclaimerMessage = config.uploads.urlDisclaimerMessage %} {% set urlExtensionsFilterMode = config.uploads.urlExtensionsFilterMode %} {% set urlExtensionsFilter = config.uploads.urlExtensionsFilter %} @@ -75,7 +75,7 @@ Files - {% if urlMaxSize -%} + {% if urlMaxSizeInt -%}
  • @@ -95,7 +95,7 @@
  • - {% if urlMaxSize -%} + {% if urlMaxSizeInt -%}