aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/oreilly-learning
diff options
context:
space:
mode:
authorLibravatar Emanuel Fonseca <emdfonseca@gmail.com>2023-04-04 17:40:34 +0100
committerLibravatar GitHub <noreply@github.com>2023-04-04 17:40:34 +0100
commit2a549852ff48f130be760b8dc183953aa4b4d195 (patch)
tree801a89968173b908393319b059621ec403ea4c27 /recipes/oreilly-learning
parentadd ravager-dk as a contributor for code (#331) [skip ci] (diff)
downloadferdium-recipes-2a549852ff48f130be760b8dc183953aa4b4d195.tar.gz
ferdium-recipes-2a549852ff48f130be760b8dc183953aa4b4d195.tar.zst
ferdium-recipes-2a549852ff48f130be760b8dc183953aa4b4d195.zip
Add O'Reilly Learning recipe (#326)
Diffstat (limited to 'recipes/oreilly-learning')
-rw-r--r--recipes/oreilly-learning/icon.svg13
-rw-r--r--recipes/oreilly-learning/index.js1
-rw-r--r--recipes/oreilly-learning/package.json9
-rw-r--r--recipes/oreilly-learning/webview.js9
4 files changed, 32 insertions, 0 deletions
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 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3<!-- Created with Vectornator (http://vectornator.io/) -->
4<svg height="100%" stroke-miterlimit="10" style="fill-rule:nonzero;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;" version="1.1" viewBox="0 0 1024 1024" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:vectornator="http://vectornator.io" xmlns:xlink="http://www.w3.org/1999/xlink">
5<defs/>
6<clipPath id="ArtboardFrame">
7<rect height="1024" width="1024" x="0" y="0"/>
8</clipPath>
9<g clip-path="url(#ArtboardFrame)" id="Untitled" vectornator:layerName="Untitled">
10<path d="M318.408 0L705.592 0C881.444 0 1024 142.556 1024 318.408L1024 705.592C1024 881.444 881.444 1024 705.592 1024L318.408 1024C142.556 1024 0 881.444 0 705.592L0 318.408C0 142.556 142.556 0 318.408 0Z" fill="#efefef" fill-rule="nonzero" opacity="1" stroke="none"/>
11<path d="M802.9 397.818C767.213 397.818 738.292 368.88 738.292 333.182C738.292 297.503 767.213 268.592 802.9 268.592C838.57 268.592 867.489 297.503 867.489 333.182C867.489 368.88 838.57 397.818 802.9 397.818M471.965 817.086C320.483 817.049 197.746 694.301 197.719 542.849C197.746 391.376 320.483 268.62 471.965 268.592C623.446 268.62 746.165 391.377 746.212 542.849C746.165 694.301 623.446 817.049 471.965 817.086M471.965 356.367C420.325 356.395 373.973 377.153 340.089 410.944C306.288 444.866 285.502 491.198 285.474 542.849C285.502 594.46 306.288 640.812 340.089 674.688C373.973 708.506 420.325 729.292 471.965 729.32C523.597 729.292 569.928 708.506 603.822 674.688C637.651 640.812 658.428 594.46 658.428 542.849C658.428 491.199 637.651 444.866 603.822 410.944C569.928 377.153 523.597 356.395 471.965 356.367" fill="#d3002d" fill-rule="evenodd" opacity="1" stroke="none" vectornator:layerName="path"/>
12</g>
13</svg>
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 @@
1{
2 "id": "oreilly-learning",
3 "name": "O'Reilly Learning",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://learning.oreilly.com/home-new/"
8 }
9}
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 @@
1const _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
6
7module.exports = Ferdium => {
8 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
9};