text stringlengths 3.08k 15.5k |
|---|
import * as React from 'react';
import { Broadcast } from 'react-broadcast';
import { Manager, generatePackageJSON } from 'smooshpack';
import { listen } from 'codesandbox-api';
import _ from 'lodash';
import {
IFiles,
IManagerState,
ISandpackContext,
IModuleError,
ManagerStatus,
} from '../../types';
expor... |
import * as React from 'react';
import INavigationProps from '../interfaces/INavigationProps';
import registeredComponents from '../constants/registeredComponents';
declare const manywho: any;
// Holds the refs for each dropdown navigation item
// so that their open/closed state can be altered
let menuRefs = [];
cons... |
<reponame>ricmoo/reticulate<gh_stars>1-10
import { spawnSync } from "child_process";
import { createHash } from "crypto";
import fs from "fs";
import http from "http";
import https from "https";
import os from "os";
import { resolve } from "path";
import { parse } from "url"
export type GetUrlResponse = {
statusCo... |
import { graphqlSchema, wsHandler } from '@kraken.js/aws';
import {
GQL_COMPLETE,
GQL_CONNECTION_ACK,
GQL_CONNECTION_ERROR,
GQL_CONNECTION_INIT,
GQL_CONNECTION_TERMINATE,
GQL_DATA,
GQL_START,
GQL_STOP,
krakenJs,
KrakenSchema
} from '@kraken.js/core';
import { ApiGatewayManagementApi, DynamoDB } from... |
import { PlayerJumpEvent } from 'com.destroystokyo.paper.event.player';
import { Bukkit, Material, SoundCategory } from 'org.bukkit';
import { Block, BlockFace } from 'org.bukkit.block';
import { Ageable } from 'org.bukkit.block.data';
import { Entity, FallingBlock, Player } from 'org.bukkit.entity';
import {
EntityC... |
import { transformSync, TransformOptions } from '@babel/core'
import traverse, { NodePath } from 'babel-traverse'
import { parserOpts } from '../loaders/utils/config'
import * as t from '@babel/types'
import { REG_TYPESCRIPT } from './constants'
import { kebabCase } from 'lodash'
import * as path from 'path'
import * a... |
import 'jest';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import thunk from 'redux-thunk';
import { find } from 'lodash';
import rootReducer from '../duck';
import WorkerQueue from '../WorkerQueue';
import { Queue } from '../queue';
import { HandlerPromiseResponse } from '../types';
impor... |
import { Injectable, EventEmitter } from '@angular/core';
import { Storage } from '@ionic/storage';
import { ILocalNotification } from '@ionic-native/local-notifications/ngx';
import { JwtHelperService } from '@auth0/angular-jwt';
import { HttpClient } from '@angular/common/http';
import { TwilioService } from './twili... |
<filename>packages/engine/src/editor.ts
import { merge } from 'lodash';
import Language from './language';
import {
BlockModelInterface,
CardEntry,
CardModelInterface,
ClipboardInterface,
CommandInterface,
ConversionInterface,
EditorInterface,
EditorOptions,
EventInterface,
EventListener,
InlineModelInterfac... |
<gh_stars>1-10
/* eslint-disable max-classes-per-file, class-methods-use-this */
type LeaveUnit = 'full-day' | 'half-day';
type LeaveUnitType = null | 'am' | 'pm';
type RecordFlow = { params: { leaveUnitType: LeaveUnitType; leaveUnit: LeaveUnit } };
type AttendanceReport = {
periodId: number;
};
type AttendanceR... |
import React, {
useState,
useEffect,
useContext,
createContext,
Dispatch,
SetStateAction,
} from 'react';
import { PoolSearch } from 'components/pool-search';
import { Box } from '@material-ui/core';
import { AddLiquidityV3 } from 'components/add-liquidity/add-liquidity-v3';
import { Helmet } fr... |
<reponame>tuya/tuya-panel-k
import { StyleProp, ViewStyle } from 'react-native';
export interface IconARTProps {
/**
* @description.zh 图标宽度,默认为 size 的值
* @description.en Icon width. It is the value of size by default
* @default 12
*/
width?: number;
/**
* @description.zh 图标高度,默认为 size 的值
* @des... |
<gh_stars>1-10
import {
Advisors,
Blueprints,
Consumables,
Designs,
Languages,
Marketplace,
Materials,
Prototypes,
Traits,
} from "../../api-types"
import { readJson } from "fs-extra"
import { download } from "./download"
import fs from "fs"
const cache = {}
async function fetch(path: string) {
... |
<gh_stars>1-10
import Docker from 'dockerode';
import crypto from 'crypto';
import path from 'path';
function sha1(data: any) {
return crypto
.createHash('sha1')
.update(data, 'binary' as any)
.digest('hex')
.slice(0, 12);
}
const until = async (
fn: () => Promise<any>,
retries: number = 10,
d... |
<reponame>polo-language/bin-packer
import { MoveCallback } from '../index'
import { groupByThree, pushFrom, SwapPair } from '../util/utils'
import { Bin } from './bin'
import { Item } from './item'
import { NoSolutionError, Range, selectRangeCovering } from './covering-max'
/**
* Tries to swap many items from bins wi... |
<reponame>lyonbot/linked-data
import type { LinkedData, DataNode } from './LinkedData';
import type { DataNodeRef } from './DataNodeRef';
import { Path } from './types';
import { transformRaw } from './transformRaw';
import { shallowClone, toArray } from './utils';
/**
* @public
*/
export interface DumpedNode {
id... |
<gh_stars>1-10
import { Observable } from 'rxjs'
import * as fs from 'mz/fs'
import * as path from 'path'
import { exec } from 'mz/child_process'
const equal = require('deep-equal')
const fontManager = require('font-manager')
import { Component, Inject } from '@angular/core'
import { ConfigService, HostAppService, Pla... |
import * as HighlightJS from 'highlight.js/lib/highlight.js';
import { ICompiledMode, IHighlightResult, IAutoHighlightResult } from 'highlight.js';
import { nodeStream, mergeStreams } from './highlight.js-helpers';
import { html, Diff2HtmlConfig, defaultDiff2HtmlConfig } from '../../diff2html';
import { DiffFile } fro... |
<reponame>onboardmoney/farmerbot
import { getAddress } from '@ethersproject/address';
import { InfuraProvider } from '@ethersproject/providers';
import { Injectable, Logger, Inject } from '@nestjs/common';
import { App } from '@onboardmoney/sdk';
import { ethers, Contract, VoidSigner } from "ethers";
import addresses ... |
import React, { useState, useEffect, ChangeEvent, FormEvent } from 'react';
import { Link, useHistory } from 'react-router-dom';
import { LeafletMouseEvent } from 'leaflet';
import { Map, TileLayer, Marker } from 'react-leaflet';
import { FiArrowLeft } from 'react-icons/fi';
import axios from 'axios';
import { join } ... |
import * as React from "react";
import PropTypes from "prop-types";
import EllipseContext from "./context";
import MapContext from "../Map/context";
import type { IKakao, TKakaoStrokeStyles, IKakaoEllipse, IKakaoMouseEvent, IKakaoEllipseOptions } from "tenel-kakao-map";
declare var kakao: IKakao;
export interface ... |
// Environment for L4 with mutation
// ================================
// An environment represents a partial function from symbols (variable names) to values.
// It supports the operation: apply-env(env,var)
// which either returns the value of var in the environment, or else throws an error.
//
// In L4-env - ... |
/**
* Functions for fetching BCVEs containing varying amounts of information using inputs that are very close to the commandline.
*/
import * as fs from "fs";
import * as path from "path";
import * as selectors from "./selectors";
import {
BCVE,
BCVERun,
Config,
StandaloneRun,
ToolID
} from "./persistent-t... |
import React, { useEffect, useState } from "react";
import { CheckCircle, XCircle } from "react-feather";
import CopyHelper from "./CopyHelper";
import { CHAIN_ID_NAMES, getChainExplorerLink, MATIC_CHAINS, shortenAddress } from "../../utils";
import { injected } from "../../connectors";
import { SUPPORTED_WALLETS } fro... |
<gh_stars>0
'use strict';
import * as fastEquals from 'fast-deep-equal/es6';
export function deepEquals<T>(a: T, b: T, ignoreKeys?: (keyof T)[]): boolean {
if (ignoreKeys && a && b) {
a = ignoreKeys.reduce((acc: T, key: keyof T) => {
return removeKey(acc, key)
}, a)
b = ignoreK... |
/* eslint-disable */
import csv from 'csv-parser'; // CSV parser
import fs from 'fs'; // File system
import {
ApplicantStatus,
ApplicationStatus,
Gender,
PaymentType,
PhysicianStatus,
Province,
} from '@lib/graphql/types'; // GraphQL types
import {
UpsertApplicant,
UpsertApplication,
UpsertApplication... |
<reponame>HaikuTeam/core
import HaikuGlobal from './HaikuGlobal';
export const GLOBAL_LISTENER_KEY = '*';
export const GENERIC_EVENT_KEY = 'event';
const upperCaseFirstLetter = (str: string): string => {
return str.charAt(0).toUpperCase() + str.slice(1);
};
const camelize = (str: string): string => {
return str.... |
import classNames from "classnames";
import { User } from "common/butlerd/messages";
import {
ambientNavigation,
ambientWind,
ambientWindState,
} from "common/util/navigation";
import React from "react";
import { arrayMove, SortableContainer } from "react-sortable-hoc";
import Filler from "renderer/basics/Filler"... |
<filename>index.d.ts
export interface HarpeeConnect {
host: string;
username: string;
password: string;
token ? : string;
}
/** Creates a model for your project, the `modelName` represents a table .
*
* @param {string} modelName - the `modelName` is used to create a table.
*
* @param {object} schema - an ... |
<filename>src/core/Canvas.ts
import Konva from 'konva';
import { Image, Stage, Text, Transformer } from './shape';
import type { DatModelItem, DataModel, BgModel } from '@/typing';
import { removeLines, detectionToLine } from '@/core/utils/line';
import { uuid, getCenterXY } from '../utils/util';
import { addRectangle ... |
<reponame>mickeypearce/oradew-vscode<filename>src/cli/cli.ts<gh_stars>10-100
import { resolve } from "path";
import { homedir } from "os";
import * as program from "commander";
import { OradewProcess } from "./process";
import { version } from "../../package.json";
// ENVironment variables:
// ORADEW_CWD: workspace ... |
<filename>src/util/variable/cloneDeep.ts
declare const Buffer: {
allocUnsafe: (arg0: any) => any;
from: (arg0: any) => any;
};
function clone(val: any) {
switch (typeOf(val)) {
case "arraybuffer":
return cloneArrayBuffer(val);
case "array":
return val.slice();
case "object":
return ... |
import type { FormikProps } from 'formik';
import { withFormik } from 'formik';
import type { RouteComponentProps } from 'react-router';
import type { ProxyStoreDispatch } from '../../application/redux/proxyStore';
import cx from 'classnames';
import Button from './button';
import {
setAddressesAndAmount,
setPendin... |
<reponame>v-zhzhou/essex-js-build<gh_stars>1-10
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { existsSync } from 'fs'
import { join } from 'path'
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
import TsConfig... |
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distribute... |
// startsWith polyfill
if (!String.prototype.startsWith) {
String.prototype.startsWith = function (search: string, pos: number) {
return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
};
}
// definition of a character, as received from the function.
class CharDef {
character: s... |
import { KeyValueData } from '@/ADempiere/modules/persistence'
import { AMOUNT, COSTS_PLUS_PRICES, DATE, DATE_PLUS_TIME, NUMBER, QUANTITY, TIME } from './references'
import { IKeyValueObject, Namespaces } from './types'
import moment from 'moment'
import store from '@/ADempiere/shared/store'
import { ILanguageData } fr... |
import chalk from "chalk";
import {createLogger, format, transports, Logger} from "winston";
import DailyRotateFile from "winston-daily-rotate-file";
import {Str} from "../Utility/Str";
const {combine, timestamp, printf, ms, errors} = format;
export class LogService {
private static instance: LogService;
private lo... |
/*
============
祖 传 代 码
============
*/
import { getComponentSettings } from '@/core/settings'
import { ProgressSeekMode } from './gesture-preview'
const getPosition = (element: HTMLElement) => {
let x = 0
let y = 0
let e = element
while (e && !Number.isNaN(e.offsetLeft) && !Number.isNaN(e.offsetTop)) {... |
<reponame>marconian/world-of-wonder
import { Scene, PerspectiveCamera, WebGLRenderTarget, IUniform, Mesh, PlaneBufferGeometry, ShaderMaterial, FloatType, LinearFilter, NearestFilter, Vector2, WebGLRenderer, DataTexture, RGBFormat, Renderer, BufferAttribute } from 'three';
export class PhysicsRenderer {
length: num... |
import { GetServerSideProps, GetServerSidePropsResult } from "next";
import React, { FunctionComponent } from "react";
import Aside from "../components/Aside";
import { StartButton } from "../components/Button";
import { Grid } from "../components/Grid";
import { InsetText } from "../components/InsetText";
import { Lay... |
import { OAuth2Client } from "google-auth-library";
import * as google from "googleapis";
const drive = google.drive("v3");
import { createReadStream, createWriteStream } from "fs";
import { isEmpty } from "lodash";
import * as makeDir from "make-dir";
import * as mime from "mime-types";
import { basename, dirname } f... |
<gh_stars>10-100
import { LogEventLevel, LogEvent, isEnabled } from './logEvent';
import { Sink } from "./sink";
import { DynamicLevelSwitch } from './dynamicLevelSwitch';
export interface SeqSinkOptions {
/**
* API key to use
*/
apiKey?: string;
/**
* If true, events be serialized using Se... |
<reponame>Troyd-Destin/solblazers_app
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, FormControl, FormGroupDirective, NgForm, Validators} from '@angular/forms';
import {ActivatedRoute} from '@angular/router';
import {ErrorStateMatcher} from '@angular/material/core';
import { HttpCl... |
<reponame>CoreMedia/ckeditor-plugins<filename>packages/ckeditor5-coremedia-richtext/src/CoreMediaRichTextConfig.ts
import RichTextSchema, { Strictness } from "./RichTextSchema";
import CKEditorConfig from "@ckeditor/ckeditor5-utils/src/config";
import { allFilterRules } from "@coremedia/ckeditor5-dataprocessor-support... |
import * as React from "react";
import { Switch, Route, useParams } from "react-router-dom";
import { makeStyles } from "@material-ui/core";
import RegexHelpers from "helpers/regexHelpers";
import { Guid } from "guid-typescript";
import NavigationHelper from "helpers/navigationHelper";
const useStyles = makeStyles(the... |
<filename>src/account/account.ts
import { ArgonType, hash } from "argon2-browser"
import keccak256 from "keccak256";
import { eddsa } from "elliptic";
const ed25519 = new eddsa("ed25519");
import { EncryptedAccount, EncryptedKey, EphemeralToken, Keys } from "./interfaces";
class Account {
private rootKey: Uint8A... |
<filename>packages/pulse-core/lib/collection/group.ts
import { config } from 'process';
import { Pulse, State, Collection, DefaultDataItem, Data } from '../internal';
import { defineConfig, normalizeArray } from '../utils';
export type PrimaryKey = string | number;
export type GroupName = string | number;
export type ... |
<filename>node_modules/blockstack/lib/wallet.d.ts<gh_stars>0
/// <reference types="node" />
import { BIP32Interface } from 'bitcoinjs-lib';
/**
*
* @ignore
*/
export declare type IdentityKeyPair = {
key: string;
keyID: string;
address: string;
appsNodeKey: string;
salt: string;
};
/**
* The `Blo... |
<reponame>fc-premium/fc-premium<gh_stars>1-10
import {
Debug,
LocalStorage,
Config,
MetaConfigType,
FlagHandler,
CSSHandler
} from '../module'
import { GLOBAL_ENTRY_NAME, VERSION_HASH, NO_CACHE_HEADERS } from '../definitions'
// import } from '../utils' // Temp
import { FC } from '../fc-api'
import { ResourceHa... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Fragment, useState, useEffect, useMemo } from 'react';
import... |
<filename>group-shop-uniapp-wx-Source/src/pages/index/modules/me/meType.ts
/*
* @description:
* @Author: vikingShip
* @Date: 2021-08-04 14:35:35
* @LastEditors: chuyinlong
* @LastEditTime: 2021-08-18 15:09:29
*/
import { LinkSelectItem } from '@/store/modulesType/settingType'
export interface MeState {
userInf... |
<reponame>svssdeva/angularfire2<filename>src/auth/auth.ts
import { Injectable, Inject, Optional, NgZone, PLATFORM_ID, InjectionToken } from '@angular/core';
import { Observable, of, from, merge, Subject, Subscriber } from 'rxjs';
import { switchMap, map, observeOn, shareReplay, first, filter, switchMapTo, subscribeOn }... |
<reponame>DataDog/browser-sdk
import {
assign,
combine,
Configuration,
DEFAULT_CONFIGURATION,
Observable,
TimeStamp,
noop,
} from '@datadog/browser-core'
import { SPEC_ENDPOINTS, mockClock, Clock, buildLocation } from '../../core/test/specHelper'
import { RecorderApi } from '../src/boot/rumPublicApi'
impo... |
import { PackageDetails_package } from "@saleor/package/types/PackageDetails";
export const getUshopStatus = status => {
const MESSAGE = {
ATMGL: "Монголд ирсэн",
ATUK: "оффисд ирсэн",
NEW: "шинэ",
RECEIVED: "Хэрэглэгч авсан",
SHIPPING: "Тээвэрт орсон"
};
if (!MESSAGE[status]) {
return "F... |
<filename>src/generator/cmd/generate.ts<gh_stars>0
import os from 'os';
import path from 'path';
import { createWriteStream, existsSync } from 'fs';
import { readdir, stat, rmdir, mkdir, rm } from 'fs/promises';
import { series } from 'async';
import { spawn } from 'child_process';
import chalk from 'chalk';
import str... |
import ProAction from '@/components/ProAction';
import { ModalForm } from '@ant-design/pro-form';
// import { BetaSchemaForm } from '@ant-design/pro-form';s
import { PageContainer } from '@ant-design/pro-layout';
import type { ActionType, ProColumns } from '@ant-design/pro-table';
import ProTable from '@ant-design/pro-... |
import React, { Fragment, RefObject } from 'react';
import { SafeAreaView, FlatList, View, Text, Button, StyleSheet, ViewStyle, ScrollView, Image, ImageStyle, ImageBackground, ActivityIndicator } from 'react-native';
import { NavigationStackProp, NavigationStackState, NavigationStackOptions } from 'react-navigation-sta... |
<filename>src/client/ts/graph.ts<gh_stars>1-10
import store from "./store";
export interface GraphNode {
time: number,
value: number,
x?: number,
y?: number
}
type TextItem = {
text: string
x: number
y: number
}
let timeLength = store.getState().time;
let minValue = store.getState().min;
... |
import type { NextPage } from 'next'
import Head from 'next/head'
import { useEffect, useState } from 'react'
import { EthereumAuthProvider, SelfID } from '@self.id/web'
import { sayHello, registerHelloPeer } from '../_aqua/getting-started'
import { Fluence, PeerStatus } from '@fluencelabs/fluence'
import { krasnodar }... |
/*!
* @license
* Copyright 2019 Alfresco Software, 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 app... |
/**
* @license
* Copyright (C) 2017 The Android Open Source Project
*
* 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 require... |
<filename>packages/core/src/helpers/rule.ts
import {
parseSelectorWithCache,
stringifySelector,
scopeNestedSelector,
walkSelector,
convertToSelector,
matchTypeAndValue,
isSimpleSelector,
} from './selector';
import {
Selector,
ImmutableSelectorNode,
groupCompoundSelectors,
} from... |
/* tslint:disable:prefer-template no-string-literal */
import { Component, ElementRef, Input, NgModuleFactory, Type, ɵNgModuleFactory } from '@angular/core';
import { EXAMPLE_COMPONENTS, LiveExample } from '@ptsecurity/mosaic-examples';
import { CopierService } from '../copier/copier.service';
/** Regular expression... |
/* 是否是手机号号 */
import {HomeModule} from "@/store/modules/user/home";
import router from "../router";
import request from "@/utils/request";
import config from "@/utils/config";
import {showLoading, closeLoading, showToast, showMessageBox, showMessagePanel} from '@/utils/ui';
export function isMobile(value: string): boo... |
/**
* Map
*
* This is a React wrapper to instantiate and atlas.Map instance.
* It expects the Azure Maps`atlas` object to have already been loaded into
* window.atlas via a <script> tag.
*
* @see https://docs.microsoft.com/en-us/azure/azure-maps/how-to-use-map-control
*/
////////////////////////////////////////... |
import React, { useState, useEffect } from 'react';
import { Roxie } from '@roxie/core';
type DatePickerPortalProps = {
value?: Date,
onChange?: (value: Date) => void,
className?: string,
}
export function DatePickerPortal(props: DatePickerPortalProps) {
const [value, setValue] = useState(null as Date),
... |
<gh_stars>100-1000
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
/**
* TensorFlow... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import React, { useEffect, useMemo, useState } from "react";
import {
Box, Image, Flex, Button, Divider, Text,
} from "@fluentui/react-northstar";
import {
StarIcon,
} from "@fluentui/react-icons-northstar";
import { Icon } from "office-ui-... |
import Camera from "./primitives/camera.js";
import Direction3D from "./linalng/3D/direction.js";
const UP_KEY_CODE = 82; // R
const DOWN_KEY_CODE = 70; // F
const LEFT_kEY_CODE = 65; // A
const RIGHT_kEY_CODE = 68; // D
const FORWARD_kEY_CODE = 87; // W
const BACKWARD_kEY_CODE = 83; // S
const YAW_LEFT_KEY_CODE = ... |
import { noop } from 'lodash';
import { IRunBatch } from 'pages/RunDetail/types';
import runsService from 'services/api/runs/runsService';
import * as analytics from 'services/analytics';
import { INotification } from 'types/components/NotificationContainer/NotificationContainer';
import { IApiRequest } from 'types/... |
<reponame>wechaty/bot5-assistant
/**
* Wechaty Open Source Software - https://github.com/wechaty
*
* @copyright 2022 <NAME> (李卓桓) <https://github.com/huan>, and
* Wechaty Contributors <https://github.com/wechaty>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... |
<reponame>WGH0120/Editor
import { Injectable, OnModuleInit } from '@nestjs/common';
import { InjectableBase } from 'server/injectable-base';
import { Octokit } from '@octokit/rest';
import type { OctokitOptions } from '@octokit/core/dist-types/types';
import { ConfigService } from '@nestjs/config';
import { createAppAu... |
<filename>examples/shared/map-animating-along-lines/index.ts<gh_stars>10-100
import * as am5 from "@amcharts/amcharts5";
import * as am5map from "@amcharts/amcharts5/map";
import am5geodata_worldLow from "@amcharts/amcharts5/geodata/worldLow";
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
... |
<filename>src/injec/binding.ts
import { Func, isFunction, Constructor, notDefined, isDefined } from './types';
import { Container } from './container';
import { Scope } from './scope';
import { dependant, getDependencies, Dependency } from './dependencies';
import { Locals } from './locals';
export type Bindable... |
<filename>plugins/typescript/transformers/imports_exports.ts
import { ts } from "../../../deps.ts";
import { resolve as resolveDependency } from "../../../dependency/dependency.ts";
import { getIdentifier } from "../identifiers/_util.ts";
const { factory } = ts;
/**
* replace import statements with `await` statement.... |
<gh_stars>0
// (C) 2007-2022 GoodData Corporation
import { BucketNames, DataViewFacade } from "@gooddata/sdk-ui";
import { IChartConfig } from "../../../interfaces";
import { IMeasureDescriptor, IMeasureGroupDescriptor } from "@gooddata/sdk-backend-spi";
import { IAxis, ISeriesItem } from "../../typings/unsafe";
import... |
import { useState } from 'react'
import { useLocalStorage } from 'react-use'
import { useGate, useStore } from 'effector-react'
import isEmpty from 'lodash.isempty'
import { AppLayout } from '~/layouts/app-layout'
import { Typography } from '~/common/typography'
import { Button } from '~/common/button'
import { useDia... |
<reponame>prefrontalcortex/model-viewer
/**
* @license
* Copyright 2020 Google LLC. 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/lic... |
import { cloneElement, Component, isValidElement, ReactNode } from 'react';
import { findDOMNode } from 'react-dom';
import noop from 'lodash/noop';
import alignElement, { alignPoint } from './domAlign';
import EventManager from '../_util/EventManager';
import TaskRunner from '../_util/TaskRunner';
import { isSamePoin... |
import * as Statements from "../abap/2_statements/statements";
import * as Expressions from "../abap/2_statements/expressions";
import {Issue} from "../issue";
import {ABAPRule} from "./_abap_rule";
import {ABAPFile} from "../abap/abap_file";
import {BasicRuleConfig} from "./_basic_rule_config";
import {Position} from ... |
<filename>src/shapes/Shape.ts
/**
* @module Shapes
*/
/**
* 图形
*/
import { R } from "../R";
import { Point, copyPath, TransformMatrix, createTransformMatrix, isInPolygon } from "../planimetry";
import { DefaultMouseEvent } from "../handler/DefaultMouseEvent";
import { Engine } from "../Engine";
export interface ... |
/* eslint-disable react/no-unstable-nested-components */
import { Input, Slider } from 'antd';
import { SliderRangeProps } from 'antd/lib/slider';
import getFilters from 'api/trace/getFilters';
import dayjs from 'dayjs';
import durationPlugin from 'dayjs/plugin/duration';
import useDebouncedFn from 'hooks/useDebouncedF... |
import {ROWS, COLS, createMove, IState, getInitialState, checkRiddleData} from '../gameLogic';
import {GameModule, GameProps, randomElement} from '../../common/common';
import {riddleLevels} from '../riddles';
import {getPossibleMoves, getStateScoreForIndex0} from '../aiService';
import React, {useState} from 'react';
... |
<filename>functions/devpost.ts<gh_stars>10-100
import fetch from "isomorphic-unfetch";
import { JSDOM } from "jsdom";
import { DevpostHackathon, DevpostProject } from "../interfaces";
/**
* Parses out the Devpost username from a given devpost profile url
* @param devpostUrl Link to users devpost profile
*/
export c... |
// Import all dependencies
import { GatewayStorage, KlasaClient, KlasaClientOptions, Schema, util, Colors } from 'klasa';
import { Node as Lavalink } from 'lavalink';
import { Client as VezaClient } from 'veza';
import { Webhook } from 'discord.js';
import { FSWatcher } from 'chokidar';
import { DashboardClient } from ... |
<reponame>hugendubeldigital/spy4js
/**
* This file is part of spy4js which is released under MIT license.
*
* The LICENSE file can be found in the root directory of this project.
*
*/
import { IGNORE, serialize } from './serializer';
type Comparator = (arg: any) => boolean | void;
type ComparatorOrMapper = (arg:... |
<reponame>justindujardin/angular-rpg<filename>src/game/pow2/core/state-machine.ts
/*
Copyright (C) 2013-2020 by <NAME> and Contributors
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://w... |
<filename>src/queries/getFromAST.ts
import {
DocumentNode,
OperationDefinitionNode,
FragmentDefinitionNode,
ValueNode,
} from 'graphql';
import {
valueToObjectRepresentation,
} from '../data/storeUtils';
import { assign } from '../util/assign';
export function getMutationDefinition(doc: DocumentNode): Ope... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import d3 from 'd3';
import euiThemeLight from '@elastic/eui/dist/eui_theme_... |
import React from 'react';
import styled from '@emotion/styled';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faEye } from '@fortawesome/pro-light-svg-icons';
import { graphql, useStaticQuery, Link } from 'gatsby';
import Img from 'gatsby-image';
interface IAllPostsProps {
posts: IAllPo... |
<reponame>sandutsar/tfjs<filename>link-package/build_deps.ts
/**
* @license
* Copyright 2022 Google LLC. 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://w... |
import type { Player } from '../player/player';
import { Particle } from '../utility/particle';
import { gsap } from "gsap";
import type { Vector } from '../utility/types';
const MINIMUM_ENEMY_SIZE = 10;
const waveEl: any = document.querySelector('#waveEl');
export class Enemy {
static enemies: Enemy[] = [];
static ... |
import { createNodeDescriptor, INodeFunctionBaseParams } from "@cognigy/extension-tools";
// Load the SDK:
import * as AWS from 'aws-sdk';
export interface ILambdaInvokeParams extends INodeFunctionBaseParams {
config: {
connection: {
region: string;
accessKeyId: string;
secretAccessKey: string;
};
fu... |
import React, {
KeyboardEvent,
forwardRef,
useCallback,
useImperativeHandle,
useState,
useReducer,
} from 'react';
import { translate as $t } from '../../helpers';
import { useEffectUpdate } from '../../hooks';
import DisplayIf from './display-if';
function extractValueFromText(
realValue:... |
import { Component, OnInit } from '@angular/core';
import {
NavController,
AlertController,
MenuController,
ToastController,
PopoverController,
ModalController,
LoadingController,
Platform} from '@ionic/angular';
import { ScannedPage } from '../modal/scanned/scanned.page';
import { JwtHelperService }... |
import * as React from "react";
import {
Div,
Cell,
List,
Panel,
Group,
Avatar,
Button,
PanelHeader,
HeaderButton,
HeaderContext,
PanelHeaderContent,
} from "@vkontakte/vkui";
import "@vkontakte/vkui/dist/vkui.css";
import Icon16Add from "@vkontakte/icons/dist/16/add";
impor... |
import { capitalCase } from 'capital-case'
import { SchemaError } from '../errors/SchemaError'
import {
ErrorMessages,
ErrorOptions,
FieldErrorMessages,
ValidationError,
} from '../errors/ValidationError'
import { Cleaner } from '../types'
import { getMessage } from '../utils'
import { AnySchema, cleanAny, setSche... |
<reponame>Adda0/kachna-online
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from "@angular/router";
import {
AbstractControl,
FormBuilder,
ValidationErrors,
ValidatorFn,
Validators
} from "@angular/forms";
import { StatesService } from "../../shared/services/states.servi... |
<reponame>rakannimer/talk
import { Db } from "mongodb";
import { reconstructTenantURL } from "coral-server/app/url";
import { Config } from "coral-server/config";
import { CommentCreatedInput } from "coral-server/graph/tenant/resolvers/Subscription/commentCreated";
import { CommentEnteredModerationQueueInput } from "c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.