This file contains 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
{ | |
"editor.formatOnType": false, | |
"editor.formatOnSaveMode": "file", | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.fontSize": 12, | |
"editor.fontLigatures": "'ss02' on, 'ss04' on, 'ss07' on, 'ss08' on, 'ss10' on, 'ss12' on", | |
"editor.lineHeight": 18, | |
"editor.fontVariations": true, | |
"background.backgroundOpacity": [0.9, 0.9, 0.9, 0.5], | |
"background.backgroundAlignment": [ |
This file contains 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
{ | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": true, | |
"eslint.format.enable": true, | |
"[javascriptreact]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, |
This file contains 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
module.exports = { | |
arrowParens: "avoid", | |
bracketSpacing: true, | |
jsxSingleQuote: true, | |
printWidth: 80, | |
proseWrap: "always", | |
quoteProps: "as-needed", | |
semi: true, | |
singleQuote: false, | |
trailingComma: "none", |
This file contains 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
{ | |
"workbench.sideBar.location": "right", | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.fontSize": 12, | |
"editor.fontLigatures": "'ss02' on, 'ss04' on, 'ss07' on, 'ss08' on, 'ss10' on, 'ss12' on", | |
"editor.lineHeight": 18, | |
"editor.fontVariations": true, | |
"background.backgroundOpacity": [0.85, 0.9, 0.9, 0.5], | |
"background.backgroundAlignment": [ | |
"Center Center", |
This file contains 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
export const tiptapToHtml = ({ string, idToLabel, enableSuggestions, controls }) => { | |
try { | |
if (!string) { | |
return ""; | |
} | |
const htmlContent = sanitize( | |
generateHTML(JSON.parse(string), editorConfig({ controls, suggestionItems: () => [], idToLabel, enableSuggestions }).extensions), | |
{ | |
allowedTags: ["p", "span", "a", "iframe", "img", ...getControls(controls)], |
This file contains 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
{ | |
"workbench.sideBar.location": "right", | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.fontSize": 12, | |
"editor.fontLigatures": "'ss02' on, 'ss04' on, 'ss07' on, 'ss08' on, 'ss10' on, 'ss12' on", | |
"editor.lineHeight": 18, | |
"editor.fontVariations": true, | |
"background.backgroundOpacity": [0.95, 0.9, 0.9, 0.5], | |
"background.backgroundAlignment": [ | |
"Center Center", |
This file contains 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
{ | |
"workbench.sideBar.location": "right", | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.fontLigatures": true, | |
"background.backgroundOpacity": [ | |
0.85, | |
0.9, | |
0.9, | |
0.5 | |
], |
This file contains 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
// @ts-nocheck | |
import Axios from "axios"; | |
import { setupCache } from "axios-cache-interceptor"; | |
import { CUSTOM_ERRORS_ENUM } from "@Utils/constants"; | |
import { BASE_API_URL } from "@Services/constants"; | |
const axios = setupCache(Axios); |
This file contains 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
{ | |
"editor.minimap.enabled": false, | |
"editor.wordWrap": "on", | |
"editor.fontSize": 14, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'", | |
"editor.renderWhitespace": "none", | |
"editor.bracketPairColorization.enabled": true, | |
"editor.guides.bracketPairs": true, | |
"workbench.sideBar.location": "right", |
This file contains 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
import { EventEmitter } from "events"; | |
class NotificationSystem extends EventEmitter { | |
constructor() { | |
this.#init() | |
} | |
#init() { | |
this.on("follow", async (targetId, metadata) => { | |
const notification = await Models.notification.create({ |
NewerOlder