aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/stackexchange
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/stackexchange
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/stackexchange')
-rw-r--r--recipes/stackexchange/.gitattributes2
-rw-r--r--recipes/stackexchange/.gitignore1
-rw-r--r--recipes/stackexchange/README.md9
-rw-r--r--recipes/stackexchange/icon.pngbin0 -> 11229 bytes
-rw-r--r--recipes/stackexchange/icon.svg1
-rw-r--r--recipes/stackexchange/index.js2
-rw-r--r--recipes/stackexchange/package.json12
-rw-r--r--recipes/stackexchange/service.css1
-rw-r--r--recipes/stackexchange/webview.js15
9 files changed, 43 insertions, 0 deletions
diff --git a/recipes/stackexchange/.gitattributes b/recipes/stackexchange/.gitattributes
new file mode 100644
index 0000000..dfe0770
--- /dev/null
+++ b/recipes/stackexchange/.gitattributes
@@ -0,0 +1,2 @@
1# Auto detect text files and perform LF normalization
2* text=auto
diff --git a/recipes/stackexchange/.gitignore b/recipes/stackexchange/.gitignore
new file mode 100644
index 0000000..e43b0f9
--- /dev/null
+++ b/recipes/stackexchange/.gitignore
@@ -0,0 +1 @@
.DS_Store
diff --git a/recipes/stackexchange/README.md b/recipes/stackexchange/README.md
new file mode 100644
index 0000000..8bc614b
--- /dev/null
+++ b/recipes/stackexchange/README.md
@@ -0,0 +1,9 @@
1# StackExchange for Ferdi
2
3An unofficial Ferdi recipe for StackExchange
4
5## Know Issues
6
7* No Automatic Login Prompt
8
9The `serviceURL` is set to `https://stackexchange.com/` instead of `https://meta.stackexchange.com/users/login?returnurl=https%3a%2f%2fstackexchange.com%2fusers%2flogin-or-signup%2fdelegated` as it triggers a "Confirm your new account" dialog for users that aren't a member of the "Meta Stack Exchange" (but are of other websites and are already logged in) and may result in unwanted account creation
diff --git a/recipes/stackexchange/icon.png b/recipes/stackexchange/icon.png
new file mode 100644
index 0000000..f13b0ea
--- /dev/null
+++ b/recipes/stackexchange/icon.png
Binary files differ
diff --git a/recipes/stackexchange/icon.svg b/recipes/stackexchange/icon.svg
new file mode 100644
index 0000000..7042bc0
--- /dev/null
+++ b/recipes/stackexchange/icon.svg
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><style>.st0{fill:#376db6}.st1{fill:#4ca2da}.st2{fill:#91d8f4}.st3{fill:#1e5397}</style><path class="st0" d="M22.4 57.5h74.8v15.4H22.4z"/><path class="st1" d="M22.4 37.6h74.8V53H22.4z"/><path class="st2" d="M85.5 17H34.4c-6.6 0-12 5.5-12 12.3v4h74.8v-4C97.2 22.5 92 17 85.5 17z"/><path class="st3" d="M22.4 77.3v4c0 6.8 5.4 12.3 12 12.3h32v16.3l15.8-16.3h3.5c6.6 0 12-5.5 12-12.3v-4H22.4z"/></svg> \ No newline at end of file
diff --git a/recipes/stackexchange/index.js b/recipes/stackexchange/index.js
new file mode 100644
index 0000000..907a90f
--- /dev/null
+++ b/recipes/stackexchange/index.js
@@ -0,0 +1,2 @@
1module.exports = Ferdi => class stackexchange extends Ferdi {
2};
diff --git a/recipes/stackexchange/package.json b/recipes/stackexchange/package.json
new file mode 100644
index 0000000..9d976e5
--- /dev/null
+++ b/recipes/stackexchange/package.json
@@ -0,0 +1,12 @@
1{
2 "id": "stackexchange",
3 "name": "StackExchange",
4 "version": "1.0.0",
5 "description": "An unofficial Ferdi recipe for StackExchange",
6 "main": "index.js",
7 "author": "Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://stackexchange.com/"
11 }
12}
diff --git a/recipes/stackexchange/service.css b/recipes/stackexchange/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/stackexchange/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/stackexchange/webview.js b/recipes/stackexchange/webview.js
new file mode 100644
index 0000000..ddd0b40
--- /dev/null
+++ b/recipes/stackexchange/webview.js
@@ -0,0 +1,15 @@
1"use strict";
2
3var _path = _interopRequireDefault(require("path"));
4
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.exports = Ferdi => {
8 const getMessages = function getMessages() {
9 // TODO: Insert your notification-finding code here
10 Ferdi.setBadge(0, 0);
11 };
12
13 Ferdi.loop(getMessages);
14 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
15};