This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --sidebar-bg-color: #0c2d3f; | |
| --sidebar-parent-active-li-bg-color: rgba(24, 139, 246, .1); | |
| --sidebar-li-color: #ffffff; | |
| --sidebar-collapse-li-bg-color: #103855; | |
| --custom-link-color: #38a0db; | |
| --custom-primary: rgb(56, 160, 219); | |
| --custom-primary-border-color: rgba(24, 139, 246, .1); | |
| --custom-yellow-color: #ff6600; | |
| --custom-yellow-active: #ff9900; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const freshChatToken = "<token-here>"; // Please update your token here | |
| function clientInitFreshChat() { | |
| window.fcWidget.init({ | |
| token: freshChatToken, | |
| host: 'https://wchat.freshchat.com', | |
| config: { | |
| headerProperty: { | |
| hideChatButton: true | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // firestoreFetchSingle - This is our logger and timer function which will log if the fetch took more than 60 seconds to return the result | |
| // locations - fetch document by id | |
| public static getById(id): Promise<Location> { | |
| return new Promise<Location>(async(resolve, reject) => { | |
| try { | |
| const snapshot = await firestoreFetchSingle(Location.collectionRef().doc(id), 'location', id) | |
| if (!snapshot.exists) return reject("location not found"); | |
| const doc = new Location(snapshot); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class EmailSender { | |
| constructor(rateLimiter, projectId, queueLocation, queueName) { | |
| this.rateLimiter = rateLimiter; | |
| this.projectId = projectId; | |
| this.queueLocation = queueLocation; | |
| this.queueName = queueName; | |
| } | |
| async sendEmailWithRateLimit(from, to, subject, body, accountId, maxMessages, windowMs) { | |
| const key = `${accountId}_email_rate_limit`; |
OlderNewer