mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Rename LoginPage, Header, Footer views to Auth*
This commit is contained in:
parent
e98346e7cd
commit
41adcdc898
3 changed files with 11 additions and 9 deletions
|
@ -106,7 +106,7 @@ limitations under the License.
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Login_logo {
|
.mx_AuthHeader_logo {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
width: 74px;
|
width: 74px;
|
||||||
height: 74px;
|
height: 74px;
|
||||||
|
@ -118,7 +118,7 @@ limitations under the License.
|
||||||
margin-left: -36px;
|
margin-left: -36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Login_logo img {
|
.mx_AuthHeader_logo img {
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
padding: 19px;
|
padding: 19px;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2015, 2016 OpenMarket Ltd
|
Copyright 2015, 2016 OpenMarket Ltd
|
||||||
|
Copyright 2019 New Vector Ltd
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with 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';
|
import SettingsStore from 'matrix-react-sdk/lib/settings/SettingsStore';
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'VectorLoginFooter',
|
displayName: 'VectorAuthFooter',
|
||||||
statics: {
|
statics: {
|
||||||
replaces: 'LoginFooter',
|
replaces: 'AuthFooter',
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
@ -32,7 +33,7 @@ module.exports = React.createClass({
|
||||||
if (SettingsStore.getValue("theme") === 'status') return <div />;
|
if (SettingsStore.getValue("theme") === 'status') return <div />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_Login_links">
|
<div className="mx_AuthFooter">
|
||||||
<a href="https://medium.com/@RiotChat">blog</a> ·
|
<a href="https://medium.com/@RiotChat">blog</a> ·
|
||||||
<a href="https://twitter.com/@RiotChat">twitter</a> ·
|
<a href="https://twitter.com/@RiotChat">twitter</a> ·
|
||||||
<a href="https://github.com/vector-im/riot-web">github</a> ·
|
<a href="https://github.com/vector-im/riot-web">github</a> ·
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2015, 2016 OpenMarket Ltd
|
Copyright 2015, 2016 OpenMarket Ltd
|
||||||
|
Copyright 2019 New Vector Ltd
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with 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";
|
const DEFAULT_LOGO_URI = "themes/riot/img/logos/riot-im-logo-" + i + ".svg";
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'VectorLoginHeader',
|
displayName: 'VectorAuthHeader',
|
||||||
statics: {
|
statics: {
|
||||||
replaces: 'LoginHeader',
|
replaces: 'AuthHeader',
|
||||||
},
|
},
|
||||||
propTypes: {
|
propTypes: {
|
||||||
icon: PropTypes.string,
|
icon: PropTypes.string,
|
||||||
|
@ -33,8 +34,8 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_Login_header">
|
<div className="mx_AuthHeader">
|
||||||
<div className="mx_Login_logo">
|
<div className="mx_AuthHeader_logo">
|
||||||
<img src={this.props.icon || DEFAULT_LOGO_URI} alt="Riot" />
|
<img src={this.props.icon || DEFAULT_LOGO_URI} alt="Riot" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue