aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/withspectrum
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/withspectrum')
-rw-r--r--recipes/withspectrum/LICENSE21
-rw-r--r--recipes/withspectrum/README.md1
-rw-r--r--recipes/withspectrum/icon.pngbin0 -> 574431 bytes
-rw-r--r--recipes/withspectrum/icon.svg26
-rw-r--r--recipes/withspectrum/index.js4
-rw-r--r--recipes/withspectrum/package.json12
-rw-r--r--recipes/withspectrum/webview.js14
7 files changed, 78 insertions, 0 deletions
diff --git a/recipes/withspectrum/LICENSE b/recipes/withspectrum/LICENSE
new file mode 100644
index 0000000..084f7b7
--- /dev/null
+++ b/recipes/withspectrum/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2017 Max Stoiber
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
diff --git a/recipes/withspectrum/README.md b/recipes/withspectrum/README.md
new file mode 100644
index 0000000..cd24e16
--- /dev/null
+++ b/recipes/withspectrum/README.md
@@ -0,0 +1 @@
# franz-spectrum \ No newline at end of file
diff --git a/recipes/withspectrum/icon.png b/recipes/withspectrum/icon.png
new file mode 100644
index 0000000..b8ef5f1
--- /dev/null
+++ b/recipes/withspectrum/icon.png
Binary files differ
diff --git a/recipes/withspectrum/icon.svg b/recipes/withspectrum/icon.svg
new file mode 100644
index 0000000..2c54e68
--- /dev/null
+++ b/recipes/withspectrum/icon.svg
@@ -0,0 +1,26 @@
1<svg width="512" height="512" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2<title>512</title>
3<desc>Created using Figma</desc>
4<g id="Canvas" transform="translate(-236 220)">
5<clipPath id="clip-0" clip-rule="evenodd">
6<path d="M 236 -220L 748 -220L 748 292L 236 292L 236 -220Z" fill="#FFFFFF"/>
7</clipPath>
8<g id="512" clip-path="url(#clip-0)">
9<g id="Ellipse">
10<use xlink:href="#path0_fill" transform="translate(236 -220)" fill="#C4C4C4"/>
11<use xlink:href="#path0_fill" transform="translate(236 -220)" fill="url(#paint1_radial)"/>
12</g>
13<g id="mark">
14<use xlink:href="#path1_fill" transform="translate(372 -84)" fill="#FFFFFF"/>
15</g>
16</g>
17</g>
18<defs>
19<radialGradient id="paint1_radial" cx="0.5" cy="0.5" r="0.5" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1024 1024 -1024 1024 0 -1024)">
20<stop offset="0" stop-color="#7B16FF"/>
21<stop offset="1" stop-color="#3818E5"/>
22</radialGradient>
23<path id="path0_fill" d="M 512 256C 512 496 496 512 256 512C 16 512 0 496 0 256C 0 16 21.3333 0 256 3.84993e-13C 496 7.57912e-13 512 16 512 256Z"/>
24<path id="path1_fill" fill-rule="evenodd" d="M 0 16C 0 7.16344 7.16344 0 16 0L 30 0C 145.98 0 240 94.0202 240 210L 240 224C 240 232.837 232.837 240 224 240L 136 240C 127.163 240 120 232.837 120 224L 120 210C 120 160.294 79.7056 120 30 120L 16 120C 7.16344 120 0 112.837 0 104L 0 16Z"/>
25</defs>
26</svg>
diff --git a/recipes/withspectrum/index.js b/recipes/withspectrum/index.js
new file mode 100644
index 0000000..b77c7a1
--- /dev/null
+++ b/recipes/withspectrum/index.js
@@ -0,0 +1,4 @@
1"use strict";
2
3module.exports = Franz => Franz;
4//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndpdGhzcGVjdHJ1bS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6IndpdGhzcGVjdHJ1bS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbnpcbiJdfQ== \ No newline at end of file
diff --git a/recipes/withspectrum/package.json b/recipes/withspectrum/package.json
new file mode 100644
index 0000000..bd16504
--- /dev/null
+++ b/recipes/withspectrum/package.json
@@ -0,0 +1,12 @@
1{
2 "id": "withspectrum",
3 "name": "Spectrum",
4 "version": "1.0.0",
5 "description": "A community platform for the future.",
6 "main": "index.js",
7 "author": "Max Stoiber",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://spectrum.chat"
11 }
12}
diff --git a/recipes/withspectrum/webview.js b/recipes/withspectrum/webview.js
new file mode 100644
index 0000000..2f71cf6
--- /dev/null
+++ b/recipes/withspectrum/webview.js
@@ -0,0 +1,14 @@
1'use strict';
2
3module.exports = Franz => {
4 const getMessages = () => {
5 const element = document.querySelector('[href="/notifications"] > div');
6 const content = window.getComputedStyle(element, ':after').getPropertyValue('content').match(/\d+/);
7 const notifications = Number(content);
8
9 Franz.setBadge(notifications);
10 };
11
12 Franz.loop(getMessages);
13};
14//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndpdGhzcGVjdHJ1bS93ZWJ2aWV3Lmp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