From 2491ea3c11de71391cd333cfc375576232d64cba Mon Sep 17 00:00:00 2001 From: Bennett Date: Wed, 11 Dec 2019 11:35:39 +0100 Subject: Update packages --- all.json | 36 ++++++++++++++++++----- android-messages.tar.gz | Bin 1787 -> 2257 bytes cliq.tar.gz | Bin 0 -> 14213 bytes franz-custom-website.tar.gz | Bin 1916 -> 2023 bytes hangoutschat.tar.gz | Bin 5608 -> 3985 bytes nextcloud-talk.tar.gz | Bin 0 -> 1526 bytes skype.tar.gz | Bin 3398 -> 3802 bytes slack.tar.gz | Bin 2510 -> 2513 bytes uncompressed/android-messages/package.json | 2 +- uncompressed/android-messages/webview.js | 39 ++++++++++++++++++++++++- uncompressed/cliq/README.md | 2 ++ uncompressed/cliq/icon.png | Bin 0 -> 134531 bytes uncompressed/cliq/icon.svg | 1 + uncompressed/cliq/index.js | 3 ++ uncompressed/cliq/package.json | 14 +++++++++ uncompressed/cliq/webview.js | 9 ++++++ uncompressed/franz-custom-website/package.json | 2 +- uncompressed/franz-custom-website/style.css | 3 ++ uncompressed/franz-custom-website/webview.js | 6 +++- uncompressed/hangoutschat/index.js | 4 +-- uncompressed/hangoutschat/package.json | 5 ++-- uncompressed/hangoutschat/webview.js | 24 +++++++++------ uncompressed/nextcloud-talk/icon.png | Bin 0 -> 196186 bytes uncompressed/nextcloud-talk/icon.svg | 23 +++++++++++++++ uncompressed/nextcloud-talk/index.js | 8 +++++ uncompressed/nextcloud-talk/package.json | 14 +++++++++ uncompressed/nextcloud-talk/service.css | 3 ++ uncompressed/nextcloud-talk/webview.js | 16 ++++++++++ uncompressed/skype/package.json | 4 +-- uncompressed/skype/webview.js | 35 +++++++++++++++++++++- uncompressed/slack/package.json | 2 +- uncompressed/slack/webview.js | 9 +++--- uncompressed/twist/icon.png | 2 ++ 33 files changed, 232 insertions(+), 34 deletions(-) create mode 100644 cliq.tar.gz create mode 100644 nextcloud-talk.tar.gz create mode 100644 uncompressed/cliq/README.md create mode 100644 uncompressed/cliq/icon.png create mode 100644 uncompressed/cliq/icon.svg create mode 100644 uncompressed/cliq/index.js create mode 100644 uncompressed/cliq/package.json create mode 100644 uncompressed/cliq/webview.js create mode 100644 uncompressed/franz-custom-website/style.css create mode 100644 uncompressed/nextcloud-talk/icon.png create mode 100644 uncompressed/nextcloud-talk/icon.svg create mode 100644 uncompressed/nextcloud-talk/index.js create mode 100644 uncompressed/nextcloud-talk/package.json create mode 100644 uncompressed/nextcloud-talk/service.css create mode 100644 uncompressed/nextcloud-talk/webview.js create mode 100644 uncompressed/twist/icon.png diff --git a/all.json b/all.json index 44ec489..fb6b389 100644 --- a/all.json +++ b/all.json @@ -4,7 +4,7 @@ "featured": false, "id": "android-messages", "name": "Android Messages", - "version": "1.2.0", + "version": "1.3.0", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/android-messages/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/android-messages/icon.svg" @@ -37,7 +37,7 @@ "featured": false, "id": "franz-custom-website", "name": "Custom Website", - "version": "1.0.0", + "version": "1.0.1", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/franz-custom-website/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/franz-custom-website/icon.svg" @@ -224,7 +224,7 @@ "featured": false, "id": "hangoutschat", "name": "Hangouts Chat", - "version": "1.0.0", + "version": "1.1.1", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangoutschat/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangoutschat/icon.svg" @@ -499,7 +499,7 @@ "featured": false, "id": "skype", "name": "Skype", - "version": "1.1.1", + "version": "1.2.0", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/skype/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/skype/icon.svg" @@ -510,7 +510,7 @@ "featured": false, "id": "slack", "name": "Slack", - "version": "1.0.9", + "version": "1.0.12", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.svg" @@ -653,9 +653,9 @@ "featured": false, "id": "twist", "name": "twist", - "version": "1.0.0", + "version": "1.0.1", "icons": { - "png": "https://cdn.franzinfra.com/recipes/dist/twist/src/icon.png", + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/twist/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/twist/icon.svg" } }, @@ -834,5 +834,27 @@ "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/instagram/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/instagram/icon.svg" } + }, + { + "author": "Stefan Malzner ", + "featured": false, + "id": "nextcloud-talk", + "name": "Nextcloud Talk", + "version": "1.0.0", + "icons": { + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/nextcloud-talk/icon.png", + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/nextcloud-talk/icon.svg" + } + }, + { + "author": "Cliqgeek ", + "featured": false, + "id": "cliq", + "name": "Zoho Cliq", + "version": "1.0.0", + "icons": { + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/cliq/icon.png", + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/cliq/icon.svg" + } } ] diff --git a/android-messages.tar.gz b/android-messages.tar.gz index 0c43f3f..aaf6fab 100644 Binary files a/android-messages.tar.gz and b/android-messages.tar.gz differ diff --git a/cliq.tar.gz b/cliq.tar.gz new file mode 100644 index 0000000..d735f8a Binary files /dev/null and b/cliq.tar.gz differ diff --git a/franz-custom-website.tar.gz b/franz-custom-website.tar.gz index e90821e..cbcb557 100644 Binary files a/franz-custom-website.tar.gz and b/franz-custom-website.tar.gz differ diff --git a/hangoutschat.tar.gz b/hangoutschat.tar.gz index 5051bb0..d05afaf 100644 Binary files a/hangoutschat.tar.gz and b/hangoutschat.tar.gz differ diff --git a/nextcloud-talk.tar.gz b/nextcloud-talk.tar.gz new file mode 100644 index 0000000..439f365 Binary files /dev/null and b/nextcloud-talk.tar.gz differ diff --git a/skype.tar.gz b/skype.tar.gz index 9e050ac..bf18e56 100644 Binary files a/skype.tar.gz and b/skype.tar.gz differ diff --git a/slack.tar.gz b/slack.tar.gz index 9a63d92..3665090 100644 Binary files a/slack.tar.gz and b/slack.tar.gz differ diff --git a/uncompressed/android-messages/package.json b/uncompressed/android-messages/package.json index 1236e99..9ff5d0a 100644 --- a/uncompressed/android-messages/package.json +++ b/uncompressed/android-messages/package.json @@ -1,7 +1,7 @@ { "id": "android-messages", "name": "Android Messages", - "version": "1.2.0", + "version": "1.3.0", "description": "Android Messages", "main": "index.js", "author": "Daniel Weinberger, Stefan Malzner ", diff --git a/uncompressed/android-messages/webview.js b/uncompressed/android-messages/webview.js index 414a902..7c8e004 100644 --- a/uncompressed/android-messages/webview.js +++ b/uncompressed/android-messages/webview.js @@ -1,10 +1,47 @@ "use strict"; -module.exports = Franz => { +const { + remote +} = require('electron'); + +const webContents = remote.getCurrentWebContents(); +const { + session +} = webContents; +setTimeout(() => { + const elem = document.querySelector('#af-error-container'); + + if (elem && elem.innerText.toLowerCase().includes('the requested url was not found on this server')) { + window.location.reload(); + } +}, 1000); +window.addEventListener('beforeunload', async () => { + try { + session.flushStorageData(); + session.clearStorageData({ + storages: ['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb'] + }); + const registrations = await window.navigator.serviceWorker.getRegistrations(); + registrations.forEach(r => { + r.unregister(); + console.log('ServiceWorker unregistered'); + }); + } catch (err) { + console.err(err); + } +}); + +module.exports = (Franz, settings) => { function getMessages() { const messages = document.querySelectorAll('.text-content.unread').length; Franz.setBadge(messages); } + if (settings.isDarkModeEnabled) { + localStorage.setItem('dark_mode_enabled', 'true'); + } else { + localStorage.setItem('dark_mode_enabled', 'false'); + } + Franz.loop(getMessages); }; \ No newline at end of file diff --git a/uncompressed/cliq/README.md b/uncompressed/cliq/README.md new file mode 100644 index 0000000..f93277a --- /dev/null +++ b/uncompressed/cliq/README.md @@ -0,0 +1,2 @@ +# Zoho Cliq +Franz Recipe for Zoho Cliq diff --git a/uncompressed/cliq/icon.png b/uncompressed/cliq/icon.png new file mode 100644 index 0000000..b207875 Binary files /dev/null and b/uncompressed/cliq/icon.png differ diff --git a/uncompressed/cliq/icon.svg b/uncompressed/cliq/icon.svg new file mode 100644 index 0000000..cc260ef --- /dev/null +++ b/uncompressed/cliq/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/uncompressed/cliq/index.js b/uncompressed/cliq/index.js new file mode 100644 index 0000000..e8243fb --- /dev/null +++ b/uncompressed/cliq/index.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; \ No newline at end of file diff --git a/uncompressed/cliq/package.json b/uncompressed/cliq/package.json new file mode 100644 index 0000000..f6d2f09 --- /dev/null +++ b/uncompressed/cliq/package.json @@ -0,0 +1,14 @@ +{ + "id": "cliq", + "name": "Cliq", + "version": "1.0.0", + "description": "Cliq", + "main": "index.js", + "author": "Cliqgeek ", + "repository": "https://github.com/cliqgeek/recipe-cliq", + "config": { + "serviceURL": "https://www.zoho.com/cliq/login.html", + "hasNotificationSound": true, + "hasIndirectMessages": true + } +} diff --git a/uncompressed/cliq/webview.js b/uncompressed/cliq/webview.js new file mode 100644 index 0000000..c6d1ae6 --- /dev/null +++ b/uncompressed/cliq/webview.js @@ -0,0 +1,9 @@ +"use strict"; + +module.exports = Franz => { + const getMessages = () => { + Franz.setBadge(ConversationsList.getUnreadBadgeCount()); + }; + + Franz.loop(getMessages); +}; \ No newline at end of file diff --git a/uncompressed/franz-custom-website/package.json b/uncompressed/franz-custom-website/package.json index bfa43b9..6c40697 100644 --- a/uncompressed/franz-custom-website/package.json +++ b/uncompressed/franz-custom-website/package.json @@ -1,7 +1,7 @@ { "id": "franz-custom-website", "name": "Custom Website", - "version": "1.0.0", + "version": "1.0.1", "description": "Add a custom website to Franz", "main": "index.js", "author": "Stefan Malzner ", diff --git a/uncompressed/franz-custom-website/style.css b/uncompressed/franz-custom-website/style.css new file mode 100644 index 0000000..f2760a9 --- /dev/null +++ b/uncompressed/franz-custom-website/style.css @@ -0,0 +1,3 @@ +html { + background: #FFFFFF; +} \ No newline at end of file diff --git a/uncompressed/franz-custom-website/webview.js b/uncompressed/franz-custom-website/webview.js index 17661d7..ed1c3a6 100644 --- a/uncompressed/franz-custom-website/webview.js +++ b/uncompressed/franz-custom-website/webview.js @@ -1,3 +1,7 @@ "use strict"; -module.exports = () => {}; \ No newline at end of file +const path = require('path'); + +module.exports = Franz => { + Franz.injectCSS(path.join(__dirname, 'style.css')); +}; \ No newline at end of file diff --git a/uncompressed/hangoutschat/index.js b/uncompressed/hangoutschat/index.js index 9034d74..e8243fb 100644 --- a/uncompressed/hangoutschat/index.js +++ b/uncompressed/hangoutschat/index.js @@ -1,5 +1,3 @@ "use strict"; -// just pass through Franz -module.exports = Franz => Franz; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhhbmdvdXRzY2hhdC9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUE7QUFDQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiaGFuZ291dHNjaGF0L2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8ganVzdCBwYXNzIHRocm91Z2ggRnJhbnpcbm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= \ No newline at end of file +module.exports = Franz => Franz; \ No newline at end of file diff --git a/uncompressed/hangoutschat/package.json b/uncompressed/hangoutschat/package.json index 93abc68..d2d400d 100644 --- a/uncompressed/hangoutschat/package.json +++ b/uncompressed/hangoutschat/package.json @@ -1,7 +1,7 @@ { "id": "hangoutschat", "name": "Hangouts Chat", - "version": "1.0.0", + "version": "1.1.1", "description": "Hangouts Chat", "main": "index.js", "author": "Stefan Malzner ", @@ -9,6 +9,7 @@ "config": { "serviceURL": "https://chat.google.com", "hasNotificationSound": true, - "hasIndirectMessages": true + "hasIndirectMessages": true, + "dissablewebsecurity": true } } diff --git a/uncompressed/hangoutschat/webview.js b/uncompressed/hangoutschat/webview.js index 2af9e03..27a2016 100644 --- a/uncompressed/hangoutschat/webview.js +++ b/uncompressed/hangoutschat/webview.js @@ -1,13 +1,10 @@ -'use strict'; +"use strict"; module.exports = Franz => { const getMessages = function getMessages() { const muteSelector = '.DQy0Rb'; - - // get unread messages let directCount = 0; document.querySelectorAll('.eM5l9e.FVKzAb').forEach(node => { - // Hangouts Chat overrides the muted indicator when there is a direct mention if (!node.closest('content[role="listitem"]').querySelector(muteSelector)) { directCount += 1; } @@ -19,12 +16,21 @@ module.exports = Franz => { } }); indirectCount -= directCount; - - // set Franz badge Franz.setBadge(directCount, indirectCount); }; - // check for new messages every second and update Franz badge + document.addEventListener('click', e => { + const { + tagName, + target, + href + } = e.target; + + if (tagName === 'A' && target === '_blank') { + e.preventDefault(); + e.stopImmediatePropagation(); + window.open(href); + } + }); Franz.loop(getMessages); -}; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhhbmdvdXRzY2hhdC93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwibXV0ZVNlbGVjdG9yIiwiZGlyZWN0Q291bnQiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJmb3JFYWNoIiwibm9kZSIsImNsb3Nlc3QiLCJxdWVyeVNlbGVjdG9yIiwiaW5kaXJlY3RDb3VudCIsInNld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ChnZXRNZXNzYWdlcyk7XG59O1xuIl19 \ No newline at end of file +}; \ No newline at end of file diff --git a/uncompressed/nextcloud-talk/icon.png b/uncompressed/nextcloud-talk/icon.png new file mode 100644 index 0000000..5403253 Binary files /dev/null and b/uncompressed/nextcloud-talk/icon.png differ diff --git a/uncompressed/nextcloud-talk/icon.svg b/uncompressed/nextcloud-talk/icon.svg new file mode 100644 index 0000000..c861e9a --- /dev/null +++ b/uncompressed/nextcloud-talk/icon.svg @@ -0,0 +1,23 @@ + + + + messenger + Created with Sketch. + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/uncompressed/nextcloud-talk/index.js b/uncompressed/nextcloud-talk/index.js new file mode 100644 index 0000000..29cab0e --- /dev/null +++ b/uncompressed/nextcloud-talk/index.js @@ -0,0 +1,8 @@ +"use strict"; + +module.exports = Franz => class Nextcloud extends Franz { + buildUrl(url) { + return `${url}/apps/spreed/`; + } + +}; \ No newline at end of file diff --git a/uncompressed/nextcloud-talk/package.json b/uncompressed/nextcloud-talk/package.json new file mode 100644 index 0000000..43a13d8 --- /dev/null +++ b/uncompressed/nextcloud-talk/package.json @@ -0,0 +1,14 @@ +{ + "id": "nextcloud-talk", + "name": "Nextcloud Talk", + "version": "1.0.0", + "description": "Nextcloud Talk", + "main": "index.js", + "author": "Stefan Malzner ", + "license": "MIT", + "config": { + "hasNotificationSound": true, + "hasIndirectMessages": true, + "hasCustomUrl": true + } +} diff --git a/uncompressed/nextcloud-talk/service.css b/uncompressed/nextcloud-talk/service.css new file mode 100644 index 0000000..30d1d18 --- /dev/null +++ b/uncompressed/nextcloud-talk/service.css @@ -0,0 +1,3 @@ +#appmenu li:not([data-id="spreed"]) { + display: none; +} \ No newline at end of file diff --git a/uncompressed/nextcloud-talk/webview.js b/uncompressed/nextcloud-talk/webview.js new file mode 100644 index 0000000..ae055f0 --- /dev/null +++ b/uncompressed/nextcloud-talk/webview.js @@ -0,0 +1,16 @@ +"use strict"; + +var _path = _interopRequireDefault(require("path")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Franz => { + const getMessages = function getMessages() { + const direct = document.querySelectorAll('.app-navigation-entry-utils-counter.highlighted').length; + const indirect = document.querySelectorAll('.app-navigation-entry-utils-counter:not(.highlighted)').length; + Franz.setBadge(direct, indirect); + }; + + Franz.loop(getMessages); + Franz.injectCSS(_path.default.join(__dirname, 'service.css')); +}; \ No newline at end of file diff --git a/uncompressed/skype/package.json b/uncompressed/skype/package.json index 4b52996..4ca6899 100644 --- a/uncompressed/skype/package.json +++ b/uncompressed/skype/package.json @@ -1,13 +1,13 @@ { "id": "skype", "name": "Skype", - "version": "1.1.1", + "version": "1.2.0", "description": "Skype", "main": "index.js", "author": "Stefan Malzner ", "license": "MIT", "config": { - "serviceURL": "https://preview.web.skype.com/", + "serviceURL": "https://web.skype.com/", "hasNotificationSound": true } } diff --git a/uncompressed/skype/webview.js b/uncompressed/skype/webview.js index 798eccb..12ad2a8 100644 --- a/uncompressed/skype/webview.js +++ b/uncompressed/skype/webview.js @@ -1,6 +1,12 @@ "use strict"; -module.exports = Franz => { +var _electron = require("electron"); + +const { + BrowserWindow +} = _electron.remote; + +module.exports = (Franz, settings) => { const getMessages = function getMessages() { let count = 0; const container = document.querySelector('[role="tablist"] > [title="Chats"] > div'); @@ -22,4 +28,31 @@ module.exports = Franz => { }; Franz.loop(getMessages); + document.addEventListener('click', event => { + const link = event.target.closest('a[href^="http"]'); + const button = event.target.closest('button[title^="http"]'); + + if (link || button) { + const url = link ? link.getAttribute('href') : button.getAttribute('title'); + event.preventDefault(); + event.stopPropagation(); + + if (url.includes('views/imgpsh_fullsize_anim')) { + let win = new BrowserWindow({ + width: 800, + height: window.innerHeight, + minWidth: 600, + webPreferences: { + partition: `persist:service-${settings.id}` + } + }); + win.loadURL(url); + win.on('closed', () => { + win = null; + }); + } else { + window.open(url); + } + } + }, true); }; \ No newline at end of file diff --git a/uncompressed/slack/package.json b/uncompressed/slack/package.json index 8df473a..ac59dd2 100644 --- a/uncompressed/slack/package.json +++ b/uncompressed/slack/package.json @@ -1,7 +1,7 @@ { "id": "slack", "name": "Slack", - "version": "1.0.9", + "version": "1.0.12", "description": "Slack", "main": "index.js", "author": "Stefan Malzner ", diff --git a/uncompressed/slack/webview.js b/uncompressed/slack/webview.js index 98c6136..174d81c 100644 --- a/uncompressed/slack/webview.js +++ b/uncompressed/slack/webview.js @@ -9,11 +9,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de const getTeamIcon = function getTeamIcon(count = 0) { let countTeamIconCheck = count; let bgUrl = null; - const teamMenu = document.querySelector('#team_menu'); + const teamMenu = document.querySelector('#team-menu-trigger'); if (teamMenu) { teamMenu.click(); - const icon = document.querySelector('.team_icon'); + const icon = document.querySelector('.c-team_icon'); if (icon) { bgUrl = window.getComputedStyle(icon, null).getPropertyValue('background-image'); @@ -22,8 +22,7 @@ const getTeamIcon = function getTeamIcon(count = 0) { } setTimeout(() => { - document.querySelector('.team_menu').remove(); - document.querySelector('#msg_input .ql-editor').focus(); + document.querySelector('.ReactModal__Overlay').click(); }, 10); } @@ -42,7 +41,7 @@ const SELECTOR_CHANNELS_UNREAD = '.p-channel_sidebar__channel--unread:not(.p-cha module.exports = Franz => { const getMessages = () => { - const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge`).length; + const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread`).length; const allMessages = document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - directMessages; Franz.setBadge(directMessages, allMessages); }; diff --git a/uncompressed/twist/icon.png b/uncompressed/twist/icon.png new file mode 100644 index 0000000..2138c4b --- /dev/null +++ b/uncompressed/twist/icon.png @@ -0,0 +1,2 @@ + +AccessDeniedAccess Denied343C68D4313E2A8CZn5hKUS0gTmSItIDqg+rqcKeviPnWlgJz3Y1r8UFNFGvNxeZ+QR+530+59Fp/tn4GsqqNGdW3K8= \ No newline at end of file -- cgit v1.2.3-54-g00ecf