From 728d339739b63e9bb59e457e4a84fe9a65b93fc9 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sat, 28 Sep 2019 12:10:25 +0200 Subject: Add uncompressed recipes --- uncompressed/kaizala/README.md | 5 +++++ uncompressed/kaizala/icon.svg | 9 +++++++++ uncompressed/kaizala/index.js | 8 ++++++++ uncompressed/kaizala/package.json | 14 ++++++++++++++ uncompressed/kaizala/webview.js | 10 ++++++++++ 5 files changed, 46 insertions(+) create mode 100644 uncompressed/kaizala/README.md create mode 100644 uncompressed/kaizala/icon.svg create mode 100644 uncompressed/kaizala/index.js create mode 100644 uncompressed/kaizala/package.json create mode 100644 uncompressed/kaizala/webview.js (limited to 'uncompressed/kaizala') diff --git a/uncompressed/kaizala/README.md b/uncompressed/kaizala/README.md new file mode 100644 index 0000000..8aae93e --- /dev/null +++ b/uncompressed/kaizala/README.md @@ -0,0 +1,5 @@ +# Microsoft Kaizala +This is the official Franz recipe for Microsoft Kaizala + +### How to create your own Franz recipes: +* [Read the documentation](https://meetfranz.com/developer) diff --git a/uncompressed/kaizala/icon.svg b/uncompressed/kaizala/icon.svg new file mode 100644 index 0000000..0b5ed3a --- /dev/null +++ b/uncompressed/kaizala/icon.svg @@ -0,0 +1,9 @@ + + + + microsoft-kaizala + Created with Sketch. + + + + \ No newline at end of file diff --git a/uncompressed/kaizala/index.js b/uncompressed/kaizala/index.js new file mode 100644 index 0000000..dd10055 --- /dev/null +++ b/uncompressed/kaizala/index.js @@ -0,0 +1,8 @@ +"use strict"; + +module.exports = Franz => class Messenger extends Franz { + overrideUserAgent() { + return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, ''); + } + +}; \ No newline at end of file diff --git a/uncompressed/kaizala/package.json b/uncompressed/kaizala/package.json new file mode 100644 index 0000000..598ef74 --- /dev/null +++ b/uncompressed/kaizala/package.json @@ -0,0 +1,14 @@ +{ + "id": "kaizala", + "name": "Microsoft Kaizala", + "version": "1.0.0", + "description": "Microsoft Kaizala", + "main": "index.js", + "author": "Stefan Malzner ", + "license": "MIT", + "repository": "https://github.com/meetfranz/recipe-microsoft-kaizala", + "config": { + "serviceURL": "https://webapp.kaiza.la", + "hasNotificationSound": true + } +} diff --git a/uncompressed/kaizala/webview.js b/uncompressed/kaizala/webview.js new file mode 100644 index 0000000..f77b276 --- /dev/null +++ b/uncompressed/kaizala/webview.js @@ -0,0 +1,10 @@ +"use strict"; + +module.exports = Franz => { + const getMessages = function getMessages() { + const count = document.querySelectorAll('.unseen-msg-count').length; + Franz.setBadge(count); + }; + + Franz.loop(getMessages); +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2