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
| type StateValue = Record<string | symbol, any>; | |
| type Child = ElementBase<any> | string | number | boolean | null | undefined; | |
| type Children = Child[]; | |
| type ElementInternalChild = (() => Child) | Child; | |
| type ElementInternalChildren = ElementInternalChild[]; | |
| type ElementListener<K extends keyof HTMLElementEventMap> = { | |
| callback: (event: HTMLElementEventMap[K]) => 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 * as dotenv from "dotenv"; | |
| import { | |
| type DestinyManifestLanguage, | |
| getDestinyManifest, | |
| getDestinyManifestSlice, | |
| } from "bungie-api-ts/destiny2"; | |
| import { bungieApiFetchHelper } from "~/bungie/fetchHelper"; | |
| import { destinyManifestTableNames } from "~/bungie/constants"; | |
| import { prisma, type Prisma } from "./client"; |
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
| { | |
| "name": "blitz-app", | |
| "version": "1.1.0", | |
| "scripts": { | |
| "predev": "docker-compose up -d", | |
| "dev": "concurrently --raw \"blitz dev\" 'quirrel'", | |
| "build": "blitz build", | |
| "postbuild": "next-sitemap --config next-custom-sitemap.js", | |
| "start": "blitz start", | |
| "studio": "blitz prisma studio", |
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"; |
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 { 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 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
| 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 { 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
| 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"; |
NewerOlder