Compare commits

...

16 Commits

Author SHA1 Message Date
David Baker ec62b5f03c v0.15.3 2018-05-18 12:38:59 +01:00
David Baker 3467ca5230 Prepare changelog for v0.15.3 2018-05-18 12:38:58 +01:00
David Baker d5b21021fb v0.15.3 2018-05-18 12:36:22 +01:00
David Baker 4656d25590 Hide URL options for e2e blob: URL images
These won't work outside of the electron app so there is zero point
in trying to open them in an external browser or offerring to copy
them to the clipboard
2018-05-18 12:24:22 +01:00
David Baker b1f0f33204 Update to electron 2.0.1
It does have a security fix
2018-05-18 12:24:12 +01:00
David Baker d353c13bf1 Comment why we're passing empty objects in 2018-05-18 12:24:02 +01:00
David Baker 8872a6a24a Fix right click menu in electron
Fixes https://github.com/vector-im/riot-web/issues/6762
2018-05-18 12:23:56 +01:00
David Baker b128431128 v0.15.2 2018-05-17 17:10:17 +01:00
David Baker d606ad99b7 Prepare changelog for v0.15.2 2018-05-17 17:10:17 +01:00
David Baker 3598df0d28 v0.15.2 2018-05-17 17:07:50 +01:00
David Baker b90017ff15 react-sdk v0.12.5 2018-05-17 17:06:24 +01:00
David Baker 4e6c2fdd1c v0.15.1 2018-05-16 16:16:23 +01:00
David Baker 25439702bb Prepare changelog for v0.15.1 2018-05-16 16:16:23 +01:00
David Baker 145fb69bdd v0.15.1 2018-05-16 16:12:07 +01:00
David Baker f759bfb1f6 Bump to Electron 2.0.0(!) 2018-05-16 15:30:42 +01:00
David Baker fb87d97d25 Fix hoek version in package-lock.json 2018-05-16 15:17:12 +01:00
5 changed files with 56 additions and 23 deletions
+24
View File
@@ -1,3 +1,27 @@
Changes in [0.15.3](https://github.com/vector-im/riot-web/releases/tag/v0.15.3) (2018-05-18)
============================================================================================
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.15.2...v0.15.3)
* Fix right click menu in electron
[\#6763](https://github.com/vector-im/riot-web/pull/6763)
* Update to electron 2.0.1
[\#6764](https://github.com/vector-im/riot-web/pull/6764)
* Hide URL options for e2e blob: URL images
[\#6765](https://github.com/vector-im/riot-web/pull/6765)
Changes in [0.15.2](https://github.com/vector-im/riot-web/releases/tag/v0.15.2) (2018-05-17)
============================================================================================
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.15.1...v0.15.2)
* Update to matrix-react-sdk v0.12.5 to fix image size jumps
Changes in [0.15.1](https://github.com/vector-im/riot-web/releases/tag/v0.15.1) (2018-05-16)
============================================================================================
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.15.0...v0.15.1)
* Fix package-lock.json which was causing errors building the Electron app
* Update Electron version
Changes in [0.15.0](https://github.com/vector-im/riot-web/releases/tag/v0.15.0) (2018-05-16)
============================================================================================
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.15.0-rc.6...v0.15.0)
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "riot-web",
"productName": "Riot",
"main": "src/electron-main.js",
"version": "0.15.0",
"version": "0.15.3",
"description": "A feature-rich client for Matrix.org",
"author": "Vector Creations Ltd.",
"dependencies": {
+24 -15
View File
@@ -35,12 +35,15 @@ function onLinkContextMenu(ev, params) {
const url = params.linkURL || params.srcURL;
const popupMenu = new Menu();
popupMenu.append(new MenuItem({
label: url,
click() {
safeOpenURL(url);
},
}));
// No point trying to open blob: URLs in an external browser: it ain't gonna work.
if (!url.startsWith('blob:')) {
popupMenu.append(new MenuItem({
label: url,
click() {
safeOpenURL(url);
},
}));
}
if (params.mediaType && params.mediaType === 'image' && !url.startsWith('file://')) {
popupMenu.append(new MenuItem({
@@ -55,13 +58,17 @@ function onLinkContextMenu(ev, params) {
}));
}
popupMenu.append(new MenuItem({
label: 'Copy Link Address',
click() {
clipboard.writeText(url);
},
}));
popupMenu.popup();
// No point offerring to copy a blob: URL either
if (!url.startsWith('blob:')) {
popupMenu.append(new MenuItem({
label: 'Copy Link Address',
click() {
clipboard.writeText(url);
},
}));
}
// popup() requires an options object even for no options
popupMenu.popup({});
ev.preventDefault();
}
@@ -88,7 +95,8 @@ function onSelectedContextMenu(ev, params) {
const items = _CutCopyPasteSelectContextMenus(params);
const popupMenu = Menu.buildFromTemplate(items);
popupMenu.popup();
// popup() requires an options object even for no options
popupMenu.popup({});
ev.preventDefault();
}
@@ -101,7 +109,8 @@ function onEditableContextMenu(ev, params) {
const popupMenu = Menu.buildFromTemplate(items);
popupMenu.popup();
// popup() requires an options object even for no options
popupMenu.popup({});
ev.preventDefault();
}
+4 -4
View File
@@ -1483,7 +1483,7 @@
"resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz",
"integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=",
"requires": {
"hoek": "4.2.0"
"hoek": "4.2.1"
}
},
"boxen": {
@@ -2210,7 +2210,7 @@
"resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz",
"integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==",
"requires": {
"hoek": "4.2.0"
"hoek": "4.2.1"
}
}
}
@@ -4939,7 +4939,7 @@
"requires": {
"boom": "4.3.1",
"cryptiles": "3.1.2",
"hoek": "4.2.0",
"hoek": "4.2.1",
"sntp": "2.0.2"
}
},
@@ -8167,7 +8167,7 @@
"resolved": "https://registry.npmjs.org/sntp/-/sntp-2.0.2.tgz",
"integrity": "sha1-UGQRDwr4X3z9t9a2ekACjOUrSys=",
"requires": {
"hoek": "4.2.0"
"hoek": "4.2.1"
}
},
"socket.io": {
+3 -3
View File
@@ -2,7 +2,7 @@
"name": "riot-web",
"productName": "Riot",
"main": "electron_app/src/electron-main.js",
"version": "0.15.0",
"version": "0.15.3",
"description": "A feature-rich client for Matrix.org",
"author": "New Vector Ltd.",
"repository": {
@@ -65,7 +65,7 @@
"gfm.css": "^1.1.1",
"highlight.js": "^9.0.0",
"matrix-js-sdk": "0.10.2",
"matrix-react-sdk": "0.12.4",
"matrix-react-sdk": "0.12.5",
"modernizr": "^3.1.0",
"prop-types": "^15.5.10",
"react": "^15.6.0",
@@ -144,7 +144,7 @@
"build": {
"appId": "im.riot.app",
"category": "Network",
"electronVersion": "1.8.4",
"electronVersion": "2.0.1",
"//asar=false": "https://github.com/electron-userland/electron-builder/issues/675",
"asar": false,
"dereference": true,