diff options
author | 2020-07-02 15:04:58 +0530 | |
---|---|---|
committer | 2020-07-02 15:04:58 +0530 | |
commit | effc153fe644eaa3ec3a9aa22a419a837d38dbe7 (patch) | |
tree | 2a976a116f6c654b734c4b78bb6a372eeccbcb3f | |
parent | Update repository (diff) | |
download | ferdium-recipes-effc153fe644eaa3ec3a9aa22a419a837d38dbe7.tar.gz ferdium-recipes-effc153fe644eaa3ec3a9aa22a419a837d38dbe7.tar.zst ferdium-recipes-effc153fe644eaa3ec3a9aa22a419a837d38dbe7.zip |
Add StackExchange recipe
-rw-r--r-- | all.json | 11 | ||||
-rw-r--r-- | archives/stackexchange.tar.gz | bin | 0 -> 8158 bytes | |||
-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 |
11 files changed, 54 insertions, 0 deletions
@@ -858,6 +858,17 @@ | |||
858 | } | 858 | } |
859 | }, | 859 | }, |
860 | { | 860 | { |
861 | "author": "Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com>", | ||
862 | "featured": false, | ||
863 | "id": "stackexchange", | ||
864 | "name": "StackExchange", | ||
865 | "version": "1.0.0", | ||
866 | "icons": { | ||
867 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/stackexchange/icon.png", | ||
868 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/stackexchange/icon.svg" | ||
869 | } | ||
870 | }, | ||
871 | { | ||
861 | "author": "vantezzen <hello@vantezzen.io>", | 872 | "author": "vantezzen <hello@vantezzen.io>", |
862 | "featured": false, | 873 | "featured": false, |
863 | "id": "standardnotes", | 874 | "id": "standardnotes", |
diff --git a/archives/stackexchange.tar.gz b/archives/stackexchange.tar.gz new file mode 100644 index 0000000..6812fb8 --- /dev/null +++ b/archives/stackexchange.tar.gz | |||
Binary files differ | |||
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 | }; | ||