text
stringlengths
3.08k
15.5k
import { Component, Input, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { AbstractControl, NgForm } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { HttpErrorResponse, HttpResponse } from '@angular/common/http'; import { Observable, Subject } from 'rxjs...
import { BodyShapeDiff } from '../parse-diff'; import { Actual, Expectation } from '../shape-diff-dsl-rust'; import sortBy from 'lodash.sortby'; import { CurrentSpecContext, IDiffDescription, IInteractionPreviewTab, IInterpretation, IPatchChoices, } from '../Interfaces'; import { IShapeTrail } from '@useoptic...
// package: xsuportal.proto.services.admin // file: xsuportal/services/admin/teams.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; import * as xsuportal_resources_team_pb from "../../../xsuportal/resources/team_pb"; import * as xsuportal_resources_contestant_pb from "../../../...
/** * Copyright 2019 Google LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condition...
/* * @Author: <NAME> * @Date: 2018-04-17 06:30:10 * @Last Modified by: mikey.zhaopeng * @Last Modified time: 2019-07-06 12:00:08 */ import * as nls from 'vscode-nls'; const lang = JSON.parse(process.env.VSCODE_NLS_CONFIG || 'null'); nls.config(lang)(); import { workspace, window, ExtensionContext, Disposa...
// @ts-ignore import Card from "antd/lib/card"; import Col from "antd/lib/col"; import Divider from "antd/lib/divider"; import Row from "antd/lib/row"; import Table from "antd/lib/table"; import { get } from "dottie"; // @ts-ignore import * as utils from "iotex-antenna/lib/account/utils"; import isBrowser from "is-brow...
import { Currency, CurrencyAmount, Pair, Percent, Token } from '@tangoswapcash/sdk' import React, { ReactNode, useCallback, useState } from 'react' import { classNames, formatCurrencyAmount } from '../../functions' import Button from '../Button' import { ChevronDownIcon } from '@heroicons/react/outline' import Currenc...
import '../../styles/main.css'; import React, { FunctionComponent } from 'react'; import { FoodPantry } from 'src/utils/types'; import './pantryCard.css'; import MapLinkFromAddress from 'src/helpers/MapLinkFromAddress'; interface Props { pantry: FoodPantry; } const FoodPantryCard: FunctionComponent<Props> = ({ pant...
import {toSet} from './util'; import {Interpolate, Orient, VgMarkConfig} from './vega.schema'; export {Orient} from './vega.schema'; export namespace Mark { export const AREA: 'area' = 'area'; export const BAR: 'bar' = 'bar'; export const LINE: 'line' = 'line'; export const POINT: 'point' = 'point'; export c...
<reponame>hiloteam/Sein.js /** * @File : BasicDefinitionChunk.ts * @Author : dtysky (<EMAIL>) * @Date : 11/20/2018, 11:28:29 PM * @Description: */ import ShaderChunk, {IShaderChunk} from '../../Material/ShaderChunk'; import Hilo3d from '../../Core/Hilo3d'; /** * @hidden */ const defines = [ Hilo3d.Shader....
<gh_stars>1-10 import { detectFramework, log } from "@brimble/utils"; import chalk from "chalk"; import dotenv from "dotenv"; import fs from "fs"; import inquirer from "inquirer"; import isValidDomain from "is-valid-domain"; import path from "path"; import Conf from "configstore"; import { dirValidator, getFiles, ...
import React from 'react'; import { useSelector } from 'react-redux'; import styled from '@emotion/styled'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faChevronDown, faChevronUp, faInfoCircle, } from '@fortawesome/free-solid-svg-icons'; import { selectCurrentGroupPositions } from '...
<gh_stars>0 /*BSD 3-Clause License Copyright (c) 2020, Blockception Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
<filename>src/utils/date/NCDate.ts import { NCDating, NCDatingClassName } from "./NCDating"; import { Inject } from "../../di/Inject"; import {ENCTimezone} from "./enum/ENCTimezone"; export enum NCDateUnit { millisecond = "millisecond", second = "second", minute = "minute", hour = "hour", day = "day", mont...
import { Dom7, Dom7Array } from 'dom7'; import { Router } from '../../modules/router/router'; import { DeviceParams, Device } from '../../shared/get-device'; import { Support } from '../../shared/get-support'; import { Request } from '../../shared/request'; import { Utils } from '../../shared/utils'; import { Component...
import CannonWorker, { BodyType } from '../../../lib'; import { useEffect } from '@storybook/client-api'; import { AdditiveBlending, AmbientLight, BoxGeometry, BufferGeometry, DirectionalLight, Float32BufferAttribute, Group, LineBasicMaterial, LineSegments, Mesh, MeshBasicMaterial, MeshLambertMa...
import { SerializerError, SerializerErrorType } from '../errors' import { MainProtocolSymbols, ProtocolSymbols } from '../utils/ProtocolSymbols' import { IACMessageType } from './interfaces' import { AccountShareResponse } from './schemas/definitions/account-share-response' import { MessageSignRequest } from './schema...
 class Utils { static round(value: number, accuracy: number): number { var multilpier = Math.pow(10, accuracy); return Math.round(value * multilpier) / multilpier; } static getTime(): string { var time = new Date(); return this.dateTimeToIso(time); } static number...
<reponame>farazul/smart-home-local<filename>app/app.ts<gh_stars>0 /** * Copyright 2019, Google, 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/LICE...
import React, { useMemo } from 'react'; import styled from '@emotion/styled'; import { css } from '@emotion/react'; import { useSelector } from 'react-redux'; import { Form, FormikProvider, useFormik } from 'formik'; import { selectModalOptions } from 'store/selectors'; import { dispatch } from 'store/rematch'; import ...
<gh_stars>1-10 import { Settings } from "../types/state" import { LetterData } from "../types/alphabets" import { Sentence } from "../classes/Sentence" import { Word } from "../classes/Word" import { Letter } from "../classes/Letter" import { getLetters } from "../functions/alphabets" let ID_COUNTER = 0 /** * Takes ...
<reponame>Abielec/InternetNotepad /** * RowDialog.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ import { Fun } from '@ephox/katamari'; import Tools from 'tinymce/co...
export {} import React, { useEffect, useState } from 'react' import FocusLock from 'react-focus-lock' import ModalInterface from '../../interfaces/ModalInterface' function CloseX({ toggle, omitCloseX, color }: { toggle: () => void; omitCloseX: boolean | undefined; color: string | undefined }) { if (omitCloseX) { ...
import type { EncryptedFS } from 'encryptedfs'; import type { VaultId, VaultKey, VaultList, VaultName, FileSystemReadable, VaultIdPretty, } from './types'; import type { FileSystem } from '../types'; import type { NodeId } from '../nodes/types'; import fs from 'fs'; import path from 'path'; import { IdRand...
<reponame>GuerfiHamza/guerfihamza import { isEqual, isNumber, isFunction } from '@antv/util'; import * as d3Timer from 'd3-timer'; import * as d3Ease from 'd3-ease'; import { interpolate, interpolateArray } from 'd3-interpolate'; // 目前整体动画只需要数值和数组的差值计算 import * as PathUtil from '../util/path'; import { isColorProp, isG...
import { useNuxtApp } from '#app' import { getCurrentInstance, computed } from '@vue/composition-api' import VueRouter from 'vue-router3' import { assign, isString, isSymbol } from '@intlify/shared' // eslint-disable-next-line @typescript-eslint/ban-ts-comment // TODO: // @ts-ignore: resolved with tsconfig import { nux...
<gh_stars>1-10 // Copyright (c) 2020 <NAME> (<EMAIL>). // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the Software without ...
<filename>src/transaction.ts<gh_stars>1-10 import { OperationOptions } from "retry"; import promiseRetry from 'promise-retry'; import config from '../config/index'; import Logger from "../utils/logger/index"; import { ErrorRetryHandler, IOptions } from '../utils/types/options.interface'; import { ID, ITrans...
import dayjs from 'dayjs' import utc from 'dayjs/plugin/utc' import isIp from 'is-ip' import WebSocket from 'ws' import { IResourcesRoute, IResourcesState, ResourcesState } from '@core/database/entities' import { hasDuplicates, removeDuplicates } from '@core/helpers' dayjs.extend(utc) interface SimplifiedResourcesSt...
<filename>src/execute/functions/filter.tsx import { AppState } from '../../classes/state' import { TerminalMessage as TM } from '../../classes/terminal' import { SyntaxElementEnum as SE } from '../../classes/syntax' import { DataCategory, Tag } from '../../classes/dataCategory' import { FilterParameterSpecial, FilterPa...
<reponame>adai183/MakerJS_custom<filename>playground/worker/export-worker.ts<gh_stars>0  //this is here for compilation in a web worker interface CanvasRenderingContext2D { } declare var PDFDocument: PDFKit.PDFDocument; /* module system */ var module = this as NodeModule; module.require = (id: string): any => { ...
<filename>src/main/resources/site/parts/nameSearch/nameSearch.ts import { Response, Request } from 'enonic-types/controller' import { Component } from 'enonic-types/portal' import { renderError } from '../../../lib/ssb/error/error' import { React4xp, React4xpResponse } from '../../../lib/types/react4xp' import { GA_TRA...
<reponame>FactorioAntigrief/fagc-community-bot import { EmbedField } from "discord.js" import { Command } from "../../base/Command" import { createPagedEmbed } from "../../utils/functions" import validator from "validator" import { AuthError } from "fagc-api-wrapper" const CreateReport: Command = { name: "createrepor...
<reponame>BoundlessCode/packman<gh_stars>1-10 import semver from 'semver'; import util from 'util'; import { URL } from 'url'; import Predicate from '../../core/Predicate'; import { Logger, LoggerOptions } from '../../core/logger'; import { Fetcher } from '../../core/fetcher'; import { TimeoutOption } from '../../core...
import React, { ReactElement, useCallback, useEffect, useState } from 'react' import Time from '../../atoms/Time' import Table from '../../atoms/Table' import AssetTitle from '../AssetListTitle' import { useUserPreferences } from '../../../providers/UserPreferences' import { gql } from 'urql' import { TransactionHistor...
<gh_stars>0 import { getAttrName, getAttrValue, DynamoDbValue } from './helpers'; type ParseAttributeTypeValue = (exp: string) => string; export const parseAttributeTypeValue: ParseAttributeTypeValue = (exp) => { const [, v] = /^attribute_type\s*\(([^)]+)/i.exec(exp) || []; return v.trim(); }; type ParseBeginsWit...
<filename>papiea-engine/src/main.ts import * as express from "express"; import { logLevelFromString, LoggerFactory, getTracer, getTracingMiddleware } from "papiea-backend-utils" import createAPIDocsRouter from "./api_docs/api_docs_routes"; import ApiDocsGenerator from "./api_docs/api_docs_generator"; ...
<gh_stars>0 import Infura from "./infura"; import Vulcanize from "./vulcanize"; import StorageAdapter from "../storage-adapter"; import { TextDecoder } from "util"; const io = require("socket.io")(3002, { cors: {origins: ["*"] } }); const fs = require("fs"); const rimraf = require("rimraf"); const IPFS = require('ipfs-...
<reponame>reclarey/denohost-test // Copyright (C) 2020 <NAME>. All rights reserved. MIT license. import { createHash } from "https://deno.land/std@0.90.0/hash/mod.ts"; import { bencode } from "../bencode.ts"; import { MultiFileFields } from "../metainfo.ts"; import { readN, spreadUint8Array } from "../_bytes.ts"; le...
<reponame>Bhaskers-Blu-Org1/projections /** * Performs a Procrustes analysis and transforms an input set of points A to optimally match a reference * set of points B under pairwise Euclidean distances. * * @author <NAME>, IBM Research * @version 06/18/2018 */ export class Procrustes { private static toPoint2D =...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Diagnostics, DiagnosticSuppressions, DiagnosticAdvice, } from '@romejs/diagnostics'; import {TransformRequest, Lint...
import { BSDataTableColDefinition, BSDataTableHttpClientOptions, BSDataTablePagingMetaData, BSFetchRecordEvent, BSSelectorOptions } from '../../src/commonTypes/common-types'; import { appDataEvents, dataEventsService } from '../../src/services'; import { BSDataTableSelector, BSDataTableHttpClient } from ...
import * as inquirer from "inquirer"; import axiosRestyped from "restyped-axios"; import * as _ from "lodash"; import * as luxon from "luxon"; import chalk from "chalk"; import { NhlStatsApi, NhlStatsApiBaseUrl, EpgTitle, Game, MEDIA_STATE, Team, GAME_DETAILED_STATE } from "./nhlStatsApi"; import { Confi...
<filename>packages/client-wasm/src/index.ts<gh_stars>10-100 // Copyright 2017-2019 @polkadot/client-wasm 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 { Config } from '@polkadot/client/types'; import { Bloc...
import Koa, { ParameterizedContext, Next } from "koa"; import Router from "koa-router"; import KoaBody from "koa-body"; // handlers import { get_handler as admin_index_get, post_handler as admin_index_post } from "./routes/index"; import { get_handler as dashboard_get, } from "./routes/dashboard"; import { get_handler...
import { CloseCircleFilled } from '@ant-design/icons'; import { useMachine } from '@xstate/react'; import { Button, Select, Spin } from 'antd'; import ROUTES from 'constants/routes'; import history from 'lib/history'; import { convertMetricKeyToTrace } from 'lib/resourceAttributes'; import { map } from 'lodash-es'; imp...
import tape from 'tape' import { Address, BN, MAX_INTEGER } from 'ethereumjs-util' import Common from '@ethereumjs/common' import { Transaction } from '@ethereumjs/tx' import VM from '../../lib' import { DefaultStateManager } from '../../lib/state' import runTx from '../../lib/runTx' import { createAccount } from './ut...
import { AlphaColor, Color } from 'memo-draw-engine'; import React, { ChangeEvent, useContext, useEffect, useState } from 'react'; import { customShapesInfo, EngineContext } from './EngineContext'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; export const colors: Array<Color> = [ // black new C...
import { Button, Flex, FormControl, FormErrorMessage, FormHelperText, FormLabel, NumberDecrementStepper, NumberIncrementStepper, NumberInput, NumberInputField, NumberInputStepper, Select, Textarea, } from "@chakra-ui/react"; import { zodResolver } from "@hookform/resolvers/zod"; import { t, Tr...
import { Component } from '@angular/core'; import { AlertController, LoadingController, NavController, Platform } from '@ionic/angular'; import { Geolocation, Plugins } from '@capacitor/core'; import { Config } from '../config'; import { WeatherService } from '../services/weather.service'; import { LocationConfig, Loc...
<reponame>ElecTreeFrying/dark-messenger<gh_stars>1-10 import { Component, OnInit, Inject, ViewChild } from '@angular/core'; import { FormGroup, FormBuilder, Validators, AbstractControl, ValidationErrors } from '@angular/forms'; import { MatDialog, MatDialogRef, MatExpansionPanel } from '@angular/material'; import { Obs...
<reponame>gliese1337/chacha-cipher<gh_stars>0 function QUARTERROUND(x: Uint32Array, a: number, b: number, c: number, d: number) { let t: number; let xa: number; let xb: number; let xc: number; let xd: number; xb = x[b]; t = x[d] ^ (xa = x[a] + xb); xd = t << 16 | t >>> 16; t = xb ^ (xc = x[c] + xd)...
/** * moment-date-time-adapter.class */ import { Inject, Injectable, Optional } from '@angular/core'; // import { DateTimeAdapter, OWL_DATE_TIME_LOCALE } from 'ng-pick-datetime'; import * as _moment from 'moment/moment'; import { Moment } from 'moment/moment'; import { DateTimeAdapter, OWL_DATE_TIME_LOCALE } from '....
<gh_stars>0 import { google, docs_v1 } from "googleapis"; import { join } from "path"; import { config } from "dotenv"; import { promises as fs } from "fs"; config(); const oauth2Client = new google.auth.OAuth2( process.env.GOOGLE_DOCS_CLIENT_ID, process.env.GOOGLE_DOCS_CLIENT_SECRET, "https://developers.google....
<reponame>Wrath239/core // TODO: Add language codes with long format `lang-sublang` // Unsupported: ["bn-BD","bs-Latn","yue","otq","zh-Hant","zh-Hans","tlh","sr-Cyrl","sr-Latn","fil","mww","yua","mhr","pap","ceb","mrj","udm"] // Valid ISO 639-2 codes // eslint-disable // prettier-ignore export const langCodes = <const...
import React from 'react'; import { defineMessages, FormattedMessage } from 'react-intl'; import { Link, NavLink } from 'react-router-dom'; import { appData } from 'appData'; import { Spinner } from 'components/Spinner'; import { useCurrentUser } from 'data/useCurrentUser'; import { getUserFullname } from 'utils/user'...
import { Icon, QuestionOutlineIcon } from '@chakra-ui/icons'; import { Box, Container, Flex, Grid, Heading, HStack, IconButton, Skeleton, Spinner, Text, Tooltip, useColorMode, } from '@chakra-ui/react'; import dynamic from 'next/dynamic'; import Head from 'next/head'; import { SkipBack } from 'p...
<reponame>NewPointe/NP-Kiosk-iOS<filename>NPKiosk/Resources/GetUserMediaShim.ts type JsonPrimitive = string | number | boolean | null; type JsonValue = JsonPrimitive | JsonArray | JsonObject; type JsonArray = Array<JsonValue>; type JsonObject = { [key: string]: JsonValue }; interface RpcNotification { jsonrpc: "2...
<filename>lib/filters/BevelFilter.ts import { BitmapFilter, InterfaceOf } from './BitmapFilter'; import { assert, release, NumberUtilities } from '@awayfl/swf-loader'; import { BitmapFilterType } from './BitmapFilterType'; import { axCoerceString, Errors } from '@awayfl/avm2'; import { IFilter } from '@awayjs/scene'; i...
/* * 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 * "License"); you ...
import test from "ava"; import { assertTypeFn, DateString, DateTimeStrict, DateTimeString, EmailString, HostnameString, UnsafeInt, Int, Ipv4String, Ipv6String, SocialSecurityNumberNonHyphenatedString, SocialSecurityNumberOptionalHyphenatedString, SocialSecurityNumberString, TimeString, Yea...
<filename>src/utils/utils.ts import querystring, { parse } from 'querystring'; import pathRegexp from 'path-to-regexp'; import { Route } from '@/models/connect'; import React, { useEffect, useState } from 'react' import storage from '@/utils/storage' import { Menu, Icon, Card } from 'antd'; const { SubMenu } = Menu; ...
import { Params, RouterStateSnapshot, UrlSegment } from '@angular/router'; import * as router from '@ngrx/router-store'; import { set, get, pipe, map } from 'lodash/fp'; import * as credentials from './pages/+compliance/+credentials/credentials.state'; import * as scanner from './pages/+compliance/+scanner/state/scanne...
/* * Copyright 2021 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
<reponame>pottio/ioBroker.warp export type WarpApiParameterType = 'enum' | 'number' | 'bool' | 'list' | 'button' | 'json' | 'text'; export type WarpApiActionType = 'update-value' | 'update-config' | 'send-command' | 'send-json'; export type WarpApiButtonType = 'normal' | 'start' | 'stop'; export abstract class WarpPro...
<reponame>feirm/app import { store } from "@/store"; import { ModeOfOperation, padding, utils } from "aes-js"; import { ArgonType, hash } from "argon2-browser"; import bufferToHex from "./bufferToHex"; import hexStringToBytes from "./hexStringToBytes"; import { Coin, Wallet } from "./wallet"; async function decryptWal...
<gh_stars>0 import { TemplateResult, html } from 'lit-html'; import { ConfigurableMixin } from '../../../mixins/configurable'; import { NucleonElement } from '../NucleonElement/NucleonElement'; import { PropertyDeclarations } from 'lit-element'; import { Rels } from '@foxy.io/sdk/backend'; import { Resource } from '@f...
<gh_stars>0 import { Operator } from './operators' import { Interval } from 'dataStructures/interval' import { isNil, mergeAll, reject, uniq } from 'ramda'; /** * FilterConfig :: * Describes the JSON representation of the filter configuration used as a base to create filtering functions * Example: * [ // FilterCon...
import { format, utcToZonedTime } from "date-fns-tz" import { QueryBuilder, SQL } from "graphile-build-pg" import { AugmentedGraphQLFieldResolver, embed, gql, makeExtendSchemaPlugin, } from "graphile-utils" // graphile-utils doesn't export this yet import { GraphQLResolveInfo } from "graphql" import { OurGraph...
<reponame>cyberalien/vue-component-test import type { VNode } from 'vue'; import { h } from 'vue'; import type { IconifyIcon } from '@iconify/types'; import type { FullIconCustomisations } from '@iconify/core/lib/customisations'; import { defaults } from '@iconify/core/lib/customisations'; import { flipFromString, al...
// Dependencies import { sign } from '../helpers/jwt' import { prop, Typegoose, instanceMethod, arrayProp, Ref, InstanceType, } from 'typegoose' import { omit } from 'lodash' import { tickers } from '../helpers/bitfinex' import { Order, OrderSide } from './order' import { isCrypto } from '../helpers/isCrypt...
<reponame>jacekk/instructure-ui /* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, inc...
import { Client, Message, GuildMember, User, MessageReaction, Guild, TextChannel, Channel, Emoji, RichEmbed } from "discord.js"; import * as moment from 'moment'; import { data } from './config'; import { Cmd } from "./cmd"; export enum Color { red = '0xFB2828', yellow = '0xFFFF00', green = '0x93C54B', ...
import { Component, EventEmitter, OnInit, Output } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import BigNumber from 'bignumber.js'; import { ChooseWalletDlgComponent } from 'app-lib'; import { InstallWalletDlgComponent } from 'app-lib'; import { ProxyService } from 'app-lib'; export en...
import "draft-js/dist/Draft.css"; import { ContentState, convertFromRaw, convertToRaw, DraftEditorCommand, DraftHandleValue, Editor as DraftJsEditor, EditorState, getDefaultKeyBinding, RichUtils, } from "draft-js"; import createListPlugin from "draft-js-list-plugin"; import PluginEditor from "draft-js-plugins...
import {MessageEmbed, TextChannel, Message, Collection} from "discord.js"; import {error_red, log_yellow} from "../config"; import {getSetting} from ".."; import SwissClient from "../SwissClient"; import {convertMs} from "../utils"; import {Client as PgClient} from "pg"; export let name = "commandHandler"; export let ...
import { createEntityAdapter, createSelector, createSlice, nanoid, PayloadAction, } from "@reduxjs/toolkit"; import isEmptyTextLine from "../util/isEmptyTextLine"; import { evaluateLineGroupIndicator, LineGroupIndicator, } from "../util/lineGroups"; import { simpleSetFromArr } from "../util/simpleSet"; im...
<gh_stars>0 import gl from 'gl'; import ffmpeg from 'fluent-ffmpeg'; import * as THREE from 'three'; import { FakeCanvas } from './util/canvas'; import { PassThrough } from 'stream'; import { promises } from 'fs'; import { v4 as uuidv4 } from 'uuid'; import type { Font } from 'opentype.js'; import { getFont, textToShap...
import {Changeset} from './setupHandlebars' import { createTemplate, fetchTemplates, updateTemplate, createTemplateVersion, Template, deleteTemplate, deleteTemplateVersion } from './sendgrid' const getTemplateVersionNames = (template: Template) => { return template.versions.map(v => v.name).sort((a, b)...
<filename>src/commands/git/show.ts import { Container } from '../../container'; import { GitCommit, GitRevisionReference, GitStashCommit, Repository } from '../../git/models'; import { CommitFilesQuickPickItem } from '../../quickpicks/items/commits'; import { CommandQuickPickItem } from '../../quickpicks/items/common';...
<reponame>traceypooh/deno_std import { Status as STATUS_CODES } from "../http/http_status.ts"; import { Buffer } from "./buffer.ts"; import { EventEmitter } from "./events.js"; import NodeReadable from "./_stream/readable.ts"; import NodeWritable from "./_stream/writable.ts"; const METHODS = [ "ACL", "BIND", "CH...
<filename>packages/feflow-cli/src/core/resident/updateBeat.ts /* eslint-disable @typescript-eslint/camelcase */ import fs from 'fs'; import path from 'path'; import semver from 'semver'; import osenv from 'osenv'; import spawn from 'cross-spawn'; import _ from 'lodash'; import LockFileInstance from '../../shared/lockFi...
import { trackEvent } from './GoogleAnalytics'; class Event { name: string; ts: DOMHighResTimeStamp; constructor(name: string, mark: PerformanceEntry) { this.name = name; this.ts = mark.startTime; } } interface GALogEvent { timingVariable: string; timingLabel?: string; } interface GAConfig { logEvents: GA...
import AttrsByTag from './attributes'; type Tag = keyof AttrsByTag; type Attrs = AttrsByTag[Tag]; type AttrValue = Attrs[keyof Attrs]; type Children = null | string | AnyElement | Array<Children>; export interface Element<T extends Tag> { tag: T; attrs: AttrsByTag[T]; children: Children; }; type AnyEleme...
import { Browser } from "puppeteer"; import readline from "readline"; import { Downloader } from "japscandl"; import commands from "./utils/commands"; import { CLICommand, ComponentFlags, MangaAttributes } from "./utils/types"; /** * Interface implementation for downloader */ class CLInterface extends Downloader { ...
export * from "./bags" export * from "./election_score_stats" import { ApiPromise } from "@polkadot/api"; import BN from 'bn.js'; import { AccountId32} from '@polkadot/types/interfaces'; import { PalletStakingIndividualExposure } from '@polkadot/types/lookup' import "@polkadot/api-augment" export async function nomin...
import * as Utils from "./utils" import { Token, TokenSet, AliasToken, ValueToken } from "./types" /// Resolves all of the aliases in an entire Style Dictionary properties object, and then returns the same object /// instance, modified. export const resolveAliases = (properties: TokenSet): TokenSet => { // Okay, buck...
<reponame>YiJiangFengYun/moonstar_core import * as common from "../common"; import * as particleMod from "../particle"; import * as psDataMod from "../ps_data"; import { EmitterPlayerInfo } from "./info"; import * as events from "./events"; const DEFAULT_MAX_PARTICLE_COUNT = 100; export class EmitterPlayer extends co...
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * 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 app...
import { Account } from '@mutadev/account'; import { getSdk } from '@mutadev/client-raw'; import { invariant } from '@mutadev/shared'; import { Block, Hash, Maybe, Receipt, ServiceResponse, SignedTransaction, Transaction, Uint64, } from '@mutadev/types'; import { hexToNum, isSignedTransaction, ran...
import Head from "next/head"; import Layout from "../../components/Layout"; import styled from "styled-components"; import Link from "next/link"; import { useRouter, withRouter } from "next/router"; import { useEffect, useState } from "react"; const MainContent = styled.div` display: flex; justify-content: center;...
import jss from './Jss' import {toHexByte, toHexWord} from "z80-base"; import {Highlightable} from "./Highlighter"; import {CanvasScreen} from "trs80-emulator-web"; import {disasmForTrs80Program} from "trs80-disasm"; import {SystemProgram, TRS80_SCREEN_BEGIN, TRS80_SCREEN_END} from "trs80-base"; import {ProgramAnnotati...
import { action, IObservableArray, observable, reaction, runInAction } from 'mobx'; import ErrorContainer from './ErrorContainer'; import { CasperService, encodeBase16 } from 'casperlabs-sdk'; import { BlockInfo, Event } from 'casperlabs-grpc/io/casperlabs/casper/consensus/info_pb'; import { ToggleStore } from '../com...
<gh_stars>0 /** * Spreadsheet default sample */ import { Spreadsheet, SheetModel, ColumnModel, CellSaveEventArgs, CellRenderEventArgs, CellEditEventArgs, getRangeIndexes } from '../../../../src/index'; import { enableRipple } from '@syncfusion/ej2-base'; import { switchTheme } from '../../../common/switch-theme'; imp...
import Entity from "game/entity/Entity"; import { Stat } from "game/entity/IStats"; import terrainDescriptions from "game/tile/Terrains"; import TileHelpers from "utilities/game/TileHelpers"; import { IVector3 } from "utilities/math/IVector"; import Vector2 from "utilities/math/Vector2"; import Context from "../../Cont...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as React from 'react'; import { useState } from 'react'; import styled from 'styled-components'; import { SentenceBatch } from '../../../types/sentences'; import FileBrowser from '../../admin/sentences/file-browser'; import * as adminApi from '../../../services/admin-api'; import { Vote, VoteBatchFile } from '...
<gh_stars>1-10 import * as Models from './models' import * as Mappers from './models/mappers' import { CodacyAPI } from './codacyAPI' import { CodacyAPIContext } from './codacyAPIContext' import { HttpOperationResponse, BaseRequestPolicy, RequestPolicy, RequestPolicyOptions, WebResource, RequestPolicyFactor...
import React, { ChangeEvent, FC, useContext, useEffect, useState } from 'react' import { ProfileContractContext } from '../../../contexts/ProfileContract' import { DocumentContractContext } from '../../../contexts/DocumentContract' import { DocumentContractAPIContext } from '../../../contexts/DocumentContractAPI' impor...
import { derived, get, writable, Writable } from 'svelte/store' import { Account } from '@iota/account' import { CDAParams, CDA } from '@iota/cda' import { cda, formatValue, persistent, getRandomNode, isDevnet } from '~/lib/helpers' import API from '~/lib/api' /** * Current active CDA address */ export const addres...