aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-12 15:58:12 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-12 15:58:12 +0530
commit93738624ed1dd4473fb4e6cdfb859e6250437104 (patch)
tree567024bee405a95be8957ba7e77a68b094bc09cd /recipes
parentNew recipe: 'udemy' (fixes #464) (#696) (diff)
downloadferdium-recipes-93738624ed1dd4473fb4e6cdfb859e6250437104.tar.gz
ferdium-recipes-93738624ed1dd4473fb4e6cdfb859e6250437104.tar.zst
ferdium-recipes-93738624ed1dd4473fb4e6cdfb859e6250437104.zip
Merged 'github_enterprise' recipe into 'github' with the extra bits.
Diffstat (limited to 'recipes')
-rw-r--r--recipes/github/index.js20
-rw-r--r--recipes/github/package.json3
-rw-r--r--recipes/github_entreprise/LICENSE21
-rw-r--r--recipes/github_entreprise/icon.svg1
-rw-r--r--recipes/github_entreprise/index.js19
-rw-r--r--recipes/github_entreprise/package.json10
-rw-r--r--recipes/github_entreprise/webview.js0
7 files changed, 21 insertions, 53 deletions
diff --git a/recipes/github/index.js b/recipes/github/index.js
index 23607bd..dfcd7d1 100644
--- a/recipes/github/index.js
+++ b/recipes/github/index.js
@@ -1 +1,19 @@
1module.exports = Ferdi => Ferdi; 1module.exports = Ferdi => class GitHub extends Ferdi {
2 async validateUrl(url) {
3 try {
4 const resp = await window.fetch(`${url}/api/v3`, {
5 method: 'GET',
6 headers: {
7 'Content-Type': 'application/json',
8 Accept: 'application/vnd.github.v3+json',
9 },
10 });
11 // doc: https://developer.github.com/enterprise/2.17/v3/#current-version
12 return resp.status.toString().startsWith('2');
13 } catch (err) {
14 console.error(err);
15 }
16
17 return false;
18 }
19};
diff --git a/recipes/github/package.json b/recipes/github/package.json
index 2ed611e..573f743 100644
--- a/recipes/github/package.json
+++ b/recipes/github/package.json
@@ -1,10 +1,11 @@
1{ 1{
2 "id": "github", 2 "id": "github",
3 "name": "GitHub", 3 "name": "GitHub",
4 "version": "2.1.1", 4 "version": "2.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://github.com/notifications", 7 "serviceURL": "https://github.com/notifications",
8 "hasCustomUrl": true,
8 "hasIndirectMessages": true 9 "hasIndirectMessages": true
9 } 10 }
10} 11}
diff --git a/recipes/github_entreprise/LICENSE b/recipes/github_entreprise/LICENSE
deleted file mode 100644
index 33926c0..0000000
--- a/recipes/github_entreprise/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
1MIT License
2
3Copyright (c) 2017 Sudhir Ganesan
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/github_entreprise/icon.svg b/recipes/github_entreprise/icon.svg
deleted file mode 100644
index 87f6f80..0000000
--- a/recipes/github_entreprise/icon.svg
+++ /dev/null
@@ -1 +0,0 @@
1<svg height="1024" width="1024" xmlns="http://www.w3.org/2000/svg"><path d="M512 0C229.25 0 0 229.25 0 512c0 226.25 146.688 418.125 350.156 485.812 25.594 4.688 34.938-11.125 34.938-24.625 0-12.188-.469-52.562-.719-95.312C242 908.812 211.906 817.5 211.906 817.5c-23.312-59.125-56.844-74.875-56.844-74.875-46.531-31.75 3.53-31.125 3.53-31.125 51.406 3.562 78.47 52.75 78.47 52.75 45.688 78.25 119.875 55.625 149 42.5 4.654-33 17.904-55.625 32.5-68.375-113.656-12.937-233.218-56.875-233.218-253.063 0-55.938 19.969-101.562 52.656-137.406-5.219-13-22.844-65.094 5.062-135.562 0 0 42.938-13.75 140.812 52.5 40.812-11.406 84.594-17.031 128.125-17.219 43.5.188 87.312 5.875 128.188 17.281 97.688-66.312 140.688-52.5 140.688-52.5 28 70.531 10.375 122.562 5.125 135.5 32.812 35.844 52.625 81.469 52.625 137.406 0 196.688-119.75 240-233.812 252.688 18.438 15.875 34.75 47 34.75 94.75 0 68.438-.688 123.625-.688 140.5 0 13.625 9.312 29.562 35.25 24.562C877.438 930 1024 738.125 1024 512 1024 229.25 794.75 0 512 0z"/></svg> \ No newline at end of file
diff --git a/recipes/github_entreprise/index.js b/recipes/github_entreprise/index.js
deleted file mode 100644
index f45d240..0000000
--- a/recipes/github_entreprise/index.js
+++ /dev/null
@@ -1,19 +0,0 @@
1module.exports = Ferdi => class GitHubEnterprise extends Ferdi {
2 async validateUrl(url) {
3 try {
4 const resp = await window.fetch(`${url}/api/v3`, {
5 method: 'GET',
6 headers: {
7 'Content-Type': 'application/json',
8 Accept: 'application/vnd.github.v3+json',
9 },
10 });
11 // doc: https://developer.github.com/enterprise/2.17/v3/#current-version
12 return resp.status.toString().startsWith('2');
13 } catch (err) {
14 console.error(err);
15 }
16
17 return false;
18 }
19};
diff --git a/recipes/github_entreprise/package.json b/recipes/github_entreprise/package.json
deleted file mode 100644
index e40d6d3..0000000
--- a/recipes/github_entreprise/package.json
+++ /dev/null
@@ -1,10 +0,0 @@
1{
2 "id": "github_entreprise",
3 "name": "GitHub Enterprise",
4 "version": "1.1.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://github.mycompany.com/",
8 "hasCustomUrl": true
9 }
10}
diff --git a/recipes/github_entreprise/webview.js b/recipes/github_entreprise/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/github_entreprise/webview.js
+++ /dev/null