text
stringlengths
3.08k
15.5k
<reponame>heysailor/redux-worker-queue import WorkerQueue from './WorkerQueue'; import { Queue } from './queue'; import { addOrUpdateItem } from './queue/duck'; import { HandlerPromiseResponse } from './types'; import 'jest'; import { nextTick } from './util'; const initialWorkerCount = 2; const handler = (item: Queue...
import {gql, useLazyQuery} from '@apollo/client'; import {Button, ButtonGroup, Colors, Icon} from '@blueprintjs/core'; import React from 'react'; import {Link} from 'react-router-dom'; import styled from 'styled-components/macro'; import {tabForPipelinePathComponent} from 'src/nav/PipelineNav'; import {ContentListSoli...
/** * NuxtOptionsBuild * Documentation: https://nuxtjs.org/api/configuration-build */ import { TransformOptions, PluginItem } from '@babel/core' import { Options as AutoprefixerOptions } from 'autoprefixer' import { Options as FileLoaderOptions } from 'file-loader' import { Options as HtmlMinifierOptions } from 'ht...
import { CommanderStatic } from "commander"; import { log } from "console"; import * as fs from "fs"; import * as uuid from "uuid"; import { retry } from "../.."; import { MindSphereSdk, TenantManagementModels } from "../../api/sdk"; import { adjustColor, errorLog, getColor, getSdk, homeDirLog, ...
<reponame>timocov/tslint /** * @license * Copyright 2017 Palantir Technologies, 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...
// ---------------------------------------------------------------------------- // (c) 2021 - <NAME> // // This source code is licensed under the BSD 3-Clause License found in the // LICENSE file in the root directory of this source tree. // ---------------------------------------------------------------------------- i...
<reponame>novacbn/svelte-in-motion import {Check, Clock, Film, Video} from "lucide-svelte"; import type {Readable} from "svelte/store"; import type {ICollectionItem, IEvent} from "@svelte-in-motion/utilities"; import {collection, event, generate_uuid} from "@svelte-in-motion/utilities"; import type {IEncodeQueueOptio...
import * as React from 'react' import * as cx from 'classnames' import { Session } from '../../types' import { Icon } from 'graphcool-styles' import withTheme from '../Theme/withTheme' import Tab from './Tab' export interface Props { sessions: Session[] selectedSessionIndex: number onNewSession: any onCloseSes...
import "reflect-metadata"; const Gauge = require("gauge"); import { OpenAPIV3 } from "openapi-types"; import { IController, isRouteHandler } from "../../src"; import { BODY_DTO, CONTROLLER, DATA_CLASS, QUERY_DTO, RAW_ROUTE, ROUTE } from "../../src/definitions"; import { reflectClassMethods } from "../../src/...
<reponame>garbles/concave import { Connection } from "./connection"; import { keyPathToString } from "./key-path-to-string"; import { LensFocus, refineLensFocus } from "./lens-focus"; import { ProxyValue } from "./proxy-value"; import { createUseLens } from "./react"; import { ReactDevtools } from "./react-devtools"; i...
/** * @license * Copyright Google Inc. 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://bangular.io/license */ import {Component, Injectable, NgModule} from '@bangular/core'; import {FormsModule} from '@bangular/forms'; import...
import * as sha256 from "js-sha256"; import * as bigInt from "big-integer"; export class Utils { static throwError(message: any) { console.error('Something went wrong!' + message); //FIXME } static getCurrentTime() { return Math.floor(new Date().getTime()) / 1000; } static getTime...
import { LocationQuery, LocationQueryRaw } from '../utils/query' import { PathParserOptions } from '../matcher/path-parser-ranker' import { markNonReactive } from 'vue' import { RouteRecordNormalized } from '../matcher/types' // type Component = ComponentOptions<Vue> | typeof Vue | AsyncComponent export type Lazy<T> ...
import { Main } from "./ui/Main"; import { Breadcrumbs } from "./ui/Breadcrumbs"; import { HeaderSection } from "./ui/HeaderSection"; import { PageHeader } from "./ui/PageHeader"; import { Link } from "react-router-dom"; import { useGetCustomersSubscription } from "../utils/__generated__/graphql"; import { ChevronLeftI...
<reponame>alberthier/lichobile import * as h from 'mithril/hyperscript' import * as utils from '../utils' import redraw from '../utils/redraw' import * as sleepUtils from '../utils/sleep' import session from '../session' import settings from '../settings' import spinner from '../spinner' import router from '../router' ...
import React from 'react' import * as ReactDOM from 'react-dom' import { bringForward, bringToFront, copyElements, cutElements, duplicateElement, group, lineSeparator, rename, sendBackward, sendToBack, toggleVisibility, unwrap, wrapInView, wrapInPicker, toggleBackgroundLayersItem, toggle...
/* Copyright (c) 2020 <NAME> Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license to use Cocos Cre...
<filename>constants/menuLinks.ts type SegmentData = { action: string } /** * Represent a navigation link for the menus of the site */ interface NavLink { /** The visible name of the link */ label: string /** Where we want to go */ url: string /** Includes an object with the information of the action. Exa...
import {CommandContext, Configuration, Project, StreamReport, MessageName} from '@berry/core'; import {httpUtils} from '@berry/core'; import {xfs, PortablePath, ppath} ...
<reponame>livisun/soybean-admin import { nextTick } from 'vue'; import type { RouteLocationNormalizedLoaded } from 'vue-router'; import type { ScrollbarInst } from 'naive-ui'; import { defineStore } from 'pinia'; import { router, ROUTE_HOME } from '@/router'; import { store, useThemeStore } from '@/store'; import { get...
/** * @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 {AriaDescriber} from '@angular/cdk/a11y'; import {coerceBooleanProperty} from '@angular/cdk/coercion'; import ...
import { useConditionalConfirm } from '@opentrons/components' import * as React from 'react' import { connect } from 'react-redux' import { actions } from '../../steplist' import { actions as stepsActions } from '../../ui/steps' import { resetScrollElements } from '../../ui/steps/utils' import { selectors as stepFormSe...
import React from 'react' import { Text } from 'colay-ui' import * as R from 'colay/ramda' import { useImmer } from 'colay-ui/hooks/useImmer' import createPersistor, { PersistorOptions } from 'colay-ui/utils/createPersistor' import { useUpdate } from 'colay-ui/hooks/useUpdate' import { BehaviorSubject } from './Behavio...
import { TextLayout, LayoutOptions, LayoutGlyph } from '../layout-bmfont-text-modified'; import * as THREE from 'three'; import * as vertices from './lib/vertices'; import * as utils from './lib/utils'; export default function createTextGeometry(options: LayoutOptions) { var geo = new SDFTextGeometry(options); retu...
import { DynamicModule, Module, OnModuleInit } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ConfigModule } from '../config/config.module'; import { ConfigService } from '../config/config.service'; import { EventBusModule } from '../event-bus/event-bus.module'; import { AssetUpdater...
import { MerkleHasher } from './merkletree' import { NullifierHash, Nullifier } from './primitives/nullifier' import { StrongholdTransaction, SerializedTransaction, Transaction, TransactionSerde, } from './primitives/transaction' import { StrongholdVerifier, Verifier } from './consensus/verifier' import { Block...
import * as GQL from '../../../../shared/src/graphql/schema' import React, { FunctionComponent, useCallback, useEffect, useState, useMemo } from 'react' import { eventLogger } from '../../tracking/eventLogger' import { FilteredConnection, FilteredConnectionQueryArgs, FilteredConnectionFilter, } from '../../...
<gh_stars>0 import { add } from './add.js'; import { pow2523 } from './pow2523.js'; import { A, M, S, Z } from './amsz.js'; import { crypto_hash } from './hash.js'; import { randombytes } from '../../prng.js'; import { modL } from '../../common/lowlevel/modL.js'; import { scalarbase, scalarmult } from './scalar.js'; im...
<gh_stars>100-1000 import { Labels } from '~/domain/labels'; import { PodSelector } from '~/domain/hubble'; export enum Kind { Label = 'label', Ip = 'ip', Dns = 'dns', Identity = 'identity', TCPFlag = 'tcp-flag', Pod = 'pod', } export enum Direction { From = 'from', To = 'to', Both = 'both', } expo...
import * as fs from 'fs'; import * as path from 'path'; import { Construct, Stack, StackProps, CfnOutput, Fn, Tag } from '@aws-cdk/core'; import { HostedZone, IHostedZone, IPublicHostedZone } from '@aws-cdk/aws-route53'; import { IRepository, Repository } from '@aws-cdk/aws-codecommit'; import { Role, ServicePrincipal,...
<gh_stars>10-100 import { Block as FieldBlock, Blockquote as FieldBlockquote, BlockquoteType, BlockType, Code as FieldCode, CodeType, Heading as FieldHeading, HeadingType, InlineItem as FieldInlineItem, InlineItemType, ItemLink as FieldItemLink, ItemLinkType, Link as FieldLink, LinkType, L...
import { Test } from 'nodeunit'; import { Size, SizeRoundingBehavior, Stack, Token } from '../lib'; export = { 'negative amount'(test: Test) { test.throws(() => Size.kibibytes(-1), /negative/); test.done(); }, 'unresolved amount'(test: Test) { const stack = new Stack(); const lazySize = Size.ki...
/*accelerate v1.0 (Alice) This file is part of accelerate v1.0. MIT License Copyright (c) 2017 <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 limit...
<gh_stars>10-100 import type Cell from './view/cell/datatypes/Cell'; import type CellState from './view/cell/datatypes/CellState'; import EventSource from './view/event/EventSource'; import type InternalMouseEvent from './view/event/InternalMouseEvent'; import type Shape from './view/geometry/shape/Shape'; import type ...
import * as rs from '../../rust/node-types'; import * as ts from '@babel/types'; import set from 'lodash/set'; import { register } from './registry'; import { convertPunctuatedToArray, getMutabilityFromPat, isAnAssignedExpression, wrapByIIFE } from '../../utils'; import { Token } from '../../rust/node-types'; ...
<gh_stars>0 import { Component, OnInit, HostListener} from '@angular/core'; import { CONTEXT } from '@angular/core/src/render3/interfaces/view'; @Component({ selector: 'drawing-game', templateUrl: './drawing.component.html', styleUrls: ['./drawing.component.scss'] }) export class DrawingGame implements OnInit {...
<filename>src/link/batch/batching.ts import { FetchResult, NextLink, Operation } from '../core'; import { Observable, ObservableSubscription } from '../../utilities'; export type BatchHandler = ( operations: Operation[], forward?: (NextLink | undefined)[], ) => Observable<FetchResult[]> | null; export interface B...
<filename>Sources/os4/app/simple/clock-strings.ts import clock from "clock"; import { locale, preferences } from "user-settings"; // Localisation import { gettext } from "i18n"; const months = [ gettext("month01"), gettext("month02"), gettext("month03"), gettext("month04"), gettext("month05"), ...
import { ThreadSystem } from "./thread_system"; export interface ScrewSpecification { minorDiameter: number; } const mmToInch = (mm: number): number => mm * 0.0393701; // It's mildly less performant to calculate these on load instead of save the value in inches in the first place // but it's more maintainable to k...
<reponame>virtualstate/focus import dom from "./dom-document"; import { isDescendantFulfilled, isKeyIn, isLike, name, proxy, } from "@virtualstate/focus"; import { descendantsSettled } from "@virtualstate/focus"; import { ok, isStaticChildNode } from "@virtualstate/focus"; const { document, HTMLElement } = dom...
<filename>src/src/single-spa-angular.ts import { NgZone, NgModuleRef } from '@angular/core'; import { LifeCycles } from 'single-spa'; import { getContainerEl, chooseDomElementGetter, removeApplicationFromDOMIfIvyEnabled, SingleSpaAngularOpts, BootstrappedSingleSpaAngularOpts, } from 'single-spa-angular/intern...
import type { InjectionKey } from 'vue' import type { ComponentSize, ClassType } from '@vexip-ui/config' import type { BITree } from '@vexip-ui/utils' import type { TooltipTheme } from '@/components/tooltip' import type { TableStore } from './store' export type Key = string | number | symbol export type Data = Record<...
<reponame>MichaelSolati/chrome-types /** * Copyright 2021 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 re...
<filename>src/compiler/app-core/build-conditionals.ts import * as d from '../../declarations'; export function getBuildFeatures(cmps: d.ComponentCompilerMeta[]) { const slot = cmps.some(c => c.htmlTagNames.includes('slot')); const f: d.BuildFeatures = { allRenderFn: cmps.every(c => c.hasRenderFn), cmpDidL...
<filename>src/core/graphics/renderer/index.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. /** * See {@link ChartRenderer} for details * * @packageDocumentation * @preferred */ import { getById, MultistringHashMap, Point, transpose, zipArray, } from "....
import { GuildChannel, Message } from 'discord.js' import Client from '../classes/Client' import Query from '../classes/Query' import { Locale } from '../types' import { DefaultEmbed, getYtInfo, hasPermissions } from '../utils' const SECOND = 1000 const NUMBER_EMOJIS = [':one:', ':two:', ':three:', ':four:', ':five:',...
<reponame>jnapier-code/frontend-v2 import { APP_NETWORK_ID } from '@/constants/network'; import { Signer } from '@ethersproject/abstract-signer'; import { BigNumber } from '@ethersproject/bignumber'; import { domain as domainGp, signOrder as signOrderGp, Order, EcdsaSigningScheme, Signature, SigningScheme,...
import { Page as PageDefinition, NavigatedData, ShownModallyData } from "."; import { ContentView, View, Property, CssProperty, Color, isIOS, booleanConverter, Style, EventData, CSSType } from "../content-view"; import { Frame } from "../frame"; import { ActionBar } from "../action-bar"; import { KeyframeAnima...
import * as Redux from 'redux'; import {IActionOptions} from './components/actions/Action'; import {IActionBarState} from './components/actions/ActionBarReducers'; import {IItemFilterState} from './components/actions/filters/ItemFilterReducers'; import {IAutocompleteState} from './components/autocomplete/Autocomp...
// Copyright 2021 The Oppia Authors. All Rights Reserved. // // 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 ap...
<gh_stars>0 "use strict"; import { getAddress } from "@ethersproject-bsc/address"; import { Provider, TransactionRequest } from "@ethersproject-bsc/abstract-provider"; import { ExternallyOwnedAccount, Signer, TypedDataDomain, TypedDataField, TypedDataSigner } from "@ethersproject-bsc/abstract-signer"; import { arrayif...
<reponame>wakumo/bitcore<filename>packages/bitcore-client/src/encryption.ts import { createHash, createCipheriv, createDecipheriv, randomBytes } from 'crypto'; import bitcore from 'bitcore-lib'; const crypto = { createHash, createCipheriv, createDecipheriv, randomBytes }; export function shaHash(data,...
// Copyright 2015 <NAME> <<EMAIL>> // // 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 agree...
import protons from "protons" import EventEmitter from "events" import uint8arrayFromString from "uint8arrays/from-string" import uint8arrayToString from "uint8arrays/to-string" import { TOPIC_VALIDATOR } from "../constants" const { Request, Stats } = protons(` message Request { enum Type { SEND_MATCHER = 0; ...
<filename>packages/reactive/src/reaction.ts import { isFn } from '@formily/shared' import { IOperation, IChange, KeysReactions, Reaction, PropertyKey, } from './types' import { ReactionStack, TargetKeysReactions, ReactionKeysReactions, PendingScopeReactions, PendingReactions, ReactionComputeds, ...
/** * Copyright 2022 Inrupt Inc. * * 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, modify, merge, publish, d...
<reponame>Eskibear/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------...
import { DataGrid, GridColDef, GridOverlay } from '@mui/x-data-grid'; import { Box, styled, useMediaQuery } from '@mui/material'; import PaginationLink from '../paginationLink/PaginationLink'; const StyledGridOverlay = styled(GridOverlay)(({ theme }) => ({ flexDirection: 'column', '& .ant-empty-img-1': { fill:...
import * as React from 'react'; import { Link } from 'react-router-dom'; import * as classNames from 'classnames'; import { sortable } from '@patternfly/react-table'; import { useTranslation } from 'react-i18next'; import { TFunction } from 'i18next'; import { AddHealthChecks, EditHealthChecks } from '@console/app/src...
/** * 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. * * @format */ import fs from 'fs'; import {Atom, DataTableManager, getFlipperLib} from 'flipper-plugin'; import {createContext} fr...
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------...
<reponame>stephenreddek/vscode-elm import * as cp from 'child_process'; import * as fs from 'fs'; import * as path from 'path'; import * as vscode from 'vscode'; import { window, workspace } from 'vscode'; export const isWindows = process.platform === 'win32'; /** Options for execCmd */ export interface ExecCmdOptio...
/* * Copyright © 2019 Feel Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Feel Foundation, * no part of this software, including this file, may be copied, modified, * propagated...
<filename>src/ts-gantt-chart-parts.ts import dayjs from "dayjs"; import { TsGanttConst } from "./ts-gantt-const"; import { createSvgElement } from "./ts-gantt-common"; import { TsGanttTask } from "./ts-gantt-task"; interface TsGanttChartBarGroupOptions { mode: "planned" | "actual" | "both"; showProgress: boolean; ...
<reponame>imnotfancy/crust-smanager import BigNumber from 'bignumber.js'; import { FileRecord, FileStatus } from '../types/database'; import { PullingStrategy } from '../types/smanager-config'; import IpfsHttpClient from 'ipfs-http-client'; import { bytesToMb, formatError } from '../utils'; import { Dayjs } from '../ut...
import { GameObjects, Scene } from 'phaser'; import { Sokoban } from '../game/Sokoban'; import { SokobanItem } from '../game/SokobanItem'; import { Vector2 } from '../../../core/Vector2'; const SIZE: number = 128; const TWEEN_DURATION: number = 100; export class GameScene extends Scene { private sokoban: Sokoban; ...
import path from 'path'; import { SmartBuffer } from 'smart-buffer'; import { EndianReader } from './EndianReader'; import { assert } from '../utils/Assert'; const lz4: { decodeBlock(input: Buffer, output: Buffer, startIdx?: number, endIdx?: number): number; } = require('lz4'); const lzma = require('lzma/src/lzma_wo...
/** * Created by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * on 5/4/2017. */ import { TableConfigBuilder } from './table-config'; export type POS_FIRST_LAST = 'first' | 'last'; export type TableRowIdGenerator = (row: any)=> string; // configuration of table row export interface ITableRowConfig { enableSelec...
import * as React from "react"; import * as PropTypes from "prop-types"; import Icon from "../Icon"; import PseudoClasses from "../PseudoClasses"; export interface DataProps { /** * Checkbox is checked if `true`. */ defaultChecked?: true | false | null; /** * `Callback` function that is fired when the ...
/* Copyright 2019 New Vector Ltd 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 writing, software ...
<filename>packages/ts-transform-graphql-js-tag/src/transformerTestUtils.ts import Ts from "typescript"; import * as Path from "path"; import { createProjectSync, Project } from "@ts-morph/bootstrap"; export type TransformerFn = ( program: Ts.Program ) => Ts.TransformerFactory<Ts.SourceFile>; export class Transforme...
<reponame>pravinb1/vscode-objectscript<gh_stars>10-100 import * as vscode from "vscode"; import { AtelierAPI } from "../api"; import { panel, resolveConnectionSpec, getResolvedConnectionSpec } from "../extension"; import { pickProject } from "./project"; enum AccessMode { Code, WebappFiles, CodeReadonly, Webap...
<filename>lib/options.ts import { Omit } from "ast-types/types"; /** * All Recast API functions take second parameter with configuration options, * documented in options.js */ export interface Options extends DeprecatedOptions { /** * If you want to use a different branch of esprima, or any other module * t...
<reponame>dsgnhb/designhub-api import map from '../map'; import * as Re from '../../../services/response'; import showdown = require('showdown'); const converter = new showdown.Converter(); export default async function (req, res) { if (map.length === 0) { return Re.forbidden(res); } map.forEach((val...
<filename>web/flat-web/src/stores/user-store.ts<gh_stars>0 import { action, makeAutoObservable, observable } from "mobx"; import { CloudRecordStartPayload } from "../api-middleware/flatServer/agora"; import { usersInfo } from "../api-middleware/flatServer"; import { configStore } from "./config-store"; export interfac...
import { isAbsolute } from 'path'; import React, { useEffect, useMemo, useRef, useState } from 'react'; import { TouchableOpacity, View } from 'react-native-lite'; import { CodePart } from './code-editor-helpers'; export type CodeDisplayPart = CodePart; export type CodeDisplayInputOptions = { isActive?: boolean; ...
import { addHyphensToUUID, ApiError } from './utils/utils'; import { httpGet } from './utils/web'; /* SpraxAPI */ export interface SpraxAPIcfg { readonly instanceName: string; readonly listen: { readonly usePath: boolean; readonly path: string; readonly host: string; readonly port: number; } ...
import React, { PropsWithChildren, useContext, useEffect } from 'react' import styles from '../../styles/layout.module.css' import CssBaseline from '@material-ui/core/CssBaseline'; import { Avatar, Chip} from '@material-ui/core' import { Search } from '@material-ui/icons'; import WifiIcon from '@material-ui/icons/Wifi'...
/* * Copyright 2018 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
import "./style.scss"; import { Button, IconButton, Input, Menu, MenuButton, MenuItem, MenuList, Tag, TagLabel, TagLeftIcon, } from "@chakra-ui/react"; import { useAppDispatch, useAppSelector } from "../../../redux/hooks"; import DrawerComponent from "../../ui/Drawer/Index"; impo...
<reponame>antvis/GWebGPUEngine import { generateAABBFromVertices } from '@antv/g-webgpu-core'; import { vec3 } from 'gl-matrix'; import { inject, injectable } from 'inversify'; import { Geometry } from '.'; export interface IBoxGeometryParams { halfExtents: vec3; widthSegments: number; heightSegments: number; ...
import type { DEFAULT_APPLE_ICON_PATH, DEFAULT_APPLE_SPLASH_PATH } from '../util/consts.js'; type Favicons = [Favicon<'shortcut'>, ...Favicon<'icon'>[]]; export interface ApplePWAConfig { iconPath?: FilePath; /** * @defaultValue `DEFAULT_APPLE_ICON_PATH` * * @see {@link DEFAULT_APPLE_ICON_PATH} */ iconsOut...
import React, {ChangeEvent, KeyboardEvent, useEffect, useRef, useState} from 'react'; import {isClearCommand, isClearScreenCommand, isFirstCommand, isHelpCommand} from '../../../command'; import {Command, CommandPublishedBehaviorBackward, CommandPublishedBehaviorType} from '../../../command/types'; import {useCliEventB...
import React, { useState } from 'react' import ReactDOM from 'react-dom'; import styles from './settings.module.css' class SettingsSection { settingsFields: {[nameId: string]: ISettingsField} = { }; private stopHistoryListener: any; private setRerender: Function | null = null; constructor(public name: string,...
import { PresetPacket } from './PresetPacket' import { LiveAPI } from '../LiveAPI' import { BilibiliClient } from '../../BilibiliClient' import WebSocket = require('ws') import Packet, { PacketType, getPacketType } from './Packet' import ByteBuffer from '../../shared/ByteBuffer' import * as zlib from "zlib" interface...
/** * Copyright 2020 Opstrace, 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 agree...
<filename>ui/snapclient/src/app/task/task-card/task-card.component.ts /* * Copyright © 2022 SNOMED International * * 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.apach...
<filename>lib/api/folder.ts import {forceCast} from '../misc/type-util'; import {ButtonController} from '../plugin/blade/button/controller'; import {Blade} from '../plugin/blade/common/model/blade'; import {BladeRackEvents} from '../plugin/blade/common/model/blade-rack'; import {FolderController} from '../plugin/blade/...
<filename>skywalking-ui/src/store/modules/dashboard/dashboard-data-query.ts /** * 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 f...
import React, { useState, createRef, useMemo } from 'react'; import { useHotkeys } from "@blueprintjs/core"; import { Scrollbars } from 'react-custom-scrollbars'; import CellStack from './cell/CellStack'; import NotebookNav, { DBConnStatus } from './NotebookNav'; import { INotebookData, INbCellData, NbCellType } from...
import * as React from 'react'; import * as classNames from 'classnames'; import { BoardObject } from '../../api/board-object'; import { GroupObject, KnobMode, KnobStyle, KnobColor, GroupSizeType } from '../../api/group-object'; import { SwatchesPicker } from 'react-color'; import './_group-editor.scss'; interface Pro...
<gh_stars>100-1000 import GraphDataModel from '../GraphDataModel'; import Cell from '../cell/Cell'; import ObjectCodec from '../../serialization/ObjectCodec'; import CodecRegistry from '../../serialization/CodecRegistry'; import { NODETYPE } from '../../util/Constants'; import type { UndoableChange } from '../../types...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. 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, modi...
import { ColumnApi, GridApi } from 'ag-grid-community'; import { FocusListManager, generateID } from '@/directives/focus-list'; const FOCUS_LIST_ATTR = 'focus-list'; const FOCUS_ITEM_ATTR = 'focus-item'; const GRID_BODY_SELECTOR = '.ag-body-viewport'; const HEADER_ROW_SELECTOR = '.ag-header-viewport .ag-header-row'; ...
<reponame>klas3/ar-sea-battle-client<filename>src/redux/reducers/shipsReducer.ts import { crossMaterial, crossTextureFilePath, dotTextureFilePath, emptyPositiondMaterial, } from '../../other/battleMapConfigs'; import { friendlyArPlaneIdName, emptyZoneMark, shipMaxRotation, shipRotationStep, shipsRotat...
<filename>src/facts-service.ts // Copyright 2020 Self Group Ltd. All Rights Reserved. import { v4 as uuidv4 } from 'uuid' import Fact from './fact' import FactResponse from './fact-response' import Requester from './requester'; /** * A service to manage fact requests */ export default class FactsService { DEFA...
import { Panel, Group, vlayout, layoutConfig, Gravity, navbar, stack, } from "doric"; import { dangleView, DangleWebGLRenderingContext, vsync } from "dangle"; const global = new Function("return this")(); global.window = { devicePixelRatio: 1, addEventListener: (() => {}) as any, navigator: { a...
/** * Some made-up benchmarks for Promise implementation performance. * * These are pretty 'raw' tests, a more realistic test involving different * 'patterns' would make sense to get 'real world' stats. * * Copyright (C) 2015 <NAME> * License: MIT */ import "source-map-support/register"; import "microtime"; i...
<reponame>nikhilxb/vizstack /** * Vizstack allows you to declaratively assemble data-driven software visualizations. * * A rich, interactive "View" can be built by combining "Fragments", which are small, composable * visual elements that come in 2 categories: * * (1) "Primitives" are irreducible elements, e.g...
import styled from '@emotion/styled'; import { Dayjs } from 'dayjs'; import React, { useState } from 'react'; import { FormProvider, useForm } from 'react-hook-form'; import { useSetRecoilState } from 'recoil'; import { BodyShort, Button, Loader } from '@navikt/ds-react'; import { Modal } from '../../../../components...