aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/monday
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-09-22 20:56:48 +0200
committerLibravatar GitHub <noreply@github.com>2020-09-22 19:56:48 +0100
commit6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch)
tree9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /recipes/monday
parentUpdated logos for Outlook/OWA (diff)
downloadferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.gz
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.zst
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.zip
Unpack recipes and update recipes icons (#292)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'recipes/monday')
-rw-r--r--recipes/monday/README.md5
-rw-r--r--recipes/monday/icon.pngbin0 -> 51909 bytes
-rw-r--r--recipes/monday/icon.svg36
-rw-r--r--recipes/monday/index.js3
-rw-r--r--recipes/monday/package.json14
-rw-r--r--recipes/monday/service.css3
-rwxr-xr-xrecipes/monday/webview.js29
7 files changed, 90 insertions, 0 deletions
diff --git a/recipes/monday/README.md b/recipes/monday/README.md
new file mode 100644
index 0000000..3d95301
--- /dev/null
+++ b/recipes/monday/README.md
@@ -0,0 +1,5 @@
1# Monday for Franz
2Unofficial support for monday.com in Franz
3
4### How to create your own Franz recipes:
5* [Read the documentation](https://github.com/meetfranz/plugins)
diff --git a/recipes/monday/icon.png b/recipes/monday/icon.png
new file mode 100644
index 0000000..77b8980
--- /dev/null
+++ b/recipes/monday/icon.png
Binary files differ
diff --git a/recipes/monday/icon.svg b/recipes/monday/icon.svg
new file mode 100644
index 0000000..a7959f1
--- /dev/null
+++ b/recipes/monday/icon.svg
@@ -0,0 +1,36 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4 viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5<style type="text/css">
6 .st0{fill:#FF3D57;}
7 .st1{fill:#FFCB00;}
8 .st2{fill-rule:evenodd;clip-rule:evenodd;fill:#00D647;}
9</style>
10<g>
11 <g>
12 <path class="st0" d="M-652.1,119.8c-7.6,0-15.3-2.1-22.2-6.4c-19.6-12.3-25.6-38.2-13.3-57.8l75.4-120.5
13 c12.3-19.6,38.2-25.6,57.8-13.3c19.6,12.3,25.6,38.2,13.3,57.8l-75.4,120.5C-624.5,112.8-638.2,119.8-652.1,119.8z"/>
14 </g>
15 <g>
16 <path class="st1" d="M-522.1,119.8c-7.6,0-15.3-2.1-22.2-6.4c-19.6-12.3-25.6-38.2-13.3-57.8l75.4-120.5
17 c12.3-19.6,38.2-25.6,57.8-13.3c19.6,12.3,25.6,38.2,13.3,57.8l-75.4,120.5C-494.5,112.8-508.2,119.8-522.1,119.8z"/>
18 </g>
19 <g>
20 <ellipse class="st2" cx="-392.1" cy="78.8" rx="42" ry="40.9"/>
21 </g>
22</g>
23<g>
24 <g>
25 <path class="st0" d="M4.4,22.9c-0.6,0-1.2-0.2-1.8-0.5c-1.6-1-2.1-3.1-1.1-4.7l6.1-9.8c1-1.6,3.1-2.1,4.7-1.1
26 c1.6,1,2.1,3.1,1.1,4.7l-6.1,9.8C6.7,22.4,5.5,22.9,4.4,22.9z"/>
27 </g>
28 <g>
29 <path class="st1" d="M15,22.9c-0.6,0-1.2-0.2-1.8-0.5c-1.6-1-2.1-3.1-1.1-4.7l6.1-9.8c1-1.6,3.1-2.1,4.7-1.1
30 c1.6,1,2.1,3.1,1.1,4.7l-6.1,9.8C17.2,22.4,16.1,22.9,15,22.9z"/>
31 </g>
32 <g>
33 <ellipse class="st2" cx="25.6" cy="19.6" rx="3.4" ry="3.3"/>
34 </g>
35</g>
36</svg>
diff --git a/recipes/monday/index.js b/recipes/monday/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/recipes/monday/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/monday/package.json b/recipes/monday/package.json
new file mode 100644
index 0000000..79ea17d
--- /dev/null
+++ b/recipes/monday/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "monday",
3 "name": "Monday",
4 "version": "1.0.1",
5 "description": "Monday.com",
6 "main": "index.js",
7 "author": "Wilhelm Hjelm <wilhelm@hjelms.se>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://{teamId}.monday.com",
11 "hasTeamId": true,
12 "urlInputSuffix": ".monday.com"
13 }
14}
diff --git a/recipes/monday/service.css b/recipes/monday/service.css
new file mode 100644
index 0000000..c4e4024
--- /dev/null
+++ b/recipes/monday/service.css
@@ -0,0 +1,3 @@
1#support_list {
2 display: none !important;
3}
diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js
new file mode 100755
index 0000000..c5a58b6
--- /dev/null
+++ b/recipes/monday/webview.js
@@ -0,0 +1,29 @@
1"use strict";
2
3var _path = _interopRequireDefault(require("path"));
4
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.exports = Franz => {
8
9 const getMessages = function getMessages() {
10
11 let count = 0;
12
13 let counters = document.querySelectorAll('.surface-control-component .item-counter, .surface-control-component .view-item-counter');
14
15 for (var i = 0; i < counters.length; i++) {
16 count += parseInt(counters[i].textContent);
17 }
18
19 if (isNaN(count)) {
20 count = 0;
21 }
22
23 Franz.setBadge(count);
24 };
25
26 Franz.injectCSS(_path.default.join(__dirname, 'service.css'));
27 Franz.loop(getMessages);
28
29};