diff options
author | 2020-04-14 14:04:42 +0200 | |
---|---|---|
committer | 2020-04-14 14:04:42 +0200 | |
commit | d825ec9b86d4b0076d3d2e6ea288dd295231ed63 (patch) | |
tree | bbf0fcc4bde31161abbc5c8d5ad74f6bd04e4473 | |
parent | Update nextcloud-talk.tar.gz (diff) | |
parent | Add link to Jake Lee's blog article (diff) | |
download | ferdium-recipes-d825ec9b86d4b0076d3d2e6ea288dd295231ed63.tar.gz ferdium-recipes-d825ec9b86d4b0076d3d2e6ea288dd295231ed63.tar.zst ferdium-recipes-d825ec9b86d4b0076d3d2e6ea288dd295231ed63.zip |
Merge branch 'master' into pr/98
-rw-r--r-- | all.json | 4 | ||||
-rw-r--r-- | archives/anydo.tar.gz | bin | 681162 -> 681096 bytes | |||
-rw-r--r-- | archives/nextdoor.tar.gz | bin | 11871 -> 11880 bytes | |||
-rw-r--r-- | archives/proton-mail.tar.gz | bin | 27155 -> 27131 bytes | |||
-rw-r--r-- | archives/telegram.tar.gz | bin | 20606 -> 18157 bytes | |||
-rw-r--r-- | docs/integration.md | 2 | ||||
-rw-r--r-- | uncompressed/telegram/README.md | 8 | ||||
-rw-r--r-- | uncompressed/telegram/package.json | 6 | ||||
-rw-r--r-- | uncompressed/telegram/service.css | 151 | ||||
-rw-r--r-- | uncompressed/telegram/webview.js | 21 |
10 files changed, 19 insertions, 173 deletions
@@ -792,11 +792,11 @@ | |||
792 | } | 792 | } |
793 | }, | 793 | }, |
794 | { | 794 | { |
795 | "author": "Stefan Malzner <stefan@adlk.io>", | 795 | "author": "Amine Mouafik <amine@mouafik.fr>", |
796 | "featured": false, | 796 | "featured": false, |
797 | "id": "telegram", | 797 | "id": "telegram", |
798 | "name": "Telegram", | 798 | "name": "Telegram", |
799 | "version": "1.0.5", | 799 | "version": "2.0.0", |
800 | "icons": { | 800 | "icons": { |
801 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/telegram/icon.png", | 801 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/telegram/icon.png", |
802 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/telegram/icon.svg" | 802 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/telegram/icon.svg" |
diff --git a/archives/anydo.tar.gz b/archives/anydo.tar.gz index 9d04841..1a26dca 100644 --- a/archives/anydo.tar.gz +++ b/archives/anydo.tar.gz | |||
Binary files differ | |||
diff --git a/archives/nextdoor.tar.gz b/archives/nextdoor.tar.gz index 4fbf953..fe6fb08 100644 --- a/archives/nextdoor.tar.gz +++ b/archives/nextdoor.tar.gz | |||
Binary files differ | |||
diff --git a/archives/proton-mail.tar.gz b/archives/proton-mail.tar.gz index 62b1287..e123f1e 100644 --- a/archives/proton-mail.tar.gz +++ b/archives/proton-mail.tar.gz | |||
Binary files differ | |||
diff --git a/archives/telegram.tar.gz b/archives/telegram.tar.gz index 09bd9e5..1e0e715 100644 --- a/archives/telegram.tar.gz +++ b/archives/telegram.tar.gz | |||
Binary files differ | |||
diff --git a/docs/integration.md b/docs/integration.md index b5d308c..7342495 100644 --- a/docs/integration.md +++ b/docs/integration.md | |||
@@ -4,6 +4,8 @@ Recipes are responsible for providing the connection between the service itself | |||
4 | 4 | ||
5 | A Ferdi recipe is basically nothing else than a node module and is currently initialized on `dom-ready`. You access all of the [electron](http://electron.atom.io) modules as well. | 5 | A Ferdi recipe is basically nothing else than a node module and is currently initialized on `dom-ready`. You access all of the [electron](http://electron.atom.io) modules as well. |
6 | 6 | ||
7 | > ℹ️ New to Ferdi recipes and Electron? Then we recommend you read Jake Lee's ["Super simple guide to adding a new Ferdi service recipe"](https://blog.jakelee.co.uk/super-simple-guide-to-adding-a-new-ferdi-service-recipe/) which gives you an easy step-by-step guide on how to create and publish your recipe! | ||
8 | |||
7 | > ℹ️ If you have any problems packaging your recipes, if you are inexperienced with the tools used or have any other problems, we are here to help! Just open a new issue at https://github.com/getferdi/recipes/issues/new and we can help you develop, test and publish your recipe and can package the recipe for you if you don't feel like you are able to. | 9 | > ℹ️ If you have any problems packaging your recipes, if you are inexperienced with the tools used or have any other problems, we are here to help! Just open a new issue at https://github.com/getferdi/recipes/issues/new and we can help you develop, test and publish your recipe and can package the recipe for you if you don't feel like you are able to. |
8 | 10 | ||
9 | > If you want to update an existing recipe, please refer to [updating.md](https://github.com/getferdi/recipes/blob/master/docs/updating.md) instead | 11 | > If you want to update an existing recipe, please refer to [updating.md](https://github.com/getferdi/recipes/blob/master/docs/updating.md) instead |
diff --git a/uncompressed/telegram/README.md b/uncompressed/telegram/README.md index 7a192ab..fbd7ca6 100644 --- a/uncompressed/telegram/README.md +++ b/uncompressed/telegram/README.md | |||
@@ -1,5 +1,7 @@ | |||
1 | # Telegram for Franz | 1 | # Telegram for Ferdi |
2 | This is the official Franz recipe for Telegram | 2 | |
3 | This is the official Ferdi recipe for Telegram | ||
3 | 4 | ||
4 | ### How to create your own Franz recipes: | 5 | ### How to create your own Franz recipes: |
5 | * [Read the documentation](https://github.com/meetfranz/plugins) | 6 | |
7 | - [Read the documentation](https://github.com/getferdi/recipes/tree/master/docs) | ||
diff --git a/uncompressed/telegram/package.json b/uncompressed/telegram/package.json index 14d24be..ce21700 100644 --- a/uncompressed/telegram/package.json +++ b/uncompressed/telegram/package.json | |||
@@ -1,13 +1,13 @@ | |||
1 | { | 1 | { |
2 | "id": "telegram", | 2 | "id": "telegram", |
3 | "name": "Telegram", | 3 | "name": "Telegram", |
4 | "version": "1.0.5", | 4 | "version": "2.0.0", |
5 | "description": "Telegram", | 5 | "description": "Telegram", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Amine Mouafik <amine@mouafik.fr>", |
8 | "license": "MIT", | 8 | "license": "MIT", |
9 | "config": { | 9 | "config": { |
10 | "serviceURL": "https://web.telegram.org", | 10 | "serviceURL": "https://evgeny-nadymov.github.io/telegram-react/", |
11 | "hasDirectMessages": true, | 11 | "hasDirectMessages": true, |
12 | "hasNotificationSound": true | 12 | "hasNotificationSound": true |
13 | } | 13 | } |
diff --git a/uncompressed/telegram/service.css b/uncompressed/telegram/service.css deleted file mode 100644 index 69291a1..0000000 --- a/uncompressed/telegram/service.css +++ /dev/null | |||
@@ -1,151 +0,0 @@ | |||
1 | .tg_head_split { | ||
2 | max-width: 100% !important; | ||
3 | } | ||
4 | |||
5 | .im_page_wrap { | ||
6 | max-width: 100% !important; | ||
7 | } | ||
8 | |||
9 | .im_dialogs_col_wrap { | ||
10 | width: 320px !important; | ||
11 | } | ||
12 | |||
13 | .im_history_col_wrap { | ||
14 | width: calc(100% - 320px) !important; | ||
15 | } | ||
16 | |||
17 | .im_message_wrap { | ||
18 | max-width: inherit !important; | ||
19 | } | ||
20 | |||
21 | .im_message_body { | ||
22 | max-width: 580px !important; | ||
23 | } | ||
24 | |||
25 | body.darkTheme, | ||
26 | .darkTheme .modal-content { | ||
27 | color: #bbb !important; | ||
28 | background: #252525 !important; | ||
29 | } | ||
30 | .darkTheme a.tg_checkbox { | ||
31 | color: #bbb !important; | ||
32 | } | ||
33 | .darkTheme .im_page_wrap { | ||
34 | /*background color of contentwrapper under header*/ | ||
35 | |||
36 | background-color: #303030 !important; | ||
37 | border-left: 1px solid #4d4d4d !important; | ||
38 | border-right: 1px solid #4d4d4d !important; | ||
39 | border-bottom: 1px solid #4d4d4d !important; | ||
40 | box-shadow: none; | ||
41 | } | ||
42 | .darkTheme .im_message_body, | ||
43 | .darkTheme .im_attach, | ||
44 | .darkTheme .im_media_attach, | ||
45 | .darkTheme .im_record, | ||
46 | .darkTheme .im_message_document_thumbed { | ||
47 | background: inherit !important; | ||
48 | } | ||
49 | .darkTheme .im_dialog_peer { | ||
50 | /*peer nickname unselected*/ | ||
51 | |||
52 | color: #bbb !important; | ||
53 | } | ||
54 | .darkTheme .contacts_modal_members_list a.contacts_modal_contact { | ||
55 | /*nicknames in contactlist via hamburger menu*/ | ||
56 | |||
57 | color: #bbb; | ||
58 | } | ||
59 | .darkTheme .active a.im_dialog { | ||
60 | /*selected peer */ | ||
61 | |||
62 | background-color: #4d4d4d !important; | ||
63 | } | ||
64 | .darkTheme .tg_head_split, | ||
65 | .darkTheme .md_modal_head { | ||
66 | /*page header block*/ | ||
67 | |||
68 | background-color: #4d4d4d !important; | ||
69 | } | ||
70 | .darkTheme .dropdown.open .tg_head_btn, | ||
71 | .darkTheme .tg_head_btn:hover { | ||
72 | background: #4d4d4d !important; | ||
73 | } | ||
74 | .darkTheme .form-control { | ||
75 | /*input field*/ | ||
76 | |||
77 | background-color: #0e0e0e !important; | ||
78 | color: #bbb !important; | ||
79 | } | ||
80 | .darkTheme .composer_rich_textarea { | ||
81 | background: #303030 !important; | ||
82 | border-color: #bbb !important; | ||
83 | } | ||
84 | .darkTheme .im_dialogs_col_wrap { | ||
85 | /*contactlist right border*/ | ||
86 | |||
87 | border-right: 2px solid #4d4d4d; | ||
88 | } | ||
89 | .darkTheme .im_dialogs_col .nano > .nano-pane > .nano-slider { | ||
90 | /*scrollbarbutton when hover*/ | ||
91 | |||
92 | background-color: #4d4d4d !important; | ||
93 | } | ||
94 | .darkTheme .tg_head_split { | ||
95 | background-color: #151515; | ||
96 | } | ||
97 | .darkTheme .im_submit { | ||
98 | color: #4d4d4d; | ||
99 | } | ||
100 | .darkTheme .im_message_mymention { | ||
101 | background: #1d1d1d; | ||
102 | } | ||
103 | .darkTheme .im_message_focus .im_message_outer_wrap { | ||
104 | background-color: #4d4d4d; | ||
105 | } | ||
106 | .darkTheme .im_message_selected .im_message_outer_wrap { | ||
107 | background: #4d4d4d; | ||
108 | } | ||
109 | .darkTheme a:hover { | ||
110 | background-color: #282828 !important; | ||
111 | } | ||
112 | .darkTheme .im_message_unread_split { | ||
113 | background: #4d4d4d; | ||
114 | } | ||
115 | @keyframes im_message_focus_fade { | ||
116 | 0% { | ||
117 | background-color: #2d2d2d; | ||
118 | } | ||
119 | } | ||
120 | .darkTheme .btn-primary { | ||
121 | background-color: #4d4d4d; | ||
122 | } | ||
123 | .darkTheme .im_history_select_active .im_message_outer_wrap:hover { | ||
124 | background: #4d4d4d; | ||
125 | } | ||
126 | .darkTheme .im_dialog_chat_from_wrap, | ||
127 | .darkTheme .im_dialog_message_service { | ||
128 | color: #6ac; | ||
129 | } | ||
130 | .darkTheme .composer_rich_textarea, | ||
131 | .darkTheme .composer_textarea { | ||
132 | box-shadow: 0px 3px 1px #ddd; | ||
133 | } | ||
134 | .darkTheme .composer_rich_textarea:focus { | ||
135 | box-shadow: 0px 3px 1px #ddd !important; | ||
136 | } | ||
137 | .darkTheme .tg_head_logo_dropdown .dropdown-menu > li > a { | ||
138 | color: #ddd; | ||
139 | } | ||
140 | .darkTheme .btn-primary.disabled, | ||
141 | .darkTheme .btn-primary[disabled] { | ||
142 | background: #4d4d4d none repeat scroll 0% 0%; | ||
143 | } | ||
144 | /*emoji*/ | ||
145 | |||
146 | .darkTheme .composer_emoji_tooltip, | ||
147 | .darkTheme .icon-tooltip-tail, | ||
148 | .darkTheme .dropdown-menu { | ||
149 | background-color: #4d4d4d !important; | ||
150 | border-color: #5d5d5d; | ||
151 | } | ||
diff --git a/uncompressed/telegram/webview.js b/uncompressed/telegram/webview.js index 6610c7c..1727953 100644 --- a/uncompressed/telegram/webview.js +++ b/uncompressed/telegram/webview.js | |||
@@ -1,26 +1,19 @@ | |||
1 | 'use strict'; | 1 | "use strict"; |
2 | 2 | ||
3 | const path = require('path'); | 3 | const path = require("path"); |
4 | 4 | ||
5 | module.exports = Franz => { | 5 | module.exports = Franz => { |
6 | const getMessages = function getMessages() { | 6 | const getMessages = function getMessages() { |
7 | let count = 0; | 7 | let count = 0; |
8 | const searchElement = document.querySelector('.im_dialogs_search_field'); | 8 | const elements = document.querySelectorAll(".dialog-badge-text"); |
9 | if (searchElement && searchElement.value === '') { | 9 | if (elements) { |
10 | const elements = document.querySelectorAll('.im_dialog_badge:not(.ng-hide):not(.im_dialog_badge_muted)'); | 10 | for (let i = 0; i < elements.length; i += 1) { |
11 | if (elements) { | 11 | if (elements[i].innerHTML !== 0) { |
12 | for (let i = 0; i < elements.length; i += 1) { | 12 | count += parseInt(elements[i].innerHTML); |
13 | if (elements[i].innerHTML !== 0) { | ||
14 | count += 1; | ||
15 | } | ||
16 | } | 13 | } |
17 | } | 14 | } |
18 | } | 15 | } |
19 | |||
20 | Franz.setBadge(count); | 16 | Franz.setBadge(count); |
21 | }; | 17 | }; |
22 | |||
23 | Franz.injectCSS(path.join(__dirname, 'service.css')); | ||
24 | Franz.loop(getMessages); | 18 | Franz.loop(getMessages); |
25 | }; | 19 | }; |
26 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlbGVncmFtL3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImNvdW50Iiwic2VhcmNoRWxlbWVudCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvciIsInZhbHVlIiwiZWxlbWVudHMiLCJxdWVyeVNlbGVjdG9yQWxsIiwiaSIsImxlbmd0aCIsImlubmVySFRNTCIsInNldEJhZGdlIiwiaW5qZWN0Q1NTIiwiam9pbiIsIl9fZGlybmFtZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUEsTUFBTUEsT0FBT0MsUUFBUSxNQUFSLENBQWI7O0FBRUFDLE9BQU9DLE9BQVAsR0FBa0JDLEtBQUQsSUFBVztBQUMxQixRQUFNQyxjQUFjLFNBQVNBLFdBQVQsR0FBdUI7QUFDekMsUUFBSUMsUUFBUSxDQUFaO0FBQ0EsVUFBTUMsZ0JBQWdCQyxTQUFTQyxhQUFULENBQXVCLDBCQUF2QixDQUF0QjtBQUNBLFFBQUlGLGlCQUFpQkEsY0FBY0csS0FBZCxLQUF3QixFQUE3QyxFQUFpRDtBQUMvQyxZQUFNQyxXQUFXSCxTQUFTSSxnQkFBVCxD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