aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-22 05:42:17 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-09-22 05:44:29 +0530
commitaff47bbbed04ce5b95439f7881bbea62021b173b (patch)
tree18ccc35ea6a89d7c6aa9344320b957003295fcdf
parentchore: allow self-hosted option for kimai-cloud service. (diff)
downloadferdium-recipes-aff47bbbed04ce5b95439f7881bbea62021b173b.tar.gz
ferdium-recipes-aff47bbbed04ce5b95439f7881bbea62021b173b.tar.zst
ferdium-recipes-aff47bbbed04ce5b95439f7881bbea62021b173b.zip
feature: Add new recipe for 'stackoverflow-chat'
(fixes #718)
-rw-r--r--all.json9
-rw-r--r--recipes/stackoverflow-chat/README.md2
-rw-r--r--recipes/stackoverflow-chat/icon.svg1
-rw-r--r--recipes/stackoverflow-chat/index.js2
-rw-r--r--recipes/stackoverflow-chat/package.json10
-rw-r--r--recipes/stackoverflow-chat/service.css1
-rw-r--r--recipes/stackoverflow-chat/webview.js14
7 files changed, 39 insertions, 0 deletions
diff --git a/all.json b/all.json
index d3e9347..1baa2d1 100644
--- a/all.json
+++ b/all.json
@@ -1474,6 +1474,15 @@
1474 }, 1474 },
1475 { 1475 {
1476 "featured": false, 1476 "featured": false,
1477 "id": "stackoverflow-chat",
1478 "name": "Stackoverflow chat",
1479 "version": "1.0.0",
1480 "icons": {
1481 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/stackoverflow-chat/icon.svg"
1482 }
1483 },
1484 {
1485 "featured": false,
1477 "id": "standardnotes", 1486 "id": "standardnotes",
1478 "name": "StandardNotes", 1487 "name": "StandardNotes",
1479 "version": "1.1.0", 1488 "version": "1.1.0",
diff --git a/recipes/stackoverflow-chat/README.md b/recipes/stackoverflow-chat/README.md
new file mode 100644
index 0000000..a5aadcd
--- /dev/null
+++ b/recipes/stackoverflow-chat/README.md
@@ -0,0 +1,2 @@
1# stackoverflow-chat for Ferdi
2This is a Ferdi recipe for stackoverflow-chat
diff --git a/recipes/stackoverflow-chat/icon.svg b/recipes/stackoverflow-chat/icon.svg
new file mode 100644
index 0000000..5298d4c
--- /dev/null
+++ b/recipes/stackoverflow-chat/icon.svg
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><style>.st0{fill:#bcbbbb}.st1{fill:#f48023}</style><path class="st0" d="M84.4 93.8V70.6h7.7v30.9H22.6V70.6h7.7v23.2z"/><path class="st1" d="M38.8 68.4l37.8 7.9 1.6-7.6-37.8-7.9-1.6 7.6zm5-18l35 16.3 3.2-7-35-16.4-3.2 7.1zm9.7-17.2l29.7 24.7 4.9-5.9-29.7-24.7-4.9 5.9zm19.2-18.3l-6.2 4.6 23 31 6.2-4.6-23-31zM38 86h38.6v-7.7H38V86z"/></svg> \ No newline at end of file
diff --git a/recipes/stackoverflow-chat/index.js b/recipes/stackoverflow-chat/index.js
new file mode 100644
index 0000000..c6cfcdf
--- /dev/null
+++ b/recipes/stackoverflow-chat/index.js
@@ -0,0 +1,2 @@
1module.exports = Ferdi => class stackoverflowchat extends Ferdi {
2};
diff --git a/recipes/stackoverflow-chat/package.json b/recipes/stackoverflow-chat/package.json
new file mode 100644
index 0000000..688db65
--- /dev/null
+++ b/recipes/stackoverflow-chat/package.json
@@ -0,0 +1,10 @@
1{
2 "id": "stackoverflow-chat",
3 "name": "Stackoverflow chat",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://chat.stackoverflow.com/",
8 "hasNotificationSound": true
9 }
10}
diff --git a/recipes/stackoverflow-chat/service.css b/recipes/stackoverflow-chat/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/stackoverflow-chat/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/stackoverflow-chat/webview.js b/recipes/stackoverflow-chat/webview.js
new file mode 100644
index 0000000..044c773
--- /dev/null
+++ b/recipes/stackoverflow-chat/webview.js
@@ -0,0 +1,14 @@
1var _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.exports = Ferdi => {
6 // TODO: If your stackoverflow-chat service has unread messages, uncomment these lines to implement the logic for updating the badges
7 // const getMessages = () => {
8 // // TODO: Insert your notification-finding code here
9 // Ferdi.setBadge(0, 0);
10 // };
11 // Ferdi.loop(getMessages);
12
13 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
14};