Skip to content

Commit 6db1151

Browse files
committed
Merge pull request element-hq#453 from vector-im/kegan/vector-references
Add vector-specific branded components
2 parents d837d02 + 0210670 commit 6db1151

4 files changed

Lines changed: 127 additions & 2 deletions

File tree

‎src/component-index.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ module.exports.components['structures.ViewSource'] = require('./components/struc
3333
module.exports.components['views.elements.ImageView'] = require('./components/views/elements/ImageView');
3434
module.exports.components['views.elements.Spinner'] = require('./components/views/elements/Spinner');
3535
module.exports.components['views.globals.MatrixToolbar'] = require('./components/views/globals/MatrixToolbar');
36+
module.exports.components['views.login.CustomServerDialog'] = require('./components/views/login/VectorCustomServerDialog');
37+
module.exports.components['views.login.LoginFooter'] = require('./components/views/login/VectorLoginFooter');
38+
module.exports.components['views.login.LoginHeader'] = require('./components/views/login/VectorLoginHeader');
3639
module.exports.components['views.messages.DateSeparator'] = require('./components/views/messages/DateSeparator');
3740
module.exports.components['views.messages.MessageTimestamp'] = require('./components/views/messages/MessageTimestamp');
3841
module.exports.components['views.messages.SenderProfile'] = require('./components/views/messages/SenderProfile');
@@ -42,5 +45,3 @@ module.exports.components['views.rooms.RoomDNDView'] = require('./components/vie
4245
module.exports.components['views.rooms.RoomDropTarget'] = require('./components/views/rooms/RoomDropTarget');
4346
module.exports.components['views.rooms.RoomTooltip'] = require('./components/views/rooms/RoomTooltip');
4447
module.exports.components['views.rooms.SearchBar'] = require('./components/views/rooms/SearchBar');
45-
46-
// Old, unported Vector views:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
Copyright 2015 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
var React = require("react");
18+
19+
module.exports = React.createClass({
20+
displayName: 'VectorCustomServerDialog',
21+
statics: {
22+
replaces: 'CustomServerDialog',
23+
},
24+
25+
render: function() {
26+
return (
27+
<div className="mx_ErrorDialog">
28+
<div className="mx_ErrorDialogTitle">
29+
Custom Server Options
30+
</div>
31+
<div className="mx_Dialog_content">
32+
<span>
33+
You can use the custom server options to log into other Matrix
34+
servers by specifying a different Home server URL.
35+
<br/>
36+
This allows you to use Vector with an existing Matrix account on
37+
a different Home server.
38+
<br/>
39+
<br/>
40+
You can also set a custom Identity server but this will affect
41+
people&#39;s ability to find you if you use a server in a group other
42+
than the main Matrix.org group.
43+
</span>
44+
</div>
45+
<div className="mx_Dialog_buttons">
46+
<button onClick={this.props.onFinished} autoFocus={true}>
47+
Dismiss
48+
</button>
49+
</div>
50+
</div>
51+
);
52+
}
53+
});
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Copyright 2015 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
'use strict';
18+
19+
var React = require('react');
20+
21+
module.exports = React.createClass({
22+
displayName: 'VectorLoginFooter',
23+
statics: {
24+
replaces: 'LoginFooter',
25+
},
26+
27+
render: function() {
28+
return (
29+
<div className="mx_Login_links">
30+
<a href="https://medium.com/@Vector">blog</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
31+
<a href="https://twitter.com/@VectorCo">twitter</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
32+
<a href="https://github.com/vector-im/vector-web">github</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
33+
<a href="https://matrix.org">powered by Matrix</a>
34+
</div>
35+
);
36+
}
37+
});
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
Copyright 2015 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
'use strict';
18+
19+
var React = require('react');
20+
21+
module.exports = React.createClass({
22+
displayName: 'VectorLoginHeader',
23+
statics: {
24+
replaces: 'LoginHeader',
25+
},
26+
27+
render: function() {
28+
return (
29+
<div className="mx_Login_logo">
30+
<img src="img/logo.png" width="249" height="78" alt="vector"/>
31+
</div>
32+
);
33+
}
34+
});

0 commit comments

Comments
 (0)