diff options
-rw-r--r-- | all.json | 11 | ||||
-rw-r--r-- | archives/monday.tar.gz | bin | 0 -> 50395 bytes | |||
-rw-r--r-- | uncompressed/monday/README.md | 5 | ||||
-rw-r--r-- | uncompressed/monday/icon.png | bin | 0 -> 51909 bytes | |||
-rw-r--r-- | uncompressed/monday/icon.svg | 36 | ||||
-rw-r--r-- | uncompressed/monday/index.js | 3 | ||||
-rw-r--r-- | uncompressed/monday/package.json | 14 | ||||
-rw-r--r-- | uncompressed/monday/service.css | 3 | ||||
-rwxr-xr-x | uncompressed/monday/webview.js | 29 |
9 files changed, 101 insertions, 0 deletions
@@ -616,6 +616,17 @@ | |||
616 | } | 616 | } |
617 | }, | 617 | }, |
618 | { | 618 | { |
619 | "author": "Wilhelm Hjelm <wilhelm@hjelms.se>", | ||
620 | "featured": false, | ||
621 | "id": "monday", | ||
622 | "name": "Monday", | ||
623 | "version": "1.0.1", | ||
624 | "icons": { | ||
625 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/monday/icon.png", | ||
626 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/monday/icon.svg" | ||
627 | } | ||
628 | }, | ||
629 | { | ||
619 | "author": "Johannes Becker <mail@jkbecker.net>", | 630 | "author": "Johannes Becker <mail@jkbecker.net>", |
620 | "featured": false, | 631 | "featured": false, |
621 | "id": "monicahq", | 632 | "id": "monicahq", |
diff --git a/archives/monday.tar.gz b/archives/monday.tar.gz new file mode 100644 index 0000000..ba6d907 --- /dev/null +++ b/archives/monday.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/monday/README.md b/uncompressed/monday/README.md new file mode 100644 index 0000000..3d95301 --- /dev/null +++ b/uncompressed/monday/README.md | |||
@@ -0,0 +1,5 @@ | |||
1 | # Monday for Franz | ||
2 | Unofficial 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/uncompressed/monday/icon.png b/uncompressed/monday/icon.png new file mode 100644 index 0000000..77b8980 --- /dev/null +++ b/uncompressed/monday/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/monday/icon.svg b/uncompressed/monday/icon.svg new file mode 100644 index 0000000..a7959f1 --- /dev/null +++ b/uncompressed/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/uncompressed/monday/index.js b/uncompressed/monday/index.js new file mode 100644 index 0000000..e8243fb --- /dev/null +++ b/uncompressed/monday/index.js | |||
@@ -0,0 +1,3 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; \ No newline at end of file | ||
diff --git a/uncompressed/monday/package.json b/uncompressed/monday/package.json new file mode 100644 index 0000000..79ea17d --- /dev/null +++ b/uncompressed/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/uncompressed/monday/service.css b/uncompressed/monday/service.css new file mode 100644 index 0000000..c4e4024 --- /dev/null +++ b/uncompressed/monday/service.css | |||
@@ -0,0 +1,3 @@ | |||
1 | #support_list { | ||
2 | display: none !important; | ||
3 | } | ||
diff --git a/uncompressed/monday/webview.js b/uncompressed/monday/webview.js new file mode 100755 index 0000000..c5a58b6 --- /dev/null +++ b/uncompressed/monday/webview.js | |||
@@ -0,0 +1,29 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | |||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
6 | |||
7 | module.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 | }; | ||