Skip to content

Commit 97dd4e2

Browse files
committed
Merge branch 'develop' into rav/olm
Conflicts: webpack.config.js
2 parents 56b7b65 + db5d9e2 commit 97dd4e2

20 files changed

Lines changed: 249 additions & 148 deletions

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ lib
44
.DS_Store
55
key.pem
66
cert.pem
7-
build
7+
vector/components.css

‎package.json‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,29 @@
99
},
1010
"license": "Apache-2.0",
1111
"style": "bundle.css",
12+
"matrix-react-parent": "matrix-react-sdk",
1213
"scripts": {
13-
"reskindex": "reskindex vector -h src/skins/vector/header",
14+
"reskindex": "reskindex -h src/header",
1415
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
15-
"build:css": "catw \"src/skins/vector/css/**/*.css\" -o vector/bundle.css -c uglifycss --no-watch",
16+
"build:css": "catw \"src/skins/vector/css/**/*.css\" -o vector/components.css --no-watch",
1617
"build:compile": "babel --source-maps -d lib src",
1718
"build:bundle": "NODE_ENV=production webpack -p lib/vector/index.js vector/bundle.js",
1819
"build": "npm run build:css && npm run build:compile && npm run build:bundle",
1920
"start:js": "webpack -w src/vector/index.js vector/bundle.js",
20-
"start:skins:css": "catw \"src/skins/vector/css/**/*.css\" -o vector/bundle.css",
21+
"start:skins:css": "catw \"src/skins/vector/css/**/*.css\" -o vector/components.css",
2122
"//cache": "Note the -c 1 below due to https://code.google.com/p/chromium/issues/detail?id=508270",
2223
"start": "parallelshell \"npm run start:js\" \"npm run start:skins:css\" \"http-server -c 1 vector\"",
23-
"clean": "rimraf lib vector/bundle.css vector/bundle.js vector/bundle.js.map",
24+
"clean": "rimraf lib vector/bundle.css vector/bundle.js vector/bundle.js.map vector/webpack.css*",
2425
"prepublish": "npm run build:css && npm run build:compile"
2526
},
2627
"dependencies": {
2728
"classnames": "^2.1.2",
29+
"extract-text-webpack-plugin": "^0.9.1",
2830
"filesize": "^3.1.2",
2931
"flux": "~2.0.3",
32+
"gemini-scrollbar": "^1.3.0",
3033
"gfm.css": "^1.1.1",
34+
"highlight.js": "^9.0.0",
3135
"linkifyjs": "^2.0.0-beta.4",
3236
"matrix-js-sdk": "https://github.com/matrix-org/matrix-js-sdk.git#develop",
3337
"matrix-react-sdk": "https://github.com/matrix-org/matrix-react-sdk.git#develop",
@@ -44,12 +48,12 @@
4448
"babel-core": "^5.8.25",
4549
"babel-loader": "^5.3.2",
4650
"catw": "^1.0.1",
51+
"css-raw-loader": "^0.1.1",
4752
"http-server": "^0.8.4",
4853
"json-loader": "^0.5.3",
4954
"parallelshell": "^1.2.0",
5055
"rimraf": "^2.4.3",
5156
"source-map-loader": "^0.1.5",
52-
"uglifycss": "0.0.15",
5357
"webpack": "^1.12.6"
5458
}
5559
}

‎src/component-index.js‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
/*
18+
* THIS FILE IS AUTO-GENERATED
19+
* You can edit it you like, but your changes will be overwritten,
20+
* so you'd just be trying to swim upstream like a salmon.
21+
* You are not a salmon.
22+
*/
23+
24+
module.exports.components = require('matrix-react-sdk/lib/component-index').components;
25+
26+
module.exports.components['structures.BottomLeftMenu'] = require('./components/structures/BottomLeftMenu');
27+
module.exports.components['structures.CompatibilityPage'] = require('./components/structures/CompatibilityPage');
28+
module.exports.components['structures.LeftPanel'] = require('./components/structures/LeftPanel');
29+
module.exports.components['structures.RightPanel'] = require('./components/structures/RightPanel');
30+
module.exports.components['structures.RoomDirectory'] = require('./components/structures/RoomDirectory');
31+
module.exports.components['structures.RoomSubList'] = require('./components/structures/RoomSubList');
32+
module.exports.components['structures.ViewSource'] = require('./components/structures/ViewSource');
33+
module.exports.components['views.elements.ImageView'] = require('./components/views/elements/ImageView');
34+
module.exports.components['views.elements.Spinner'] = require('./components/views/elements/Spinner');
35+
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');
39+
module.exports.components['views.messages.DateSeparator'] = require('./components/views/messages/DateSeparator');
40+
module.exports.components['views.messages.MessageTimestamp'] = require('./components/views/messages/MessageTimestamp');
41+
module.exports.components['views.messages.SenderProfile'] = require('./components/views/messages/SenderProfile');
42+
module.exports.components['views.rooms.BottomLeftMenuTile'] = require('./components/views/rooms/BottomLeftMenuTile');
43+
module.exports.components['views.rooms.MessageContextMenu'] = require('./components/views/rooms/MessageContextMenu');
44+
module.exports.components['views.rooms.RoomDNDView'] = require('./components/views/rooms/RoomDNDView');
45+
module.exports.components['views.rooms.RoomDropTarget'] = require('./components/views/rooms/RoomDropTarget');
46+
module.exports.components['views.rooms.RoomTooltip'] = require('./components/views/rooms/RoomTooltip');
47+
module.exports.components['views.rooms.SearchBar'] = require('./components/views/rooms/SearchBar');
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+
});

‎src/components/views/rooms/RoomDNDView.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,6 @@ DragSource('RoomTile', roomTileSource, function(connect, monitor) {
201201
// You can ask the monitor about the current drag state:
202202
isDragging: monitor.isDragging()
203203
};
204-
})(RoomTile));
204+
})(RoomTile));
205+
206+
module.exports.replaces = 'RoomTile';
File renamed without changes.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.mx_UploadBar {
2+
position: relative;
3+
}
4+
5+
.mx_UploadBar_uploadProgressOuter {
6+
height: 4px;
7+
margin-left: 63px;
8+
margin-top: -1px;
9+
}
10+
11+
.mx_UploadBar_uploadProgressInner {
12+
background-color: #76cfa6;
13+
height: 4px;
14+
}
15+
16+
.mx_UploadBar_uploadFilename {
17+
margin-top: 5px;
18+
margin-left: 65px;
19+
opacity: 0.5;
20+
color: #4a4a4a;
21+
}
22+
23+
.mx_UploadBar_uploadIcon {
24+
float: left;
25+
margin-top: 1px;
26+
margin-left: 14px;
27+
}
28+
29+
.mx_UploadBar_uploadCancel {
30+
float: right;
31+
margin-top: 5px;
32+
margin-right: 10px;
33+
position: relative;
34+
z-index: 1;
35+
}
36+
37+
.mx_UploadBar_uploadBytes {
38+
float: right;
39+
margin-top: 5px;
40+
margin-right: 30px;
41+
color: #76cfa6;
42+
}

‎src/skins/vector/css/gemini-scrollbar.css‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)