text
stringlengths
3.3k
33k
import { arrayEquals, DEV, equals, objectEquals, objectKeys, Pointer, PointerProps, has, u, NotImplementedError } from './Prelude'; import { X, Y } from './Xyact'; import { Throw } from './Error'; import { Element, elements, ResultRecord } from './Element'; import { Seed } from './Seed'; const implicits: symbol[] = [...
import styled, { css, keyframes } from 'styled-components' export interface Props { mode?: number textLength?: number error?: boolean theme?: any half?: boolean } const color = (props: Props) => { if (props.error) return '#fd9595' return (props.theme.mode ? props.theme.primary : props.the...
import { ReactNode } from "react"; import { Row, Col, useShow, IResourceComponentsProps, useTranslate, Button, Icons, Steps, PageHeader, Grid, useUpdate, Space, Avatar, Typography, Card, Table, List, Skeleton, Icon, } from "@pankod/refine"; imp...
import { Button, Dropdown, ErrorBoundary, SectionHeader, TextField, withStyles, } from '@kudoo/components'; import { withI18n } from '@lingui/react'; import ButtonBase from '@material-ui/core/ButtonBase'; import Grid from '@material-ui/core/Grid'; import { Formik } from 'formik'; import get from 'lodash/get...
<reponame>davidka2003/CloudAio /* eslint global-require: off, no-console: off */ /** * This module executes inside of electron's main process. You can start * electron renderer process from here and communicate with the other processes * through IPC. * * When running `yarn build` or `yarn build:main`, this...
<filename>packages/core/src/vivliostyle/net.ts<gh_stars>0 /** * Copyright 2013 Google, Inc. * Copyright 2015 Trim-marks Inc. * Copyright 2019 Vivliostyle Foundation * * Vivliostyle.js is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published...
//Everything except the namespace is generated from template.json using https://app.quicktype.io/?l=ts // Actors export interface TravellerDataSource { type:'traveller'; data:Traveller; } export interface ShipDataSource { type:'ship'; data:Ship; } export type ActorTwodsixDataSource = TravellerDataSource | S...
import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { RootState } from '../../../../js/store'; import { setActiveFeatureIndex, setActiveFeatures, setDocuments } from '../../../../js/store/mapview/actions'; import DataTabFooter from './DataTabFooter'; import DefaultTabVie...
<gh_stars>1-10 import { EmulatorBitmap } from "../../emulator/bitmap/bitmap"; import { EmulatorElement, IElementTransform } from "../../emulator/element"; import { EmulatorInbox } from "../../emulator/elements/inbox"; import { EmulatorWindow } from "../../emulator/elements/window"; import { IBitmapPalette } from "../.....
<gh_stars>1-10 import { Constructor, StringDict } from './utils'; import { Db, ObjectID } from 'mongodb'; import { InputError } from './errors'; import { MyMICDSModule, MyMICDSModuleType } from '@mymicds/sdk'; import * as _ from 'lodash'; import * as users from './users'; // Custom enum types enum CountdownMode { TIM...
<gh_stars>0 /*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { ITelemetryBaseLogger } from '@fluidframework/common-definitions'; import Denque from 'denque'; import { assert, fail, noop } from './Common'; import { EditLog } from './EditLog'...
import * as React from 'react' import { debounce } from '../../lib/debounce' import { panzoom } from '../../lib/panzoom' import { getViewport } from '../../lib/viewport' import { Coord } from '../../lib/common' import { renderMap } from '../../render/map' import { Props, State } from './TileMap.types' import './TileM...
import {useMutation} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {ProgressBar} from '@blueprintjs/core'; import {Button, Colors, DialogBody, DialogFooter, Dialog, Group, Icon, Mono} from '@dagster-io/ui'; import * as React from 'react'; import {ReexecutionStrategy} from '../types/gl...
import './index.html'; import {RcsbFv3DCustom, RcsbFv3DCustomInterface} from "../../RcsbFv3D/RcsbFv3DCustom"; import {RcsbFvStructureInterface} from "../../RcsbFvStructure/RcsbFvStructure"; import {LoadMethod} from "../../RcsbFvStructure/StructurePlugins/MolstarPlugin"; import { CustomViewInterface, FeatureBloc...
<reponame>LuizZak/SwiftTestFileGen<filename>src/test/suite/fullTestFixture.ts import * as assert from 'assert'; import * as vscode from 'vscode'; import { Configuration } from '../../data/configurations/configuration'; import { makeTestContext, TestContext, TestVscodeWorkspaceEdit } from './testMocks/testContext'; impo...
<reponame>tysongg/literate-engine<filename>src/map/map-chunks.ts export class CampaignMapChunk { x: number y: number playerVisible: boolean; private _chunkImage: string; constructor(x: number, y: number, _chunkImage: string, playerVisible: boolean) { this.x = x; this.y = y...
/** * Graphology Typings * =================== * * Graphology TypeScript declaration. */ /** * Event Emitter typings for convience. * @note Taken from here: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/events/index.d.ts */ type Listener = (...args: any[]) => void; declare class EventEm...
// (C) 2021 GoodData Corporation import { ExtendedDashboardItem } from "../../../types/layoutTypes"; import { ObjRefMap } from "../../../../_staging/metadata/objRefMap"; import { areObjRefsEqual, IInsight, insightRef, objRefToString } from "@gooddata/sdk-model"; import { IDashboardAttributeFilter, IInsightWidge...
/* eslint-disable import/no-extraneous-dependencies */ import cheerio, { Cheerio, CheerioAPI, Element } from 'cheerio'; import parseFrontMatter from 'front-matter'; import fs from 'fs-extra'; import { last, pickBy } from 'lodash'; import { resolve } from 'path'; import { HTMLAttributeReferrerPolicy, LinkHTMLAttrib...
<filename>packages/client-core/components/terminal/commands.ts import { Engine } from "@xr3ngine/engine/src/ecs/classes/Engine"; import { createEntity, removeEntity } from "@xr3ngine/engine/src/ecs/functions/EntityFunctions"; import { ComponentConstructor } from "@xr3ngine/engine/src/ecs/interfaces/ComponentInterfaces"...
import { isAsyncThunkAction, isFulfilled } from '@reduxjs/toolkit' import type { AnyAction } from 'redux' import type { ThunkDispatch } from 'redux-thunk' import type { BaseQueryFn, BaseQueryMeta } from '../../baseQueryTypes' import { DefinitionType } from '../../endpointDefinitions' import type { RootState } from...
<reponame>definancer/gnosis-safe-ui<filename>src/logic/hooks/useEstimateTransactionGas.tsx import { useEffect, useState } from 'react' import { estimateGasForTransactionApproval, estimateGasForTransactionCreation, estimateGasForTransactionExecution, getFixedGasCosts, SAFE_TX_GAS_DATA_COST, } from 'src/logic/...
import { Injectable } from "@angular/core"; import { Router, ActivatedRouteSnapshot, RouterStateSnapshot, CanActivate } from "@angular/router"; import { AngularFireAuth } from "@angular/fire/compat/auth"; import { Observable, of } from "rxjs"; import { switchMap, map, first, catchError } from "rxjs/operators"; imp...
import React, { useLayoutEffect, useRef, useState } from 'react'; import { anchorCustomPositionType, anchorType, labelsType, pathType, svgCustomEdgeType, svgEdgeShapeType, svgElemType, xarrowPropsType, } from '../types'; import { getElementByPropGiven, getElemPos, xStr2absRelative } from './utils'; impo...
import { getReferenceString, stringify } from '@medplum/core'; import { Bot, Bundle, DiagnosticReport, OperationOutcome, Questionnaire, Resource } from '@medplum/fhirtypes'; import { Button, DefaultResourceTimeline, DiagnosticReportDisplay, Document, EncounterTimeline, Form, Loading, MedplumLink, Pati...
import React, { PureComponent } from 'react'; import { PanelProps } from '@grafana/data'; import { MapOptions } from 'types'; import { Map, View, Feature } from 'ol'; import { Draw, Modify, Snap } from 'ol/interaction'; import GeometryType from 'ol/geom/GeometryType'; import { Tile as TileLayer, Vector as VectorLayer }...
import { provider } from 'knifecycle'; import YError from 'yerror'; import pgConnectionString from 'pg-connection-string'; import pg from 'pg'; import type { ProviderInitializer, Dependencies, Service } from 'knifecycle'; import type { PoolConfig, QueryResult } from 'pg'; import type { LogService } from 'common-service...
import http from 'http'; import https from 'https'; import { Readable } from 'stream'; import { parse } from 'url'; import { IMetricLogger } from './os-request'; import * as Request from './os-request'; import { default_timeout } from './utils'; interface IImage { // todo todo: unknown; } export default class Glanc...
<gh_stars>0 /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "Li...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {StaticSymbol} from '../aot/static_symbol'; import {CompileTypeMetadata, tokenReference} from '../compile_meta...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { HttpMethod } from '../../lib/enumerate'; import Application, { Next, Context } from 'koa'; import { ParameterRouterQueryMetaData } from '../parameter/query'; import { ParameterRouterParamMetaData } from '../parameter/param'; import { ParameterRouterBodyMe...
import React, { useRef, useState, useEffect } from "react"; import Layout from "../../components/layout"; import SEO from "../../components/seo"; import Links from "../../components/links"; import CenterFlex from "../../components/CenterFlex"; import { Text, FormControl, FormHelperText, Input, Butt...
/* eslint-disable rulesdir/no-unused-await */ import qrCode from "qrcode"; import { addStyle, replaceAllTextToElement, waitElementLoaded, } from "./document-extensions"; import { createGeonamesClient } from "./geonames"; import { createPhysicalAnimator } from "./physical-element-animator"; func...
import {JsonObject, JsonProperty} from 'json2typescript'; import {BaseModel, HasDynaIcon, HasIcon} from 'shared/models/base.model'; import {LinkModel} from 'shared/models/link.model'; import {SnapshotModel} from './snapshot.model'; @JsonObject export class BaseHypervisorContentModel implements HasIcon { static read...
import * as React from "react"; import styles from "../main.module.scss" import {CONTAINER, ELEMENT_LARGE_SMILES, SEQUENCE_EDIT, SEQUENCE_ID, SSEQUENCE} from "../constant/ApiConstants"; import ListComponent, {ListState} from "../component/ListComponent"; import Helper from "../helper/Helper"; import {ServerEnumHelper} ...
<filename>src/site.ts import { Sessionize } from './definations/sessions'; if (typeof fetch === "undefined") { alert("Oh no 😢 We don't support your web browser. Please upgrade to a newer version!"); } const agendaPlaceholder = document.getElementById("agenda"); if (agendaPlaceholder) { const eventId = agenda...
import Stats from 'stats.js' import * as Radial from '../../src/layout/radial' import * as Graph from '../../src/' import * as WebGL from '../../src/renderers/webgl' import graphData from '../../data/tmp-data' export const stats = new Stats() stats.showPanel(0) // 0: fps, 1: ms, 2: mb, 3+: custom document.body.append...
import { CustomerMetadata } from './model' // Keep these for now, this way we can easily see which have had types generated // export interface Keystone { // renewToken: AuthToken // getProjectsAuth: GetProjectsAuth // changeProjectScope: AuthToken // getServiceCatalog: GetServiceCatalog // resetCookie: stri...
/* eslint-disable filenames/match-exported */ import {createCss} from '../../packages/@stitches/core'; import type { TMedias, TTheme, TThemeMap, CSSPropertiesToTokenScale, TStyledSheet, IConfig, } from '../../packages/@stitches/core'; import {createRoot} from '@ezcater/snitches'; import {PlaceItemsProperty}...
<filename>buildSrc/src/BuildThemes.ts import { BaseAppDokiThemeDefinition, constructNamedColorTemplate, DokiThemeDefinitions, evaluateTemplates, fillInTemplateScript, getDisplayName, MasterDokiThemeDefinition, resolvePaths, StringDictionary, } from 'doki-build-source'; type EclipseDokiThemeDefinition =...
<reponame>livebird/TerriaJS-TMG<gh_stars>100-1000 import BoundingSphere from "terriajs-cesium/Source/Core/BoundingSphere"; import BoundingSphereState from "terriajs-cesium/Source/DataSources/BoundingSphereState"; import CustomDataSource from "terriajs-cesium/Source/DataSources/CustomDataSource"; import DataSource from ...
import * as es from 'estree' import * as l from 'llvm-node' import { Environment, Location, Type, TypeRecord } from '../context/environment' import { isBool, isNumber, isString } from '../util/util' import { LLVMObjs } from '../types/types' import { display } from './primitives' // Standard setup for a function defini...
import getEnv from "./getEnv"; import Eris, { GuildTextableChannel, Message } from "eris"; import GuildService from "../services/GuildService"; import { loadLanguagePack } from "./languagePack"; import memberHasAdminPermission from "./memberHasAdminPermission"; import commandErrorHandler from "./commandErrorHandler"; i...
/// <reference path="../../types.d.ts" /> /** * TypeScript dependencies */ import Editor = require('../editor/index'); import events = require('events'); import classes = require('component-classes'); import query = require('component-query'); import domify = require('domify'); import dataset = require('dataset'); ...
import { Component, OnInit, NgZone } from "@angular/core"; import { ReportsIncidenceService } from 'src/services/reports-incidence.service'; declare const google: any; interface Marker { lat: number; lng: number; label?: string; draggable?: boolean; } @Component({ selector: "app-map", templateUrl: "map.component...
<filename>src/store/mouse.ts const shiftKeyCode = 16; const metaKeyCode = 91; const ctrlKeyCode = 17; const spaceKeyCode = 32; import {Vector, linkInnerVectorEdges} from "@plastic-io/plastic-io"; // eslint-disable-line import {applyGraphChanges, newId, updateBoundingRect, remapVectors} from "./mutations"; // eslint-dis...
/* eslint-disable max-len */ import { Bytes, CLVMType, OPERATOR_LOOKUP, run_program, SExp, sexp_from_stream, Stream } from "clvm"; import { bytes } from "../../xch/providers/provider_types"; import { ConditionOpcode } from "./condition_opcodes"; import { ConditionWithArgs } from "./condition_with_args"; export type Co...
import React, {useEffect, useRef, useState} from "react"; import {isMobile} from "react-device-detect"; import {Button, Dropdown, DropdownItem, DropdownMenu, DropdownToggle,} from "reactstrap"; import Calendar from "@toast-ui/react-calendar"; import "tui-date-picker/dist/tui-date-picker.css"; import "tui-time-picker/di...
import * as React from 'react'; import styles from './input-combobox.module.scss'; import type { FormattedCategory } from '../../utils/contentful'; type InputComboboxProps = { handleUpdate: (categories: string[]) => void id: string items: FormattedCategory[] label: string name: string } const In...
<reponame>aabccd021/flamestore import { firestore as defaultFirestore, storage as defaultStorage, } from "firebase-admin"; import { logger, Change, EventContext, FunctionBuilder, } from "firebase-functions"; import _ from "lodash"; import { QueryDocumentSnapshot } from "firebase-functions/lib/providers/fire...
import { useState } from 'react'; import '@reach/accordion/styles.css'; import { Accordion, AccordionItem, AccordionButton, AccordionPanel } from '@/components/accordion'; import { Disclosure, DisclosureButton, DisclosurePanel } from '@/components/disclosure'; import { Item as ItemType, Section as SectionType } from ...
import { BlockhanNetworkUrlMap, CnsSupportedNetwork, ProxyReaderMap, hasProvider } from './types'; import { default as proxyReaderAbi } from './contracts/cns/proxyReader'; import { default as resolverInterface } from './contracts/cns/resolver'; import ResolutionError, { ResolutionErrorCode } from './errors/resolutionEr...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------------------------------------------------------...
// import { PlusOutlined } from '@ant-design/icons'; import { Input } from 'antd'; import React, { useState, useRef, useCallback } from 'react'; import { PageHeaderWrapper } from '@ant-design/pro-layout'; import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table'; import { TableListItem, CarType } from '....
<reponame>jfseb/abot_mongoload 'use strict' /** * (C) <NAME> 2017 * * convert (old) model file to a new model data document */ //import * as intf from 'constants'; import * as debug from 'debug'; import * as _ from 'lodash'; import { IFModel as IMatch } from 'fdevsta_monmove'; import * as fdevsta from 'fdevst...
import { object, string, ref, ValidationErrorItem, ValidationOptions, ValidationError, } from "@hapi/joi" export function buildJoiErrors(details: ValidationErrorItem[]): object { const errors: {[index: string]: string} = {}; for (const item of details) { const key = item.pa...
<gh_stars>1-10 import * as fs from 'fs'; import * as path from 'path'; import * as url from 'url'; import * as http from 'http'; import * as os from 'os'; import log from 'electron-log'; import file from '../utils/file'; const connect = require('connect'); const WebSocket = require('faye-websocket'); const logger = re...
import methods from 'methods'; import http from 'http'; import { Request, agent } from 'superagent'; import https from 'https'; import assert from 'assert'; import util from 'util'; // 包裹原函数,提供更优雅的报错堆栈 function wrapAssertFn(assertFn) { // 保留最后 3 行 const savedStack = new Error().stack.split('\n').slice(3); ...
<reponame>Tiamat-Tech/community-bot import { command, default as CookiecordClient, listener, Module, optional, } from 'cookiecord'; import { Message, MessageEmbed, TextChannel, User } from 'discord.js'; import { compressToEncodedURIComponent, decompressFromEncodedURIComponent, } from 'lz-string'; import { format...
<gh_stars>0 // ProtoByte_prototype_v01 // <NAME> // Bacon Bits Cooperative // Dallas, TX import { CatmullRomCurve3, DoubleSide, Mesh, MeshPhongMaterial, RepeatWrapping, TextureLoader, Vector3, BufferAttribute, Color, Box3Helper, } from "three"; import { randFloat, randInt } from...
<filename>src/ng-vcl/select/select.component.ts import { Component, forwardRef, ChangeDetectionStrategy, HostBinding, ViewChild, ContentChildren, ElementRef, Input, QueryList, EventEmitter, Output, HostListener, ChangeDetectorRef, AfterViewInit } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } ...
<gh_stars>0 class TileMap extends engine.DisplayObjectContainer { public MapSize = 100; public _grid: Grid; public _astar: Astar; constructor() { super(); //this._grid= new Grid(10,10); //this._astar=new Astar(this._grid); //this.Create(); } private MapInfomatio...
import {ResourceRegistry} from './resource-registry'; import {ViewFactory} from './view-factory'; import {BindingLanguage} from './binding-language'; var nextInjectorId = 0, defaultCompileOptions = { targetShadowDOM:false }, hasShadowDOM = !!(<any>HTMLElement.prototype).createShadowRoot, needsTemplateFixup...
import { ema } from 'moving-averages'; import { timingWrapper } from '../../lib/helpers'; import { findProductAverages, updateProductAverages } from '../../models/ema'; export interface IProduct { title: string; ask: string; bid: string; minQty: string; tickSize: string; candles: { fast: number[], ...
import { addMonths, differenceInCalendarMonths, differenceInDays, differenceInMonths, endOfMonth, formatISO, isAfter, isSameMonth, setMonth, setYear, startOfMonth, subMonths, } from 'date-fns'; import { zonedTimeToUtc } from 'date-fns-tz'; import { DatabaseTransactionConnectionType } from 'sloni...
import React, { useEffect, useState } from 'react' import { wrap } from 'comlink' import CircularProgress from '@material-ui/core/CircularProgress' import Button from '@material-ui/core/Button' import FormControl from '@material-ui/core/FormControl' import FormControlLabel from '@material-ui/core/FormControlLabel' imp...
<gh_stars>1-10 const canvasContainer:HTMLElement = document.querySelector(".canvas-container"); const colorPickerContainer:HTMLElement = document.querySelector(".CP-Container"); const helptext:HTMLElement = document.querySelector(".help-text"); const resetButton:HTMLButtonElement = document.querySelector(".reset-button...
let emojiiMapping : {[key: string]: string}= {":cow:" : "🐮", "🌕": ":full_moon:", "🚀": ":rocket:", "🔥": ":fire:", "⚡": ":zap:", "🍃": ":leaves:", "🍴": ":fork_and_knife:", "🍔": ":hamburger:", "🍟": ":fries:" , "👠": ":high_heel:", "👗": "dress:", "💐": ":bouquet:", "👛": ":purse:" , "🌂": ":closed_umbrella:", "🌈...
<gh_stars>1-10 import { test, expect, Page } from '@playwright/test'; /** * When set to true, this runs tests that require the server to have a usable * `/setup` invite */ const initialTest = true; const timestamp = new Date().toLocaleTimeString(); const documentTitle = '[data-test="document-title"]'; const sideba...
import chalk from 'chalk'; import { Client, Collection, Constants, Message, MessageEmbed, MessageReaction, User, VoiceChannel } from 'discord.js'; import ms from 'ms'; import { logger } from '../app'; import { Command } from '../classes/Command'; import { Player } from '../classes/Player'; impo...
import { createContext, useRef, useReducer, useEffect, Dispatch, ReactNode } from "react"; import { parse } from "querystring"; import { CowAllOptions } from "cowsayjs"; import { modeFace, faceMode, CowFace } from "cowsayjs/lib/mode"; import { CowAction } from "cowsayjs/lib/box"; import { normalizeCowData, purgeCowDa...
import * as fs from "fs"; import * as path from "path"; import Task from "treelike-task"; import { bufferEntry, open, parseEntries, ZipFile } from "yauzlw"; import { ensureDir } from "./utils/common"; import { MinecraftFolder, MinecraftLocation } from "./utils/folder"; import { getIfUpdate, UpdatedObject } from "./util...
<gh_stars>1-10 import * as nacl from "tweetnacl"; import { EncryptAnonymous, CipherType } from "./Cryptor"; import { client, Client } from "./HTTP"; import { api } from "./proto"; import { ResourceBox, makeResourceFromResponse } from "./ResourceInternal"; import { Error, SDKKind } from "./Error"; import { Constants } f...
<reponame>madrobby/homebridge-unifi-protect-camera-motion<filename>src/unifi/unifi.ts import {Utils} from "../utils/utils"; import {AxiosInstance, AxiosRequestConfig, AxiosResponse} from "axios"; import * as https from "https"; const axios = require('axios').default; export class Unifi { private readonly config:...
/** * Copyright (c) 2016 <NAME>, <NAME>, and <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 * rights to use, copy, mod...
<reponame>nizarbg96/packways-front import {Component, OnInit, ViewChild} from '@angular/core'; import {Runsheet} from '../../model/runsheet.model'; import {MatDialog, MatListOption, MatSelectionList} from '@angular/material'; import {Trip} from '../trips/Trip'; import {Router} from '@angular/router'; import {TripServic...
import { Disposable, Event, isObject, isUndefined, PreferenceScope } from '@opensumi/ide-core-common'; import { PreferenceSchema } from './preference-contribution'; import { PreferenceService } from './types'; export interface PreferenceChangeEvent<T> { readonly preferenceName: keyof T; readonly newValue?: T[keyo...
import { RaideaService } from 'raidea_module/raidea.service'; import { HttpStatus } from '@nestjs/common'; import { MapManager } from '../util/map.manager'; import { CalculateManager } from '../util/calculate.manager'; import { PhoneNumberUtil } from 'google-libphonenumber'; import * as jwtDecode from 'jwt-decode'; imp...
<gh_stars>0 import * as hre from 'hardhat' import { expect } from 'chai' import 'mocha' import { Api3Token, TestPool } from '../typechain' import { BigNumber } from 'ethers' import { TestCase, testCases } from '../test_config' import { calculateExpected, ExpectedResults } from '../scripts/helpers' import { getBlockTime...
import * as React from 'react'; import { fetchHasuraPresentSiteProvider, fetchPresentSiteProvider } from 'services/site/actions'; //import PresentSiteProvider from 'containers/PresentSiteProvider'; import { useContext, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { BeatLoad...
<reponame>bingo347/ws-api export type ProceduresBase = Record<string, [unknown, unknown]>; export type ChannelsBase = Record<string, unknown>; export const CLIENT_CALL = 1; export const CLIENT_UPLOAD = 2; export const CLIENT_SUBSCRIBE = 3; export const CLIENT_UNSUBSCRIBE = 4; export const SERVER_RESO...
<reponame>krivchun/fluence /* * Copyright 2018 Fluence Labs Limited * * 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 requ...
import * as React from 'react'; import * as strings from 'TrackMyTime7WebPartStrings'; import { Link, ILinkProps } from 'office-ui-fabric-react'; import * as links from './AllLinks'; import { CompoundButton, Stack, IStackTokens, elementContains } from 'office-ui-fabric-react'; import { IChoiceGroupOption } from 'of...
/* * Copyright 2022 Red Hat, Inc. and/or its affiliates. * * 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 ...
import { Component, OnInit } from '@angular/core'; import { ActionSequenceTemplateInterface } from '@shared/interfaces/actionsequencetemplate.interface'; import { NodeInterface } from '@shared/interfaces/node.interface'; import { ActivatedRoute, Router } from '@angular/router'; import { NodeService } from '@shared/serv...
<reponame>Asterismm54/CrowdiD2<gh_stars>1-10 import {BehaviorSubject} from "rxjs/BehaviorSubject"; import {Observable} from "rxjs/Observable"; import {Subject} from "rxjs/Subject"; import "rxjs/add/operator/distinctUntilChanged"; import "rxjs/add/operator/do"; import "rxjs/add/operator/filter"; import "rxjs/add/operat...
import * as fs from 'fs'; import * as polyfillLibrary from "polyfill-library"; import * as sources from "polyfill-library/lib/sources.js"; import * as path from "path"; const coreWebDir = path.resolve(__dirname, "../../core-web"); const modulesDir = path.resolve(__dirname, "../../core-web/modules"); const helpersDir =...
import nonNull from 'lodash/identity' import inquirer from 'inquirer' import Listr from 'listr' import yn from 'yn' import AWS from 'aws-sdk' import { Conf, AWSClients, SetKYCServicesOpts, KYCServiceName, } from './types' import * as utils from './utils' import { Errors as CustomErrors } from './errors' import...
<gh_stars>100-1000 import { store } from "./app/store"; import { setImagesLoadedAction } from "./app/appState"; import toadImg from "./img/editor/toad.png"; import mstarImg from "./img/editor/mstar.png"; import bowserImg from "./img/editor/bowser.png"; import koopaImg from "./img/editor/koopa.png"; import booImg from ...
import { usCodes, canadaCodes, countryCodes } from './area_codes'; //Build Local Info object export function getLocalInfo(text, options?, callback?) { if (!text) { return; } var localInfo = new Object(); var text = cleanText(text.toString()); var text = standardizeCountry(text); localInfo['text'] = te...
import { loadCultureFiles } from '../common/culture-loader'; /** * Drawing tools sample */ import { Diagram, NodeModel, SnapSettingsModel, SnapConstraints, DiagramTools, UndoRedo, GridlinesModel, Snapping, ConnectorModel } from '@syncfusion/ej2-diagrams'; import { CheckBox, ChangeEventArgs } from '@syncfusio...
import * as React from 'react'; import SvgPause from '../SvgPause'; import SvgPlay from '../SvgPlay'; import './main.scss'; // @TODO move into their own file const RADIUS = 35; const TIMER_REMAINING_ID='base-timer-path-remaining'; const WARNING_THRESHOLD = 0.5; const SECS_PER_MIN = 60; type CustomTuple = [boolean, n...
<filename>src/_common/video/player/controller.ts import { reactive, ref } from '@vue/runtime-core'; import { computed, Ref } from 'vue'; import { assertNever } from '../../../utils/utils'; import { Analytics } from '../../analytics/analytics.service'; import { SettingVideoPlayerFeedAutoplay, SettingVideoPlayerFeedMut...
<filename>src/client/core/aad/adal/aad.service.spec.ts import { AccessToken, InMemoryDataStore } from "@batch-flask/core"; import { AzureChina, AzurePublic } from "client/azure-environment"; import { Constants } from "common"; import { DateTime } from "luxon"; import * as proxyquire from "proxyquire"; import { MockBrow...
import * as React from 'react'; import classNames from 'classnames'; import { Dispatch, Action } from 'redux'; import { connect } from 'react-redux'; import { push } from 'connected-react-router'; import { renderRoutes } from 'react-router-config'; import { Link } from 'react-router-dom'; import { withStyles, Theme, cr...
<gh_stars>0 import { Suit, Hand, parseCard, parseCards, countFaces, countSuits, countRads, loriMap, detectHand } from "../src/PokerKata"; const chai = require("chai"); const expect = chai.expect; describe("Parsing strings", () => { // it("can determine which poker hand is given", () => { // let result = parseH...
import React from 'react'; import Grid from '@mui/material/Grid'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; import Checkbox from '@mui/material/Checkbox'; impo...
/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ /** * Elements and their special properties that should be reflected to attributes * when set. * * Each item in the array takes the following format: * * Item 0: * Array of [property name, reflected attribute name] * ...
<gh_stars>0 import { Component, ViewChild, OnInit } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { R...
<filename>src/MatBlazor.Web/src/matFileUpload/matFileUpload.ts import * as matRipple from '../matRipple/matRipple'; import '../utils/base'; import {getMatBlazorInstance, MatBlazorComponent} from "../utils/base"; export interface IMatFileUploadEntry { info: IMatFileUploadEntryInfo; file: any; arrayBufferPr...