text stringlengths 3.08k 15.5k |
|---|
import { useCallback, useState, useRef, useEffect } from "react";
import { usePosition } from "use-position";
import { getDistance } from "geolib";
import {
format,
parse,
differenceInMilliseconds,
isMatch,
isPast,
add,
} from "date-fns";
import Helmet from "react-helmet";
import useStayAwake from "use-stay... |
<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*-----------------------------------------------... |
import Vue from 'vue'
import consola from 'consola'
import {
COMPONENT_MANAGER_EVENTS,
ComponentManagerAddEvent,
HighlightComponentEvent
} from '../events'
import CloneComponentMixin from './CloneComponentMixin'
import AddElementsMixin from './AddElementsMixin'
import ComponentManagerValueMixin from './ComponentM... |
// cSpell:ignore uplot
import classNames from 'classnames';
import React from 'react';
import { HeatMapChart } from './HeatMapChart';
import { getLabelsForLineChart, LineChart, LineChartProps } from './LineChart';
import { PercentilesChart } from './PercentilesChart';
import {
AggregationChartInfo,
AggregationChar... |
import * as React from "react";
import { Trans, Plural } from "@lingui/macro";
import {
Column,
Table_Deprecated,
SortableHeaderCell,
SpacingBox,
InfoBoxInline,
Icon,
} from "@dcos/ui-kit";
import { SystemIcons } from "@dcos/ui-kit/dist/packages/icons/dist/system-icons-enum";
import { iconSizeXs } from "@dc... |
<gh_stars>1-10
export class PreloadRessourcePair
{
constructor(public filename: string,
public key: string)
{
//
}
}
export class ConfigurablePreloadRessourcePair extends PreloadRessourcePair
{
constructor(filename: string, key: string, public options: any)
{
super(f... |
<reponame>tfriedr/slack-wrench
import {
ActionConstraints,
AnyMiddlewareArgs,
App,
ConversationStore,
MemoryStore,
Middleware,
SlackAction,
SlackViewAction,
} from '@slack/bolt';
import { WebClient } from '@slack/web-api';
import uuid from 'uuid/v4';
import { Interaction } from './types';
export inter... |
/*
* Permissions management system, define access level for each of
* your server apis, and restrict users by giving them access levels
*
* Copyright (C) 2020 Intuition Robotics
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
import React from 'react'
import { wrapComponent } from 'colay-ui'
import * as R from 'colay/ramda'
import * as C from 'colay/color'
import * as PIXI from 'pixi.js'
import { useTheme } from '@core/theme'
import { useEdge } from '@hooks'
import { contextUtils, calculateVisibilityByContext } from '@utils'
import { EDGE_C... |
<gh_stars>1-10
import { ComputeConfig } from '../types';
import { checkComputeConfig, fetcher, gqlFetcher } from '../utils';
interface TokenResult {
id: string;
createdAt: string;
updatedAt: string;
address: string;
name: string;
symbol: string;
description: string;
decimals: number;
tokenSupply: str... |
<reponame>technovangelist/readwisesync
import {
ISource,
IAllSources,
IHighlight,
IAllHighlights,
ConfigOptions,
} from "./types.ts";
import {
getConfig,
setConfig,
writeDestinationFile,
getLocalMetadata,
getLocalExtras,
getDestinationFileName,
getDestinationFileContent,
} from "./filetools.ts";... |
import * as React from "react";
import { IClusterServiceClass } from "../../shared/ClusterServiceClass";
import { IServiceBindingWithSecret } from "../../shared/ServiceBinding";
import { IServicePlan } from "../../shared/ServiceCatalog";
import { IServiceInstance } from "../../shared/ServiceInstance";
import { Forbidd... |
<reponame>dcecile/wotan
export {};
type EmptyObject = {};
nonExistent();
declare function nonGeneric(): void;
nonGeneric();
nonGeneric('foo');
fn(1, 2, 3);
import {fn as jsFn, arrayFn, multiParam, weirdMultiParam, nonGenericJs, JsClass, RealJsClass, functionTyped, notGeneric} from './js';
nonGenericJs();
jsFn();... |
export interface BSEventHandler { (sender: object, eventObject: BSEvent): void }
export interface BSEvent {
EventData?: { Event?: any };
DataSourceName: string;
}
export interface BSSortingRequestEvent extends BSEvent {
EventData?: {
Event?: any,
PropName?: string,
Asc... |
import type JSTT from 'json-schema-to-typescript';
import type { GetApiDataByIdResSuccess, GetApiDataByIdResFailed } from '@/types';
export * from './urlParser';
declare const jstt: typeof JSTT;
/**
* 把多行文本注释转换为单行
* @param content
* @returns
*/
export function formatComment2SingleLine(content = '') {
return con... |
import { CanvasRenderer } from "./renderers/canvas"
import { WebGLRenderer } from "./renderers/webgl"
import wasm from "./wasm-module-types"
// Parcel に wasm をロードさせずコピーだけさせてパスを取る方法がこれしか思い付かなかった
const wasmPath = document.querySelector<HTMLLinkElement>(`link[data-wasm-file]`).href
const nextFrame = () => new Promise((r... |
import * as assert from 'assert';
import { Buffer } from 'buffer';
import { Edge, node as apiNode } from 'llparse-builder';
import Node = apiNode.Node;
type EdgeMap = ReadonlyMap<Node, ReadonlyArray<Edge> >;
type EdgeKind = 'noAdvance' | 'advance';
const COLOR_ADVANCE = 'black';
const COLOR_NO_ADVANCE = 'blue';
con... |
<reponame>pnpm/pnpm-shrinkwrap
import logger from '@pnpm/logger'
import {PackageJson} from '@pnpm/types'
import {refToRelative} from 'dependency-path'
import R = require('ramda')
import {SHRINKWRAP_VERSION} from './constants'
import {
ResolvedDependencies,
ResolvedPackages,
Shrinkwrap,
} from './types'
export fu... |
// Copyright 2020 Vircadia 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
<gh_stars>0
import { Component,
OnInit,
OnDestroy,
AfterViewInit,
Inject,
Input,
SkipSelf,
HostBinding,
HostListener,
Renderer2,
ElementRef,
ComponentFactoryResolver,
ViewContainerRef,
... |
<reponame>birkskyum/luma.gl<filename>modules/api/src/adapter/device.ts
// luma.gl, MIT license
import StatsManager, {lumaStats} from '../utils/stats-manager';
import type {default as Buffer, BufferProps} from './resources/buffer';
import type {default as Texture, TextureProps} from './resources/texture';
import type {d... |
<reponame>GenimousChain/gchain-ts-lib<gh_stars>0
import { Log } from "../../src/log";
import { Contract } from "../../src/contract";
import { NAME } from "../../src/account";
class Car implements Serializable {
name: string;
year: i32;
toString(): string {
return "name: " + this.name + ". year: " ... |
<filename>app/scripts/modules/core/src/diffs/viewChangesLink.component.ts
import { extend } from 'lodash';
import { IController, IComponentOptions, module } from 'angular';
import { IModalInstanceService, IModalService } from 'angular-ui-bootstrap';
import { IBuildDiffInfo, ICreationMetadata, ICreationMetadataTag, IJe... |
<filename>server/providers/user.ts
import {Collection, ObjectID} from "mongodb";
import * as bcryptjs from "bcryptjs";
import {validate, ValidationError} from "jsonschema";
import {UserInterface, Visit} from "../../common/interfaces/User";
import {userSchema} from "../../common/schemas/user";
import {userEditSchema} f... |
// This code is derived from Deck.gl. Copyright MIT, 2020 Urban Computing Foundation
// Here Maplibre is used.
import { Deck, WebMercatorViewport, MapView, Layer } from '@deck.gl/core';
import { Map } from 'maplibre-gl';
function getDeckInstance({ map, gl, deck }) {
// Only create one deck instance per context
if ... |
import { useState, Children, useEffect, useCallback } from 'react'
import Slider from 'react-slick'
import ArrowForwardIcon from '@mui/icons-material/ArrowForward'
import ArrowBackIcon from '@mui/icons-material/ArrowBack'
import { IconButton } from '../IconButton'
import { Box } from '@mui/material'
import { theme } fr... |
<reponame>cname87/project-perform
/**
* This module runs a http(s) server.
* The base controllers, handlers and an object containing the database
* connection, servers and express app are passed in.
* It loads common express middleware and responds to
* incoming web requests by calling the appropriate routing func... |
<filename>src/api/requirement/requirement.ts
/** 供应商管理 */
import { get, post, put } from '@/utils/ajax'
// import { Approve } from '@/api/servicePlatform/examination'
export const enum API {
// /** 查询供应商列表(get) */
// list = 'service-platform/Vendor/findAllVendor',
// /** 查看供应商详情(post) */
// info = 'service-pla... |
/*
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a... |
export const deferUntil = <E extends unknown>(
e: E,
f: (x: E) => boolean,
d = 1000 * 5,
): Promise<E | never> =>
new Promise((resolve, reject) => {
if (f(e)) resolve(e);
else {
const t1 = setTimeout(() => {
reject(new Error("Timed out"));
t1 && clearTimeout(t1);
t2 && clea... |
/**
* Copyright 2018 Shift Devices AG
* Copyright 2021 Shift Crypto AG
*
* 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... |
import {
FORMAT,
VALID_RANGE,
FORMAT_INPUT,
MATCH_BEHIND_DECIMAL,
TYPE,
} from "../libs/constants";
type LAT_LONG = string | number;
interface processedLAT_LONG {
value: Array<number> | null;
signed: boolean;
format: FORMAT | null;
input: LAT_LONG;
}
/**
* Creates a new COORDS object
*
* @class
*... |
import { lazy } from 'react';
import type {
ExportFormat,
Field,
QueryBuilderProps,
RuleGroupType,
RuleGroupTypeIC,
RuleType
} from 'react-querybuilder/src/types';
import { generateID } from 'react-querybuilder';
const AntDActionElement = lazy(() => import('./components/AntDActionElement'));
const AntDDrag... |
<filename>src/test/reporters/html.ts
/**
* Copyright (c) Microsoft Corporation.
*
* 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
*
* Unl... |
<gh_stars>1-10
import {
ItemType,
ItemState,
GraphType,
GraphState,
LabelState,
EditorCommand,
GraphCommonEvent,
GraphNodeEvent,
GraphEdgeEvent,
GraphCanvasEvent,
GraphCustomEvent,
} from '@/common/constants';
import { G } from '@antv/g6/types/g';
interface LabelStyle {
// 文本颜色
fill?: string;... |
<gh_stars>0
export interface Gmail2MastodonSettingFile {
/**
* max Toot length on your instance
*/
maxTootLength?: number;
/**
* E-Mail adresses that you want to notify
*/
targetEMailAdresses?: string[];
/**
* The mastodon instance this bot use
*/
mastodonInstance?: string;
/**
* Your... |
<filename>src/lib/socket.ts
import IOStream from './iostream';
import parser, { Decoder, Encoder } from './parser';
import { EventEmitter } from 'stream';
import { debug_factory } from './debug';
const emit = EventEmitter.prototype.emit
const on = EventEmitter.prototype.on
const slice = Array.prototype.slice
const de... |
import { AppMediaContent } from '@interfaces/app/appMediaContent';
import { AppProposal } from '@interfaces/app/appProposal';
import { StoryCommunity } from '@interfaces/story/storyCommunity';
import { BeneficiaryAttributes } from '@interfaces/ubi/beneficiary';
import { UbiClaimLocation } from '@interfaces/ubi/ubiClaim... |
<filename>test/index.ts
import { customAni, createAni } from "../src/core/ani/AniCreator";
import { ease } from "../src/core/ani/Ease";
import { RectAni } from "../src/core/ani/RectAni";
import { TextAni } from "../src/core/ani/TextAni";
import { TextLinesAni } from "../src/core/ani/TextLinesAni";
import { Rect } from ... |
<reponame>MohammadMD1383/js-interactive
import * as vscode from "vscode";
import * as path from "path";
import * as fs from "fs";
export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(
vscode.commands.registerCommand("js-interactive.startSession-js", () => {
createWebView(contex... |
<reponame>Rush/rx-angular<gh_stars>0
import { ConnectableObservable, Observable, Subject, Subscription } from 'rxjs';
import { map, pairwise, publishReplay, startWith, tap } from 'rxjs/operators';
import { constantPluck } from './utils';
export interface DifferResult<T> {
enter: T[],
update: T[],
exit: T[],
}
/... |
<reponame>phshy0607/node-swqqze
import styled from "styled-components";
export const StyledDocument = styled.main`
width: calc(100vw - var(--sidebar-width));
height: calc(100vh - var(--header-height));
display: inline-block;
overflow-y: auto;
position: relative;
@media (max-width: 768px) {
width: 100v... |
<reponame>luna215/molstar-proto
/**
* Copyright (c) 2017 Mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { LinkType } from '../../../model/types'
import { IntraUnitLinks } from './data'
import Unit from '../../unit'
import { IntAdjacencyGraph } from 'mo... |
<reponame>Lemonilla/phantasmal-world<filename>src/core/data_formats/parsing/ninja/motion.ts
import { ANGLE_TO_RAD } from "./index";
import { Cursor } from "../../cursor/Cursor";
import { Vec3 } from "../../vector";
const NMDM = 0x4d444d4e;
export type NjMotion = {
motion_data: NjMotionData[];
frame_count: num... |
import { ITimeExtractorConfiguration, ITimeParserConfiguration } from "../baseTime"
import { RegExpUtility } from "@microsoft/recognizers-text";
import { PortugueseDateTime } from "../../resources/portugueseDateTime";
import { ICommonDateTimeParserConfiguration } from "../parsers"
import { IDateTimeUtilityConfiguration... |
/* eslint-disable @typescript-eslint/camelcase, camelcase */
import {WindowEvent, ApplicationEvent} from 'openfin/_v2/api/events/base';
import {injectable} from 'inversify';
import {Identity} from 'openfin/_v2/main';
import {Signal} from 'openfin-service-signal';
import {AsyncInit} from '../controller/AsyncInit';
imp... |
<reponame>pulumi/pulumi-aws-native<gh_stars>10-100
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
i... |
<filename>src/commands/Utility/verify.ts
import { setTimeout } from "node:timers/promises"
import { MessageEmbed, TextChannel } from "discord.js"
import { colors, ids } from "../../config.json"
import { client } from "../../index"
import { crowdinVerify } from "../../lib/crowdinverify"
import { db, DbUser } from "../... |
<gh_stars>1-10
import { AriaRegister, AriaGrid } from '@ephox/echo';
import { Arr, Fun } from '@ephox/katamari';
import { Event, Events, Bindable } from '@ephox/porkbun';
import { Attr, Class, Classes, DomEvent, Element, Focus, Insert, InsertAll, MouseEvent, Remove } from '@ephox/sugar';
import * as Structs from '../ap... |
<reponame>petervdn/trigger-riot
import { IMatrixItem, IPosition, ITimeSlot } from '../data/interface';
import BeatLabelTypes from '../data/enum/BeatLabelTypes';
import { getTimeSlotsInRangeForMatrixItems } from './matrixUtils';
export function drawWaveForItems(
context: CanvasRenderingContext2D,
matrixItems: IMatr... |
/*
* Copyright (c) 2020-2021 <NAME>, 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 code must retain the above copyright notice, this
* list of conditions... |
<filename>src/Tools.ts
// import moment from 'moment-hijri'
//٠١٢٣٤٥٦٧٨٩
export declare type ArabicNumberType = '٠' | '١' | '٢' | '٣' | '٤' | '٥' | '٦' | '٧' | '٨' | '٩'
export declare type StringType = ArabicNumberType | string | Number | null | any
const ArabicNumbersMap = {
0: '٠',
1: '١',
2: '٢',
3: '٣',
... |
<filename>src/lib/key-set/all-except-some.ts
import { EmptyArray, NonEmptyArray } from "../util/array-types";
import { Key, KeySet, KeySetAllExceptSomeSerialized, KeySetTypes } from "./-base";
import { KeySetByKeys } from "./-by-keys";
import { KeySetGlobal } from "./-global";
import { all, KeySetAll } from "./all";
im... |
import { RedisClient, createClient } from 'redis';
import { createInterface, Interface, cursorTo, clearScreenDown } from 'readline';
import { promisifyAll } from 'bluebird';
import { BaseExecutor, ConsumerFunc, Left, Right, RedirectError, RequestEnd, Result } from './executor';
const s = require('redis-splitargs');
imp... |
import React, { ReactElement, MouseEvent, memo, useMemo, useState, useEffect, useRef } from 'react';
import { useDispatch } from 'react-redux';
import { useTable, Row } from 'react-table';
import { FixedSizeList as List, ListOnItemsRenderedProps, ListChildComponentProps, areEqual } from 'react-window';
import AutoSizer... |
/**
* @file DragMask
*/
import {
IElementPosition,
getDefaultElementPosition,
getElementPosition,
isElementPositionContains,
isElementPositionCross,
isElementPositionEqual
} from '@co-hooks/dom';
import {IDragEvent, IMousePos, getDefaultMousePos} from '@co-hooks/drag';
import {Emitter} from '@... |
import React, { useState, useEffect } from 'react';
import InfiniteScroll from 'react-infinite-scroller';
import { connect } from 'react-redux';
import { Link, RouteComponentProps } from 'react-router-dom';
import { Button, Col, Row, Table } from 'reactstrap';
import { Translate, ICrudGetAllAction, getSortState, IPagin... |
import type { BaseTranslation } from 'typesafe-i18n'
const en: BaseTranslation = {
polygerIntro: `Polyger is polyrepo and monorepo manager.`,
currentPathIsNotDetectedAnyPolygerProject: `The polyger project is not detected on the currently executed path.
The path where the current poliger is executed: {currentPath}... |
import {from, observable, Observable} from "rxjs"
import {flatMap} from "rxjs/operators";
const API_KEY = "<KEY>"
type QueryParams = { [key: string]: string }
export interface GetSearchPlayersResponse {
items: Array<GetSearchPlayersResponse$Player>
start: number
end: number
}
export interface GetSearchPlayers... |
<gh_stars>0
import Plugin from "@ckeditor/ckeditor5-core/src/plugin";
import Logger from "@coremedia/ckeditor5-logging/logging/Logger";
import LoggerProvider from "@coremedia/ckeditor5-logging/logging/LoggerProvider";
import Editor from "@ckeditor/ckeditor5-core/src/editor/editor";
import LinkUI from "@ckeditor/ckedito... |
import React from "react";
import { css, cx } from "@emotion/css";
import { Button, Select } from "antd";
import { CloseCircleOutlined } from '@ant-design/icons';
import { Trans, useTranslation } from "react-i18next";
import { NodeDefaultView } from ".";
import { Branch, useFlowContext } from "../WorkflowCanvas";
impo... |
<reponame>manasatully/cookie-cutter
/*
Copyright (c) Walmart Inc.
This source code is licensed under the Apache 2.0 license found in the
LICENSE file in the root directory of this source tree.
*/
import {
DefaultComponentContext,
EventSourcedMetadata,
failSpan,
IComponentContext,
IInputSource,
... |
//import {Rewriter, INVERSES} from './rewriter';
import {count, starts, compact, repeat, invertLiterate,
locationDataToString, debug} from './helpers';
const DEBUG = process.env.NODE_ENV === 'development';
/* Hello token */
const HELLO = /hello/;
/* Comment token */
const COMMENT = /^{-([^#][\s\S]*?)(?:{-[^\n\S]*|-}... |
<reponame>crandlee/xClaim.Core.Web.UI
import { Observable } from 'rxjs/Observable';
import { Injectable } from '@angular/core';
import { BaseService, INameValue } from '../shared/service/base.service';
import { HubService } from '../shared/hub/hub.service';
import { IServiceOptions, IDataService, ICollectionViewModel, ... |
import {
SchemaInput,
ProjectInput,
PropertyTypes,
ConfigurationPropertyValue,
ConfigurationValue,
ConfigurationPropertyDict,
ConfigurationGroup,
ConfigurationGroupSection,
PluginMetadata,
ConfigurationProperty,
} from "../";
// // // //
/**
* buildConfigurationPropertyValue
... |
// Copyright 2017-2019 @polkadot/app-settings authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { AppProps, I18nProps } from '@polkadot/ui-app/types';
import { TabItem } from '@polkadot/ui-app/Tabs';
import { S... |
import React, { useState, useEffect } from "react";
import { Route, Link } from "react-router-dom";
import { DashboardStart } from "./sections/dashboard-start/DashboardStart";
import { DashboardJoinGroup } from "./sections/dashboard-join-group/DashboardJoinGroup";
import { DashboardNewGroup } from "./sections/dashboar... |
<filename>packages/parse5/lib/tokenizer/preprocessor.ts
import {
CODE_POINTS as $,
getSurrogatePairCodePoint,
isControlCodePoint,
isSurrogate,
isSurrogatePair,
isUndefinedCodePoint,
} from '../common/unicode.js';
import { ERR, ParserError, ParserErrorHandler } from '../common/error-codes.js';
/... |
import { VercelRequestQuery } from "@vercel/node";
import { ServerError } from "../../helpers/Error";
import {
toBoolean,
toFloatingNumber,
toString,
toStringArray,
} from "../../utils/vercelRequestQuery";
import Card, { CommonProps } from "../Card";
import generateTranslation from "./translation";
import fetch... |
<filename>src/app/series/series.component.ts
import { Component, HostListener, OnDestroy } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { formatTimeToTimer } from '../helper';
import { ITimer } from '../interfaces';
interface IInterval {
index: number;
start: number;
end: numb... |
<filename>packages/micro-page-react/src/hooks.ts
/* eslint-disable no-param-reassign */
import {
useState,
useCallback,
useRef,
useEffect,
useContext,
useMemo,
Dispatch,
SetStateAction,
DependencyList,
} from 'react';
import { useLocation } from 'react-router-dom';
import lodash from 'lodash-es';
imp... |
import { ItemData } from "../item/dataDefinitions"
import { PF2StatisticModifier } from "../modifiers";
/** A type representing the possible ability strings. */
export type AbilityString = "str" | "dex" | "con" | "int" | "wis" | "cha";
/** Data describing the value & modifier for a base ability score. */
export inter... |
import {Context as grammyContext, MiddlewareFn} from 'https://deno.land/x/grammy/mod.ts'
export * from 'https://cdn.skypack.dev/@grammyjs/types@v2.0.2?dts'
import {Message} from 'https://cdn.skypack.dev/@grammyjs/types@v2.0.2?dts'
import { YamlLoader } from "https://deno.land/x/yaml_loader/mod.ts";
import {Config, Lang... |
import { DrawerContentComponentProps, DrawerContentOptions } from '@react-navigation/drawer'
import { useObserver } from 'mobx-react-lite'
import React, { PropsWithChildren } from 'react'
import { BackHandler, Dimensions, Image, ScrollView, StatusBar, StyleSheet, TouchableOpacity, View } from 'react-native'
import ... |
<reponame>AdaXH/sites-front-end-pc
//@ts-nocheck
/* eslint-disable */
function $i(t) {
return document.getElementById(t);
}
function $r(t, r) {
document.getElementById(t).removeChild(document.getElementById(r));
}
function $t(t) {
return document.getElementsByTagName(t);
}
function $c(t) {
return String.fromCha... |
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import { mdiPencilOutline } from '@mdi/js';
import Icon from '@mdi/react';
import { displayInferredLayersInfo } from 'components/bound... |
import express from 'express'
import httpContext from 'express-http-context'
import process from 'process'
import uuid from 'uuid'
import winstonLoggly from 'winston-loggly-bulk'
import github from './github-api'
import settings from '../settings.json'
import logger from './logger'
import {
IIndexPageCommentsResult,... |
<reponame>auditsdigital/sustainability<filename>src/commander/commander.ts
import { EventEmitter, once } from "events";
import * as fs from "fs";
import * as path from "path";
import { Page } from "puppeteer";
import Collect from "../collect/collect";
import { DEFAULT } from "../settings/settings";
import { AuditSettin... |
import React, { useState, useEffect, useContext } from "react";
import createAuth0Client from "@auth0/auth0-spa-js";
import Auth0Client from "@auth0/auth0-spa-js/dist/typings/Auth0Client";
import { Role } from "rbac-rules";
type TGlobalApp = {
idToken: string;
userId: string;
currentRole: Role;
};
/**
* This ... |
import { NativeModules, ToastAndroid } from "react-native";
import { Action, action, Thunk, thunk } from "easy-peasy";
import { differenceInDays } from "date-fns";
import { IStoreModel } from "./index";
import { IStoreInjections } from "./store";
import { lnrpc } from "../../proto/proto";
import { getItemObject, Stora... |
import {
ManagedApi as BaseManagedApi,
IApiHandlerInstance,
ApiMethod,
readStreamToStringUtil,
readStreamToStringUtilCb,
parseApiMimeType,
ApiStdHeaderName,
ApiHeadersDict,
ApiParamsDict,
ManagedApiInternal,
IApiInvocationResult
} from 'ts-api-decorators';
import * as Express from 'express';
import { Express... |
/*
Tencent is pleased to support the open source community by making Metis available.
Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the L... |
<reponame>nextendedhand/Urim
import toDoData from './toDoData';
import settingsData from './settingsData';
import Common from './common';
/**
* - クリック判定
* - toggleToday
* のメソッド持つ
*/
interface TextPos {
x: number,
y: number
}
/**
* todoチップ
* todoデータをcanvas上に配置するためのデータ構造
*/
class ToDoTip {
public lef... |
import * as ipc from 'node-ipc'
import {Socket} from 'net'
import {Window} from "./window"
// const electron = require('electron')
// const ConsoleMessageEvent = electron.ConsoleMessageEvent
//const {ipcMain} = require('electron')
export let ClientMessages = {
CONNECT: "connect",
DISCONNECT: "socket.disconnect"
... |
import React from 'react'
import { ScrollView, View, StyleSheet, useWindowDimensions } from 'react-native'
import { SafeView } from 'components/safe-area'
import { Text, Header } from 'components/text'
import { isCurrentSpot, Spot } from 'lib/spots'
import { useStore, IPlan } from 'models'
import { FreeSpotPlan, NewTim... |
<filename>packages/messageformat/__tests__/evaluation.test.ts
import {
parseMessagePattern,
stickyRegexp,
MessageArg,
MessageCode,
MessageEngine,
MessageNamedArgs,
StickyMatcher,
} from '../src';
import { pluralRules } from '@phensley/plurals';
import { DefaultMessageArgConverter } from '../src/evaluation... |
/*
undefined
Configurator schema common definitions
!!! AUTO GENERATED BY IOTSFJS REFRAIN FROM MANUAL EDITING !!!
See https://www.npmjs.com/package/io-ts-from-json-schema
*/
import * as t from 'io-ts';
import * as Cost_ from './cost';
import * as Fare_ from './fare';
import * as Terms_ from './terms';
export type ... |
<filename>src/model/parsers/index.ts<gh_stars>1-10
import * as _ from 'lodash';
import { Element, Namespace } from 'libxmljs2';
import ns from '../../util/ns';
import { OrderedBy, Visibility, Status } from '../../enum';
import { enumValueOf } from '../../enum/ContextNode';
import { tokens } from '../../util/xPathParse... |
import {Matrix} from 'graphlabs.core.lib';
import * as React from 'react';
import './App.css';
import {
Template,
store,
IEdgeView,
GraphVisualizer,
} from "graphlabs.core.template";
import {FunctionComponent} from "react";
import {graphModel} from "graphlabs.core.template";
import {IEdge, IVertex, Edge... |
/*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
'use strict';
//dts
import {IGlobalSumanObj, ISumanOpts} from 'suman-types/dts/global';
import EventEmitter = NodeJS.EventEmitter;
import {IRet, IRetContainer, IExpectedCounts, IResultsObj, ITAPJSONTestCase} from 'suman-types/dts/reporters';
import {ITestDataObj} from "suman-types/dts/it";
//polyfills
const process =... |
<reponame>WGH0120/Editor<filename>src/shared/namespace-database.ts
import fs from 'fs-extra';
import readline from 'readline';
import type { NamespaceName, FrontMatters, NamespaceInfo, TagType, NamespaceData, Tag } from './interfaces/ehtag';
import { load, dump } from 'js-yaml';
import { TagRecord } from './tag-record'... |
import { createInterface } from "readline";
import { green, gray } from "ansi-colors";
import { choose } from "./choose";
import { LineDefinitions, Payouts } from "./types";
const rl = createInterface({
input: process.stdin,
output: process.stdout,
});
rl.pause();
/**
* Ask a question to the user and return ... |
<reponame>ansteh/sec-data
import { Component, Input, OnChanges, OnInit, ViewChild, ElementRef, SimpleChanges } from '@angular/core';
import Chart from 'chart.js';
import * as _ from 'lodash';
import { Trends } from '../tools/trends';
import { Interior } from '../tools/maxima';
const createClose = (point) => {
retur... |
<reponame>Noah-Huppert/prior-inventions
import fs from "fs/promises";
import GitHub from "github-api";
import { RepoOverride } from "./libconfig";
import CFG from "./config";
/**
* Information about a prior invention.
*/
interface Project {
/**
* Unique machine identifier.
*/
id: string,
/**
* Fu... |
/* eslint-disable no-nested-ternary */
/* eslint-disable no-console */
import React, { useEffect, useState, FC, useContext } from "react";
import { graphqlOperation, GraphQLResult } from "@aws-amplify/api";
import { API } from "aws-amplify";
import styled from "styled-components";
import { listAdverts } from "../graphq... |
import {Injectable} from '@angular/core';
import {Http, Response,URLSearchParams,Headers, RequestOptions} from '@angular/http';
import { Observable } from 'rxjs/Observable';
import {baseUrl} from '../services/config';
export class ShowProgram {
constructor(public cRPId: number, public cRPRewardType: number, public... |
<gh_stars>1-10
import * as dts from 'dts-element';
import * as R from 'ramda';
import {
get_function_parameter_placeholder_name_default,
get_function_type_name_default,
get_placeholder_type_default,
inline_return_type_default,
placeholder_default,
selectable_default,
} from './utils/constants';
import { cre... |
import { Visitor, NodePath } from '@babel/traverse';
import * as BabelTypes from '@babel/types';
import template from '@babel/template';
import micromatch from 'micromatch';
interface Opts {
include?: RegExp | string;
exclude?: RegExp | string;
includeAttributes?: RegExp | string;
excludeAttributes?: RegExp | ... |
import gql from 'graphql-tag';
import * as Urql from 'urql';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/** All built-in and custom scalars, mapped to their actual values */
e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.