From 0957b3a8dbb7ece9b401808dc556520d8e5e7337 Mon Sep 17 00:00:00 2001 From: omove <61330514+omove@users.noreply.github.com> Date: Wed, 15 Jul 2020 09:41:56 -0400 Subject: Update Riot.im to Element.io --- uncompressed/element/README.md | 2 ++ uncompressed/element/icon.png | Bin 0 -> 26967 bytes uncompressed/element/icon.svg | 6 ++++++ uncompressed/element/index.js | 3 +++ uncompressed/element/package.json | 18 ++++++++++++++++++ uncompressed/element/webview.js | 22 ++++++++++++++++++++++ uncompressed/riot/README.md | 11 ----------- uncompressed/riot/icon.png | Bin 45664 -> 0 bytes uncompressed/riot/icon.svg | 16 ---------------- uncompressed/riot/index.js | 4 ---- uncompressed/riot/package.json | 19 ------------------- uncompressed/riot/webview.js | 23 ----------------------- 12 files changed, 51 insertions(+), 73 deletions(-) create mode 100644 uncompressed/element/README.md create mode 100644 uncompressed/element/icon.png create mode 100644 uncompressed/element/icon.svg create mode 100644 uncompressed/element/index.js create mode 100644 uncompressed/element/package.json create mode 100644 uncompressed/element/webview.js delete mode 100644 uncompressed/riot/README.md delete mode 100644 uncompressed/riot/icon.png delete mode 100644 uncompressed/riot/icon.svg delete mode 100644 uncompressed/riot/index.js delete mode 100644 uncompressed/riot/package.json delete mode 100644 uncompressed/riot/webview.js (limited to 'uncompressed') diff --git a/uncompressed/element/README.md b/uncompressed/element/README.md new file mode 100644 index 0000000..affdf4b --- /dev/null +++ b/uncompressed/element/README.md @@ -0,0 +1,2 @@ +# Element for Franz +This is a Franz recipe/plugin for Element diff --git a/uncompressed/element/icon.png b/uncompressed/element/icon.png new file mode 100644 index 0000000..58d2a9f Binary files /dev/null and b/uncompressed/element/icon.png differ diff --git a/uncompressed/element/icon.svg b/uncompressed/element/icon.svg new file mode 100644 index 0000000..b30aafe --- /dev/null +++ b/uncompressed/element/icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/uncompressed/element/index.js b/uncompressed/element/index.js new file mode 100644 index 0000000..17daa35 --- /dev/null +++ b/uncompressed/element/index.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; diff --git a/uncompressed/element/package.json b/uncompressed/element/package.json new file mode 100644 index 0000000..6774ce3 --- /dev/null +++ b/uncompressed/element/package.json @@ -0,0 +1,18 @@ +{ + "id": "element", + "name": "Element", + "version": "1.0.0", + "description": "Decentralized, encrypted chat & collaboration powered by [matrix]", + "main": "index.js", + "author": "Omove <61330514+omove@users.noreply.github.com>", + "license": "MIT", + "config": { + "serviceURL": "https://app.element.io", + "hasTeamID": false, + "hasCustomUrl": true, + "message": "Element's default URL is https://app.element.io/", + "urlInputSuffix": false, + "hasNotificationSound": true, + "hasIndirectMessages": true + } +} diff --git a/uncompressed/element/webview.js b/uncompressed/element/webview.js new file mode 100644 index 0000000..6201f27 --- /dev/null +++ b/uncompressed/element/webview.js @@ -0,0 +1,22 @@ +'use strict'; + +module.exports = Franz => { + function getMessages() { + const indirect_badge = document.getElementsByClassName('mx_RoomSubList_badge'); + let indirect_count = 0; + if (indirect_badge.length !== 0) { + indirect_count = indirect_badge.length; + } + + const direct_badge = document.getElementsByClassName('mx_RoomSubList_badgeHighlight'); + let direct_count = 0; + if (direct_badge.length !== 0) { + direct_count = direct_badge.length; + } + // set Franz badge + Franz.setBadge(direct_count, indirect_count); + } + + // check for new messages every second and update Franz badge + Franz.loop(getMessages); +}; diff --git a/uncompressed/riot/README.md b/uncompressed/riot/README.md deleted file mode 100644 index 85d0255..0000000 --- a/uncompressed/riot/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Riot for Franz -This is a Franz recipe/plugin for Riot 5 - -## Installation -1. Download or clone this repo on your computer -2. Open the Franz Plugins folder on your machine: - * Mac: `~/Library/Application Support/Franz/recipes/dev/` - * Windows: `%appdata%/Franz/recipes/dev/` -3. Copy the `recipe-riot` folder into the `dev` directory (if the directory does not exist, create it) -4. Reload Franz -5. Open `Settings` tab and enable Riot in the `development` tab of `Available services` diff --git a/uncompressed/riot/icon.png b/uncompressed/riot/icon.png deleted file mode 100644 index 04f8163..0000000 Binary files a/uncompressed/riot/icon.png and /dev/null differ diff --git a/uncompressed/riot/icon.svg b/uncompressed/riot/icon.svg deleted file mode 100644 index 8de291f..0000000 --- a/uncompressed/riot/icon.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - animatedLogo-0 - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/uncompressed/riot/index.js b/uncompressed/riot/index.js deleted file mode 100644 index 660614a..0000000 --- a/uncompressed/riot/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -module.exports = Franz => Franz; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJpb3QvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJyaW90L2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejsiXX0= \ No newline at end of file diff --git a/uncompressed/riot/package.json b/uncompressed/riot/package.json deleted file mode 100644 index 818e04d..0000000 --- a/uncompressed/riot/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "id": "riot", - "name": "Riot", - "version": "1.0.3", - "description": "Decentralized and encrypted discussion & collaboration, powered by [matrix]", - "main": "index.js", - "author": "Sylvain Cecchetto ", - "license": "MIT", - "repository": "https://github.com/SylvainCecchetto/recipe-riot", - "config": { - "serviceURL": "https://riot.im/app", - "hasTeamID": false, - "hasCustomUrl": true, - "message": "Riot's default URL is http://riot.im/app/", - "urlInputSuffix": false, - "hasNotificationSound": true, - "hasIndirectMessages": true - } -} \ No newline at end of file diff --git a/uncompressed/riot/webview.js b/uncompressed/riot/webview.js deleted file mode 100644 index f46f46c..0000000 --- a/uncompressed/riot/webview.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -module.exports = Franz => { - function getMessages() { - const indirect_badge = document.getElementsByClassName('mx_RoomSubList_badge'); - let indirect_count = 0; - if (indirect_badge.length !== 0) { - indirect_count = indirect_badge.length; - } - - const direct_badge = document.getElementsByClassName('mx_RoomSubList_badgeHighlight'); - let direct_count = 0; - if (direct_badge.length !== 0) { - direct_count = direct_badge.length; - } - // set Franz badge - Franz.setBadge(direct_count, indirect_count); - } - - // check for new messages every second and update Franz badge - Franz.loop(getMessages); -}; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJpb3Qvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImluZGlyZWN0X2JhZGdlIiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50c0J5Q2xhc3NOYW1lIiwiaW5kaXJlY3RfY291bnQiLCJsZW5ndGgiLCJkaXJlY3RfYmFkZ2UiLCJkaXJlY3RfY291bnQiLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBa0JDLEtBQUQsSUFBVztBQUMxQixXQUFTQyxXQUFULEdBQXVCO0FBQ3JCLFVBQU1DLGlCQUFpQkMsU0FBU0Msc0JBQVQsQ0FBZ0Msc0JBQWhDLENBQXZCO0FBQ0EsUUFBSUMsaUJBQWlCLENBQXJCO0FBQ0EsUUFBSUgsZUFBZUksTUFBZixLQUEwQixDQUE5QixFQUFpQztBQUMvQkQsdUJBQWlCSCxlQUFlSSxNQUFoQztBQUNEOztBQUVELFVBQU1DLGVBQWVKLFNBQVNDLHNCQUFULENBQWdDLCtCQUFoQyxDQUFyQjtBQUNBLFFBQUlJLGVBQWUsQ0FBbkI7QUFDQSxRQUFJRCxhQUFhRCxNQUFiLEtBQXdCLENBQTVCLEVBQStCO0FBQzdCRSxxQkFBZUQ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