diff options
author | 2024-04-27 22:54:48 +0200 | |
---|---|---|
committer | 2024-05-04 13:33:08 +0000 | |
commit | e8a78954ea7b4056f3ea0aa18c37bad80d5c4010 (patch) | |
tree | 0e9d81ecd064f502c9fe4a1746d44031d3019c5f | |
parent | chore: bump all recipes minor versions (diff) | |
download | ferdium-recipes-e8a78954ea7b4056f3ea0aa18c37bad80d5c4010.tar.gz ferdium-recipes-e8a78954ea7b4056f3ea0aa18c37bad80d5c4010.tar.zst ferdium-recipes-e8a78954ea7b4056f3ea0aa18c37bad80d5c4010.zip |
feat(recipes): add azure portal recipe
-rw-r--r-- | recipes/azure-portal/icon.svg | 23 | ||||
-rw-r--r-- | recipes/azure-portal/index.js | 1 | ||||
-rw-r--r-- | recipes/azure-portal/package.json | 12 | ||||
-rw-r--r-- | recipes/azure-portal/webview.js | 16 |
4 files changed, 52 insertions, 0 deletions
diff --git a/recipes/azure-portal/icon.svg b/recipes/azure-portal/icon.svg new file mode 100644 index 0000000..7151406 --- /dev/null +++ b/recipes/azure-portal/icon.svg | |||
@@ -0,0 +1,23 @@ | |||
1 | <svg width="150" height="150" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"> | ||
2 | <defs> | ||
3 | <linearGradient id="e399c19f-b68f-429d-b176-18c2117ff73c" x1="-1032.172" x2="-1059.213" y1="145.312" y2="65.426" gradientTransform="matrix(1 0 0 -1 1075 158)" gradientUnits="userSpaceOnUse"> | ||
4 | <stop offset="0" stop-color="#114a8b"></stop> | ||
5 | <stop offset="1" stop-color="#0669bc"></stop> | ||
6 | </linearGradient> | ||
7 | <linearGradient id="ac2a6fc2-ca48-4327-9a3c-d4dcc3256e15" x1="-1023.725" x2="-1029.98" y1="108.083" y2="105.968" gradientTransform="matrix(1 0 0 -1 1075 158)" gradientUnits="userSpaceOnUse"> | ||
8 | <stop offset="0" stop-opacity=".3"></stop> | ||
9 | <stop offset=".071" stop-opacity=".2"></stop> | ||
10 | <stop offset=".321" stop-opacity=".1"></stop> | ||
11 | <stop offset=".623" stop-opacity=".05"></stop> | ||
12 | <stop offset="1" stop-opacity="0"></stop> | ||
13 | </linearGradient> | ||
14 | <linearGradient id="a7fee970-a784-4bb1-af8d-63d18e5f7db9" x1="-1027.165" x2="-997.482" y1="147.642" y2="68.561" gradientTransform="matrix(1 0 0 -1 1075 158)" gradientUnits="userSpaceOnUse"> | ||
15 | <stop offset="0" stop-color="#3ccbf4"></stop> | ||
16 | <stop offset="1" stop-color="#2892df"></stop> | ||
17 | </linearGradient> | ||
18 | </defs> | ||
19 | <path fill="url(#e399c19f-b68f-429d-b176-18c2117ff73c)" d="M33.338 6.544h26.038l-27.03 80.087a4.152 4.152 0 0 1-3.933 2.824H8.149a4.145 4.145 0 0 1-3.928-5.47L29.404 9.368a4.152 4.152 0 0 1 3.934-2.825z"></path> | ||
20 | <path fill="#0078d4" d="M71.175 60.261h-41.29a1.911 1.911 0 0 0-1.305 3.309l26.532 24.764a4.171 4.171 0 0 0 2.846 1.121h23.38z"></path> | ||
21 | <path fill="url(#ac2a6fc2-ca48-4327-9a3c-d4dcc3256e15)" d="M33.338 6.544a4.118 4.118 0 0 0-3.943 2.879L4.252 83.917a4.14 4.14 0 0 0 3.908 5.538h20.787a4.443 4.443 0 0 0 3.41-2.9l5.014-14.777 17.91 16.705a4.237 4.237 0 0 0 2.666.972H81.24L71.024 60.261l-29.781.007L59.47 6.544z"></path> | ||
22 | <path fill="url(#a7fee970-a784-4bb1-af8d-63d18e5f7db9)" d="M66.595 9.364a4.145 4.145 0 0 0-3.928-2.82H33.648a4.146 4.146 0 0 1 3.928 2.82l25.184 74.62a4.146 4.146 0 0 1-3.928 5.472h29.02a4.146 4.146 0 0 0 3.927-5.472z"></path> | ||
23 | </svg> \ No newline at end of file | ||
diff --git a/recipes/azure-portal/index.js b/recipes/azure-portal/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/azure-portal/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/azure-portal/package.json b/recipes/azure-portal/package.json new file mode 100644 index 0000000..e0a6d0b --- /dev/null +++ b/recipes/azure-portal/package.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "id": "azure-portal", | ||
3 | "name": "Azure Portal", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "aliases": [ | ||
7 | "azpo" | ||
8 | ], | ||
9 | "config": { | ||
10 | "serviceURL": "https://portal.azure.com/" | ||
11 | } | ||
12 | } | ||
diff --git a/recipes/azure-portal/webview.js b/recipes/azure-portal/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/azure-portal/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 | }; | ||