text
stringlengths
3.08k
15.5k
import { Card } from './Card.js'; import { RANK_OBJECT } from './Rank.js'; import { SUIT_OBJECT } from './Suit.js'; function ThreeD(): Card { return new Card(RANK_OBJECT.THREE, SUIT_OBJECT.DIAMONDS); } function ThreeC(): Card { return new Card(RANK_OBJECT.THREE, SUIT_OBJECT.CLUBS); } function Thr...
/** * Design tokens for neutral colors */ export type NeutralColorTokens = { // https://www.figma.com/file/KB9oUjMKen2cKnyPG7RgdS/Design-tokens-superset?node-id=1963%3A17486 neutralForeground1: string; neutralForeground2: string; neutralForeground2Hover: string; neutralForeground2Pressed: string; neutralF...
import { browser } from "webextension-polyfill-ts"; import React, { useEffect, useState } from "react"; import axios from "axios"; import { resetBrowserStorageEvents } from "../../../scripts/resetBrowserStorageEvents"; import { execEvent } from "../../../scripts/execEvent"; import dayjs from "dayjs"; import { Event } f...
<reponame>pianostudio/synthesia2midi<filename>components/KeyMarker.ts import Context from "./Context"; import { Component } from "./interfaces"; import tinycolor from "tinycolor2"; import { Player } from "soundfont-player"; import BlackKeySparksOverlay from "./BlackKeySparksOverlay"; import WhiteKeySparksOverlay from "...
<filename>src/setups/restrictedgateset.ts import assert from 'assert' import { BasicMathGate, ClassicalInstructionGate, CNOT, ControlledGate, QFT, Swap } from '../ops'; import { getInverse } from '../ops/_cycle'; import { DecompositionRuleSet } from '../cengines/replacer/decompositionruleset'; import { instanceOf, is...
import { imgToBlob } from './FileHelper'; interface CancellableFetchesOptions { ourAsyncTask?: (...args: unknown[]) => Promise<unknown>; ourAsyncTaskArgs?: unknown[]; abortCallback?: (...args: unknown[]) => unknown; } /** * If you call controller.abort() from somewhere, it will interrupt all fetch calls * @pa...
import { makeSet, union, find } from "@manubb/union-find"; import { Line } from "../geometry/Line"; import { Point } from "../geometry/Point"; /** * This relies on the union-find library: https://www.npmjs.com/package/@manubb/union-find */ /** * A Graph interface, modeling Graph Theory primitives. */ export inter...
import URL from "@candlelib/uri"; import { Argument, getPackageJsonObject } from "@candlelib/paraffin"; import http2 from "http2"; import mock_certificate from "./data/mock_certificate.js"; import $404_dispatch from "./dispatchers/404_dispatch.js"; import candle_library_dispatch from "./dispatchers/candle_library_dis...
import { Base, Resource, Manifest, Service, BaseV2, ManifestV2, CollectionV2, ResourceV2, MediaSequenceV2, SequenceV2, CanvasV2, AnnotationV2, RenderingV2, Collection } from "@archival-iiif/presentation-builder"; import {ExtendedRef, Internationalize, LabelValue, ...
<filename>angular-wishlist/src/app/app.module.ts import {BrowserModule} from '@angular/platform-browser'; import {APP_INITIALIZER, Injectable, InjectionToken, NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {Ht...
<gh_stars>0 import { constants } from 'fs' import { access, mkdir, readdir, readFile, stat, unlink, writeFile } from 'fs/promises' import path from 'path' import { IResourceStore, StoreRequestParams } from '../types' import { passFilter, processParameters, UUID_PREFIX } from './utils' export const getUui...
import useSWR from 'swr'; import tw from 'twin.macro'; import useFlash from '@/plugins/useFlash'; import { number, object, string } from 'yup'; import { megabytesToHuman } from '@/helpers'; import { useStoreState } from '@/state/hooks'; import getConfig from '@/api/store/getConfig'; import Field from '@/components/elem...
<filename>packages/react-intl/src/utils.ts<gh_stars>1-10 /* HTML escaping is the same as React's (on purpose.) Therefore, it has the following Copyright and Licensing: Copyright 2013-2014, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the roo...
<filename>src/user/NBUser.ts import AsyncStorage from '@react-native-community/async-storage'; import { NBUserModel, NBUserID, NBUserAll } from "./types"; import { createAxiosClient, HeaderManager, createNBNetworkApi, callApi } from '../network'; import Constants from '../Constants'; import { nbSQLiteCache } from '../c...
<gh_stars>1-10 /** HACKY HACK HACKS */ /** * Nothing in this header is a good idea! This is all a hot mess to make it easy * to run the ShaderModule.register methods in Node so we could analyze the * input and identify modules generated. * * The following gets all the browser junk to NOT cause node to crash. We al...
<reponame>salomvary/electron-builder<filename>packages/electron-builder-util/src/fs.ts import { unlink, access, stat, Stats, lstat, readdir, createReadStream, createWriteStream, link, mkdirs, readlink, symlink } from "fs-extra-p" import BluebirdPromise from "bluebird-lst-c" import * as path from "path" import { debug }...
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { RootState } from "./store"; import { ElementCollection, Scene, ShareOptions, Overlay, AnimationSettings, MapLayer, RoomProps, } from "../types"; import { profile, Profile } from "../profiles"; import { roomId } from "../params"; imp...
import { Socket } from "socket.io"; import { Permission } from "@akashic/amflow"; import { Event, Tick, EventCode, EventIndex, JoinEventIndex } from "@akashic/playlog"; import { getSystemLogger } from "@akashic/headless-driver"; import { ClientInstanceDescription } from "../../common/types/TestbedEvent"; import { PlayS...
<reponame>pmcelhaney/apollo-elements import type { ApolloClient, InMemoryCache, NormalizedCacheObject, TypePolicies, } from '@apollo/client/core'; import type { ApolloController, ApolloEvent, ApolloElementElement } from '@apollo-elements/core'; import { bound } from '@apollo-elements/core/lib/bound'; declare...
<reponame>kouhei/lume<filename>src/core/Motor.ts<gh_stars>100-1000 // TODO import and use animation-loop import type {ImperativeBase} from './ImperativeBase.js' import type {Scene} from './Scene.js' export type RenderTask = (timestamp: number, deltaTime: number) => false | void class _Motor { /** * When a render ...
<gh_stars>0 import IConfigureSessionOptions from '@secret-agent/core-interfaces/IConfigureSessionOptions'; import ISessionMeta from '@secret-agent/core-interfaces/ISessionMeta'; import { IJsPath } from 'awaited-dom/base/AwaitedPath'; import ICreateSessionOptions from '@secret-agent/core-interfaces/ICreateSessionOptions...
import vscode from "vscode"; import * as path from 'path'; import * as fs from 'fs' import { EIO } from "constants"; import { isString } from "util"; import rpc from "vscode-jsonrpc"; 'use strict'; enum State { New, DataReady, ClientReady, Done } export class GraphPanel { /** * Track the curr...
import { IconSearch } from 'hds-react'; import React, { ChangeEvent } from 'react'; import { AUTOSUGGEST_KEYWORD_BLACK_LIST, AUTOSUGGEST_TYPES, } from '../../../constants'; import { useKeywordListQuery } from '../../../generated/graphql'; import useDebounce from '../../../hooks/useDebounce'; import useKeyboardNavi...
<filename>src/client/browser/extension.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import * as vscode from 'vscode'; import TelemetryReporter from 'vscode-extension-telemetry'; import { LanguageClientOptions, State } from 'vscode-languageclient'; import { Language...
/* * << * Davinci * == * Copyright (C) 2016 - 2017 EDP * == * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
// https://github.com/fjc0k/vtils import Taro from '@tarojs/taro'; import {SingleDispatcher} from '@medux/core'; import type {RouteENV} from '@medux/route-mp'; import {nativeUrlToNativeLocation} from '@medux/route-web'; declare const require: any; declare const window: any; type RouteChangeEventData = { pathname: s...
/* * MIT License * * Copyright (c) 2021 Staatsbibliothek zu Berlin - <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * R...
import { Controller, Get, Post, Body, Res, Query, HttpStatus, Delete, Param, Patch, UseGuards, MethodNotAllowedException } from '@nestjs/common'; import { Response } from 'express'; import { UserService } from './user.service'; import { User } from './user.entity'; import { UpdateResult } from 'typeorm'; import { UserR...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { AnyBridge, BridgeErrorResponseMessage, BridgeSuccessResponseMessage, EventCallback, EventSubscription, } from "./typ...
import { select, scaleBand, axisLeft, scaleTime, axisBottom } from 'd3' import raw from '../data/stays-handmade.json' import createTooltip from './tooltip' const data = raw.sort((a, b) => { const av = a.executed ? Date.parse(a.executed) : Date.now() const bv = b.executed ? Date.parse(b.executed) : Date.now() ret...
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import { createTable, GroupingState, useTableInstance, getPaginationRowModel, getFilteredRowModel, getCoreRowModel, getGroupedRowModel, getExpandedRowModel, } from '@tanstack/react-table' import { makeData, Person } from '...
import * as Yup from "yup"; import { Form, Formik } from "formik"; import router, { useRouter } from "next/router"; import { useEffect, useState } from "react"; import { AxiosRequest } from "../../../../_api"; import { IVehicles, APIVehicles, } from "../../../../_api/management/APIVehicles"; import { useBreadcrumb ...
<filename>src/app/components/showgraph/showgraph.component.ts import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { Store } from '@ngrx/store'; import { State } from 'src/app/ngrx_register'; import { getCurrentScenarioRiesgosState } from 'src/app/riesgos/riesgos.selectors'; import { RiesgosScen...
declare let require: any; import { Component, OnInit, Inject, ViewChild } from '@angular/core'; import { Web3Service } from './util/web3.service'; import { Router } from '@angular/router'; const splitter_artifacts = require('../../build/contracts/Splitter.json'); import { ContractService } from './contract.service' i...
import React from 'react'; import { Dispatch } from 'redux'; import { connect } from 'react-redux'; import { createStyles, withStyles, WithStyles } from '@material-ui/core/styles'; import { AppBar, Toolbar, Typography, IconButton, Drawer, List, ListItem, ListItemIcon, ListItemText, ListSubheader } f...
<filename>src/calendar.ts // ported from https://github.com/WesleydeSouza/calendar-base (MIT) export interface YMD { year: number month: number day: number } export interface Opts { weekStart: number // 0 // on by default //siblingMonths: boolean //weekNumbers: boolean } export function d...
import * as THREE from 'three'; import { TrackballControls } from 'three/examples/jsm/controls/TrackballControls'; const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 1, 300); const scene = new THREE.Scene(); const renderer = new THREE.WebGLRenderer({ antialias: true }); let control...
import * as crypto from 'crypto' import fetch from 'node-fetch' import {v4 as uuidv4} from 'uuid' import type {Response} from 'node-fetch' export type Environment = 'sandbox' | 'production' export type EventType = string export type Hook = { url: string events?: EventType[] } export type Body = { id: string ...
import { useEffect, useState } from "react"; import { NextPage } from "next"; import { useRouter } from "next/router"; import { NFTStorage, File } from "nft.storage"; import { useForm, SubmitHandler } from "react-hook-form"; import { Button, Checkbox, FileDropzone, Layout, Select, Modal, } from "../../compo...
import App from '../main'; import Player from '../entities/Player'; class Play extends Phaser.State { constructor( public __player: Player, public __walls: Phaser.Group, public __coin: Phaser.Sprite, public __enemies: Phaser.Group, public __scoreLabel: Phaser.Text, p...
<gh_stars>0 import isFunction from "lodash/isFunction"; import { getPackageWithoutVersion, getPackageBundleUri } from "./utils/utils"; import { PieItemElement, PieContent } from "./interface"; import pickBy from "lodash/pickBy"; import { emptyConfigure } from "./components/empty-configure"; /** * TODO: Clean up: PD-76...
import { Button, Input, InputType, Style, ThemeTypes as Theme } from '@getstation/theme'; // @ts-ignore: no declaration file import * as isBlank from 'is-blank'; import * as React from 'react'; // @ts-ignore: no declaration file import injectSheet from 'react-jss'; import { AddPasswordManagerAction, ConfigurationStep }...
import React from "react"; import { Card, Header, Button, Icon, Message } from "semantic-ui-react"; import { ProposalType } from "../runtime/transport"; import { blake2AsHex } from '@polkadot/util-crypto'; import styled from 'styled-components'; import AddressMini from '@polkadot/react-components/AddressMiniJoy'; impor...
<reponame>Axion-Network/axion-contracts<filename>test/utils/TestUtil.ts import { ethers } from 'hardhat'; import web3 from 'web3'; import { MAX_CLAIM_AMOUNT, SECONDS_IN_DAY, STAKE_PERIOD } from './constants'; const EthCrypto = require('eth-crypto'); const decimals_div = 1e18; const apy = 0.08; // annual percentage yi...
import { rejects } from "assert"; import { ipcMain, ipcRenderer } from "electron"; import * as os from "os"; import { exit, exitCode } from "process"; import Swal from "sweetalert2"; import { getSudo } from "../getSudo"; import Store from "electron-store"; import { UrlWithStringQuery } from "url"; import * as jQuery...
<gh_stars>100-1000 //Regular icons import { Eye } from './svgs/Regular/Eye'; import { Check } from './svgs/Regular/Check'; import { Search } from './svgs/Regular/Search'; import { Close } from './svgs/Regular/Close'; import { Box } from './svgs/Regular/Box'; import { Users } from './svgs/Regular/Users'; import { Archiv...
<reponame>smsthn/ELCTRONANGULAR<gh_stars>0 import { Component, OnInit, Inject, } from '@angular/core'; import { LogData } from '../../data/log.data'; import { LogDate, StringFromLogDate, DateStringFromLog, addDay, compareLogDates, DateFromLogDate } from '../../data/log.date'; import { LogService } from '../../services/...
import { fromNodes, fromDataArray, Node, NodeMap, LinkedListData } from "./linkedList"; import faker from "faker"; export type VideoNodeData = { videoId: string }; export type VideoNode = Node<VideoNodeData>; export type VideoNodeMap = NodeMap<VideoNodeData>; export type PlaylistData = LinkedListData<VideoNo...
import * as React from "react" import Letter from "./Letter" interface BoardState { letters: string[][], selected: boolean[][], mark: number, point: number, score: number } interface BoardProps { onGameOver: (score: number) => void } interface Coordinate { col: number, row: number } ...
import { delay } from 'redux-saga' import { call, put, select, take } from 'redux-saga/effects' import { ActionType, getType } from 'typesafe-actions' import uuid from 'uuid/v4' import Config from 'react-native-config' import GroupsActions from '../Redux/GroupsRedux' import PhotoViewingActions from '../Redux/PhotoView...
<filename>packages/resources/src/StaticSite.ts import * as path from "path"; import { execSync } from "child_process"; import * as cdk from "@aws-cdk/core"; import * as s3 from "@aws-cdk/aws-s3"; import * as s3Deploy from "@aws-cdk/aws-s3-deployment"; import * as acm from "@aws-cdk/aws-certificatemanager"; import * as...
<filename>src/shared/broadcasters/YouTubeMusic.ts import Broadcaster from '@/shared/audio/Broadcaster'; import BroadcasterPlayerState from '@/shared/audio/BroadcasterPlayerState'; import AbstractBroadcaster from '@/shared/audio/AbstractBroadcaster'; import { hasValue } from '@/shared/Utils'; import { DEFAULT_MINI_PLAYE...
<filename>src/app/components/uttaksplanlegger/components/uttakFordeling/uttakFordelingUtils.ts<gh_stars>0 import { TilgjengeligeDager } from 'shared/types'; import { Forelder } from 'common/types'; import { FordelingIkkeDeltOmsorg, FordelingDeltOmsorg } from 'shared/components/fordelingGraf/types'; import { BrukteDager...
<gh_stars>0 import fs from 'fs'; import path from 'path'; import * as FileUtils from '../../base/common/fileUtils'; import * as WorkspaceTypes from '../common/workspace'; import { WorkspaceManagementService } from './workspaceManagementService'; import { getObjectDataType, TerraformType, DeleteTypeInfo, } from '....
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import { Link, Model } from '../link'; import { MachineService } from '../machine.service'; import { Machine } from '../machine'; import { MatSelectChange } from '@angular/material/select'; import { LinkType, LinkState } from '../link-type.enum'; ...
<filename>src/index.ts import {EventEmitter} from 'events'; import * as fs from 'fs'; import globby = require('globby'); // eslint-disable-next-line node/no-extraneous-import import {GoogleAuth, GoogleAuthOptions} from 'google-auth-library'; import {cloudbuild_v1, google, storage_v1} from 'googleapis'; import * as path...
import { createRenderer, Renderer } from '../renderer'; import { getTypeTable, QRPointType, rand } from '../utils'; export interface CircleQrOption { otherColor?: string; posColor?: string; opacity?: number; } const CircleQrRenderer: Renderer<CircleQrOption> = { defaultProps: { otherColor: '#000', pos...
<reponame>zhoumingyang/PlumeGL import { CONSTANT } from '../engine/constant'; const EPSILON = 0.000001; export class Quat { public type: Symbol = CONSTANT.QUAT; private _value: Float32Array = new Float32Array(4); private _x: number = 0; private _y: number = 0; private _z: number = 0; private _...
import { AstElement } from "../src/aja-ast/ast-element"; import { htmlAst, AstRoot, AstText, AstComment } from "../src/aja-ast"; import { htmlCommentExp, startTagOpenExp, startTagExp, attributeExp, } from "../src/aja-ast/html-ast"; import { ContextData } from "../src/classes/context-data"; let astRoot: AstRoot...
// [VexFlow](https://vexflow.com) - Copyright (c) <NAME> 2010. // Author: <NAME> // MIT License import { Accidental } from './accidental'; import { Annotation } from './annotation'; import { Dot } from './dot'; import { GraceNote } from './gracenote'; import { GraceNoteGroup } from './gracenotegroup'; import { Note } ...
import { BigNumber, ethers, Signer } from "ethers"; import { Provider } from "@ethersproject/providers"; import erc20Abi from "../Contracts/ABIs/erc20.json"; import { AssetAprComponent, AssetProjectedApr, JarDefinition, HistoricalYield, SWAP_PROTOCOLS, } from "../model/PickleModelJson"; import { ICustomHarves...
import {defineComponent, PropType, h} from 'vue'; import {markRaw, toRaw} from '@vue/reactivity'; import {ComponentUtil, Grid, GridOptions, Module, RowNode} from '@ag-grid-community/core'; import {VueFrameworkComponentWrapper} from './VueFrameworkComponentWrapper'; import {getAgGridProperties, kebabNameToAttrEventName...
<reponame>mendix/pull-to-refresh import * as domClass from "dojo/dom-class"; interface Settings { thresholdDistance: number; maximumDistance: number; reloadDistance: number; mainElement: HTMLElement; triggerElement: HTMLElement; pullToRefreshElement: HTMLElement; classPrefix: string; cs...
/* eslint no-process-exit: 0 */ /* A script to simulate actual game player with a player driver. */ import * as RG from '../client/src/battles'; import {RGTest} from '../tests/roguetest'; import {FactoryGame} from '../client/src/factory.game'; import {Random} from '../client/src/random'; import {Dice} from '../client...
// Copyright (c) 2022 FlyByWire Simulations // SPDX-License-Identifier: GPL-3.0 import { Atis, Metar, Taf, Telex, AircraftStatus } from '@flybywiresim/api-client'; import { NXDataStore } from '@shared/persistence'; import { AtsuStatusCodes } from '../AtsuStatusCodes'; import { AtsuMessage, AtsuMessageComStatus, Atsu...
import Knex from 'knex'; import * as turf from '@turf/turf'; const DB_SCHEMA = process.env.DB_SCHEMA || 'invasivesbc'; const NODE_ENV = process.env.NODE_ENV; /** * Create the `application_user` table. * * @export * @param {Knex} knex * @return {*} {Promise<void>} */ export const bcGeo = { type: 'FeatureColl...
import { Coords, ClockWise } from "./types"; import { getRandomDirection, getRandomArbitrary, getRandomColor, getDistance, atan2Arc, getAngle, reduceAngle, } from "../utils"; import { Donut } from "./Donut"; export interface DonutState { donut: Donut; color: string; startAngle: ...
import { Types, isValidObjectId, PipelineStage } from 'mongoose'; import createHttpError from 'http-errors'; import Games from '../models/game.model'; import bgaClient from '../utils/boardGameAtlasClient'; import { GameDocument, GameInput, GameResponse } from '../types'; import { GamesPaginationQuery, boardGameAtla...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* * Copyright © 2020 <NAME>, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import {Action} from "../../internal/Action.js"; import {TimelinePosition} from "../../qualifiers/video/TimelinePosition.js"; import {BlendModeQualifier} from "../../qualifiers/blendMode/BlendModeQualifier.js"; import {PositionQualifier} from "../../qualifiers/position/PositionQualifier.js"; import {FlagQualifier} from...
<reponame>vdice/brigade-utils import { BrigadeEvent, EventHandler, Project } from "@brigadecore/brigadier/out/events"; import { Result } from "@brigadecore/brigadier/out/job"; import { Job } from "@brigadecore/brigadier"; export const GITHUB_CHECK_TEXT_MAX_CHARS = 65535; export class Check { event: BrigadeEvent; ...
<reponame>ShiverZheng/Y2T-Robot<gh_stars>0 /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { TireSeed, MethodInPath } from './models' /** * Sleep * @param ms number * @returns {Promise<void>} */ export const sleep = (ms: number)...
<gh_stars>10-100 /** * @file Structure Constants * @author <NAME> <<EMAIL>> * @private */ export declare const UnknownEntity = 0; export declare const PolymerEntity = 1; export declare const NonPolymerEntity = 2; export declare const MacrolideEntity = 3; export declare const WaterEntity = 4; export declare const Un...
import { DateTime } from 'luxon' import { chain, groupBy, isEmpty } from 'lodash' import { getConnection } from 'typeorm' import { fillTimeSeriesGaps, startOf5MinuteInterval } from '../utils/timeseries.utils' import { Unit, UnitStats } from '../entity/pg' import { knex } from '../db/pg' import { escapeLiteral } from '...
import { guard } from '../../utils'; import { ConfigSchema } from '../schema'; import { ExplorerMethods, ExplorerMethodsArgs } from './explorer'; import { PostgresSchema } from './postgres.interface'; enum PgTypeType { Base = 'b', Composite = 'c', Domain = 'd', Enum = 'e', Pseudo = 'p', Range = 'r', } con...
import matchSorter from 'match-sorter'; import { Column, FilterValue, Hooks, IdType, Row, useFilters, useFlexLayout, useGlobalFilter, useResizeColumns, useRowSelect, useSortBy, useTable } from 'react-table'; import { ProjectData } from '../../types'; import React, { useCa...
import { useQuery } from '@apollo/client'; import { Box, Divider } from '@material-ui/core'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import React, { useCallback, useEffect, useState } from 'react'; import { useSelector } from 'react-redux'; import { useLocation } ...
<gh_stars>1-10 import product from 'vs/platform/product/common/product'; import { Emitter } from 'vs/base/common/event'; import { DisposableStore, IDisposable } from 'vs/base/common/lifecycle'; import { URI } from 'vs/base/common/uri'; import { parseLogLevel } from 'vs/platform/log/common/log'; import { defaultWebSocke...
import * as es from 'estree' import { simple } from '../../utils/walkers' // Set of reserved keywords in GLSL const reservedKeywords = new Set<string>([ 'attribute', 'const', 'uniform', 'varying', 'break', 'continue', 'do', 'for', 'while', 'if', 'else', 'in', 'out', 'inout', 'float', 'i...
import {Inject, Injectable} from '@nestjs/common'; import {flatten, isString, kebabCase, sortBy, upperFirst} from 'lodash'; import * as concurrently from 'concurrently'; import * as path from 'path'; import * as fs from 'fs-extra'; import * as glob from 'glob'; import * as chalk from 'chalk'; import {VersionManagerSer...
/* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { CertificateSerialNumber, _decode_CertificateSerialNumber, _encode_CertificateSeri...
import type { NextApiRequest, NextApiResponse } from 'next'; import runMiddleware from '../../../utils/run-middleware'; import admin from '../../../utils/admin'; import * as mongoose from 'mongoose'; import { v4 as uuid } from 'uuid'; import cors from 'cors'; import Settings from '../../../types/settings'; import u...
'use strict'; // tslint:disable: no-any one-line no-suspicious-comment prefer-template prefer-const no-unnecessary-callback-wrapper no-function-expression no-string-literal no-control-regex no-shadowed-variable import * as crypto from 'crypto'; import * as fs from 'fs'; import * as os from 'os'; import * as path from ...
import { Button, Heading, Text, Divider, Row, Spacer, View, ShakeDeviceIcon, ShowMenuIcon, ThreeFingerPressIcon, CheckIcon, } from 'expo-dev-client-components'; import * as React from 'react'; import { ScrollView, Switch } from 'react-native'; import { useQueryClient } from 'react-query'; import {...
import React, { useState, useEffect } from 'react'; import { NetlessBoard } from '@/components/netless-board'; import { ScreenSharing } from '@/components/screen-sharing'; import { ChatBoard } from '@/components/chat/board'; import { VideoPlayer } from '@/components/video-player'; import { ControlItem } from '@/compone...
import React, { useEffect, useState, useCallback } from "react"; import { makeStyles, Link, Paper, CircularProgress, Tooltip, useTheme, Button } from "@material-ui/core"; import XTerm from "../components/XTerm"; import { useRouteMatch, useLocation } from "react-router"; import { faUser, faChevronRight, faServer } from ...
import React from 'react'; import { groupBy, orderBy, padStart, sortBy, toPairs } from 'lodash'; import { isAfter } from 'date-fns'; import getYear from 'date-fns/getYear'; import setHours from 'date-fns/setHours'; import addDays from 'date-fns/addDays'; import subHours from 'date-fns/subHours'; import getMonth from 'd...
<reponame>icelam/tints-and-shades import { LitElement, html, css, CSSResult, property, customElement, TemplateResult } from 'lit-element'; import '@components/Header/FrameHeader'; import '@pages/TintsShadesGenerator'; import { randomHexColor, isValidHexColor, isValidRgbColor, convertColorRgbToHex, convertCo...
import * as THREE from 'three' import React, { useRef, useEffect } from 'react' import { useGLTF, useAnimations, useMatcapTexture } from '@react-three/drei' import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader' /* original file auto-generated by: https://github.com/pmndrs/gltfjsx edited by: @firxworx author: P...
import { SInt64, UInt64 } from './int64' import { Num } from './num' import { NumType, types as T } from "./ast" const _Int64_UINT32_MAX = UInt64.fromInt32(0xffffffff) const _Int64_SINT32_MAX = SInt64.fromInt32(0x7fffffff) const _Int64_SINT32_MIN = SInt64.fromInt32(-0x80000000) const _Int32_UINT16_MAX = 0xffff >>> 0 ...
<reponame>vineyard-bloom/vineyard-lawn import * as express from 'express' import {handleError, HttpError} from './errors' import {Version} from './versioning' import { DeferredRequestTransform, Endpoint, LawnHandler, LawnRequest, Method, PromiseOrVoid, RequestListener, SimpleResponse } from './types' im...
<reponame>chad-ramsey-ck/dynamic-config import { expect } from '@hapi/code' import * as Lab from '@hapi/lab' import { ChildProcess, exec } from 'child_process' import * as fs from 'fs' import * as path from 'path' import * as rp from 'request-promise-native' import { config } from '../../main/' import { CONFIG_PA...
// this engages a babel macro that does cool emotion stuff (like source maps). See https://emotion.sh/docs/babel-macros import css from "@emotion/css/macro"; // these two lines make the css prop work on react elements import { jsx } from "@emotion/core"; /** @jsx jsx */ import React, { useState } from "react"; // NB: ...
import * as crypto from "crypto"; import { AsnType, decodeDer } from "./der"; import { Pbkdf2 } from "./Pbkdf2"; import { HashAlgorithm } from "./Hmac"; export class AlgorithmIdentifier { public readonly algIdent: string; public readonly parameters?: AsnType; public constructor(asn: AsnType) { if ...
import jwtDecode, {JwtPayload} from "jwt-decode"; import {AxiosError} from "axios"; import {strings} from "@/shared/strings"; import {EmPageFormViewModel} from "@/models/em-page-form-view-model"; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import pluralize from "pluralize" import {RouteL...
import React, { CSSProperties } from 'react'; import Webcam, { WebcamProps } from 'react-webcam'; import { QRCode } from 'jsqr'; import { QRScannerAccessError, QRScannerCanvasError, QRScannerTimeoutError, } from './error'; import Worker from './worker'; import { cls } from './utils'; import './style.css';...
import constants from '../constants'; import api, { SearchResponse } from './api'; import logger from './logger'; const getNavItemHtml = (href: string, numChangelogs: number) => { const string = (numChangelogs === 0) ? 'Release Notes' : (numChangelogs === 1) ? 'changelog' : 'changelogs'; retur...
/* * Copyright (c) BrownBear, 2022-Present. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at ...