From 6f5e4a00588aefdda7a5a1cfe70935870e7e234a Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 22 Sep 2020 20:56:48 +0200 Subject: Unpack recipes and update recipes icons (#292) Co-authored-by: Amine Mouafik --- recipes/NewsBlur/README.md | 5 +++++ recipes/NewsBlur/icon.png | Bin 0 -> 43508 bytes recipes/NewsBlur/icon.svg | 1 + recipes/NewsBlur/index.js | 2 ++ recipes/NewsBlur/package.json | 24 ++++++++++++++++++++++++ recipes/NewsBlur/webview.js | 11 +++++++++++ 6 files changed, 43 insertions(+) create mode 100644 recipes/NewsBlur/README.md create mode 100644 recipes/NewsBlur/icon.png create mode 100644 recipes/NewsBlur/icon.svg create mode 100644 recipes/NewsBlur/index.js create mode 100644 recipes/NewsBlur/package.json create mode 100644 recipes/NewsBlur/webview.js (limited to 'recipes/NewsBlur') diff --git a/recipes/NewsBlur/README.md b/recipes/NewsBlur/README.md new file mode 100644 index 0000000..5aed34c --- /dev/null +++ b/recipes/NewsBlur/README.md @@ -0,0 +1,5 @@ +# NewsBlur for Franz +This is the Franz recipe for NewsBlur + +### How to create your own Franz recipes: +* [Read the documentation](https://github.com/meetfranz/plugins) diff --git a/recipes/NewsBlur/icon.png b/recipes/NewsBlur/icon.png new file mode 100644 index 0000000..364a658 Binary files /dev/null and b/recipes/NewsBlur/icon.png differ diff --git a/recipes/NewsBlur/icon.svg b/recipes/NewsBlur/icon.svg new file mode 100644 index 0000000..d605136 --- /dev/null +++ b/recipes/NewsBlur/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/NewsBlur/index.js b/recipes/NewsBlur/index.js new file mode 100644 index 0000000..46f936f --- /dev/null +++ b/recipes/NewsBlur/index.js @@ -0,0 +1,2 @@ +// just pass through Franz +module.exports = Franz => Franz; diff --git a/recipes/NewsBlur/package.json b/recipes/NewsBlur/package.json new file mode 100644 index 0000000..8b8b0b4 --- /dev/null +++ b/recipes/NewsBlur/package.json @@ -0,0 +1,24 @@ +{ + "id": "NewsBlur", + "name": "NewsBlur", + "version": "1.0.0", + "description": "NewsBlur is a personal news reader", + "main": "index.js", + "author": "takehitosato@gmail.com", + "license": "MIT", + "config": { + "serviceURL": "https://newsblur.com", + "serviceName": "NewsBlur", + "message": "", + "popup": [], + "hasNotificationSound": true, + "hasIndirectMessages": false, + "hasTeamID": false, + "customURL": false, + "hostedOnly": false, + "webviewOptions": { + "disablewebsecurity": "" + }, + "openDevTools": false + } +} diff --git a/recipes/NewsBlur/webview.js b/recipes/NewsBlur/webview.js new file mode 100644 index 0000000..15704f4 --- /dev/null +++ b/recipes/NewsBlur/webview.js @@ -0,0 +1,11 @@ +const path = require('path'); + +module.exports = (Franz, options) => { + const getMessages = () => { + const unreadCount = 0; + + Franz.setBadge(unreadCount); + } + + Franz.loop(getMessages); +}; -- cgit v1.2.3-54-g00ecf