text
stringlengths
3.08k
15.5k
<reponame>awesome-archive/ppspider import * as fs from "fs"; import {PathLike} from "fs"; import {ValueState} from "./ExJsonFsm"; import {isUndefined} from "util"; /** * 用于保存 被@Serialize装饰的类 或 类成员被@Transient装饰的类 的类信息 */ interface ClassInfo { /** * 类的id,默认使用类名,不能重复 */ id?: string; /** * 类...
import { difference, differenceWith, intersection, isEqual, sortBy } from 'lodash'; import { IdentityId, Ticker, TrustedIssuer, TxTags } from 'polymesh-types/types'; import { Context, Identity, PolymeshError, Procedure, SecurityToken } from '~/internal'; import { ClaimType, ErrorCode, TrustedClaimIssuer } from '~/type...
import { customElement, html, property, query, TemplateResult } from "lit-element"; import { ifDefined } from "lit-html/directives/if-defined"; import { ICheckboxBehaviorProperties } from "../behavior/checkbox/checkbox-behavior"; import { IRadioBehaviorProperties, RadioBehavior } from "../behavior/radio/radio-behavior"...
<reponame>acidburn0zzz/forget-me-not<gh_stars>100-1000 /** * License: zlib/libpng * @author <NAME> * @see https://github.com/Lusito/forget-me-not */ import { messageUtil } from "../lib/messageUtil"; import { settings } from "../lib/settings"; import { removeLocalStorageByHostname } from "./backgroundShared...
<reponame>amndns/tree-visualizer import cloneDeep from 'lodash-es/cloneDeep'; import { INITIAL_ROOT_NODE, createPlusNode, createRegularNode, } from 'helpers/tree'; import { toNumber } from 'helpers/utils'; import { NodeChildIndex, NodeTypes, TreeData } from './tree.model'; type TreeDataArray = (number | null)[...
import React, { useState, useEffect } from "react"; import { Button, Modal, ModalBody, ModalFooter, ModalHeader, Label, HelperText, Select, Input, } from "@windmill/react-ui"; import * as rService from "../../../services/reference"; import DatePicker from "react-datepicker"; import "react-datepicker/d...
import { FrameElement } from '../types/util' import { Resource, DomResource } from '../types/resource' // TODO Remove need for this (recursive) import import { SubresourceType } from './url-attributes/types' // This alias is used to explicitly state which strings are guaranteed/presumed to be absolute URLs. export typ...
import * as localForage from "localforage" import {AppUrls} from "../../Constants"; import {AnkiDeck} from "../models/AnkiDeck"; import {AnkiReview} from "../models/AnkiReview"; import {AnkiCard} from "../models/AnkiCard"; const ankiConnectApiUrl = AppUrls.ankiApi; const cacheKeys = { decks: 'anki-deck-names-and-...
/* * Copyright 2019 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import { CommandParsingContext, parserFunctions, ProcessCommandsFunction, } from './command-parser-functions'; export type ParserErrorHandler = ( ctx: ParserContext, line: number, text: string, ) => void; export interface ParserContext { fileName: string; error: (line: number, text: string) => void; ...
<reponame>corcd/GdyJsBridge<filename>jsbridge/src/libs/crypto.ts /* * @Author: Whzcorcd * @Date: 2020-11-20 14:09:39 * @LastEditors: Whzcorcd * @LastEditTime: 2020-11-23 09:44:28 * @Description: file content */ // @ts-nocheck const CryptoJS = CryptoJS || (function (e, m) { var p = {}, j = (p.lib = ...
/* * Deepkit Framework * Copyright (C) 2021 Deepkit UG, <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the MIT License. * * You should have received a copy of the MIT License along with this program. */ import { BSONBinarySerializer, ValueWithBSONSeriali...
import produce from 'immer'; import * as noticeAPI from 'controllers/notice' import { initSnackbar } from 'modules/snackbar' // types import { NoticeThunk } from 'modules/types' // lib import { dateFormatter } from 'lib/utils/postUtils' /* Thunk 함수 */ export const GetNotice = (noticeId: string): NoticeThunk => { retu...
export function dragElement(domElement: HTMLElement, dragZoneElemSelector: string) { let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; const dragPoint = domElement.querySelector(dragZoneElemSelector) as HTMLElement; if (dragPoint) { dragPoint.onmousedown = dragMouseDown; } else { domElement.on...
<filename>src/index.ts<gh_stars>1-10 import axios from 'axios'; import $, { CheerioAPI, BasicAcceptedElems, Cheerio } from 'cheerio'; import { isValidURL } from './helpers'; interface elementObject { selector: string | Array<string> | BasicAcceptedElems<any>, get?: Array<string> | string, options?: { limit?:...
import { RouteProp } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stack'; import bip21 from 'bip21'; import React, { Component } from 'react'; import { View, StyleSheet, Text, InteractionManager } from 'react-native'; import QRCode from 'react-native-qrcode-svg'; import Share ...
<reponame>seasketch/next<gh_stars>1-10 import { postgraphile } from "postgraphile"; import { makeExtendSchemaPlugin, gql } from "graphile-utils"; import * as S3 from "aws-sdk/clients/s3"; import { FileUpload } from "graphql-upload"; import stream from "stream"; import { v4 as uuid } from "uuid"; import { createHash } f...
import fs = require("mz/fs"); import nsfw = require("nsfw"); import path = require("path"); import util = require("util"); import { PathReporter } from "io-ts/lib/PathReporter"; import { Change, Remove, RofreshConfig, RofreshConfigIO } from "../types"; import { getFileContents } from "../utility"; import Client from "...
import got, { BeforeRetryHook, NormalizedOptions, Options, RequestError, TimeoutError } from 'got'; import type {Response} from 'got/dist/source/as-promise'; import type {DownloadResource, RequestOptions} from './types'; import {Resource, ResourceType} from '../resource'; import type {StaticDownloadOptions} f...
<filename>src_ts/elements/pages/special-audits-page-components/report-page-components/other-recommendations/other-recommendations.ts import {PolymerElement, html} from '@polymer/polymer/polymer-element'; import {property} from '@polymer/decorators/lib/decorators'; import '@polymer/paper-icon-button/paper-icon-button.js...
// A later stage of bootstrapping, which runs after the initial bootstrap, then // the AA tree functionality. import {defClass, impoverishedClasses, lateBinding} from './bootstrap'; import {insert, mkDict} from './dict'; import { ptr, Format, CLS_BOOLEAN, CLS_TRUE, CLS_FALSE, CLS_CONTEXT, CLS_BLOCK_CLOSURE, CLS_...
import { DateTime } from 'luxon'; import { errorIssue, TideEvent, TideStatus } from 'tidy-shared'; import { mergeIssues } from '../all/all-merge'; import { APIConfigurationContext } from '../all/context'; import { FetchResponse, getJSON } from '../util/fetch'; import { createServerLog, ServerLogger } from '../util/log'...
<gh_stars>1-10 import express from "express"; const app = express() import config from "../application"; import render from "../scripts/renderPage"; import logger from "../utils/scripts/logger"; const animedata = require("../database/client/andata.json"); const listdata = require("../database/client/lists.json"); cons...
import fs from 'fs' import path from 'path' import * as ts from 'typescript/lib/tsserverlibrary' import { createLogger, Logger } from './logger' import { createProxy, getFilePath, isPluginContext } from './utils' import createSnapshot from './snapshot' import LanguageService from './service' export type PluginOptions ...
import { Dealer } from 'zeromq' import { randomUUID } from 'crypto' import { cryptoOptions } from '@core/crypto/CryptoOptions' import { LogProvider } from '@core/providers/LogProvider' import { SimpleQueueProvider, TLinkedNode } from '@core/providers/SimpleQueueProvider' import { IHeartBeat, IInternalJobQueueMessa...
<filename>scripts/escapin-test.ts<gh_stars>0 import generator from '@babel/generator'; import * as parser from '@babel/parser'; import * as t from '@babel/types'; import deasync from 'deasync'; import { command } from 'execa'; import * as fs from 'fs'; import { sync as mkdirp } from 'mkdirp'; import { ncp as _ncp } fro...
<gh_stars>0 import { Node, Batch, BatchLoadFn, DataloaderInterface, RedisCache as CacheInterface, DataLoaderProps, } from '@via-profit/dataloader'; import RedisCache from './dataloader-cache'; import mslight from './time-parser'; let resolvedPromise: Promise<any> | null; /** * DataLoader */ class DataL...
import * as AlvaUtil from '../../alva-util'; import * as Mobx from 'mobx'; import { PatternFolder } from '../pattern-folder'; import { PatternLibrary } from '../pattern-library'; import * as PatternProperty from '../pattern-property'; import { PatternSlot } from './pattern-slot'; import * as Types from '../../types'; i...
<reponame>kagechan/winter-cardinal-ui /* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ import { DisplayObject, interaction, Point } from "pixi.js"; import InteractionEvent = interaction.InteractionEvent; import { DApplicationTarget } from "../d-application-like"; import { DApplic...
<gh_stars>0 import {Client, Message, MessageReaction, Snowflake, VoiceChannel, VoiceConnection} from 'discord.js' import {FlagsAndArgs} from './command' import {ClientError, indicateSuccess, logClientError, log} from './error' import {promisify} from 'util' import * as fs from 'fs' import {awaitCollectorEnd} from './ut...
<filename>src/app/guilded/components/content.d.ts import { ComponentText, DirectionVertical, Size } from "../common"; import React, { CSSProperties } from "react"; import { ButtonProps } from "../input"; //#region BadgeV2 export declare class BadgeV2 extends React.Component<{ count?: number; hasBorder?: boolea...
<filename>src/type-r/record/attributes/attrDef.ts /** * Type spec engine. Declare attributes using chainable syntax, * and returns object with spec. */ import { Transactional } from '../../transactions' import { ChangeAttrHandler, AttributeOptions, Parse } from './any' import { AttributesContainer } from './updates...
import { formatTime, formatCount, formatKMBT, formatPercent } from './tooltip'; // Create a topology layout based on the Layout field in the configuration export const buildLayout = (type: string, direction: string) => { const layout: any = { type: 'dagre', rankdir: direction, align: 'DL', ...
<filename>src/main/resources/site/parts/keyFigure/keyFigure.ts import { Content } from 'enonic-types/content' import { Request, Response } from 'enonic-types/controller' import { MunicipalityWithCounty } from '../../../lib/ssb/dataset/klass/municipalities' import { KeyFigureView } from '../../../lib/ssb/parts/keyFigure...
import { ThemeRef } from 'sku/treat'; // Text definitions interface TextDefinition { size: number; rows: number; } type Breakpoint = 'mobile' | 'desktop'; type HeadingSize = 'level1' | 'level2' | 'level3'; type TextSize = 'standard' | 'large'; type ResponsiveHeading = Record<Breakpoint, TextDefinition> & Record<...
type i16=number; type i32=number;type i64=number;type u16=number; type u32=number;type u64=number;type f32=number; import Equation from "../equations/Equation"; import Solver from "./solver"; import World from "../world/world"; import FrictionEquation from "../equations/friction-equation"; // Sets the .multiplier p...
<filename>src/lib/list/list.ts import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, Directive, ElementRef, HostBinding, Input, NgZone, OnDestroy, QueryList, Renderer2, ViewChild, ViewEncapsulation, } from '@angular/core'; import { defer } from 'rxjs/observable/defe...
<gh_stars>0 import * as shell from "shelljs"; import { writeFileSync } from "fs"; import { PackageJSON, printMsg, readJsonFile, writeJsonFile } from "./common"; import { red } from "chalk"; /** * 安装ESLint */ export function installESLint(): void { shell.exec( "npm i eslint @typescript-eslint/parser @typescript...
import axios from 'axios'; import { serializeQueryString } from 'src/helpers'; import { parseNFTData } from 'src/helpers/nft'; import { Erc721Swap, ERROR_STATE, INFTParsedTokenAccount, NFTStandard, SwapState, TransferData, TransferStatus, } from 'src/interfaces/nft'; import setting from 'src/setting'; ex...
import { Flex, useDisclosure, useColorMode, Box, Heading, useToast, Stack, } from "@chakra-ui/react"; import Drawer from "../components/drawer"; import moment from "moment"; import type { NextPage } from "next"; import { useEffect, useState } from "react"; import Calender from "../components/Calender"; im...
import React from "react"; import cx from "classnames"; import { useSelector, useDispatch, shallowEqual } from "react-redux"; import { PaneHeader, PaneBody, NoContent, PaneState } from "../src/components/Pane"; import { WebviewPanels } from "../ipc/webview.protocol.common"; import { ModifiedRepos } from "./ModifiedRepo...
<reponame>chuckmah/modul import 'cleave.js/dist/addons/cleave-phone.i18n.js'; import { CountryCode, getExampleNumber, PhoneNumber } from 'libphonenumber-js'; import { PluginObject } from 'vue'; import Component from 'vue-class-component'; import { Emit, Model, Prop, Watch } from 'vue-property-decorator'; import { Input...
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ import {openDB, DBSchema, IDBPDatabase, deleteDB} from 'idb'; import '../_version.js'; const DB_NAME = 'workbox-expiration'; const CACH...
// Code generated by protoc-gen-as. DO NOT EDIT. // versions: // protoc-gen-as v0.3.0-alpha.0 // protoc v3.20.1 // source: bench.ts import { Writer, Reader, Protobuf } from "as-proto"; export class Test { static encode(message: Test, writer: Writer): void { writer.uint32(10); writer.string(messag...
import { _default as _DEFAULT_WORDLIST, wordlists } from './_wordlists'; let crypto: Crypto if (typeof window === 'undefined') { crypto = require("crypto").webcrypto } else { crypto = window.crypto } let DEFAULT_WORDLIST: string[] | undefined = _DEFAULT_WORDLIST; const INVALID_MNEMONIC = 'Invalid mnemonic'; cons...
<filename>src/webgl/lesson3.ts /* eslint-disable no-mixed-operators */ /* eslint-disable no-bitwise */ /* eslint-disable no-alert */ import { mat4 } from 'gl-matrix'; type Locations<T extends string> = Record<T, number> type ProgramInfo = { program: WebGLProgram, attribLocations: Locations<'vertexPosition' | '...
<gh_stars>10-100 import _ from "lodash"; import { trivial_text_maker } from "src/models/text"; import { make_store } from "src/models/utils/make_store"; import { sanitized_marked } from "src/general_utils"; import { BaseSubjectFactory } from "./BaseSubjectFactory"; import { CRSO } from "./CRSO"; interface DeptDef...
import { t, makeSprite } from "../../packages/replay-core/src"; import { WebInputs } from "../../packages/replay-web/src"; import { iOSInputs } from "../../packages/replay-swift"; import { bulletX, bulletY } from "./utils"; import { Score } from "./Score"; import { WalkingGreenCapChar } from "./SpriteSheet"; import { P...
<gh_stars>1-10 // metadata export const version = "0.7.6" export const title = "Merkle Tree" export const description = "Learn about Merkle tree in Solidity" const html = `<p>Merkle tree allows you to cryptographically prove that an element is contained</p> <p>in a set without revealing the entire set.</p> <pre><code ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useState, useRef, useEffect} from 'react' import debounce from 'lodash/debounce' import {useIntl, IntlShape} from 'react-intl' import {PropertyType} from '../blocks/board' import {Utils} from ...
import { useEffect, useState } from "react"; import useRushing from "hooks/useRushing"; import { RushingDataServerResponse } from "interfaces/interface"; import Pagination from "components/Pagination/pagination.component"; import Filters from "components/Filters/filters.component"; import Spinner from "components/Spinn...
import logger from '../logger' import * as Types from '../constants/types/crypto' import * as Constants from '../constants/crypto' import * as Container from '../util/container' import * as TeamBuildingGen from '../actions/team-building-gen' import * as CryptoGen from '../actions/crypto-gen' import HiddenString from '....
<gh_stars>1-10 import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { ApplyFieldOverrideOptions, DataTransformerConfig, dateTime, FieldColorModeId } from '@grafana/data'; import alertDef from './alertDef'; import { AlertDefinition, AlertDefinitionDTO, AlertDefinitionQueryModel, AlertDefinitionS...
<reponame>WEBX-PL/adapters<gh_stars>0 /* eslint-disable @typescript-eslint/no-non-null-assertion */ import type { runTransaction, collection, query, getDocs, where, limit, doc, getDoc, addDoc, updateDoc, deleteDoc, Firestore, FirestoreDataConverter, } from "firebase/firestore" import type { A...
<reponame>boyander/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------...
/// <reference path='./ios-ts-lib/types.d.ts'/> import { WebImageCommon, srcProperty, isLoadingProperty } from './web-image-cache.common'; import { Property } from 'tns-core-modules/ui/core/view'; import * as appSettings from 'tns-core-modules/application-settings'; import { Helpers as helpers } from './ios-ts-lib/h...
import { ColorRGBA64, parseColor } from "@microsoft/fast-colors"; import { PluginNode, PluginNodeData } from "../core/node"; import { RecipeData, RecipeTypes } from "../core/recipe-registry"; function isNodeType<T extends BaseNode>(type: NodeType): (node: BaseNode) => node is T { return (node: BaseNode): node is T...
/** * Signature help. This shows a documentation tooltip when a user is * writing a function signature. Currently triggered by the opening * bracket. * * (c) 2021, Micro:bit Educational Foundation and contributors * * SPDX-License-Identifier: MIT */ import { StateEffect, StateField } from "@codemirror/state"; i...
/* eslint-disable max-len */ /* eslint-disable no-new */ import { ITransitionData, IVFDataV1, SceneEvent } from '../core/model/IVFData'; import { VariableManager } from '../core/VariableManager'; import { SoundManager } from '../sound/SoundManager'; import { VFScene } from './VFScene'; import { RES } from '../core/RES'...
import React, {useCallback, FunctionComponent, CSSProperties} from 'react' import {Axes} from './Axes' import { AnnotationLayerConfig, BandLayerConfig, InteractionHandlerArguments, LayerTypes, LineLayerConfig, MosaicLayerConfig, RectLayerConfig, ScatterLayerConfig, SingleStatLayerConfig, SizedConfi...
// https://github.com/nhn/tui.code-snippet/blob/master/formatDate/formatDate.js import { isDate, isObject } from '@src/helpers/utils'; import { DateOption } from '@t/options'; export const DEFAULT_DATE_FORMAT = 'YY-MM-DD hh:mm:ss'; export function getDateFormat(date?: DateOption): string | undefined { if (!date) { ...
<gh_stars>1-10 import { PathFinderNode } from './PathFinderNode'; import { PriorityQueue } from './PriorityQueue'; import { Point } from './Point'; import { Grid, MazeStrategy } from '../types'; const Steps = { WithDiagonals: [ [0, -1], [1, 0], [0, 1], [-1, 0], [1, -1], [1, 1], [-1, 1], ...
/* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you 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 appli...
<filename>libs/simulation-project-utils/ui/src/lib/validate-simulation/validate-simulation.component.ts<gh_stars>10-100 import { Component, OnInit, OnDestroy } from '@angular/core'; import { FormBuilder, FormGroup, FormControl, Validators, ValidationErrors, } from '@angular/forms'; import { CombineApiService ...
'use strict'; import * as fs from 'fs'; import * as events from 'events'; import * as path from 'path'; import * as vscode from 'vscode'; import * as rx from 'rx-lite'; import * as review from 'review.js'; import * as reviewprh from 'reviewjs-prh'; const review_scheme = "review"; class ReviewTextDocumentContentProvi...
/** * @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 { logging, tags } from '@angular-devkit/core'; import { existsSync, readFileSync } from 'fs'; import { posix,...
import { DrawerNavigationProp } from '@react-navigation/drawer'; import { RouteProp } from '@react-navigation/native'; import { Linking } from 'expo'; import React, { Component } from 'react'; import { Image, SafeAreaView, ScrollView, StyleSheet, Text, TouchableHighlight, TouchableOpacity, View, } from ...
<gh_stars>1-10 import { DEFAULT_CHAIN_ID, TransactionVersion, PayloadType, AnchorMode, PostConditionMode, AuthType, StacksMessageType, ChainID, } from './constants'; import { Authorization, SpendingCondition, nextSignature, isSingleSig, SingleSigSpendingCondition, createTransactionAuthField...
<reponame>uvasomrc/ed-platform import {Component, Inject, OnInit} from '@angular/core'; import {WorkshopService} from '../workshop.service'; import {ActivatedRoute, Router} from '@angular/router'; import {Workshop} from '../workshop'; import {AccountService} from '../account.service'; import {Track} from '../track'; im...
<reponame>sperry94/kibana /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import Boom from 'boom'; import hapi from 'hapi'; i...
import React from "react"; import { RouteComponentProps, withRouter } from "react-router-dom"; import "./style.scss"; import { Trans } from "react-i18next"; import { LobbyPage, SmallLogo } from "components/LobbyPage"; import { ButtonLang } from "components/ButtonLang"; import { LobbyLink } from "./LobbyLink"; import {...
import { OperationCanceledException } from 'typescript'; import { BlockcoreIdentity, BlockcoreIdentityTools } from '../index'; import { decodeJWT, verifyJWT } from 'did-jwt'; import { Resolver } from 'did-resolver'; import { JwtCredentialPayload, createVerifiableCredentialJwt, JwtPresentationPayload, createVerifiablePr...
import { Col, Row, Form, Modal, Button, InputGroup, } from "@themesberg/react-bootstrap"; import Datetime from "react-datetime"; import { CalendarIcon } from "@heroicons/react/solid"; import React, { useState, useRef } from "react"; import FullCalendar from "@fullcalendar/react"; import dayGridPlugin from "...
<gh_stars>10-100 import { AnimationEvent } from '@angular/animations'; import { CdkAccordionItem } from '@angular/cdk/accordion'; import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { UniqueSelectionDispatcher } from '@angular/cdk/collections'; import { TemplatePortal } from '@angular/cd...
import { EventEmitter } from 'events'; import Client from './Client'; import * as Constants from './Constants'; import * as RTT from './helpers/RTT'; import SM from './helpers/StreamManagement'; import * as JID from './JID'; import * as Jingle from './jingle'; import * as JXT from './jxt'; import * as LibSASL from './...
import { renderNumberField, renderRadioFields, renderSelectField, renderTextField, renderTimeField, } from '@src/components/field/fields'; import { renderAutoForm, renderSubmitForm, renderUpdaterForm, } from '@src/components/form/forms'; import { enumValues, PhysicalServiceType } from '@src/data-enums';...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React, {Fragment, useEffect, useState} from "react"; import {Badge, Button, Card, message, Popconfirm, Spin, Table} from "antd"; import encodeParam from "@/utils/encodeParam"; import {ColumnProps, PaginationConfig, SorterResult} from "antd/lib/table"; import {DeviceInstance} from "@/pages/device/instance/data"; ...
import { property, html, customElement, LitElement, query, queryAll, TemplateResult, } from 'lit-element'; import { pulseWith } from '../core/animations'; import { ElaraSpinner } from './spinner'; import { Elara } from '../core/elara'; import { fromFetch } from 'rxjs/fetch'; import { catchError, switchMa...
<gh_stars>10-100 import { Context, GrammyError } from "https://deno.land/x/grammy/mod.ts"; import { InlineKeyboardButton, InlineKeyboardMarkup, MessageEntity, } from "https://cdn.skypack.dev/@grammyjs/types@v2.5.0?dts"; import { Language, languages } from "./data.ts"; export function answer(ctx: Context, text:...
<gh_stars>0 import { SharedProvider } from '../../providers/shared/shared'; import { NgForm } from '@angular/forms/src/directives'; import { Parametre } from '../../Entity/Parametre/Parametre'; import { ParametreService } from '../../providers/Parametres.service'; import { Setting } from '../../Entity/Setting/Setting';...
<reponame>rhysd/electron-typescript-definitions import _ from 'lodash'; import * as utils from './utils'; import d from 'debug'; import { EventParameterDocumentation, DetailedObjectType, ParsedDocumentationResult, DetailedFunctionType, } from '@electron/docs-parser'; import chalk from 'chalk'; const debug = d('...
<reponame>pgrund/cypress-schematic<filename>src/schematics/utility/util.ts import { get } from "http"; import { JsonAstObject, JsonParseMode, Path, experimental, join, parseJson, parseJsonAst } from "@angular-devkit/core"; import { SchematicContext, SchematicsException, Tree } from "@angular-devkit...
import { Injectable, Injector } from '@angular/core'; import { LoginProfileManagerService } from './login-profile-manager.service'; import { LoginProfile } from '../interfaces/login-profile'; import { WebsiteService, WebsiteStatus, LoginStatus } from 'src/app/websites/interfaces/website-service.interface'; import { Web...
import React, { useState } from "react"; import { msToDuration } from "utils/string"; import Button from "@leafygreen-ui/button"; import { GET_TASK_TESTS } from "gql/queries/get-task-tests"; import { TaskTestsQuery, TaskTestsQueryVariables, SortDirection, TestSortCategory, TestResult, TaskTestResult, } from...
import { mat4 } from 'gl-matrix'; import {} from '../index'; import { VertexArray, IndexBuffer, DataBuffer, Program, Data, geometries, vaos, } from '../index'; console.log(VertexArray, IndexBuffer, DataBuffer, Program); /* Step1: Prepare the canvas and get WebGL context */ let canvas = document.getElem...
import { Box, Button, Center, Link, ModalBody, ModalFooter, Stack } from '@chakra-ui/react' import { AssetId, AssetNamespace, AssetReference, toCAIP19 } from '@shapeshiftoss/caip' import { ChainTypes, NetworkTypes } from '@shapeshiftoss/types' import { useFoxy } from 'features/defi/contexts/FoxyProvider/FoxyProvider' i...
import { ExtractVisageComponentProps, markAsVisageComponent, } from '@byteclaw/visage-core'; import React, { forwardRef, ReactNode, MouseEvent, Ref } from 'react'; import { DangerIcon, InfoIcon, NeutralMessageIcon, SuccessIcon, WarningIcon, } from '../assets'; import { createComponent } from '../core'; im...
import * as GL from "@lib/ts/webgl"; import type { WebGl } from "@lib/ts/webgl"; import { WorkerCtx } from "@lib/ts/util"; import { handleInput, InputMessage, findCanvas } from "@lib/ts/gamescreen"; import fragShaderUrl from "./shader.frag?url"; import vertShaderUrl from "./shader.vert?url"; import * as wasm from "@lib...
/* eslint-disable camelcase */ import { Lang } from 'choerodon-ui/dataset/locale-context/enum'; import { Locale as DataSetLocale } from 'choerodon-ui/dataset/locale-context/locale'; import zh_CN from './zh_CN'; export interface Locale extends DataSetLocale { lang: Lang; Tabs: { rename: string; default: str...
<reponame>Levertion/mcfunction-language-server /*--------------------------------------------------------- * Originally copied from: * https://github.com/Microsoft/vscode-extension-samples/tree/master/lsp-multi-server-sample * Origin under the MIT license: Copyright (C) Microsoft Corporation. All rights reserved. * Thi...
<reponame>nickmessing/firemodel<gh_stars>0 // tslint:disable:no-implicit-dependencies import { Record } from "../src/Record"; import { DB } from "abstracted-client"; import * as chai from "chai"; const expect = chai.expect; import "reflect-metadata"; import { FireModel } from "../src/FireModel"; import { FancyPerson } ...
import { AfterViewInit, Component, ElementRef, EventEmitter, HostBinding, Input, NgZone, OnChanges, OnDestroy, Output, Renderer2, SimpleChanges, ViewChild } from '@angular/core'; import { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion'; im...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit' import { Hotspot, Reward, Witness } from '@helium/http' import Balance, { CurrencyType, NetworkTokens } from '@helium/currency' import { getHotspotDetails, getHotspotRewards, getHotspotWitnesses, } from '../../utils/appDataClient' import { CacheRe...
import { MathUtil, Rect, Vector2 } from "@oasis-engine/math"; import { RefObject } from "../../asset/RefObject"; import { Engine } from "../../Engine"; import { Texture2D } from "../../texture"; /** * 2D sprite. */ export class Sprite extends RefObject { private static _tempVec2: Vector2 = new Vector2(); /** @i...
<reponame>sasjs/adapter import { Session, Context, SessionVariable } from './types' import { NoSessionStateError } from './types/errors' import { asyncForEach, isUrl } from './utils' import { prefixMessage } from '@sasjs/utils/error' import { RequestClient } from './request/RequestClient' const MAX_SESSION_COUNT = 1 ...
import { CWElement } from './CWElement'; import { isOnClickCallback, isOnDoubleClickCallback, isOnMouseDownCallback, isOnMouseMoveCallback, isOnMouseOutCallback, isOnMouseOverCallback, isOnMouseUpCallback, isOnWheelCallback } from './EventCallbackCheckers'; function resizeCanvasToDisplaySize(canvas) { // Loo...
<filename>packages/preset-built-in/src/plugins/commands/htmlUtils.ts import { IApi, IRoute, webpack, IBundlerConfigType } from '@umijs/types'; import { extname, join } from 'path'; import { existsSync } from 'fs'; import { lodash } from '@umijs/utils'; import assert from 'assert'; interface IGetContentArgs { route: ...
<filename>src/extension.ts import { ChildProcess, exec } from "child_process"; import * as path from "path"; // import { trueCasePathSync } from "true-case-path"; import * as vscode from "vscode"; import StatusBar from "./status-bar"; export function activate(context: vscode.ExtensionContext): void { const extension:...