From 6f5e4a00588aefdda7a5a1cfe70935870e7e234a Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 22 Sep 2020 20:56:48 +0200 Subject: Unpack recipes and update recipes icons (#292) Co-authored-by: Amine Mouafik --- recipes/bitbucket/.gitattributes | 2 ++ recipes/bitbucket/.gitignore | 1 + recipes/bitbucket/README.md | 3 +++ recipes/bitbucket/icon.png | Bin 0 -> 91631 bytes recipes/bitbucket/icon.svg | 15 +++++++++++++++ recipes/bitbucket/index.js | 2 ++ recipes/bitbucket/package.json | 12 ++++++++++++ recipes/bitbucket/service.css | 1 + recipes/bitbucket/webview.js | 15 +++++++++++++++ 9 files changed, 51 insertions(+) create mode 100644 recipes/bitbucket/.gitattributes create mode 100644 recipes/bitbucket/.gitignore create mode 100644 recipes/bitbucket/README.md create mode 100644 recipes/bitbucket/icon.png create mode 100644 recipes/bitbucket/icon.svg create mode 100644 recipes/bitbucket/index.js create mode 100644 recipes/bitbucket/package.json create mode 100644 recipes/bitbucket/service.css create mode 100644 recipes/bitbucket/webview.js (limited to 'recipes/bitbucket') diff --git a/recipes/bitbucket/.gitattributes b/recipes/bitbucket/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/recipes/bitbucket/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/recipes/bitbucket/.gitignore b/recipes/bitbucket/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/recipes/bitbucket/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/recipes/bitbucket/README.md b/recipes/bitbucket/README.md new file mode 100644 index 0000000..51c2ef6 --- /dev/null +++ b/recipes/bitbucket/README.md @@ -0,0 +1,3 @@ +# BitBucket for Ferdi + +An unofficial Ferdi recipe for Atlassian's BitBucket diff --git a/recipes/bitbucket/icon.png b/recipes/bitbucket/icon.png new file mode 100644 index 0000000..f81603c Binary files /dev/null and b/recipes/bitbucket/icon.png differ diff --git a/recipes/bitbucket/icon.svg b/recipes/bitbucket/icon.svg new file mode 100644 index 0000000..14fe741 --- /dev/null +++ b/recipes/bitbucket/icon.svg @@ -0,0 +1,15 @@ + + + + + + + + Bitbucket-blue + + + + + + + \ No newline at end of file diff --git a/recipes/bitbucket/index.js b/recipes/bitbucket/index.js new file mode 100644 index 0000000..7983bf0 --- /dev/null +++ b/recipes/bitbucket/index.js @@ -0,0 +1,2 @@ +module.exports = Ferdi => class bitbucket extends Ferdi { +}; diff --git a/recipes/bitbucket/package.json b/recipes/bitbucket/package.json new file mode 100644 index 0000000..cd6fc24 --- /dev/null +++ b/recipes/bitbucket/package.json @@ -0,0 +1,12 @@ +{ + "id": "bitbucket", + "name": "BitBucket", + "version": "1.0.0", + "description": "An unofficial Ferdi recipe for Atlassian's BitBucket", + "main": "index.js", + "author": "Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com>", + "license": "MIT", + "config": { + "serviceURL": "https://bitbucket.org/dashboard/overview" + } +} diff --git a/recipes/bitbucket/service.css b/recipes/bitbucket/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/bitbucket/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/bitbucket/webview.js b/recipes/bitbucket/webview.js new file mode 100644 index 0000000..ddd0b40 --- /dev/null +++ b/recipes/bitbucket/webview.js @@ -0,0 +1,15 @@ +"use strict"; + +var _path = _interopRequireDefault(require("path")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + const getMessages = function getMessages() { + // TODO: Insert your notification-finding code here + Ferdi.setBadge(0, 0); + }; + + Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf