diff options
author | vantezzen <hello@vantezzen.io> | 2019-12-20 19:22:21 +0100 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-12-20 19:22:21 +0100 |
commit | a54d5cfa8564ee77f1a08972edb1f4bdfe4248a4 (patch) | |
tree | fb19d5c6cb80005059b456e4ba7ce4710f388b5f /uncompressed/nextcloud-talk | |
parent | #15 Add mastodon recipe (diff) | |
parent | Add Zimbra recipe (diff) | |
download | ferdium-recipes-a54d5cfa8564ee77f1a08972edb1f4bdfe4248a4.tar.gz ferdium-recipes-a54d5cfa8564ee77f1a08972edb1f4bdfe4248a4.tar.zst ferdium-recipes-a54d5cfa8564ee77f1a08972edb1f4bdfe4248a4.zip |
Merge branch 'master' of https://github.com/getferdi/recipes
Diffstat (limited to 'uncompressed/nextcloud-talk')
-rw-r--r-- | uncompressed/nextcloud-talk/icon.png | bin | 0 -> 196186 bytes | |||
-rw-r--r-- | uncompressed/nextcloud-talk/icon.svg | 23 | ||||
-rw-r--r-- | uncompressed/nextcloud-talk/index.js | 8 | ||||
-rw-r--r-- | uncompressed/nextcloud-talk/package.json | 14 | ||||
-rw-r--r-- | uncompressed/nextcloud-talk/service.css | 3 | ||||
-rw-r--r-- | uncompressed/nextcloud-talk/webview.js | 16 |
6 files changed, 64 insertions, 0 deletions
diff --git a/uncompressed/nextcloud-talk/icon.png b/uncompressed/nextcloud-talk/icon.png new file mode 100644 index 0000000..5403253 --- /dev/null +++ b/uncompressed/nextcloud-talk/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/nextcloud-talk/icon.svg b/uncompressed/nextcloud-talk/icon.svg new file mode 100644 index 0000000..c861e9a --- /dev/null +++ b/uncompressed/nextcloud-talk/icon.svg | |||
@@ -0,0 +1,23 @@ | |||
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 42 (36781) - http://www.bohemiancoding.com/sketch --> | ||
4 | <title>messenger</title> | ||
5 | <desc>Created with Sketch.</desc> | ||
6 | <defs> | ||
7 | <linearGradient x1="50%" y1="100%" x2="50%" y2="0%" id="linearGradient-1"> | ||
8 | <stop stop-color="#006DFF" offset="11%"></stop> | ||
9 | <stop stop-color="#00C6FF" offset="95%"></stop> | ||
10 | </linearGradient> | ||
11 | </defs> | ||
12 | <g id="icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | ||
13 | <g id="messenger" fill="url(#linearGradient-1)"> | ||
14 | <g id="Messenger_Mark"> | ||
15 | <g> | ||
16 | <g fill-rule="nonzero"> | ||
17 | <path d="M40,0.0508259212 C17.9415502,0.0508259212 0.0508259212,16.7756036 0.0508259212,37.407878 C0.0508259212,49.1445997 5.83888183,59.6167726 14.8919949,66.4650572 L14.8919949,80.7623888 L28.52554,73.2005083 C32.261136,74.2427379 36.1217398,74.7690906 40,74.7649301 C62.0584498,74.7649301 79.9491741,58.0401525 79.9491741,37.407878 C79.9491741,16.7756036 62.0635324,0.0508259212 40,0.0508259212 Z M44.2073698,50.1448539 L33.8754765,39.4114358 L13.9771283,50.4193139 L35.7926302,27.2660737 L46.1245235,37.9994917 L66.0228717,26.9956798 L44.2073698,50.1448539 Z" id="Bubble_Shape"></path> | ||
18 | </g> | ||
19 | </g> | ||
20 | </g> | ||
21 | </g> | ||
22 | </g> | ||
23 | </svg> \ No newline at end of file | ||
diff --git a/uncompressed/nextcloud-talk/index.js b/uncompressed/nextcloud-talk/index.js new file mode 100644 index 0000000..29cab0e --- /dev/null +++ b/uncompressed/nextcloud-talk/index.js | |||
@@ -0,0 +1,8 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => class Nextcloud extends Franz { | ||
4 | buildUrl(url) { | ||
5 | return `${url}/apps/spreed/`; | ||
6 | } | ||
7 | |||
8 | }; \ No newline at end of file | ||
diff --git a/uncompressed/nextcloud-talk/package.json b/uncompressed/nextcloud-talk/package.json new file mode 100644 index 0000000..43a13d8 --- /dev/null +++ b/uncompressed/nextcloud-talk/package.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "id": "nextcloud-talk", | ||
3 | "name": "Nextcloud Talk", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Nextcloud Talk", | ||
6 | "main": "index.js", | ||
7 | "author": "Stefan Malzner <stefan@adlk.io>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "hasNotificationSound": true, | ||
11 | "hasIndirectMessages": true, | ||
12 | "hasCustomUrl": true | ||
13 | } | ||
14 | } | ||
diff --git a/uncompressed/nextcloud-talk/service.css b/uncompressed/nextcloud-talk/service.css new file mode 100644 index 0000000..30d1d18 --- /dev/null +++ b/uncompressed/nextcloud-talk/service.css | |||
@@ -0,0 +1,3 @@ | |||
1 | #appmenu li:not([data-id="spreed"]) { | ||
2 | display: none; | ||
3 | } \ No newline at end of file | ||
diff --git a/uncompressed/nextcloud-talk/webview.js b/uncompressed/nextcloud-talk/webview.js new file mode 100644 index 0000000..ae055f0 --- /dev/null +++ b/uncompressed/nextcloud-talk/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | |||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
6 | |||
7 | module.exports = Franz => { | ||
8 | const getMessages = function getMessages() { | ||
9 | const direct = document.querySelectorAll('.app-navigation-entry-utils-counter.highlighted').length; | ||
10 | const indirect = document.querySelectorAll('.app-navigation-entry-utils-counter:not(.highlighted)').length; | ||
11 | Franz.setBadge(direct, indirect); | ||
12 | }; | ||
13 | |||
14 | Franz.loop(getMessages); | ||
15 | Franz.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
16 | }; \ No newline at end of file | ||