repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
enlear/bit-react-material-themes
enlear.react-material-themes/widgets/header/header.tsx
import AppBar from '@material-ui/core/AppBar'; import IconButton from '@material-ui/core/IconButton'; import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import MenuIcon from '@material-ui/ico...
enlear/bit-react-material-themes
enlear.react-material-themes/themes/casual-theme/casual-theme.composition.tsx
<reponame>enlear/bit-react-material-themes import { Header } from '@enlear/react-material-themes.widgets.header'; import { Profile } from '@enlear/react-material-themes.widgets.profile'; import { Grid } from '@material-ui/core'; import React from 'react'; import { CasualTheme } from './casual-theme'; export const Casu...
enlear/bit-react-material-themes
enlear.react-material-themes/widgets/profile/profile.spec.tsx
<gh_stars>0 import React from 'react'; import { render } from '@testing-library/react'; import { BusinessProfile, CasualProfile } from './profile.composition'; describe('profile', () => { it('business profile should render with the correct text', () => { const { getByText } = render(<BusinessProfile />); con...
enlear/bit-react-material-themes
enlear.react-material-themes/pages/dashboard/dashboard.tsx
<reponame>enlear/bit-react-material-themes<gh_stars>0 import { Header } from '@enlear/react-material-themes.widgets.header'; import { Profile, ProfileProps } from '@enlear/react-material-themes.widgets.profile'; import Grid from '@material-ui/core/Grid'; import React from 'react'; export interface DashboardProps exten...
enlear/bit-react-material-themes
enlear.react-material-themes/themes/business-theme/index.ts
export { BusinessTheme } from './business-theme'; export type { BusinessThemeProps } from './business-theme';
TylorS/typed-is-promise
src/index.test.ts
<reponame>TylorS/typed-is-promise import * as assert from 'assert'; import { isPromise } from './'; describe('isPromise', function () { describe('given a number', () => { it('returns false', () => { assert.ok(!isPromise(1)); }); }); describe('given a promise', () => { it('returns true', () =>...
TylorS/typed-is-promise
src/index.ts
<gh_stars>1-10 export function isPromise<T>(p: any): p is Promise<T>; export function isPromise(p: any): p is Promise<any>; export function isPromise<T>(p: any): p is Promise<T> { return p !== null && typeof p === 'object' && typeof p.then === 'function'; }
dominictravolta/turf-voronoi
index.d.ts
<filename>index.d.ts<gh_stars>0 import { FeatureCollection, BBox, Point, Polygon } from '@turf/helpers'; /** * http://turfjs.org/docs/#voronoi */ export default function voronoi( points: FeatureCollection<Point>, options?: any ): FeatureCollection<Polygon>;
techi602/node-poweredup
lpf2hub.ts
<gh_stars>0 import { Peripheral } from "noble"; import { Hub } from "./hub"; import { Port } from "./port"; import * as Consts from "./consts"; import Debug = require("debug"); const debug = Debug("lpf2hub"); /** * @class LPF2Hub * @ignore * @extends Hub */ export class LPF2Hub extends Hub { protected _c...
alirezahi/vee-validate
src/utils/events.ts
import { isCallable, toArray, isNaN } from './index'; export const isEvent = (evt: any): evt is Event => { if (!evt) { return false; } if (typeof Event !== 'undefined' && isCallable(Event) && evt instanceof Event) { return true; } // this is for IE /* istanbul ignore next */ if (evt && evt.srcE...
alirezahi/vee-validate
src/utils/index.ts
<gh_stars>0 export * from './assertions'; export * from './collections'; export * from './functions'; export * from './strings';
alirezahi/vee-validate
src/validate.ts
import { RuleContainer } from './extend'; import { interpolate, isEmptyArray, isLocator, isNullOrUndefined, isObject } from './utils'; import { RuleParamConfig, RuleParamSchema, ValidationMessageGenerator, ValidationMessageTemplate, ValidationResult, ValidationRuleSchema } from './types'; import { getConfig...
alirezahi/vee-validate
src/components/withValidation.ts
import { ValidationProvider } from './Provider'; import { identity } from '../utils'; import { findModel, findModelConfig, mergeVNodeListeners, getInputEventName, normalizeSlots, findValue } from '../utils/vnode'; import { CreateElement, Component } from 'vue'; import { createValidationCtx, onRenderUpdate, ...
CStanton-dev/carter-stanton-portfolio
src/layouts/index.tsx
<gh_stars>0 import * as React from 'react' import { graphql, useStaticQuery } from 'gatsby' import Helmet from 'react-helmet' import { Masthead } from '../components/Masthead' import 'typeface-rubik' import 'typeface-open-sans' import 'normalize.css' import '../styles/globals.scss' interface StaticQueryProps { si...
CStanton-dev/carter-stanton-portfolio
src/components/Masthead/Masthead.tsx
<gh_stars>0 /* eslint-disable jsx-a11y/anchor-is-valid */ import * as React from 'react' import { animateScroll } from 'react-scroll' import { Container } from '../Container' import { MastheadNavLink } from './MastheadNavLink' import styles from './Masthead.module.scss' const scrollToTop = () => { animateScroll.sc...
CStanton-dev/carter-stanton-portfolio
src/components/Contact/Contact.tsx
<gh_stars>0 import * as React from 'react' import { Container } from '../Container' import { Row } from '../Row' import { Col } from '../Col' import { FullScreenSection } from '../FullScreenSection' import styles from './Contact.module.scss' export const Contact: React.FC = () => ( <FullScreenSection name="contact...
CStanton-dev/carter-stanton-portfolio
src/html.tsx
/* eslint-disable jsx-a11y/html-has-lang */ /* eslint-disable react/no-danger */ import * as React from 'react' interface HtmlProps { body: string htmlAttributes: Record<string, any> bodyAttributes: Record<string, any> preBodyComponents: React.ReactNode postBodyComponents: React.ReactNode headComponents: ...
CStanton-dev/carter-stanton-portfolio
src/components/About/About.tsx
import * as React from 'react' import { Container } from '../Container' import { FullScreenSection } from '../FullScreenSection' export const About = () => ( <FullScreenSection name="about"> <Container> <h1>ABOUT ME</h1> <p> I am an aspiring software developer who enjoys connecting the dots:...
CStanton-dev/carter-stanton-portfolio
src/components/FullScreenSection/FullScreenSection.tsx
<gh_stars>0 import * as React from 'react' import { Element } from 'react-scroll' import styles from './FullScreenSection.module.scss' interface FullScreenSectionProps { name: string } export const FullScreenSection: React.FC<FullScreenSectionProps> = ({ name, children }) => ( <Element id={name} name={name} clas...
CStanton-dev/carter-stanton-portfolio
src/components/Intro/Intro.tsx
import * as React from 'react' import { Link as ScrollLink } from 'react-scroll' import { Container } from '../Container' import styles from './Intro.module.scss' export const Intro = () => ( <div className={styles.intro}> <div className={styles.introInner}> <Container> <h1><NAME></h1> <p...
CStanton-dev/carter-stanton-portfolio
src/components/Footer/Footer.tsx
<reponame>CStanton-dev/carter-stanton-portfolio<gh_stars>0 import * as React from 'react' import { Container } from '../Container' import styles from './Footer.module.scss' export const Footer = () => ( <footer className={styles.footer}> <Container> <hr className={styles.footerRule} /> <p> ...
CStanton-dev/carter-stanton-portfolio
src/pages/404.tsx
import * as React from 'react' import { Link } from 'gatsby' import Helmet from 'react-helmet' import { Container } from '../components/Container' import { FullScreenSection } from '../components/FullScreenSection' import IndexLayout from '../layouts' const NotFoundPage = () => ( <IndexLayout> <div style={{ hei...
CStanton-dev/carter-stanton-portfolio
src/components/Portfolio/Portfolio.tsx
import * as React from 'react' import classnames from 'classnames' import { Container } from '../Container' import { Row } from '../Row' import { Col } from '../Col' import { FullScreenSection } from '../FullScreenSection' import styles from './Portfolio.module.scss' import ReactCode from './reactCode.png' import Ce...
CStanton-dev/carter-stanton-portfolio
src/components/Col/Col.tsx
<filename>src/components/Col/Col.tsx<gh_stars>0 import * as React from 'react' import styles from './Col.module.scss' export const Col: React.FC<React.HTMLProps<HTMLDivElement>> = ({ style, children, ...rest }) => ( <div className={styles.Col} style={style} {...rest}> {children} </div> )
CStanton-dev/carter-stanton-portfolio
src/pages/index.tsx
<reponame>CStanton-dev/carter-stanton-portfolio<gh_stars>0 import * as React from 'react' import Helmet from 'react-helmet' import { Intro } from '../components/Intro' import { About } from '../components/About' import { Portfolio } from '../components/Portfolio' import { Contact } from '../components/Contact' import ...
CStanton-dev/carter-stanton-portfolio
src/components/Masthead/MastheadNavLink/MastheadNavLink.tsx
import * as React from 'react' import { Link as ScrollLink } from 'react-scroll' import styles from './MastheadNavLink.module.scss' interface MastheadLinkProps extends React.HTMLProps<HTMLLinkElement> { to: string } export const MastheadNavLink: React.FC<MastheadLinkProps> = ({ to, children }) => ( <ScrollLink h...
ammy-bajwa/pivony-react-case-study
src/components/FileUploader.tsx
import { Box } from "@chakra-ui/layout"; import { Button, Input } from "@chakra-ui/react"; import { Dispatch, SetStateAction } from "react"; interface FileUploaderType { setSelectedFile: Dispatch<SetStateAction<File | null>>; } const FileUploader: React.FC<FileUploaderType> = function ({ setSelectedFile, }) { c...
ammy-bajwa/pivony-react-case-study
src/components/HeaderConfirmation.tsx
<gh_stars>1-10 /* eslint-disable react/jsx-no-undef */ import { Box, Center, Flex } from "@chakra-ui/layout"; import { Checkbox, FormControl, FormLabel } from "@chakra-ui/react"; import { useEffect, useState } from "react"; interface HeaderConfirmationType { setIsContainHeader: React.Dispatch<React.SetStateAction<bo...
ammy-bajwa/pivony-react-case-study
src/App.tsx
<filename>src/App.tsx import Papa from "papaparse"; import { Flex, Text } from "@chakra-ui/layout"; import { useEffect, useState } from "react"; import { Button, Progress } from "@chakra-ui/react"; import FileUploader from "./components/FileUploader"; import FileInputSelector from "./components/FileInputSelector"; imp...
ammy-bajwa/pivony-react-case-study
src/components/FileInputSelector.tsx
<reponame>ammy-bajwa/pivony-react-case-study<filename>src/components/FileInputSelector.tsx import { Center, FormControl, FormLabel } from "@chakra-ui/react"; import { Select } from "@chakra-ui/select"; interface FileInputSelectorType { options: string[]; placeHolder: string; label: string; setIsFinished?: Reac...
johandalabacka/jss
run.ts
import { getCurrentUser } from './user.ts' interface RunOptions { stdout?: number | "null" | "inherit" | "piped" | undefined stderr?: number | "null" | "inherit" | "piped" | undefined } interface RunOptions2 extends RunOptions { cmd: string[] } /** * * @param cmd - command and arguments * @param options - ...
johandalabacka/jss
dialog.test.ts
<reponame>johandalabacka/jss<gh_stars>0 import {assertEquals} from "https://deno.land/std/testing/asserts.ts" import { showDialog } from './dialog.ts' Deno.test({ name: "dialog", fn: async () => { const iconPath = '/Applications/Utilities/Unison LU.app/Contents/Resources/Unison.icns' const result = await s...
johandalabacka/jss
run.test.ts
<gh_stars>0 import { assert, assertEquals } from 'https://deno.land/std@0.93.0/testing/asserts.ts' import {run, runInShell, getCurrentScript, escapeShellArgs } from './run.ts' Deno.test({ name: 'Successful run', fn: async () => { const {status, stdout, stderr} = await run(['ls', '-1']) assert(status.succes...
johandalabacka/jss
user.ts
<gh_stars>0 import { run } from './run.ts' /** * Return current logged in user's username * * @returns username or null */ export async function getCurrentUser() { const stat = await Deno.lstat("/dev/console") if (! stat?.uid) { return null } const {status, stdout } = await run(['id', '-P', ...
johandalabacka/jss
file.ts
<gh_stars>0 export async function addLine(path : string, line: string) : Promise<boolean> { let content = '' try { content = await Deno.readTextFile(path) } catch (e) { if (!(e instanceof Deno.errors.NotFound)) { throw e } await Deno.writeTextFile(path, line + '\n') return true } con...
johandalabacka/jss
dialog.ts
import { runInShell } from './run.ts' interface DialogOptions { buttons? : string[], iconPath? : string, runInBackground? : boolean } /** * Show a jamf dialog * * @param title - title of dialog * @param description - text in dialog * @param options.buttons - button labels at most 2 * @param options.iconPa...
johandalabacka/jss
file.test.ts
<filename>file.test.ts import { assert, assertEquals } from "https://deno.land/std@0.93.0/testing/asserts.ts"; import { addLine } from './file.ts' Deno.test({ name: "Add line", fn: async() => { const tmpFile = Deno.makeTempFileSync() Deno.writeTextFileSync(tmpFile, 'apa\nbanan\ncello\n') const wasAdde...
johandalabacka/jss
mod.ts
<filename>mod.ts export { getCurrentUser, getCurrentLocale } from "./user.ts"; export { run, runScriptAsCurrentUser, getCurrentScript } from "./run.ts"; export { addLine } from './file.ts' export { showDialog } from './dialog.ts'
YuriAntishev/LuxeChat
backend/src/actions.ts
<reponame>YuriAntishev/LuxeChat<filename>backend/src/actions.ts const users = []; export const addUser = ({ id, room, name }) => { name = name.trim().toLowerCase(); room = room.trim().toLowerCase(); const existingUser = users.find((user) => user.room === room && user.name === name); if (!name || !room)...
YuriAntishev/LuxeChat
backend/src/index.ts
import * as express from 'express'; import * as cors from 'cors'; import { createServer } from "http"; import { Server, Socket } from "socket.io"; import { addUser, removeUser, getUsersInRoom } from "./actions"; const app = express(); const port = process.env.PORT || 8000; app.use(cors()); const server =...
Exodia-World/exodia.world-web-client
src/app/wallet/shared/wallet.service.ts
import { Injectable } from '@angular/core'; import { Web3Service } from '../../services/web3.service'; import { OutcomeService } from '../../services/outcome.service'; import { Outcome } from '../../models/outcome.model'; const exoTokenContract = require('../../contracts/EXOToken.json'); const exoTokenABI = exoTokenCo...
Exodia-World/exodia.world-web-client
src/app/services/web3.service.ts
<gh_stars>0 import * as Web3 from 'web3'; import { environment } from '../../environments/environment'; import { Injectable } from '@angular/core'; import { WindowService } from './window.service'; import { MetamaskService } from './metamask.service'; import { OutcomeService } from './outcome.service'; import { Outcome...
Exodia-World/exodia.world-web-client
src/app/services/outcome.service.ts
import { Injectable } from '@angular/core'; import { errors } from '../constants/error.constant'; import { Outcome, OutcomeType } from '../models/outcome.model'; /** * Abstracts the usage of Outcome class. */ @Injectable() export class OutcomeService { /** * Create a successful outcome. * * @param {any} d...
Exodia-World/exodia.world-web-client
src/app/wallet/wallet.component.ts
<reponame>Exodia-World/exodia.world-web-client<filename>src/app/wallet/wallet.component.ts import { Component, AfterViewInit, ViewChild } from '@angular/core'; import { BigNumber } from 'bignumber.js'; import { CommunicatorComponent } from '../components/communicator.component'; import { Web3Service } from '../services...
Exodia-World/exodia.world-web-client
src/app/global.mock.ts
<filename>src/app/global.mock.ts<gh_stars>0 import { Outcome, OutcomeType } from './models/outcome.model'; export class ElectronServiceMock { } export class MetamaskServiceMock { } export class Web3ServiceMock { } export class WalletServiceMock { } export function spyOnEXOToken(): any { const EXOTokenSpy = { ...
Exodia-World/exodia.world-web-client
src/app/wallet/wallet.module.ts
<filename>src/app/wallet/wallet.module.ts import { NgModule } from '@angular/core'; import { SharedModule } from '../modules/shared.module'; import { MatSidenavModule } from '@angular/material/sidenav'; import { MatTabsModule } from '@angular/material/tabs'; import { MatTooltipModule } from '@angular/material/tooltip'...
Exodia-World/exodia.world-web-client
src/app/wallet/address/address.module.ts
import { NgModule } from '@angular/core'; import { SharedModule } from '../../modules/shared.module'; import { QRCodeModule } from 'angularx-qrcode'; import { MessageModule } from '../../components/message/message.module'; import { ClipboardModule } from '../../directives/clipboard/clipboard.module'; import { Web3Ser...
Exodia-World/exodia.world-web-client
src/app/wallet/balance/balance.component.ts
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; import { BigNumber } from 'bignumber.js'; import { Outcome } from '../../models/outcome.model'; import { WalletService } from '../shared/wallet.service'; /** * Displays and manages wallet balance information. */ @Component({ selector: ...
Exodia-World/exodia.world-web-client
src/app/services/chrome.service.ts
import { Injectable } from '@angular/core'; import { WindowService } from './window.service'; /** * Wraps the chrome browser object. */ @Injectable() export class ChromeService { private window: any; constructor(private windowService: WindowService) { this.window = windowService.get(); } get(): any { ...
Exodia-World/exodia.world-web-client
src/app/wallet/shared/wallet.service.spec.ts
<filename>src/app/wallet/shared/wallet.service.spec.ts import { async } from '@angular/core/testing'; import { WalletService } from './wallet.service'; import { OutcomeType, Outcome } from '../../models/outcome.model'; import { spyOnEXOToken, spyOnWeb3Service, spyOnOutcomeService } from '../../global.mock'; describe('...
Exodia-World/exodia.world-web-client
src/app/wallet/staking/staking.component.ts
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; import { BigNumber } from 'bignumber.js'; import { Outcome } from '../../models/outcome.model'; import { WalletService } from '../shared/wallet.service'; /** * Displays and manages wallet staking information. */ @Component({ selector: ...
Exodia-World/exodia.world-web-client
src/app/pipes/long-number/long-number.module.ts
<gh_stars>0 import { NgModule } from '@angular/core'; import { LongNumberPipe } from './long-number.pipe'; @NgModule({ declarations: [ LongNumberPipe ], imports: [], providers: [], exports: [ LongNumberPipe ] }) export class LongNumberPipeModule { }
Exodia-World/exodia.world-web-client
src/app/components/message/message.component.ts
<reponame>Exodia-World/exodia.world-web-client<filename>src/app/components/message/message.component.ts<gh_stars>0 import { Component, ViewChild, Input } from '@angular/core'; /** * A tooltip wrapper for any communication object, e.g., buttons, label, etc. * It overrides the normal hover behavior of tooltips. */ @C...
Exodia-World/exodia.world-web-client
src/app/services/metamask.service.ts
import { Injectable } from '@angular/core'; import { ElectronService } from './electron.service'; /** * Interacts with Electron to control Metamask. */ @Injectable() export class MetamaskService { constructor(private electronService: ElectronService) { } openPopup(): void { this.electronService.call('sen...
Exodia-World/exodia.world-web-client
src/app/constants/error.constant.ts
/** * Map error/failure names to their messages. */ export const errors = { NoDefaultAccount: 'Please unlock your account through Metamask/other Ethereum wallets first.', Unknown: 'Thank you for finding an unknown problem. ' + 'Please submit this issue at https://github.com/Exodia-World/exodia.world-web-clien...
Exodia-World/exodia.world-web-client
src/app/pipes/long-number/long-number.pipe.ts
<filename>src/app/pipes/long-number/long-number.pipe.ts import { Pipe, PipeTransform } from '@angular/core'; import { DecimalPipe } from '@angular/common'; /** * Transform a numeric value to its exponential form if it has more than 9 digits. * Otherwise, use DecimalPipe to transform it instead. */ @Pipe({name: 'lon...
Exodia-World/exodia.world-web-client
src/app/wallet/balance/balance.module.ts
import { NgModule } from '@angular/core'; import { SharedModule } from '../../modules/shared.module'; import { LongNumberPipeModule } from '../../pipes/long-number/long-number.module'; import { WalletService } from '../shared/wallet.service'; import { BalanceComponent } from './balance.component'; @NgModule({ decla...
Exodia-World/exodia.world-web-client
src/app/app.component.spec.ts
<filename>src/app/app.component.spec.ts import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; import { FormsModule } from '@angular/forms'; import { WalletModule } from './wallet/wallet.module'; import { Web3Service } from './services/web3.service'; import { spyOnEXOTok...
Exodia-World/exodia.world-web-client
src/app/components/communicator.component.ts
<filename>src/app/components/communicator.component.ts<gh_stars>0 import { Component, ViewChildren, QueryList } from '@angular/core'; import { MessageComponent } from './message/message.component'; /** * Enable message-based communication between components and users. */ @Component({ selector: 'exo-communicator' }...
Exodia-World/exodia.world-web-client
src/app/directives/clipboard/clipboard.directive.ts
<reponame>Exodia-World/exodia.world-web-client import { Directive } from "@angular/core"; import { EventEmitter } from "@angular/core"; import { ClipboardService } from "./clipboard.service"; /** * This directive acts as a simple glue layer between the given [clipboard] property * and the underlying ClipboardService...
Exodia-World/exodia.world-web-client
src/app/pipes/long-number/long-number.spec.ts
<reponame>Exodia-World/exodia.world-web-client<gh_stars>0 import { LongNumberPipe } from './long-number.pipe'; describe('LongNumberPipe', () => { let longNumber: any; beforeEach(() => { longNumber = new LongNumberPipe('en'); }); it('should delegate to DecimalPipe if length <= 9', () => { expect(longN...
Exodia-World/exodia.world-web-client
src/app/modules/shared.module.ts
<filename>src/app/modules/shared.module.ts<gh_stars>0 import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; // Import sha...
Exodia-World/exodia.world-web-client
src/app/wallet/address/address.component.ts
<reponame>Exodia-World/exodia.world-web-client import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; import { CommunicatorComponent } from '../../components/communicator.component'; import { Web3Service } from '../../services/web3.service'; /** * Displays and manages wallet address informati...
RendPro/gatsby-boilerplate-rendpro-typescript
src/templates/BasicTemplate.tsx
<filename>src/templates/BasicTemplate.tsx import React, { FC } from "react"; import { Helmet } from "react-helmet"; import { ThemeProvider } from "styled-components"; import { WEBSITE_TITLE } from "@config/main"; import GlobalStyles from "@theme/GlobalStyles"; import { theme } from "@theme/theme"; const BasicTemplate:...
RendPro/gatsby-boilerplate-rendpro-typescript
src/config/main.ts
<filename>src/config/main.ts export const WEBSITE_TITLE = "Gatsby Boilerplate RendPro Typescript";
RendPro/gatsby-boilerplate-rendpro-typescript
src/pages/index.tsx
import BasicTemplate from "@templates/BasicTemplate"; import React from "react"; const Index = () => <BasicTemplate>Hello world</BasicTemplate>; export default Index;
RendPro/gatsby-boilerplate-rendpro-typescript
src/theme/theme.ts
<reponame>RendPro/gatsby-boilerplate-rendpro-typescript<filename>src/theme/theme.ts import { DefaultTheme } from "styled-components"; export const theme: DefaultTheme = {};
RendPro/gatsby-boilerplate-rendpro-typescript
src/theme/GlobalStyles.ts
<reponame>RendPro/gatsby-boilerplate-rendpro-typescript import { createGlobalStyle } from "styled-components"; import normalize from "styled-normalize"; export default createGlobalStyle` ${normalize} *, *::before, *::after { box-sizing: border-box; } html { font-size: 10px; } ...
binbin1808/vue-vben-admin
src/hooks/core/useSetting.ts
<filename>src/hooks/core/useSetting.ts import type { ProjectConfig, GlobConfig, SettingWrap } from '/@/types/config'; import getProjectSetting from '/@/settings/projectSetting'; export const useSetting = (): SettingWrap => { // Take global configuration const glob: Readonly<GlobConfig> = { title: 'vben admin ...
traintime-de/generate-ssr-handler
src/index.ts
import { GetServerSideProps } from 'next' import handleWrappedCases from './handleWrappedCases' import { SrrHandlerGenerator, SsrCaseHandler, SsrContextGenerationErrorHandler, SsrHandler, SsrHandlerConfig, } from './types' import wrapCaseHandler from './wrapCaseHandler' const defaultContextGenerationErrorHan...
traintime-de/generate-ssr-handler
src/wrapCaseHandler/index.ts
import { SsrCaseErrorHandler, SsrCaseErrorHandlerGetter, SsrCaseHandler, SsrCaseHandlerWrapper, SsrErrorPageUrlGetter, WrappedSsrCaseHandler, } from '../types' const getDefaultCaseErrorHandler: SsrCaseErrorHandlerGetter = < ContextType >() => { const defaultCaseHandlingErrorHandler: SsrCaseErrorHandler...
traintime-de/generate-ssr-handler
src/handleWrappedCases/index.ts
import { SsrCaseNotFoundResult, SsrCaseRedirectResult, WrappedSsrCaseListHandler, } from '../types' const handleWrappedCases: WrappedSsrCaseListHandler = async ( nextContext, wrappedCaseHandlers, previousResult = { props: {} } ) => { if (wrappedCaseHandlers.length === 0) return previousResult const [h...
traintime-de/generate-ssr-handler
src/types.ts
<filename>src/types.ts<gh_stars>0 import { IncomingMessage } from 'http' import { Redirect, GetServerSidePropsContext, GetServerSideProps } from 'next' import { NextApiRequestCookies } from 'next/dist/server/api-utils' /***********************************************/ /******************** CASE *********************/ ...
keinpyisi/Yukihime
node_modules/bookman/dist/adapters/index.d.ts
export * from "./BaseAdapter"; export * from "./FSAdapter"; export * from "./MongoDBAdapter"; export * from "./RedisAdapter";
keinpyisi/Yukihime
node_modules/bookman/dist/index.d.ts
export * from "./adapters"; export * from "./Database"; export * from "./types";
keinpyisi/Yukihime
node_modules/handy-redis/ts34/dist/node_redis/multi.d.ts
import * as nodeRedis from "redis"; import { Commands } from "../generated/interface"; import { Push } from "../push"; declare module "../generated/interface" { interface ResultTypes<Result, Context> { /** * This determines the correct type for a node_redis multi result. e.g. `multi.keys('foo:*')` ...
keinpyisi/Yukihime
node_modules/uid/uid.d.ts
<filename>node_modules/uid/uid.d.ts export default function (len?: number): string;
keinpyisi/Yukihime
node_modules/scrape-yt/dist/classes/index.d.ts
<reponame>keinpyisi/Yukihime export { default as Client } from "./client/Client"; export { default as VideoCompact } from "./VideoCompact"; export { default as Channel } from "./Channel"; export { default as PlaylistCompact } from "./PlaylistCompact"; export { default as Playlist } from "./Playlist"; export { default a...
keinpyisi/Yukihime
node_modules/discord-slash-commands-client/lib/esm/structures/Webhook.d.ts
import User from "./User"; import Guild from "./Guild"; import Channel from "./Channel"; declare enum WebhookType { Incoming = 1, Channel_Follower = 2, Application = 3 } declare class Webhook { id: string; type: WebhookType; guild_id?: string; channel_id?: string; user?: User; name: ...
keinpyisi/Yukihime
node_modules/@aero/centra/types/index.d.ts
<reponame>keinpyisi/Yukihime<gh_stars>0 /* * Typings for project `@aero/centra` * * Contributors: * - Noel <<EMAIL>> */ /* eslint-disable */ import { ServerResponse } from 'http'; import { URL } from 'url'; type HttpMethod = | 'OPTIONS' | 'CONNECT' | 'DELETE' | 'TRACE' | 'HEAD' | 'POST' | 'PUT' | 'GE...
keinpyisi/Yukihime
node_modules/chartjs-node-canvas/dist/freshRequire.d.ts
<reponame>keinpyisi/Yukihime /// <reference types="node" /> export declare const freshRequire: NodeRequireFunction;
keinpyisi/Yukihime
node_modules/discord-slash-commands-client/lib/esm/structures/Emoji.d.ts
<reponame>keinpyisi/Yukihime import Role from "./Role"; import User from "./User"; declare class Emoji { id: string; name: string | null; roles?: Role[]; user?: User; require_colons?: boolean; managed?: boolean; animated?: boolean; available?: boolean; constructor(); } export default...
keinpyisi/Yukihime
node_modules/reaction-role/dist/index.d.ts
<filename>node_modules/reaction-role/dist/index.d.ts import { Client } from "discord.js"; export interface IEmoji { emoji: string; add_message?: string; remove_message?: string; roles: string[]; } export interface IMessage { channel_id: string; message_id: string; limit: number; type: "r...
keinpyisi/Yukihime
node_modules/react-native-ffmpeg/index.d.ts
<filename>node_modules/react-native-ffmpeg/index.d.ts declare module 'react-native-ffmpeg' { export class LogLevel { static AV_LOG_STDERR: number; static AV_LOG_QUIET: number; static AV_LOG_PANIC: number; static AV_LOG_FATAL: number; static AV_LOG_ERROR: number; stat...
keinpyisi/Yukihime
node_modules/djs-tickets/lib/index.d.ts
declare const start: (client: any /** Doesn't allow me to use Discord.Client*/, MessageEmbed?: any) => void; declare const setup: (MessageObject: any, ChannelID: string, Embed?: any) => Promise<void>; declare const close: (message: any, transcript: any) => Promise<any>; export { start, setup, close };
keinpyisi/Yukihime
node_modules/discord-slash-commands-client/lib/esm/structures/AuditLog.d.ts
import User from "./User"; import Webhook from "./Webhook"; import Integration from "./Integration"; interface AuditLogEntry { target_id: string; changes?: AuditLogChange[]; user_id: string; id: string; action_type: AuditLogEvent; options?: OptionalAuditEntryInfo; reason?: string; } interfac...
keinpyisi/Yukihime
node_modules/chartjs-node-canvas/src/index.ts
<reponame>keinpyisi/Yukihime export * from './legacy'; export { ChartJSNodeCanvasPlugins, ChartJSNodeCanvas, ChartJSNodeCanvasOptions } from './new';
keinpyisi/Yukihime
node_modules/@2pg/music/demo/bot.ts
import { Client } from 'discord.js'; import { MusicClient, Player, Track } from '../src/music/client'; import { MusicCommands } from './commands'; const bot = new Client(); const music = new MusicClient(); const commands = new MusicCommands(music); music.on('trackStart', (player: Player, track: Track) => player.textC...
keinpyisi/Yukihime
node_modules/scrape-yt/dist/classes/Video.d.ts
<gh_stars>0 import { PlaylistCompact, VideoCompact, Channel } from "."; import { YoutubeRawData } from "../common"; interface VideoAttributes { id: string; title: string; duration: number | null; thumbnail: string; description: string; channel: Channel; uploadDate: string; viewCount: num...
keinpyisi/Yukihime
node_modules/bookman/dist/adapters/BaseAdapter.d.ts
<filename>node_modules/bookman/dist/adapters/BaseAdapter.d.ts<gh_stars>1-10 import { BookmanOptions, LooseObject } from "../types"; export declare abstract class BaseAdapter { opts: BookmanOptions; constructor(opts: BookmanOptions); abstract set(value: unknown): Promise<LooseObject> | LooseObject; abstr...
keinpyisi/Yukihime
node_modules/discord-slash-commands-client/lib/esm/structures/VoiceState.d.ts
import GuildMember from "./GuildMember"; export interface VoiceRegionStructure { id: string; name: string; vip: boolean; optimal: boolean; deprecated: boolean; custom: boolean; } declare class VoiceState { guild_id?: string; channel_id: string; user_id: string; member?: GuildMemb...
keinpyisi/Yukihime
node_modules/youtube-sr/dist/mod.d.ts
<gh_stars>0 interface ChannelIconInterface { url?: string; width: number; height: number; } declare class Channel { name?: string; verified: boolean; id?: string; url?: string; icon: ChannelIconInterface; subscribers?: string; constructor(data: any); private _patch; iconU...
keinpyisi/Yukihime
node_modules/discord-backup/lib/util.d.ts
<gh_stars>1-10 import type { CategoryData, ChannelPermissionsData, CreateOptions, LoadOptions, TextChannelData, VoiceChannelData } from './types'; import type { CategoryChannel, Guild, TextChannel, VoiceChannel, NewsChannel } from 'discord.js'; /** * Gets the permissions for a channel */ export declare function fetch...
keinpyisi/Yukihime
node_modules/bookman/dist/types.d.ts
import { Document } from "mongoose"; export interface BookmanOptions { defaultDir: string; databaseName: string; mongodbURL?: string; } export interface LooseObject { [prop: string]: unknown; } export interface IMongoModel extends Document { key: string; value: string; }
keinpyisi/Yukihime
node_modules/@2pg/music/lib/music/q.d.ts
<gh_stars>0 export default class Q<T> { private _items; get isEmpty(): boolean; get length(): number; get items(): T[]; enqueue(item: T): void; dequeue(): void; peek(): T; shuffle(): void; }
keinpyisi/Yukihime
node_modules/scrape-yt/dist/classes/Channel.d.ts
<gh_stars>0 import { YoutubeRawData } from "../common"; import { PlaylistCompact, VideoCompact } from "."; interface ChannelProperties { id: string; name: string; url: string; thumbnail?: string; videoCount?: number; } /** * Represent a Youtube Channel */ export default class Channel implements Ch...
keinpyisi/Yukihime
node_modules/bookman/dist/adapters/RedisAdapter.d.ts
<reponame>keinpyisi/Yukihime import { WrappedNodeRedisClient } from "handy-redis"; import { BaseAdapter } from "./BaseAdapter"; import { BookmanOptions, LooseObject } from "../types"; import type { ClientOpts } from "redis"; export declare class RedisAdapter extends BaseAdapter { client: WrappedNodeRedisClient; ...
keinpyisi/Yukihime
node_modules/discord-slash-commands-client/lib/esm/core/InteractionsClient.d.ts
<filename>node_modules/discord-slash-commands-client/lib/esm/core/InteractionsClient.d.ts import { ApplicationCommand, ApplicationCommandPermissions, ApplicationOptions, getCommandsOptions, GuildApplicationCommandPermissions } from "./interfaces"; export declare class InteractionsClient { private token; clientI...
keinpyisi/Yukihime
node_modules/chartjs-node-canvas/src/new.ts
import { Readable } from 'stream'; import { Chart as ChartJS, ChartConfiguration } from 'chart.js'; import { createCanvas, registerFont } from 'canvas'; import { freshRequire } from './freshRequire'; import { loadavg } from 'os'; export type ChartJSNodeCanvasPlugins = { /** * Global plugins, see https://www.chartjs...
keinpyisi/Yukihime
node_modules/discord-slash-commands-client/lib/esm/structures/GuildMember.d.ts
import User from "./User"; declare class GuildMember { readonly user?: User; readonly nick?: string; readonly roles: string[]; readonly joined_at: string; readonly premium_since?: string; readonly deaf: boolean; readonly mute: boolean; readonly pending?: boolean; readonly permissions...