text stringlengths 3.3k 33k |
|---|
import { Map } from './map';
import { Pac } from './pac';
import { User } from './user';
import { Ghost } from './ghost';
import { Helper } from './helper';
import { DIRECTIONS } from './enums';
export class Game {
public blockSize = 26;
public moveRate = 5;
public timeToRerender = 30;
public enableTo... |
<gh_stars>0
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { isSearchBot, safeStringifyError } from '@app/shared/utilities';
import { NotificationService } from './notification.service';
import { environment as env } from '@env/environment';
import { del, get, keys... |
// eslint-disable-next-line
import * as React from 'react';
import {
useState,
MouseEvent,
useContext,
createContext,
useMemo,
} from 'react';
import './styles.css';
type DataObject = string | boolean | null | number | object | DataObject[];
type DataKey = string | number;
interface ReactJsonPrintProps {
... |
import Swal from "sweetalert2";
import { Configuration, ParseConfig } from "./Config";
import { AlphabetCompare, DefaultCompare, List, OnAnimationFrame, OnPageClose, OnPageLoad, report, sprintf, TaskId, TaskQueue, TaskResult } from "./Utils";
import { ReadFileAsText } from "./File"
import { TraversalReset, TraversalSta... |
import * as React from 'react';
import classnames from 'classnames';
import {useAriaId, useScreenSize} from './hooks';
import {Portal} from './portal';
import Overlay from './overlay';
import * as key from './utils/key-codes';
import {createUseStyles} from './jss';
const defaultPositionDesktop = 'bottom';
const defaul... |
<reponame>Derealize/derealize
/* eslint-disable no-restricted-syntax */
import type { IpcRendererEvent } from 'electron'
import { Action, action, Thunk, thunk, Computed, computed } from 'easy-peasy'
import { createStandaloneToast, AlertStatus } from '@chakra-ui/react'
import type { TailwindConfig } from 'tailwindcss/ta... |
import React, { useEffect, useState, useMemo, CSSProperties } from 'react'
import { withStyles } from '@material-ui/core/styles'
import {
Box,
Button,
IconButton,
Grid,
Typography,
Popover,
Divider,
FormGroup,
FormControlLabel,
Switch,
} from '@material-ui/core'
import { SketchPi... |
import React, {Component, FC} from 'react';
import {View, Text, StyleSheet, ScrollView} from 'react-native';
// @ts-ignore
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Header from '../components/Header';
import {RootState} from '../reducers';
import {connect, DispatchPro... |
// file deepcode ignore ZipSlip: <please specify a reason of ignoring this>
// file deepcode ignore ZipSlip: <please specify a reason of ignoring this>
import { IIndicesAnbima, LooseObject } from './interfaces'
import fs, { createReadStream } from 'fs'
import path from 'path'
import https from 'https'
import http from ... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
import {
arrMakeFlat,
createSingleMeshBufTjs,
EEntType,
GIModel,
idsBreak,
TEntTypeIdx,
TId,
TPlane,
TRay,
Txyz,
vecSetLen,
} from '@design-automation/mobius-sim';
import * as THREE from 'three';
import { checkIDs, ID } from '../../_check_ids';
import * as chk from '../../_ch... |
import path from 'path'
import { TextEditor } from 'atom'
import sax from 'sax'
import RuleStore, {
Attributes,
DocumentProps,
SchemaLang,
} from './rules/RuleStore'
import generateRange, { RangeCompatible } from './util/generateRange'
export interface DefaultParserConfig {
xmlCatalog: string
dtdValidation... |
import {
ApplicationUpdate,
ApplicantUpdate,
Language,
IncomePeriod,
ApplicationSubmissionType,
ApplicationStatus,
Address,
HouseholdMember,
InputType,
} from "@bloom-housing/backend-core/types"
import { TimeFieldPeriod } from "@bloom-housing/ui-components"
import {
FormTypes,
YesNoAnswer,
Appl... |
<gh_stars>10-100
/**
* ServiceRequest Module
*/
import * as primitives from "@tangdrew/primitives";
import * as t from "io-ts";
import { Annotation } from "./Annotation";
import { CodeableConcept } from "./CodeableConcept";
import { Element } from "./Element";
import { Extension } from "./Extension";
import { Identi... |
<reponame>cardozo/selector
import SelectionRange from '../selection-engine/selection-range.service';
import {isSelectionWrapNode} from '../util/dom';
import {
WRAP_TAG,
ID_DIVISION,
DEFAULT_OPTIONS,
CAMEL_DATASET_IDENTIFIER,
CAMEL_DATASET_IDENTIFIER_EXTRA,
DATASET_IDENTIFIER,
DATASET_SPLIT_T... |
/**
* 写了一堆代码,实现了 极客时间的标注功能 ...
*/
import 'react-app-polyfill/ie11';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import template from './note/1';
// import template from './note/2';
import Note from '../src/Note';
import ToolBar from '../src/ToolBar/index';
import { useSetState, usePersistF... |
<filename>src/api-demo-layout-mixin.ts
import { LitElement, property, PropertyValues } from 'lit-element';
import { getSlotDefault } from './lib/knobs.js';
import {
ComponentWithProps,
CSSPropertyInfo,
PropertyInfo,
SlotInfo,
SlotValue,
EventInfo,
KnobValues,
KnobValue
} from './lib/types.js';
import {
... |
<reponame>poelstra/ezwave
/**
* List of all Z-Wave command classes.
*/
export enum CommandClasses {
Alarm = 0x71, // (113)
Notification = 0x71, // (113)
ApplicationStatus = 0x22, // (34)
AssociationCommandConfiguration = 0x9b, // (155)
Association = 0x85, // (133)
AvContentDirectoryMd = 0x95, // (149)
AvConte... |
import keycode from "keycode";
import {IgnoreNextKeyRelease, IgnoreNextKeyPress, WM_SYSKEYUP, WM_SYSKEYDOWN, keysDown} from "./HotkeyManager";
import ffi from "ffi-napi";
import {extraKeys} from "./ExtraKeys";
import { GetForegroundWindowHandle } from "../General/Windows";
import ref from "ref-napi";
import {SleepAsync... |
import { Ast } from "../ast"
import { ArrayWalker, astWalker, isArrayWalker, isObjectWalker, NodeWalker, ObjectWalker } from "./ast-walker"
export type AstModifier = AstReplacer | AstInserter | AstListener
export interface AstListener {
forEach: string
listen: NodeListener
}
export interface AstReplacer {
forE... |
<gh_stars>1-10
// This module is the entrypoint of the ElementaryJS package. It is written
// for both Node and web browsers. i.e., it does not provide functions to
// read code from files.
import * as babel from 'babel-core';
import { Node, Program } from 'babel-types';
import * as babylon from 'babylon';
import * as ... |
import Link from 'next/link'
import fetch from 'node-fetch'
import {useRouter} from 'next/router'
import Header from '../../components/header'
import Heading from '../../components/heading'
import components from '../../components/dynamic'
import ReactJSXParser from '@zeit/react-jsx-parser'
import blogStyles from '../.... |
//
import Vue, { DirectiveOptions } from 'vue'
import * as anime from 'animejs'
import * as Hammer from 'hammerjs'
import * as _ from '../../common/lodash'
import * as core from '../../common/core'
import * as pretty from '../../common/pretty'
import * as utils from '../adapters/utils'
import clock from '../../common/... |
import { Emergency } from '../../../../models';
import { Deed } from '../../../../models';
import { WalletNotConnectedError } from '@solana/wallet-adapter-base';
import { useConnection, useWallet } from '@solana/wallet-adapter-react';
import { clusterApiUrl, Connection, Transaction, PublicKey, LAMPORTS_PER_SOL, Confi... |
import { Blockchain, Contract } from '@klevoya/hydra';
import { THydraConfig } from '@klevoya/hydra/lib/config/hydra';
import Account from '@klevoya/hydra/lib/main/account';
import { TTransaction } from '@klevoya/hydra/lib/types';
import { Asset } from '../types/Asset';
import { Document, getHash } from '../types/Docum... |
<reponame>liangliu/arctern
import {scaleOrdinal, interpolateRgbBasis} from 'd3';
import {isValidValue} from './Helpers';
import {WidgetConfig} from '../types';
const makeScale = (num: number, colorGroup: any) => {
return colorGroup.slice(0, num);
};
const EchartRange = [
'#37A2DA',
'#32C5E9',
'#67E0E3',
'#9... |
import {
COLORS,
Coordinates,
DEFAULT_SUNCALC,
getGradient as gradient,
QUICK_DURATION,
ThemeColorScheme,
} from '@getstation/theme';
import { app } from 'electron';
// @ts-ignore: no declaration file
import { getLocation } from 'ip-geolocate';
import * as memoize from 'memoizee';
// @ts-ignore: no declarat... |
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
import Divider from '@material-ui/core/Divider';
import Drawer from '@material-ui/core/Drawer';
import FormControl from '@material-ui/core/FormControl';
import IconButton from '@material-ui/core/IconButton'... |
<reponame>alexstrat/reactive-graphql<filename>src/index.ts
import { Observable, of, from, throwError } from "rxjs";
import { concatMap, map, combineLatest } from "rxjs/operators";
import {
DefinitionNode,
DocumentNode,
getNamedType,
GraphQLInterfaceType,
GraphQLObjectType,
GraphQLSchema,
GraphQLType,
S... |
import { BaseSolution, Input } from '../solution';
import { product, sum } from '../util/fp';
import { parseInput } from '../util/parser';
export class Solution extends BaseSolution {
public description = `
--- Day 16: Ticket Translation ---
As you're walking to yet another connecting flight, you realize ... |
// The navigator.sendBeacon API is only used when the document is hidden,
// since it never lets us handle the response, which is useful for debugging
// and error tracking.
let useBeacon = false
if (typeof navigator !== 'undefined' && typeof document !== 'undefined') {
useBeacon = document.visibilityState == 'hidden... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// tslint:disable:no-any
// tslint:disable:no-unsafe-any
// tslint:disable:no-var-requires
// tslint:disable:no-require-imports
import * as path from 'path';
import * as autoprefixer from 'autoprefixer';
import * as denodeify from 'denodeify';
import { pathExists, readFile, readJson, writeFile } from 'fs-extra';
impo... |
<filename>electron/rimworld.ts<gh_stars>1-10
import * as path from "path";
import { promises as fs } from "fs";
import { pathToFileURL } from "url";
import asyncPool from "tiny-async-pool";
import { DOMParser, XMLSerializer } from "@xmldom/xmldom";
import xpath from "xpath";
import { z } from "zod";
import { shell } fr... |
//===----------------------------------------------------------------------===//
//
// This source file is part of the VSCode Swift open source project
//
// Copyright (c) 2021 the VSCode Swift project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt fo... |
interface YGBase {
ptr: number;
}
declare enum YGAlign {
"YGAlignAuto",
"YGAlignFlexStart",
"YGAlignCenter",
"YGAlignFlexEnd",
"YGAlignStretch",
"YGAlignBaseline",
"YGAlignSpaceBetween",
"YGAlignSpaceAround",
}
declare enum YGDimension {
"YGDimensionWidth",
"YGDimensionHeight",
}
declare enum YGD... |
import { ipcRenderer } from "electron";
import { Action, ActionCreator, Dispatch, Reducer } from "redux";
import { ThunkAction, ThunkDispatch } from "redux-thunk";
import * as Constants from "../../common/constants";
import { Calendar } from "../../common/google";
import { next, NextAction, TutorialState } from "./tuto... |
import events from "@/service/EventBus"
import {AxiosError, AxiosResponse} from "axios"
import differenceInMilliseconds from "date-fns/differenceInMilliseconds"
import {AUTH_STATUSES, IAuth} from "@/types/Auth"
import * as log from "electron-log"
import {
API_CHARACTER_LOCATION,
API_CHARACTER_ONLINE,
API_CHARACTER_S... |
<filename>src/elements/tags.ts<gh_stars>0
import { TypeOf } from '../core/decorators.js';
export type TagClassRef = TypeOf<HTMLElement> | TypeOf<Comment> | TypeOf<DocumentFragment> | CustomElementConstructor;
export interface Tag {
readonly name: string | null;
readonly classRef: TagClassRef;
}
export function get... |
import React from 'react';
import { connect } from 'dva';
import { ConnectState } from '@/models/connect';
import styles from './index.scss';
import PDF from 'react-pdf-js';
import { Icon, message, Table } from 'antd';
import pdf from '../../../public/pdf/1.pdf';
import router from 'umi/router';
import MenuItem from '@... |
<reponame>AckerApple/ack-host
import * as connect from 'connect'
import * as basicAuth from 'basic-auth'
import { ackX as ackNode } from 'ack-node'//used for path crawlin
import * as events from 'events'
import { requestError } from './requestError'
import * as express from 'express'
import { RequestRoutePath } from '... |
import { Loader, FetchLoader, XhrLoader } from './Loader';
import Chunk from './Chunk';
import Clone from './Clone';
import getContext from './getContext';
import { slice } from './utils/buffer';
import isFrameHeader from './utils/isFrameHeader';
import parseMetadata from './utils/parseMetadata';
import warn from './ut... |
import React, { memo, useState } from "react"
import { useSelector, shallowEqual } from "react-redux"
import { toast } from "react-toastify"
import _ from "lodash"
import styles from "./styles.module.scss"
import { fetchPreVolunteerAdd } from "../../store/preVolunteerAdd"
import { AppDispatch, AppState } from "../../s... |
'use strict';
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import { Position, Range} from 'vscode';
import { chdir } from 'process';
import { existsSync } from 'fs';
import { spawn } from '... |
import * as functions from "firebase-functions";
import * as admin from "firebase-admin";
import Stripe from "stripe";
import algoliasearch from "algoliasearch";
admin.initializeApp();
const env = functions.config();
const ordersCollection = "orders";
const orderCountsCollection = "order-counts";
const orderCountsDo... |
import { EEntType, GIModel, idsMakeFromIdxs, TId, Txyz } from '@design-automation/mobius-sim';
import * as VERB from '@design-automation/mobius-sim/libs/verb/verb';
import * as chk from '../../_check_types';
import { _EClose } from './_enum';
// ======================================================================... |
<gh_stars>1-10
import * as vscode from "vscode";
import { WUQuery, Workunit, ClientTools } from "@hpcc-js/comms";
import { launchConfigurations, LaunchConfig, LaunchRequestArguments, espUrl, wuDetailsUrl, wuResultUrl, CheckResponse, launchConfiguration } from "./launchConfig";
import { LaunchConfigState } from "../debu... |
<gh_stars>0
import Service, { inject as service } from '@ember/service';
import ElkConstructor, { ELK, ElkNode } from 'elkjs/lib/elk-api';
import { restartableTask } from 'ember-concurrency-decorators';
import { perform } from 'ember-concurrency-ts';
import debugLogger from 'ember-debug-logger';
import LandscapeRenderi... |
import cn from 'classnames';
import { bind } from 'decko';
import * as React from 'react';
import { connect } from 'react-redux';
import { RouteComponentProps } from 'react-router-dom';
import { bindActionCreators, Dispatch } from 'redux';
import DataSourceUri from 'core/shared/view/domain/DatasetVersionProps/QueryDat... |
import type { CeramicApi, CeramicCommit } from '@ceramicnetwork/common'
import { SubscriptionSet } from '@ceramicnetwork/common'
import { TileDocument } from '@ceramicnetwork/stream-tile'
import CeramicClient from '@ceramicnetwork/http-client'
import { definitions, schemas } from '@ceramicstudio/idx-constants'
import C... |
<reponame>rcorral/js-algotrading-libraries<gh_stars>1-10
export interface APIAuthenticationResponse {
token?: string;
mfa_type?: string;
mfa_required?: string;
}
export interface APIQuoteInterface {
ask_price: string; // "166.4400"
ask_size: number; // 300
bid_price: string; // "166.4300"
bid_size: numbe... |
import React from 'react';
import {LayoutAnimation, ScrollView, StyleSheet, UIManager, View} from 'react-native';
import {NavigationScreenProps} from "react-navigation";
// @ts-ignore
import {Button, Icon, Input} from "react-native-elements";
import {heightPercentageToDP as hp, widthPercentageToDP as wp} from 'react-na... |
import React, { useEffect, useState } from 'react';
import {
StyleSheet,
ScrollView,
View,
Text,
TouchableOpacity,
Alert,
} from 'react-native';
import Clipboard from '@react-native-community/clipboard';
import { TabNav, StackNav } from '../utils/navigation';
import { getFromStorage, saveToSto... |
import { Vector3D } from './Vector3D';
import { ASObject } from '@awayfl/avm2';
import { notImplemented, release, somewhatImplemented } from '@awayfl/swf-loader';
import { axCoerceString } from '@awayjs/graphics';
import { Matrix3D as AwayMatrix3D } from '@awayjs/core';
import { Float64Vector, GenericVector } from '@aw... |
<reponame>simsieg/alva<filename>packages/model/src/page/page.ts
import { Element, ElementContent } from '../element';
import * as _ from 'lodash';
import * as Mobx from 'mobx';
import { Project } from '../project';
import * as Types from '@meetalva/types';
import * as uuid from 'uuid';
import { PatternLibrary } from '.... |
import React, { useRef } from "react";
const DIT = true;
const DAH = false;
export interface CWTreeNodePayload {
id: string;
value: string;
offset: number;
}
export interface CWTreeNodeDictionary {
[key: string]: CWTreeNode;
}
export class CWTreeNode {
public ref: React.RefObject<SVGSVGElement>;
constr... |
import { Type } from '@sinclair/typebox';
export const schemaDescriptionCreator = (name: string) => `${name} schema, see the specification at: https://schema.org/${name}`;
export enum ProductEnum {
'actuator' = 'actuator',
'beacon' = 'beacon',
'endgun' = 'endgun',
'HVAC' = 'HVAC',
'implement' = 'implement',
'ir... |
import * as path from 'path'
import * as fs from 'fs'
import * as commonPathPrefix from 'common-path-prefix'
import { TreeDataProvider, TreeItem, TreeItemCollapsibleState,
Uri, Disposable, EventEmitter, Event, TextDocumentShowOptions,
ProgressLocation, OutputChannel,
workspace, commands, Sy... |
// TODO: Let's rework all of the IO that the `reply` module provides and ensure
// our commands are as Unix like as possible.
import path from 'path';
import fs from 'fs-extra';
import { has, TSError } from '@terascope/utils';
import { AssetSrc } from '../../helpers/asset-src';
import GithubAsset from '../../hel... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
import fs from "fs";
import path from "path";
import {
DocManager,
DocManagerPublicState,
initialDocManagerPublicState,
Mode,
} from "../logic/doc-manager";
import { Doc } from "../logic/interfaces";
import { docFromAst } from "../logic/node-from-ts";
import { astFromTypescriptFileContent } from "../logic/parse... |
import { func, node, string } from 'prop-types';
import { BehaviorSubject } from 'rxjs';
import { AppDetails, Node, EnvDetails, EnvType, NodeType, iNode } from './appDetails.type';
import { mapByKey } from '../../common/helpers/Helpers';
import { Filter } from '../../common/filter/filters';
let _appDetailsSubject: Beh... |
<filename>src/app.ts
enum ProjectStatus {
ACTIVE = "ACTIVE",
DONE = "DONE",
}
type HTMLElementID = string;
type ProjectListenerFunction<T> = (projects: T[]) => void;
interface AppInterface {
render(): void
}
interface InjectProjectStateInterface {
projectState: ProjectState
}
type DragHandlerFunct... |
import * as React from 'react';
import { observer } from 'mobx-react';
import { external as canInject, inject } from 'tsdi';
import styled from 'styled-components';
import { GoogleStore, YoutubeRating } from '../../google-store';
import { VideoStore } from './store';
import { RepliesStore } from './replies-store';
impo... |
import * as path from 'path';
import { Errorable, succeeded } from '../utils/errorable';
import * as shell from '../utils/shell';
import * as pairs from '../utils/pairs';
import { fs } from './fs';
export interface BinaryInfo {
readonly path: string;
readonly version: string;
}
export interface SignatureVerifica... |
#!/usr/bin/env node
import ncp from 'ncp';
import yargs from 'yargs';
import {promisify} from 'util';
import camelCase from 'camelcase';
import {join, resolve} from 'path';
import {execSync} from 'child_process';
import {generateTypesForDocument} from 'openapi-client-axios-typegen';
import {copyFileSync, mkdirSync, re... |
import React, {useEffect, useMemo, useRef, useState} from 'react';
import {RouteComponentProps} from 'react-router-dom';
import {Button, Select, message, Switch} from 'antd';
import {LeftCircleFilled, RightCircleFilled} from '@ant-design/icons';
import './setting.css';
import {
AvatarImageEnum,
AvatarImageEnumMax,
... |
import { Route, Config, HandleExceptionType } from "./declare";
import { __ve_parse_json, __ve_to_json } from ".";
const fs = require('fs');
const fss = require('fs-sync');
import path = require('path');
export class HttpContext {
req;
res;
route: Route;
cfg: Config;
constructor(options: { req, res... |
<filename>packages/code-editor/src/models/WorkspaceModel.ts
import * as R from 'remeda';
import { compareLibs, doFn, getLibs } from '../lib/helper';
import { ModelState, ModelStateUpdater } from '../lib/ModelState';
import { FileTreeHelper, findFileByPath } from '../lib/tree';
import { TypedEventEmitter } from '../lib/... |
import PathProxy, { normalizeArcAngles } from '../../core/PathProxy';
const PI = Math.PI;
const PI2 = PI * 2;
const mathSin = Math.sin;
const mathCos = Math.cos;
const mathACos = Math.acos;
const mathATan2 = Math.atan2;
const mathAbs = Math.abs;
const mathSqrt = Math.sqrt;
const mathMax = Math.max;
const mathMin = Mat... |
<reponame>HardCoding90/shsolutions-project-front
import {Component, OnInit, ViewChild} from '@angular/core';
import {MatPaginator, MatSort, MatTableDataSource} from '@angular/material';
import { FormBuilder, Validators, FormGroup } from '@angular/forms';
import { from, forkJoin } from 'rxjs';
import { Genero } from 'a... |
import React, { useRef, useCallback, useState, useEffect } from 'react';
import WheelHandler from 'dom-lib/WheelHandler';
import scrollLeft from 'dom-lib/scrollLeft';
import scrollTop from 'dom-lib/scrollTop';
import on from 'dom-lib/on';
import removeStyle from 'dom-lib/removeStyle';
import { requestAnimationTimeout, ... |
<filename>src/helper/common.ts
import { assetImages, SLOT_TIME, APP_NAME } from 'src/constant'
import { Draft, Selection, Selections, Users } from 'Store'
// eslint-disable-next-line @typescript-eslint/ban-types
export const deepcopy = (obj: {} | []) => JSON.parse(JSON.stringify(obj))
export const replaceArray = (
... |
import * as d3 from 'd3';
import {GraphXScaleType} from '../../enums/GraphXScaleType';
import {WidgetType} from '../../enums/WidgetType';
import {IGraphLegendItem} from '../../interfaces/IGraphLegendItem';
import {IGraphMargins} from '../../interfaces/IGraphMargins';
import {IGraphParameters} from '../../interfaces/IGr... |
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
import { AnyTransaction, Election, Validator } from '@helium/http'
import Balance, { CurrencyType, NetworkTokens } from '@helium/currency'
import {
getElectedValidators,
getElections,
getValidatorActivityList,
getValidatorDetails,
getValidators,... |
import {
Avatar,
Box,
Button,
Divider,
Flex,
IconButton,
LightMode,
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalHeader,
ModalOverlay,
Text,
Tooltip,
useDisclosure,
} from '@chakra-ui/react';
import { Form, Formik } from 'formik';
import React, { useRef, useState... |
<reponame>VitaliiHrozynskyi/typedoc-plugin-external-module-name
import * as ts from 'typescript';
import * as path from 'path';
import * as fs from 'fs';
import { Component, ConverterComponent } from 'typedoc/dist/lib/converter/components';
import { Context } from 'typedoc/dist/lib/converter/context';
import { Convert... |
/*
University of Illinois/NCSA Open Source License
Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved.
Developed by: Terrain Data, Inc. and
the individuals who committed the code in this file.
https://github.com/terraindata/terrain
Permission is ... |
import React, { Suspense, DependencyList, useCallback, useEffect, useMemo, useState } from 'react';
import { Container, List } from '@material-ui/core';
import NewTodo from './components/NewTodo';
const TodoItem = React.lazy(() => import('./components/TodoItem'));
import ThemeToggler from './components/ThemeToggler';
... |
import { VueComponent, Prop, Watch } from 'vue-typescript'
import { aliupload } from '../../service/OssUploadService';
//import '../../img/menu-erweima.png';
//import '../../img/menu-erweima2.png';
//import '../../img/menu-modalFeedBack.png';
//import '../../img/menu-modalFeedBack2.png';
//import '../../img/csp-erweima... |
import type { Area } from './types';
import easelJS from '/app/easeljs.js';
import { removableEventListeners, zoomFromMouseWheel } from '/app/util.js';
const { on, removeAllListeners, removeListenerById } = removableEventListeners();
type Point = { x: number; y: number; };
export type OnSelection = (area: Area) =>... |
import React, {useEffect, useState} from 'react';
import Form from 'antd/es/form';
import {FormComponentProps} from 'antd/lib/form';
import {Button, Card, Col, Icon, Input, Modal, Row, Radio, Switch, Tooltip} from 'antd';
import {alarm} from '../data';
import Triggers from '@/pages/device/alarm/save/triggers/index';
im... |
<reponame>ygyg70/quasar
/* Themify v1.0.1 */
export declare const tiAgenda: string;
export declare const tiAlarmClock: string;
export declare const tiAlert: string;
export declare const tiAlignCenter: string;
export declare const tiAlignJustify: string;
export declare const tiAlignLeft: string;
export declare const ti... |
type VERSION = `${number}.${number}.${number}`
interface GlobalData {
connectionRequestIDGeneratedOnClient: number
connectionRequestIDGeneratedOnServer?: number
instanceID: number
username: string
gamePassword: string
serverKey: string
serverKeyTimestamp: string
coreChecksum: number
prototypeListChecksum: numb... |
import { Header } from "./components/Header";
import { Card } from "./components/Card";
const details = [
{
title: "No configuration project required",
info: "Flavor CSS only import a js library, Using CSS variable reasonably, modifying the value of atomic class does not need rebuild.",
},
{
title: "... |
import { message, openURL } from '@/_helpers/browser-api'
import { MsgType, MsgContextMenusClick } from '@/typings/message'
import { AppConfig } from '@/app-config'
import i18nLoader from '@/_helpers/i18n'
import { TranslationFunction } from 'i18next'
import contextLocles from '@/_locales/context'
import isEqual from '... |
/* eslint-disable @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars */
import React, { createContext, useCallback, useEffect, useState } from 'react';
import {
ClientEvent,
Endpoint,
HttpStatus,
ServerAction,
ServerEvent,
ServerState,
ServerStateScenario,
} from '../sharedTypes';
impo... |
export enum WGPURequestAdapterStatus {
Success = 0,
Unavailable = 1,
Error = 2,
Unknown = 3,
}
export enum WGPUAdapterType {
DiscreteGPU = 0,
IntegratedGPU = 1,
CPU = 2,
Unknown = 3,
}
export enum WGPUAddressMode {
Repeat = 0,
MirrorRepeat = 1,
ClampToEdge = 2,
}
export enum WGPUBackendType {
Nu... |
// DO NOT EDIT. This file was generated by running `npm run generate`.;
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';
type Props = Omit<IconProps, 'color'>;
const KR: React.FC<Props> = ({ size = 'medium', ...props }: IconProps) => {
const size... |
import polyfillFocusWithin from 'focus-within'
import Icon, { sizes as iconSizes } from '@pluralsight/ps-design-system-icon'
import {
names as themeNames,
useTheme
} from '@pluralsight/ps-design-system-theme'
import {
HTMLPropsFor,
RefForwardingComponent,
ValueOf,
canUseDOM,
omit
} from '@pluralsight/ps-... |
<filename>src/client/datascience/errors/errorHandler.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { inject, injectable } from 'inversify';
import { IApplicationShell, IWorkspaceService } from '../../common/application/types';
import { BaseError, BaseKernelErr... |
import {
renderFormulaField,
renderLabeledCheckbox,
renderNumberField,
renderRadioFields,
renderSelectField,
renderSlider,
renderTextareaField,
renderTextField,
renderTimeField,
} from '@src/components/field/fields';
import {
AptitudeType,
enumValues,
PoolEffectUsability,
PoolType,
RechargeT... |
<gh_stars>10-100
import { watch } from 'vue'
import { useCompleteable } from '@baleada/vue-composition'
import type { CompleteOptions } from '@baleada/logic'
import type { Textbox } from '../interfaces'
import { on } from '../affordances'
import {
toSymmetricalCompletion,
toMappedCompletion,
toMirroredCompletion,... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
import { Observable } from "../../Misc/observable";
import { Nullable } from "../../types";
import { Matrix } from "../../Maths/math.vector";
import { BaseTexture } from "../../Materials/Textures/baseTexture";
import { IInspectable } from '../../Misc/iInspectable';
import { ThinEngine } from '../../Engines/thinEngine';... |
/* eslint-disable jsx-a11y/label-has-associated-control */
import * as React from 'react';
import {
Form,
Header,
Icon,
List,
Segment,
Statistic,
} from 'semantic-ui-react';
import moment from 'moment';
import NumericInput from 'react-numeric-input';
import utils from '../utils';
import * as constants from ... |
<reponame>djsc/ScreenDoorPi<gh_stars>0
// This is a modified version of https://github.com/craigmw/lcdi2c
import i2c from 'i2c-bus';
import sleep from 'sleep';
import logger from './logger';
const displayPorts = {
RS: 0x01,
E: 0x04,
D4: 0x10,
D5: 0x20,
D6: 0x40,
D7: 0x80,
CHR: 1,
CMD: ... |
import expect from 'expect';
import { gasLimit, createConnection, deploy, transaction, aliceKeypair, daveKeypair } from './index';
import { ContractPromise } from '@polkadot/api-contract';
import { ApiPromise } from '@polkadot/api';
import { KeyringPair } from '@polkadot/keyring/types';
import type { Codec } from '@pol... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as ts from 'typescript';
import * as jsdoc from './jsdoc';
import * as path from './path';
import {createN... |
import { IKeyboardEvent } from './keyboardEvent';
import { IMouseEvent } from './mouseEvent';
import { Event } from '../common/event';
import { Disposable, IDisposable } from '../common/lifecycle';
import { URI } from '../common/uri';
export declare function clearNode(node: HTMLElement): void;
/**
* @deprecated use `n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.