aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kaizala
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/kaizala
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/kaizala')
-rw-r--r--recipes/kaizala/README.md5
-rw-r--r--recipes/kaizala/icon.pngbin0 -> 80000 bytes
-rw-r--r--recipes/kaizala/icon.svg9
-rw-r--r--recipes/kaizala/index.js11
-rw-r--r--recipes/kaizala/package.json14
-rw-r--r--recipes/kaizala/webview.js10
6 files changed, 49 insertions, 0 deletions
diff --git a/recipes/kaizala/README.md b/recipes/kaizala/README.md
new file mode 100644
index 0000000..8aae93e
--- /dev/null
+++ b/recipes/kaizala/README.md
@@ -0,0 +1,5 @@
1# Microsoft Kaizala
2This is the official Franz recipe for Microsoft Kaizala
3
4### How to create your own Franz recipes:
5* [Read the documentation](https://meetfranz.com/developer)
diff --git a/recipes/kaizala/icon.png b/recipes/kaizala/icon.png
new file mode 100644
index 0000000..895b808
--- /dev/null
+++ b/recipes/kaizala/icon.png
Binary files differ
diff --git a/recipes/kaizala/icon.svg b/recipes/kaizala/icon.svg
new file mode 100644
index 0000000..0b5ed3a
--- /dev/null
+++ b/recipes/kaizala/icon.svg
@@ -0,0 +1,9 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="80px" height="80px" viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com -->
4 <title>microsoft-kaizala</title>
5 <desc>Created with Sketch.</desc>
6 <g id="microsoft-kaizala" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7 <path d="M74.19944,20.9142425 C77.7415021,26.1133779 79.488252,31.4735528 79.9059854,37.2764619 C81.2463992,55.9186627 68.1039021,72.4917791 50.0571258,75.4233974 C29.2512278,78.8032343 10.8823557,63.7263401 8.89576832,43.9543694 C8.2352243,37.3816611 8.6019179,30.6927851 8.69210471,24.0602479 C8.73918024,20.5891719 8.40221855,17.4820554 5.38294267,15.1761481 C3.94986441,14.081777 2.77099401,12.6433894 1.51531617,11.3241612 C0.31117365,10.0592775 -0.471766755,8.63584721 0.320093224,6.83050879 C1.13177448,4.97930151 2.5331387,4.01954551 4.58117205,4.02253695 C11.4323961,4.03250845 18.2836202,4.02303553 25.1348443,4.02203838 C31.1605122,4.02153981 37.1866757,3.96420373 43.2118481,4.03649704 C52.453518,4.14718059 60.6555621,7.10173334 67.713423,13.2092715 C69.1534387,14.4557079 69.399718,15.2703787 67.9126268,16.7426693 C59.4405179,25.1296903 51.0253951,33.5770388 42.6841066,42.0956835 C41.2277383,43.5834299 40.3892984,43.3421198 39.1083484,41.9929771 C36.1445721,38.8709033 33.0638502,35.8605102 30.0049318,32.8311713 C28.1481738,30.9919298 25.7542592,30.7790384 24.322172,32.2622977 C22.8985088,33.7365826 23.1512301,36.1043132 25.006006,37.9809477 C29.137751,42.1619939 33.2873351,46.3260885 37.4502986,50.476223 C40.1266665,53.1445939 41.9155366,53.1710184 44.61569,50.4682458 C53.6859059,41.3897019 62.7204435,32.2747621 71.7748024,23.1797652 C72.4645828,22.4872452 73.2019343,21.8435855 74.19944,20.9142425" id="Fill-1" fill="#0078D6"></path>
8 </g>
9</svg> \ No newline at end of file
diff --git a/recipes/kaizala/index.js b/recipes/kaizala/index.js
new file mode 100644
index 0000000..f9b8099
--- /dev/null
+++ b/recipes/kaizala/index.js
@@ -0,0 +1,11 @@
1"use strict";
2
3module.exports = (Franz) =>
4 class Messenger extends Franz {
5 overrideUserAgent() {
6 return window.navigator.userAgent.replace(
7 /(Ferdi|Electron)\/\S+ \([^)]+\)/g,
8 ""
9 );
10 }
11 };
diff --git a/recipes/kaizala/package.json b/recipes/kaizala/package.json
new file mode 100644
index 0000000..2867216
--- /dev/null
+++ b/recipes/kaizala/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "kaizala",
3 "name": "Microsoft Kaizala",
4 "version": "1.1.0",
5 "description": "Microsoft Kaizala",
6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io>",
8 "license": "MIT",
9 "repository": "https://github.com/meetfranz/recipe-microsoft-kaizala",
10 "config": {
11 "serviceURL": "https://webapp.kaiza.la",
12 "hasNotificationSound": true
13 }
14}
diff --git a/recipes/kaizala/webview.js b/recipes/kaizala/webview.js
new file mode 100644
index 0000000..f77b276
--- /dev/null
+++ b/recipes/kaizala/webview.js
@@ -0,0 +1,10 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 const count = document.querySelectorAll('.unseen-msg-count').length;
6 Franz.setBadge(count);
7 };
8
9 Franz.loop(getMessages);
10}; \ No newline at end of file