diff options
-rw-r--r-- | all.json | 9 | ||||
-rw-r--r-- | recipes/stackoverflow-chat/README.md | 2 | ||||
-rw-r--r-- | recipes/stackoverflow-chat/icon.svg | 1 | ||||
-rw-r--r-- | recipes/stackoverflow-chat/index.js | 2 | ||||
-rw-r--r-- | recipes/stackoverflow-chat/package.json | 10 | ||||
-rw-r--r-- | recipes/stackoverflow-chat/service.css | 1 | ||||
-rw-r--r-- | recipes/stackoverflow-chat/webview.js | 14 |
7 files changed, 39 insertions, 0 deletions
@@ -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 | ||
2 | This 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 @@ | |||
1 | module.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 @@ | |||
1 | var _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
4 | |||
5 | module.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 | }; | ||