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
| // Pusher setup in separate file | |
| import Pusher from "pusher"; | |
| const pusher = new Pusher({ | |
| appId: process.env.PUSHER_APP_ID, | |
| key: process.env.NEXT_PUBLIC_PUSHER_KEY, | |
| cluster: process.env.NEXT_PUBLIC_PUSHER_CLUSTER, | |
| secret: process.env.PUSHER_SECRET, | |
| }); |
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
| import React from "react"; | |
| import Pusher, { Channel } from "pusher-js"; | |
| const pusher = new Pusher(process.env.NEXT_PUBLIC_PUSHER_KEY, { | |
| cluster: process.env.NEXT_PUBLIC_PUSHER_CLUSTER, | |
| }); | |
| type EventPropsType<R> = { | |
| event: string; | |
| onEvent: (data: R) => void; |
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
| import { BrowserWindow, app } from 'electron'; | |
| import { connections } from '../../main'; | |
| import { closePreloaderWindow } from '../preloaderWindow/preloaderWindow'; | |
| let appWindow: null | BrowserWindow = null; | |
| export const createAppWindow = () => { | |
| appWindow = new BrowserWindow({ | |
| width: 970, | |
| height: 610, |
NewerOlder