aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nomadlist
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/nomadlist')
-rw-r--r--recipes/nomadlist/icon.pngbin0 -> 37080 bytes
-rw-r--r--recipes/nomadlist/icon.svg8
-rw-r--r--recipes/nomadlist/index.js2
-rw-r--r--recipes/nomadlist/package.json24
-rw-r--r--recipes/nomadlist/webview.js21
5 files changed, 55 insertions, 0 deletions
diff --git a/recipes/nomadlist/icon.png b/recipes/nomadlist/icon.png
new file mode 100644
index 0000000..c9ab1f2
--- /dev/null
+++ b/recipes/nomadlist/icon.png
Binary files differ
diff --git a/recipes/nomadlist/icon.svg b/recipes/nomadlist/icon.svg
new file mode 100644
index 0000000..eac833b
--- /dev/null
+++ b/recipes/nomadlist/icon.svg
@@ -0,0 +1,8 @@
1<?xml version="1.0" encoding="UTF-8" ?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3<svg width="1000pt" height="1000pt" viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg">
4<path fill="#fffefe" d=" M 0.00 0.00 L 1000.00 0.00 L 1000.00 1000.00 L 0.00 1000.00 L 0.00 0.00 Z" />
5<path fill="#ff463c" d=" M 379.37 20.97 C 441.86 5.31 507.39 2.08 571.14 11.22 C 649.90 22.39 725.73 53.28 790.02 100.13 C 851.79 144.84 902.95 204.11 938.22 271.74 C 959.11 312.18 975.04 355.37 983.73 400.11 L 984.23 400.88 C 989.28 428.67 993.22 456.74 993.67 485.02 C 994.82 499.33 993.55 513.66 993.26 527.99 C 990.41 576.14 980.81 623.95 964.29 669.31 C 949.97 707.90 931.28 744.95 907.84 778.82 C 862.82 844.86 801.40 899.50 730.81 936.92 C 698.38 953.71 664.37 967.84 628.93 976.82 L 628.16 977.27 C 618.74 979.43 609.43 982.21 599.87 983.71 L 599.06 984.23 C 578.15 987.80 557.15 991.41 535.94 992.58 C 525.68 993.70 515.34 993.34 505.05 994.07 C 447.85 994.27 390.46 985.30 336.45 966.24 C 270.20 942.94 208.97 905.38 158.39 856.65 C 87.21 788.84 37.16 699.21 16.87 603.00 C 2.61 534.98 2.57 464.00 17.15 396.02 C 18.17 390.61 19.72 385.33 20.85 379.95 C 35.28 321.95 60.57 266.69 94.76 217.68 C 123.31 176.72 158.18 140.19 197.58 109.53 C 251.23 67.93 313.50 37.43 379.37 20.97 Z" />
6<path fill="#fffefe" d=" M 422.41 206.17 C 432.11 214.02 442.34 221.20 452.30 228.73 C 495.21 260.72 538.09 292.75 581.03 324.70 C 634.14 285.26 687.09 245.61 740.17 206.13 C 740.32 323.09 740.20 440.05 740.24 557.02 C 740.19 599.74 740.33 642.47 740.17 685.19 C 738.69 687.08 736.29 687.95 734.37 689.32 C 683.67 721.30 633.04 753.38 582.31 785.31 C 581.42 785.99 580.55 785.97 579.69 785.26 C 527.76 752.53 475.88 719.71 423.98 686.93 C 423.08 686.18 421.77 686.19 420.84 686.87 C 368.47 719.90 316.22 753.13 263.73 785.97 C 263.59 632.25 263.71 478.53 263.67 324.81 C 312.35 288.41 361.08 252.09 409.83 215.78 C 414.02 212.58 418.38 209.58 422.41 206.17 Z" />
7<path fill="#ff463c" d=" M 422.85 238.44 C 432.33 246.27 442.50 253.24 452.24 260.76 C 494.81 292.49 537.33 324.28 579.87 356.06 C 581.27 356.83 580.67 358.72 580.89 360.01 C 580.79 490.95 581.00 621.90 580.78 752.84 C 528.48 719.43 475.85 686.52 423.51 653.18 C 422.39 652.12 423.00 650.35 422.82 649.01 C 422.89 512.15 422.82 375.30 422.85 238.44 Z" />
8</svg>
diff --git a/recipes/nomadlist/index.js b/recipes/nomadlist/index.js
new file mode 100644
index 0000000..46f936f
--- /dev/null
+++ b/recipes/nomadlist/index.js
@@ -0,0 +1,2 @@
1// just pass through Franz
2module.exports = Franz => Franz;
diff --git a/recipes/nomadlist/package.json b/recipes/nomadlist/package.json
new file mode 100644
index 0000000..e2952b9
--- /dev/null
+++ b/recipes/nomadlist/package.json
@@ -0,0 +1,24 @@
1{
2 "id": "nomadlist",
3 "name": "nomadlist",
4 "version": "1.0.2",
5 "description": "Join 10,000+ people in the community for digital nomads and remote workers",
6 "main": "index.js",
7 "author": "Nomad List <hello@nomadlist.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://nomadlist.com/chat",
11 "serviceName": "Nomad List",
12 "message": "",
13 "popup": [],
14 "hasNotificationSound": true,
15 "hasIndirectMessages": false,
16 "hasTeamID": true,
17 "customURL": true,
18 "hostedOnly": false,
19 "webviewOptions": {
20 "disablewebsecurity": ""
21 },
22 "openDevTools": false
23 }
24}
diff --git a/recipes/nomadlist/webview.js b/recipes/nomadlist/webview.js
new file mode 100644
index 0000000..a754a5f
--- /dev/null
+++ b/recipes/nomadlist/webview.js
@@ -0,0 +1,21 @@
1const path = require('path');
2
3module.exports = (Franz, options) => {
4 const getMessages = () => {
5 // get unread messages
6 // const updates = document.getElementById('franz').getAttribute('data-unread');
7 const count = $(".unread").length;
8 Franz.setBadge(count);
9
10 // get conversations in 'My Inbox'
11 // const inbox = document.getElementById('franz').getAttribute('data-inbox');
12
13 // set Franz badge
14 // updates => active unread count
15 // inbox => passive unread count
16 // Franz.setBadge(updates, inbox);
17 };
18
19 // check for new messages every second and update Franz badge
20 Franz.loop(getMessages);
21}; \ No newline at end of file