diff options
Diffstat (limited to 'uncompressed/threema')
-rw-r--r-- | uncompressed/threema/README.md | 5 | ||||
-rw-r--r-- | uncompressed/threema/icon.png | bin | 31832 -> 0 bytes | |||
-rw-r--r-- | uncompressed/threema/icon.svg | 9 | ||||
-rw-r--r-- | uncompressed/threema/index.js | 4 | ||||
-rw-r--r-- | uncompressed/threema/package.json | 14 | ||||
-rw-r--r-- | uncompressed/threema/service.css | 17 | ||||
-rw-r--r-- | uncompressed/threema/webview.js | 28 |
7 files changed, 0 insertions, 77 deletions
diff --git a/uncompressed/threema/README.md b/uncompressed/threema/README.md deleted file mode 100644 index 5bee109..0000000 --- a/uncompressed/threema/README.md +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # Threema for Franz | ||
2 | This is a non-official Franz recipe for Threema | ||
3 | |||
4 | ### How to create your own Franz recipes: | ||
5 | * [Read the documentation](https://github.com/meetfranz/plugins) | ||
diff --git a/uncompressed/threema/icon.png b/uncompressed/threema/icon.png deleted file mode 100644 index 4ef99d5..0000000 --- a/uncompressed/threema/icon.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/uncompressed/threema/icon.svg b/uncompressed/threema/icon.svg deleted file mode 100644 index 20720ba..0000000 --- a/uncompressed/threema/icon.svg +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||
3 | <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024" height="1024" viewBox="0 0 1024 1024"> | ||
4 | <path d="M1012.666 337.496c-10.628-47.808-29.912-88.146-61.468-128.58-67.868-86.962-184.742-150.934-319.324-174.786-44.096-7.816-65.24-9.486-120.040-9.486s-75.944 1.67-120.040 9.486c-134.582 23.85-251.456 87.822-319.324 174.784-31.556 40.434-50.84 80.772-61.468 128.58-3.972 17.864-6.044 39.502-6.002 54.622 0.036 12.846 2.030 36.756 6.002 54.622 14.414 64.838 44.812 116.854 98.822 169.096 26.718 25.844 26.756 25.912 25.212 45.558-1.516 19.272-18.19 54.262-58.55 122.862-9.478 16.112-17.234 30.332-17.234 31.602 0 2.922 2.29 2.896 16.712-0.182 26.194-5.592 79.126-20.74 189.302-54.176 38.8-11.774 44.526-12.692 78.674-12.606 27.802 0.070 36.532 0.74 77.864 5.976 50.78 6.434 119.67 7.126 166.272 1.67 172.666-20.212 314.84-99.024 386.022-213.986 18.176-29.356 30.726-60.532 38.57-95.816 3.972-17.864 6.334-35.786 6.334-54.622-0.002-22.106-2.364-36.754-6.336-54.618-10.628-47.808 3.972 17.864 0 0zM668.258 556.29c0 15.208-12.33 27.538-27.538 27.538h-261.010c-15.208 0-27.538-12.33-27.538-27.538v-156.668c0-15.208 12.33-27.538 27.538-27.538h5.602l0.016-54.86c0.008-30.174 1.158-60.612 2.556-67.644 3.872-19.482 18.868-41.54 38.26-56.274 19.402-14.742 38.892-22.762 65.286-26.864 61.252-9.52 125.512 24.302 141.614 74.532 3.206 10.002 4.070 25.27 4.070 71.904v0 59.206h3.604c15.208 0 27.538 12.33 27.538 27.538v156.668z" fill="#484848"></path> | ||
5 | <path d="M498.992 215.8c-16.292 3.118-28.324 9.212-40.3 20.416-11.972 11.198-21.228 27.96-23.618 42.768-0.862 5.344-1.572 28.476-1.578 51.408l-0.010 41.692h155.436v-44.996c0-35.442-0.534-47.044-2.512-54.646-9.94-38.174-49.608-63.876-87.418-56.642z" fill="#484848"></path> | ||
6 | <path d="M845.374 926.498c0 40.239-32.621 72.86-72.86 72.86s-72.86-32.621-72.86-72.86c0-40.239 32.621-72.86 72.86-72.86s72.86 32.621 72.86 72.86z" fill="#3ae376"></path> | ||
7 | <path d="M583.074 926.498c0 40.239-32.621 72.86-72.86 72.86s-72.86-32.621-72.86-72.86c0-40.239 32.621-72.86 72.86-72.86s72.86 32.621 72.86 72.86z" fill="#3ae376"></path> | ||
8 | <path d="M320.776 926.498c0 40.239-32.621 72.86-72.86 72.86s-72.86-32.621-72.86-72.86c0-40.239 32.621-72.86 72.86-72.86s72.86 32.621 72.86 72.86z" fill="#3ae376"></path> | ||
9 | </svg> \ No newline at end of file | ||
diff --git a/uncompressed/threema/index.js b/uncompressed/threema/index.js deleted file mode 100644 index 97863b3..0000000 --- a/uncompressed/threema/index.js +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | ||
4 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocmVlbWEvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiQUFBQTs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGhyZWVtYS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5tb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 \ No newline at end of file | ||
diff --git a/uncompressed/threema/package.json b/uncompressed/threema/package.json deleted file mode 100644 index ec98651..0000000 --- a/uncompressed/threema/package.json +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | { | ||
2 | "id": "threema", | ||
3 | "name": "Threema", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Threema", | ||
6 | "main": "index.js", | ||
7 | "author": "Anna Damm <Arany@users.noreply.github.com>", | ||
8 | "license": "MIT", | ||
9 | "repository": "https://github.com/Arany/franz-recipe-threema", | ||
10 | "config": { | ||
11 | "serviceURL": "https://web.threema.ch", | ||
12 | "hasNotificationSound": true | ||
13 | } | ||
14 | } | ||
diff --git a/uncompressed/threema/service.css b/uncompressed/threema/service.css deleted file mode 100644 index 6b15306..0000000 --- a/uncompressed/threema/service.css +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | header, #status-bar { | ||
2 | display: none; | ||
3 | } | ||
4 | |||
5 | div#main-wrapper { | ||
6 | position: absolute; | ||
7 | height: 100%; | ||
8 | width: 100%; | ||
9 | margin: 0; | ||
10 | max-width: 100% !important; | ||
11 | } | ||
12 | div#main { | ||
13 | position: absolute; | ||
14 | height: 100%; | ||
15 | width: 100%; | ||
16 | border-radius: 0; | ||
17 | } \ No newline at end of file | ||
diff --git a/uncompressed/threema/webview.js b/uncompressed/threema/webview.js deleted file mode 100644 index 45bffee..0000000 --- a/uncompressed/threema/webview.js +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | const path = require('path'); | ||
4 | |||
5 | module.exports = Franz => { | ||
6 | const getMessages = function getMessages() { | ||
7 | const elements = document.querySelectorAll('.badge.unread-count:not(.ng-hide)'); | ||
8 | let count = 0; | ||
9 | |||
10 | for (let i = 0; i < elements.length; i += 1) { | ||
11 | try { | ||
12 | count += parseInt(elements[i].innerHTML.trim(), 10); | ||
13 | } catch (e) { | ||
14 | console.error(e); | ||
15 | } | ||
16 | } | ||
17 | |||
18 | // set Franz badge | ||
19 | Franz.setBadge(count); | ||
20 | }; | ||
21 | |||
22 | // inject franz.css stylesheet | ||
23 | Franz.injectCSS(path.join(__dirname, 'service.css')); | ||
24 | |||
25 | // check for new messages every second and update Franz badge | ||
26 | Franz.loop(getMessages); | ||
27 | }; | ||
28 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocmVlbWEvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJwYXRoIiwicmVxdWlyZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZWxlbWVudHMiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJjb3VudCIsImkiLCJsZW5ndGgi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nJhbnogPT4ge1xuICAgIGNvbnN0IGdldE1lc3NhZ2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG4gICAgICAgIGNvbnN0IGVsZW1lbnRzID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLmJhZGdlLnVucmVhZC1jb3VudDpub3QoLm5nLWhpZGUpJyk7XG4gICAgICAgIGxldCBjb3VudCA9IDA7XG5cbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBlbGVtZW50cy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICBjb3VudCArPSBwYXJzZUludChlbGVtZW50c1tpXS5pbm5lckhUTUwudHJpbSgpLCAxMCk7XG4gICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcihlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHNldCBGcmFueiBiYWRnZVxuICAgICAgICBGcmFuei5zZXRCYWRnZShjb3VudCk7XG4gICAgfTtcblxuICAgIC8vIGluamVjdCBmcmFuei5jc3Mgc3R5bGVzaGVldFxuICAgIEZyYW56LmluamVjdENTUyhwYXRoLmpvaW4oX19kaXJuYW1lLCAnc2VydmljZS5jc3MnKSk7XG5cbiAgICAvLyBjaGVjayBmb3IgbmV3IG1lc3NhZ2VzIGV2ZXJ5IHNlY29uZCBhbmQgdXBkYXRlIEZyYW56IGJhZGdlXG4gICAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 \ No newline at end of file | ||