aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/regex101
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2023-10-19 01:23:01 +0100
committerLibravatar GitHub <noreply@github.com>2023-10-19 01:23:01 +0100
commit5438c4606943d02c3286af727d3b483a9a290768 (patch)
treed497f332ed74b38c0e190e35eef1faa7ac42ba10 /recipes/regex101
parentInstagram fix (#1403) (#443) (diff)
downloadferdium-recipes-5438c4606943d02c3286af727d3b483a9a290768.tar.gz
ferdium-recipes-5438c4606943d02c3286af727d3b483a9a290768.tar.zst
ferdium-recipes-5438c4606943d02c3286af727d3b483a9a290768.zip
Add multiple recipes (#444)
Diffstat (limited to 'recipes/regex101')
-rw-r--r--recipes/regex101/icon.svg19
-rw-r--r--recipes/regex101/index.js1
-rw-r--r--recipes/regex101/package.json9
-rw-r--r--recipes/regex101/webview.js16
4 files changed, 45 insertions, 0 deletions
diff --git a/recipes/regex101/icon.svg b/recipes/regex101/icon.svg
new file mode 100644
index 0000000..5918814
--- /dev/null
+++ b/recipes/regex101/icon.svg
@@ -0,0 +1,19 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg id="Layer_2" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36">
3 <defs>
4 <style>
5 .cls-1 {
6 fill: #fff;
7 }
8
9 .cls-2 {
10 fill: #3366a5;
11 }
12 </style>
13 </defs>
14 <g id="Layer_1-2" data-name="Layer 1">
15 <rect class="cls-2" width="36" height="36" rx="4.37" ry="4.37"/>
16 <path class="cls-1" d="m14.18,27.9h-3.03V8c2.49,0,5.1-.07,7.71.02,3.76.12,5.12,1.59,5.14,5.3.02,3.86-.1,4.04-4.21,6.37,1.67,2.65,3.33,5.29,5.02,7.98-1.36,1-2.64.38-3.55-.95-.96-1.4-1.83-2.9-2.47-4.47-.88-2.18-2.31-2.78-4.63-2.05v7.69Zm-.03-9.57c1.89-.49,3.53-.88,5.14-1.33,1.54-.43,2.8-2.18,2.71-3.66-.07-1.14-1.9-3.21-3.13-3.3-1.6-.12-3.22-.03-4.72-.03v8.32Z"/>
17 <path class="cls-2" d="m14.15,18.32v-8.32c1.5,0,3.12-.09,4.72.03,1.23.09,3.07,2.17,3.13,3.3.09,1.48-1.17,3.23-2.71,3.66-1.62.46-3.25.85-5.14,1.33Z"/>
18 </g>
19</svg> \ No newline at end of file
diff --git a/recipes/regex101/index.js b/recipes/regex101/index.js
new file mode 100644
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/regex101/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/regex101/package.json b/recipes/regex101/package.json
new file mode 100644
index 0000000..4502673
--- /dev/null
+++ b/recipes/regex101/package.json
@@ -0,0 +1,9 @@
1{
2 "id": "regex101",
3 "name": "Regex101",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://regex101.com/"
8 }
9}
diff --git a/recipes/regex101/webview.js b/recipes/regex101/webview.js
new file mode 100644
index 0000000..2a81dec
--- /dev/null
+++ b/recipes/regex101/webview.js
@@ -0,0 +1,16 @@
1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
8 // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
9 // const getMessages = () => {
10 // // TODO: Insert your notification-finding code here
11 // Ferdium.setBadge(0, 0);
12 // };
13 // Ferdium.loop(getMessages);
14
15 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
16};