aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/google-translate
diff options
context:
space:
mode:
authorLibravatar Maitre_Oda <oda.alexandre31@gmail.com>2021-08-28 13:04:04 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-28 16:34:04 +0530
commitcd082f103b8b401ca23dc89aaa3c15f6f077c889 (patch)
tree3960bf373302dcb22d1454767f79f904ef48679e /recipes/google-translate
parentNew recipe: tinder (#641) (diff)
downloadferdium-recipes-cd082f103b8b401ca23dc89aaa3c15f6f077c889.tar.gz
ferdium-recipes-cd082f103b8b401ca23dc89aaa3c15f6f077c889.tar.zst
ferdium-recipes-cd082f103b8b401ca23dc89aaa3c15f6f077c889.zip
New recipe: google-translate (#642)
Co-authored-by: oda-alexandre <oda-alexandre31@gmail.com> Co-authored-by: Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/google-translate')
-rw-r--r--recipes/google-translate/LICENSE21
-rw-r--r--recipes/google-translate/README.md2
-rw-r--r--recipes/google-translate/icon.svg49
-rw-r--r--recipes/google-translate/index.js2
-rw-r--r--recipes/google-translate/package.json9
-rw-r--r--recipes/google-translate/service.css1
-rw-r--r--recipes/google-translate/webview.js14
7 files changed, 98 insertions, 0 deletions
diff --git a/recipes/google-translate/LICENSE b/recipes/google-translate/LICENSE
new file mode 100644
index 0000000..516df99
--- /dev/null
+++ b/recipes/google-translate/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2020 Tania R. Zúñiga
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
diff --git a/recipes/google-translate/README.md b/recipes/google-translate/README.md
new file mode 100644
index 0000000..f673a03
--- /dev/null
+++ b/recipes/google-translate/README.md
@@ -0,0 +1,2 @@
1# google-translate for Ferdi
2This is a Ferdi recipe for google-translate
diff --git a/recipes/google-translate/icon.svg b/recipes/google-translate/icon.svg
new file mode 100644
index 0000000..f5f1c20
--- /dev/null
+++ b/recipes/google-translate/icon.svg
@@ -0,0 +1,49 @@
1<?xml version="1.0" encoding="iso-8859-1"?>
2<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4 viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
5<path style="fill:#E6E6E6;" d="M479.068,96h-216.32l-22.515,87.1l-8.083,57.242l43.329,120.845l6.957,146.639h196.633
6 c18.184,0,32.932-14.748,32.932-32.932V128.932C512,110.748,497.252,96,479.068,96z"/>
7<polygon style="fill:#3A5BBC;" points="368.696,416 282.435,507.826 251.882,416 264.348,382.521 "/>
8<path style="fill:#808080;" d="M469.565,244.174v-20.87h-79.304v-29.217h-20.87v29.217H297.92v20.87h115.89
9 c-6.446,13.572-17.621,35.215-32.978,58.035c-14.132-17.649-23.062-29.931-23.168-30.077l-6.129-8.445l-16.892,12.255l6.127,8.445
10 c0.477,0.658,10.876,14.963,27.338,35.3c-11.222,13.749-31.808,36.106-42.655,46.952l14.756,14.756
11 c9.362-9.362,28.774-30.214,41.426-45.327c16.459,19.553,32.523,37.194,47.854,52.526l7.378,7.378l14.758-14.755l-7.378-7.378
12 c-15.839-15.839-32.519-34.264-49.647-54.799c22.133-31.823,36.48-61.956,42.2-74.866H469.565z"/>
13<path style="fill:#518EF8;" d="M349.329,357.523L368.696,416H251.882H32.932C14.734,416,0,401.252,0,383.068V37.106
14 C0,18.922,14.734,4.174,32.932,4.174h199.416L262.748,96l45.607,137.739L349.329,357.523z"/>
15<path style="fill:#FFFFFF;" d="M149.301,287.374c-42.77,0-77.565-34.795-77.565-77.565s34.795-77.565,77.565-77.565
16 c20.704,0,40.182,8.065,54.845,22.712l-14.749,14.766c-10.723-10.71-24.961-16.608-40.097-16.608
17 c-31.263,0-56.696,25.433-56.696,56.696s25.433,56.696,56.696,56.696c27.698,0,50.82-19.967,55.733-46.261h-55.731v-20.87h77.565
18 v10.435C226.866,252.579,192.071,287.374,149.301,287.374z"/>
19<g>
20</g>
21<g>
22</g>
23<g>
24</g>
25<g>
26</g>
27<g>
28</g>
29<g>
30</g>
31<g>
32</g>
33<g>
34</g>
35<g>
36</g>
37<g>
38</g>
39<g>
40</g>
41<g>
42</g>
43<g>
44</g>
45<g>
46</g>
47<g>
48</g>
49</svg>
diff --git a/recipes/google-translate/index.js b/recipes/google-translate/index.js
new file mode 100644
index 0000000..f714165
--- /dev/null
+++ b/recipes/google-translate/index.js
@@ -0,0 +1,2 @@
1module.exports = Ferdi => class GoogleTranslate extends Ferdi {
2};
diff --git a/recipes/google-translate/package.json b/recipes/google-translate/package.json
new file mode 100644
index 0000000..7e7f272
--- /dev/null
+++ b/recipes/google-translate/package.json
@@ -0,0 +1,9 @@
1{
2 "id": "google-translate",
3 "name": "Google Translate",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://translate.google.com"
8 }
9}
diff --git a/recipes/google-translate/service.css b/recipes/google-translate/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/google-translate/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/google-translate/webview.js b/recipes/google-translate/webview.js
new file mode 100644
index 0000000..9875d8e
--- /dev/null
+++ b/recipes/google-translate/webview.js
@@ -0,0 +1,14 @@
1var _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.exports = Ferdi => {
6 // TODO: If your google-translate service has unread messages, uncomment these lines to implement the logic for updating the badges
7 // const getMessages = function getMessages() {
8 // // TODO: Insert your notification-finding code here
9 // Ferdi.setBadge(0, 0);
10 // };
11 // Ferdi.loop(getMessages);
12
13 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
14};