diff --git a/assets/sass/_vars.scss b/assets/sass/_vars.scss index 29352e5..19e7e2f 100644 --- a/assets/sass/_vars.scss +++ b/assets/sass/_vars.scss @@ -29,5 +29,5 @@ $errorText: darken($error, 30%); $errorColor: desaturate($errorText, 50%); // Responsivity -$mobileThreshold: 632px; +$mobileThreshold: 850px; $desktopThreshold: 940px; diff --git a/views/desktop-utility.njk b/views/desktop-utility.njk index bfce448..55760a5 100644 --- a/views/desktop-utility.njk +++ b/views/desktop-utility.njk @@ -1,6 +1,6 @@
-

Setup a desktop utility

+

Setup a desktop utility

There may be a desktop client at some point. For now, if you're an advanced user, you can setup scripts/macros.

@@ -12,7 +12,7 @@ - + @@ -114,46 +114,46 @@

For examples with curl, please download and review the scripts above.

- -
-

Auth tokens

-
- {{ macros.csrf(getCsrfToken) }} +
+

Auth tokens

+ + {{ macros.csrf(getCsrfToken) }} - - + + -
NameName Download link
- - - - - - - - - - - - {% for token in auth_tokens %} +
#SecretCreated atLast used atActions
+ - - - - - + + + + + - {% endfor %} - -
{{ token.id }} -
-
{{ token.secret }}
- -
-
{{ token.created_at.toISOString() }}{{ token.used_at.toISOString() }} -
- -
-
#SecretCreated atLast used atActions
-
+ + + + {% for token in auth_tokens %} + + {{ token.id }} + +
+
{{ token.secret }}
+ +
+ + {{ token.created_at.toISOString() }} + {{ token.used_at.toISOString() }} + +
+ +
+ + + {% endfor %} + + + +
diff --git a/views/file-manager.njk b/views/file-manager.njk index e48f3c7..f5fe495 100644 --- a/views/file-manager.njk +++ b/views/file-manager.njk @@ -10,47 +10,49 @@

File manager

You're their manager, please be nice with them.

-
-

File list

- - - - - - - - - - - - - - {% for file in files %} +
+
+

File list

+
#URLNameSizeExpires atActions
+ - - - - - {% set expires_at = file.getExpirationDate() %} - - + + + + + + - {% endfor %} - -
{{ file.id }} - - {{ file.real_name }}{{ (file.size / (1024 * 1024)).toFixed(2) }}MB{% if expires_at %}{{ expires_at.toISOString() }}{% else %}Never{% endif %} - {% if file.shouldBeDeleted() %} - Pending deletion - {% else %} -
- {{ macros.csrf(getCsrfToken) }} - -
- {% endif %} -
#URLNameSizeExpires atActions
-
+ + + + {% for file in files %} + + {{ file.id }} + +
+ {{ file.getURL() }} + +
+ +
{{ file.real_name }}
+ {{ (file.size / (1024 * 1024)).toFixed(2) }}MB + {% set expires_at = file.getExpirationDate() %} + {% if expires_at %}{{ expires_at.toISOString() }}{% else %}Never{% endif %} + + {% if file.shouldBeDeleted() %} + Pending deletion + {% else %} +
+ {{ macros.csrf(getCsrfToken) }} + +
+ {% endif %} + + + {% endfor %} + + + + {% endblock %} diff --git a/views/file-upload.njk b/views/file-upload.njk index f2b7309..86ecf0a 100644 --- a/views/file-upload.njk +++ b/views/file-upload.njk @@ -12,7 +12,7 @@
-

Upload a file

+

Upload a file

diff --git a/views/url-manager.njk b/views/url-manager.njk index 621031a..9352e83 100644 --- a/views/url-manager.njk +++ b/views/url-manager.njk @@ -8,31 +8,33 @@

URL manager

These are permanent.

-
-

URL list

- - - - - - - - - - - {% for url in urls %} +
+
+

URL list

+
#URLTarget
+ - - - + + + - {% endfor %} - -
{{ url.id }} - - {{ url.target_url }}#URLTarget
-
+ + + + {% for url in urls %} + + {{ url.id }} + + + +
{{ url.target_url }}
+ + {% endfor %} + + +
+
{% endblock %} \ No newline at end of file diff --git a/views/url-shrinker.njk b/views/url-shrinker.njk index dd41a0d..d308f8d 100644 --- a/views/url-shrinker.njk +++ b/views/url-shrinker.njk @@ -12,7 +12,7 @@
-

Shrink a URL

+

Shrink a URL

{{ macros.field(_locals, 'text', 'target_url', '', 'Target URL', 'Only valid URLs starting with http:// or https://', validation_attributes='required') }}