Skip to content

Commit

Permalink
Add several recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialAro committed Mar 17, 2024
1 parent e1d9f2d commit c0b88c0
Show file tree
Hide file tree
Showing 65 changed files with 1,794 additions and 0 deletions.
37 changes: 37 additions & 0 deletions recipes/alibaba-chat/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/alibaba-chat/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
9 changes: 9 additions & 0 deletions recipes/alibaba-chat/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "alibaba-chat",
"name": "Alibaba Chat",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://message.alibaba.com/message/messenger.htm"
}
}
19 changes: 19 additions & 0 deletions recipes/alibaba-chat/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require("path"));

module.exports = (Ferdium) => {
// TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
const getMessages = () => {
// TODO: Insert your notification-finding code here
const count = document.querySelector(
"#im-list > div > div.im-conversation-list-container > div.im-next-tabs.im-next-tabs-pure.im-next-tabs-scrollable.im-next-medium.list-tab > div.im-next-tabs-bar > div > div > div > ul > li:nth-child(2) > div > div > span.red-num"
);
Ferdium.setBadge(count, 0);
};
Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, "service.css"));
};
27 changes: 27 additions & 0 deletions recipes/canva/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/canva/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
9 changes: 9 additions & 0 deletions recipes/canva/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "canva",
"name": "Canva",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://canva.com"
}
}
16 changes: 16 additions & 0 deletions recipes/canva/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require("path"));

module.exports = (Ferdium) => {
// TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
// const getMessages = () => {
// // TODO: Insert your notification-finding code here
// Ferdium.setBadge(0, 0);
// };
// Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, "service.css"));
};
20 changes: 20 additions & 0 deletions recipes/drawio/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/drawio/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
9 changes: 9 additions & 0 deletions recipes/drawio/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "drawio",
"name": "Draw.io",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://app.diagrams.net/"
}
}
16 changes: 16 additions & 0 deletions recipes/drawio/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require("path"));

module.exports = (Ferdium) => {
// TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
// const getMessages = () => {
// // TODO: Insert your notification-finding code here
// Ferdium.setBadge(0, 0);
// };
// Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, "service.css"));
};
21 changes: 21 additions & 0 deletions recipes/fandom/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/fandom/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
9 changes: 9 additions & 0 deletions recipes/fandom/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "fandom",
"name": "Fandom",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://www.fandom.com"
}
}
16 changes: 16 additions & 0 deletions recipes/fandom/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require("path"));

module.exports = (Ferdium) => {
// TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
// const getMessages = () => {
// // TODO: Insert your notification-finding code here
// Ferdium.setBadge(0, 0);
// };
// Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, "service.css"));
};
15 changes: 15 additions & 0 deletions recipes/fiverr/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/fiverr/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
10 changes: 10 additions & 0 deletions recipes/fiverr/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "fiverr",
"name": "Fiverr",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://www.fiverr.com/inbox/",
"hasNotificationSound": true
}
}
16 changes: 16 additions & 0 deletions recipes/fiverr/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require("path"));

module.exports = (Ferdium) => {
// TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
// const getMessages = () => {
// // TODO: Insert your notification-finding code here
// Ferdium.setBadge(0, 0);
// };
// Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, "service.css"));
};
20 changes: 20 additions & 0 deletions recipes/google-maps/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/google-maps/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
9 changes: 9 additions & 0 deletions recipes/google-maps/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "google-maps",
"name": "Google Maps",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://www.google.com/maps"
}
}
16 changes: 16 additions & 0 deletions recipes/google-maps/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require("path"));

module.exports = (Ferdium) => {
// TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
// const getMessages = () => {
// // TODO: Insert your notification-finding code here
// Ferdium.setBadge(0, 0);
// };
// Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, "service.css"));
};
1 change: 1 addition & 0 deletions recipes/hacker-news/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/hacker-news/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
9 changes: 9 additions & 0 deletions recipes/hacker-news/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "hacker-news",
"name": "Hacker News",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://news.ycombinator.com/"
}
}
16 changes: 16 additions & 0 deletions recipes/hacker-news/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require("path"));

module.exports = (Ferdium) => {
// TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
// const getMessages = () => {
// // TODO: Insert your notification-finding code here
// Ferdium.setBadge(0, 0);
// };
// Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, "service.css"));
};
34 changes: 34 additions & 0 deletions recipes/infomaniak-kdrive/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/infomaniak-kdrive/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;

0 comments on commit c0b88c0

Please sign in to comment.