From 2a549852ff48f130be760b8dc183953aa4b4d195 Mon Sep 17 00:00:00 2001 From: Emanuel Fonseca Date: Tue, 4 Apr 2023 17:40:34 +0100 Subject: Add O'Reilly Learning recipe (#326) --- recipes/oreilly-learning/icon.svg | 13 +++++++++++++ recipes/oreilly-learning/index.js | 1 + recipes/oreilly-learning/package.json | 9 +++++++++ recipes/oreilly-learning/webview.js | 9 +++++++++ 4 files changed, 32 insertions(+) create mode 100644 recipes/oreilly-learning/icon.svg create mode 100644 recipes/oreilly-learning/index.js create mode 100644 recipes/oreilly-learning/package.json create mode 100644 recipes/oreilly-learning/webview.js (limited to 'recipes/oreilly-learning') diff --git a/recipes/oreilly-learning/icon.svg b/recipes/oreilly-learning/icon.svg new file mode 100644 index 0000000..62afba2 --- /dev/null +++ b/recipes/oreilly-learning/icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/recipes/oreilly-learning/index.js b/recipes/oreilly-learning/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/oreilly-learning/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/oreilly-learning/package.json b/recipes/oreilly-learning/package.json new file mode 100644 index 0000000..05aee71 --- /dev/null +++ b/recipes/oreilly-learning/package.json @@ -0,0 +1,9 @@ +{ + "id": "oreilly-learning", + "name": "O'Reilly Learning", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://learning.oreilly.com/home-new/" + } +} diff --git a/recipes/oreilly-learning/webview.js b/recipes/oreilly-learning/webview.js new file mode 100644 index 0000000..56a20b6 --- /dev/null +++ b/recipes/oreilly-learning/webview.js @@ -0,0 +1,9 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdium => { + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf