Skip to content

Commit 299dc7f

Browse files
author
Luke Barnard
committed
Merge branch 'develop' into new-guest-access
2 parents b057e8a + 73ec3e1 commit 299dc7f

297 files changed

Lines changed: 920 additions & 671 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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
/key.pem
66
/lib
77
/node_modules
8-
/electron/node_modules
8+
/electron_app/node_modules
9+
/electron_app/dist
910
/packages/
1011
/webapp
1112
/.npmrc
1213
.DS_Store
1314
npm-debug.log
14-
electron/dist
15-
electron/pub
1615
/config.json
1716
/src/component-index.js

‎.modernizr.json‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"test/css/flexbox",
1010
"test/es5/specification",
1111
"test/css/objectfit",
12-
"test/storage/localstorage"
12+
"test/storage/localstorage",
13+
"test/workers/webworkers",
14+
"test/indexeddb"
1315
]
14-
}
16+
}

‎.travis.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ language: node_js
22
node_js:
33
- 6 # node v6, to match jenkins
44
install:
5+
- scripts/fetch-develop.deps.sh
56
- npm install
6-
- (cd node_modules/matrix-js-sdk && npm install)
7-
- (cd node_modules/matrix-react-sdk && npm install)

‎CHANGELOG.md‎

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,111 @@
1+
Changes in [0.9.10](https://github.com/vector-im/riot-web/releases/tag/v0.9.10) (2017-05-22)
2+
============================================================================================
3+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.10-rc.1...v0.9.10)
4+
5+
* No changes
6+
7+
8+
Changes in [0.9.10-rc.1](https://github.com/vector-im/riot-web/releases/tag/v0.9.10-rc.1) (2017-05-19)
9+
======================================================================================================
10+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.9...v0.9.10-rc.1)
11+
12+
* CSS for left_aligned Dropdowns, and adjustments for Country dd in Login
13+
[\#3959](https://github.com/vector-im/riot-web/pull/3959)
14+
* Add square flag pngs /w genflags.sh script
15+
[\#3953](https://github.com/vector-im/riot-web/pull/3953)
16+
* Add config for riot-bot on desktop app build
17+
[\#3954](https://github.com/vector-im/riot-web/pull/3954)
18+
* Desktop: 'copy link address'
19+
[\#3952](https://github.com/vector-im/riot-web/pull/3952)
20+
* Reduce rageshake log size to 1MB
21+
[\#3943](https://github.com/vector-im/riot-web/pull/3943)
22+
* CSS for putting country dd on same line as phone input
23+
[\#3942](https://github.com/vector-im/riot-web/pull/3942)
24+
* fix #3894
25+
[\#3919](https://github.com/vector-im/riot-web/pull/3919)
26+
* change vector->riot on the surface
27+
[\#3894](https://github.com/vector-im/riot-web/pull/3894)
28+
* move manifest.json outward so it is scoped properly
29+
[\#3888](https://github.com/vector-im/riot-web/pull/3888)
30+
* add to manifest
31+
[\#3799](https://github.com/vector-im/riot-web/pull/3799)
32+
* Automatically update component-index
33+
[\#3886](https://github.com/vector-im/riot-web/pull/3886)
34+
* move electron -> electron_app because npm smart
35+
[\#3877](https://github.com/vector-im/riot-web/pull/3877)
36+
* Fix bug report endpoint in config.sample.json.
37+
[\#3863](https://github.com/vector-im/riot-web/pull/3863)
38+
* Update 2 missed icons to the new icon
39+
[\#3851](https://github.com/vector-im/riot-web/pull/3851)
40+
* Make left panel better for new users (mk II)
41+
[\#3804](https://github.com/vector-im/riot-web/pull/3804)
42+
* match primary package.json
43+
[\#3839](https://github.com/vector-im/riot-web/pull/3839)
44+
* Re-add productName
45+
[\#3829](https://github.com/vector-im/riot-web/pull/3829)
46+
* Remove leading v in /version file, for SemVer and to match Electron ver
47+
[\#3683](https://github.com/vector-im/riot-web/pull/3683)
48+
* Fix scope of callback
49+
[\#3790](https://github.com/vector-im/riot-web/pull/3790)
50+
* Remember and Recall window layout/position state
51+
[\#3622](https://github.com/vector-im/riot-web/pull/3622)
52+
* Remove babelcheck
53+
[\#3808](https://github.com/vector-im/riot-web/pull/3808)
54+
* Include MXID and device id in rageshakes
55+
[\#3809](https://github.com/vector-im/riot-web/pull/3809)
56+
* import Modal
57+
[\#3791](https://github.com/vector-im/riot-web/pull/3791)
58+
* Pin filesize ver to fix break upstream
59+
[\#3775](https://github.com/vector-im/riot-web/pull/3775)
60+
* Improve Room Directory Look & Feel
61+
[\#3751](https://github.com/vector-im/riot-web/pull/3751)
62+
* Fix emote RRs alignment
63+
[\#3742](https://github.com/vector-im/riot-web/pull/3742)
64+
* Remove unused `placeholder` prop on RoomDropTarget
65+
[\#3741](https://github.com/vector-im/riot-web/pull/3741)
66+
* Modify CSS for matrix-org/matrix-react-sdk#833
67+
[\#3732](https://github.com/vector-im/riot-web/pull/3732)
68+
* Warn when exiting due to single-instance
69+
[\#3727](https://github.com/vector-im/riot-web/pull/3727)
70+
* Electron forgets it was maximized when you click on a notification
71+
[\#3709](https://github.com/vector-im/riot-web/pull/3709)
72+
* CSS to make h1 and h2 the same size as h1.
73+
[\#3719](https://github.com/vector-im/riot-web/pull/3719)
74+
* Prevent long room names/topics from pushing UI of the screen
75+
[\#3721](https://github.com/vector-im/riot-web/pull/3721)
76+
* Disable dropdown highlight on focus
77+
[\#3717](https://github.com/vector-im/riot-web/pull/3717)
78+
* Escape HTML Tags from Linux Notifications (electron)
79+
[\#3564](https://github.com/vector-im/riot-web/pull/3564)
80+
* styling for spoilerized access token view in Settings
81+
[\#3651](https://github.com/vector-im/riot-web/pull/3651)
82+
* Fix Webpack conf
83+
[\#3690](https://github.com/vector-im/riot-web/pull/3690)
84+
* Add config.json to .gitignore
85+
[\#3599](https://github.com/vector-im/riot-web/pull/3599)
86+
* add command line arg (--hidden) for electron app
87+
[\#3641](https://github.com/vector-im/riot-web/pull/3641)
88+
* fix ImageView Download functionality
89+
[\#3640](https://github.com/vector-im/riot-web/pull/3640)
90+
* Add cross-env into the mix
91+
[\#3693](https://github.com/vector-im/riot-web/pull/3693)
92+
* Remember acceptance for unsupported browsers.
93+
[\#3694](https://github.com/vector-im/riot-web/pull/3694)
94+
* Cosmetics to go with matrix-org/matrix-react-sdk#811
95+
[\#3692](https://github.com/vector-im/riot-web/pull/3692)
96+
* Cancel quicksearch on ESC
97+
[\#3680](https://github.com/vector-im/riot-web/pull/3680)
98+
* Optimise RoomList and implement quick-search functionality on it.
99+
[\#3654](https://github.com/vector-im/riot-web/pull/3654)
100+
* Progress updates for rageshake uploads
101+
[\#3648](https://github.com/vector-im/riot-web/pull/3648)
102+
* Factor out rageshake upload to a separate file
103+
[\#3645](https://github.com/vector-im/riot-web/pull/3645)
104+
* rageshake: fix race when collecting logs
105+
[\#3644](https://github.com/vector-im/riot-web/pull/3644)
106+
* Fix a flaky test
107+
[\#3649](https://github.com/vector-im/riot-web/pull/3649)
108+
1109
Changes in [0.9.9](https://github.com/vector-im/riot-web/releases/tag/v0.9.9) (2017-04-25)
2110
==========================================================================================
3111
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.9-rc.2...v0.9.9)

‎README.md‎

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,35 @@ to build.
5858
1. Install or update `node.js` so that your `npm` is at least at version `2.0.0`
5959
1. Clone the repo: `git clone https://github.com/vector-im/riot-web.git`
6060
1. Switch to the riot-web directory: `cd riot-web`
61-
1. Install the prerequisites: `npm install`
62-
1. If you are using the `develop` branch of vector-web, you will probably need
63-
to rebuild some of the dependencies, due to
64-
https://github.com/npm/npm/issues/3055:
65-
61+
1. If you're using the `develop` branch, install the develop versions of the
62+
dependencies, as the released ones will be too old:
6663
```
67-
(cd node_modules/matrix-js-sdk && npm install)
68-
(cd node_modules/matrix-react-sdk && npm install)
64+
scripts/fetch-develop-deps.sh
6965
```
7066
Whenever you git pull on riot-web you will also probably need to force an update
71-
to these dependencies - the easiest way is probably:
67+
to these dependencies - the simplest way is to re-run the script, but you can also
68+
manually update and reuild them:
7269
```
73-
rm -rf node_modules/matrjx-{js,react}-sdk && npm i
74-
(cd node_modules/matrix-js-sdk && npm install)
75-
(cd node_modules/matrix-react-sdk && npm install)
70+
cd matrix-js-sdk
71+
git pull
72+
npm install # re-run to pull in any new dependencies
73+
# Depending on your version of npm, npm run build may happen as part of
74+
# the npm install above (https://docs.npmjs.com/misc/scripts#prepublish-and-prepare)
75+
# If in doubt, run it anyway:
76+
npm run build
77+
cd ../matrix-react-sdk
78+
git pull
79+
npm install
80+
npm run build
7681
```
7782
However, we recommend setting up a proper development environment (see "Setting
7883
up a development environment" below) if you want to run your own copy of the
7984
`develop` branch, as it makes it much easier to keep these dependencies
8085
up-to-date. Or just use https://riot.im/develop - the continuous integration
8186
release of the develop branch.
87+
(Note that we don't reference the develop versions in git directly due to
88+
https://github.com/npm/npm/issues/3055)
89+
1. Install the prerequisites: `npm install`
8290
1. Configure the app by copying `config.sample.json` to `config.json` and
8391
modifying it (see below for details)
8492
1. `npm run dist` to build a tarball to deploy. Untaring this file will give

‎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.9.9",
5+
"version": "0.9.10",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "Vector Creations Ltd.",
88
"dependencies": {

‎electron_app/riot.im/config.json‎

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -6,68 +6,11 @@
66
"integrations_ui_url": "https://scalar.vector.im/",
77
"integrations_rest_url": "https://scalar.vector.im/api",
88
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
9+
"welcomeUserId": "@riot-bot:matrix.org",
910
"enableLabs": true,
1011
"roomDirectory": {
1112
"servers": [
1213
"matrix.org"
13-
],
14-
"serverConfig": {
15-
"matrix.org": {
16-
"networks": [
17-
"_matrix",
18-
"gitter",
19-
"irc:freenode",
20-
"irc:mozilla",
21-
"irc:snoonet",
22-
"irc:oftc"
23-
]
24-
}
25-
},
26-
"networks": {
27-
"gitter": {
28-
"protocol": "gitter",
29-
"portalRoomPattern": "#gitter_.*:matrix.org",
30-
"name": "Gitter",
31-
"icon": "https://gitter.im/favicon.ico",
32-
"example": "org/community",
33-
"nativePattern": "[^\\s]+/[^\\s]+$"
34-
},
35-
"irc:freenode": {
36-
"protocol": "irc",
37-
"domain": "chat.freenode.net",
38-
"portalRoomPattern": "#freenode_.*:matrix.org",
39-
"name": "Freenode",
40-
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
41-
"example": "#channel",
42-
"nativePattern": "^#[^\\s]+$"
43-
},
44-
"irc:mozilla": {
45-
"protocol": "irc",
46-
"domain": "chat.freenode.net",
47-
"portalRoomPattern": "#mozilla_.*:matrix.org",
48-
"name": "Mozilla",
49-
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
50-
"example": "#channel",
51-
"nativePattern": "^#[^\\s]+$"
52-
},
53-
"irc:snoonet": {
54-
"protocol": "irc",
55-
"domain": "ipv6-irc.snoonet.org",
56-
"portalRoomPattern": "#_snoonet_.*:matrix.org",
57-
"name": "Snoonet",
58-
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
59-
"example": "#channel",
60-
"nativePattern": "^#[^\\s]+$"
61-
},
62-
"irc:oftc": {
63-
"protocol": "irc",
64-
"domain": "irc.oftc.net",
65-
"portalRoomPattern": "#_oftc_.*:matrix.org",
66-
"name": "OFTC",
67-
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
68-
"example": "#channel",
69-
"nativePattern": "^#[^\\s]+$"
70-
}
71-
}
14+
]
7215
}
7316
}

‎electron_app/src/electron-main.js‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ function onLinkContextMenu(ev, params) {
8686
safeOpenURL(params.linkURL);
8787
},
8888
}));
89+
popup_menu.append(new electron.MenuItem({
90+
label: 'Copy Link Address',
91+
click() {
92+
electron.clipboard.writeText(params.linkURL);
93+
},
94+
}));
8995
popup_menu.popup();
9096
ev.preventDefault();
9197
}
@@ -155,12 +161,31 @@ function startAutoUpdate(update_base_url) {
155161
// no other way to catch this error).
156162
// Assuming we generally run from the console when developing,
157163
// this is far preferable.
158-
process.on('uncaughtException', function (error) {
164+
process.on('uncaughtException', function(error) {
159165
console.log("Unhandled exception", error);
160166
});
161167

162168
electron.ipcMain.on('install_update', installUpdate);
163169

170+
let focusHandlerAttached = false;
171+
electron.ipcMain.on('setBadgeCount', function(ev, count) {
172+
electron.app.setBadgeCount(count);
173+
if (process.platform === 'win32' && mainWindow && !mainWindow.isFocused()) {
174+
if (count > 0) {
175+
if (!focusHandlerAttached) {
176+
mainWindow.once('focus', () => {
177+
mainWindow.flashFrame(false);
178+
focusHandlerAttached = false;
179+
});
180+
focusHandlerAttached = true;
181+
}
182+
mainWindow.flashFrame(true);
183+
} else {
184+
mainWindow.flashFrame(false);
185+
}
186+
}
187+
});
188+
164189
electron.app.commandLine.appendSwitch('--enable-usermedia-screen-capturing');
165190

166191
const shouldQuit = electron.app.makeSingleInstance((commandLine, workingDirectory) => {

0 commit comments

Comments
 (0)