From 253118298dbac78d13c5333279def8bbd3ad555c Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 18 Jul 2022 17:58:05 +0200 Subject: Redesign guest pages for better accessibility - Use white box and put content on it - Improve focus indicator Signed-off-by: Carl Schwan --- core/src/components/login/LoginButton.vue | 54 ++------ core/src/components/login/ResetPassword.vue | 9 +- core/src/components/setup/InstallButton.vue | 43 ------ core/src/components/setup/RecommendedApps.vue | 40 ++++-- core/src/install.js | 13 +- core/src/views/Login.vue | 191 ++++++++++++++++---------- 6 files changed, 166 insertions(+), 184 deletions(-) delete mode 100644 core/src/components/setup/InstallButton.vue (limited to 'core/src') diff --git a/core/src/components/login/LoginButton.vue b/core/src/components/login/LoginButton.vue index e99398ba09a..0b9afd58685 100644 --- a/core/src/components/login/LoginButton.vue +++ b/core/src/components/login/LoginButton.vue @@ -20,23 +20,27 @@ --> - - diff --git a/core/src/components/login/ResetPassword.vue b/core/src/components/login/ResetPassword.vue index 7a499baa2f0..aadf7863dfe 100644 --- a/core/src/components/login/ResetPassword.vue +++ b/core/src/components/login/ResetPassword.vue @@ -40,22 +40,19 @@

+ class="notecard success"> {{ t('core', 'A password reset message has been sent to the email address of this account. If you do not receive it, check your spam/junk folders or ask your local administrator for help.') }}
{{ t('core', 'If it is not there ask your local administrator.') }}

+ class="notecard error"> {{ t('core', 'Couldn\'t send reset email. Please contact your administrator.') }}

+ class="notecard error"> {{ t('core', 'Password cannot be changed. Please contact your administrator.') }}

-

diff --git a/core/src/components/setup/InstallButton.vue b/core/src/components/setup/InstallButton.vue deleted file mode 100644 index 52d2d622a76..00000000000 --- a/core/src/components/setup/InstallButton.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - diff --git a/core/src/components/setup/RecommendedApps.vue b/core/src/components/setup/RecommendedApps.vue index cd39929f14b..5bd5bb0bbae 100644 --- a/core/src/components/setup/RecommendedApps.vue +++ b/core/src/components/setup/RecommendedApps.vue @@ -20,7 +20,7 @@ --> @@ -69,8 +78,7 @@ import { loadState } from '@nextcloud/initial-state' import pLimit from 'p-limit' import { translate as t } from '@nextcloud/l10n' -// TODO replace with Button component when @nextcloud/vue is upgraded to v5 -import InstallButton from './InstallButton' +import Button from '@nextcloud/vue/dist/Components/Button' import logger from '../../logger' @@ -106,7 +114,7 @@ const defaultPageUrl = loadState('core', 'defaultPageUrl') export default { name: 'RecommendedApps', components: { - InstallButton, + Button, }, data() { return { @@ -184,13 +192,18 @@ export default { } return recommended[appId].description }, + goTo(href) { + window.location.href = href + }, }, } -- cgit v1.2.3