diff options
author | 2019-09-28 12:10:25 +0200 | |
---|---|---|
committer | 2019-09-28 12:10:25 +0200 | |
commit | 728d339739b63e9bb59e457e4a84fe9a65b93fc9 (patch) | |
tree | a0fc6180ea26fa9ef397458e8eb6491031d6437d /uncompressed/msteams | |
parent | Add list of recipes (diff) | |
download | ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.gz ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.zst ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.zip |
Add uncompressed recipes
Diffstat (limited to 'uncompressed/msteams')
-rw-r--r-- | uncompressed/msteams/icon.svg | 1 | ||||
-rw-r--r-- | uncompressed/msteams/index.js | 8 | ||||
-rw-r--r-- | uncompressed/msteams/package.json | 13 | ||||
-rw-r--r-- | uncompressed/msteams/service.css | 3 | ||||
-rw-r--r-- | uncompressed/msteams/webview.js | 29 |
5 files changed, 54 insertions, 0 deletions
diff --git a/uncompressed/msteams/icon.svg b/uncompressed/msteams/icon.svg new file mode 100644 index 0000000..09b454e --- /dev/null +++ b/uncompressed/msteams/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 226.77 226.77"><defs><style>.cls-1{fill:#5a5c87;}.cls-2{fill:#fff;}</style></defs><title>icon</title><path class="cls-1" d="M.21,226.56V-.21H227V226.56Zm128.43-39.1V39.67a13.17,13.17,0,0,0-2.53,0C98.55,45.81,71,52,43.43,58c-3.34.73-4,2.34-4,5.41q.12,49.87,0,99.74c0,3.34.93,4.85,4.37,5.59,20,4.3,39.93,8.85,59.9,13.29C111.82,183.86,120,185.6,128.64,187.47Z"/><path class="cls-2" d="M128.64,187.47c-8.62-1.87-16.82-3.61-25-5.42-20-4.44-39.9-9-59.9-13.29-3.44-.74-4.38-2.24-4.37-5.59q.16-49.87,0-99.74c0-3.07.7-4.69,4-5.41C71,52,98.55,45.81,126.11,39.69a13.17,13.17,0,0,1,2.53,0Zm-25.3-103.3a23.75,23.75,0,0,0-2.38-.1c-11.15.7-22.31,1.35-33.45,2.17-9.16.68-7,0-7.33,8.29-.08,2,.75,2.69,2.67,2.62a72.33,72.33,0,0,1,9.42,0c1,.09,2.17,1.45,2.71,2.52.46.91.13,2.22.13,3.35q0,18.49,0,37c0,1.75-.25,3.78,2.38,3.85,3,.08,5.93,0,9.32,0,0-1.81,0-3.17,0-4.52,0-12.83.07-25.66,0-38.48,0-3.08.33-4.91,4.16-4.77,4.09.15,8.2-.46,12.41-.75Z"/><path class="cls-2" d="M155.43,103.09c2.32,0,3.08.83,3,3.08-.1,6.79,0,13.58,0,20.37,0,6.29,0,12.57,0,18.86,0,6.7-3.08,10.92-9.37,12.93a24.26,24.26,0,0,1-5.52,1.08,96.72,96.72,0,0,1-10.57,0s0-5.09,0-9.71c0-14.21-.06-42.62-.06-42.62v-4"/><path class="cls-2" d="M162.51,110.83h25.16c0,9.1.36,18-.15,26.87-.25,4.29-3.8,7.35-7.79,8.42-7,1.9-17.12,1.9-17.12,1.9s0-1.92,0-2.35C162.47,134.23,162.51,122.78,162.51,110.83Z"/><path class="cls-2" d="M187.88,91.17a12.78,12.78,0,0,1-12.66,12.73A12.64,12.64,0,0,1,162.5,91.28a12.85,12.85,0,0,1,12.6-12.82A13,13,0,0,1,187.88,91.17Z"/><path class="cls-2" d="M132.41,83.85s1.3-10,6.82-12A12.65,12.65,0,0,1,150.4,94.3c-5,3.5-12.58,3.13-16-1.63C132.75,90.43,132.41,83.85,132.41,83.85Z"/><path class="cls-1" d="M103.34,84.17V95.33c-4.21.29-16.58,1.3-16.58,1.3s0,45.42,0,47.23H75.12l0-46.74-14.21.8-.15-11.28"/><rect class="cls-2" x="132.41" y="71.22" width="10.95" height="25.41"/></svg> \ No newline at end of file | |||
diff --git a/uncompressed/msteams/index.js b/uncompressed/msteams/index.js new file mode 100644 index 0000000..0afc5c9 --- /dev/null +++ b/uncompressed/msteams/index.js | |||
@@ -0,0 +1,8 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => class MicrosoftTeams extends Franz { | ||
4 | overrideUserAgent() { | ||
5 | return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '').replace(/(Chrome\/)([^ ]*)/g, '$163.0.3239.84'); | ||
6 | } | ||
7 | |||
8 | }; \ No newline at end of file | ||
diff --git a/uncompressed/msteams/package.json b/uncompressed/msteams/package.json new file mode 100644 index 0000000..037b3c4 --- /dev/null +++ b/uncompressed/msteams/package.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "id": "msteams", | ||
3 | "name": "Microsoft Teams", | ||
4 | "version": "1.1.0", | ||
5 | "description": "Microsoft Teams", | ||
6 | "main": "index.js", | ||
7 | "author": "Stefan Malzner <stefan@adlk.io>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://teams.microsoft.com", | ||
11 | "hasNotificationSound": true | ||
12 | } | ||
13 | } | ||
diff --git a/uncompressed/msteams/service.css b/uncompressed/msteams/service.css new file mode 100644 index 0000000..533004f --- /dev/null +++ b/uncompressed/msteams/service.css | |||
@@ -0,0 +1,3 @@ | |||
1 | notification-banner { | ||
2 | display: none !important; | ||
3 | } | ||
diff --git a/uncompressed/msteams/webview.js b/uncompressed/msteams/webview.js new file mode 100644 index 0000000..d614097 --- /dev/null +++ b/uncompressed/msteams/webview.js | |||
@@ -0,0 +1,29 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | const path = require('path'); | ||
4 | |||
5 | window.electronSafeIpc = { | ||
6 | send: () => null, | ||
7 | on: () => null | ||
8 | }; | ||
9 | window.desktop = undefined; | ||
10 | |||
11 | module.exports = Franz => { | ||
12 | const getMessages = () => { | ||
13 | let messages = 0; | ||
14 | const badge = document.querySelector('.activity-badge.dot-activity-badge .activity-badge'); | ||
15 | |||
16 | if (badge) { | ||
17 | const value = parseInt(badge.innerHTML, 10); | ||
18 | |||
19 | if (!isNaN(value)) { | ||
20 | messages = value; | ||
21 | } | ||
22 | } | ||
23 | |||
24 | Franz.setBadge(messages); | ||
25 | }; | ||
26 | |||
27 | Franz.injectCSS(path.join(__dirname, 'service.css')); | ||
28 | Franz.loop(getMessages); | ||
29 | }; \ No newline at end of file | ||