This is the official Franz recipe for Rocket.Chat
meetfranz / recipe-rocketchat Goto Github PK
View Code? Open in Web Editor NEWOfficial Franz Recipe for Rocket.Chat
Official Franz Recipe for Rocket.Chat
This is the official Franz recipe for Rocket.Chat
with rc 3.9 they changed the sidebar and the css selectors for the unread counts wont work anymore
i would've made a PR but i seem to be unable to support both versions..
new code is
const directMessages = document.querySelectorAll('.rcx-badge--danger').length;
const indirectMessages = document.querySelectorAll('.rcx-sidebar-item--highlighted:not(.rcx-badge--danger)').length;
i tried it with an if, but for some reason it throws exceptions that directMessages would be undefined.. i dont get why.. maybe one of you guys can figure this out.
if (document.querySelectorAll('.rc-box').length > 0) {
const directMessages = document.querySelectorAll('.rcx-badge--danger').length;
const indirectMessages = document.querySelectorAll(' .rcx-sidebar-item--highlighted:not(.rcx-badge--danger)').length;
} else {
// original definition
const directMessages = Math.round(document.querySelectorAll('.unread.unread-mention, .badge--unread').length / 2);
const indirectMessages = Math.round(document.querySelectorAll('.unread:not(.unread-mention), .sidebar-item--unread').length / 2);
}
This base url finish .rocket.chat but anyone who uses the rocket chat version needs to customize this end of the url
"serviceURL": "https://{teamId}.rocket.chat"
Custom Sample:
https://chat.myorganization.network
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.