diff options
author | Antoine Aumjaud <antoine_dev@aumjaud.fr> | 2020-02-28 21:10:01 +0100 |
---|---|---|
committer | Antoine Aumjaud <antoine_dev@aumjaud.fr> | 2020-02-28 21:10:01 +0100 |
commit | 2f741dd468082ddc01834912dd0cc88fb6a15d3d (patch) | |
tree | 9f6206d630d522ae7caa34cb77f1bc348ddac4b2 | |
parent | Merge pull request #46 from n-xlkt/feat/gmeet (diff) | |
download | ferdium-recipes-2f741dd468082ddc01834912dd0cc88fb6a15d3d.tar.gz ferdium-recipes-2f741dd468082ddc01834912dd0cc88fb6a15d3d.tar.zst ferdium-recipes-2f741dd468082ddc01834912dd0cc88fb6a15d3d.zip |
Add GitHub Entreprise
-rw-r--r-- | all.json | 11 | ||||
-rw-r--r-- | github_entreprise.tar.gz | bin | 0 -> 16494 bytes | |||
-rw-r--r-- | uncompressed/github_entreprise/LICENSE | 21 | ||||
-rw-r--r-- | uncompressed/github_entreprise/README.md | 5 | ||||
-rw-r--r-- | uncompressed/github_entreprise/icon.png | bin | 0 -> 14107 bytes | |||
-rw-r--r-- | uncompressed/github_entreprise/icon.svg | 3 | ||||
-rw-r--r-- | uncompressed/github_entreprise/index.js | 21 | ||||
-rw-r--r-- | uncompressed/github_entreprise/package.json | 13 | ||||
-rw-r--r-- | uncompressed/github_entreprise/webview.js | 1 |
9 files changed, 75 insertions, 0 deletions
@@ -988,5 +988,16 @@ | |||
988 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/Google Meet/icon.png", | 988 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/Google Meet/icon.png", |
989 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/Google Meet/icon.svg" | 989 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/Google Meet/icon.svg" |
990 | } | 990 | } |
991 | }, | ||
992 | { | ||
993 | "author": "Antoine Aumjaud", | ||
994 | "featured": false, | ||
995 | "id": "github_entreprise", | ||
996 | "name": "GitHub Entreprise", | ||
997 | "version": "1.0.0", | ||
998 | "icons": { | ||
999 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/github_entreprise/icon.png", | ||
1000 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/github_entreprise/icon.svg" | ||
1001 | } | ||
991 | } | 1002 | } |
992 | ] | 1003 | ] |
diff --git a/github_entreprise.tar.gz b/github_entreprise.tar.gz new file mode 100644 index 0000000..579b773 --- /dev/null +++ b/github_entreprise.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/github_entreprise/LICENSE b/uncompressed/github_entreprise/LICENSE new file mode 100644 index 0000000..33926c0 --- /dev/null +++ b/uncompressed/github_entreprise/LICENSE | |||
@@ -0,0 +1,21 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2017 Sudhir Ganesan | ||
4 | |||
5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | of this software and associated documentation files (the "Software"), to deal | ||
7 | in the Software without restriction, including without limitation the rights | ||
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | copies of the Software, and to permit persons to whom the Software is | ||
10 | furnished to do so, subject to the following conditions: | ||
11 | |||
12 | The above copyright notice and this permission notice shall be included in all | ||
13 | copies or substantial portions of the Software. | ||
14 | |||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | SOFTWARE. | ||
diff --git a/uncompressed/github_entreprise/README.md b/uncompressed/github_entreprise/README.md new file mode 100644 index 0000000..101de69 --- /dev/null +++ b/uncompressed/github_entreprise/README.md | |||
@@ -0,0 +1,5 @@ | |||
1 | # GitHub Entreprise Franz Plugin | ||
2 | |||
3 | Follow instructions [here](https://github.com/meetfranz/plugins/blob/master/docs/integration.md) for installation of this plugin. | ||
4 | |||
5 | Inspired by _GitHub Franz Plugin_: https://github.com/redsox2002/recipe-franz-github | ||
diff --git a/uncompressed/github_entreprise/icon.png b/uncompressed/github_entreprise/icon.png new file mode 100644 index 0000000..200ce79 --- /dev/null +++ b/uncompressed/github_entreprise/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/github_entreprise/icon.svg b/uncompressed/github_entreprise/icon.svg new file mode 100644 index 0000000..146f66f --- /dev/null +++ b/uncompressed/github_entreprise/icon.svg | |||
@@ -0,0 +1,3 @@ | |||
1 | <svg height="1024" width="1024" xmlns="http://www.w3.org/2000/svg"> | ||
2 | <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-0.469-52.562-0.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.375C304.906 725.438 185.344 681.5 185.344 485.312c0-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 0.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-0.688 123.625-0.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" /> | ||
3 | </svg> | ||
diff --git a/uncompressed/github_entreprise/index.js b/uncompressed/github_entreprise/index.js new file mode 100644 index 0000000..76901cb --- /dev/null +++ b/uncompressed/github_entreprise/index.js | |||
@@ -0,0 +1,21 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => class GitHubEntreprise extends Franz { | ||
4 | async validateUrl(url) { | ||
5 | try { | ||
6 | const resp = await window.fetch(`${url}/api/v3`, { | ||
7 | method: 'GET', | ||
8 | headers: { | ||
9 | 'Content-Type': 'application/json', | ||
10 | 'Accept': 'application/vnd.github.v3+json' | ||
11 | }, | ||
12 | }); | ||
13 | //doc: https://developer.github.com/enterprise/2.17/v3/#current-version | ||
14 | return resp.status.toString().startsWith('2'); | ||
15 | } catch (err) { | ||
16 | console.error(err); | ||
17 | } | ||
18 | |||
19 | return false; | ||
20 | } | ||
21 | }; \ No newline at end of file | ||
diff --git a/uncompressed/github_entreprise/package.json b/uncompressed/github_entreprise/package.json new file mode 100644 index 0000000..245d655 --- /dev/null +++ b/uncompressed/github_entreprise/package.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "id": "github_entreprise", | ||
3 | "name": "GitHub Entreprise", | ||
4 | "version": "1.0.0", | ||
5 | "description": "GitHub Entreprise", | ||
6 | "main": "index.js", | ||
7 | "author": "Antoine Aumjaud", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://github.mycompany.com/", | ||
11 | "hasCustomUrl": true | ||
12 | } | ||
13 | } | ||
diff --git a/uncompressed/github_entreprise/webview.js b/uncompressed/github_entreprise/webview.js new file mode 100644 index 0000000..3918c74 --- /dev/null +++ b/uncompressed/github_entreprise/webview.js | |||
@@ -0,0 +1 @@ | |||
"use strict"; | |||