aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pnpm-lock.yaml2
-rw-r--r--recipes/lineworks/icon.svg7
-rw-r--r--recipes/lineworks/index.js1
-rw-r--r--recipes/lineworks/package.json10
-rw-r--r--recipes/lineworks/webview.js19
5 files changed, 39 insertions, 0 deletions
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8b20d87..f123a1c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -329,6 +329,8 @@ importers:
329 329
330 recipes/linear: {} 330 recipes/linear: {}
331 331
332 recipes/lineworks: {}
333
332 recipes/linkedin: {} 334 recipes/linkedin: {}
333 335
334 recipes/localazy: {} 336 recipes/localazy: {}
diff --git a/recipes/lineworks/icon.svg b/recipes/lineworks/icon.svg
new file mode 100644
index 0000000..7cf048c
--- /dev/null
+++ b/recipes/lineworks/icon.svg
@@ -0,0 +1,7 @@
1<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2<path d="M23.5556 0H6.44444C2.88528 0 0 2.88528 0 6.44444V23.5556C0 27.1147 2.88528 30 6.44444 30H23.5556C27.1147 30 30 27.1147 30 23.5556V6.44444C30 2.88528 27.1147 0 23.5556 0Z" fill="white"/>
3<path d="M9.01667 23.2633H12.3633C12.4481 23.2637 12.5307 23.2363 12.5985 23.1853C12.6663 23.1344 12.7156 23.0627 12.7389 22.9811L17.0489 8.12111C17.0658 8.06285 17.0689 8.00146 17.058 7.9418C17.047 7.88214 17.0224 7.82583 16.986 7.77733C16.9495 7.72883 16.9023 7.68947 16.8481 7.66236C16.7938 7.63525 16.734 7.62112 16.6733 7.62111H13.3267C13.2419 7.62113 13.1595 7.64866 13.0918 7.69955C13.0241 7.75045 12.9747 7.82196 12.9511 7.90333L8.64222 22.7633C8.62512 22.8215 8.62182 22.8829 8.63258 22.9425C8.64334 23.0022 8.66787 23.0586 8.70422 23.1071C8.74057 23.1556 8.78773 23.195 8.84197 23.2222C8.89621 23.2493 8.95603 23.2634 9.01667 23.2633Z" fill="#028B3A"/>
4<path d="M18.0122 23.2633H21.3589C21.4436 23.2633 21.526 23.2358 21.5938 23.1849C21.6615 23.134 21.7109 23.0625 21.7344 22.9811L26.0433 8.12111C26.0602 8.06285 26.0633 8.00146 26.0524 7.9418C26.0415 7.88214 26.0168 7.82583 25.9804 7.77733C25.944 7.72883 25.8968 7.68947 25.8425 7.66236C25.7883 7.63525 25.7284 7.62112 25.6678 7.62111H22.3211C22.2364 7.62131 22.1541 7.64891 22.0864 7.69977C22.0187 7.75064 21.9693 7.82205 21.9456 7.90333L17.6367 22.7633C17.6195 22.8216 17.6163 22.8831 17.6271 22.9428C17.6379 23.0026 17.6625 23.059 17.699 23.1076C17.7355 23.1561 17.7828 23.1955 17.8372 23.2225C17.8915 23.2496 17.9515 23.2635 18.0122 23.2633Z" fill="#88E518"/>
5<path d="M12.3633 23.2633H8.64222C8.55741 23.2637 8.47481 23.2363 8.40701 23.1853C8.33921 23.1344 8.28993 23.0627 8.26666 22.9811L3.95666 8.12111C3.93977 8.06285 3.93667 8.00146 3.94759 7.9418C3.95851 7.88214 3.98316 7.82583 4.01959 7.77733C4.05602 7.72883 4.10322 7.68947 4.15748 7.66236C4.21174 7.63525 4.27156 7.62112 4.33222 7.62111H8.05444C8.13911 7.62131 8.22145 7.64891 8.28915 7.69977C8.35684 7.75064 8.40625 7.82205 8.43 7.90333L12.7389 22.7633C12.756 22.8216 12.7593 22.8831 12.7485 22.9428C12.7377 23.0026 12.713 23.059 12.6765 23.1076C12.6401 23.1561 12.5928 23.1955 12.5384 23.2225C12.484 23.2496 12.4241 23.2635 12.3633 23.2633Z" fill="#7EE3A1"/>
6<path d="M21.3589 23.2633H17.6367C17.5519 23.2637 17.4693 23.2363 17.4015 23.1853C17.3337 23.1344 17.2844 23.0627 17.2611 22.9811L12.9511 8.12111C12.9342 8.06285 12.9311 8.00146 12.942 7.9418C12.953 7.88214 12.9776 7.82583 13.014 7.77733C13.0505 7.72883 13.0977 7.68947 13.1519 7.66236C13.2062 7.63525 13.266 7.62112 13.3267 7.62111H17.0489C17.1336 7.62113 17.216 7.64866 17.2838 7.69955C17.3515 7.75045 17.4009 7.82196 17.4244 7.90333L21.7344 22.7633C21.7513 22.8216 21.7544 22.883 21.7435 22.9426C21.7326 23.0023 21.7079 23.0586 21.6715 23.1071C21.6351 23.1556 21.5879 23.195 21.5336 23.2221C21.4794 23.2492 21.4195 23.2633 21.3589 23.2633Z" fill="#03C75A"/>
7</svg>
diff --git a/recipes/lineworks/index.js b/recipes/lineworks/index.js
new file mode 100644
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/lineworks/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/lineworks/package.json b/recipes/lineworks/package.json
new file mode 100644
index 0000000..a830544
--- /dev/null
+++ b/recipes/lineworks/package.json
@@ -0,0 +1,10 @@
1{
2 "id": "lineworks",
3 "name": "Line Works",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "hasIndirectMessages": true,
8 "serviceURL": "https://talk.worksmobile.com/"
9 }
10}
diff --git a/recipes/lineworks/webview.js b/recipes/lineworks/webview.js
new file mode 100644
index 0000000..41683ef
--- /dev/null
+++ b/recipes/lineworks/webview.js
@@ -0,0 +1,19 @@
1const _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
6
7module.exports = Ferdium => {
8 const getMessages = () => {
9 const elements = document.querySelectorAll(
10 'div#chat_list > ul#chat_grp_lst > li#item_chat > dl#chat_count > span#new',
11 );
12 let count = elements[0] ? count = Ferdium.safeParseInt(elements[0].textContent): 0;
13
14 Ferdium.setBadge(count);
15 };
16 Ferdium.loop(getMessages);
17
18 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
19}