diff options
Diffstat (limited to 'recipes/gitlab')
-rw-r--r-- | recipes/gitlab/.gitattributes | 2 | ||||
-rw-r--r-- | recipes/gitlab/.gitignore | 1 | ||||
-rw-r--r-- | recipes/gitlab/README.md | 5 | ||||
-rw-r--r-- | recipes/gitlab/icon.png | bin | 0 -> 47928 bytes | |||
-rw-r--r-- | recipes/gitlab/icon.svg | 13 | ||||
-rw-r--r-- | recipes/gitlab/index.js | 2 | ||||
-rw-r--r-- | recipes/gitlab/package.json | 12 | ||||
-rw-r--r-- | recipes/gitlab/service.css | 1 | ||||
-rw-r--r-- | recipes/gitlab/webview.js | 15 |
9 files changed, 51 insertions, 0 deletions
diff --git a/recipes/gitlab/.gitattributes b/recipes/gitlab/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/recipes/gitlab/.gitattributes | |||
@@ -0,0 +1,2 @@ | |||
1 | # Auto detect text files and perform LF normalization | ||
2 | * text=auto | ||
diff --git a/recipes/gitlab/.gitignore b/recipes/gitlab/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/recipes/gitlab/.gitignore | |||
@@ -0,0 +1 @@ | |||
.DS_Store | |||
diff --git a/recipes/gitlab/README.md b/recipes/gitlab/README.md new file mode 100644 index 0000000..979c01a --- /dev/null +++ b/recipes/gitlab/README.md | |||
@@ -0,0 +1,5 @@ | |||
1 | # GitLab for Ferdi | ||
2 | |||
3 | An unofficial Ferdi recipe for GitLab CI | ||
4 | |||
5 | *NOTE: Technically, the service URL is should be `https://gitlab.com/` but it has been set to the login page because the service URL on account without logins redirect to `https://about.gitlab.com/`* | ||
diff --git a/recipes/gitlab/icon.png b/recipes/gitlab/icon.png new file mode 100644 index 0000000..d6647fe --- /dev/null +++ b/recipes/gitlab/icon.png | |||
Binary files differ | |||
diff --git a/recipes/gitlab/icon.svg b/recipes/gitlab/icon.svg new file mode 100644 index 0000000..07ae5d3 --- /dev/null +++ b/recipes/gitlab/icon.svg | |||
@@ -0,0 +1,13 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <svg xmlns="http://www.w3.org/2000/svg" width="492.50943" height="492.50943" viewBox="0 0 492.50943 453.67966"> | ||
3 | <g fill="none" fill-rule="evenodd"> | ||
4 | <path d="M491.58891 259.39833l-27.55867-84.81467L409.41291 6.48633c-2.80934-8.648-15.04533-8.648-17.856 0l-54.61867 168.09733H155.57158l-54.62-168.09733c-2.80933-8.648-15.04533-8.648-17.856 0L28.47825 174.58366.92092 259.39833c-2.514669 7.736.24 16.21066 6.82 20.992l238.51333 173.28933 238.51466-173.28933c6.58-4.78134 9.33333-13.256 6.82-20.992" fill="#fc6d26"/> | ||
5 | <path d="M246.25478 453.67966l90.684-279.096h-181.368z" fill="#e24329"/> | ||
6 | <path d="M246.25478 453.67912l-90.684-279.09466h-127.092z" fill="#fc6d26"/> | ||
7 | <path d="M28.47878 174.58406L.92012 259.39873c-2.513336 7.736.24 16.21066 6.82133 20.99066l238.51333 173.28933z" fill="#fca326"/> | ||
8 | <path d="M28.47878 174.58433h127.092L100.95212 6.487c-2.81067-8.64933-15.04667-8.64933-17.856 0z" fill="#e24329"/> | ||
9 | <path d="M246.25478 453.67912l90.684-279.09466h127.09199z" fill="#fc6d26"/> | ||
10 | <path d="M464.03064 174.58406l27.55867 84.81467c2.51333 7.736-.24 16.21066-6.82134 20.99066L246.25465 453.67872z" fill="#fca326"/> | ||
11 | <path d="M464.03064 174.58433h-127.092L391.55731 6.487c2.81066-8.64933 15.04666-8.64933 17.856 0z" fill="#e24329"/> | ||
12 | </g> | ||
13 | </svg> \ No newline at end of file | ||
diff --git a/recipes/gitlab/index.js b/recipes/gitlab/index.js new file mode 100644 index 0000000..500d8e8 --- /dev/null +++ b/recipes/gitlab/index.js | |||
@@ -0,0 +1,2 @@ | |||
1 | module.exports = Ferdi => class gitlab extends Ferdi { | ||
2 | }; | ||
diff --git a/recipes/gitlab/package.json b/recipes/gitlab/package.json new file mode 100644 index 0000000..928203e --- /dev/null +++ b/recipes/gitlab/package.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "id": "gitlab", | ||
3 | "name": "GitLab", | ||
4 | "version": "1.0.0", | ||
5 | "description": "An unofficial Ferdi recipe for GitLab CI", | ||
6 | "main": "index.js", | ||
7 | "author": "Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://gitlab.com/users/sign_in" | ||
11 | } | ||
12 | } | ||
diff --git a/recipes/gitlab/service.css b/recipes/gitlab/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/gitlab/service.css | |||
@@ -0,0 +1 @@ | |||
/* Insert custom styles you want to insert here */ \ No newline at end of file | |||
diff --git a/recipes/gitlab/webview.js b/recipes/gitlab/webview.js new file mode 100644 index 0000000..ddd0b40 --- /dev/null +++ b/recipes/gitlab/webview.js | |||
@@ -0,0 +1,15 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | |||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
6 | |||
7 | module.exports = Ferdi => { | ||
8 | const getMessages = function getMessages() { | ||
9 | // TODO: Insert your notification-finding code here | ||
10 | Ferdi.setBadge(0, 0); | ||
11 | }; | ||
12 | |||
13 | Ferdi.loop(getMessages); | ||
14 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
15 | }; | ||