aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/twist
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/twist')
-rw-r--r--recipes/twist/icon.pngbin0 -> 17652 bytes
-rw-r--r--recipes/twist/icon.svg12
-rw-r--r--recipes/twist/index.js3
-rw-r--r--recipes/twist/package.json23
-rw-r--r--recipes/twist/webview.js10
5 files changed, 48 insertions, 0 deletions
diff --git a/recipes/twist/icon.png b/recipes/twist/icon.png
new file mode 100644
index 0000000..ceee665
--- /dev/null
+++ b/recipes/twist/icon.png
Binary files 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 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
4 <title>Pin_tab_twist</title>
5 <desc>Created with Sketch.</desc>
6 <defs></defs>
7 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8 <g id="Pin_tab_twist" fill="#000000">
9 <path d="M49,34.375 C49,35.257 48.546,36.077 47.797,36.545 L42.099,40.106 L39.901,47.788 C39.857,47.943 39.744,48.026 39.598,48.026 C39.557,48.026 39.488,48.016 39.412,47.964 L34.716,44.722 L24.468,51.126 C23.829,51.526 23,51.14 23,50.271 L23,39.341 C23,38.468 23.357,37.698 24.279,37.166 C25.202,36.634 47.401,23.819 47.491,23.768 C47.626,23.689 47.78,23.595 48.078,23.595 C48.6,23.595 49,23.974 49,24.693 L49,34.375 Z M14,31 L14,35.496 C14,35.534 13.973,35.567 13.935,35.574 C13.935,35.574 10.366,36.269 9.521,36.433 C8.678,36.596 7.998,36.04 7.998,35.176 L7.998,25.361 C7.998,24.564 8.5,23.91 9.373,23.777 C10.246,23.645 33.008,20.208 33.008,20.208 C33.98,20.043 34.592,19.996 34.998,19.996 C35.358,19.996 36,20.387 36,20.896 L36,22.618 C36,22.653 35.977,22.684 35.942,22.694 L15.145,28.862 C14.16,29.21 14,29.813 14,31 L14,31 Z M56,0 L8,0 C3.582,0 0,3.582 0,8 L0,11.51 C0,11.51 19.277,16.393 19.561,16.465 C19.866,16.543 20,16.636 20,16.786 C20,16.989 19.906,17 19.74,17 L0,17 L0,56 C0,60.418 3.582,64 8,64 L56,64 C60.418,64 64,60.418 64,56 L64,8 C64,3.582 60.418,0 56,0 L56,0 Z" id="Page-1"></path>
10 </g>
11 </g>
12</svg> \ 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 @@
1"use strict";
2
3module.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 @@
1{
2 "id": "twist",
3 "name": "twist",
4 "version": "1.0.1",
5 "description": "twist",
6 "main": "index.js",
7 "author": "Stuart Clark <stuart@realityloop.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://twistapp.com/login",
11 "message": "",
12 "popup": [],
13 "hasNotificationSound": true,
14 "hasIndirectMessages": false,
15 "hasTeamID": false,
16 "hasPredefinedUrl": true,
17 "hostedOnly": false,
18 "webviewOptions": {
19 "disablewebsecurity": ""
20 },
21 "openDevTools": false
22 }
23}
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 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 const count = document.querySelectorAll('.switch_pane>.unread').length;
6 Franz.setBadge(count);
7 };
8
9 Franz.loop(getMessages);
10}; \ No newline at end of file