Skip to content

Commit a7b9e54

Browse files
committed
Merge branch 'develop' into matthew/settings
2 parents 79e3942 + 856156e commit a7b9e54

172 files changed

Lines changed: 1068 additions & 6058 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.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

‎README.md‎

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ about them:
3636
2. `cd matrix-react-sdk`
3737
3. `git checkout develop`
3838
4. `npm install`
39-
5. `npm start` (to start the dev rebuilder)
40-
6. `cd ../vector-web`
41-
7. Link the react sdk package into the example:
39+
5. `npm run build`
40+
6. `npm start` (to start the dev rebuilder)
41+
7. `cd ../vector-web`
42+
8. Link the react sdk package into the example:
4243
`npm link path/to/your/react/sdk`
4344

4445
Similarly, you may need to `npm link path/to/your/js/sdk` in your `matrix-react-sdk`
@@ -53,6 +54,34 @@ about "Cannot resolve module 'source-map-loader'" due to shortcomings in webpack
5354
Deployment
5455
==========
5556

56-
Just run `npm build` and then mount the `vector` directory on your webserver to
57+
Just run `npm run build` and then mount the `vector` directory on your webserver to
5758
actually serve up the app, which is entirely static content.
5859

60+
Enabling encryption
61+
===================
62+
63+
End-to-end encryption in Vector and Matrix is not yet considered ready for
64+
day-to-day use; it is experimental and should be considered only as a
65+
proof-of-concept. See https://matrix.org/jira/browse/SPEC-162 for an overview
66+
of the current progress.
67+
68+
To build a version of vector with support for end-to-end encryption, install
69+
the olm module with `npm i https://matrix.org/packages/npm/olm/olm-0.1.0.tgz`
70+
before running `npm start`. The olm library will be detected and used if
71+
available.
72+
73+
To enable encryption for a room, type
74+
75+
```
76+
/encrypt on
77+
```
78+
79+
in the message bar in that room. Vector will then generate a set of keys, and
80+
encrypt all outgoing messages in that room. (Note that other people in that
81+
room will send messages in the clear unless they also `/encrypt on`.)
82+
83+
Note that historical encrypted messages cannot currently be decoded - history
84+
is therefore lost when the page is reloaded.
85+
86+
There is currently no visual indication of whether encryption is enabled for a
87+
room, or whether a particular message was encrypted.

‎package.json‎

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,51 @@
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",
33+
"gfm.css": "^1.1.1",
34+
"highlight.js": "^9.0.0",
3035
"linkifyjs": "^2.0.0-beta.4",
31-
"matrix-js-sdk": "^0.3.0",
32-
"matrix-react-sdk": "^0.0.2",
36+
"matrix-js-sdk": "https://github.com/matrix-org/matrix-js-sdk.git#develop",
37+
"matrix-react-sdk": "https://github.com/matrix-org/matrix-react-sdk.git#develop",
3338
"modernizr": "^3.1.0",
3439
"q": "^1.4.1",
3540
"react": "^0.14.2",
3641
"react-dnd": "^2.0.2",
3742
"react-dnd-html5-backend": "^2.0.0",
3843
"react-dom": "^0.14.2",
39-
"react-gemini-scrollbar": "^2.0.1",
40-
"sanitize-html": "^1.0.0"
44+
"react-gemini-scrollbar": "^2.0.1"
4145
},
4246
"devDependencies": {
4347
"babel": "^5.8.23",
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"
57+
"webpack": "^1.12.6"
5358
}
5459
}

‎src/Avatar.js‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

‎src/ContextualMenu.js‎

Lines changed: 0 additions & 82 deletions
This file was deleted.

‎src/DateUtils.js‎

Lines changed: 0 additions & 45 deletions
This file was deleted.

‎src/Resend.js‎

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ ConferenceCall.prototype._getConferenceUserRoom = function() {
8585
};
8686

8787
/**
88-
* Check if this room member is in fact a conference bot.
89-
* @param {RoomMember} The room member to check
88+
* Check if this user ID is in fact a conference bot.
89+
* @param {string} userId The user ID to check.
9090
* @return {boolean} True if it is a conference bot.
9191
*/
92-
module.exports.isConferenceUser = function(roomMember) {
93-
if (roomMember.userId.indexOf("@" + USER_PREFIX) !== 0) {
92+
module.exports.isConferenceUser = function(userId) {
93+
if (userId.indexOf("@" + USER_PREFIX) !== 0) {
9494
return false;
9595
}
96-
var base64part = roomMember.userId.split(":")[0].substring(1 + USER_PREFIX.length);
96+
var base64part = userId.split(":")[0].substring(1 + USER_PREFIX.length);
9797
if (base64part) {
9898
var decoded = new Buffer(base64part, "base64").toString();
9999
// ! $STUFF : $STUFF

0 commit comments

Comments
 (0)