diff options
author | Bennett <hello@vantezzen.io> | 2020-07-19 20:50:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-19 20:50:01 +0200 |
commit | 86e9f657cbe06cfd01e0559fd4cf76d7f53968f9 (patch) | |
tree | 8455b9694f03abab0718b735924a4679137b4e7f /uncompressed/stackexchange | |
parent | Merge pull request #229 from CrEaK/office365-fix (diff) | |
parent | Add StackExchange recipe (diff) | |
download | ferdium-recipes-86e9f657cbe06cfd01e0559fd4cf76d7f53968f9.tar.gz ferdium-recipes-86e9f657cbe06cfd01e0559fd4cf76d7f53968f9.tar.zst ferdium-recipes-86e9f657cbe06cfd01e0559fd4cf76d7f53968f9.zip |
Merge pull request #222 from kittywhiskers/master
Add StackExchange
Diffstat (limited to 'uncompressed/stackexchange')
-rw-r--r-- | uncompressed/stackexchange/.gitattributes | 2 | ||||
-rw-r--r-- | uncompressed/stackexchange/.gitignore | 1 | ||||
-rw-r--r-- | uncompressed/stackexchange/README.md | 9 | ||||
-rw-r--r-- | uncompressed/stackexchange/icon.png | bin | 0 -> 11229 bytes | |||
-rw-r--r-- | uncompressed/stackexchange/icon.svg | 1 | ||||
-rw-r--r-- | uncompressed/stackexchange/index.js | 2 | ||||
-rw-r--r-- | uncompressed/stackexchange/package.json | 12 | ||||
-rw-r--r-- | uncompressed/stackexchange/service.css | 1 | ||||
-rw-r--r-- | uncompressed/stackexchange/webview.js | 15 |
9 files changed, 43 insertions, 0 deletions
diff --git a/uncompressed/stackexchange/.gitattributes b/uncompressed/stackexchange/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/uncompressed/stackexchange/.gitattributes | |||
@@ -0,0 +1,2 @@ | |||
1 | # Auto detect text files and perform LF normalization | ||
2 | * text=auto | ||
diff --git a/uncompressed/stackexchange/.gitignore b/uncompressed/stackexchange/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/uncompressed/stackexchange/.gitignore | |||
@@ -0,0 +1 @@ | |||
.DS_Store | |||
diff --git a/uncompressed/stackexchange/README.md b/uncompressed/stackexchange/README.md new file mode 100644 index 0000000..8bc614b --- /dev/null +++ b/uncompressed/stackexchange/README.md | |||
@@ -0,0 +1,9 @@ | |||
1 | # StackExchange for Ferdi | ||
2 | |||
3 | An unofficial Ferdi recipe for StackExchange | ||
4 | |||
5 | ## Know Issues | ||
6 | |||
7 | * No Automatic Login Prompt | ||
8 | |||
9 | The `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/uncompressed/stackexchange/icon.png b/uncompressed/stackexchange/icon.png new file mode 100644 index 0000000..f13b0ea --- /dev/null +++ b/uncompressed/stackexchange/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/stackexchange/icon.svg b/uncompressed/stackexchange/icon.svg new file mode 100644 index 0000000..7042bc0 --- /dev/null +++ b/uncompressed/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/uncompressed/stackexchange/index.js b/uncompressed/stackexchange/index.js new file mode 100644 index 0000000..907a90f --- /dev/null +++ b/uncompressed/stackexchange/index.js | |||
@@ -0,0 +1,2 @@ | |||
1 | module.exports = Ferdi => class stackexchange extends Ferdi { | ||
2 | }; | ||
diff --git a/uncompressed/stackexchange/package.json b/uncompressed/stackexchange/package.json new file mode 100644 index 0000000..9d976e5 --- /dev/null +++ b/uncompressed/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/uncompressed/stackexchange/service.css b/uncompressed/stackexchange/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/uncompressed/stackexchange/service.css | |||
@@ -0,0 +1 @@ | |||
/* Insert custom styles you want to insert here */ \ No newline at end of file | |||
diff --git a/uncompressed/stackexchange/webview.js b/uncompressed/stackexchange/webview.js new file mode 100644 index 0000000..ddd0b40 --- /dev/null +++ b/uncompressed/stackexchange/webview.js | |||
@@ -0,0 +1,15 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | |||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
6 | |||
7 | module.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 | }; | ||