text
stringlengths
3.3k
33k
<gh_stars>1-10 /** * ApplyFormat.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ import Bookmarks from '../dom/Bookmarks'; import NodeType from '../dom/NodeType'; imp...
import { OneOrMore, UnknownProps, Lookup, Falsy } from '@react-spring/types' import { is, raf, each, noop, flush, toArray, eachProp, flushCalls, } from '@react-spring/shared' import { getDefaultProp } from './helpers' import { FrameValue } from './FrameValue' import { SpringRef } from './SpringRef' imp...
// Copyright 2015-2021 Swim 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 ...
import { off } from 'process'; import { commands, CompletionList, ExtensionContext, Hover, languages, Position, Range, Selection, SnippetString, TextDocument, TextEditor, TextEditorEdit, Uri, workspace } from 'vscode'; function last<T>(xs: Iterable<T>): T | undefined { let res: T | undefined; for (let x of xs) { r...
<gh_stars>10-100 // Copyright 2018 ilcato // // 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...
'use strict' import { v4 as uuid } from 'uuid' import { CancellationToken, MarkupContent, Disposable, Emitter, Event } from 'vscode-languageserver-protocol' import commandsManager from '../commands' import { ProviderResult } from '../provider' import { disposeAll } from '../util' import { TreeDataProvider, TreeItemActi...
<reponame>ami2209/nehan<filename>src/css-parser.ts import { Config, CssStyleDeclaration, CssRule, CssProp, CssText, CssMacro, CssMacroValue, PropValue, SelectorText, SelectorParser, DynamicStyle, DynamicStyleCallback, DomCallback, DomCallbackValue, Font, ListStyle, LogicalMargin, Log...
import { Component, EventEmitter, Input, Output, SimpleChanges, ViewChild } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; /** * The <samAlert> component keeps users informed of important and sometimes time-sensitive changes */ @Component({ selector: 'samAlert', templateUrl: './a...
import { createSelector } from 'reselect'; import { ReplaySubject } from 'rxjs/ReplaySubject'; import { Observable } from 'rxjs/Observable'; import { ActionReducer } from '@ngrx/store'; import '@ngrx/core/add/operator/select'; // import { compose } from '@ngrx/core/compose'; export { compose } from '@ngrx/core/compose'...
import BN from 'bn.js'; import { get, differenceBy } from 'lodash'; import store from 'app/store'; import config from 'config'; import { ISession, ITransaction, ISubReddit } from 'interfaces'; import * as omgService from 'app/services/omgService'; import * as transportService from 'app/services/transportService'; im...
<filename>wizdm/src/app/pages/admin/profile-fixer/profile-fixer.component.ts<gh_stars>100-1000 import { Observable, Subject, forkJoin, of, from, defer, concat, empty } from 'rxjs'; import { DatabaseService } from '@wizdm/connect/database'; import { DatabaseBatch } from '@wizdm/connect/database/document'; import { Stora...
<reponame>pmndrs/react-ogl<gh_stars>10-100 import * as React from 'react' import * as OGL from 'ogl' import { RESERVED_PROPS, INSTANCE_PROPS, POINTER_EVENTS } from './constants' import { useIsomorphicLayoutEffect } from './hooks' import { DPR, EventHandlers, Instance, Interactive, RootState } from './types' /** * Con...
import {Component, ElementRef, OnInit, ViewChild} from '@angular/core'; import {MatDialog, MatPaginator, MatSort} from '@angular/material'; import {Observable} from 'rxjs/Observable'; import {BehaviorSubject} from 'rxjs/BehaviorSubject'; import {DataSource} from '@angular/cdk/collections'; import 'rxjs/add/observable...
/** * Tencent is pleased to support the open source community by making CloudBaseFramework - 云原生一体化部署工具 available. * * Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. * * Please refer to license text included with this package for license details. */ import path from 'path'; import fs...
// Copyright 2017 Quip import quip from "quip-apps-api"; import addDays from "date-fns/addDays"; import differenceInDays from "date-fns/differenceInDays"; import format from "date-fns/format"; import getDay from "date-fns/getDay"; import getDaysInMonth from "date-fns/getDaysInMonth"; import isAfter from "date-fns/isAft...
<gh_stars>0 /** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Arr, Option } from '@ephox/katamari'; import { T...
import { AppBar, Divider, Grid, Tab, Tabs, Theme } from '@material-ui/core'; import Badge from '@material-ui/core/Badge'; import CssBaseline from '@material-ui/core/CssBaseline'; import IconButton from '@material-ui/core/IconButton'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/Men...
<gh_stars>1-10 /* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * -------------------------------------------------...
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "./dispatch_json.ts"; import { File, close } from "./files.ts"; import { ReadCloser, WriteCloser } from "./io.ts"; import { readAll } from "./buffer.ts"; import { assert, unreachable } from "./util.ts"; import...
export interface SettingsAppStartupOptions { /** * The maximum number of milliseconds * to wait until the app has started * @default 5000 */ timeout?: number; } export interface Location { longitude: number | string; latitude: number | string; altitude?: number | string; } expo...
import {List, Map} from 'immutable' import uuid = require('uuid') import {IDisposable} from '../../common/common-types' import {logger} from '../../common/logger' import {emptyMidiNotes, IMidiNotes} from '../../common/MidiNote' import {Arp} from './arp' export interface IAudioNodeWrapperOptions { audioContext: AudioC...
<filename>src/shared/utils.ts<gh_stars>100-1000 import { relative, join } from "path"; import Serverless from "serverless"; import { ServerlessAzureConfig, ServerlessAzureFunctionConfig } from "../models/serverless"; import { BindingUtils } from "./bindings"; import { constants } from "./constants"; import { createInte...
import { useMutation } from '@apollo/client'; import { IconButton, Menu, MenuItem, Typography } from '@material-ui/core'; import MoreVertIcon from '@material-ui/icons/MoreVert'; import { ButtonFilled, Modal, TextButton } from 'litmus-ui'; import moment from 'moment'; import React, { useEffect } from 'react'; import { u...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------...
import { VRMLookAt } from "./lookat" import { VRMBlendShapeUtil } from "./blendshape" import { FirstPersonMeshUtil } from "./firstperson" import { GLTFLoader, GLTF } from "three/examples/jsm/loaders/GLTFLoader" // type only export type PoseData = { bones: any[], blendShape?: any[] } export class VRMLoader { privat...
import {aStar, PathFinder} from "ngraph.path" import createGraph, {Graph} from "ngraph.graph" import systemManager from "@/service/SystemManager" import EVEJumpBridge, {EVE_JUMP_BRIDGE_STATUS} from "@/lib/EVEJumpBridge" import events from "@/service/EventBus" import * as log from "electron-log" import {IPATHPOINT} from...
/* Copyright Contributors to the Open Cluster Management project */ import { IResource, ManagedClusterKind, managedClusterSetLabel, patchResource, ResourceErrorCode, } from '../../../../../../resources' import { AcmAlertGroup, AcmButton, AcmEmptyState, AcmForm, AcmPage, AcmP...
<filename>src/index.ts<gh_stars>0 'use strict'; import { App, LogLevel } from '@slack/bolt'; import { createCanvas, Image } from 'canvas'; import moment = require('moment-timezone'); import { WebAPICallResult } from '@slack/web-api'; const app = new App({ token: process.env.SLACK_BOT_TOKEN, signingSecret: proc...
import React, { Dispatch, SetStateAction, useEffect } from 'react' import { FaArrowRight as RightIco, FaChartBar as DemocracyIco, FaClock as ClockIco, FaKeyboard as ControlsIco, FaUsers as TeamIco, } from 'react-icons/fa' import { GiAnarchy as AnarchyIco, GiTopHat as BaronIco } from 'react-icons/gi' import { ...
import { DATE_FORMAT, DEFAULT_CODE_THEME, RANGE_DATE, WEB_CONFIG, } from '@scripts/constant'; import routers from '@scripts/routers'; //import { isObject, isArray, isString } from 'util' import { INoticeNumProps, TColumnType } from '@scripts/types'; import moment, { Moment } from 'moment'; import qs from 'qs'; ...
import { b } from 'code-red'; import Component from '../Component'; import { CompileOptions, CssResult } from '../../interfaces'; import { string_literal } from '../utils/stringify'; import Renderer from './Renderer'; import { INode as TemplateNode } from '../nodes/interfaces'; // TODO import Text from '../nodes/Text';...
<reponame>bjia56/scrypted<filename>plugins/homekit/src/types/camera/camera-recording.ts import { getDebugModeH264EncoderArgs } from "@scrypted/common/src/ffmpeg-hardware-acceleration"; import { FFmpegFragmentedMP4Session, parseFragmentedMP4, startFFMPegFragmentedMP4Session } from '@scrypted/common/src/ffmpeg-mp4-parse...
<gh_stars>1-10 /* eslint-disable @typescript-eslint/no-unused-vars */ import { test } from 'vitest'; import { Filter } from './filters'; import { XataRecord } from './record'; type Record = XataRecord & { name: string; string: string; number: number; boolean: boolean; test: string; labels?: string[]; age...
import type { Account, Asset, Chain, CustomNetwork, EIP1193Provider, ScanAccountsOptions, TransactionObject, WalletInit } from '@web3-onboard/common' // cannot be dynamically imported import { Buffer } from 'buffer' import type { StaticJsonRpcProvider } from '@ethersproject/providers' import type { ...
<filename>packages/apps/rewards/src/invite/inviteReward.service.ts import { isAccountConsideredVerified } from '@celo/base/lib' import { EventLog } from '@celo/connect' import { CeloContract, ContractKit } from '@celo/contractkit' import { AnalyticsService } from '@komenci/analytics' import { networkConfig, NetworkConf...
<filename>test/test.ts<gh_stars>10-100 import test from 'ava'; import { Observable, of, interval, throwError } from 'rxjs'; import { bufferTime, take, toArray } from 'rxjs/operators'; import { ProxyPropertyType } from '../src/common'; import { IpcProxyError } from '../src/utils'; import { registerProxy } from '../src/s...
<reponame>atom-haskell/haskell-ghc-mod<filename>src/ghc-mod/ghc-modi-process-real.ts import { Directory, Emitter, CompositeDisposable } from 'atom' import { InteractiveProcess, GHCModCaps } from './interactive-process' import * as Util from '../util' const { debug, withTempFile, EOT } = Util import { EOL } from 'os' im...
import { LanguageKeys } from '#lib/i18n/languageKeys'; import { minutes } from '#utils/common'; import { isGuildBasedChannel, isMessageButtonInteraction, isMessageInstance, PaginatedMessagePage, runsOnInteraction, type PaginatedMessageAction, type PaginatedMessageOptions } from '@sapphire/discord.js-utilities'; ...
<filename>src/components/alert/alert-component.ts import { Component, ElementRef, HostListener, Renderer, ViewEncapsulation } from '@angular/core'; import { Config } from '../../config/config'; import { NON_TEXT_INPUT_REGEX } from '../../util/dom'; import { BLOCK_ALL, BlockerDelegate, GestureController } from '../../g...
import {DataLoader, Tab, Tabs} from 'argo-ui'; import {useData} from 'argo-ui/v2'; import * as React from 'react'; import {EventsList, YamlEditor} from '../../../shared/components'; import {Context} from '../../../shared/context'; import {Application, ApplicationTree, AppSourceType, Event, RepoAppDetails, ResourceNode,...
import { Codec, Static, create, RuntypeBase, InnerValidateHelper, innerValidate, createVisitedState, OpaqueVisitedState, assertRuntype, } from '../runtype'; import show, { parenthesize } from '../show'; import { LiteralValue, isLiteralRuntype } from './literal'; import { lazyValue, isLazyRuntype } fro...
/* eslint-disable jsx-a11y/label-has-associated-control */ /* eslint-disable no-shadow */ /* eslint-disable react/no-array-index-key */ /* eslint-disable no-bitwise */ import React, { useCallback, useEffect, useMemo, useRef, useState, } from 'react'; import Switch from 'react-switch'; import { josa } from 'jo...
<filename>generator/generateTokenTypes.ts const isAssign = true; const prefix = true; const postfix = true; interface TokenOptions { keyword?: string; rightAssociative?: boolean; isAssign?: boolean; prefix?: boolean; postfix?: boolean; binop?: number; } class TokenType { label: string; keyword?: strin...
import {useState, useEffect} from 'react' import isBefore from 'date-fns/isBefore' import isAfter from 'date-fns/isAfter' import addDays from 'date-fns/addDays' import isWithinRange from 'date-fns/isWithinInterval' import isSameDay from 'date-fns/isSameDay' import isSameMonth from 'date-fns/isSameDay' import { getIni...
import path from 'path' import {runInThisContext} from 'vm' import Module from 'module' import {promises as fs, existsSync, readFileSync} from 'fs' import * as types from '@babel/types' // @ts-ignore import {createCompiler} from '@mdx-js/mdx' // @ts-ignore import instTemplate from '@inst-cli/template' import generate f...
import React, { EventHandler, ReactElement, RefObject } from 'react' import {Component} from 'react' import Spreadsheet, {Matrix, CellBase} from 'react-spreadsheet' import normalize_isbn from '../../src/normalize_isbn.js' import XLSX from 'xlsx' import { saveAs } from 'file-saver' // import Suggest from '../Sugge...
<filename>libs/downloadable-script/src/lib/downloadable-script.ts import { ScriptCommandListResponse, AuthenticationToken, ScriptCommand, } from '@frontend/meeshkan-types'; interface ScriptTargetSelector { xpath: string; selector?: string; className?: string; tagName: string; tagId?: string; innerText?: strin...
import {Actions, createEffect} from "@ngrx/effects"; import {EMPTY, forkJoin, from, merge, of} from "rxjs"; import {Injectable, NgZone} from "@angular/core"; import {Store, select} from "@ngrx/store"; import {catchError, concatMap, filter, finalize, map, mergeMap, switchMap, takeUntil, tap} from "rxjs/operators"; impo...
import React from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { Permission, User } from '../../hooks/useUser'; import PermissionOption, { PermissionItem } from '../PermissionOption'; export const messages = defineMessages({ admin: 'Admin', adminDescription: 'Full administrator access....
import moment from 'moment' import { uniq } from 'lodash' import React, { Component } from 'react' import withStyles, { WithStyles } from 'react-jss' import classnames from 'classnames' import { Bar, BarChart, CartesianGrid, Cell, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts' import { P } from '../../../...
<gh_stars>1-10 /* eslint-disable @typescript-eslint/naming-convention */ import { AminoSignResponse, Secp256k1HdWallet, Secp256k1HdWalletOptions, StdSignDoc } from "@cosmjs/amino"; import { Bip39, EnglishMnemonic, Random } from "@cosmjs/crypto"; import { Bech32, fromBase64 } from "@cosmjs/encoding"; import { DirectSe...
<reponame>aehasan/ace-tracer<filename>lib/src/ace/Streamer.ts import { Ace } from "ace-builds" import { throttle } from "throttle-debounce" import { Complete } from ".." import { AceRecord, CursorChange, Delta, EditorLocation, ScrollChange, ScrollPosition, Selection, SelectionChange, WindowSize, Win...
import { EventEmitter as _EventEmitter } from "events"; import Discord from "discord.js"; declare namespace discordActivity { export type State = 'MOUNTED' | 'UNMOUNTED' export interface ActivityClientProps { // if this option is enabled all new messages that have not been posted by the bot will be d...
import * as React from 'react'; import { DropTarget, DragSource } from 'react-dnd'; import { observer } from 'mobx-react'; import { autobind } from 'office-ui-fabric-react/lib'; import { sortBy, find } from 'lodash'; import { Folder, File, FolderViewTypes } from './index'; import { FileNode } from './FileNode'; const ...
import { useRoute } from '@react-navigation/native'; import React, { useCallback, useEffect, useRef, useState } from 'react'; import { Animated, Easing, FlatList, View } from 'react-native'; import { TouchableNativeFeedback } from 'react-native-gesture-handler'; import IconEntypo from 'react-native-vector-icons/Entypo...
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import {InferenceSession, Tensor} from 'onnxruntime-common'; import {SerializableSessionMetadata, SerializableTensor} from './proxy-messages'; import {setRunOptions} from './run-options'; import {setSessionOp...
import React, { FunctionComponent } from 'react' import { k8sPrefix } from 'app/constants' import { makeStyles } from '@material-ui/styles' import { Theme } from '@material-ui/core' import FormWrapper from 'core/components/FormWrapper' import { pathJoin } from 'utils/misc' import useReactRouter from 'use-react-router' ...
<reponame>r-o-b-o-t-o/azerothcore-armory import { Pool, RowDataPacket } from "mysql2/promise"; import { Query } from "express-serve-static-core"; export interface IResult { recordsTotal: number; recordsFiltered: number; draw: number; data: unknown[][]; } export interface IColumnSettings { name: string; collatio...
import { filter } from "lodash"; // import { sentenceCase } from "change-case"; import { useState, useEffect } from "react"; // material import { Card, Table, Stack, Avatar, Checkbox, TableRow, TableBody, TableCell, Container, Typography, TableContainer, TablePagination, } from "@mui/material";...
import './helpers' import { Game } from './game' import { UnitType, waterUnits, Unit, carryUnits, getUnitName } from './unit' import { SquareFlags } from './map' import { render, CANVAS_SIZE } from './renderer/canvas' import { Player } from './player' window.game = new Game(18) window.state = { x: 0, y: 0 } // Build ...
<filename>tools/src/commands/MergeChangelogs.ts import { Command } from '@expo/commander'; import JsonFile from '@expo/json-file'; import chalk from 'chalk'; import inquirer from 'inquirer'; import nullthrows from 'nullthrows'; import path from 'path'; import semver from 'semver'; import { Changelog, ChangelogChan...
<filename>source/ClientApp/projects/jde-tws/src/lib/pages/orders/orders.ts<gh_stars>1-10 import { Component, AfterViewInit, OnInit, OnDestroy, Inject } from '@angular/core'; import { FormControl } from '@angular/forms'; import {Sort} from '@angular/material/sort'; import {IErrorService} from 'jde-framework' import ...
import React, { useState, ReactElement } from 'react'; import { Alert, AlertGroup, AlertVariant, Button, ButtonVariant, DropdownItem, Divider, PageSection, PageSectionVariants, Pagination, Toolbar, ToolbarContent, ToolbarItem, } from '@patternfly/react-core'; import {...
import { Position } from './Position'; import { Creature } from './Creature'; import { Item } from './item'; import { OTBMLoader } from './OTBMLoader'; export const MAP_MAX_LAYERS = 16; export class Town { private id: number; private name: string; private templePosition: Position; constructor(townID: number, to...
<reponame>gridsol/beepbox // Copyright (c) 2012-2022 <NAME> and contributing authors, distributed under the MIT license, see accompanying the LICENSE.md file. import {Config} from "../synth/SynthConfig"; import {EditorConfig} from "./EditorConfig"; import {SongDocument} from "./SongDocument"; import {Prompt} from "./P...
import fs from "fs"; import path from "path"; import util from "util"; import { readDefaultCodeTranslationMessages } from "@docusaurus/utils"; import { LoadContext, Plugin } from "@docusaurus/types"; import lunr from "lunr"; const readFileAsync = util.promisify(fs.readFile); const writeFileAsync = util.promisify(fs.wr...
<filename>src/draw.ts import type { IDrawBarData, IDrawBarOptions, IDrawData, IDrawLevelOptions, IDrawLineOptions, IParams, IPoint, } from './types'; import { calcH, formatLabel, getFontStr, getLinePath, getRectPath } from './core'; export function setupCanvas(canvas: HTMLCanvasElement, ratio: number) { ...
import { useMemo } from 'react'; import { useState } from 'react'; import { useEffect } from 'react'; import { FC } from 'react'; import styled from 'styled-components'; import useSWR from 'swr'; import { NULL_SIGNATURE } from '../../constants'; import { useLondonEmbersMinterContract } from '../../hooks/useContracts'; ...
import { BigNumber } from '@0x/utils'; import { MarketOperation } from '../../types'; import { POSITIVE_INF, ZERO_AMOUNT } from './constants'; import { createBridgeOrder, createNativeOptimizedOrder, CreateOrderFromPathOpts, getMakerTakerTokens } from './orders'; import { getCompleteRate, getRate } from './rate_utils'...
/* undefined A fare/price as billed to the user in WMPs or in tokens !!! AUTO GENERATED BY IOTSFJS REFRAIN FROM MANUAL EDITING !!! See https://www.npmjs.com/package/io-ts-from-json-schema */ import * as t from 'io-ts'; import * as Units_ from './units'; import * as Common_ from './common'; import { NonEmptyArray } ...
import { ArrowRightIcon } from "@heroicons/react/outline"; import { BadgeCheckIcon } from "@heroicons/react/solid"; import { GetServerSidePropsContext } from "next"; import dynamic from "next/dynamic"; import Link from "next/link"; import { useRouter } from "next/router"; import React, { useState } from "react"; import...
import { Environment, GatewayPlugin, GatewayService, ServiceAccess, } from '../../keystone/types'; import { Keystone } from '@keystonejs/keystone'; import { ReportOfNamespaces } from './namespaces'; import { lookupDetailedServiceAccessesByNS } from '../../keystone/service-access'; import { EnvironmentContext,...
// Third party import { sheets_v4, google } from 'googleapis'; // Core import { AbstractModel } from './models/AbstractModel'; import { SheetDesigner } from './sheets/SheetDesigner'; // Interfaces import { Config } from './interfaces/Config'; import { ValuableMerge } from './interfaces/ValuableMerge'; import { ParsedRo...
import { D2ManifestDefinitions } from 'app/destiny2/d2-definitions'; import { settingsSelector } from 'app/dim-api/selectors'; import BungieImageAndAmmo from 'app/dim-ui/BungieImageAndAmmo'; import GlobalHotkeys from 'app/hotkeys/GlobalHotkeys'; import { t } from 'app/i18next-t'; import { InventoryBucket, InventoryBuck...
<reponame>tboneteen18/Layers-N-Lashes<filename>node_modules/preboot/src/server/event.recorder.ts import { EventSelector, PrebootRecordOptions, PrebootAppData, PrebootData, Element, DomEvent, Window, Document, Selection, ServerClientRoot, getNodeKeyForPreboot } from '../common'; /** * Called righ...
<filename>software/src/shell/projectResources/ProjectResourceProviderImpl_Local.ts import { getSystemParameterDefinitionBySystemParameterKey, ICustromParameterSpec, IFirmwareTargetDevice, IPersistKeyboardDesign, IProfileData, IProjectCustomDefinition, IProjectResourceInfo, IResourceOrigin, } from '~/sha...
/* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a copy of the Lic...
/* eslint-disable max-lines */ import {deepChange, deepFind, i18next, isEmpty} from "@essence-community/constructor-share/utils"; import { VAR_RECORD_ID, VAR_RECORD_PARENT_ID, VAR_RECORD_MASTER_ID, VAR_RECORD_PAGE_OBJECT_ID, VAR_RECORD_DISPLAYED, VAR_RECORD_JN_TOTAL_CNT, VALUE_SELF_FIRST, ...
<reponame>good-idea/use-shopify<gh_stars>1-10 import * as React from 'react' import { DocumentNode } from 'graphql' import { UserError, QueryFunction, Checkout, CheckoutLineItemInput, CheckoutLineItemUpdateInput, } from '../types' import { defaultQueries, CheckoutCreateInput, CheckoutCreateResponse, C...
// https://github.com/mohsen1/swagger.d.ts import { MutableStringMap } from "@azure-tools/openapi-tools-common"; import { LiveValidatorLoggingLevels, LiveValidatorLoggingTypes, } from "../liveValidation/liveValidator"; import { ValidationRequest } from "../liveValidation/operationValidator"; import { SchemaValidat...
import { FC, useState } from 'react'; import styled, { css } from 'styled-components'; import { useTranslation } from 'react-i18next'; import { useRecoilValue } from 'recoil'; import { Svg } from 'react-optimized-image'; import OutsideClickHandler from 'react-outside-click-handler'; import { FlexDiv, FlexDivCentered...
import React from "react"; import { connect } from "react-redux"; import { Button, Icon } from "@blueprintjs/core"; import Truncate from "../util/truncate"; import HistogramBrush from "../brushableHistogram"; import actions from "../../actions"; const MINI_HISTOGRAM_WIDTH = 110; // eslint-disable-next-line @typescr...
<reponame>Palats/webgpu // A minimal effect which works on a buffer and make it evolve over time. /// <reference types="@webgpu/types" /> import * as demotypes from '../demotypes'; import * as wg from '../../src'; const uniformsDesc = new wg.StructType({ elapsedMs: { type: wg.F32, idx: 0 }, }) const computeTexF...
import { iterableEnumerate } from "collection-utils"; import { TypeGraph } from "./TypeGraph"; import { Name, Namespace, assignNames } from "./Naming"; import { Source, Sourcelike, NewlineSource, annotated, sourcelikeToSource, newline } from "./Source"; import { AnnotationData, IssueAnnotationData } from "./Annotation...
<reponame>jnv/DefinitelyTyped-tools import assert = require("assert"); import * as path from "path"; import * as ts from "typescript"; import { sort, joinPaths, FS, normalizeSlashes, hasWindowsSlashes } from "@definitelytyped/utils"; import { readFileAndThrowOnBOM } from "./definition-parser"; import { getMangledNameF...
import { Set } from 'immutable' import { curryN } from 'ramda' import Promise from 'bluebird' type VersionInfo = { major: number, minor: number, patch: number, full: string, tag: string, is19: boolean, isAtleast20: boolean } export const getVersionInfo = (System: SystemJSLoader.System):...
<reponame>eichinflo/lit /** * @license * Copyright 2020 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 requ...
import React, { useRef, useState } from 'react'; import _ from 'lodash'; import clsx from 'clsx'; import { useQuery } from '@apollo/client'; import DateFnsUtils from '@date-io/date-fns'; import zhCN from 'date-fns/locale/zh-CN'; import { DataGrid, GridColDef, GridRowId, GridValueGetterParams, } from '@materia...
<reponame>Stremblay2/search-ui /// <reference path='../Facet/Facet.ts' /> import { IFacetOptions, Facet } from '../Facet/Facet'; import { IRangeValue } from '../../rest/RangeValue'; import { ComponentOptions } from '../Base/ComponentOptions'; import { IComponentBindings } from '../Base/ComponentBindings'; import { Uti...
import React, { useCallback, useState, useMemo, useRef, useEffect } from 'react'; import AddFileIcon from '@components/icons/addfile'; import AddFolderIcon from '@components/icons/addfolder'; import Icon from '@components/icons'; import Arrow from '@components/icons/arrow'; import DeleteIcon from '@...
import Button, { BtnSizes, BtnTypes } from '@celo/react-components/components/Button.v2' import ItemSeparator from '@celo/react-components/components/ItemSeparator' import SectionHead from '@celo/react-components/components/SectionHeadGold' import Touchable from '@celo/react-components/components/Touchable' import colo...
<gh_stars>1-10 import { strict as assert } from 'assert'; import Axios from 'axios'; import crypto from 'crypto'; import { Market } from 'crypto-markets'; import qs from 'qs'; import { v1 as uuidv1 } from 'uuid'; import { USER_CONFIG } from '../config'; import { DepositAddress, WithdrawalFee } from '../pojo'; import { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { vec3, quat, mat4 } from 'gl-matrix'; import { VEC3_UNIT_X, VEC3_UNIT_Y, VEC3_UNIT_Z } from '../common/gl-matrix-addon'; import Scene from './scene'; import { Node } from './node'; import ModelInstance from './modelinstance'; const locationHeap = vec3.create(); const rotationHeap = quat.create(); const scaling...
<gh_stars>0 import { finances } from ".."; import { PHASE, PLAYER } from "../../../common"; import type { MoodComponents, Player } from "../../../common/types"; import { idb } from "../../db"; import { g, helpers, local } from "../../util"; const getMinFractionDiff = async (pid: number, tid: number) => { if (process....
import { ChangeDetectorRef, Directive, Input, OnDestroy, OnInit, Renderer2 } from '@angular/core'; import { AgRendererComponent } from 'ag-grid-angular'; import { AbstractComboBox } from '../abstract-combobox.component'; import { Observable } from 'rxjs'; import { PreferencesService } from 'systelab-preferences'; decl...
<filename>src/timepalyer.ts import Control from './control'; interface TimeplyerOptions { width?: number, height?: number, theme?: 'dark', colors: { [key: string]: string }, dates: string[], } enum Events { change = 'change' } const Config = { minHeight: 40, minWidth: 100, padding...
import React, { useEffect } from 'react' import AOS from 'aos' import Head from 'next/head' import Image from 'next/image' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // import the icons you need import { faStar as faStarEmpty } from '@fortawesome/free-regular-svg-icons' import { faStar as faStarFu...
/** * A ContentStream represents [[Content]] which needs to be validated. * * @packageDocumentation * @module ContentStream */ import type { IContentStream, CompressedContentStream, Hash, IContent, ICredential, } from '@cord.network/types' import { Crypto, SDKErrors } from '@cord.network/utils' import *...
import { apiServiceSingleton } from '@/backend/api'; import { electronHelperServiceSingleton } from '@/lib/electron-helper-service'; import { Direction, ImageViewerTab, storeSingleton, transientStoreSingleton } from '@/store'; import { Label, Rotation } from '@/store/schema'; import { computed, defineComponent, onBefor...