text
stringlengths
3.3k
33k
import { Injectable } from '@angular/core'; // In Angular 6 / Rxjs 6 the import is like below // import { Observable, of } from 'rxjs'; // but in Angular 5.2.x and Rxjs 5x is: import { Observable } from 'rxjs'; import { of } from 'rxjs'; import { catchError, map, tap } from 'rxjs/operators'; import {KMap} from '@co...
<reponame>DatSpookTho/Lanette<filename>src/command-parser.ts<gh_stars>0 import { Room } from "./rooms"; import { User } from "./users"; import * as LogsWorker from './workers/logs'; export interface ICommandDefinition<T = undefined> { command: (this: T extends undefined ? Command : T, target: string, room: Room | Use...
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand"; import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand"; import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, } from "./co...
<reponame>cicorias/ts-msi<gh_stars>0 // Copyright (c) 2017 Schlumberger // Schlumberger Private import * as _ from 'lodash'; import { BasicTimer } from 'timecount/utils'; import { Time, TimeWriter, TimeWriterSettings } from 'timecount'; import * as winston from 'winston'; import { Label, Severity } from './label'; impo...
import { SourceUnit, ExportedSymbol, ImportDirective, ContractDefinition, FunctionDefinition, ASTNodeFactory, Identifier, IdentifierPath, UserDefinedTypeName, MemberAccess, StructDefinition, EnumDefinition, ErrorDefinition, VariableDeclaration, replaceNode, ...
// Based on: https://github.com/City-of-Helsinki/palvelutarjotin-admin/blob/release-0.1.0/src/common/components/datepicker/Datepicker.tsx import { OnDatesChangeProps, START_DATE, useDatepicker, } from '@datepicker-react/hooks'; import formatDate from 'date-fns/format'; import isValidDate from 'date-fns/isValid'; ...
import colorString from 'color-string'; /** * Builds a URL for a drilldown visualization. * @param legend The current state of the legend (see legend module) * @param visData A copy of Kibana's datatable (sent to the visualization) * @param queryExclude What parameters to exclude from the query results * @param q...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import moment from 'moment'; import { connect } from './connection'; import * as knexOpts from '../test/knexfile'; const TEST_TABLE = 'test_tz'; const momentToDate = (x) => moment(x).toDate(); const momentFormat = (x) => moment(x).format('YYYY-MM-DD HH:mm:ss'); const momentUtcToDate = (x) => moment(x).utc().toDate(); ...
import React, { useState } from 'react'; import Classnames from 'classnames'; import styles from './_styles.css' import { Link } from "react-router-dom"; import * as Base from '~/_settings'; import Chevron from '~commons/svg/chevron'; import * as Svg from '~commons/svg'; import * as Block from '~commons/block'; import ...
import { Type, TypeMap } from '../type'; import { PrimitiveType, FunType, VariadicFunType, OverloadedType, ConstructorType, InstanceType, CodeType, INT, FLOAT, ANY, VOID } from '../type'; import * as ast from '../ast'; import { CompilerIR, Prog, nearest_quote } from '../compile/ir'; import { varsy...
<reponame>Medienpanter/office-templating // IMPORTANT: this is a plugin which requires jQuery for initialisation and data manipulation import { Component, OnInit, OnChanges, AfterViewInit, SimpleChanges } from '@angular/core'; declare const $: any; interface FileReaderEventTarget extends EventTarget { result: str...
import { OrderByEncounterTimeAscPipe } from './orderByEncounterTime.pipe'; import { VisitEncountersListComponent } from './visit-encounters-list.component'; import { PatientResourceService } from '../../../openmrs-api/patient-resource.service'; import { LocalStorageService } from '../../../utils/local-storage.service';...
import { h, app, Dispatch, ActionResult } from 'hyperapp'; import { Http } from 'hyperapp-fx'; import nacl from 'tweetnacl'; import { keccak256 } from 'js-sha3'; import { ec } from 'elliptic'; import { Buffer } from 'buffer'; import * as url from 'url'; const scryptWorker = new Worker('scryptWorker.ts'); const bzzUrl...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import { StandingsService } from './standings.service'; import { environment } from '../../environments/environment...
/** * @license * Copyright (c) 2021 Google Inc. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io...
<filename>src/solver/sat.ts import { get } from '@zefiros/axioms' import merge from 'deeply' import { pathExists } from 'fs-extra' import { alg, Graph } from 'graphlib' import { isEmpty } from 'lodash' import * as Logic from 'logic-solver' import { join } from 'upath' import { update } from '~/cli/program' import { env...
<filename>web/index.ts import { ParsedRequest, Template, FileType } from "../api/_lib/types" const { H, R, copee } = window as any let timeout = -1 interface ImagePreviewProps { src: string onclick: () => void onload: () => void onerror: () => void loading: boolean } const ImagePreview = ({ src, onclick...
<reponame>CandleLibrary/Cure import { Logger, LogLevel } from '@candlelib/log'; import { getPackageJsonObject } from '@candlelib/paraffin'; import spark from "@candlelib/spark"; import URI from '@candlelib/uri'; import { spawn } from "child_process"; import { Globals } from "../../types/globals.js"; import { Test } fro...
<gh_stars>0 // d3-wind-barbs.ts import { create, select, Selection } from 'd3-selection'; import { PrivateWindBarbOptions, PublicWindBarbOptions, WindBarbDims, } from './models'; /** * Generic Selection type * @ignore */ type SVG = Selection<any, any, any, any>; /** * For internal use only * @ignore */ t...
<reponame>Danielle9897/ravendb-nodejs-client import { RequestExecutor } from "../../Http/RequestExecutor"; import { ServerNode } from "../../Http/ServerNode"; import { ICommandData } from "../Commands/CommandData"; import { DocumentType } from "../DocumentAbstractions"; import { IDocumentStore } from "../IDocumentS...
import { getConnection } from 'typeorm' import { Subject } from 'rxjs' import { Script, OutPoint, Cell } from './cells' import TransactionsService, { Input, Transaction } from './transactions' import OutputEntity from '../entities/Output' import SyncInfoEntity from '../entities/SyncInfo' import nodeService from '../sta...
import {FactoryLevel} from '../src/factory.level'; import {Castle} from '../data/tiles.castle'; import {Placer} from '../src/placer'; import {Level} from '../src/level'; import {ElementStairs} from '../src/element'; import {MapGenerator} from '../src/generator'; import {Geometry} from '../src/geometry'; import {ELEM} ...
<filename>apps/client/src/app/other-resources/other-resources.component.ts import {Component, OnInit, ViewChild} from '@angular/core'; import {FhirService} from '../shared/fhir.service'; import {Bundle, Coding, DomainResource, OperationOutcome} from '../../../../../libs/tof-lib/src/lib/stu3/fhir'; import {saveAs} from ...
import { keyBy, mapValues } from 'lodash'; import moment from 'moment'; import { Op } from 'sequelize'; import { METRICS, PERIODS, PLAYER_TYPES, PLAYER_BUILDS, isValidPeriod, parsePeriodExpression, PlayerType, PlayerBuild, PeriodProps, Metric, getMetricValueKey, getMetricRankKey, getMetricMeas...
<filename>src/adapter/NetworkAdapter.ts /*************************************************** * Created by nanyuantingfeng on 2019/11/28 17:24. * ***************************************************/ import { isArrayLike } from 'datx-utils' import { IIdentifier } from '../datx' import { $ElementType, IListResponseD...
import shelljs from 'shelljs'; import chalk from 'chalk'; import * as path from 'path'; import * as fs from 'fs-extra'; import axios from 'axios'; import glob from 'glob'; import { getMultiplePackDirPrefix } from '../../tasks/chaikaMergeTask/isMutilePack'; import config from '../../config/config'; import utils from '.....
<reponame>carlsonsantana/criptoarbitragem import { Corretora, Ordens, Ordem } from '../corretora/corretora'; interface OrdemArbitragem extends Ordem { total: number; valorTaxa: number; numeroOperacoes: number; } export class Arbitragem { ordensVenda: Ordens; ordensCompra: Ordens; lucro: number; investim...
import { Component, HostListener } from '@angular/core'; import { getRandomNumber, thisOrDefault, throwErrIfNotDefined, wait } from 'src/app/common/commonMethods'; import { Feedback, Key, UserResponse } from 'src/app/models/InternalDTOs'; import { StimuliProvidedType } from 'src/app/models/enums'; import { SmileyFaceTa...
import React, { useState, useEffect, useRef, VideoHTMLAttributes } from 'react'; import styled from 'styled-components'; const Video = styled.video` /* width: 800px; */ `; interface WebRTCMessage { sdp?: RTCSessionDescriptionInit; ice?: RTCIceCandidate; } interface OwnProps { enabled: boolean; peerAddress: s...
<gh_stars>0 import L from 'leaflet'; import { LineTouchedEvent } from './common/types'; import GeocoderElement, { GeocoderElementsOptions } from './geocoder-element'; import Waypoint from './waypoint'; export interface PlanOptions extends GeocoderElementsOptions { /** * Styles used for the line or lines drawn whe...
import {AfterViewInit, Component, ElementRef, HostListener, OnDestroy, OnInit} from "@angular/core"; import {EventsProxyService} from "../../../../../core/services/events/events-proxy.service"; import {PoolsProxyService} from "../../../../../core/services/events/pools-proxy.service"; import {EventPool, EventPoolAthlete...
<filename>src/showrunners/compoundLiquidationChannel.ts<gh_stars>1-10 // @name: Compound Liquidation Channel // @version: 1.0 // @recent_changes: Compound Liquidation Tracker import { Service, Inject } from 'typedi'; import config from '../config'; import { EventDispatcher, EventDispatcherInterface } from '../decorato...
/*! * Licensed under the MIT License. */ import * as MRE from '@microsoft/mixed-reality-extension-sdk'; //import * as MRE from '../../mixed-reality-extension-sdk/packages/sdk/'; import App from './app'; import GrabButton from './grabbutton'; //import Staff from './staff'; enum AuthType { Moderators=0, ...
<reponame>dyangjs/uix-cli import * as fs from 'fs'; import * as path from 'path'; import projectFileConfig from '../base/project'; import * as md5 from 'md5'; interface buildProjectConfig{ /** 项目名称 */ appName:string /** 项目类型 SPA OR MPA */ projectType:string /** 主目录文件名称 */ mainPath:string /**...
let canvas = <HTMLCanvasElement>document.getElementById('canvas') let ctx = <CanvasRenderingContext2D>canvas.getContext("2d") let WIDTH = 160 let HEIGHT = 80 let showLines = false let p = 0.8 let Dmethod = 1 let scale = 10 let steps = 1 let play = false let show = true let tracing = false let mX = 0 let mY = 0 le...
/** * Created by issi on 31.10.21 */ import { Box, Button, Dialog, DialogActions, DialogContent, DialogTitle, FormControl, Grid, InputLabel, MenuItem, Select, SelectChangeEvent, Tooltip, } from '@mui/material'; import { useI18n, useIoBrokerTheme } from 'iobroker-react/hooks'; import React, { useEffect, u...
import { makeEdge } from '../helpers'; import NodeConnectionId from '../../nodes/node-connection-id'; import NodeId from '../../nodes/node-id'; import Edge from '../edge'; const makeMirrorEdge = ( from: NodeId, to: NodeId, how: NodeConnectionId = NodeConnectionId.HasMirrorInverted, ): Edge => { return makeEdg...
<reponame>libero/reviewer-submission /* eslint-disable @typescript-eslint/camelcase */ import * as xmlbuilder from 'xmlbuilder'; import axios from 'axios'; import Submission from '../../models/submission'; import config from '../../../../../config'; import { EJPNameRepository } from 'src/domain/ejp-name/repositories/ty...
<reponame>rickharris/remirror /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { EditorView, FindProsemirrorNodeResult, ResolvedPos, Transaction } from '@remirror/core'; import { Fragment, Node as ProsemirrorNode } from '@remirror/pm/model'; import { cellAround, CellSelection, TableMap } from '@remi...
import BN from "bn.js"; import type { ContractReceipt, Event } from "ethers"; import hre from "hardhat"; import { sha256 } from "js-sha256"; import { keccak256 } from "js-sha3"; import scryptsy from "scryptsy"; import bitcoin = require("bitcoinjs-lib"); const bitcoreLib = require("bitcore-lib"); const btcProof = requi...
import { EventEmitter } from 'events'; import { BridgeFinder, Device, OneDeviceStatus, Response, SmartBridge, SecretStorage } from 'lutron-leap'; import { API, APIEvent, DynamicPlatformPlugin, Logging, PlatformAccessory, PlatformConfig } from 'homebridge'; import TypedEmitter from 'typed-emitter'; import { PLUGIN_NA...
<filename>src/app/routes/project/components/glass-layer/context-menu-bar/context-menu-bar.component.ts /* * Copyright 2021 Google LLC * * 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 * ...
#!/usr/bin/env node import { camelCase, pascalCase } from "change-case"; import { hideBin } from "yargs/helpers"; import { join } from "path"; import { mkdir, rm, writeFile } from "fs/promises"; import { sql, DatabasePool } from "slonik"; import type { Arguments, Argv } from "yargs"; import yargs from "yargs/yargs"; i...
import calcBodyPart from "@/utils/creep/calcBodyPart"; import getBodyConfig from "../utils/creep/getBodyConfig"; // 每个房间最多同时存在多少单位 export const TRANSFER_DEATH_LIMIT = 20; /** * 8级时只要 cpu 足够,依旧会孵化一个 upgrader 进行升级 * 这个限制代表了在房间 8 级时 storage 里的能量大于多少才会持续孵化 upgarder */ export const UPGRADER_WITH_ENERGY_LEVEL_8 = 700000...
import { Collection, CommandInteraction, GuildMember, MessageCollector, MessageEmbed, Snowflake } from "discord.js"; import { CommandCategory } from "@alice-enums/core/CommandCategory"; import { Command } from "@alice-interfaces/core/Command"; import { MathEquation } from "@alice-interfaces/utils/MathEquation"; import ...
<reponame>huxmui/logseq-plugin-agenda import { ISchedule } from 'tui-calendar' import { flattenDeep, get } from 'lodash' import { endOfDay, formatISO, isAfter, parse, parseISO, startOfDay } from 'date-fns' import dayjs from 'dayjs' import { getInitalSettings } from './baseInfo' import { ICategory, IQueryWithCalendar, I...
// Copyright 2017-2019 @polkadot/app-123code authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import React from 'react'; import {withApi} from '@polkadot/react-api'; import {Button, Dropdown, ...
import * as cp from 'child_process'; import * as fse from 'fs-extra'; import * as os from 'os'; import { exec } from 'child_process'; import { join, dirname } from 'path'; import { MB1 } from './common'; import { spawn } from 'child_process'; const drivelist = require('drivelist'); export enum FILESYSTEM { APFS = ...
/** * @file Board.tsx * @brief Board component to load jewels game * @date Feb , 2020 * @author ZCO Engineer * @copyright (c) 2020, ZCO */ import * as React from 'react'; import { Timer } from '../common/Timer'; import { Diamond } from './Diamond'; import diamond1_trans from "./images/jewelTrails...
import { Component, OnInit } from '@angular/core'; import * as $ from 'jquery'; import { HttpClient } from '@angular/common/http'; import { AddUserService } from '../../services/addUser.service'; import { FormGroup, FormBuilder, Validators , FormControl } from '@angular/forms'; import { NgForm } from '@angular/forms'; ...
/* eslint-disable camelcase,@typescript-eslint/camelcase,no-dupe-class-members */ import type { NamespaceBuilder } from '@rdf-esm/namespace' import { NamedNode, DatasetCore, BlankNode, Quad_Graph, Term, Literal } from 'rdf-js' import cf, { MultiPointer, GraphPointer } from 'clownface' import ResourceFactoryImpl from '....
import * as _ from 'lodash'; import * as L from './libs/leaflet'; import WorldmapCtrl from './worldmap_ctrl'; const tileServers = { 'CartoDB Positron': { url: 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', attribution: '&copy; <a href="http://www.openstreetmap.org/copyr...
<reponame>ke-mantha/mantha-template-default /** * This script runs automatically after your first npm-install. * * Heavily inspired by https://github.com/alexjoverm/typescript-library-starter */ import * as _prompt from 'prompt'; import * as colors from 'colors'; /// <reference path="shelljs" /> import { mv, rm, wh...
import "./ReviewSwap.scss" import React, { ReactElement, useState } from "react" import { SWAP_TYPES, TOKENS_MAP, getIsVirtualSwap } from "../constants" import { formatBNToString, formatDeadlineToNumber } from "../utils" import { AppState } from "../state/index" import { BigNumber } from "@ethersproject/bignumber" im...
/// <reference types="cypress" /> //#region import import urls from '../fixtures/urls.json' import { build } from '../../src/shared/cypress-queries.builder'; import credentials from '../fixtures/credentials.json'; import { loginButtonClass, logoutButtonClass, registerButtonClass } from '../../src/app/nav/user-login/...
import * as fs from 'fs'; import * as fxl from '@01group/fxl'; // --------------------------------------------------------------------------- // Types // --------------------------------------------------------------------------- interface InventoryData { [month: string]: MonthsInventory; } interface MonthsInvento...
import { EventData } from 'web3-eth-contract'; import { CreatedToken } from "../models/commonTypes"; import { PostgresDBService } from "blockchain-accounting-data-postgres/src/postgresDbService"; import { getCreatedToken, getLastSync, handleTransferEvent, runSync, saveLastSync, syncWalletRoles } from "../controller/syn...
import * as d3 from "d3"; import { axisRadialOuter } from "../glyphs/radial/radial-axis"; import { Chart, ChartConfig, generateId, RenderParams, Transform, } from "../index"; import { radialRectangle } from "../glyphs/radial/radial-rectangle"; import { HighlightConfig } from "./chart"; /** * A simple interf...
// This is a simple single value in-memory store. It wants to be backed by // another store which holds all our operations. import * as I from '../interfaces' import err from '../err' import resultMap from '../types/map' import {queryTypes} from '../qrtypes' import {vMax, V_EMPTY, vCmp, vEq, V64} from '../version' imp...
<gh_stars>1-10 import { Component, OnInit, ViewChild, NgZone, ElementRef } from '@angular/core'; import {Router, ActivatedRoute, Params} from '@angular/router'; import { FormBuilder, FormControl, FormGroup, Validators, FormArray } from '@angular/forms'; import { ModalDirective } from "ngx-bootstrap/modal"; import { Dia...
import React, { useCallback, RefObject } from 'react'; import { StyleSheet, View, StatusBar, Image, Text, ImageBackground, GestureResponderEvent, TextInput as RNTextInput, useWindowDimensions, Modal, } from 'react-native'; import * as ImagePicker from 'expo-image-picker'; import { useFocusEffect, us...
<reponame>digital-ECMT/acuity-vahub /* * Copyright 2021 The University of Manchester * * 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 ...
import React, { FC, VFC, useEffect, useState, useRef, useLayoutEffect } from 'react'; import styles from './editor.module.css'; import { editorContextState, editorState } from './state'; import { editorContext } from '.'; import { useProxy } from 'valtio'; import { replaceShaderChunks, generateOBc } from './helpers/for...
import { html, render } from "lit-html"; import { eventmit } from "eventmit"; export type TextCheckerPopupElementAttributes = { target?: HTMLElement; }; export type TextCheckerCard = { id: string; message: string; fixable: boolean; }; export type TextCheckerCardRect = { left: number; top: numbe...
/* * Firebase Rules test simulator. * * Copyright 2015 Google Inc. 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...
/** * @packageDocumentation * @module tgrid.protocols.workers */ //---------------------------------------------------------------- import { ConnectorBase } from "../internal/ConnectorBase"; import { IWorkerSystem } from "./internal/IWorkerSystem"; import { Invoke } from "../../components/Invoke"; import { IHeader...
<reponame>pip-services-integration/pip-services-duplicates-node let async = require('async'); import { CompositeCounters, CompositeLogger, Timing } from "pip-services3-components-node"; import { ConfigParams, SortParams } from 'pip-services3-commons-node'; import { IConfigurable } from 'pip-services3-commons-node'; im...
import * as React from 'react' import * as Container from '../../util/container' import * as Constants from '../../constants/chat2' import * as Types from '../../constants/types/chat2' import * as Chat2Gen from '../../actions/chat2-gen' import * as RPCChatTypes from '../../constants/types/rpc-chat-gen' import {appendNe...
import { join } from 'path'; import { env } from 'process'; import { uniq } from 'lodash'; import { default as readdirp, EntryInfo } from 'readdirp'; import { copySync, pathExistsSync, readFile, remove } from 'fs-extra'; import { makeRe } from 'micromatch'; const PACKAGE_JSON_FILE_NAME = 'package.json'; const PACKAGE_...
const separators = [':']; const newLines = ['\r','\n']; const reservedWords = ['hide','autonumber','as', 'participant', 'actor', 'boundary', 'control', 'entity', 'database', 'collections','title','header','footer', 'alt','else','opt','loop','par','break','critical','group','end','note', 'left','right','of...
<gh_stars>0 import { IDataPoint, IEndDateTimeInterval, durationUnitValueToSeconds } from '../omh'; import { IWellness, isWellness } from './wellness'; import { ISessionRPE, isSessionRPE } from './session-rpe'; import { computeSessionRPE } from './session-rpe'; import moment from 'moment'; import * as _ from 'lodash'...
export const MY_FORMATS = { parse: { dateInput: 'LL', }, display: { dateInput: 'YYYY/MM/DD', monthYearLabel: 'MMM YYYY', dateA11yLabel: 'YYYY-MM-DD', monthYearA11yLabel: 'MMMM YYYY', }, }; export const FORM_TITLES = { NOTIFICATION_APPLICATION: "Victim Safety ...
import React, { RefObject } from 'react'; import styled from '@emotion/styled'; import { Text, Select, Box } from '@robertcooper/chakra-ui-core'; import { MdArrowDownward, MdArrowUpward } from 'react-icons/md'; import { Button } from '@robertcooper/chakra-ui-core'; import { ApolloQueryResult } from 'apollo-client'; imp...
import { componentToReact, componentToReactNative, componentToSolid, componentToSwift, componentToVue, componentToHtml, componentToCustomElement, contextToReact, contextToSolid, contextToVue, contextToSvelte, MitosisComponent, parseContext, parseJsx, MitosisConfig, Target, Transpiler, ...
<gh_stars>0 /** * Copyright (c) 2002-2018 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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:...
<gh_stars>1-10 // Note: For some reason, when targeting the ts ix package, it went for the one in saga-stories. import Ix from "@reactivex/ix-es2015-esm/Ix"; import { IStoryRunnerProvider, IStoryRunnerChildrenStatus, NOP, storeStoryItem, ROOT_STORY_ID, slideStoryImpl, StorySegmentCalculator, StoryComposer, filterChil...
<filename>src/app/pages/mobile-asset-management/components/map/map.component.ts import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core"; import { NbDialogService } from "@nebular/theme"; // 初始map中的point import { map_init_point } from "../../../../appconfig"; import { SetWeilanComponent } from "....
<filename>packages/vdok/node/handle.ts import fs from "fs" import { analyzerArticle, IArticleFeatures } from "@herberthe/vdok-shared" import { detectEffectiveFiles, IDetectEffectiveFiles, IDetectEffectiveSection, } from "./detect" import { debugExport, debugInfo, exportLabel, exportPass } from "./utils" e...
import { join } from "path"; import * as fs from "fs"; import fetch from "node-fetch"; import { Timetable as TT, Day } from "@type/database"; import { Profanity } from "@2toad/profanity"; export const Constants: { [key: string]: string } = { EDIT_LINK: "https://github.com/mad-maids/maid.table/", TIMETABLE_LINK: "h...
import { Action, UnhandledAction } from "./Action"; import { Assets, State, AssetsState, QuizState, eQuizMode, eCardState, KanjiAsset, TagAsset, SetAsset, } from "../common"; import { SAVE_NEW_CARD, SaveNewCardAction, SAVE_EXISTING_CARD, SaveExistingCardAction, SAVE_NEW_TAG, SaveNewTagActi...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { cosmiconfigSync } from 'cosmiconfig'; import fs from 'fs'; import ignore, { Ignore } from 'ignore'; import { safeLoad as loadYaml, dump as dumpYaml } from 'js-yaml'; import { mergeWith } from 'lodash'; import { sync as mkdirp } from 'mkdirp'; import { Ope...
/** * Copyright (c) 2017-2018 Mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ import { Model } from '../../../../mol-model/structure/model/model' import { Structure } from '../../../../mol-model/structure' import { LinkType } from '...
import React, {useMemo, useState, useEffect, useCallback} from 'react'; import {MinusSquareOutlined, PlusSquareOutlined} from '@ant-design/icons'; import {NavSection} from '@models/navsection'; import {useAppDispatch, useAppSelector} from '@redux/hooks'; import {collapseNavSections, expandNavSections} from '@redux/redu...
import { Size } from "../../utils/Size"; import { Program } from "./Program"; import { Script } from "./Script"; import { Shader } from "./Shader"; import { Texture } from "./Texture"; import { Matrix, Vector, makePerspective } from "../../utils/sylvesterGlUtils"; import { Canvas } from "./Canvas"; var...
import { Divider } from "app/components/Divider"; import { Icon } from "app/components/Icon"; import { clickOutsideHandler } from "app/hooks"; import cn from "classnames"; import React, { FC, useCallback, useEffect, useState } from "react"; import { styled } from "twin.macro"; import { Position } from "types"; import ...
/** * Copyright 2016 Palantir Technologies, Inc. All rights reserved. * Licensed under the Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0 * * Demonstrates sample usage of the table component. */ import * as React from "react"; import * as ReactDOM from "react-dom"; import { Intent, Menu,...
/** @noSelfInFile */ import { AnySpec, BlankSpec, ComponentSpec, ElementSpec, ElementSpecByType, ElementSpecProps, GuiEventHandlers, } from "./spec" import { Component, getRegisteredComponentName } from "./component" import { EventHandlerTags, GuiEventName } from "./guievents" import { FuncRef } from "../...
/** * Restify middleware. */ import {exposeRoute} from './exposeRoute'; import {PathLimit} from './PathLimit'; import * as Debug from 'debug'; import * as onFinished from 'on-finished'; import * as client from 'prom-client'; import * as restify from 'restify'; const debug: Debug.IDebugger = Debug('restify-prom-bun...
import './App.css'; import React = require('react'); import { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import DeviceService from './services/device-service'; import ApplicationService from './services/application-service'; import HeadsetService from '../../src/index'; import M...
<gh_stars>1-10 import { AxiosResponse } from 'axios'; import { EdgeSslVpnServiceJson } from '../__json__/edge-ssl-vpn-json'; import { EdgeSslVpnAuthServerType } from '../__json__/edge-ssl-vpn-auth-server-type'; export const MockEdgeSslVpn: EdgeSslVpnServiceJson = { 'edge_uuid': 'fake-uuid', 'enabled': true, 'log...
<filename>src/DecorationComposite.ts import { FileOrDir } from 'aspen-core' import { DisposablesComposite } from 'notificar' import { Decoration } from './Decoration' import { TargetMatchMode } from './types' /** * The "consumer level" part of Decoration * * `ClasslistComposite` contains composited classnames from ...
import fs from 'fs'; import csvParseSync from 'csv-parse/lib/sync'; import locationList from '../data/geonlp.ex.nii.ac.jp/geonlp_japan.json'; import categoryList from '../data/yuiseki.net/detector_category_words.json'; const globalAny: any = global; let cached = globalAny.locationData; if (!cached) { cached = globa...
import { Component, OnInit } from "@angular/core"; import { Router } from "@angular/router"; import { ipcRenderer } from "electron"; import { Howl } from "howler"; import * as $ from "jquery"; import * as db from "node-localdb-modern"; const Cryptr = require("cryptr"); require("dotenv").config(); @Component({ select...
<gh_stars>1-10 import { fromSeed, BIP32Interface } from "bip32"; import { getAddress } from "../util/address"; import { ECPair, ECPairInterface, Network, Psbt } from "bitcoinjs-lib"; import { utils } from "aes-js"; import { networkAsString } from "../util/network"; import { replaceAll } from "../../shared/constants"; ...
// The following code is adapted from https://github.com/transloadit/uppy/blob/master/packages/%40uppy/aws-s3-multipart/src/MultipartUploader.js // which is released under a MIT License (https://github.com/transloadit/uppy/blob/master/LICENSE) import BaseUpload, { InitialFile } from "./base_upload"; import { abortMu...
<gh_stars>10-100 import BN = require('bn.js') import { GlobalHelper } from '../../index' import { Cipher, Curve, CurvePoint, Helper, SystemParameters, SystemParametersSerialized, } from '../index' import { MembershipProof } from './models' import { curveDefinition } from '../curve' const printConsole = fa...
<reponame>jppellet/Logic-Circuit-Simulator<gh_stars>1-10 import { FixedArraySize, FixedArraySizeNonZero, isNotNull, isNull, Plus3, toTriState, toTriStateRepr, TriState, TriStateRepr, typeOrUndefined, Unset } from "../utils" import { ComponentBase, ComponentRepr, defineComponent, NodeOffsets } from "./Component" import ...
/*! * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import * as path from 'path' import * as vscode from 'vscode' import { CloudFormation } from '../cloudformation/cloudformation' import { LambdaHandlerCandidate } from '../lambdaHandlerSearch'...
<gh_stars>100-1000 import $$observable from 'symbol-observable'; import Cache, { ICache, CacheOptions, mutateKeysLayer, prefixLayer, DataCache } from '@wora/cache-persist'; import isPlainObject from './redux/utils/isPlainObject'; import ActionTypes from './redux/utils/actionTypes'; import { filterKeys } from '@wora/cac...