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, |
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
| // 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 { Button, Grid } from "@material-ui/core"; | |
| import useCollection from "../../hooks/useCollection"; | |
| import useNotifications from "../../hooks/useNotifications"; | |
| import useFetch from "../../hooks/useFetch"; | |
| import useAsync from "../../hooks/useAsync"; | |
| import { | |
| PostDashboardWinResponseType, | |
| PostWidgetRequestType, | |
| } from "../../types/api"; |
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 { useRouter } from "next/router"; | |
| import { | |
| Backdrop, | |
| createStyles, | |
| Theme, | |
| makeStyles, | |
| Box, | |
| } from "@material-ui/core"; | |
| import { |
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
| export type UseQuardQueryPropsType<T extends QueryFn, TResult> = { | |
| params: FirstParam<T>; | |
| options?: QueryOptions<TResult>; | |
| rules: useGuardInputType< | |
| ResourceType<ExtendedResourceTypes>, // Your custom resources | |
| AbilityType<ExtendedAbilityTypes> // Your custom abilities | |
| >[]; | |
| rulesMatch?: "every" | "some"; | |
| }; |
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 { Control, Controller, useWatch } from "react-hook-form"; | |
| import { | |
| Grid, | |
| Slider, | |
| TextField, | |
| Typography, | |
| useMediaQuery, | |
| useTheme, | |
| } from "@material-ui/core"; |
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 { NextApiRequest, NextApiResponse } from "next"; | |
| import multer from "multer"; | |
| import nextConnect from "next-connect"; | |
| import stream from "stream"; | |
| import { storage } from "../../firebase"; | |
| export type SaveEmbedImageReturnType = { | |
| imageURL: string; | |
| }; |
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 { DialogTitle } from "@material-ui/core"; | |
| import Dialog from "app/core/components/Dialog"; | |
| import RewardForm from "./RewardForm"; | |
| import { useTwitchSettings } from "app/collection-settings/hooks/useTwitchSettings"; | |
| import { useCustomMutation } from "app/core/hooks/useCustomMutation"; | |
| import createTwitchEventReward from "app/collection-settings/mutations/twitch/createTwitchEventReward"; | |
| import updateTwitchEventReward from "app/collection-settings/mutations/twitch/updateTwitchEventReward"; | |
| import { EventSelectorReward } from "app/collection-settings/queries/getTwitchSettings"; | |
| const EventRewardDialog: React.FC<{ |
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 path from "path"; | |
| import { getConfig } from "blitz"; | |
| import { readdir, stat, writeFile, readFile } from "fs/promises"; | |
| import { | |
| quicktype, | |
| InputData, | |
| jsonInputForTargetLanguage, | |
| TypeScriptTargetLanguage, | |
| } from "quicktype-core"; |
OlderNewer