From f04cce9ffc80ecfc45721034f964e8140f74ad0d Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Fri, 7 Apr 2017 16:17:21 +0200 Subject: [PATCH 1/5] Make sure external links are opened in the browser. --- src/document/documentWindow.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/document/documentWindow.js b/src/document/documentWindow.js index 40f6d63..95fa9b7 100644 --- a/src/document/documentWindow.js +++ b/src/document/documentWindow.js @@ -9,6 +9,7 @@ const windowId = currentWindow.id const documentMenuBuilder = new DocumentMenuBuilder() const AppState = require('./AppState') const { dialog } = require('electron').remote +const { shell } = remote let appState = new AppState() @@ -34,6 +35,11 @@ currentWindow.on('focus', () => { }) }) +// HACK: we should find a better solution to intercept window.open calls +// (e.g. as done by LinkComponent) +window.open = function(url /*, frameName, features*/) { + shell.openExternal(url) +} window.onbeforeunload = function () { From 4979fb5b564093337e78d70bd52e3a106b0c9327 Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Fri, 7 Apr 2017 16:17:48 +0200 Subject: [PATCH 2/5] Use a new library folder. --- src/shared/initBackend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/initBackend.js b/src/shared/initBackend.js index 96d5684..4575135 100644 --- a/src/shared/initBackend.js +++ b/src/shared/initBackend.js @@ -6,7 +6,7 @@ const fs = require('fs') const { app } = remote const DOCUMENTS_DIR = app.getPath('documents') -const STENCILA_LIBRARY_DIR = path.join(DOCUMENTS_DIR, 'Stencila-0.25') +const STENCILA_LIBRARY_DIR = path.join(DOCUMENTS_DIR, 'Stencila-0.25.1') const STENCILA_LIBRARY_FILE = path.join(STENCILA_LIBRARY_DIR, 'library.json') const fileSystemBackend = new FileSystemBackend(STENCILA_LIBRARY_DIR) From 0786dfe9c0c421caa83fdcb29d55c4c078e1a1dd Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Fri, 7 Apr 2017 16:19:08 +0200 Subject: [PATCH 3/5] Added CHANGELOG. --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..80a2841 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +## 0.25.1 + +- Fixed an issue where plots didn't update when using the pipe (`|`) operator +- Open external links in browser +- Improved welcome document + +## 0.25.0 + +Initial release From 3954b77390e3893e86181a08706c66ae36063649 Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Fri, 7 Apr 2017 16:25:48 +0200 Subject: [PATCH 4/5] Update Stencila. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 958f0be..146e432 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "start": "node make && npm-run-all --parallel watch app" }, "dependencies": { - "stencila": "^0.25.2", + "stencila": "^0.25.7", "stencila-node": "^0.25.0" }, "devDependencies": { From d6d955f5242b4df4657c8f838869167f8c170233 Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Fri, 7 Apr 2017 16:26:39 +0200 Subject: [PATCH 5/5] Bump version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 146e432..1c35a0a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "stencila-desktop", "productName": "Stencila Desktop", "description": "Stencila for the desktop", - "version": "0.25.0", + "version": "0.25.1", "author": "Nokome Bentley", "homepage": "http://stenci.la", "license": "MIT",