aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/yammer
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/yammer
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/yammer')
-rw-r--r--recipes/yammer/LICENSE21
-rw-r--r--recipes/yammer/README.md3
-rw-r--r--recipes/yammer/icon.pngbin0 -> 41128 bytes
-rw-r--r--recipes/yammer/icon.svg6
-rw-r--r--recipes/yammer/index.js3
-rw-r--r--recipes/yammer/package.json15
-rw-r--r--recipes/yammer/webview.js22
7 files changed, 70 insertions, 0 deletions
diff --git a/recipes/yammer/LICENSE b/recipes/yammer/LICENSE
new file mode 100644
index 0000000..dcde793
--- /dev/null
+++ b/recipes/yammer/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2017 Dave Reid
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
diff --git a/recipes/yammer/README.md b/recipes/yammer/README.md
new file mode 100644
index 0000000..05fbe7d
--- /dev/null
+++ b/recipes/yammer/README.md
@@ -0,0 +1,3 @@
1# Franz Recipe for Yammer
2
3This is the unofficial [Franz 5](https://meetfranz.com/) recipe for [Yammer](https://www.yammer.com/).
diff --git a/recipes/yammer/icon.png b/recipes/yammer/icon.png
new file mode 100644
index 0000000..1443e27
--- /dev/null
+++ b/recipes/yammer/icon.png
Binary files differ
diff --git a/recipes/yammer/icon.svg b/recipes/yammer/icon.svg
new file mode 100644
index 0000000..367157a
--- /dev/null
+++ b/recipes/yammer/icon.svg
@@ -0,0 +1,6 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg width="256" height="256" viewBox="0 0 256 218" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
3 <g>
4 <path d="M245.767868,97.8609328 C245.231169,97.8342313 244.667768,97.828891 244.080337,97.828891 C234.238182,97.847582 163.465986,105.609694 167.017279,112.821756 C170.555221,119.959054 214.134659,123.422232 245.193787,123.435582 C251.703601,122.306111 256.419077,116.423781 255.970493,109.697686 C255.55128,103.793995 251.268367,99.0758488 245.767868,97.8609328 M221.768604,172.71044 C194.527784,157.786999 154.659848,139.843624 148.123333,144.414912 C141.541425,149.020913 199.844043,189.879473 208.468612,194.624321 C208.99463,194.910026 209.485937,195.1717 209.958552,195.422694 C215.378947,197.00075 221.392114,194.926047 224.604298,189.940886 C228.235696,184.266828 226.924654,176.833144 221.768604,172.71044 M221.768604,49.8704151 C226.924654,45.7477111 228.235696,38.3140272 224.604298,32.6453091 C221.392114,27.6574781 215.378947,25.593456 209.958552,27.1661714 C209.485937,27.4091546 208.99463,27.673499 208.468612,27.9565344 C199.844043,32.7093926 141.541425,73.5599423 148.123333,78.1712829 C154.659848,82.7399011 194.527784,64.7991963 221.768604,49.8704151 Z M58.4091277,159.242228 C50.3025673,182.130712 42.7994596,192.848674 25.5610029,192.848674 C23.8948323,192.848674 18.0952772,192.506896 17.7214569,192.472184 C12.1595447,192.186478 6.96611249,195.804525 5.4681611,201.395809 C3.74858766,207.748084 7.47878035,214.292609 13.7963436,216.102968 C18.3649619,216.906681 23.0564068,217.203067 27.2645554,217.203067 C59.039282,217.203067 69.5436328,198.909903 80.0346328,172.203112 L142.024721,17.5616595 C144.259633,10.5551988 140.366561,3.06544187 133.402823,0.83587072 C126.559241,-1.34029753 119.312467,2.27774907 116.861274,8.92641033 L73.303197,124.049716 L72.6196399,124.049716 L26.7999502,8.06128333 C23.6999118,1.50607714 16.0312551,-1.69275668 9.11290914,0.899954202 C2.0156635,3.56208885 -1.62908454,11.3268708 0.701952118,18.4668387 L58.4091277,159.242228 Z" fill="#265495"></path>
5 </g>
6</svg>
diff --git a/recipes/yammer/index.js b/recipes/yammer/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/recipes/yammer/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/yammer/package.json b/recipes/yammer/package.json
new file mode 100644
index 0000000..16b68b7
--- /dev/null
+++ b/recipes/yammer/package.json
@@ -0,0 +1,15 @@
1{
2 "id": "yammer",
3 "name": "Yammer",
4 "version": "1.0.0",
5 "description": "Yammer plugin for Franz 5",
6 "main": "index.js",
7 "author": "Dave Reid <dave@davereid.net>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://www.yammer.com/login",
11 "hasDirectMessages": true,
12 "hasIndirectMessages": true,
13 "hasNotificationSound": false
14 }
15}
diff --git a/recipes/yammer/webview.js b/recipes/yammer/webview.js
new file mode 100644
index 0000000..8f80675
--- /dev/null
+++ b/recipes/yammer/webview.js
@@ -0,0 +1,22 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 let directMessages = 0;
6 let indirectMessages = 0;
7 const notificationElement = document.querySelector(".yj-notifications-indicator-count");
8 const newMessagesElement = document.querySelector(".yj-thread-list--new-messages-notice:not(.is-hidden) .yj-thread-list--new-message-text");
9
10 if (notificationElement && notificationElement.innerHTML.length) {
11 directMessages = parseInt(notificationElement.innerHTML, 10);
12 }
13
14 if (newMessagesElement && newMessagesElement.innerHTML.length) {
15 indirectMessages = parseInt(newMessagesElement.innerHTML.match(/\d+/)[0], 10);
16 }
17
18 Franz.setBadge(directMessages, indirectMessages);
19 };
20
21 Franz.loop(getMessages);
22}; \ No newline at end of file