Skip to content

Commit c198dd3

Browse files
committed
Pull in changes from develop
2 parents 095130a + 3bf0409 commit c198dd3

93 files changed

Lines changed: 2025 additions & 1080 deletions

Some content is hidden

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

‎.travis.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ dist: trusty
33

44
# we don't need sudo, so can run in a container, which makes startup much
55
# quicker.
6-
sudo: false
6+
#
7+
# unfortunately we do temporarily require sudo as a workaround for
8+
# https://github.com/travis-ci/travis-ci/issues/8836
9+
sudo: required
710

811
language: node_js
912
node_js:

‎CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Changes in [0.13.5](https://github.com/vector-im/riot-web/releases/tag/v0.13.5) (2018-02-09)
2+
============================================================================================
3+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.13.4...v0.13.5)
4+
5+
* SECURITY UPDATE: Sanitise URLs from 'external_url'. Thanks to walle303 for contacting
6+
us about this vulnerability.
7+
18
Changes in [0.13.4](https://github.com/vector-im/riot-web/releases/tag/v0.13.4) (2018-01-03)
29
============================================================================================
310
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.13.3...v0.13.4)

‎README.md‎

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ You can configure the app by copying `config.sample.json` to
128128
1. `cross_origin_renderer_url`: URL to a static HTML page hosting code to help display
129129
encrypted file attachments. This MUST be hosted on a completely separate domain to
130130
anything else since it is used to isolate the privileges of file attachments to this
131-
domain. Default: `usercontent.riot.im`. This needs to contain v1.html from
131+
domain. Default: `https://usercontent.riot.im/v1.html`. This needs to contain v1.html from
132132
https://github.com/matrix-org/usercontent/blob/master/v1.html
133+
1. `piwik`: an object containing the following properties:
134+
1. `url`: The URL of the Piwik instance to use for collecting Analytics
135+
1. `whitelistedHSUrls`: a list of HS URLs to not redact from the Analytics
136+
1. `whitelistedISUrls`: a list of IS URLs to not redact from the Analytics
137+
1. `siteId`: The Piwik Site ID to use when sending Analytics to the Piwik server configured above
133138

134139
Running as a Desktop app
135140
========================
@@ -314,31 +319,51 @@ For a developer guide, see the [translating dev doc](docs/translating-dev.md).
314319
Triaging issues
315320
===============
316321
317-
Issues will be triaged by the core team using the following primary set of tags:
322+
Issues will be triaged by the core team using the below set of tags.
318323
319-
priority:
324+
Tags are meant to be used in combination - e.g.:
325+
* P1 critical bug == really urgent stuff that should be next in the bugfixing todo list
326+
* "release blocker" == stuff which is blocking us from cutting the next release.
327+
* P1 feature type:voip == what VoIP features should we be working on next?
320328
321-
* P1: top priority; typically blocks releases
329+
priority: **compulsory**
330+
331+
* P1: top priority - i.e. pool of stuff which we should be working on next
322332
* P2: still need to fix, but lower than P1
323333
* P3: non-urgent
324-
* P4: intereseting idea - bluesky some day
334+
* P4: interesting idea - bluesky some day
325335
* P5: recorded for posterity/to avoid duplicates. No intention to resolves right now.
326336
327-
bug or feature:
337+
bug or feature: **compulsory**
328338
329339
* bug
330340
* feature
331341
332-
bug severity:
342+
bug severity: **compulsory, if bug**
333343
334-
* cosmetic - feature works functionally but UI/UX is broken
335344
* critical - whole app doesn't work
336345
* major - entire feature doesn't work
337346
* minor - partially broken feature (but still usable)
347+
* cosmetic - feature works functionally but UI/UX is broken
348+
349+
types
350+
* type:* - refers to a particular part of the app; used to filter bugs
351+
on a given topic - e.g. VOIP, signup, timeline, etc.
338352
339-
additional categories:
353+
additional categories (self-explanatory):
340354
341355
* release blocker
342356
* ui/ux (think of this as cosmetic)
343357
* network (specific to network conditions)
344-
* platform (platform specific)
358+
* platform specific
359+
* accessibility
360+
* maintenance
361+
* performance
362+
* i18n
363+
* blocked - whether this issue currently can't be progressed due to outside factors
364+
365+
community engagement
366+
* easy
367+
* hacktoberfest
368+
* bounty? - proposal to be included in a bounty programme
369+
* bounty - included in Status Open Bounty

‎config.sample.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"welcomeUserId": "@riot-bot:matrix.org",
2525
"piwik": {
2626
"url": "https://piwik.riot.im/",
27+
"whitelistedHSUrls": ["https://matrix.org"],
28+
"whitelistedISUrls": ["https://vector.im", "https://matrix.org"],
2729
"siteId": 1
2830
}
2931
}

‎docs/translating.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Head to the explanations under Steb 2b
3535
## Step 2b: Adding a new language
3636

3737
1. Go to one of the projects listed https://translate.riot.im/projects/riot-web/
38-
2. Click the ``Start new language`` button at the bottom
38+
2. Click the ``Start new translation`` button at the bottom
3939
3. Select a language
4040
4. Start translating like in 2a.3
4141
5. Repeat these steps for the other projects which are listed at the link of step 2b.1

‎electron_app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "src/electron-main.js",
5-
"version": "0.13.4",
5+
"version": "0.13.5",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "Vector Creations Ltd.",
88
"dependencies": {

‎package.json‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "electron_app/src/electron-main.js",
5-
"version": "0.13.4",
5+
"version": "0.13.5",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "New Vector Ltd.",
88
"repository": {
@@ -69,13 +69,12 @@
6969
"highlight.js": "^9.0.0",
7070
"linkifyjs": "^2.1.3",
7171
"matrix-js-sdk": "0.9.2",
72-
"matrix-react-sdk": "0.11.3",
72+
"matrix-react-sdk": "0.11.4",
7373
"modernizr": "^3.1.0",
7474
"pako": "^1.0.5",
7575
"prop-types": "^15.5.10",
7676
"react": "^15.6.0",
77-
"react-dnd": "^2.1.4",
78-
"react-dnd-html5-backend": "^2.1.2",
77+
"react-beautiful-dnd": "^4.0.1",
7978
"react-dom": "^15.6.0",
8079
"react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#5e97aef",
8180
"sanitize-html": "^1.11.1",

‎scripts/copy-res.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// This could readily be automated, but it's nice to explicitly
1010
// control when we languages are available.
1111
const INCLUDE_LANGS = [
12+
{'value': 'ca', 'label': 'Català'},
1213
{'value': 'da', 'label': 'Dansk'},
1314
{'value': 'de_DE', 'label': 'Deutsch'},
1415
{'value': 'en_EN', 'label': 'English'},

‎src/components/structures/BottomLeftMenu.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ module.exports = React.createClass({
167167
const StartChatButton = sdk.getComponent('elements.StartChatButton');
168168
const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton');
169169
const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton');
170-
const GroupsButton = sdk.getComponent('elements.GroupsButton');
171170
const SettingsButton = sdk.getComponent('elements.SettingsButton');
172171

173172
return (
@@ -183,7 +182,6 @@ module.exports = React.createClass({
183182
<div ref={this._collectCreateRoomButton}>
184183
<CreateRoomButton tooltip={true} />
185184
</div>
186-
<GroupsButton tooltip={true} />
187185
<span className="mx_BottomLeftMenu_settings">
188186
<SettingsButton tooltip={true} />
189187
</span>

‎src/components/structures/LeftPanel.js‎

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,28 @@ limitations under the License.
1717
'use strict';
1818

1919
import React from 'react';
20+
import PropTypes from 'prop-types';
2021
import classNames from 'classnames';
22+
import { MatrixClient } from 'matrix-js-sdk';
2123
import { KeyCode } from 'matrix-react-sdk/lib/Keyboard';
2224
import sdk from 'matrix-react-sdk';
2325
import dis from 'matrix-react-sdk/lib/dispatcher';
24-
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
25-
import CallHandler from 'matrix-react-sdk/lib/CallHandler';
26-
import AccessibleButton from 'matrix-react-sdk/lib/components/views/elements/AccessibleButton';
2726
import VectorConferenceHandler from '../../VectorConferenceHandler';
2827

28+
import SettingsStore from 'matrix-react-sdk/lib/settings/SettingsStore';
29+
30+
2931
var LeftPanel = React.createClass({
3032
displayName: 'LeftPanel',
3133

3234
// NB. If you add props, don't forget to update
3335
// shouldComponentUpdate!
3436
propTypes: {
35-
collapsed: React.PropTypes.bool.isRequired,
37+
collapsed: PropTypes.bool.isRequired,
38+
},
39+
40+
contextTypes: {
41+
matrixClient: PropTypes.instanceOf(MatrixClient),
3642
},
3743

3844
getInitialState: function() {
@@ -161,13 +167,18 @@ var LeftPanel = React.createClass({
161167
this.setState({ searchFilter: term });
162168
},
163169

170+
collectRoomList: function(ref) {
171+
this._roomList = ref;
172+
},
173+
164174
render: function() {
165175
const RoomList = sdk.getComponent('rooms.RoomList');
176+
const TagPanel = sdk.getComponent('structures.TagPanel');
166177
const BottomLeftMenu = sdk.getComponent('structures.BottomLeftMenu');
167178
const CallPreview = sdk.getComponent('voip.CallPreview');
168179

169180
let topBox;
170-
if (MatrixClientPeg.get().isGuest()) {
181+
if (this.context.matrixClient.isGuest()) {
171182
const LoginBox = sdk.getComponent('structures.LoginBox');
172183
topBox = <LoginBox collapsed={ this.props.collapsed }/>;
173184
} else {
@@ -183,16 +194,31 @@ var LeftPanel = React.createClass({
183194
}
184195
);
185196

197+
const tagPanelEnabled = SettingsStore.isFeatureEnabled("feature_tag_panel");
198+
const tagPanel = tagPanelEnabled ? <TagPanel /> : <div />;
199+
200+
const containerClasses = classNames(
201+
"mx_LeftPanel_container",
202+
{
203+
"mx_LeftPanel_container_collapsed": this.props.collapsed,
204+
"mx_LeftPanel_container_hasTagPanel": tagPanelEnabled,
205+
},
206+
);
207+
186208
return (
187-
<aside className={classes} onKeyDown={ this._onKeyDown } onFocus={ this._onFocus } onBlur={ this._onBlur }>
188-
{ topBox }
189-
<CallPreview ConferenceHandler={VectorConferenceHandler} />
190-
<RoomList
191-
collapsed={this.props.collapsed}
192-
searchFilter={this.state.searchFilter}
193-
ConferenceHandler={VectorConferenceHandler} />
194-
<BottomLeftMenu collapsed={this.props.collapsed}/>
195-
</aside>
209+
<div className={containerClasses}>
210+
{ tagPanel }
211+
<aside className={classes} onKeyDown={ this._onKeyDown } onFocus={ this._onFocus } onBlur={ this._onBlur }>
212+
{ topBox }
213+
<CallPreview ConferenceHandler={VectorConferenceHandler} />
214+
<RoomList
215+
ref={this.collectRoomList}
216+
collapsed={this.props.collapsed}
217+
searchFilter={this.state.searchFilter}
218+
ConferenceHandler={VectorConferenceHandler} />
219+
<BottomLeftMenu collapsed={this.props.collapsed}/>
220+
</aside>
221+
</div>
196222
);
197223
}
198224
});

0 commit comments

Comments
 (0)