text
stringlengths
3.08k
15.5k
import { useEffect, useMemo, useState } from 'react'; import { LiquidityPoolInfo, LiquidityPoolKeysV4, TokenAmount } from '@raydium-io/raydium-sdk'; import { makeStyles } from '@mui/styles'; import { Box, Card, Typography } from '@mui/material'; import { useMint, useTokenMap } from '@serum/swap-ui'; import { useWallet...
import * as nls from "vscode-nls"; import { Client, ConnectConfig } from "ssh2"; import { Lock } from "../../common/main"; import { LogFunction, LogType } from "../../common/main"; import { IUnSubscribe, Subscribe } from "../../common/main"; import { IConnectConfig, IConnectConfigResolver, IAlgorithms } from "../api"; ...
// // Interface to Kubernetes. // import { InjectableSingleton, InjectProperty } from "@codecapers/fusion"; import { IConfiguration, IConfiguration_id } from "../services/configuration"; import { IProject } from "../lib/project"; import { ITemplateManager, ITemplateManager_id } from "../services/template-manager"; imp...
/* * Copyright 2021 Zindex Software * * 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 ...
// Type definitions for Chart.js // Project: https://github.com/nnnick/Chart.js // Definitions by: <NAME> <https://github.com/Steve-Fenton> // <NAME> <https://github.com/FanaHOVA> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface ChartDataSet { label: string; fillColo...
import { execPromise, Auto, IPlugin, getCurrentBranch, DEFAULT_PRERELEASE_BRANCHES, determineNextVersion, } from "@auto-it/core"; import UploadAssetsPlugins from "@auto-it/upload-assets"; import * as path from "path"; import * as fs from "fs"; import * as semver from "semver"; import * as t from "io-ts"; c...
import { Accessibility } from '@fluentui/accessibility'; import { AutoFocusZone, AutoFocusZoneProps, FocusTrapZone, FocusTrapZoneProps, getElementType, useAccessibility, useFluentContext, useStyles, useTelemetry, useUnhandledProps, ForwardRefWithAs, } from '@fluentui/react-bindings'; import * as c...
// Native import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; // Packages import * as debug from 'debug'; import {EventEmitter2} from 'eventemitter2'; import * as extend from 'extend'; import * as chokidar from 'chokidar'; import throttle = require('lodash.throttle'); // eslint-disable-li...
<filename>src/game.ts import { Game, Mine, Point } from './domain'; const BOMBS_PROBABILITY = 0.15; const dx = [-1, 0, 1, -1, 1, -1, 0, 1]; const dy = [-1, -1, -1, 0, 0, 1, 1, 1]; function newGame(rows: number, columns: number): Game { let totalMines = 0; let estimatedMines = Math.floor(rows * columns * BOMB...
/** * 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 { Fun, Obj, Option, Options } from '@ephox/katamari'; import {...
import { GridSortingModelApplier } from './gridSortingState'; import type { GridRowId, GridRowTreeNodeConfig } from '../../../models'; import { GridApiCommunity } from '../../../models/api/gridApiCommunity'; import { GridStateCommunity } from '../../../models/gridStateCommunity'; import { GridComparatorFn, GridSort...
<gh_stars>10-100 /**Interface to describe annotation gaps*/ export interface RcsbFvTrackDataElementGapInterface { /**Start position of the gap*/ begin:number; /**End position of the gap*/ end:number; /**Flag to indicate if annotation regions are connected or not*/ isConnected:boolean; } /**Anno...
<gh_stars>10-100 /** * 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 ...
import { html } from 'lit-element'; import { get } from 'lit-translate'; import '@material/mwc-icon'; import '@material/mwc-list'; import '@material/mwc-list/mwc-check-list-item'; import { List } from '@material/mwc-list'; import '../filtered-list.js'; import { createElement, EditorAction, findControlBlocks, ...
<reponame>curveball/browser-to-bearer import { Context, Middleware } from '@curveball/core'; import '@curveball/session'; import { BadRequest, Unauthorized } from '@curveball/http-errors'; import { default as fetch, Response } from 'node-fetch'; import * as querystring from 'querystring'; import { resolve } from 'url';...
import React, { PureComponent, Component } from 'react'; import { View, Text, StyleSheet, FlatList, ActivityIndicator, TouchableOpacity, ViewStyle, ListRenderItem, NativeSyntheticEvent, NativeScrollEvent, TextStyle, FlatListProps } from 'react-native'; interface Props<Item> extends FlatListProps<Item> { d...
/** * 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 path from 'path'; import fs from 'fs-extra'; import {homedir} from 'os'; import {PluginMap, PluginDefinition}...
<gh_stars>0 import { Component, ElementRef, Type, ViewChild, ViewContainerRef } from "@angular/core"; import { MatMenu, MatMenuTrigger } from "@angular/material/menu"; import { MatTabGroup } from "@angular/material/tabs"; import { SessionState, Tool, ToolComponent, ToolRegistry } from "../tools"; import { TestTool1Comp...
/* * Copyright (c) 2018-2020 Porsche Informatik. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { Component, Input, Injector, ElementRef, Renderer2, OnDestroy, OnInit, Content...
import { CISource, Env } from "../ci_source/ci_source" import { GitDSL, GitJSONDSL } from "../dsl/GitDSL" import { GitHub } from "./GitHub" import { GitHubAPI } from "./github/GitHubAPI" import { BitBucketServer } from "./BitBucketServer" import { BitBucketServerAPI, bitbucketServerRepoCredentialsFromEnv } from "./bitb...
<filename>src/commands/mod/clear.ts import { MessageEmbed, MessageButton, MessageActionRow, InteractionCollector, CommandInteraction } from 'discord.js' import { client, config } from '../..' async function execute(interaction: CommandInteraction) { const embed = new MessageEmbed() .setColor('RANDOM') .setFoote...
import { BinaryView, Frag } from "@ot-builder/bin-util"; import { Assert, Errors } from "@ot-builder/errors"; import { Gsub } from "@ot-builder/ot-layout"; import { UInt16 } from "@ot-builder/primitive"; import { LookupReader, LookupWriter, SubtableReadingContext, SubtableSizeLimit, SubtableWriteCo...
import { ethers, providers } from "ethers"; import { Thunk } from "state"; import { setCarbonRetiredAllowance, setCarbonRetiredBalances, } from "state/user"; import OffsetConsumption from "@klimadao/lib/abi/OffsetConsumption.json"; import IERC20 from "@klimadao/lib/abi/IERC20.json"; import RetirementStorage from "...
import RSERBufferWriter from "./RSERBufferWriter"; import {Event} from "@internal/events"; import {RSERValue} from "./types"; import RSERBufferParser from "./RSERBufferParser"; import {encodeValueToRSERBufferMessage} from "@internal/codec-binary-serial/index"; import RSERBufferAssembler from "./RSERBufferAssembler"; im...
import React from 'react'; import ResizeObserver from 'resize-observer-polyfill'; import PropTypes from 'prop-types'; interface VirtualizedItemProps<ItemProps> { onSizeChanged(key: string, heigh: number): void; onParentOffset?(offset: number): void; itemProps: ItemProps; ItemComponent: ReturnType<typeof React....
import BN from "bn.js" import BigNumber from "bignumber.js" import Cards from "./data/cards.json" import CardDetails from "./data/cardDetail.json" import { TokenData } from "./services/TokenService" import productionTokens from "@/assets/tokens/production.tokens.json" import extDevTokens from "@/assets/tokens/ext-dev.t...
import { Box } from 'components/molecules/Box'; import { Typography } from 'components/molecules/Typography'; import { Button } from 'components/molecules/Button'; import React, { useCallback, useEffect, useRef } from 'react'; import { StyleSheet, StatusBar } from 'react-native'; import { SafeAreaView } from 'react-nat...
import {BaseException, isBlank} from 'angular2/src/facade/lang'; export var DOM: DomAdapter; export function setRootDomAdapter(adapter: DomAdapter) { if (isBlank(DOM)) { DOM = adapter; } } function _abstract() { return new BaseException('This method is abstract'); } /* tslint:disable:requireParameterType ...
import * as net from "net"; import * as child_process from "child_process"; import * as path from "path"; import { clearInterval } from "timers"; import * as rtextProtocol from "./protocol"; import { Context } from "./context"; import { Message } from "./message"; class PendingRequest { public invocationId: numbe...
import WidgetBase from '@dojo/framework/widget-core/WidgetBase'; import { v, w } from '@dojo/framework/widget-core/d'; import ThemedMixin, { theme, ThemedProperties } from '@dojo/framework/widget-core/mixins/Themed'; import customElement from '@dojo/framework/widget-core/decorators/customElement'; import diffProperty f...
import { AddIcon, ChevronRightIcon, DeleteIcon, EditIcon } from '@chakra-ui/icons'; import { IconButton, Input, Menu, MenuButton, MenuItem, MenuList, useColorMode, useDisclosure, useToast, } from '@chakra-ui/react'; import { useContext, useRef, useState } from 'react'; import { VscEllipsis } from 'rea...
import { FC } from 'react'; import styled from 'styled-components'; import ScrollAnimation from 'react-animate-on-scroll'; import { Router } from '@/i18n'; import H2 from '@/components/H2'; import Section from '@/components/Section'; import Description from '@/components/Description'; import Button from '@/components/B...
<reponame>nreese/loaders.gl import {getMeshBoundingBox} from '@loaders.gl/schema'; import Martini from '@mapbox/martini'; import Delatin from './delatin'; import {addSkirt} from './helpers/skirt'; type TerrainOptions = { meshMaxError: number; bounds: number[]; elevationDecoder: ElevationDecoder; tesselator: 'm...
<reponame>r4v/tridactyl import { browserBg } from "@src/lib/webext" import Fuse from "fuse.js" import * as Logging from "@src/lib/logging" const logger = new Logging.Logger("containers") // As per Mozilla specification: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextualIdentities/ContextualIdenti...
/* eslint-disable @typescript-eslint/no-unused-vars */ import { QldbDriver, RetryConfig, Result } from 'amazon-qldb-driver-nodejs'; import { AnchoredDataSerializer, BlockchainTimeModel, IBlockchain, ServiceVersionModel, TransactionModel, ValueTimeLockModel, } from '@sidetree/common'; import { Timestamp } fr...
<reponame>mathieucaroff/ponyTranslator<filename>src/streamTranslator.ts import { Rule, Callback, Lemma } from './interface' import { createWord } from './util/word' export interface StreamTranslatorParam { direction?: 'forward' | 'backward' ruleArr: Rule[] } export interface STRule { pattern: Lemma[] repl...
/* eslint-disable @typescript-eslint/no-array-constructor */ /* eslint-disable @typescript-eslint/no-empty-function */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ export const nil = () => [null, undefined]; export const booleans = () => [true, false]; export const integers = () => [0, 1, 9...
// tslint:disable import * as nock from 'nock'; function nocksetup() { const api = nock('https://api.bitflyer.jp'); api.get('/v1/me/getbalance').reply(200, [{ "currency_code": "JPY", "amount": 100, "available": 100 }, { "currency_code": "BTC", "amount": 0.01084272, "available": 0.01084272 }, { "currency_code": "BC...
/** * Copyright 2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or ...
<gh_stars>0 import { walkTreeNode, getRowIdentity } from '../util' import { ref, computed, watch, getCurrentInstance, unref } from 'vue' import type { WatcherPropsData } from '.' import type { Table, TableProps } from '../table/defaults' function useTree<T>(watcherData: WatcherPropsData<T>) { const expandRowKeys = ...
import {log} from '../../console/log'; import {Pathing} from '../../movement/Pathing'; import {ClaimingOverlord} from '../../overlords/colonization/claimer'; import {profile} from '../../profiler/decorator'; import {Cartographer, ROOMTYPE_CONTROLLER} from '../../utilities/Cartographer'; import {printRoomName} from '../...
/** * Maps datalabel sample */ import { Maps, MapsTooltip, DataLabel,Highlight, Legend, ILoadEventArgs, MapsTheme, SmartLabelMode, IntersectAction, MapAjax } from '../../src/index'; import { usa } from '../MapData/USA'; Maps.Inject(MapsTooltip, DataLabel, Highlight, Legend); let maps: Maps = new Maps({ t...
import { Readable } from "stream"; import Koa from "koa"; import React from "react"; import { renderToNodeStream } from "react-dom/server"; import { makeQueryCache, ReactQueryCacheProvider } from "react-query"; import { StaticRouter } from "react-router-dom/server"; import ssrPrepass from "react-ssr-prepass"; import { ...
<gh_stars>0 import { assert } from "chai"; import A from "../src/records/A"; import SRV from "../src/records/SRV"; import TXT from "../src/records/TXT"; import PTR from "../src/records/PTR"; import AAAA from "../src/records/AAAA"; import { WILDCARD } from "../src/Constants"; import { sameRecord } from "../src/MDNSUtil"...
<gh_stars>0 import { MessageEmbed, UserFlags } from "discord.js"; import { ICommand } from "wokcommands"; import { CurrentGameInfo } from "../riotApi/ApiInterfaces/ApiInterfaces"; import { getAllRankeds, getChampionById, getLiveGame, getMapById, getMapConstant, getMatchData, getMatchPlayers, getPlayer, getRanked } from...
<reponame>andregoncalves/react-speech-test-app /* ========================================================================== * Language Test Phrases * * @project: React Speech App * @author: <NAME> (<EMAIL>) * @copyright: 2018 <NAME> * ========================================================================== */...
import { cx } from '@linaria/core' import React, { Dispatch, FC, HTMLAttributes, SetStateAction, useState } from 'react' import { CardWrap, CardHeading, CardSubHeading, CardSubHeadingAdditional, CardHeadingWrap, CardImageWrap, CardBodyWrap, CardListHeading, CardListSubHeading, CardListItem, CardLi...
<filename>lib/rules/prefer-user-event.ts<gh_stars>0 import { TSESTree, ASTUtils } from '@typescript-eslint/utils'; import { createTestingLibraryRule } from '../create-testing-library-rule'; import { findClosestCallExpressionNode, isCallExpression, isMemberExpression, } from '../node-utils'; export const RULE_NA...
import { NSDatabase } from '@sqltools/types'; const reservedWordsArr = [ 'ABSOLUTE', 'ACTION', 'ADA', 'ADD', 'ALL', 'ALLOCATE', 'ALTER', 'AND', 'ANY', 'ARE', 'AS', 'ASC', 'ASSERTION', 'AT', 'AUTHORIZATION', 'AVG', 'BACKUP', 'BEGIN', 'BETWEEN', 'BIT_LENGTH', 'BIT', 'BOTH', ...
/* eslint-disable @typescript-eslint/naming-convention */ /** * GET /api/v8/core/org/{organization_slug}/courses */ export type Course = { id: number; name: string; title: string; description: string | null; details_url: string; unlock_url: string; reviews_url: string; comet_url: stri...
import _ from "lodash"; import * as util from "../../../util/util"; import * as test from "../../../util/test"; import chalk from "chalk"; import { log, logSolution, trace } from "../../../util/log"; import { performance } from "perf_hooks"; const YEAR = 2021; const DAY = 14; // solution path: C:\Users\trgau.NORTHAME...
<gh_stars>0 import XLSX from "xlsx"; import { createGlobalState, useEffectOnce } from "react-use"; import { FormItemOption } from "./../models/form"; export const scrollToAnchor = (anchorName: string) => { if (anchorName) { // 找到锚点 let anchorElement = document.getElementById(anchorName); // 如果对应id的锚点存在,就...
<filename>src/store/ui/menuMainFunctions.ts<gh_stars>1-10 import { getUserAccount } from "@decentraland/EthereumController"; import * as eth from "eth-connect"; import { getContract, ContractName } from "decentraland-transactions"; import { createMANAComponent } from "../blockchain/components/mana"; import { createComp...
// Import here Polyfills if needed. Recommended core-js (npm i -D core-js) // import "core-js/fn/array.find" // ... // import { TypeC } from './common/Type' import { Any } from './common/Type' export { Type, Any, TypeOf, DtoTypeOf, DtoTreeTypeOf } from './common/Type' export { boolean } from './simple-types/Boolean' ...
<filename>updaters/gradient/src/GradientUpdater.ts import type { IDelta, IParticleUpdater, IParticleValueAnimation, Particle, IParticleNumericValueAnimation, } from "tsparticles"; import { AnimationStatus, RotateDirection, StartValueType, colorToHsl, getHslAnimationFromHsl, g...
/** * @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://angular.io/license */ // tslint:disable:no-implicit-dependencies import { logging } from '@angular-devkit/core'; import { execSync, spawnSy...
<filename>puphub.ts<gh_stars>0 import { Peripheral } from "noble"; import { LPF2Hub } from "./lpf2hub"; import { Port } from "./port"; import * as Consts from "./consts"; import Debug = require("debug"); const debug = Debug("puphub"); /** * The PUPHub is emitted if the discovered device is a Powered UP Hub. * @c...
import React, { useState, useEffect, useRef } from 'react'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import './forecast.scss'; import DirectionForecast from '../direction-forecast/direction-forecast'; import OperatingHours from '../operating-hou...
/// <reference path='./Scripts/DlhSoft.ProjectData.GanttChart.HTML.Controls.d.ts'/> import GanttChartView = DlhSoft.Controls.GanttChartView; import GanttChartItem = GanttChartView.Item; import PredecessorItem = GanttChartView.PredecessorItem; // Query string syntax: ?theme // Supported themes: Default, Generic-bright...
import fs from 'fs'; import { resolve } from 'path'; import { Page, expect } from '@playwright/test'; import { test } from './fixture'; import { DocumentType } from './types'; const getDocumentByName = (page: Page, documentName: string) => { const newDocumentsList = page.locator('data-testid=new-documents-list'); ...
<filename>app/assets/app/app.component.ts import { Component, OnInit, ViewChild } from '@angular/core'; import { SearchInputListComponent } from './search-input-list.component'; import { SearchInputDetailComponent } from './search-input-detail.component'; import { ToasterService, ToasterConfig } from 'angular2-toaste...
<filename>aurelia_project/tasks/extract-bindables.ts import * as gulp from "gulp"; import * as replace from "gulp-replace"; import * as typedoc from "gulp-typedoc"; import * as fs from "fs"; import * as hbsAll from "gulp-handlebars-all"; import * as hbHelpers from "handlebars-helpers"; function readTs() { //instance....
<gh_stars>0 import { Request } from './api.ts' import { existsDirSync, existsFileSync } from './fs.ts' import { createHtml } from './html.ts' import log from './log.ts' import { getContentType } from './mime.ts' import { listenAndServe, path, ServerRequest, walk } from './std.ts' import util from './util.ts' import { v...
<filename>packages/vuetify/src/components/VIcon/VIcon.ts import './VIcon.sass' // Mixins import BindsAttrs from '../../mixins/binds-attrs' import Colorable from '../../mixins/colorable' import Sizeable from '../../mixins/sizeable' import Themeable from '../../mixins/themeable' // Util import { convertToUnit, keys, re...
<gh_stars>0 //import * as SocketIOClient from 'socket.io-client'; const JSONIFY = false; // this is exactly what is done anyway: //https://stackoverflow.com/questions/37512304/send-object-in-socket-io import * as io from 'socket.io'; import { Conference } from './Conference'; import { RessourceMap } from './Ressourc...
<reponame>devboldly/-react-use-analytics-api import { EventEmitter } from 'events'; import * as React from 'react'; import { GoogleAnalyticsEmbedAPI } from './GoogleAnalyticsEmbedAPI'; /** * See documentation: https://justinmahar.github.io/react-use-analytics-api/useAnalyticsApi#return */ export interface GoogleAnal...
import React, { Component, useContext, ComponentType, Ref, ReactNode, } from "react"; import { createPortal } from "react-dom"; import { Transition, TransitionGroup } from "react-transition-group"; import { ToastController } from "./ToastController"; import { ToastContainer, ToastContainerProps } from "./Toa...
<reponame>mkosma/roam-js-extensions<filename>src/entries/attr-tables.ts import { getConfigFromBlock, runExtension, } from "../entry-helpers"; import { createObserver, getConfigFromPage, parseRoamDate, createIconButton, } from "roam-client"; type SortConfig = { [column: string]: { asc: boolean | undef...
import { app, BrowserWindow } from 'electron'; import electronDebug from 'electron-debug'; import installExtension, { REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } from 'electron-devtools-installer'; import { forwardToRenderer, replayActionMain, triggerAlias } from 'electron-redux'; import Path from 'path'; import { applyMid...
<reponame>terascope/teraslice /* eslint-disable no-console */ import ttyTable from 'tty-table'; import CliTable from 'cli-table3'; import easyTable from 'easy-table'; import prompts from 'prompts'; import { toTitleCase } from '@terascope/utils'; function pretty(headerValues: string[], rows: string[]) { const head...
<gh_stars>0 import { Component, Input } from '@angular/core'; import { ErrorStateMatcher } from "@angular/material/core"; import { FormBuilder, FormGroup, FormControl, Validators, ValidatorFn, FormGroupDirective, NgForm } from '@angular/forms'; import { Observable, BehaviorSubject } from 'rxjs'; imp...
<gh_stars>1-10 import { Directive, ElementRef, Input, Output, DoCheck, OnChanges, OnDestroy, AfterViewInit, EventEmitter } from '@angular/core'; import {CustomEvent} from "./custom-event-polyfill"; declare var $:any; declare var Materialize:any; // export type MaterializeOptions = // "collapsible"...
<filename>node_modules/react-icons/go/index.d.ts import { IconTree, IconType } from '../lib/iconBase' // THIS FILE IS AUTO GENERATED export declare const GoAlert: IconType; export declare const GoArchive: IconType; export declare const GoArrowBoth: IconType; export declare const GoArrowDown: IconType; export declare co...
import assert from 'assert'; import {execFileSync} from 'child_process'; import fs from 'fs'; import fsExtra from 'fs-extra'; import path from 'path'; import rimraf from 'rimraf'; import {fileURLToPath} from 'url'; //Remember, path relative to typescript-built "lib" folder. const pbemVueTemplate = path.join(path.dirn...
<filename>test/providers.azure.ts<gh_stars>0 import { assert } from 'chai'; import * as pEvent from 'p-event'; import * as sinon from 'sinon'; import { Consumer, AzureQueueProvider } from '../src/index'; const sandbox = sinon.createSandbox(); const AUTHENTICATION_ERROR_TIMEOUT = 20; const STORAGE_QUEUE_CONNECTIONST...
<reponame>ryanhdunn86/ta-math import { sma, ema, stdev, expdev, pointwise, atr, typicalPrice} from './core'; /* overlays */ export function bb($close: Array<number>, window: number, mult: number) { let ma = sma($close, window); let dev = stdev($close, window); let upper = pointwise((a: number, b: number) => a +...
import { mergeCssSets, IStyleSet, IProcessedStyleSet, Stylesheet, IStyleFunctionOrObject, } from '@fluentui/merge-styles'; import { getRTL } from './rtl'; import { getWindow } from './dom'; import { StyleFunction } from './styled'; const MAX_CACHE_COUNT = 50; const DEFAULT_SPECIFICITY_MULTIPLIER = 5; let _m...
<gh_stars>1-10 import { PropertyDescriptor, EntityDescriptor, KeyType, DataType, PropertyDecoratorArgs, TableInformation, ClassCapture } from "./type"; import { MetaDataKey } from "./key"; import { defaultSerializer, defaultDeserializer } from "./utils"; import { addListener } from "cluster"...
<gh_stars>1-10 import { Panel, Group, vlayout, layoutConfig, Gravity, navbar, GestureContainer, gestureContainer, Color, hlayout, text, Text, } from "doric"; import { dangleView, DangleWebGLRenderingContext, vsync } from "dangle"; import * as THREE from "three"; let lastTime = Date.now(); @En...
<filename>src/index.ts<gh_stars>1-10 import { GraphQLSchema, isWrappingType, GraphQLWrappingType, TypeNode, GraphQLAbstractType, GraphQLObjectType, } from 'graphql'; import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers'; import { UrqlGraphCacheConfig } from './config'; import { imports } ...
import React from 'react'; import { Grid, Field, Form, Select, Message, Button, Input } from '@b-design/ui'; import { withTranslation } from 'react-i18next'; import { createTriggers, detailComponentDefinition } from '../../../../api/application'; import { getPayloadType } from '../../../../api/payload'; import type { W...
import { Point } from '../types/Point'; export function toRadians(degree: number): number { return degree * (Math.PI / 180); } export function mod(n: number, m: number): number { return (n % m + m) % m; } export function round(n: number, places = 1): number { const base = 10 ** places; re...
<reponame>alonronin/ravendb-nodejs-client import { ServerNode } from "./ServerNode"; import { HttpCache } from "../Http/HttpCache"; import { StatusCodes } from "../Http/StatusCode"; import * as stream from "readable-stream"; import { Response, default as fetch, RequestInit } from "node-fetch"; import { HttpRequest...
<filename>src/doctor/android/android-sdk.ts // Android SDK layout: // $ANDROID_HOME/platform-tools/adb // $ANDROID_HOME/build-tools/19.1.0/aapt, dx, zipalign // $ANDROID_HOME/build-tools/22.0.1/aapt // $ANDROID_HOME/build-tools/23.0.2/aapt // $ANDROID_HOME/build-tools/24.0.0-preview/aapt // $ANDROID_HOME/build-tools/...
import { inspect } from 'util'; import { every, compact } from 'lodash'; import { Board, buildBoard } from '~api/models/board'; import { Position } from '~api/models/position'; import logger from '~libs/logger'; import { CreateBoardParams, BoardPositionParams } from '~api/mappers/boards'; import repositories from '~ap...
import { DynamicModule } from '@nestjs/common'; import { ModuleRef } from '@nestjs/core'; import { GqlModuleOptions, GraphQLModule, GraphQLTypesLoader } from '@nestjs/graphql'; import { notNullOrUndefined } from '@vendure/common/lib/shared-utils'; import { buildSchema, extendSchema, GraphQLSchema, printSchema, Validati...
<reponame>Frank67618/BlazorFluentUI import * as FluentUIBaseComponent from './baseComponent.js' type EventGroup = FluentUIBaseComponent.EventGroup; interface DotNetReferenceType { invokeMethod<T>(methodIdentifier: string, ...args: any[]): T; invokeMethodAsync<T>(methodIdentifier: string, ...args: any[]): Prom...
import React, { useContext, useState } from 'react'; import { NextSeo } from 'next-seo'; import { IoFlask } from 'react-icons/io5'; import TCourse from '@/components/testing/TCourse'; import { AppDataContext } from '@/lib/context/AppDataContext'; import { getGPA } from '@/lib/GPAUtils'; import { CourseAssignments } f...
<filename>src/auth/auth.controller.ts import { Request, Response, NextFunction } from "express"; import bcrypt from "bcryptjs"; import jwt from "jsonwebtoken"; import { IMom, IJWTPayload, ISession, } from "../helpers/typescript-helpers/interfaces"; import UserModel from "../REST-entities/user/user.model"; import ...
<reponame>Dennetix/Pichi<gh_stars>0 import autobind from 'autobind-decorator'; import { glMatrix, mat4, quat, vec3 } from 'gl-matrix'; import ErrorStore from '../stores/ErrorStore'; import ResourceLoader from '../engine/utils/ResourceLoader'; import Shader from '../engine/Shader'; import Buffer from '../engine/buffer...
import * as core from '@actions/core' import * as fs from 'fs' import {inspect} from 'util' import * as utils from './utils' // Tokenise command and arguments // Support escaped quotes within quotes. https://stackoverflow.com/a/5696141/11934042 const TOKENISE_REGEX = /\S+="[^"\\]*(?:\\.[^"\\]*)*"|"[^"\\]*(?:\\.[^"\\...
import * as ossClient from 'ali-oss'; import * as co from 'co'; import * as dirTraveler from 'dir-traveler'; import * as fs from 'fs'; import * as hasha from 'hasha'; import * as multimatch from 'multimatch'; import * as path from 'path'; const LABEL = 'oss-serve:'; function mkDirsSync(p: string): void { if (!fs.ex...
<filename>src/transport/batchedNetworkInterface.ts<gh_stars>0 import { ExecutionResult, } from 'graphql'; import 'whatwg-fetch'; import { BaseNetworkInterface, HTTPNetworkInterface, RequestAndOptions, Request, printRequest, } from './networkInterface'; import { BatchAfterwareInterface, } from './afterw...
/** * @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://angular.io/license */ import {Subscription} from 'rxjs/Subscription'; import {map} from 'rxjs/operator/map'; import {MediaChange, MediaQue...
<reponame>sahilmahna/hackathon<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { LoginComponent } from './../login/login.component'; import { ServicesService } from "./../login/services/services.service"; import { Router, ActivatedRoute } from '@angular/router'; import {DashboardService} from "./se...
<reponame>skjzzb/ui-for-talent<filename>src/app/pages/candidate/list-of-interview/list-of-interview.component.ts import Swal from 'sweetalert2'; import { Component, OnInit, EventEmitter, Output, Input, TemplateRef } from '@angular/core'; import { DataService } from '../../../@core/utils/data.service'; import { LocalD...
<gh_stars>0 import { KeyValueStorage } from '../storage/KeyValueStorageInterface'; import { convertToAuthLevel, isValidPassword, isValudUsername, kAuthPenaltySec, kMaxTryCount, User, } from './UserProfile'; import { ResultOk, kResultInvalid, ResultErrors, kResultNotFound, } from '../base/error'; imp...
import React, { useState } from 'react'; import './PasswordGenerator.css'; import { IonList, IonItem, IonButton, IonRadioGroup, IonRadio, IonLabel, IonRange, IonToggle, IonGrid, IonRow, IonCol, IonChip, IonIcon, IonToast, IonText, IonTextarea, IonAlert, } from '@ionic/react'; import { ...
<gh_stars>0 import { createTheme } from '@shopify/restyle'; import imageVariants from './ImageVariants'; import Metrics from './Metrics'; import textVariants from './TextVariants'; import touchableVariants from './TouchableVariants'; const palette = { googleplus: '#db4a39', green: '#50B83C', // greenDark: '#108043',...
<reponame>layyback/rubick<filename>src/core/app-search/linux.ts import path from "path"; import originfs from "original-fs"; const app_paths = [ "/usr/share/applications", "/var/lib/snapd/desktop/applications", `${window.process.env.HOME}/.local/share/applications`, ]; const emptyIcon = ""; function dirAppRead(...