From 18193778971e27d18b5a35df8c2d0e2953b48111 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Tue, 16 Feb 2021 15:39:11 +0000 Subject: [PATCH] feat: improved sharing prompt --- frontend/public/themes/dark.css | 4 +- frontend/src/components/prompts/Share.vue | 172 +++++++++++++--------- frontend/src/css/_share.css | 7 +- frontend/src/css/dashboard.css | 12 ++ http/share.go | 12 -- 5 files changed, 116 insertions(+), 91 deletions(-) diff --git a/frontend/public/themes/dark.css b/frontend/public/themes/dark.css index 9a5be1f7..2a70351c 100644 --- a/frontend/public/themes/dark.css +++ b/frontend/public/themes/dark.css @@ -119,8 +119,8 @@ nav > div { .dashboard p label { color: var(--textPrimary); } -.card#share ul li input, -.card#share ul li select, +.card#share input, +.card#share select, .input { background: var(--surfaceSecondary); color: var(--textPrimary); diff --git a/frontend/src/components/prompts/Share.vue b/frontend/src/components/prompts/Share.vue index 043847d8..f4163975 100644 --- a/frontend/src/components/prompts/Share.vue +++ b/frontend/src/components/prompts/Share.vue @@ -4,61 +4,82 @@
# | +{{ $t('settings.shareDuration') }} | ++ | + |
---|---|---|---|
{{ link.hash }} | ++ {{ humanTime(link.expire) }} + {{ $t('permanent') }} + | ++ + | ++ + | +
{{ $t('settings.shareDuration') }}
+{{ $t('prompts.optionalPassword') }}
+ +