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/twist/icon.png | Bin 0 -> 17652 bytes recipes/twist/icon.svg | 12 ++++++++++++ recipes/twist/index.js | 3 +++ recipes/twist/package.json | 23 +++++++++++++++++++++++ recipes/twist/webview.js | 10 ++++++++++ 5 files changed, 48 insertions(+) create mode 100644 recipes/twist/icon.png create mode 100644 recipes/twist/icon.svg create mode 100644 recipes/twist/index.js create mode 100644 recipes/twist/package.json create mode 100644 recipes/twist/webview.js (limited to 'recipes/twist') diff --git a/recipes/twist/icon.png b/recipes/twist/icon.png new file mode 100644 index 0000000..ceee665 Binary files /dev/null and b/recipes/twist/icon.png differ diff --git a/recipes/twist/icon.svg b/recipes/twist/icon.svg new file mode 100644 index 0000000..7c8aa4b --- /dev/null +++ b/recipes/twist/icon.svg @@ -0,0 +1,12 @@ + + + + Pin_tab_twist + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/recipes/twist/index.js b/recipes/twist/index.js new file mode 100644 index 0000000..e8243fb --- /dev/null +++ b/recipes/twist/index.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; \ No newline at end of file diff --git a/recipes/twist/package.json b/recipes/twist/package.json new file mode 100644 index 0000000..9f318b2 --- /dev/null +++ b/recipes/twist/package.json @@ -0,0 +1,23 @@ +{ + "id": "twist", + "name": "twist", + "version": "1.0.1", + "description": "twist", + "main": "index.js", + "author": "Stuart Clark ", + "license": "MIT", + "config": { + "serviceURL": "https://twistapp.com/login", + "message": "", + "popup": [], + "hasNotificationSound": true, + "hasIndirectMessages": false, + "hasTeamID": false, + "hasPredefinedUrl": true, + "hostedOnly": false, + "webviewOptions": { + "disablewebsecurity": "" + }, + "openDevTools": false + } +} diff --git a/recipes/twist/webview.js b/recipes/twist/webview.js new file mode 100644 index 0000000..fc4b3f1 --- /dev/null +++ b/recipes/twist/webview.js @@ -0,0 +1,10 @@ +"use strict"; + +module.exports = Franz => { + const getMessages = function getMessages() { + const count = document.querySelectorAll('.switch_pane>.unread').length; + Franz.setBadge(count); + }; + + Franz.loop(getMessages); +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2