From 41adcdc898c3f36eca17cf5f40d73a065471946d Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 21 Jan 2019 18:40:34 -0600 Subject: [PATCH] Rename LoginPage, Header, Footer views to Auth* --- res/themes/status/css/_StatusLogin.scss | 4 ++-- .../auth/{VectorLoginFooter.js => VectorAuthFooter.js} | 7 ++++--- .../auth/{VectorLoginHeader.js => VectorAuthHeader.js} | 9 +++++---- 3 files changed, 11 insertions(+), 9 deletions(-) rename src/components/views/auth/{VectorLoginFooter.js => VectorAuthFooter.js} (91%) rename src/components/views/auth/{VectorLoginHeader.js => VectorAuthHeader.js} (84%) diff --git a/res/themes/status/css/_StatusLogin.scss b/res/themes/status/css/_StatusLogin.scss index 437a9a2314..abb7881d21 100644 --- a/res/themes/status/css/_StatusLogin.scss +++ b/res/themes/status/css/_StatusLogin.scss @@ -106,7 +106,7 @@ limitations under the License. text-align: center; } - .mx_Login_logo { + .mx_AuthHeader_logo { background-color: #fff; width: 74px; height: 74px; @@ -118,7 +118,7 @@ limitations under the License. margin-left: -36px; } - .mx_Login_logo img { + .mx_AuthHeader_logo img { width: 36px; height: 36px; padding: 19px; diff --git a/src/components/views/auth/VectorLoginFooter.js b/src/components/views/auth/VectorAuthFooter.js similarity index 91% rename from src/components/views/auth/VectorLoginFooter.js rename to src/components/views/auth/VectorAuthFooter.js index 5fa423608c..8be68d38e1 100644 --- a/src/components/views/auth/VectorLoginFooter.js +++ b/src/components/views/auth/VectorAuthFooter.js @@ -1,5 +1,6 @@ /* Copyright 2015, 2016 OpenMarket Ltd +Copyright 2019 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +22,9 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler'; import SettingsStore from 'matrix-react-sdk/lib/settings/SettingsStore'; module.exports = React.createClass({ - displayName: 'VectorLoginFooter', + displayName: 'VectorAuthFooter', statics: { - replaces: 'LoginFooter', + replaces: 'AuthFooter', }, render: function() { @@ -32,7 +33,7 @@ module.exports = React.createClass({ if (SettingsStore.getValue("theme") === 'status') return
; return ( -
+
blog  ·   twitter  ·   github  ·   diff --git a/src/components/views/auth/VectorLoginHeader.js b/src/components/views/auth/VectorAuthHeader.js similarity index 84% rename from src/components/views/auth/VectorLoginHeader.js rename to src/components/views/auth/VectorAuthHeader.js index babd90d6cd..de023c72f3 100644 --- a/src/components/views/auth/VectorLoginHeader.js +++ b/src/components/views/auth/VectorAuthHeader.js @@ -1,5 +1,6 @@ /* Copyright 2015, 2016 OpenMarket Ltd +Copyright 2019 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -23,9 +24,9 @@ const i = [1, 2, 3, 4, 5][Math.floor(Math.random() * 5)]; const DEFAULT_LOGO_URI = "themes/riot/img/logos/riot-im-logo-" + i + ".svg"; module.exports = React.createClass({ - displayName: 'VectorLoginHeader', + displayName: 'VectorAuthHeader', statics: { - replaces: 'LoginHeader', + replaces: 'AuthHeader', }, propTypes: { icon: PropTypes.string, @@ -33,8 +34,8 @@ module.exports = React.createClass({ render: function() { return ( -
-
+
+
Riot