diff options
Diffstat (limited to 'recipes/drawio')
-rw-r--r-- | recipes/drawio/icon.svg | 20 | ||||
-rw-r--r-- | recipes/drawio/index.js | 1 | ||||
-rw-r--r-- | recipes/drawio/package.json | 9 | ||||
-rw-r--r-- | recipes/drawio/webview.js | 16 |
4 files changed, 46 insertions, 0 deletions
diff --git a/recipes/drawio/icon.svg b/recipes/drawio/icon.svg new file mode 100644 index 0000000..ee65a9c --- /dev/null +++ b/recipes/drawio/icon.svg | |||
@@ -0,0 +1,20 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- Generator: Adobe Illustrator 28.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | ||
3 | <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
4 | viewBox="0 0 1858 1858" style="enable-background:new 0 0 1858 1858;" xml:space="preserve"> | ||
5 | <style type="text/css"> | ||
6 | .st0{fill:#F08705;} | ||
7 | .st1{fill:#DF6C0C;} | ||
8 | .st2{fill:#FFFFFF;} | ||
9 | </style> | ||
10 | <g> | ||
11 | <path class="st0" d="M1858,1778.7c0,44.8-36.8,79.3-79.3,79.3H79.3c-44.8,0-79.3-36.8-79.3-79.3V79.3C0,34.5,36.8,0,79.3,0h1699.3 | ||
12 | c44.8,0,79.3,36.8,79.3,79.3v1699.4H1858z"/> | ||
13 | <path class="st1" d="M1858,1778.7c0,44.8-36.8,79.3-79.3,79.3H635.8l-370.2-376l230-376l683-848.5l677.2,697.9L1858,1778.7z"/> | ||
14 | <path class="st2" d="M1525.7,1038.2h-195.5l-207-351.8c46-9.2,80.5-50.6,80.5-98.9V321.9c0-56.3-44.8-101.2-101.2-101.2H757.7 | ||
15 | c-56.3,0-101.2,44.8-101.2,101.2v265.6c0,49.4,34.5,89.7,79.3,98.9l-207,353H333.4c-56.3,0-101.2,44.8-101.2,101.2v265.6 | ||
16 | c0,56.3,44.8,101.2,101.2,101.2h344.9c56.3,0,101.2-44.8,101.2-101.2v-265.6c0-56.3-44.8-101.2-101.2-101.2H645l204.7-349.5h159.8 | ||
17 | l205.8,349.5h-34.5c-56.3,0-101.2,44.8-101.2,101.2v265.6c0,56.3,44.8,101.2,101.2,101.2h344.9c56.3,0,101.2-44.8,101.2-101.2 | ||
18 | v-265.6C1626.9,1084.2,1582.1,1038.2,1525.7,1038.2L1525.7,1038.2z"/> | ||
19 | </g> | ||
20 | </svg> | ||
diff --git a/recipes/drawio/index.js b/recipes/drawio/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/drawio/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/drawio/package.json b/recipes/drawio/package.json new file mode 100644 index 0000000..3a555cb --- /dev/null +++ b/recipes/drawio/package.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "id": "drawio", | ||
3 | "name": "Draw.io", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://app.diagrams.net/" | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/drawio/webview.js b/recipes/drawio/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/drawio/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.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 | }; | ||