text stringlengths 3.3k 33k |
|---|
import { createSelector } from 'reselect'
import { v4 as uuid } from 'uuid'
import { RepeatingOption, RepeatingOptions, Tag, Transaction } from '../addTransaction/state'
import { CURRENCIES, Currency } from '../shared/currencies'
import { currentUserIdSel } from '../shared/selectors'
import { isValidDate } from '../sh... |
import $ from 'jquery';
import Peer, { DataConnection } from 'peerjs';
import qrcode from 'qrcode';
// Available Players
const players = ['x', 'o'];
let globalMe: string;
/** If Origin of Click comes from Jquery (-> Remote) */
let globalJquery: boolean;
/** If Origin of New CLick comes from Jquery (-> Remote) */
let g... |
import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics';
import { Change, InsertChange } from '@schematics/angular/utility/change';
import * as ts from 'typescript';
import {
addSymbolToObject,
findDescribeBlockNode,
findNode,
findNodesInBlock,
getSourceNodes,
insert,
... |
<gh_stars>100-1000
import * as assert from 'assert'
import { Params, getAction, ActionType } from '../types'
import { Handler, Processor, HandlerContext } from '../processor'
import * as BUILT_IN_VALIDATORS from '../validators'
import { AccessorInterface } from '../accessor'
import { DefaultLogger, LoggerInterface } f... |
<reponame>mooyg/hydralite<gh_stars>1-10
/********************************************************************************
* Copyright (C) 2018 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* ... |
<gh_stars>10-100
import { Component, OnInit, OnDestroy, Input, DoCheck } from '@angular/core';
import { GeneralStates } from '../../../hsr-drive/hsr-data/general-states';
import { TorqueLimits } from '../../../hsr-drive/hsr-data/torque-limits';
import { HvlvData } from '../../../hsr-drive/hsr-data/hvlv-data';
import { ... |
import { EventEmitter } from "events";
import { Map as LMap, DomUtil, Point, Marker, Projection } from "leaflet";
import * as three from "three";
interface Option {
/**风向标颜色,默认黑色 */
color?: string;
/**风向标之间的最小间距,抽稀相关,默认[30,30] */
interval?: [number, number];
/**风向标大小-宽高,默认[30,30] ,修改后需重新setData*/
size?: [nu... |
<gh_stars>1-10
import { ClientModule, CoreModule, DevModule, Nullable } from '@thermopylae/core.declarations';
import { Format } from 'logform';
import { format } from 'winston';
// eslint-disable-next-line import/extensions
import type { SyslogConfigSetLevels } from 'winston/lib/winston/config';
import chalk from 'cha... |
/*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access and use.
*/
/// <amd-module name="Facets.ItemCell... |
<reponame>newamericafoundation/digi_survey_assure<filename>api/src/http/controller/survey.ts
import * as crypto from 'crypto';
import { Validator } from 'node-input-validator';
import { prepareAndSendResponseToBlockchain } from '../../helper/blockchain';
import { buildCompositeGroupTree } from '../../helper/composites'... |
import { EventEmitter } from 'events';
import Sblendid, { Service } from '@sblendid/sblendid';
import { validateChecksum } from './checksum';
import { isPacketHeader } from './packet';
import {
CHECKSUM_LENGTH,
EVENT_TYPE,
HEADER_LENGTH,
HEADER1,
HEADER2,
MESSAGE_TYPE,
SCALE_CHARACTERISTIC_UUID,
SCALE_SERVICE... |
<reponame>ryersonlibrary/building-info-system
import { CalEvent } from '../interface';
/**
* Returns the time portion of a Date object in the format hh:mm dd.
*
* @param date The date object to get the time from.
* @returns The formatted time string.
*/
export function formatTime(date: Date): string {
let h;
... |
import { uuid } from '@mpkit/util';
import {
JSONType,
IJSONViewer,
JSONWord,
JSONViewerOptions,
JSONMeasureTextHandler,
JSONItem,
JSONRow,
JSONChunk,
JSONNode,
JSONTree,
JSONPropPath
} from '../../types/json';
import {
createEllipsisJSONChunk,
ELLIPSIS_CHAR,
equa... |
<filename>src/services/TodoistSyncService.ts
import * as _ from "lodash"
import { Dictionary } from "lodash"
import * as moment from "moment"
import { Moment } from "moment"
import * as TodoistClient from "../client/TodoistClient"
import TodoistAll from "../models/todoist/TodoistALl"
import TodoistProject from "../mode... |
import _ from 'lodash';
import React from 'react';
import { Value } from 'slate';
// dom also includes Element polyfills
import { getNextCharacter, getPreviousCousin } from './utils/dom';
import PluginPrism, { setPrismTokens } from './slate-plugins/prism/index';
import PrismPromql, { FUNCTIONS } from './slate-plugins/... |
<reponame>NoveltyMedia/google-ads-api<gh_stars>100-1000
import {
PathTemplate,
Parts,
Comments,
Text,
generateTextParts,
generateText,
} from "./resourceName";
interface TestData {
pathTemplate: PathTemplate;
parts: Parts;
comments: Comments;
text: Text;
}
const testData: TestData[] = [
{
pa... |
<reponame>nanyang24/Grater<gh_stars>1-10
import { Token } from './token';
import { IParserState } from '../parser/type';
import { Chars } from './charClassifier';
// ASCII Table map to Token
export const TokenPickUpFromASCII = [
/* 0 - Null */ Token.Unknown,
/* 1 - Start of Heading */ Token.Unk... |
import { gql } from "@apollo/client";
import {
Box,
Button,
Center,
FormControl,
FormHelperText,
FormLabel,
Heading,
Input,
InputGroup,
InputLeftAddon,
InputRightElement,
SimpleGrid,
Spinner,
Text,
useColorModeValue,
VStack,
} from "@chakra-ui/react";
impo... |
<reponame>nmobregon/angular-svg-round-progressbar
import {
Component,
Input,
Output,
OnChanges,
NgZone,
EventEmitter,
ViewChild,
Renderer,
Inject,
} from '@angular/core';
import {RoundProgressService} from './round-progress.service';
import {ROUND_PROGRESS_DEFAULTS, RoundProgressDefaults} from './rou... |
<filename>src/weave.ts<gh_stars>0
import {params} from './params'
import { SmoothLine, arrSum } from './helpers';
import { GridMachine } from './grid/grid_machine';
import { GridCell } from './grid/grid_machine.models';
export interface Cell{
value: number;
x:number;
y:number;
cx:number;
cy:number;... |
import editJsonFile from "edit-json-file";
import { CoreInitializer } from "./core";
import { InitializationStep, InitializationStepType } from "./utils";
import { Wrapper } from "./wrapper";
import {
CONFIG_FORMATTERS,
CONFIGURATION_FORMAT,
FileProber,
FileWriter,
FileReader,
getFormatFromPath,
humanize... |
<reponame>afoxman/rnx-kit<filename>packages/cli/src/copy-assets.ts
import type { Config as CLIConfig } from "@react-native-community/cli-types";
import { error, info, warn } from "@rnx-kit/console";
import { isNonEmptyArray } from "@rnx-kit/tools-language/array";
import type { PackageManifest } from "@rnx-kit/tools-nod... |
import React, { useEffect } from 'react'
import { PageContent, Page } from 'src/components/layouts/horizontal-layout'
import { useIntl } from 'gatsby-plugin-intl'
import css from './quests.module.scss'
import { graphql, useStaticQuery } from 'gatsby'
import GatsbyImage from 'gatsby-image'
import Slider from 'react-slic... |
<gh_stars>0
import {Subscription} from 'rxjs';
import {MarkdownRenderChild, MarkdownRenderer} from 'obsidian';
import {jTabTypes, jTabClassMap} from './jtab-settings'
import {setJTabColorStyles} from './jtab-utils'
import jTabPlugin from './main'
import {jtab} from '../assets/js/jtab.tardate'
const OBSIDIAN_JTAB_EXAMP... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import React, { useState, useEffect , useContext } from "react";
import Checkout from "./Checkout";
import { CartContext } from "../context/cart";
... |
<filename>__tests__/data/bombSites.ts<gh_stars>10-100
interface SiteTestCase {
map: string;
position: string;
site: 'A' | 'B';
}
export const testCases: SiteTestCase[] = [
// de_mirage
{ map: 'de_mirage', site: 'A', position: '-273.56, -2156.22, -175.38' },
{ map: 'de_mirage', site: 'A', position: '-585.13, -226... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Ref } from 'vue'
import dayjs from 'dayjs'
import { store } from '@/store'
import { sandboxedEval } from '@/utils/sandbox'
import { IAchievementStore, UIAFMagicTime, UIAF } from '@/typings/Achievement'
import achevementsAmos from '@/plugins/amos/achieveme... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as PIXI from 'pixi.js'
import { Level } from '../common/level'
import { AppReduce } from './app'
interface ListItem {
key: string
model: PIXI.Sprite & { droped: boolean, dropCount: number }
active: boolean
}
interface RemoveListItem {
data: List... |
import { harvester } from "roles/harvester";
import { builder } from "roles/builder";
import { upgrader } from "roles/upgrader";
import { repairer } from "roles/repairer";
import * as role from "headers/role";
import { PARTS_CONFIG, bodyCost } from "lib/creep_structure";
export function processRooms() {
// Clear th... |
/// <reference path="node_modules/typescript/lib/lib.esnext.d.ts" />
/* eslint-disable no-console, import/max-dependencies */
import * as fs from 'fs';
import * as path from 'path';
import { loader } from 'webpack-loader-helper';
import { Configuration, Options, Entry } from 'webpack';
import webpack = require('webpack... |
import React, { useState, useEffect } from 'react';
import { StyleSheet, View, TextInput, ScrollView, FlatList, TouchableOpacity, Image, Text } from 'react-native';
import { Card } from 'react-native-paper';
import { useNavigation } from '@react-navigation/native';
import { FontAwesome } from '@expo/vector-icons';
impo... |
import * as mm from '@magenta/music/es5'
import * as _ from 'lodash-es'
import { Transport } from 'tone';
export enum ModelCheckpoints {
MelodyRNN = 'https://storage.googleapis.com/magentadata/js/checkpoints/music_rnn/melody_rnn',
MelodywithChordsRNN = 'https://storage.googleapis.com/magentadata/js/checkpoints/mu... |
<reponame>usethesource/rascal-language-servers
/*
* Copyright (c) 2018-2021, NWO-I CWI and Swat.engineering
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source ... |
/**
* @public
*/
export function sleep(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms))
}
import * as stream from 'stream'
/**
* @public
*/
export function readableStreamEnd(readable: stream.Readable) {
return new Promise<void>((resolve, reject) => {
readable.on('end', () => {
re... |
import React, { useMemo, useState, useCallback } from 'react'
import { useDropzone } from 'react-dropzone'
import path from 'path'
import * as fs from 'fs'
import q from '../utils/db'
import objDiff from '../utils/objDiff'
import styles from './File.css'
const { dialog } = require('electron').remote
const ExcelJS = re... |
/**
* DATES
*/
export const getMinDate = function (pList, pFormat, pMinDate) {
let vDate = new Date();
if (pList.length <= 0) return pMinDate || vDate;
vDate.setTime((pMinDate && pMinDate.getTime()) || pList[0].getStart().getTime());
// Parse all Task Start dates to find min
for (let i = 0; i < pList.leng... |
import { mkdirSync, writeFileSync, existsSync } from 'fs';
import { logger } from 'flex-plugins-utils-logger';
import { Builder, WebDriver, WebElement, until, By, logging } from 'selenium-webdriver';
import chrome from 'selenium-webdriver/chrome';
import { Cookies, Cookie } from './console-api';
import { testParams }... |
<reponame>sabman/toolkit
import { Deck } from '@deck.gl/core';
import { format as d3Format } from 'd3-format';
import { CartoPopupError, popupErrorTypes } from '../errors/popup-error';
/**
* Default options for the Popup
*/
const defaultOptions = {
closeButton: true,
containerClassName: 'carto-popup',
contentC... |
import * as React from 'react';
import { ClusterServiceVersionModel } from '@odf/shared/models';
import { Status } from '@odf/shared/status/Status';
import { HumanizeResult, RowFunctionArgs } from '@odf/shared/types';
import {
humanizeBinaryBytes,
humanizeDecimalBytesPerSec,
humanizeIOPS,
humanizeLatency,
} fro... |
import * as vscode from 'vscode';
import * as path from 'path';
import { t, gettext } from 'ttag';
import * as map from 'lodash/map';
import * as msg from './qorus_message';
import { instance_tree } from './QorusInstanceTree';
import { projects, QorusProject, config_filename } from './QorusProject';
import { QorusProje... |
<filename>packages/modular-scripts/src/__tests__/index.test.ts
import execa from 'execa';
import rimraf from 'rimraf';
import puppeteer from 'puppeteer';
import tree from 'tree-view-for-tests';
import path from 'path';
import fs from 'fs-extra';
import {
getDocument,
getQueriesForElement,
queries,
} from 'pptr-t... |
<filename>examples/main.ts
import { version, File, Media, Reflect, Regex, Browser } from 'nodejs-shared';
import path from 'path';
// Package version
version;// '1.0.0'
// Returns the file base name
File.basename('/tmp/sample.html');// 'sample'
// Change permissions
File.chmod('sample.txt', 0o755);
// C... |
<reponame>chigix/eliza-instrumentality<gh_stars>1-10
import * as iconv from 'iconv-lite';
import * as fs from 'fs';
import { ScriptTemplate } from './interfaces';
import { VerbProfile, NounProfile, AdjProfile } from './interfaces';
import { replaceAll } from './utils';
export function notEmpty<T>(value: T | null | und... |
import { Vector2, Mesh, Vector3, ShaderMaterial, Scene, FloatArray, StandardMaterial, RawTexture3D, MeshBuilder, RawTexture, Effect } from "babylonjs"
import { getDefaultPositionShader, positionShader } from "./positionShader"
import { GPGPU } from '../lib/GPGPU'
import { makeNoise3D } from "open-simplex-noise"
const ... |
import { Injectable } from '@angular/core';
import { Observable, of, forkJoin } from 'rxjs';
import { flatMap, map, catchError } from 'rxjs/operators';
import * as moment from 'moment';
import * as _ from 'lodash';
import { ApiService } from './api';
import { DocumentService } from './document.service';
import { Comme... |
<reponame>msftenhanceprovenance/nteract
import * as monaco from "monaco-editor";
import { Observable, Observer } from "rxjs";
import { first, map } from "rxjs/operators";
import {
childOf,
JupyterMessage,
ofMessageType,
Channels,
} from "@nteract/messaging";
import {
CompletionResults,
CompletionMatch,
c... |
/*!
* Draggabilly v2.1.1
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
*/
/// <reference path="get-size.d.ts" />
/// <reference path="unidragger.d.ts" />
/// <reference path="node_modules/@types/jquery/index.d.ts" />
// -------------------------- modules -------------------------- //... |
<filename>BaseScaffold.ts<gh_stars>0
import {BeDefinitiveVirtualProps, VisualHints, MayItBe as mib, ssn, PropPresentation, ActionPresentation, MemberPresentation} from './types';
import { IObserveMap } from 'be-observant/types';
import {html} from './html.js';
import { camelToLisp } from './camelToLisp.js';
import { ca... |
declare global {
function G(...globalHolders: any[]): any;
}
export declare function DoNothing(...args: any[]): void;
export declare function DN(...args: any[]): void;
export declare function QuickIncrement(name?: string): any;
export declare function E<E1, E2, E3, E4, E5, E6, E7, E8, E9, E10, E11, E12, E13, E14, E... |
import React from "react";
import { Container, Row, Col, Button } from "react-bootstrap";
import "../styles/roadmap.css";
import samurayImage from "../assets/samuray-image.png";
import Leave1 from "../assets/leaves-img/leave-1.png";
import Leave2 from "../assets/leaves-img/leave-2.png";
import Leave3 from "../assets/le... |
<gh_stars>10-100
import { Injectable } from '@angular/core';
/**
* Instead of using the default rxdb-import,
* we do a custom build which lets us cherry-pick
* only the modules that we need.
* A default import would be: import RxDB from 'rxdb';
*/
import {
CollectionsOfDatabase,
createRxDatabase,
isRxCollect... |
/**
* Support for interacting with the webapp's API.
*
* See the Django-side code under api/ for the implementation of this API.
*
* Note: this is the only non-trivial bit of TypeScript in the project at the moment because it is
* useful to document the various types which these functions can return. It also prov... |
import path from 'path'; //Gets the system path
import CustomClient from './custom_client'; //Gets the commando library
import messages from './objects/messages.json';
const welcome = messages.welcome; //require('./welcome.json');
const edgelord = process.env.SHILOH_USER_GOODFACE;
import axios ... |
<reponame>windingtree/org.id-cli
import { BigNumber } from 'ethers';
import type { ORGJSON } from '@windingtree/org.json-schema/types/org.json';
import type {
ProjectKeysReference,
ProjectOrgIdsReference
} from '../schema/types/project';
import { KnownProvider, OrgIdContract } from '@windingtree/org.id-core';
impor... |
//
// Copyright © 2020 Province of British Columbia
//
// 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 l... |
<filename>src/terminalManager.ts<gh_stars>10-100
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
import * as os from 'os';
import * as child_process from 'child_process';
import { Terminal } from './terminal';
import { WebviewState } from './interface';
const TMUX_SOCK_NAME = ... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
LitElement,
html,
TemplateResult,
css,
PropertyValues,
CSSResultGroup,
} from 'lit';
import { customElement, property, state } from "lit/decorators";
import {
HomeAssistant,
hasConfigOrEntityChanged,
hasAction,
ActionHandlerEvent,
ha... |
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
import * as utils from '@iobroker/adapter-core'
import { ControlCommand, InfoData, Response, UsbTransmitterClient } from 'elero-usb-transmitter-client'
import { Job, scheduleJob } from 'node-schedule'
declare gl... |
import { updateReplySed } from 'actions/svarpased'
import { resetValidation } from 'actions/validation'
import { PersonManagerFormProps, PersonManagerFormSelector } from 'applications/SvarSed/PersonManager/PersonManager'
import HelpIcon from 'assets/icons/HelpIcon'
import Input from 'components/Forms/Input'
import Sele... |
<gh_stars>1-10
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import * as dotenv from "dotenv";
import "hardhat-deploy";
import "hardhat-deploy-ethers";
import "hardhat-gas-reporter";
import "hardhat-typechain";
import { HardhatUserConfig } from "hardhat/config";
import "solidity-coverage";
... |
import { Event } from './Event';
import { IEventMapper } from './IEventMapper';
import { EventDispatcherBase } from './EventDispatcherBase';
import { EventBase } from '@awayjs/core';
import { release } from '@awayfl/swf-loader';
import { assert } from '@awayjs/graphics';
import { SecurityDomain } from '../SecurityDoma... |
import {
CubeIcon,
LightningBoltIcon,
OfficeBuildingIcon,
TruckIcon,
} from '@heroicons/react/solid'
import { useContext, useState } from 'react'
import { useMutation, useQuery, useQueryClient } from 'react-query'
import {
jettisonShipCargo,
listMyShips,
transferShipCargo,
} from '../../../api/routes/my'
... |
<reponame>anzerr/http.ts<gh_stars>0
import 'reflect-metadata';
import * as events from 'events';
import * as http from 'http.server';
import {Module} from 'inject.ts';
import is from 'type.util';
import {METADATA, METHOD} from './enum';
import util from './util';
import Controller from './server/controller';
class Se... |
/*
Copyright 2018-2020 National Geographic Society
Use of this software does not constitute endorsement by National Geographic
Society (NGS). The NGS name and NGS logo may not be used for any purpose without
written permission from NGS.
Licensed under the Apache License, Version 2.0 (the "License"); you may n... |
<gh_stars>0
import { AABB } from './AABB';
import { ScalarField } from './ScalarField';
import { createSphereScalarField } from './sphereScalarField';
import { Point3D } from './basicDataTypes';
import { Face3, Geometry, Mesh, Vector3, MeshBasicMaterial } from 'three';
import { flatten } from 'lodash';
function adapt(... |
<reponame>timfitzzz/naive-gh-events<filename>__tests__/testData/ForkEventTests.ts<gh_stars>1-10
import { TypeTestData } from './';
const ForkEventTests: TypeTestData = {
testEvents: {
none: [],
},
};
ForkEventTests.testEvents.none = [
{
propSets: [
{
date: new Date('2021-02-13T05:22:52Z'),... |
<reponame>projecttacoma/fqm-execution<gh_stars>1-10
import { PopulationType, FinalResult, Relevance, CareGapReasonCode } from './Enums';
import * as cql from './CQLTypes';
import { ELM } from './ELMTypes';
import { QueryInfo } from './QueryFilterTypes';
import { GracefulError } from './errors/GracefulError';
/**
* Op... |
import React, { useEffect, useState } from 'react'
import { SideBer } from '../components/sidber'
import { ToggleButton } from '../components/togglebutton'
import InputRange from '../components/input-range'
import Input from '../components/input'
import { tourActions } from '../atoms/tourActions'
import { Tour } from '... |
export const selectionIsEmpty = (selection: any) => {
return selection.anchorOffset === selection.focusOffset
}
// *************************sortByStart version*************************
export const splitWithOffsets = (text: string, offsets: { start: number; end: number; mark?: boolean, content?: string; children?: ... |
import { OCPPChangeConfigurationCommandResult, OCPPConfigurationStatus } from '../../types/ocpp/OCPPClient';
import { ActionsResponse } from '../../types/GlobalType';
import ChargingStationStorage from '../../storage/mongodb/ChargingStationStorage';
import Constants from '../../utils/Constants';
import { LockEntity } ... |
class _LunarCalendarVn
{
private static getJulianDayCount(date: Date, timeZoneOffset = 0): number
{
return this.getJulianDayCountFromUniversalDate(date) - timeZoneOffset / 24;
}
private static getDate(julianDayCount: number, timeZoneOffset = 0): Date
{
return this.getUniver... |
import * as fs from 'fs';
import {OrderList} from '../orders';
import Fuse from 'fuse.js';
import {MessageButton, reply_command} from '../telegram/BotActions';
import assert from 'assert';
import {IIsland} from '../types';
import {get_island} from "../island_orders";
import Channel from "@nodeguy/channel";
import {Call... |
import React, { CSSProperties, ReactNode, useEffect, useState } from 'react'
import styled from 'styled-components'
import { STYLED_VERSION } from '../base-table/utils'
import { isLeafNode } from '../common-utils'
import { ArtColumn } from '../interfaces'
const TreeDiv = styled.div`
.group {
margin: 8px 0;
.... |
import Axios, { AxiosError } from 'axios'
import { BrokenCircuitError, ConsecutiveBreaker, Policy } from 'cockatiel'
import { DEFAULT_REQUEST_TIMEOUT, DEFAULT_REST_ENDPOINT, DEFAULT_SOCKET_ENDPOINT } from './constants'
import { ActionErrorProperties, ConnectionFaultError, GetErrorInstance, RequestError, SessionError }... |
// v2ex的扩展
import {elemOf, Msg, showMsg} from "do-utils"
import {request} from "do-utils/dist/utils"
// 回复
type Reply = {
// 发表回复的用户
member: {
// 用户名
username: string,
// 用户头像(大)
avatar_large: string,
},
// 用户发表的内容(原始)
content: string
// 用户发表的内容(HTML处理化后)
content_rendered: string
// 回复... |
import { ChainId, Token } from '@pancakeswap/sdk'
import { Tags, TokenInfo, TokenList } from '@uniswap/token-lists'
import { useMemo } from 'react'
import uniqBy from 'lodash/uniqBy'
import groupBy from 'lodash/groupBy'
import fromPairs from 'lodash/fromPairs'
import { useSelector } from 'react-redux'
import { createSe... |
///<reference path="typings/index.d.ts"/>
///<reference path="services.ts"/>
///<reference path="app.ts"/>
"use strict";
import IonicPopupService = ionic.popup.IonicPopupService;
import IStateService = ng.ui.IStateService;
import IScope = angular.IScope;
import IStateParamsService = ng.ui.IStateParamsService;
import I... |
// Copyright (c) <NAME>. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as Generator from 'yeoman-generator';
import * as lodash from 'lodash';
import * as chalk from 'chalk';
import { GeneratorTeamsAppOptions } from './GeneratorTeamsAppOp... |
<gh_stars>0
import { ContractWrappersError, ECSignature, ExchangeContractErrs, ZeroEx } from '0x.js';
import { OrderError } from '@0xproject/order-utils';
import { constants as sharedConstants, EtherscanLinkSuffixes, Networks } from '@0xproject/react-shared';
import { Provider } from '@0xproject/types';
import { BigNum... |
import * as React from "react";
import {
MDBBtn,
MDBModal,
MDBModalBody,
MDBModalHeader,
MDBModalFooter,
MDBContainer,
MDBRow,
MDBCol,
MDBPopover,
MDBPopoverBody
} from "mdbreact";
import {
DAOConfigForm,
MembersForm,
SchemesForm,
fromDAOMigrationParams,
fromJSON,
DAOForm,
toDAOMigra... |
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');
import * as shared from './TestShared';
const DefaultBuildContext: string = shared.formatPath("a/w/**");
const DefaultDockerFileInput = shared.formatPath("a/w/**/Docke... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, {
useState, useEffect, useRef, useMemo, useCallback,
} from 'react';
import { UserPicture } from '@growi/ui';
import CodeMirror from 'codemirror/lib/codemirror';
import { format } from 'date-fns';
import { useTranslation } from 'react-i18next';
import {
Modal, ModalHeader, ModalBody, ModalFooter,
} f... |
import React from 'react';
import styled from 'styled-components';
import { Trans } from '@lingui/macro';
import { useHistory } from 'react-router';
import {
TooltipTypography,
Flex,
CardKeyValue,
Tooltip,
More,
Loading,
FormatLargeNumber,
Link,
} from '@aedge/core';
import {
Box,
Card,
CardConten... |
import fs from 'fs';
import path from 'path';
import { promisify } from 'util';
import chalk from 'chalk';
import boxen from 'boxen';
import table from 'text-table';
import ora from 'ora';
import indent from 'indent-string';
import type { TestResult } from '@acot/types';
import logUpdate from 'log-update';
import logSy... |
import {
CaretDownOutlined,
EllipsisOutlined,
PlusCircleOutlined,
} from '@ant-design/icons';
import { Dropdown, Input, Menu, Popconfirm, Tooltip, Tree } from 'antd';
import type { EventDataNode, TreeProps } from 'antd/lib/tree';
import { compact, debounce, flattenDepth } from 'lodash';
import type { Key } from '... |
/**
* 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.
*/
import {AnyNode, AnyNodes, AnyRoot, ConstJSSourceType} from "@internal/ast";
import {
SourceLocation,
extractSourceLocationRange... |
import React, { Component } from 'react'
import debounce from 'lodash/fp/debounce'
import noop from 'lodash/fp/noop'
import { remoteFunction } from '../../util/webextensionRPC'
import {
IndexDropdownNewRow,
IndexDropdown,
IndexDropdownRow,
} from '../components'
import { PageList } from '../../custom-lists... |
<reponame>near-daos/astro-ui
import { useCallback, useEffect, useState } from 'react';
import get from 'lodash/get';
import isNil from 'lodash/isNil';
import omitBy from 'lodash/omitBy';
import { NotificationsService } from 'services/NotificationsService';
import { useWalletContext } from 'context/WalletContext';
impor... |
<gh_stars>1-10
/*
* This file is necessary to declare global functions that might also be included by `--lib dom`.
* Due to a TypeScript bug, these cannot be placed inside a `declare global` block in index.d.ts.
* https://github.com/Microsoft/TypeScript/issues/16430
*/
//
// Timer Functions
//
declare function cle... |
import {
BrowserWindow,
app,
systemPreferences,
ipcMain,
globalShortcut,
shell,
Tray,
Menu,
} from "electron";
import i18n from "i18next";
import Backend from "i18next-node-fs-backend";
import { autoUpdater } from "electron-updater";
import { RegisterKeybinds, exitApp } from "./utils/keybinds";
import {... |
<gh_stars>0
/* eslint-disable */
import axios from 'axios'
import _ from 'underscore'
import hex from 'hex-string'
import {
TotalBalance,
AddressBalance,
Transaction,
RPCConfig,
TxDetail,
Info,
SinglePastelID,
} from './components/AppState'
import Utils, { NO_CONNECTION } from './utils/utils'
import Sent... |
<filename>utils/view11.ts
import { devices, webkit, WebKitBrowser } from 'playwright';
import { ProfileModel } from '../models/Profile.model';
import { delay } from './delay';
import Axios from 'axios';
function getRandomArbitrary(min: number, max: number) {
return Math.floor(Math.random() * (max - min) + min);
}
... |
<filename>packages/dev/materials/src/shadowOnly/shadowOnlyMaterial.ts
import { Nullable } from "core/types";
import { SerializationHelper } from "core/Misc/decorators";
import { Matrix } from "core/Maths/math.vector";
import { Color3 } from "core/Maths/math.color";
import { BaseTexture } from "core/Materials/Textur... |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import * as commands from "./commands";
import { ENABLE_PATHS, ENABLEMENT_FLAG, EXTENSION_NS } from "./constants";
import { DenoTextDocumentContentProvider, SCHEME } from "./content_provider";
import { DenoDebugConfigurationProvider } from "./d... |
<reponame>azatsarynnyy/theia
/********************************************************************************
* Copyright (C) 2018 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.... |
<filename>packages/driver/src/cy/commands/actions/click.ts
import _ from 'lodash'
import $ from 'jquery'
import Promise from 'bluebird'
import $dom from '../../../dom'
import $utils from '../../../cypress/utils'
import $errUtils from '../../../cypress/error_utils'
import $actionability from '../../actionability'
const... |
/*!
* cookie
* Copyright(c) 2012-2014 <NAME>
* Copyright(c) 2015 <NAME>
* Copyright(c) 2021 <NAME>
* MIT Licensed
*/
const pairSplitRegExp = /; */;
/**
* RegExp to match field-content in RFC 7230 sec 3.2
*
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
* field-vchar = VCHAR / obs-text
* ob... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
AdapterSelectOption,
AdapterSettings,
SelectAdapterSettings,
} from "@iobroker/create-adapter/build/core";
import Checkbox from "@material-ui/core/Checkbox";
import Grid from "@material-ui/core/Grid";
import IconButton from "@material-ui/core/IconButton";
import Input from "@material-ui/core/Input";
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.