text stringlengths 3.08k 15.5k |
|---|
import {
Information,
WorldBaseballLeague,
WorldSoccerLeague,
WorldBaseballLeagueArray,
WorldSoccerLeagueArray,
} from "../Model";
import {
WorldSoccer,
WorldBaseball,
KoreaBaseball,
KoreaSoccer,
ESports,
KoreaBasketball,
WorldBasketball,
KoreaVolleyball,
} from ".";
import request from "reque... |
<filename>src/constants/appConstant.tsx<gh_stars>0
export const DASHBOARD_CONFIG = Object.freeze({
vaccinationSites: {
title: "Centers Driving Vaccination",
total: 0,
subTitleOne_Label: "Government",
subTitleTwo_Label: "Private",
subTitleOne_Value: 0,
subTitleTwo_Value: 0,
},
vaccinationRe... |
import type { DataStore } from '@tanker/datastore-base';
import '@tanker/datastore-base';
import { InternalError } from '@tanker/errors';
import type { b64string } from '@tanker/crypto';
import { tcrypto, utils, encryptionV2 } from '@tanker/crypto';
const GROUPS_ENCRYPTION_KEYS_TABLE = 'groups_encryption_keys';
cons... |
<reponame>kylepbit/sql<filename>workbench/public/utils/utils.ts
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. S... |
import React,{useMemo,useCallback} from 'react';
import {
StyledComponentProps,
StyleRules,
Theme,
withStyles,
Box,
Button
} from '@material-ui/core';
import { Layout } from '../../components/Layout/Layout';
import { authClient } from '../../api/service';
import { useInitEffect } from '../../hooks/useIni... |
import { useEffect, useRef, useState } from 'react';
import { gql, useQuery } from '@apollo/client';
import { throttle } from 'lodash';
import { useSession } from 'next-auth/react';
import MinimalItem from '@/components/item/minimal';
import Loading from '@/components/loading';
import { Meta } from '@/layout/Meta';
i... |
import classNames from 'classnames'
import PlusIcon from 'mdi-react/PlusIcon'
import React from 'react'
import { Link } from '@sourcegraph/shared/src/components/Link'
import { ThemeProps } from '@sourcegraph/shared/src/theme'
import styles from './CodeMonitoringGettingStarted.module.scss'
import { CodeMonitorSignUpLi... |
import {ChildProcessWithoutNullStreams, spawn} from 'child_process';
import {EventEmitter} from 'events';
export interface IOptions {
all?: boolean;
lines?: number;
since?: Date | 'now' | 'yesterday' | 'today' | 'tomorrow';
utc?: boolean;
identifier?: string;
units?: string | string[];
}
expo... |
<reponame>PurdueDualityLab/refa
import { CharSet } from "./char-set";
import { faEnsurePureOut } from "./fa-iterator";
import { FAIterator, IntersectionOptions, TooManyNodesError } from "./finite-automaton";
/**
* An FA builder has the responsibility of constructing a finite automata.
*
* The constructed FA is alwa... |
import { basename, extname, join } from 'path';
import { terser } from 'rollup-plugin-terser';
import babel from 'rollup-plugin-babel';
import replace from 'rollup-plugin-replace';
import json from 'rollup-plugin-json';
import nodeResolve from 'rollup-plugin-node-resolve';
import typescript from 'rollup-plugin-typescri... |
<reponame>guanbinrui/ito-subgraph<gh_stars>1-10
import { BigInt, Address } from '@graphprotocol/graph-ts'
import { fetchToken } from './helpers'
import { CHAIN_ID } from './constants'
import { GENESIS_TIMESTAMP } from './constants_v2'
import { FillSuccess, DestructSuccess, SwapSuccess, Fill_poolCall, SwapCall } from '.... |
import { resolve } from "path";
import { rimraf } from "../utils";
import {
Options,
SchemaString,
TypeDecoders,
TypeEncoders
} from "../../../src/gen/options";
export interface Fixture {
id: string;
dir: string;
options: Options;
actual: string;
expect: string;
throws?: string;
}
export const cle... |
// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
import { ofType, unionize, UnionOf } from 'common/unionize';
import { Dispatch } from "redux";
import { RootState } from "../store";
import { ServiceRepository } from "services/services";
import { SshKeyResource } from '... |
import React, { FormEvent, useEffect, useState } from 'react';
import { useHistory } from 'react-router-dom';
import toast, { Toaster } from 'react-hot-toast'; // Toast
import PageHeader from '../../../components/PageHeader';
import Input from '../../../components/Input';
import warningIcon from '../../../assets/image... |
import appRootPath from 'app-root-path'
import config from '../../appconfig'
import fs from 'fs'
import fsStore from 'fs-blob-store'
import glob from 'glob'
import path from 'path'
import {
BlobStore,
StorageListObjectInterface,
StorageObjectInterface,
StorageProviderInterface
} from './storageprovider.interfac... |
<filename>src/fileHandler.ts
import * as path from "path";
import { IDTSOptions } from "./options";
import { AFileInterface } from "./fileInterfaces/fileInterface";
/**
* Declaration object.
*/
export interface IDeclarationObject {
/**
* Absolute path of the .d.ts.
*/
absoluteFilePath: string;
/**
* Path o... |
<reponame>bolom/kukai-1<gh_stars>0
import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnInit, Output, Sanitizer, ViewChild } from '@angular/core';
import { Asset, CachedAsset, TokenService } from '../../../services/token/token.service';
import { CONSTANTS, MODEL_3D_WHITELIST } from '../../../../environ... |
<filename>server/src/mxsDefinitions.ts
'use strict';
import
{
Definition,
DefinitionLink,
Location,
LocationLink,
Range,
Position,
SymbolInformation,
DocumentSymbol,
CancellationToken,
} from 'vscode-languageserver';
import { TextDocument } from 'vscode-languageserver-textdocument';
//-------------------------... |
import { AnyIterable } from "./types"
import { AsyncIterable } from "ix";
import { tmpNameSync } from 'tmp'
import { appendFile, open, read } from "fs-extra";
import * as P from 'ts-prime'
import { formatBytes } from "./helpers";
export interface GroupedItems<T> {
readonly key: string
readonly items: ReadonlyA... |
<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { ToastComponent } from '../shared/toast/toast.component';
import { EmployeeService } from '../services/employee.service';
import { ProfileService } from '../services/profile.service';
import { AuthService } from '../services/auth.service';
interfac... |
import * as React from 'react';
import { createRef } from "office-ui-fabric-react/lib/Utilities";
import styles from './GraphCalendar.module.scss';
import { IGraphCalendarProps } from './IGraphCalendarProps';
import { MSGraphClient } from "@microsoft/sp-http";
import FullCalendar from '@fullcalendar/react';
import { Ev... |
import { median, quantile, IEventListener } from '../internal';
import { toolbar } from './annotations';
import Column, {
widthChanged,
labelChanged,
metaDataChanged,
dirty,
dirtyHeader,
dirtyValues,
rendererTypeChanged,
groupRendererChanged,
summaryRendererChanged,
visibilityChanged,
dirtyCaches,... |
<filename>packages/core/src/index.ts
import type { Plugin } from 'vite'
import type { ExternalOption } from 'rollup'
import type { ImportSpecifier } from 'es-module-lexer'
import type {
ChangeCaseType,
VitePluginOptions,
LibraryNameChangeCase,
Lib,
} from './typing'
import { createFilter } from '@rollup/pluginu... |
<reponame>dlobsinger/metals-vscode
import {
commands,
EventEmitter,
ExtensionContext,
OutputChannel,
Position,
Range,
TextEditorRevealType,
TreeDataProvider,
TreeItem,
TreeItemCollapsibleState,
TreeView,
Uri,
window,
workspace,
} from "vscode";
import { LanguageClient, Location } from "vscod... |
<gh_stars>1-10
import { Request, Response, NextFunction } from "express";
import { IController, IRelatorioController } from "./interfaces";
import HttpException from "../helpers/httpException";
import { CorretorModel, ImovelModel, VendaModel } from "../models";
import endOfMonth from "date-fns/endOfMonth";
import { sub... |
/*
* renameModule.fromImports.test.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*
* Tests Program.RenameModule
*/
import assert from 'assert';
import { CancellationToken } from 'vscode-languageserver';
import { appendArray, createMapFromItems } from '../common/collectio... |
<reponame>hornegg/baphomation<gh_stars>0
import * as THREE from 'three';
import { BufferGeometry } from 'three';
import settings from './settings';
export const PI = Math.PI;
export const TWO_PI = 2 * PI;
export const HALF_PI = 0.5 * PI;
export const QUARTER_PI = 0.25 * PI;
export const EIGHTH_PI = 0.125 * PI;
export... |
/**
* Overlay 组件
* ---------------
* 动画库 react-transition-group 文档
* 老的文档
* https://facebook.github.io/react/docs/animation.html
* 新的文档
* https://reactcommunity.org/react-transition-group/
* 动画效果
* https://daneden.github.io/animate.css/
*/
import React, { cloneElement, useEffect, useRef, useState } from 'reac... |
import React, { Fragment } from 'react';
import clsx from 'clsx';
import {
Toolbar,
AppBar,
IconButton,
Typography,
InputBase,
Badge,
MenuItem,
Menu,
Button,
SwipeableDrawer,
Divider,
List,
ListItem,
ListItemIcon,
ListItemText,
} from '@material-ui/core';
import {
Menu as MenuIcon,
Sea... |
import { HttpClient } from "@angular/common/http";
import { Component, DebugElement, Input } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { By } from "@angular/platform-browser";
import { TelemetryService } from "@batch-flask/core";
import { I18nTestingModule } from "@... |
<reponame>NonagonNetwork/glowing-memory<gh_stars>1-10
import * as AudioMixer from 'audio-mixer';
import { ChildProcessWithoutNullStreams, spawn } from 'child_process';
import dbg from 'debug';
import prism from 'prism-media';
import * as Sentry from '@sentry/node';
import { Voice } from '..';
import BaseModule from '.... |
import { Audio } from 'expo-av';
import React from 'react';
import { StyleSheet, Switch, View } from 'react-native';
import { BorderlessButton } from 'react-native-gesture-handler';
import AudioPlayer from '../components/AudioPlayer';
import Colors from '../constants/Colors';
import Environment from '../utils/Environm... |
import React, { useState } from 'react';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import TextField from '@material-ui/core/TextField';
import Link from '@material-ui/core/Link';
import Grid from '@material-ui/c... |
<reponame>Taco-Gestapo/TypeScript<filename>tests/cases/compiler/strictOptionalProperties1.ts<gh_stars>1-10
// @strict: true
// @exactOptionalPropertyTypes: true
// @declaration: true
function f1(obj: { a?: string, b?: string | undefined }) {
let a = obj.a; // string | undefined
let b = obj.b; // string... |
import * as util from "util";
import * as path from "path";
import { SourceMapConsumer } from "source-map";
import { isInteractive } from "./helpers";
import { deprecated } from "./decorators";
// we need this to overwrite .stack property (read-only in Error)
function Exception() {
/* intentionally left blank */
}
E... |
<gh_stars>1-10
/* eslint global-require: off, no-console: off */
/**
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
* through IPC.
*
* When running `yarn build` or `yarn build-main`, this file is compiled to
*... |
<gh_stars>0
import { DatePipe } from '@angular/common';
import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
import { NbDialogRef, NbToastrService } from '@nebular/theme';
import { filter } from 'lodash';
@Component({
selector: 'ngx-filter-listing',
templateUrl: './filter-listing.component.... |
import React from 'react';
import {
IconBox,
IconPlane,
IconPlaneDeparture,
IconPlaneArrival,
} from '@tabler/icons';
import { SimbriefData } from '../../Efb';
import fuselage from '../../Assets/320neo-outline-nose.svg';
type FlightWidgetProps = {
simbriefData: SimbriefData,
fetchSimbrief: Func... |
chrome.runtime.onMessage.addListener((request, sender, respond) => {
const handler = new Promise((resolve, reject) => {
console.log(`Request to content page:`, request);
// Getting information about current Steam Item
const itemInfo = getItemInfo();
switch (request.type) {
case 'getInfoFromPage... |
#!/usr/bin/env node
/*
Copyright (C) 2018 - 2019 HERE Europe B.V.
SPDX-License-Identifier: MIT
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 l... |
<reponame>k-krasilnikova/SUL
import mongoose, { Types } from 'mongoose';
import { isNull } from 'lodash';
import { ISkillTech, IUserSkill, IUserSkillPopulated } from 'interfaces/entities/userSkill';
import { ICourseTechnologyPayload, IEditCoursePayload } from 'interfaces/requests/common/payloads';
import { ISkillGroup... |
import {
ChangeDetectionStrategy,
Component,
ElementRef,
Inject,
Input,
OnChanges,
OnInit,
Renderer2,
SimpleChanges,
ViewEncapsulation
} from "@angular/core";
// tslint:disable-next-line:match-default-export-name
import sqlFormatter from "@sqltools/formatter";
/* tslint:disable:no-duplicate-imports no-import-... |
import Util from "./Util";
import UserAbortError from "./UserAbortError";
declare const gapi: any;
declare const google: any;
export interface Document {
metadata: DocumentMetadata;
contents: string;
}
export interface DocumentMetadata {
id: string;
name: string;
mimeType: string;
}
export interface PickerDocu... |
<filename>src/solvers/Solver16.ts
import { EOL } from 'os';
import BaseSolver from './BaseSolver';
import Operation from './DeviceProcessor/Operation';
import Addi from './DeviceProcessor/Addi';
import Addr from './DeviceProcessor/Addr';
import Bani from './DeviceProcessor/Bani';
import Banr from './DeviceProcessor/Ba... |
<reponame>CJomaGit/Jikan4.js
import { Client } from '../core/client'
import { URL } from 'url'
import { waitUntil, sleep } from '../utils'
import HTTP from 'http'
import HTTPS from 'https'
import { CacheManager } from './cache'
export interface APIRequestQuery {
disableCaching?: any
[key: string]: string | undefi... |
<reponame>Sewertronics/nest<gh_stars>1-10
import { bold, gray, green, red } from "../deps.ts";
import { lineBreak, log } from "../utils/log.ts";
import type { JSONArray, JSONValue } from "../utils/types.ts";
export enum DiffType {
common = "common",
added = "added",
removed = "removed",
updated = "updated",
}
... |
<reponame>barlus/framework
// import { stylesheet, rem } from '@barlus/styles';
// import { config } from '../config';
// import { buttonVariant } from '../mixins/button';
// import { controlShadow } from '../mixins/shadow';
// import { controlTransition } from '../mixins/transition';
// export const enum Theme {
// ... |
import express from 'express';
import { Request, Response } from 'express-serve-static-core';
import fs from 'fs';
import { readdir, readFile } from 'fs/promises';
import { Script, Sketch } from 'p5-analysis';
import path from 'path';
import { addScriptToHtmlHead } from '../helpers';
import { assertError } from '../ts-... |
import Value from 'Components/EngineValue'
import RuleLink from 'Components/RuleLink'
import { EngineContext, useEvaluation } from 'Components/utils/EngineContext'
import { formatValue, ParsedRule, ParsedRules } from 'publicodes'
import React, { Fragment, useContext } from 'react'
import { Trans, useTranslation } from ... |
<reponame>yojiwatanabe/kibana<filename>x-pack/plugins/ml/public/application/jobs/new_job/common/job_runner/job_runner.ts
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except i... |
<reponame>mcintyremason/masonmcintyre-nextjs<filename>components/SeniorProject/Background.ts
export const INITIAL_MOUNTAINS = {
sourceWidh: 78,
sourceHeight: 26,
y: 13,
}
export const INITIAL_FANS = {
sourceWidth: 25,
sourceHeight: 22,
y: INITIAL_MOUNTAINS.y + INITIAL_MOUNTAINS.sourceHeight,
}
export cons... |
<filename>src/ts/renderer/TwoWebGLRenderer.ts
// @ts-ignore
import Two from "two.js";
import {Renderer} from "./Renderer";
import {Tile} from "../Tile";
import {Coordinate} from "../Coordinate";
import {Orientation, OrientationMap} from "../Orientation";
// @ts-ignore
import north from "bootstrap-icons/icons/arrow-up... |
import microMemoize from 'micro-memoize';
import {isBackgroundPage} from 'webext-detect-page';
import toMilliseconds, {TimeDescriptor} from '@sindresorhus/to-milliseconds';
// @ts-expect-error
// eslint-disable-next-line @typescript-eslint/promise-function-async
const getPromise = (executor: () => void) => <T>(key?): ... |
import ApexDox from '../engine/ApexDox';
import Settings, { Feature } from '../common/Settings';
import Utils from '../common/Utils';
import { IDocblockConfig, IStubLine } from '..';
import {
Position,
SnippetString,
TextDocument,
TextEditor,
TextLine
} from 'vscode';
export enum StubType {
... |
<reponame>ewanharris/vscode-appcelerator-titanium
import * as path from 'path';
import * as vscode from 'vscode';
import appc from '../../appc';
import { enterPassword, inputBox, quickPick, yesNoQuestion } from '../common';
import { UserCancellation } from '../../commands';
import { pathExists } from 'fs-extra';
import... |
import React from 'react';
import { Section } from '../src/components/section/Section';
import { themeColors, fontColors } from '../src/styles/Themes';
import {
Title,
Question,
Text,
BulletPoint,
} from '../src/components/typography/Styled';
import { ContactSection } from '../src/views/homepage/Sections/Contac... |
<reponame>sevenc-nanashi/sonolus-pjsekai-engine-extended
type Line = [string, string]
type MeasureChange = [number, number]
type RawObject = {
tick: number
value: string
}
export type NoteObject = {
tick: number
lane: number
width: number
type: number
}
export type Score = {
... |
<gh_stars>1-10
export const pointerCoord = (ev: any): { x: number; y: number } => {
// get X coordinates for either a mouse click
// or a touch depending on the given event
if (ev) {
const changedTouches = ev.changedTouches;
if (changedTouches && changedTouches.length > 0) {
const touch = changedTou... |
import React, { memo, useContext } from 'react';
import useEpisodeList from 'hooks/useEpisodeList';
import { GatsbyImage, IGatsbyImageData } from 'gatsby-plugin-image';
import { Link } from 'gatsby';
import { RiPlayCircleLine } from 'react-icons/ri';
import TrackContext from 'contexts/TrackContext';
import PlayerStateC... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
"use strict";
import AdmZip from "adm-zip";
import axios from "axios";
import colors from "colors";
import fs from "fs-extra";
import path from "path";
import { Argv, Options } from "yargs";
import {
FxError,
err,
ok,
Result,
Stage,... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
DeviceEventEmitter,
Dimensions,
StyleSheet,
TouchableOpacity,
View,
ViewStyle
} from 'react-native';
import * as Animatable from 'react-native-animatable';
const CARD_HEIGHT = 400;
const styles = StyleSheet.create({
bot... |
<filename>src/ui/index.common.ts<gh_stars>0
import { CSSType, View } from '@nativescript/core/ui/core/view';
import { LatitudeKey, MapPos, fromNativeMapPos } from '../core';
import { bearingProperty, focusPosProperty, tiltProperty, zoomProperty } from './cssproperties';
import { Layer } from '../layers';
// import { Na... |
<filename>src/thread/base/ThreadBase.ts
/***************************************************************************/
/* */
/* Copyright 2018-2022 by */
/* Vily(<EMAIL>) ... |
/* Unit tests for checking tile-based levels. */
import { expect } from 'chai';
import RG from '../../../client/src/rg';
import {TemplateLevel} from '../../../client/src/template.level';
// import {HousesDiag} from '../../../client/data/tiles.diag';
import {Tiles3x3} from '../../../client/data/tiles3x3';
import {Basic... |
<gh_stars>1-10
import * as chai from 'chai'
import { AddressInfo } from 'net'
import * as chaiAsPromised from 'chai-as-promised'
import * as path from 'path'
import * as http from 'http'
import { BrowserWindow, webContents } from 'electron'
import { emittedOnce } from './events-helpers';
import { closeAllWindows } from... |
import React from "react";
import cx from "clsx";
import { makeStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import Button from "@material-ui/core/Button";
import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight";
import KeyboardArrowLeft from "@material-... |
import { readFile } from "fs-extra";
import { join } from "path";
import { types, parse, visit } from "recast";
import { logMod } from './logger';
/* inserts code after a function declaration */
export const insertCodeAfterFunctionDeclaration = (ast: types.ASTNode, functionName: string, code: string) => {
visit(as... |
import React from 'react'
import { Form } from 'antd'
import styled from 'styled-components'
import Input from 'src/components/molecules/Input'
import { useProvider } from 'src/fixtures/wallet/hooks'
import { InfoCircleOutlined, AccountBookOutlined, CodeOutlined, FontColorsOutlined } from '@ant-design/icons'
import { u... |
<gh_stars>1-10
const ValueParser = require('postcss-value-parser');
export interface decl {
prop: string,
value: string,
}
export interface ValueNode {
type: string;
value: string;
sourceIndex: number;
before: string;
after: string;
quote: string;
unclosed: boolean;
nodes: Arra... |
import * as React from 'react'
import { connect } from 'react-redux'
import { RouteComponentProps } from 'react-router'
import { withRouter, Link } from 'react-router-dom'
import { Breadcrumb, BreadcrumbItem, Button } from 'reactstrap'
import { APIRequest, isAPIFailed, isAPISucceeded } from '@src/apis/Core'
import {
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { DatabaseManager } from "@alice-database/DatabaseManager";
import { PrototypePPCollectionManager } from "@alice-database/managers/aliceDb/PrototypePPCollectionManager";
import { PrototypePP } from "@alice-database/utils/aliceDb/PrototypePP";
import { ApplicationCommandOptionTypes } from "discord.js/typings/enum... |
<filename>src/components/admin/article/article-logic.ts
// We should probably contribute a type file for this very small library at some point?
// For now I'm just ignoring it
import { JSONGraphEnvelope } from 'falcor';
import { parseFalcorPseudoArray } from 'lib/falcor/falcor-utilities';
import { Converter } from 'sho... |
<gh_stars>0
import type { PackageJson } from '../types'
import path from 'path'
import { NodeResolver, NodePackageJson } from './node-resolver'
export interface GetPackagesFoldersOptions {
/** If true, packages hosted inside a package node_modules will not be returned. Default is true. */
topLevelOnly?: boolean
... |
import {
AddEventsBehaviour, AlloyComponent, AlloyEvents, Behaviour, Composing, Keying, Memento, RawDomSchema, SimulatedEvent, Sketcher, Slider
} from '@ephox/alloy';
import { FieldSchema } from '@ephox/boulder';
import { Arr, Cell, Fun } from '@ephox/katamari';
import { Hex } from '../api/colour/ColourTypes';
impor... |
import * as github from "@actions/github";
import { shopifyAuth } from "./shopify";
import * as core from "@actions/core";
import { Context } from "@actions/github/lib/context";
import { GitHub } from "@actions/github/lib/utils";
import { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods/dist-types/... |
import * as React from "react";
import * as SDK from "azure-devops-extension-sdk";
import { Header, TitleSize } from "azure-devops-ui/Header";
import { Page } from "azure-devops-ui/Page";
import { showRootComponent } from "../../Common";
import { getClient, CommonServiceIds, ILocationService, IExtensionDataService, IP... |
<gh_stars>1-10
import { Query, System } from 'ape-ecs'
import Grinding, { GrindState } from '../components/com_grinding'
import { GlobalEntity, Tags } from '../types'
import Move from '../components/com_move'
import { addGrids, moveDirectional } from '../util'
import { Level, Tile } from '../core/level'
import Transfor... |
import { ASCENDING, DESCENDING } from '../constants';
import { ConfigType, DataField, RSQuery } from '../types/types';
import {
getAutoCompleteQuery,
getFieldsFromDataField,
getFuzziness,
getIncludeExcludeFields,
getPaginationMap,
getStringFieldsFromDataField,
getSynonymsQuery,
} from './common';
export const g... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Store } from '@ngrx/store';
import { Router } from '@angular/router';
import { HttpErrorResponse } from '@angular/common/http';
import { combineLatest, Subject } from 'rxjs';
import { identity, keyBy, at } from 'lodash/fp';
import { filter, map, plu... |
import { Logger, NullLogger } from './log';
import { Unknown, hasOptionalProperty, hasProperty, isStringArray } from './type';
export type Compares = 'folders' | 'images' | 'text';
export type ExternalToolArgs = Array<string | ExternalToolArgs>;
export interface Defaults {
folders: string | null;
images: stri... |
import { existsSync, PathLike, readdir, readFile, writeFile, realpathSync, statSync } from 'fs';
import util from 'util';
import path from 'path';
import { ImplementationGuides } from 'fhir-works-on-aws-interface';
/* eslint no-restricted-syntax: 0 */
/* eslint no-await-in-loop: 0 */
/* eslint class-methods-use-this: ... |
<filename>packages/mock/src/creator.ts
import {
destroyGlobalApplicationContext,
initializeGlobalApplicationContext,
BaseFramework,
IMidwayApplication,
IMidwayBootstrapOptions,
IMidwayFramework,
MidwayFrameworkService,
MidwayFrameworkType,
safeRequire,
MidwayContainer,
MidwayCommonError,
} from '@... |
import {fetchIndicator, fetchIndicatorsForSelection} from '@/services/data/tuples/indicator';
import {IndicatorId} from '@/services/data/tuples/indicator-types';
import {fetchInspection, listInspections, saveInspection} from '@/services/data/tuples/inspection';
import {Inspection, InspectionId} from '@/services/data/tu... |
<reponame>dmitry-stepanenko/nx-console<filename>libs/server/src/lib/utils/read-collections.ts
import { CollectionInfo, Generator, GeneratorType } from '@nx-console/schema';
import { platform } from 'os';
import { dirname, join, resolve } from 'path';
import {
clearJsonCache,
listOfUnnestedNpmPackages,
readAndCach... |
<gh_stars>0
import * as vscode from 'vscode';
import moment = require('moment');
import { Moment } from 'moment';
import { Value, ValueKey, SetValue, SequenceValue, StructureValue, SimpleFunction,
InitialStateStatItem, CoverageItem, ModelCheckResult, CheckState, CheckStatus, MessageLine, MessageSpan,
ErrorTrace... |
/** @ngInject **/
function MediaPlayerCtrl(_, $scope, $element, $interval, $sce, EventBus) {
/**
* To make sure we have access to the viewmodel in all closures
* we declare it as a local, immutable variable.
*/
const vm = this;
/**
* These variables are all immutable values used throug... |
import DialogPromise from '../DialogPromise';
import { createDialogResult, DialogButton } from '../utils';
export const validateDate = (param: any | any[], allowMissingValue = true) => {
if (allowMissingValue && (param === null || param === undefined)) return param;
if (chayns.utils.isDate(param)) {
re... |
<filename>Code.ts
const spreadName = 'google-visitor-manager'
const spreadId = findFile()
console.log('🚀🚀', spreadId)
function createSpreadSheet() {
var folderId = DriveApp.getRootFolder().getId()
var resource: GoogleAppsScript.Drive.Schema.File = {
title: spreadName,
//@ts-ignore
mim... |
import { Point, State } from "./types";
const getValue = (id: string): number | undefined => {
const elm = document.getElementById(id);
if (!(elm instanceof HTMLInputElement)) {
throw TypeError;
}
return parseInt(elm.value, 10);
};
const setValue = (id: string, val: number): void => {
const elm = docume... |
<reponame>liuxsdev/XYZTiles<gh_stars>0
import { TileLayer, TileLayerOptions } from "leaflet";
class Tianditu {
/**
* 天地图XYZ Tiles
* 官方网站地图API说明:http://lbs.tianditu.gov.cn/server/MapService.html
* 申请key(accesstoken):https://console.tianditu.gov.cn/api/key
* subdomains: "01234567",
*... |
<gh_stars>0
let instance: Time;
//Format Example: 2019/9/22|10:12:23|GMT...
export interface TimeInfo {
year: number;
month: number;
date: number;
hour: number;
minute: number;
second: number;
region: string;
}
export enum TimeFieldType {
YEAR,
MONTH,
DATE,
HOUR,
MIN... |
import { FC, useState, useEffect } from 'react'
import { Form, Switch, Input, Space, Button, Table, Modal, message } from 'antd'
import { MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons'
import { useAtom } from 'jotai'
import { currentProjectAtom } from '@/atoms'
import type { RouteComponentProps } f... |
<reponame>vue-styleguidist/vue-docgen-api
import * as path from 'path'
import { ComponentDoc, PropDescriptor } from '../../../src/Documentation'
import { parse } from '../../../src/main'
const button = path.join(__dirname, './Button.vue')
let docButton: ComponentDoc
describe('tests button', () => {
beforeAll(done =... |
<gh_stars>0
/**
* List of @babel/parser plugins that are used for template expression
* transforms and SFC script transforms. By default we enable proposals slated
* for ES2020. This will need to be updated as the spec moves forward.
* Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
*/
export de... |
import { ElementRef, Directive, OnInit, OnDestroy, Input } from '@angular/core';
import { Subscription, fromEvent } from 'rxjs';
enum MouseStatus {
MouseUp = 'mouseup',
MouseDown = 'mousedown',
}
enum Direction {
Top = 'TOP',
TopRight = 'TOP_RIGHT',
Right = 'RIGHT',
BottomRight = 'BOTTOM_RIGHT',
Bottom ... |
<filename>ppr-ui/tests/unit/CourtOrder.spec.ts
// Libraries
import Vue from 'vue'
import Vuetify from 'vuetify'
import CompositionApi from '@vue/composition-api'
import { getVuexStore } from '@/store'
import { mount, createLocalVue } from '@vue/test-utils'
// Components
import { CourtOrder } from '@/components/common'... |
import {Sequence} from '../base_classes/card_game';
import {BaseHand} from '../base_classes/collections/hand';
import {BaseCard as Card, Suit, Value} from '../base_classes/items/card';
class RunLength {
numRuns: number;
runLength: number;
constructor(runs: number, length: number) {
this.numRuns = ... |
import React, { ChangeEvent, useEffect, useState } from 'react';
import { useId } from '@reach/auto-id';
import * as tus from 'tus-js-client';
import { toast } from 'react-toastify';
import type { IEntry, IFile, IUploadFile } from '../competition';
import { getToken } from '../../../utils/fetcher';
import { parseError ... |
const hue = 217;
const maxStars = 1300;
export default class StarrySky {
canvas: HTMLCanvasElement;
ctx: CanvasRenderingContext2D;
w!: number;
h!: number;
stars: Star[]; //保存所有星星
count: number; //用于计算星星
constructor(id: string) {
this.stars = [];
this.count = 0;
this.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.