aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/protonet
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-06-20 11:08:00 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-20 05:47:40 +0000
commit8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea (patch)
treedbbc5d0bf44f56a1024eae1d9799c47853401e0d /recipes/protonet
parentRenamed 'glowingbear' --> 'glowing-bear' and 'ex-google-voice' --> 'google-vo... (diff)
downloadferdium-recipes-8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea.tar.gz
ferdium-recipes-8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea.tar.zst
ferdium-recipes-8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea.zip
Added new services
- 'air-droid' - 'basecamp' - 'box' - 'buffer' - 'chatra' - 'easy-redmine' - 'feedbin' - 'iCloud' - 'jollor' - 'nomadlist' - 'paymo' - 'pivotal-tracker' - 'plan' - 'podio' - 'protonet' - 'teamleader'
Diffstat (limited to 'recipes/protonet')
-rw-r--r--recipes/protonet/icon.pngbin0 -> 91473 bytes
-rw-r--r--recipes/protonet/icon.svg1
-rwxr-xr-xrecipes/protonet/index.js1
-rwxr-xr-xrecipes/protonet/package.json28
-rwxr-xr-xrecipes/protonet/webview.js10
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 @@
1module.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}