text
stringlengths
9.82k
47.8k
<gh_stars>1-10 // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Lic...
import { elements, edit_boxElems, edit_box2Elems, openingBox, mainElems } from "./base"; import { EditBoxInterface, mouseMoveBigObj, moveLines, } from "./interface&objs"; export class BoxEdit implements EditBoxInterface{ id: string; on(eventType: string, func: (...rest: any) => voi...
<filename>lib/patch-series.ts import { encodeWords } from "nodemailer/lib/mime-funcs"; import { commitExists, git, gitCommandExists, gitConfig, revParse, } from "./git"; import { GitNotes } from "./git-notes"; import { GitGitGadget, IGitGitGadgetOptions } from "./gitgitgadget"; import { IMailMetadata } from "./mail...
<gh_stars>0 // 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
import { Vector3, Quaternion, MathUtils } from 'three'; import { VRMSchema } from '@pixiv/three-vrm'; import { Parser, VmdFile, CharsetEncoder } from 'mmd-parser'; import { AnimationData, Timeline, VRMOffsets } from './vmd2vrmanim.binding'; import { isTruely } from '../../utils/helper-functions'; import { WorkerMessage...
<reponame>optilogic/vscode-edit-csv import * as vscode from 'vscode'; import * as path from "path"; import { isCsvFile, getCurrentViewColumn, debugLog, partitionString } from './util'; import { createEditorHtml } from './getHtml'; import { InstanceManager, Instance, SomeInstance } from './instanceManager'; import { get...
import React, {Component} from "react"; import * as PIXI from "pixi.js"; import "pixi-picture"; import "pixi-projection"; import "pixi-layers"; import {Howl} from "howler"; import {getWedding, getWeddingGuests} from "./utils/web3"; export interface IPixiProps { match: any; } export interface IPixiState { wedd...
interface WebGLContextAttributes { alpha : bool; depth : bool; stencil : bool; antialias : bool; premultipliedAlpha : bool; } interface WebGLObject { $__dummyprop__WebGLObject : any; } interface WebGLBuffer extends WebGLObject { $__dummyprop__WebGLBuffer : any; } interface WebGLFramebuffer extends WebGLObject...
import chokidar from 'chokidar' import EventEmitter from 'events' import pLimit from 'p-limit' import type { TextDocumentContentChangeEvent } from 'vscode-languageserver-textdocument' import { TextDocument } from 'vscode-languageserver-textdocument' import { LowLevelDownloader } from '.' import { bufferToString, CacheP...
import { Injectable } from '@angular/core'; import { HTTP } from '@ionic-native/http/ngx'; import { Md5 } from 'ts-md5/dist/md5'; import { File } from '@ionic-native/file/ngx'; import { HttpService } from './HttpService'; import { GlobalService } from './GlobalService'; import { Util } from './Util'; import { OutputTyp...
import { CreateElement, VNode } from 'vue'; import isEqual from 'lodash.isequal'; import cloneDeep from 'lodash.clonedeep'; import TDropdown from './TDropdown'; import { buildDateParser, buildDateFormatter, DateFormatter, DateValue, compareDates, addDays, addMonths, addYears, DateConditions, dayIsPartOfTheCondition...
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------...
<filename>common/lib/client/realtimechannel.ts import ProtocolMessage from '../types/protocolmessage'; import EventEmitter from '../util/eventemitter'; import * as Utils from '../util/utils'; import Channel from './channel'; import Logger from '../util/logger'; import RealtimePresence from './realtimepresence'; import ...
<filename>Stars_Without_Number_Revised/Source/ts/migrations.ts /* global getAttrs, setAttrs, getSectionIDs, generateRowID, on, removeRepeatingRow, _, getTranslationByKey */ /** * Migrations */ /* Upgrade event handler */ const handleUpgrade = () => { getAttrs(["character_sheet"], v => { if (!v.character_...
/** * Context to manage how the interatctions heppen within the application */ import { BottomSheetBackdropProps, BottomSheetFooter, BottomSheetModal, BottomSheetModalProvider, BottomSheetScrollView, BottomSheetSectionList, BottomSheetView } from '@gorhom/bottom-sheet'; import produce from 'immer'; import * as React ...
/* Ported to JavaScript by <NAME> 2011 <EMAIL>, www.lazarsoft.info */ /* * * Copyright 2007 ZXing 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 * * http://www.apache.org...
<reponame>web-streaming/fhdjs import { AudioTrack, TrackType, VideoTrack, AudioSample, VideoSample, AudioCodecType, } from '../domain'; type MixTrack = AudioTrack | VideoTrack type MixSample = AudioSample | VideoSample const UINT32_MAX = 2 ** 32 - 1; export class MP4 { static types = [ 'avc1', 'avcC', ...
export { default as AcademicCap } from './icons/AcademicCap'; export { default as Adjustments } from './icons/Adjustments'; export { default as Annotation } from './icons/Annotation'; export { default as Archive } from './icons/Archive'; export { default as ArrowCircleDown } from './icons/ArrowCircleDown'; export { def...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license import { ByteData } from "./byteData"; import { getElementsWithGivenOffset, updateAsciiValue, pad, createOffsetRange, retrieveSelectedByteObject, getElementsOffset } from "./util"; import { toggleHover, changeEndianness } from "./eventHandlers";...
<gh_stars>10-100 import { JSToken, stringToTokens, tokenToKeywordMap } from "../../javascript"; import { TokenReader, IRenderSettings, makeRenderSettings, IRenderable, defaultRenderSettings } from "../../../helpers"; import { ValueTypes, Value, Type, nullValue } from "./value"; import { ArgumentList } from "../construc...
import { useState, useEffect, useRef } from 'react' import tw from 'twin.macro' import { Collapse, Icon, Form, Field, Label, Control, Toggle, RadioGroup, InputNumber, Radio, Select, Loading, DatePicker, Button, } from '@QCFE/lego-ui' import { DarkModal, FlexBox, AffixLabel } from 'components...
<reponame>alxmrs/arcs<gh_stars>0 /** * @license * Copyright (c) 2017 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 fou...
import DatePicker from 'react-datepicker'; import * as moment from 'moment'; import * as React from 'react'; import * as StudentAttendanceFilterQueryGql from './StudentAttendanceFilterQuery.graphql'; import * as StudentAttendanceUpdateMutationGql from './StudentAttendanceUpdateMutation.graphql'; import { RouteComponent...
import * as Piece from "./piece"; import * as PieceType from "./pieceType"; import * as Color from "./color"; import * as Square from "./square"; import * as Move from "./move"; import * as Rank from "./rank"; import * as File from "./file"; export type Board = Array<Array<Piece.Piece | undefined>>; export type Hand =...
<reponame>nitrogenlabs/starfire<gh_stars>0 // import htmlTagNames from 'html-tag-names'; import {Util} from '../../common/Util'; import {UtilShared} from '../../common/UtilShared'; import {DocBuilders} from '../../doc/DocBuilders'; import {DocUtils} from '../../doc/DocUtils'; import {CleanCSS} from './CleanCSS'; const...
<gh_stars>1-10 import { Observable, Subject } from 'rxjs'; import * as uuid from 'uuid'; import * as FlowTaskPackageType from './FlowTaskPackageType'; import { BuildNodeInfoHelper, INodeInfo } from './helpers/BuildNodeInfoHelper'; import { EmitOutput } from './helpers/EmitOutput'; import { FlowEventRunnerHelper } from ...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { ActionType, UserService, UserAttributeDto, UserAttributeLastUpdateDto, DiscloseSecretsQR, UserAssociatedAttributeDto, UnauthorizedUseDto, DocumentSignatureVerification, GroupRelation, RelationProofsValidationResults, S...
import { TSESLint, TSESTree, AST_TOKEN_TYPES, AST_NODE_TYPES, } from '@typescript-eslint/experimental-utils'; import * as util from '../util'; type Prefer = 'type-imports' | 'no-type-imports'; type Options = [ { prefer?: Prefer; disallowTypeAnnotations?: boolean; }, ]; interface SourceImports { ...
/// <reference types="jquery" /> /// <reference types="jqueryui" /> /// <reference types="toastr" /> /// <reference types="jquery.validation" /> declare var __decorate: any; declare const __skipExtends: { __metadata: boolean; __typeName: boolean; __componentFactory: boolean; }; declare var __extends: any; ...
<reponame>matrix07012/shinigami-eyes<gh_stars>100-1000 var browser: Browser = browser || chrome; const PENDING_SUBMISSIONS = ':PENDING_SUBMISSIONS' const MIGRATION = ':MIGRATION' const CURRENT_VERSION = 100029; const badIdentifiersReasons: { [id: string]: BadIdentifierReason } = {}; const badIdentifiers: { [id: stri...
/* * Copyright 2015-2016 <NAME>, 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
///<reference path="../../../headers/common.d.ts" /> import _ from 'lodash'; import $ from 'jquery'; import moment from 'moment'; import kbn from 'app/core/utils/kbn'; import {appEvents, contextSrv} from 'app/core/core'; import {tickStep} from 'app/core/utils/ticks'; import d3 from 'd3'; import {HeatmapTooltip} from '...
import { ComponentInternalInstance, Data, SetupContext, ComponentInternalOptions, Component, ConcreteComponent, InternalRenderFunction, LifecycleHooks } from './component' import { isFunction, extend, isString, isObject, isArray, NOOP, isPromise } from '@vue/shared' import { computed } fro...
<gh_stars>1-10 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "Licen...
<reponame>shnud94/livelang import { UnresolvedType, MapType, Type, ArrayType, OrType, AnyType, AndType, FunctionType, getAnyType, createArrayType, createCallableType, createMapType, createOrType } from './index'; import * as Types from './index'; import { BuiltInTypes as b } from './builtin'; import * as AST fr...
import { ClassDeclaration, ConstructorDeclaration, FunctionDeclaration, Identifier, InterfaceDeclaration , MethodDeclaration, MethodSignature, ModuleDeclaration, ModuleDeclarationKind, Project, PropertyDeclaration, PropertySignature, SourceFile, StructureKind, VariableDeclaration, Decorator, ParameterDeclaratio...
// Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
<filename>packages/lib/BaseModel.ts import paginationToSql from './models/utils/paginationToSql'; const { Database } = require('./database.js'); const uuid = require('./uuid').default; const time = require('./time').default; const Mutex = require('async-mutex').Mutex; // New code should make use of this enum export e...
<filename>apps/gtfs-rt-status/js/ts/controllers/GTFS_RT_Reporter.ts import { Date_Helpers } from '../helpers/Date_Helpers'; import { DOM_Helpers } from '../helpers/DOM_Helpers'; import { Response_GTFS_Lookup } from '../models/response_gtfs_lookup'; import { GTFS_RT, Response_GTFS_RT, Response_GTFS_RT_Entity } from './....
import { transliterator } from 'utils'; import Marionette from 'backbone.marionette'; import Backbone from 'backbone'; import _ from 'underscore'; import { validationSeverityTypes, validationSeverityClasses } from 'Meta'; import { classes } from '../meta'; import dropdown from 'dropdown'; import MobileService from '../...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {SafeValue} from '../../sanitization/bypass'; import {StyleSanitizeFn, StyleSanitizeMode} from '../../sanitization/s...
<gh_stars>0 /// <reference path="../../lib/jquery.d.ts" /> /// <reference path="../../lib/jquery-ui.d.ts" /> /// <reference path="../../lib/localizationManager.ts" /> /// <reference path="../../lib/misc-types.d.ts" /> /// <reference path="toolbar/toolbar.d.ts"/> /// <reference path="getIframeChannel.ts"/> declare var ...
<reponame>moritzlang/remotely-save import { CryptoProvider, PublicClientApplication } from "@azure/msal-node"; import { AuthenticationProvider } from "@microsoft/microsoft-graph-client"; import type { DriveItem, UploadSession, User, } from "@microsoft/microsoft-graph-types"; import cloneDeep from "lodash/cloneDee...
import BitBuffer from './BitBuffer'; const QRErrorCorrectionLevel = { L: 1, M: 0, Q: 3, H: 2 }; const QRMode = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 }; const G15: number = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0); const G1...
<gh_stars>0 import { app, BrowserWindow, screen } from 'electron'; import * as path from 'path'; import * as url from 'url'; import { globals } from './main-globals'; // ======================================================================================== // ***************************** BUILD TOGGLE *************...
import { Component, ViewChild, Input, Output, EventEmitter, ElementRef, SimpleChanges } from "@angular/core" // tslint:disable-line:no-unused-variable import { Media, MediaObject } from '@ionic-native/media' import { AlertController } from 'ionic-angular' import { NavController, NavParams, IonicPage, ActionSheetContro...
<gh_stars>10-100 import { StatementTypes } from "../../chef/rust/statements/block"; import { ArgumentList, ClosureExpression, FunctionDeclaration, ReturnStatement } from "../../chef/rust/statements/function"; import { VariableDeclaration } from "../../chef/rust/statements/variable"; import { Expression, Operation } fro...
import m from "mithril"; import sML from "./sMLstub"; import Coordinator, { Point, BibiEvent, VerticalThird, HorizontalThird } from "./coordinator"; import Reader, { XBReadingDirection } from "xbreader/components/Reader"; import Slider from "xbreader/models/Slider"; import Ui from "xbreader/models/Ui"; const MAX_SCALE...
import { useState, useEffect, useCallback } from 'react'; import { Row, Col, Form, FormControl, InputGroup, Modal, } from 'react-bootstrap'; import { Box } from '@material-ui/core'; import { ethers } from 'ethers'; import BigNumber from 'bignumber.js'; import { usePendingTx, PendingTx } from 'h...
import * as React from 'react'; import { ContentState, convertToRaw, EditorState, Modifier } from 'draft-js'; import draftToHtml from 'draftjs-to-html'; import htmlToDraft from 'html-to-draftjs'; import { Editor } from 'react-draft-wysiwyg'; import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'; import Button fr...
<reponame>soumas/RocWCT import { LitElement, html, customElement, css, property } from 'lit-element'; import { RocWCT } from '../../rocwct'; /***********************************************************/ /**************** RocWct Lit Elment ************************/ /*****************************************************...
import { assert } from 'console'; import * as manager from '../../lib/dayManager.js'; import { Rational } from '../../lib/rational.js'; /* Input: Each line = 1 Reaction Reaction = 1..Many Inputs => 1 Output Each Input/Output is a Chemical and a Quantity Notes: Each Chemical is produced by Exactly 1 Reaction SO...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import type { nbformat } from '@jupyterlab/coreutils'; import { inject, injectable } from 'inversify'; import * as path from 'path'; import { CancellationToken } from 'vscode'; import { IPythonExtensionChecker...
<reponame>Wumpuspro/NWWbot import { NorthClient, NorthInteraction } from "./classes/NorthClient"; import crypto from "crypto"; import { globalClient } from "./common"; import * as Discord from "discord.js"; import originalFetch from "node-fetch"; import fetchBuilder from "fetch-retry-ts"; import { parseString } from "x...
import { Injectable, Inject } from '@angular/core'; import { MapWithContent, KMap, KNode, KEdge } from '@colabo-knalledge/f-store_core'; import {GlobalEmittersArrayService} from '@colabo-puzzles/f-core/code/puzzles/globalEmitterServicesArray'; declare var d3:any; declare var $: any; declare var knalledge:any; declar...
<filename>src/routes/examples/data/graph.ts /* TODO: - https://observablehq.com/@sophietalbot/bipartite-graph-of-virtual-water-trade-wheat/2 */ export const simpleData = { nodes: [ { id: 'A1' }, { id: 'A2' }, { id: 'A3' }, { id: 'B1' }, { id: 'B2' }, { id: 'B3' }, { id: 'B4' }, { id: 'C1' }, { i...
<reponame>livoras/amini import { ShareHttpClient } from "@mono-shared/services/share-http-client.service" import { HttpClient, needShowErrorSceneList } from "@core/services/http-client.service" import { wxApp } from "@core/amini/core" import { Observable, of, Observer, interval, throwError } from "rxjs" import { final...
import React from "react"; interface MyProps { rx: boolean, tx: boolean } interface MyState { } export class Phone extends React.Component<MyProps, MyState> { state = { frame: 0, blink: [] }; start = 0; end = 50; frame = 0; frameRunning = 0; startvalue = -400; endvalu...
import {Material} from "."; import {SHADER_ATTRIBUTE, SHADER_UNIFORM, SHADER_STAGE, SAMPLER_WRAP_MODE, SAMPLER_FILTER_MODE, TEXTURE_FORMAT, MATERIAL_CULL_MODE, MATERIAL_BLEND_MODE, FRAME_COMMAND, MATERIAL_COLOR_MASK, MATERIAL_DEPTH_COMPARISON_MODE, BUFFER_FORMAT} from "../constants"; import {Unreachable} from "../util...
import * as d3 from 'd3'; import { MarkerStartShapes, MarkerEndShapes } from '../types'; export class DrawGauge { defaultFonts: any; opt: any; svg: any; circleGroup: any; originX: any; originY: any; needleLengthPos: any; needlePathLength: any; needlePathStart: any; tickStartMaj: any; tickStartMin...
import * as Service from "VSS/Service"; import * as CoreRestClient from "TFS/Core/RestClient"; import * as CoreContracts from "TFS/Core/Contracts"; import * as WorkClient from "TFS/Work/RestClient"; import * as WitClient from "TFS/WorkItemTracking/RestClient"; import * as WorkContracts from "TFS/Work/Contracts"; import...
<gh_stars>0 // // TODO namespace // 2022-03時点 const _scripts = { ADLM: "Adlm", // Adlam // Adlam AFAK: "Afak", // Afaka // AGHB: "Aghb", // Caucasian Albanian // Caucasian_Albanian AHOM: "Ahom", // Ahom, Tai Ahom // Ahom ARAB: "Arab", // Arabic // Arabic ARAN: "Aran", // Arabic (Nastaliq variant) // ARM...
// --------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // --------------------------------------------------------------------------- import './EmbedPage.scss'; import React, { useState, useEffect, useCallback } from 're...
import { Component, ChangeDetectionStrategy, ViewChild, TemplateRef, OnInit, Injectable } from "@angular/core"; import { startOfDay, endOfDay, subDays, addDays, endOfMonth, isSameDay, isSameMonth, addHours, subWeeks, startOfMonth, addWeeks } from "date-fns"; import { Subject } from "rx...
<reponame>mooyoul/node-webpinfo import * as debug from "debug"; import * as fs from "fs"; import * as request from "request"; import * as stream from "stream"; import * as thunks from "thunks"; import urlRegex = require("url-regex"); import { StreamParserWritable } from "./stream-parser"; const { thunk } = thunks; c...
<filename>TrustRegionSubproblem.ts import { SymmetricMatrix } from "./SymmetricMatrix" import { SquareMatrix } from "./SquareMatrix" import { norm, containsNaN, isZeroVector } from "./MathVectorBasicOperations" import { norm1 } from "./MathVectorBasicOperations" import { squaredNorm } from "./MathVectorBasicOperations"...
<filename>src/parse.ts import {Stack, Recover} from "./stack" import {Action, Specialize, Term, Seq, StateFlag, ParseState} from "./constants" import {InputStream, Token, StringStream, Tokenizer, TokenGroup} from "./token" import {DefaultBufferLength, Tree, TreeBuffer, NodeGroup, NodeType, NodeProp, NodePropSource} fro...
<reponame>AndyDecker/fhir-ts<filename>packages/fhir-types/src/R4/PlanDefinition.ts /** * PlanDefinition Module */ import * as primitives from "@tangdrew/primitives"; import * as t from "io-ts"; import { Age } from "./Age"; import { CodeableConcept } from "./CodeableConcept"; import { ContactDetail } from "./ContactD...
<filename>src/P2P.ts import { OrderedMap } from "immutable"; import moment from "moment"; import ImmuUpdate from 'immutability-helper'; // local import { Messages, bindOnInternal, unbindOnInternal } from "./Messages"; import { UserConnection } from "./UserConnection"; import { AudioOut } from './AudioOut'; import { Dec...
export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ...
<filename>src/main/typescript/mainframe.ts /** * Created by bluejoe on 2018/2/24. */ import * as events from "events"; import "jquery"; import "jqueryui"; import { Control, UIControl } from "./control/Control"; import { GraphService } from './service/service'; import { Theme, Themes } from "./theme"; import { EV...
<reponame>dbieber/propel<filename>website/nb.ts<gh_stars>0 /*! Copyright 2018 Propel http://propel.site/. 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://...
<reponame>Heigvd/Wegas import u, { Immutable, produce } from 'immer'; import { Schema } from 'jsoninput'; import { omit } from 'lodash'; import { cloneDeep } from 'lodash-es'; import { Reducer } from 'redux'; import { IAbstractContentDescriptor, IAbstractEntity, IAbstractState, IAbstractStateMachineDescriptor, ...
import { ComponentRef, ComponentFactoryResolver, ElementRef, EventEmitter, NgZone, ReflectiveInjector, Renderer, ViewContainerRef } from '@angular/core'; import { AnimationOptions } from '../animations/animation'; import { App } from '../components/app/app'; import { Config } from '../config/config'; import { convertT...
// Browser friendly type-only imports as we can assume the electron app has these types loaded already. type IpcRenderer = import('electron').IpcRenderer; import { ClassEntry, JabraType, DeviceInfo, enumDeviceBtnType, enumFirmwareEventType, enumFirmwareEventStatus, PairedListInfo, enumUploadEventStatus, ...
import * as Bluebird from 'bluebird'; import { chmod, copy, createReadStream, createWriteStream, emptyDir, ensureDir, outputFile, readFile, readJson, remove, rename, writeFile, } from 'fs-extra'; import {basename, dirname, resolve} from 'path'; import * as semver from 's...
import * as vscode from 'vscode'; import { LanguageClient, ServerOptions, LanguageClientOptions, DocumentSymbol, Position, StaticFeature, ClientCapabilities, ServerCapabilities, DocumentSelector, MessageType, } from 'vscode-languageclient/node'; import * as util from '../utilities'; import * as conf...
// borrowed many code from https://github.com/bevacqua/dragula.git import {EventAggregator} from 'aurelia-event-aggregator'; import {trPreview, liPreview, unknownTagPreview, defaultPreview} from './preview-drawers'; export interface SourceDelegate { dndElement?: Element; dndModel(): any; dndCanDrag?(): boolean; ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
import { QueryEditorProps, SelectableValue } from '@grafana/data'; import { CascaderOption, TextArea } from '@grafana/ui'; import { css, cx } from 'emotion'; import React, { PureComponent } from 'react'; import { ALL_KEY, TimeBaseDataSource } from './DataSource'; import { MyDataSourceOptions, TimeBaseQuery } from './t...
import * as path from 'path'; import fs from 'fs'; import { readFile, fileExists, normalizePath } from './util'; import * as vscode from 'vscode'; import { glob } from 'glob'; import minimatch from 'minimatch'; import chokidar from 'chokidar'; import assert from 'assert'; import { parse as dotenvParse } from 'dotenv'; ...
/** * @license * Copyright 2020 Google LLC. * 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/PATENTS.txt */ import {...
import React from 'react'; import { FormItem, FormControlProps } from './Item'; import cx from 'classnames'; import Cropper from 'react-cropper'; import DropZone from 'react-dropzone'; import 'blueimp-canvastoblob'; // @require 'cropperjs/dist/cropper.css'; // jest 不能支持这种写法 // import 'cropperjs/dist/cropper.css...
<gh_stars>100-1000 import { MuArray } from '../schema/array'; import { MuStruct } from '../schema/struct'; import { MuSortedArray } from '../schema/sorted-array'; import { MuVarint, MuASCII, MuBoolean } from '../schema'; import { MuRDA, MuRDATypes, MuRDAStore, MuRDAActionMeta } from './rda'; import { allocIds, ID_MIN, ...
import { Read, ReadDecoder, Write, WriteSizer, WriteEncoder, Nullable, BigInt, Context } from "@web3api/wasm-as"; import { CustomType } from "./"; import * as Types from ".."; export function serializeCustomType(type: CustomType): ArrayBuffer { const sizerContext: Context = new Context("Serializing (...
import React from 'react'; import './LeadsForReceptionistScreen.less'; import { Icon, Col, Row, Popover, Progress, Tag, Modal, Form, Input, Tooltip, Avatar } from 'antd'; import { ToolbarWithSuggest, TableList, Pagination, DefaultAvatar } from '@client/components'; import moment from 'moment'; import { getServiceProxy ...
<gh_stars>1-10 /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import {Breakpoint, BreakpointEvent, Handles, InitializedEvent, InvalidatedEvent, Logger, logger, LoggingDebugSession, Outp...
/** * SimpleWebRequest.ts * Author: <NAME> * Copyright: Microsoft 2016 * * Simple client for issuing web requests. */ import * as _ from 'lodash'; import * as assert from 'assert'; import * as SyncTasks from 'synctasks'; import { ExponentialTime } from './ExponentialTime'; export interface Headers { [heade...
import { TraitType } from "../src/IArtDef"; export type AllBackgroundTraits = | "Blue White Bokeh" | "Gradient Blue Purple" | "Gradient Dark Blue" | "Gradient Dark Purple" | "Gradient Dark Teal" | "Gradient Green Blue" | "Gradient Orange Green Teal" | "Gradient Orange Pink" | "Gradient Pink Blue" ...
<reponame>tpoikela/battles<gh_stars>1-10 import {Capital} from '../../../client/data/capital'; import chai from 'chai'; import RG from '../../../client/src/rg'; import {Placer} from '../../../client/src/placer'; import {GameMain} from '../../../client/src/game'; import {QuestData} from '../../../client/src/quest'; im...
<reponame>edreg/global-corona-forecasting-system import * as ecStat from 'echarts-stat/dist/ecStat'; import {CoronaChartResponseInterface} from "../interface/corona-chart-response-interface"; import * as $ from "jquery"; import {SeriesChartInterface} from "../interface/series-chart-interface"; import {DateTimeService} ...
<filename>srcW/app/modules/order-management/pages/order-workbench/order-workbench.component.ts import { AfterViewInit, Component, EventEmitter, OnInit, Output, ViewChild, ElementRef } from '@angular/core'; import { Router } from '@angular/router'; import { SelectionModel } from '@angular/cdk/collections'; import { M...
<filename>src/index.ts /** * Create by Capricorncd * Sat Oct 21 2017 18:49:07 GMT+0800 * https://github.com/capricorncd */ import util, { getMaxScore, setMaxScore, isSafari } from './util' import Square from './square' import * as Types from '../types' import { CODES, DEF_OPTIONS, KEYBOARD_KEYS } from './constants'...
<reponame>SE-Stuttgart/xstampp-4.0<filename>xstampp-angular/src/app/sub-app/process-variable-table/process-variable-table.component.ts<gh_stars>1-10 import { HttpErrorResponse } from '@angular/common/http'; import { Component, OnDestroy } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { ...
<reponame>Augustpi/WealthFramework import { Component, Input, OnDestroy, OnInit } from "@angular/core"; import { Router } from "@angular/router"; import { AuthService, ElementFieldDataType, ElementField as CoreElementField, ElementItem as CoreElementItem, User } from "@forcrowd/backbone-client-core"; import { timer as ...
<reponame>AaronDavidNewman/VexflowEditor // [Smoosic](https://github.com/AaronDavidNewman/Smoosic) // Copyright (c) <NAME> 2021. import { VxMeasure } from './vxMeasure'; import { SmoSelection } from '../../smo/xform/selections'; import { SvgHelpers } from '../sui/svgHelpers'; import { SmoLyric } from '../../smo/data/no...
<gh_stars>10-100 // This file contains logic to support "implied" extensions, which are a special type of extension // that allows IG authors to refer to elements from past or future versions of FHIR. For example, // an R4 Patient profile could use an implied extension to bring in the STU3 Patient.animal.species // ele...
<filename>src/libs/crawl.ts // This code is originally based on the excellent work of @nicolashenry, in jsdom. // https://github.com/jsdom/html-encoding-sniffer export const crawl = async (url: string): Promise<string> => { const response = await fetch(url, { method: 'GET' }); if (!response.ok) { throw new Err...