aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/franz-custom-website
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-09-22 20:56:48 +0200
committerLibravatar GitHub <noreply@github.com>2020-09-22 19:56:48 +0100
commit6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch)
tree9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /recipes/franz-custom-website
parentUpdated logos for Outlook/OWA (diff)
downloadferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.gz
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.zst
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.zip
Unpack recipes and update recipes icons (#292)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'recipes/franz-custom-website')
-rw-r--r--recipes/franz-custom-website/README.md5
-rw-r--r--recipes/franz-custom-website/icon.pngbin0 -> 31835 bytes
-rw-r--r--recipes/franz-custom-website/icon.svg11
-rw-r--r--recipes/franz-custom-website/index.js17
-rw-r--r--recipes/franz-custom-website/package.json15
-rw-r--r--recipes/franz-custom-website/style.css3
-rw-r--r--recipes/franz-custom-website/webview.js7
7 files changed, 58 insertions, 0 deletions
diff --git a/recipes/franz-custom-website/README.md b/recipes/franz-custom-website/README.md
new file mode 100644
index 0000000..0b02305
--- /dev/null
+++ b/recipes/franz-custom-website/README.md
@@ -0,0 +1,5 @@
1# Custom Websites for Franz
2This is the official Franz recipe for adding custom websites to Franz
3
4### How to create your own Franz recipes:
5* [Read the documentation](https://github.com/meetfranz/plugins)
diff --git a/recipes/franz-custom-website/icon.png b/recipes/franz-custom-website/icon.png
new file mode 100644
index 0000000..3f10918
--- /dev/null
+++ b/recipes/franz-custom-website/icon.png
Binary files differ
diff --git a/recipes/franz-custom-website/icon.svg b/recipes/franz-custom-website/icon.svg
new file mode 100644
index 0000000..ae9e6d9
--- /dev/null
+++ b/recipes/franz-custom-website/icon.svg
@@ -0,0 +1,11 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="80px" height="80px" viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com -->
4 <title>franz-custom-website</title>
5 <desc>Created with Sketch.</desc>
6 <g id="franz-custom-website" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7 <g id="web" fill="#0099E1" fill-rule="nonzero">
8 <path d="M57.44,48 C57.76,45.36 58,42.72 58,40 C58,37.28 57.76,34.64 57.44,32 L70.96,32 C71.6,34.56 72,37.24 72,40 C72,42.76 71.6,45.44 70.96,48 L57.44,48 Z M50.36,70.24 C52.76,65.8 54.6,61 55.88,56 L67.68,56 C63.84,62.6 57.72,67.72 50.36,70.24 L50.36,70.24 Z M49.36,48 L30.64,48 C30.24,45.36 30,42.72 30,40 C30,37.28 30.24,34.6 30.64,32 L49.36,32 C49.72,34.6 50,37.28 50,40 C50,42.72 49.72,45.36 49.36,48 L49.36,48 Z M40,71.84 C36.68,67.04 34,61.72 32.36,56 L47.64,56 C46,61.72 43.32,67.04 40,71.84 L40,71.84 Z M24,24 L12.32,24 C16.12,17.36 22.28,12.24 29.6,9.76 C27.2,14.2 25.4,19 24,24 L24,24 Z M12.32,56 L24,56 C25.4,61 27.2,65.8 29.6,70.24 C22.28,67.72 16.12,62.6 12.32,56 L12.32,56 Z M9.04,48 C8.4,45.44 8,42.76 8,40 C8,37.24 8.4,34.56 9.04,32 L22.56,32 C22.24,34.64 22,37.28 22,40 C22,42.72 22.24,45.36 22.56,48 L9.04,48 Z M40,8.12 C43.32,12.92 46,18.28 47.64,24 L32.36,24 C34,18.28 36.68,12.92 40,8.12 L40,8.12 Z M67.68,24 L55.88,24 C54.6,19 52.76,14.2 50.36,9.76 C57.72,12.28 63.84,17.36 67.68,24 L67.68,24 Z M40,0 C17.88,1.77635684e-15 0,18 0,40 C-8.8817842e-16,50.6086596 4.21427361,60.7828161 11.7157288,68.2842712 C19.2171839,75.7857264 29.3913404,80 40,80 C62.09139,80 80,62.09139 80,40 C80,29.3913404 75.7857264,19.2171839 68.2842712,11.7157288 C60.7828161,4.21427361 50.6086596,8.8817842e-16 40,0 Z" id="Shape"></path>
9 </g>
10 </g>
11</svg> \ No newline at end of file
diff --git a/recipes/franz-custom-website/index.js b/recipes/franz-custom-website/index.js
new file mode 100644
index 0000000..62f4218
--- /dev/null
+++ b/recipes/franz-custom-website/index.js
@@ -0,0 +1,17 @@
1"use strict";
2
3module.exports = Franz => class CustomWebsite extends Franz {
4 async validateUrl(url) {
5 try {
6 const resp = await window.fetch(url, {
7 method: 'GET'
8 });
9 return !resp.status.toString().startsWith('4');
10 } catch (err) {
11 console.error(err);
12 }
13
14 return false;
15 }
16
17}; \ No newline at end of file
diff --git a/recipes/franz-custom-website/package.json b/recipes/franz-custom-website/package.json
new file mode 100644
index 0000000..457a8a1
--- /dev/null
+++ b/recipes/franz-custom-website/package.json
@@ -0,0 +1,15 @@
1{
2 "id": "franz-custom-website",
3 "name": "Custom Website",
4 "version": "1.0.2",
5 "description": "Add a custom website to Franz",
6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io>",
8 "license": "MIT",
9 "repository": "https://github.com/meetfranz/recipe-custom-website",
10 "config": {
11 "hasNotificationSound": false,
12 "hasIndirectMessages": false,
13 "hasCustomUrl": true
14 }
15}
diff --git a/recipes/franz-custom-website/style.css b/recipes/franz-custom-website/style.css
new file mode 100644
index 0000000..f2760a9
--- /dev/null
+++ b/recipes/franz-custom-website/style.css
@@ -0,0 +1,3 @@
1html {
2 background: #FFFFFF;
3} \ No newline at end of file
diff --git a/recipes/franz-custom-website/webview.js b/recipes/franz-custom-website/webview.js
new file mode 100644
index 0000000..ed1c3a6
--- /dev/null
+++ b/recipes/franz-custom-website/webview.js
@@ -0,0 +1,7 @@
1"use strict";
2
3const path = require('path');
4
5module.exports = Franz => {
6 Franz.injectCSS(path.join(__dirname, 'style.css'));
7}; \ No newline at end of file