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/epicgames/.gitattributes | 2 ++ recipes/epicgames/.gitignore | 1 + recipes/epicgames/README.md | 5 +++++ recipes/epicgames/icon.png | Bin 0 -> 36736 bytes recipes/epicgames/icon.svg | 1 + recipes/epicgames/index.js | 2 ++ recipes/epicgames/package.json | 12 ++++++++++++ recipes/epicgames/service.css | 1 + recipes/epicgames/webview.js | 15 +++++++++++++++ 9 files changed, 39 insertions(+) create mode 100644 recipes/epicgames/.gitattributes create mode 100644 recipes/epicgames/.gitignore create mode 100644 recipes/epicgames/README.md create mode 100644 recipes/epicgames/icon.png create mode 100644 recipes/epicgames/icon.svg create mode 100644 recipes/epicgames/index.js create mode 100644 recipes/epicgames/package.json create mode 100644 recipes/epicgames/service.css create mode 100644 recipes/epicgames/webview.js (limited to 'recipes/epicgames') diff --git a/recipes/epicgames/.gitattributes b/recipes/epicgames/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/recipes/epicgames/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/recipes/epicgames/.gitignore b/recipes/epicgames/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/recipes/epicgames/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/recipes/epicgames/README.md b/recipes/epicgames/README.md new file mode 100644 index 0000000..ac90c90 --- /dev/null +++ b/recipes/epicgames/README.md @@ -0,0 +1,5 @@ +# The Epic Game Store for Ferdi + +An unofficial Ferdi recipe for the Epic Games Store + +*NOTE: Technically, the service URL is should be `https://www.epicgames.com/store/en-US/` but it has been set to the login page so that the login prompt is shown, followed by a redirect* diff --git a/recipes/epicgames/icon.png b/recipes/epicgames/icon.png new file mode 100644 index 0000000..8aad456 Binary files /dev/null and b/recipes/epicgames/icon.png differ diff --git a/recipes/epicgames/icon.svg b/recipes/epicgames/icon.svg new file mode 100644 index 0000000..2fd6119 --- /dev/null +++ b/recipes/epicgames/icon.svg @@ -0,0 +1 @@ +Untitled 6 \ No newline at end of file diff --git a/recipes/epicgames/index.js b/recipes/epicgames/index.js new file mode 100644 index 0000000..891040d --- /dev/null +++ b/recipes/epicgames/index.js @@ -0,0 +1,2 @@ +module.exports = Ferdi => class epicgames extends Ferdi { +}; diff --git a/recipes/epicgames/package.json b/recipes/epicgames/package.json new file mode 100644 index 0000000..98873ff --- /dev/null +++ b/recipes/epicgames/package.json @@ -0,0 +1,12 @@ +{ + "id": "epicgames", + "name": "Epic Games Store", + "version": "1.0.0", + "description": "An unofficial Ferdi recipe for the Epic Games Store", + "main": "index.js", + "author": "Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com>", + "license": "MIT", + "config": { + "serviceURL": "https://www.epicgames.com/id/login?lang=en_US&redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fstore%2Fen-US%2F&noHostRedirect=true" + } +} diff --git a/recipes/epicgames/service.css b/recipes/epicgames/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/epicgames/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/epicgames/webview.js b/recipes/epicgames/webview.js new file mode 100644 index 0000000..ddd0b40 --- /dev/null +++ b/recipes/epicgames/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