text stringlengths 3.08k 15.5k |
|---|
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { FTCDatabase } from '../../providers/ftc-database';
import { TeamFilter } from '../../util/team-utils';
import { TheOrangeAllianceGlobals } from '../../app.globals';
const TEAMS_PER_PAGE = 500;
@Component({
selecto... |
import { createState, State, useState } from '@speigg/hookstate'
import React from 'react'
import { useXRUIState } from '@xrengine/engine/src/xrui/functions/useXRUIState'
import { Entity } from '../../ecs/classes/Entity'
import { getComponent } from '../../ecs/functions/ComponentFunctions'
import { NameComponent } fr... |
import {
nullable,
boolean,
date,
number,
string,
array,
dict,
map,
optional,
set,
union,
field,
fields,
literal,
record,
tuple,
decodeType,
Pojo,
Decoder,
decode,
intersection,
} from '../src';
test('everything', () => {
const discriminatedUnion = union(
{ discriminant:... |
type UnwrapAux<T> = T extends never
? never
: T extends { __rec: { __rec: infer U } }
? { __rec: UnwrapAux<U> }
: T extends { __rec: infer U }
? U
: T;
type Unwrap<T> = T extends { __rec: unknown } ? Unwrap<UnwrapAux<T>> : T;
type RepeatImpl1<
T,
N extends number,
R extends unknown[] = []
> = R["len... |
import { R, B, BB, E, EE, M, mk } from './prelude.js'
import balance from './balance.js'
const rotate =
<T>(_: M<T>): M<T> => {
switch (true) {
// rotate R (T BB a x b) y (T B c z d) = balance B (T R (T B a x b) y c) z d
case _.c === R && _.l?.c === BB && _.r?.c === B: {
const { l: { l: a, v... |
<reponame>DidjaRedo/BotStuff<filename>boneyard/src/commandsv1/command.ts<gh_stars>0
/*
* Copyright (c) 2020 <NAME>
*
* 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, ... |
<reponame>czcorpus/wdglance
/*
* Copyright 2018 <NAME> <<EMAIL>>
* Copyright 2018 Institute of the Czech National Corpus,
* Faculty of Arts, Charles University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... |
import { Model } from 'mongoose'
import { Service, Inject } from 'typedi'
import bcrypt from 'bcrypt'
import xss from 'xss'
import { v4 as uuid } from 'uuid'
import { createWriteStream, unlinkSync } from 'fs'
import sharp from 'sharp'
import myEmitter, { USER_SIGNUP } from '../events/events'
import { trim, getFilterin... |
<gh_stars>0
import { Component, Input, OnChanges, OnDestroy, OnInit } from '@angular/core';
import { PLATFORM_ID, Inject } from '@angular/core';
import { NavigationEnd, Router, ActivatedRoute } from '@angular/router';
import { Observable, of, Subject } from 'rxjs';
import { take, takeUntil } from 'rxjs/operators';
imp... |
import {
WxBreadcrumbTypes,
ErrorTypes,
globalVar,
HttpTypes,
HTTP_CODE,
MethodTypes,
WxEventTypes,
BreadcrumbCategorys,
WxBaseEventTypes
} from '@bdw/monitor-shared'
import { BasePluginType, HttpCollectedType, HttpTransformedType } from '@bdw/monitor-types'
import { fromHttpStatus, getCurrentRoute, g... |
<gh_stars>0
import utils from '../../common';
import { WebsocketClientOptionsType } from '../node/client';
interface BrowserListenerOptions {
onopen?: (connection: WebSocket, event: Event) => void;
onerror?: (connection: WebSocket, event: Event) => void;
onclose?: (connection: WebSocket, event: Event) => void;
onp... |
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
import * as child_process from 'child_process';
import { exporter } from './exporter';
import { httpExporter } from './httpExporter';
import { Diagram, Diagrams } from './diagram';
import { config } from './config';
import { cont... |
import { BuffSet, Calculator, CraftEssence, NpResult, Range } from "./damage";
import { CardType, Servant } from "./servant";
import { Enemy } from "./enemy";
import update from "immutability-helper";
import { Type } from "class-transformer";
import { TemplateData } from "./data";
import { s, ScaledInt } from "./arithm... |
<reponame>Kelketek/postybirb-plus
import * as _ from 'lodash';
import { EventEmitter } from 'events';
import { AccountService } from '../../account/account.service';
import { PostData } from './interfaces/post-data.interface';
import {
DefaultOptions,
DefaultFileOptions,
} from '../submission-part/interfaces/defaul... |
'use strict';
import { getStyle } from './utils/util'
import Point from './tools/Point';
import Line from './tools/Line';
import Pencil from './tools/Pencil';
import Eraser from './tools/Eraser';
import Rect from './tools/Rect';
import Text from './tools/Text';
import Ellipse from './tools/Ellipse';
type Shape = Lin... |
import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import * as moment from 'moment';
import { cloneMessage, momentToProtoDate, momentToTimestamp, moneyToNumber, numberToMoney, protoDateToMoment, timestampNow, timestampToMoment } from 'src/app/core/prot... |
import { Address } from "@iov/bcp";
import Paper from "@material-ui/core/Paper";
import clipboardCopy from "clipboard-copy";
import {
ActionMenu,
ActionMenuItem,
Avatar,
Block,
Hairline,
Image,
makeStyles,
ToastContext,
ToastVariant,
Tooltip,
Typography,
} from "medulas-react-components";
import R... |
import TagInfo from './parse_tool/tag_info'
import { getConfig, ConfigObject } from '../generate_config';
import * as fs from "fs-extra";
import * as path from "path";
import { errorLog, infoLog, successLog } from '../color_log';
const VersionList: string[] = [];
const GroupList: string[] = [];
const BlockInfoList: a... |
<reponame>pingzing/pulp-fiction<gh_stars>0
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppRoutingModule } from... |
import sound from '../../sound';
import router from '../../router';
import * as chess from '../../chess';
import settings from '../../settings';
import gameStatusApi from '../../lichess/status';
import * as gameApi from '../../lichess/game';
import { oppositeColor } from '../../utils';
import { setCurrentOTBGame } from... |
import { KeyType, ObjectClass, SecretKey, SessionObject } from "graphene-pk11";
import * as core from "webcrypto-core";
import { Crypto } from "./crypto";
import { CryptoKey } from "./key";
import { AesCryptoKey, EcCryptoKey, HmacCryptoKey, RsaCryptoKey } from "./mechs";
import * as utils from "./utils";
const OBJECT_... |
import React, { useMemo } from 'react'
import IconButton from '@mui/material/IconButton'
import makeStyles from '@mui/styles/makeStyles'
import Tooltip from '@mui/material/Tooltip'
import { Shift } from './sharedUtils'
import ScheduleIcon from '@mui/icons-material/Schedule'
import Delete from '@mui/icons-material/Delet... |
import { Tab, TabList, TabPanel, TabPanels, Tabs, useTabsContext } from '@reach/tabs'
import classNames from 'classnames'
import React, { useState, useCallback, useEffect, useMemo } from 'react'
import { Subject } from 'rxjs'
import { catchError, debounceTime, startWith, switchMap } from 'rxjs/operators'
import { isEr... |
<filename>src/repositories/account.repository.ts
import { model, Model } from 'mongoose'
import config from '../config/config'
import { CarrierInterface } from '../entities/interfaces/data/carrier.interface'
import { TruckInterface } from '../entities/interfaces/data/truck.interface'
import { DriverInterface } from '..... |
/*
* Copyright (c) 2018, SOW ( https://safeonline.world, https://www.facebook.com/safeonlineworld). (https://github.com/safeonlineworld/cwserver) All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
import { IContext } from './sow-server';
import ... |
import fetch, { Response, BodyInit } from 'node-fetch';
import { URL } from 'url';
import { Agent, AgentOptions } from 'http';
import * as discovery from './discovery';
import * as openapi from './openapi';
import { Group, Resource, Object, Definition } from './interfaces';
export default class API {
agent?: Agent;
... |
import { CompileTimeConstants, CompileTimeHeap } from '../program';
import { Dict, Option } from '../core';
import { SingleBuilderOperand } from './operands';
import { NamedBlocks, HandleResult } from '../template';
import { Op, MachineOp } from '../vm-opcodes';
import * as WireFormat from './wire-format';
import { Int... |
<gh_stars>1-10
import { Component, Input, OnInit, QueryList, ViewChildren } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { GridsterConfig, GridsterItem } from 'angular-gridster2';
import { PilotStudyService } from '../../pilot.s... |
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
<gh_stars>0
import { DEFAULT_MAX_CALL_RETRIES } from '@darkforest_eth/constants';
import { address } from '@darkforest_eth/serde';
import { AutoGasSetting, EthAddress, GasPrices, SignedMessage } from '@darkforest_eth/types';
import { BigNumber, Contract, ContractInterface, providers, utils, Wallet } from 'ethers';
impo... |
import { TObject, TRet } from "./deps.ts";
export type GenHtmlOpts = {
swaggerOptions?: TObject;
customCss?: string;
customJs?: string;
customfavIcon?: string;
swaggerUrl?: TRet;
swaggerUrls?: TRet;
explorer?: TRet;
customSiteTitle?: string;
customCssUrl?: string;
baseUrlLibSwagger?: string;
html... |
<filename>src/bdf.ts<gh_stars>10-100
import { range } from "./arrays";
import { BitmapFont } from "./bitmap_font";
import { BitDirection, Glyph } from "./glyph";
/*
* BDF format is some old Adobe format (apparently originally for magnetic
* tape?!) that was adopted by X11 and became a standard. It's a text file
* w... |
import { MediaResolverTypes } from '@bldr/type-definitions'
import { selectSubset } from '@bldr/core-browser'
import { getExtension, formatMultiPartAssetFileName } from '@bldr/string-format'
import { mimeTypeManager, MediaUri } from '@bldr/client-media-models'
import {
assetCache,
createHtmlElement,
SampleColl... |
<reponame>CPSSw/cpss-finite-state-machine
/**
* @license
* Copyright (c) 2019 XGDFalcon®. All Rights Reserved.
* This code may only be used under the license found in the included LICENSE.md
*
* XGDFalcon LLC retains all intellectual property rights to the code distributed
* as part of the Control Point System So... |
<reponame>Azhanging/blue-uni-app-program
import config from '@config';
import utils from 'blue-utils';
import store from '@store';
import {apiLogin} from '$api';
import {setUserInfo} from '$mp-api/user-info';
import {getCurrentPath, setLastPath} from "$mp-api/page";
import {hideLoading, showLoading} from '$mp-api/loadi... |
<reponame>Squamanto/Discus-Bot
import { request, RequestOptions } from "https";
import { TokenPair } from "../../data/tokenPair";
import { Repository } from "../../data/repository"
import * as Logging from "../../../logging";
import { SpotifyAPI } from "./spotifyApi";
let logger = Logging.buildLogger("spotifyApi")... |
<reponame>TomTronchet/mapwize-ui-js
import * as $ from 'jquery'
import { defaults, get, isObject, isString, noop, set } from 'lodash'
import { apiKey, apiUrl, map } from 'mapwize'
import uiConfig from './config'
import { FooterManager } from './footer'
import { HeaderManager } from './header'
import { unit } from './... |
import { Vue, Component, Prop } from 'vue-property-decorator'
import { seatTypeMap } from './util'
import { User } from './client'
@Component
export default class extends Vue {
show: boolean = false
taskList: TaskObject[] = getTaskListFromLocalStorage()
orderList: UncompletedOrder[] = []
activeTab: 'watch' | '... |
<reponame>Andy92Pac/diff2html<filename>scripts/hulk.ts<gh_stars>1-10
/*
* Copyright 2011 Twitter, Inc.
* 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/licen... |
/* eslint-disable react/prop-types */
import React from 'react'
import { Container, Row, Col } from 'react-bootstrap'
import gambar from '../img/logo.png'
import { Link } from 'react-router-dom'
import { IoLogoGithub, IoLogoInstagram, IoIosHeart } from 'react-icons/io'
type Props = {
readonly isDashboard?: boolean
... |
import {
Component,
ChangeDetectionStrategy,
ViewEncapsulation,
Input,
Output,
EventEmitter,
ChangeDetectorRef,
forwardRef,
AfterViewInit,
ContentChildren,
QueryList,
ElementRef,
OnDestroy,
} from '@angular/core';
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';
import... |
<gh_stars>10-100
import { assertUnreachable, Vec2 } from '@/types'
import { Rotation } from './rotation'
export enum Elem {
// Basic
Wall,
Gate,
// Source
Laser,
NonLinearCrystal,
// Direction
Mirror,
BeamSplitter,
PolarizingBeamSplitter,
CoatedBeamSplitter,
CornerCube,
// Absorption
Detect... |
import * as core from '@actions/core'
import * as github from '@actions/github'
import FS from 'fs-extra'
import path from 'path'
import semver from 'semver'
import {getVersion} from './utils'
async function run(): Promise<void> {
try {
const myToken = core.getInput('token')
const test = core.getInput('test'... |
/**
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
<reponame>Vertexvis/vertex-api-client-node
import { AxiosResponse } from 'axios';
import {
CreateFileRequest,
CreateGeometrySetRequest,
CreatePartRequest,
Failure,
Part,
PartData,
PartList,
PartRevisionData,
PartRevisionList,
QueuedJob,
} from '../../index';
import {
BaseReq,
DeleteReq,
encod... |
import { Form, message, Tag, Tooltip } from 'antd';
import type { ProColumns, ActionType } from '@ant-design/pro-table';
import { addList, proteinList } from './service';
import type { TableListItem, TableListPagination } from './data';
import React, { useState, useRef } from 'react';
import ProTable from '@ant-design/... |
import React, { useCallback, useRef, useState } from 'react'
import { Button, Grid, LinearProgress, Tooltip } from '@material-ui/core'
import { FormProvider, useForm } from 'react-hook-form'
import { useMutation, useQueryClient } from 'react-query'
import SelectField from 'src/components/CustomFields/SelectField'
imp... |
import * as HTTP from './APIRequest';
import { URL } from 'node:url';
import { Team } from './Team';
export class Player {
constructor(playerData: string | number | any) {
if (typeof playerData == 'string') {
let data = JSON.parse(playerData);
this.Id = data.id;
this.UserId = data.user_id;
... |
import { CheckpointPrefix, CheckpointSuffix } from './Constants';
export const CheckPointRegexp = new RegExp(`${CheckpointPrefix}\\d+${CheckpointSuffix}`, "im");
export const DelimiterRegexp = new RegExp("\\r?\\n");
export const ForwardRegexp = new RegExp("^[-\\w]+[ ]*Forwarded message(:|[ ]*-+)$", "im");
export co... |
<reponame>lengzhang/digital-image-processor
import { FormApi } from "final-form";
import { BitType } from "src/utils/grayLevelResolution";
import { scrollToBottom } from "src/utils";
import useImageItems from "src/hooks/useImageItems";
import {
spatialFilteringMethodType,
sharpeningLaplacianMaskMode,
} from "src/... |
<reponame>znck/preview
/* eslint-disable @typescript-eslint/prefer-ts-expect-error */
// @ts-ignore - export * is not supported from rollup-plugin-dts
import { Component, defineComponent, h } from 'vue';
export function repeat<T>(count: number, generator: (index: number) => T): T[] {
const items: T[] = [];
for (le... |
import { Vector4 } from "./vec4";
export class Color extends Vector4
{
get r() { return this[0]; }
set r(r: number) { this[0] = r; }
get g() { return this[1]; }
set g(g: number) { this[1] = g; }
get b() { return this[2]; }
set b(b: number) { this[2] = b; }
get a() { return this[3]... |
<reponame>greenenergyprojects/obd2-gateway
import * as debugsx from 'debug-sx';
const debug: debugsx.IDefaultLogger = debugsx.createDefaultLogger('odb2:core:fakeserial');
import * as events from 'events';
import * as fs from 'fs';
import path = require('path');
export class FakeSerial extends events.EventEmitter {
... |
<gh_stars>0
import axios from "axios";
import fs from "fs";
import path from "path";
import ProgressBar from "progress";
import targz from "targz";
import { Reader, ReaderModel } from "@maxmind/geoip2-node";
import { get, has } from "lodash";
import { logger as MainLogger } from "./logger";
import config from "../con... |
<reponame>jasmdk/trifolia-on-fhir<gh_stars>0
import {Component, Input, OnInit} from '@angular/core';
import {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';
import { Bundle, Coding, EntryComponent, StructureDefinition } from '../../../../../../libs/tof-lib/src/lib/stu3/fhir';
import {FhirDisplayPipe} from '../../sha... |
<reponame>thexdesk/yearn-sdk
import { CallOverrides, Contract } from "@ethersproject/contracts";
import { TransactionRequest, TransactionResponse } from "@ethersproject/providers";
import BigNumber from "bignumber.js";
import { CachedFetcher } from "../cache";
import { ChainId } from "../chain";
import { ServiceInterf... |
import { Config } from "../config";
import { Point } from "./components/Point";
import { Game } from "./Game";
import { Vector2 } from "./utils/math";
export type Collide = {
id: Point["id"] | null
right: boolean
left: boolean
top: boolean
bottom: boolean
any: boolean
}
export type CollideRect ... |
import {
IGetRequestParser, IPostRequestParser, IPatchRequestParser,
GetRequestType, EqExpression, PropertyValue, NumericLiteral,
} from "../odata/parser";
import { IEqExpressionVisitor, IPropertyValueVisitor, INumericLiteralVisitor } from "../odata/filters/expressions";
import entityInitializer = require("../odata... |
import { double } from "../core/double";
import { IOffset } from "./offset";
import { IOffsetBase } from "./offsetBase";
declare const dart: {
ui: {
size: (this: void, size: ISize, width: number, height: number) => ISize;
sizeCopy: (source: ISize) => ISize;
sizeSquare: (dimension: number) =>... |
import type * as core from '@contentlayer/core'
import * as utils from '@contentlayer/utils'
import type * as Stackbit from '@stackbit/sdk'
export const convertSchema = (
{ documentTypeDefMap, nestedTypeDefMap }: core.SchemaDef,
extensions: core.PluginExtensions,
): Stackbit.YamlConfig => {
// TODO this needs to... |
<gh_stars>0
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import * as rhea from "rhea";
import * as debugModule from "debug";
import { Connection } from "./connection";
import { Receiver, ReceiverOptions } fr... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Disposable, EventEmitter } from './common/events';
import { DebugAdapter } from './adapter/debugAdapter';
import { Thread } from './adapter/threads';
import { Launcher, Target } from './targets/targets';
import * as errors from './dap/... |
<filename>types.ts
import { NativeModules } from 'react-native';
import {
IBEACON,
EDDYSTONE,
SECURE_PROFILE,
scanMode,
scanPeriod,
activityCheckConfiguration,
forceScanConfiguration,
monitoringEnabled,
monitoringSyncInterval,
} from './configurations';
export type IBeaconMinimum = {
major: number;... |
import classNames from "classnames";
import { FormEvent, useRef, useState } from "react";
import { ACCOUNT_API_URL, fetchWrapper } from "../../../common";
import { localActions, realtimeUpdate, toWorker } from "../../util";
import { ActionButton, GameLinks } from "../../components";
export const fields = {
username: ... |
<reponame>wongchristopher/homebridge-august-locks
import { Logger } from 'homebridge';
import { request, RequestOptions } from 'https';
import { TextEncoder } from 'util';
export type AugustHome = {
id: string;
name: string;
};
export type AugustLock = {
id: string;
name: string;
macAddress: string;
house... |
import { promises as fs, existsSync, createWriteStream } from 'fs';
import * as path from 'path';
import * as https from 'https';
import * as http from 'http';
import * as createHttpsProxyAgent from 'https-proxy-agent';
import * as createHttpProxyAgent from 'http-proxy-agent';
import { URL } from 'url';
import * as d... |
import React, { useEffect, useState } from "react";
import * as ROSLIB from "roslib";
import ModalWrapper from "../ModalWrapper";
import { basicBlock } from "../../../styleDefs/styles";
import { JointState, AddToMoveList } from "../../robotController";
export interface PoseMsg {
description: string;
joint_names: s... |
/**
* @license
* Copyright 2017-2021 Open Ag Data Alliance
*
* 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 ... |
<reponame>willkraft/celo-monorepo
import { BigNumber } from 'bignumber.js'
import { CeloContract, CeloTokenContract, ExchangeContract, StableTokenContract } from './base'
import { ContractKit } from './kit'
import { GoldTokenWrapper } from './wrappers/GoldTokenWrapper'
import { StableTokenWrapper } from './wrappers/Sta... |
<gh_stars>0
/// <reference types="@types/dom-mediacapture-record" />
import {Inject, Injectable, InjectionToken, NgZone, OnDestroy, Optional} from '@angular/core';
import {BehaviorSubject, Observable, of, OperatorFunction, Subject} from 'rxjs';
import {fromPromise} from 'rxjs/internal-compatibility';
import {catchError... |
<gh_stars>0
// Copyright (c) 2020 <NAME>
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import { Component, Inject, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { MatDialog, MatDialogRef, MAT_DIALO... |
import { Injectable, Output, EventEmitter } from '@angular/core';
import { ItemDetail } from '../shared/models/data.model';
import { PanelItem } from '../shared/models/panel.model';
import { DataResponse } from '../shared/models/data.model';
import * as moment from 'moment';
import * as _ from 'lodash';
import { GraphS... |
<filename>packages/map/src/Layered.ts
import { SVGZoomWidget } from "@hpcc-js/common";
import { geoPath as d3GeoPath } from "d3-geo";
import { select as d3Select } from "d3-selection";
import { resolve, types as projectionTypes } from "./Projection";
import "./Utility"; // For albersUsaPr
import "../src/Layered.css";... |
<reponame>sodaru/serverless-ide-vscode
import {
ExternalImportsCallbacks,
isSupportedDocument,
parse,
YAMLDocument
} from "@serverless-ide/config"
import { IConnection, TextDocument, TextDocuments } from "vscode-languageserver"
interface CacheEntry {
uri: string
version: number
yamlDocument: Promise<YAMLDocumen... |
/*
* Copyright The OpenTelemetry Authors
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
import { SandboxComponentT } from "./types";
import { BgColors } from "../../lib/types/types";
import { Tabs } from "@navikt/ds-react";
import cl from "classnames";
import { Dialog, Email, Historic, Notes, Send } from "@navikt/ds-icons";
const TabsSandbox: SandboxComponentT = (props: any) => {
const iconPosition = {... |
<filename>src/app/series/directives/series-plan.component.ts<gh_stars>1-10
import { Component, OnDestroy } from '@angular/core';
import { Observable, Subscription, concat } from 'rxjs';
import { map, concatMap, mergeMap } from 'rxjs/operators';
import { TabService, SimpleDate, HalDoc } from 'ngx-prx-styleguide';
import... |
<gh_stars>100-1000
import "@material/mwc-button/mwc-button";
import { CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
import { fireEvent } from "../../../../common/dom/fire_event";
import { createCloseH... |
<filename>src/action-engine.ts<gh_stars>0
export type ActionService<T> = (
context: T,
elapsed: number,
frame: number
) => void;
interface ActionItem<T> {
name: string;
interval: number;
validRange: number;
action: ActionService<T>;
}
export class ActionEngine<T> {
private _normalActions: ActionItem<T... |
import { EditOutlined, HomeOutlined, SearchOutlined } from '@ant-design/icons';
import { Tag } from 'antd';
import Search from 'antd/lib/input/Search';
import { NavigateFunction } from 'react-router';
import { IPeopleList, IBacklogItem, ISprint } from '../../appstate/stateInterfaces';
import "../Home.css";
import "../M... |
import { AST,SourceInfo } from "../_model/ast.ts";
import { isTypeExpression, TypeExpression, UNKNOWN_TYPE } from "../_model/type-expressions.ts";
import { deepEquals } from "./misc.ts";
export function areSame(a: AST|undefined, b: AST|undefined) {
return a?.kind === b?.kind &&
a?.module === b?.modul... |
<gh_stars>0
import { getLoggedInUser } from '@/storage'
import { faTextHeight } from '@fortawesome/free-solid-svg-icons'
enum SocketRestMethod {
Get = 1,
Delete = 2,
Post = 3,
Patch = 4,
Notify = 5,
Error = 6,
Heartbeat = 7,
}
type SocketEventHandler = (n: any, m: number) => void
class RE... |
import kvinne from 'assets/icons/Woman.png'
import mann from 'assets/icons/Man.png'
import ukjent from 'assets/icons/Unknown.png'
import Add from 'assets/icons/Add'
import Trashcan from 'assets/icons/Trashcan'
import { toUIDateFormat } from 'components/Forms/PeriodeInput'
import { HighContrastKnapp, HorizontalSeparator... |
<gh_stars>1-10
import * as rgi from 'reify_generated_interface';
export * from 'reify_generated_interface';
/** Returns a 3x3 affine matrix representing a 2D translation. */
export declare function Translate2(translation: rgi.Vec2): rgi.Matrix33;
/** Returns a 3x3 affine matrix representing a 2D rotation. */
export dec... |
import {
Controller,
Get,
Post,
Request,
Response,
UseGuards,
UseFilters,
SetMetadata,
Delete,
Param,
Body,
Query,
Put,
HttpException,
HttpStatus,
UploadedFile,
UseInterceptors,
Res,
} from '@nestjs/common';
import { UsersService } from './users.service';
import { AuthService } from ... |
<reponame>PlatonaM/web-ui
/*
* Copyright 2020 InfAI (CC SES)
*
* 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... |
require('source-map-support').install({
handleUncaughtExceptions: false
});
require('date-format-lite');
let path = require('path');
let fs = require('fs');
let util = require('util');
import { assert } from 'chai';
import { Workhorse, Config, Work, LogLevel } from 'node-workhorse';
import AWSConfig from '../lib/mode... |
import { AxiosResponse } from 'axios';
// RXJS
import { StatefulSubject } from './StatefulSubject';
// Lib
import { BullhornEntityResponse, BullhornSavedEntityResponse, BullhornListResponse } from '../types';
import { EntityService } from '../services';
import { EntityMessageBroker } from '../broker';
import { EntityOp... |
/**
* router
*/
import { getAccessPermission } from '@/antdvx';
import { RouteRecordRaw, createRouter, createWebHashHistory } from 'vue-router';
import { authService } from './core/services';
import { addExceptionRoute } from './shared/exception';
import { login$, logout$, roleChanged$ } from './core/events';
impor... |
<reponame>eidam/worktop
import { Database, list, paginate, until } from 'worktop/kv';
import type { KV } from 'worktop/kv';
/**
* WORKTOP/KV
*/
interface IUser {
id: string;
name: string;
age: number;
}
interface IApp {
uid: Fixed.String<11>;
name: string;
}
interface Models {
user: IUser;
app: IApp;
}
in... |
import React, { Component } from 'react'
import {
View,
TouchableNativeFeedback,
RefreshControl,
InteractionManager,
FlatList,
Alert
} from 'react-native'
import Ionicons from 'react-native-vector-icons/Ionicons'
import { getUserDiaryAPI } from '../../dao'
import { createDiary } from '../../dao/post'
impor... |
import { Injectable, Inject } from '@angular/core';
import { AngularFireDatabase, FirebaseRef } from 'angularfire2';
import { AuthService } from '../security/auth.service';
import { Observable, Subject } from 'rxjs/Rx';
import { User } from './user';
import { objToArr, getEditDistance } from '../common/utils';
import *... |
import { IntervalModel, INTERVAL_HOURLY, INTERVAL_DAILY, INTERVAL_WEEKLY, INTERVAL_MONTHLY } from '../../ngrx';
import * as dateUtil from './date/date.util';
export const getTotal = (metrics: any[][]): number => {
if (metrics && metrics.length) {
return metrics.map(d => d[1]).reduce((acc: number, value: number) ... |
<gh_stars>10-100
/**
* Fiber节点
*/
import {
// NodeType,
// ReactElementList,
// Sync,
// ReactElement,
RootTag,
WorkTag,
Mode,
// Work,
EffectTag,
ExpirationTime,
ReactElement,
REACT_FRAGMENT_TYPE,
REACT_CONCURRENT_MODE_TYPE,
REACT_STRICT_MODE_TYPE,
REACT_PROFILER_TYPE,
REACT_SUSPENSE_... |
/*
This a codeshift for 'expect.js' to Jest's expect
https://github.com/Automattic/expect.js
No support yet for the follow expect.js conventions:
expect({ a: 'b', c: 'd' }).to.only.have.keys(['a', 'c']);
*/
import finale from '../utils/finale'
import { getRequireOrImportName, removeRequireAndImport } f... |
<gh_stars>10-100
import vscode from 'vscode'
import { TextEncoder, TextDecoder } from 'util'
// @ts-expect-error mock
import manager from 'disposableManager'
import StateManager from '../src/stateManager'
import oldConfigFile from './__fixtures__/oldMarqueeConfig.json'
jest.mock('../src/utils', () => ({ activateGUI:... |
import { BUILD_ANDROID } from './enumeration';
export const NODE_ANDROID = {
CHECKBOX: 'CheckBox',
RADIO: 'RadioButton',
EDIT: 'EditText',
SELECT: 'Spinner',
RANGE: 'SeekBar',
SVG: 'ImageView',
TEXT: 'TextView',
IMAGE: 'ImageView',
BUTTON: 'Button',
LINE: 'View',
SPACE: 'Spa... |
<reponame>microsoft/flow2dts
import {
HintImport,
HintDecl,
HintFile,
ResolvedHintEntries,
ResolvedHintFile,
ResolvedHintImport,
ResolvedHintTypeof,
HintResolved,
} from "./hintfile"
import { HintFileEntries, resolvedToItself } from "./singleFlow2Hint"
function chooseLater(existing: HintDecl | undefine... |
/*
* MIT License
*
* Copyright (c) 2017-2018 <NAME>
*
* 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... |
<filename>client/telegram/commands/route.ts
import { MongoDB as Utils } from '../../utils';
import TelegramClientError from '../error';
import { Markup, Scenes } from 'telegraf';
import Route from '../../../src/classes/route';
import pug from 'pug';
import fs from 'fs';
import type { Command, DataCallbackQuery } from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.