diff options
Diffstat (limited to 'recipes/protonet')
-rw-r--r-- | recipes/protonet/icon.png | bin | 0 -> 91473 bytes | |||
-rw-r--r-- | recipes/protonet/icon.svg | 1 | ||||
-rwxr-xr-x | recipes/protonet/index.js | 1 | ||||
-rwxr-xr-x | recipes/protonet/package.json | 28 | ||||
-rwxr-xr-x | recipes/protonet/webview.js | 10 |
5 files changed, 40 insertions, 0 deletions
diff --git a/recipes/protonet/icon.png b/recipes/protonet/icon.png new file mode 100644 index 0000000..9453735 --- /dev/null +++ b/recipes/protonet/icon.png | |||
Binary files differ | |||
diff --git a/recipes/protonet/icon.svg b/recipes/protonet/icon.svg new file mode 100644 index 0000000..0989981 --- /dev/null +++ b/recipes/protonet/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" enable-background="new 0 0 100 100"><path d="M12.861 72.098c-.442-.258-.802-.879-.802-1.386v-41.43c0-.507.36-1.129.802-1.381l36.338-20.711c.442-.254 1.163-.254 1.603 0l36.337 20.71c.444.255.802.877.802 1.384v41.43c0 .507-.357 1.131-.802 1.383l-36.337 20.715c-.442.25-1.163.25-1.603 0l-36.338-20.714z"/></svg> \ No newline at end of file | |||
diff --git a/recipes/protonet/index.js b/recipes/protonet/index.js new file mode 100755 index 0000000..258da41 --- /dev/null +++ b/recipes/protonet/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Franz => Franz; | |||
diff --git a/recipes/protonet/package.json b/recipes/protonet/package.json new file mode 100755 index 0000000..47c1239 --- /dev/null +++ b/recipes/protonet/package.json | |||
@@ -0,0 +1,28 @@ | |||
1 | { | ||
2 | "id": "protonet", | ||
3 | "name": "protonet", | ||
4 | "version": "1.0.1", | ||
5 | "description": "Protonet", | ||
6 | "main": "index.js", | ||
7 | "author": "Joschka Schulz", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://{teamID}.protonet.info", | ||
11 | "serviceName": "Protonet", | ||
12 | "message": "", | ||
13 | "popup": [], | ||
14 | "hasNotificationSound": true, | ||
15 | "hasIndirectMessages": false, | ||
16 | "hasTeamID": true, | ||
17 | "wording": { | ||
18 | "url": "protonet.info", | ||
19 | "team": "Protonet" | ||
20 | }, | ||
21 | "customURL": false, | ||
22 | "hostedOnly": false, | ||
23 | "webviewOptions": { | ||
24 | "disablewebsecurity": "" | ||
25 | }, | ||
26 | "openDevTools": false | ||
27 | } | ||
28 | } | ||
diff --git a/recipes/protonet/webview.js b/recipes/protonet/webview.js new file mode 100755 index 0000000..8b597cf --- /dev/null +++ b/recipes/protonet/webview.js | |||
@@ -0,0 +1,10 @@ | |||
1 | module.exports = (Franz, options) => { | ||
2 | const getMessages = () => { | ||
3 | const unreadPrivateMessages = parseInt($(".messages .unread-meeps").text()); | ||
4 | const unreadGroupMessages = parseInt($(".today .unread-meeps").text()); | ||
5 | |||
6 | Franz.setBadge(unreadPrivateMessages + unreadGroupMessages); | ||
7 | } | ||
8 | |||
9 | Franz.loop(getMessages); | ||
10 | } | ||