aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/outlook
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-29 11:06:10 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-29 11:07:31 +0530
commit7576ea7f6b6f68d3e19474be06b38123d918ee5d (patch)
tree5ddde7141122d532749582c498cf5b350995ce64 /recipes/outlook
parentNew recipe: aws (amazon web services) (#643) (diff)
downloadferdium-recipes-7576ea7f6b6f68d3e19474be06b38123d918ee5d.tar.gz
ferdium-recipes-7576ea7f6b6f68d3e19474be06b38123d918ee5d.tar.zst
ferdium-recipes-7576ea7f6b6f68d3e19474be06b38123d918ee5d.zip
cleanup: Remove duplicated recipes for Outlook Web App and Enterprise OWA. Fixes #523
Diffstat (limited to 'recipes/outlook')
-rw-r--r--recipes/outlook/LICENSE19
-rw-r--r--recipes/outlook/README.md5
-rw-r--r--recipes/outlook/icon.svg1
-rw-r--r--recipes/outlook/index.js5
-rw-r--r--recipes/outlook/package.json10
-rw-r--r--recipes/outlook/webview.js33
6 files changed, 0 insertions, 73 deletions
diff --git a/recipes/outlook/LICENSE b/recipes/outlook/LICENSE
deleted file mode 100644
index 6802bc4..0000000
--- a/recipes/outlook/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
1MIT License
2
3Permission is hereby granted, free of charge, to any person obtaining a copy
4of this software and associated documentation files (the "Software"), to deal
5in the Software without restriction, including without limitation the rights
6to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7copies of the Software, and to permit persons to whom the Software is
8furnished to do so, subject to the following conditions:
9
10The above copyright notice and this permission notice shall be included in all
11copies or substantial portions of the Software.
12
13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19SOFTWARE. \ No newline at end of file
diff --git a/recipes/outlook/README.md b/recipes/outlook/README.md
deleted file mode 100644
index 47dbb00..0000000
--- a/recipes/outlook/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
1# Outlook Web App for Ferdi
2This is the Ferdi 5 Recipe for Outlook Web App
3
4### How to create your own Ferdi recipes:
5* [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md.)
diff --git a/recipes/outlook/icon.svg b/recipes/outlook/icon.svg
deleted file mode 100644
index 19b1242..0000000
--- a/recipes/outlook/icon.svg
+++ /dev/null
@@ -1 +0,0 @@
1<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M28.596 2H11.404A1.404 1.404 0 0 0 10 3.404V5l9.69 3L30 5V3.404A1.404 1.404 0 0 0 28.596 2z" fill="#0364b8"/><path d="M31.65 17.405A11.341 11.341 0 0 0 32 16a.666.666 0 0 0-.333-.576l-.013-.008-.004-.002L20.812 9.24a1.499 1.499 0 0 0-.145-.083 1.5 1.5 0 0 0-1.334 0 1.49 1.49 0 0 0-.145.082L8.35 15.415l-.004.002-.012.007A.666.666 0 0 0 8 16a11.344 11.344 0 0 0 .35 1.405l11.492 8.405z" fill="#0a2767"/><path d="M24 5h-7l-2.021 3L17 11l7 6h6v-6z" fill="#28a8ea"/><path d="M10 5h7v6h-7z" fill="#0078d4"/><path d="M24 5h6v6h-6z" fill="#50d9ff"/><path d="m24 17-7-6h-7v6l7 6 10.832 1.768z" fill="#0364b8"/><path d="M10.031 5H30" fill="none"/><path d="M17 11h7v6h-7z" fill="#0078d4"/><path d="M10 17h7v6h-7z" fill="#064a8c"/><path d="M24 17h6v6h-6z" fill="#0078d4"/><path d="m20.19 25.218-11.793-8.6.495-.87s10.745 6.12 10.909 6.212a.528.528 0 0 0 .42-.012l10.933-6.23.496.869z" fill="#0a2767" opacity=".5"/><path d="m31.667 16.577-.014.008-.003.002-10.838 6.174a1.497 1.497 0 0 1-1.46.091l3.774 5.061 8.254 1.797v.004A1.498 1.498 0 0 0 32 28.5V16a.666.666 0 0 1-.333.577z" fill="#1490df"/><path d="M32 28.5v-.738l-9.983-5.688-1.205.687a1.497 1.497 0 0 1-1.46.091l3.774 5.061 8.254 1.797v.004A1.498 1.498 0 0 0 32 28.5z" opacity=".05"/><path d="M31.95 28.883 21.007 22.65l-.195.11a1.497 1.497 0 0 1-1.46.092l3.774 5.061 8.254 1.797v.004a1.501 1.501 0 0 0 .57-.83z" opacity=".1"/><path d="M8.35 16.59v-.01h-.01l-.03-.02A.65.65 0 0 1 8 16v12.5A1.498 1.498 0 0 0 9.5 30h21a1.503 1.503 0 0 0 .37-.05.637.637 0 0 0 .18-.06.142.142 0 0 0 .06-.02 1.048 1.048 0 0 0 .23-.13c.02-.01.03-.01.04-.03z" fill="#28a8ea"/><path d="M18 24.667V8.333A1.337 1.337 0 0 0 16.667 7H10.03V14.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16 26h8.667A1.337 1.337 0 0 0 18 24.667z" opacity=".1"/><path d="M17 25.667V9.333A1.337 1.337 0 0 0 15.667 8H10.03V14.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16 27h7.667A1.337 1.337 0 0 0 17 25.667z" opacity=".2"/><path d="M17 23.667V9.333A1.337 1.337 0 0 0 15.667 8H10.03V14.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16 25h7.667A1.337 1.337 0 0 0 17 23.667z" opacity=".2"/><path d="M16 23.667V9.333A1.337 1.337 0 0 0 14.667 8H10.03V14.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16 25h6.667A1.337 1.337 0 0 0 16 23.667z" opacity=".2"/><path d="M1.333 8h13.334A1.333 1.333 0 0 1 16 9.333v13.334A1.333 1.333 0 0 1 14.667 24H1.333A1.333 1.333 0 0 1 0 22.667V9.333A1.333 1.333 0 0 1 1.333 8z" fill="#0078d4"/><path d="M3.867 13.468a4.181 4.181 0 0 1 1.642-1.814A4.965 4.965 0 0 1 8.119 11a4.617 4.617 0 0 1 2.413.62 4.14 4.14 0 0 1 1.598 1.733 5.597 5.597 0 0 1 .56 2.55 5.901 5.901 0 0 1-.577 2.666 4.239 4.239 0 0 1-1.645 1.794A4.8 4.8 0 0 1 7.963 21a4.729 4.729 0 0 1-2.468-.627 4.204 4.204 0 0 1-1.618-1.736 5.459 5.459 0 0 1-.567-2.519 6.055 6.055 0 0 1 .557-2.65zm1.75 4.258a2.716 2.716 0 0 0 .923 1.194 2.411 2.411 0 0 0 1.443.435 2.533 2.533 0 0 0 1.541-.449 2.603 2.603 0 0 0 .897-1.197 4.626 4.626 0 0 0 .286-1.665 5.063 5.063 0 0 0-.27-1.686 2.669 2.669 0 0 0-.866-1.24 2.387 2.387 0 0 0-1.527-.473 2.493 2.493 0 0 0-1.477.439 2.741 2.741 0 0 0-.944 1.203 4.776 4.776 0 0 0-.007 3.44z" fill="#fff"/><path d="M0 0h32v32H0z" fill="none"/></svg> \ No newline at end of file
diff --git a/recipes/outlook/index.js b/recipes/outlook/index.js
deleted file mode 100644
index 89568a6..0000000
--- a/recipes/outlook/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
1module.exports = Ferdi => class Outlook extends Ferdi {
2 overrideUserAgent() {
3 return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim();
4 }
5};
diff --git a/recipes/outlook/package.json b/recipes/outlook/package.json
deleted file mode 100644
index 103325b..0000000
--- a/recipes/outlook/package.json
+++ /dev/null
@@ -1,10 +0,0 @@
1{
2 "id": "outlook",
3 "name": "Outlook Web App",
4 "version": "1.2.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://outlook.live.com/mail/",
8 "hasNotificationSound": true
9 }
10}
diff --git a/recipes/outlook/webview.js b/recipes/outlook/webview.js
deleted file mode 100644
index 123158e..0000000
--- a/recipes/outlook/webview.js
+++ /dev/null
@@ -1,33 +0,0 @@
1module.exports = Ferdi => {
2 function getMessages() {
3 let unreadMail = 0;
4
5 if (location.pathname.match(/\/owa/)) {
6 // classic app
7 unreadMail = parseInt(
8 jQuery("span[title*='Inbox'] + div > span")
9 .first()
10 .text(),
11 10,
12 );
13 } else {
14 // new app
15 const favorites = document.querySelector('div[title="Favorites"]');
16 if (!favorites) {
17 return;
18 }
19 const folders = Array.from(favorites.nextSibling.childNodes);
20
21 unreadMail = folders.reduce((count, child) => {
22 const unread = child.querySelector('.screenReaderOnly');
23 return unread && unread.textContent === 'unread'
24 ? count + parseInt(unread.previousSibling.textContent, 10)
25 : count;
26 }, 0);
27 }
28
29 Ferdi.setBadge(unreadMail);
30 }
31
32 Ferdi.loop(getMessages);
33};