text
stringlengths
3.3k
33k
<reponame>benwerner01/provviz import { NodeVariant, PROVJSONBundle, AttributeValue, PROVJSONDocument, NODE_VARIANTS, } from './definition/document'; import { RelationVariant, RELATIONS, RELATION_VARIANTS, } from './definition/relation'; import { PROVAttributeDefinition } from './definition/attribute'; ...
import InvocationPlugin from '../plugins/Invocation'; import TracePlugin from '../plugins/Trace'; import LogPlugin from '../plugins/Log'; import ExecutionContextManager from '../context/ExecutionContextManager'; import Reporter from '../Reporter'; import ThundraLogger from '../ThundraLogger'; import PluginContext from ...
<reponame>dennisarslan/rif-marketplace-cache import abiDecoder, { DecodedData } from 'abi-decoder' import config from 'config' import { Eth } from 'web3-eth' import { EventData } from 'web3-eth-contract' import Utils from 'web3-utils' import { RnsBaseService, RnsServices } from '.' import { getBlockDate } from '../../b...
<gh_stars>1-10 /** * jsonRepresentation.ts * Copyright(c) 2021 <NAME> <<EMAIL>> * MIT Licensed * * Exposes the JSONRepresentation class that adds some useful functionality for JSON resource representations * * todo: Woah buddy, this thing has some crazy generics going on. I'm sure it can be improved. */ import...
<filename>packages/dendriform/src/Nodes.ts import {BASIC, OBJECT, ARRAY, MAP, SET, getType, has, get, set, entries, create, applyPatches} from 'dendriform-immer-patch-optimiser'; import type {Path, DendriformPatch} from 'dendriform-immer-patch-optimiser'; import {produceWithPatches} from 'immer'; export type NodeCommo...
/* eslint-disable prefer-const */ // @ts-nocheck export const capitalize = (s) => { if (typeof s !== "string") return "" return s.charAt(0).toUpperCase() + s.slice(1) } const guideOn = false export const sizeBg = guideOn ? "#c4deb7" : "transparent" export const guideBg = guideOn ? "#b2b2b2" : "transparent" export...
import React, { createRef, useEffect, useState } from "react"; import { useSelector } from "react-redux"; import { makeStyles } from "@material-ui/core/styles"; import Dialog from "@material-ui/core/Dialog"; import DialogTitle from "@material-ui/core/DialogTitle"; import Typography from "@material-ui/core/Typography"; ...
import { Xml } from "../utils/xml"; import { Fonts } from "../utils/fonts"; import { Metrics } from "../utils/metrics"; import { Style } from "./style"; import { NamedStyles } from "./named-styles"; export enum UnderlineMode { None, Dash, DashDotDotHeavy, DashDotHeavy, DashedHeavy, DashLong, ...
<reponame>ryanolf/node-sonos-ts /** * Sonos DevicePropertiesService * * <NAME> * https://svrooij.io * * This file is generated, do not edit manually. https://svrooij.io/sonos-api-docs */ import BaseService from './base-service'; import { SonosUpnpError } from '../models/sonos-upnp-error'; import SonosUpnpErrors ...
import { CharacterData } from 'pipeline' import { input, target } from '../../../Formula' import { constant, equal, greaterEq, infoMut, percent, prod, subscript } from '../../../Formula/utils' import { CharacterKey } from '../../../Types/consts' import { cond, trans } from '../../SheetUtil' import CharacterSheet, { ICh...
import React, { useState, useEffect, useCallback } from 'react' import cn from 'classnames' import dayjs from 'dayjs' import { PDFDownloadLink, PDFViewer } from '@react-pdf/renderer' import shallow from 'zustand/shallow' import { useCurrencyName } from 'common/hooks/appInfo' import { NextButton } from './Buttons' impo...
<reponame>ChorusOne/anthem<filename>packages/client/src/modules/transaction/epics.ts import { assertUnreachable, wait } from "@anthem/utils"; import { EpicSignature } from "modules/root"; import { i18nSelector } from "modules/settings/selectors"; import { combineEpics } from "redux-observable"; import { filter, ignoreE...
import { constants, access, readFile, writeFile } from 'fs'; import { decode as utf8decode } from 'utf8'; import { resolve } from 'path'; import { exec } from 'child_process'; import { parse as plistParse } from 'fast-plist'; import { decode } from 'quoted-printable'; import { map as asyncMap, waterfall, map } from 'a...
import random from "canvas-sketch-util/random"; import JSZip from "jszip"; import { setMaxDistance, eDistance } from "./constants"; import { debug, toggleDebug } from "./debug"; import { CanvasJpFrameDefinition, CanvasJpDrawable, CanvasJpStrokeStyle, draw, } from "./draw"; import { Pane } from "tweakpane"; typ...
<reponame>bollwyvl/irobotframework /* Copyright (c) 2018 Georgia Tech Research Corporation Distributed under the terms of the BSD-3-Clause License */ /* An implementation of syntax highlighting for robot framework 3.1. http://robotframework.org/robotframework/3.1/RobotFrameworkUserGuide.html When necessary...
import React, { useState } from "react"; import styled, { ThemeProps } from "styled-components"; import { Formik, Form, Field, FormikErrors } from "formik"; import axios from "axios"; import AnimatedSubmitButton from "./AnimatedSubmitButton"; import { Status } from "../utils/types"; const FormWrapper = styled.div` m...
export function hasWindow(): boolean { return typeof window !== "undefined"; } export const tooltipSingularInnerHtml = `<div class="singular edit-button"> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 1...
import { GlobalData } from "@Root/GlobalData/GlobalData"; import { Data } from "../Data/Data"; import { PesudoCompnentStack, ShiyiPageBase } from "../ShiyiPage/Base/ShiyiPageBase"; import { Task } from "../Task/Task"; import { DataChangeOption } from "../UI/Model/DataChangeModel/DataChangeModel"; import { IuiOption } f...
<filename>src/utils.ts import { Quadrant } from "./ui"; import { Breakpoints } from "."; import { Query } from "./persistence"; export function guid(): string { function s4(): string { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s...
<gh_stars>0 import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Directive, ElementRef, EventEmitter, Input, NgZone, OnDestroy, Output, ViewEncapsulation } from '@angular/core'; import {Subscription, fromEvent} from 'rxjs'; import {filter} from 'rxjs/ope...
// import * as bigquery from '@google-cloud/bigquery' import * as admin from 'firebase-admin' // import md5 from 'md5' import fetch from 'node-fetch' // Location // const REGION = 'asia-northeast1' // JP (There's no SG for cloud function) // Admin service account key const serviceAccount = require('../../.credential....
import { View, IGroup, IShape, MarkerSymbols } from '../dependents'; import { deepMix, isMatch, isString, isArray, each, find } from '@antv/util'; import { MappingDatum, GAnimateCfg } from '@antv/g2/lib/interface'; import { DEFAULT_ANIMATE_CFG } from '@antv/g2/lib/animate'; import { Event } from '@antv/g2/lib/dependent...
import qs from 'querystring'; import type { Request, Response, SuperAgentStatic } from 'superagent'; import superagent from 'superagent'; import db from './db'; import Limiter from './Limiter'; import { systemLog } from './log'; if ( process.env.OSU_CLIENT_ID == null || process.env.OSU_CLIENT_REDIRECT == null || ...
import { autoStartCommandIfNeeded, Command, CommandError, } from "@kachkaev/commands"; import tilebelt from "@mapbox/tilebelt"; import * as turf from "@turf/turf"; import chalk from "chalk"; import fs from "fs-extra"; import path from "path"; import sortKeys from "sort-keys"; import { deepClean } from "../../sha...
<filename>src/api/database/households.ts<gh_stars>1-10 import { PoolClient } from 'pg' import { HOUSEHOLD_ROLE_TYPE } from 'shared/constants' import { HouseholdChangedRole, HouseholdNewInvitation } from 'api/actions/settings/types' import { HouseholdCreationError } from 'api/helpers/errors' import { database } from '...
import React, { useState } from 'react'; import styles from './index.scss'; import Header from '~components/Header'; import { RouteComponentProps, withRouter } from 'react-router'; import { useHistory } from 'react-router-dom'; import clsx from 'clsx'; import Swiper from 'react-id-swiper'; import { selectAssetsICPByAd...
import LiteEvent from "./event"; // This can (and should) be called very early in the setup process, before any of the setup calls that use // these events. export function SetupNarrationEvents(): void { PageDurationAvailable = new LiteEvent<HTMLElement>(); PageNarrationComplete = new LiteEvent<HTMLElement>();...
<reponame>buffaloo/sparkswap-desktop<gh_stars>10-100 import { promisify } from 'util' import bitcoin from 'btcnodejs' import { LndActionOptions, Payment, PaymentStatus, ChainTransaction } from '../types/lnd-engine/client' import { Invoice, InvoiceState } from '../types/lnd-engine/client/invoices' import { getInvoices }...
<filename>src/database.ts import { DB } from 'https://deno.land/x/sqlite@v2.4.2/mod.ts'; import { AccessRecord, checkAccessRecord, checkDomainRecord, DomainRecord, isAccessRecordBeta1, isDomainRecordBeta1 } from './model.ts'; const VERSION = 4; export class Database { private readonly _db: DB; constructor(pa...
<reponame>open-mmlab/labelbee-client /** * 数据转换 */ import { EToolName } from '@/constant/store'; import { IFileInfo, IStepInfo } from '@/store'; import { getBaseName, jsonParser } from './tool/common'; import { DrawUtils } from '@labelbee/lb-annotation'; import ColorCheatSheet from '@/assets/color.json'; // 获取 col...
import React, { Fragment, SyntheticEvent } from 'react' import { connect } from 'react-redux' import { Dispatch } from 'redux' import styled from 'styled-components' import { addToHunt, removeFromHunt } from '../actions' import { killSurvivor, removeSurvivor, reviveSurvivor, updateSurvivorName } from '../actions/surviv...
import { InteractionEvent, InteractionManager, Point } from "pixi.js"; class KeyCode { static BACKSPACE = 8; static TAB = 9; static ENTER = 13; static SHIFT = 16; static CTRL = 17; static ALT = 18; static PAUSE = 19; static CAPSLOCK = 20; static ESCAPE = 27; static SPACE = 32; ...
import React from 'react'; import { IFormattedEntityTechnology } from '../Entity'; import { ASSESS, DEPRECATED, EXCEL, REINFORCE } from '../Technology/Technology.constants'; import { IRadarColor } from './Radar.d'; import logo from './img/axa_logo_solid_mono_black_rgb.svg'; import './Radar.scss'; const compareToGrou...
<filename>server/src/visual-crossing-forecast.ts // noinspection SpellCheckingInspection /* cspell:disable */ import { purgeCache, requestJson } from './request-cache'; import { Request } from 'express'; import { Alert, CommonConditions, CommonConditionsKeys, CurrentConditions, CurrentConditionsKeys, DailyConditions,...
import m3u8stream from 'm3u8stream'; import { errors, request } from 'undici'; import { PassThrough, Readable } from 'node:stream'; import { FormatError } from './Errors'; import { download } from '../functions/download'; import { YoutubeConfig } from '../util/config'; import { decipher } from '../util/decipher'; impor...
<reponame>moonshiner-agency/mesh-ui<filename>src/app/form-generator/components/form-generator/form-generator.component.spec.ts import { CommonModule } from '@angular/common'; import { NgModule, Type } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } ...
import { Optional } from 'utility-types'; import { Entity, Pn, EntityProperty, Schema } from "@domain/metadata/entity"; import { parseDataObjId, DataObj, entityNameFromDataObjId } from './data_obj'; import { DefaultPageLookAndThemeApp } from '@domain/url-utils'; import { PickOmit } from '@domain/ts-utils'; import { Key...
import { EventsUtils } from './../utils/events.utils.js'; import { IdsUtils } from './../utils/ids.utils.js'; import { VariablesUtils } from '../utils/variables.utils.js'; import { NodeModel } from "../models/nodes/node.model.js"; import { BaseFunctions } from '../base-classes/base-functions.js'; export class LocalNod...
<reponame>gkn1234/vite-mono-builder /* * @Autor: <NAME> * @Date: 2021-08-07 21:28:53 * @LastEditors: <NAME> * @LastEditTime: 2021-08-12 23:41:04 * @Description: 库模式的通用打包操作 */ import path from 'path' import fs from 'fs' import { FreeObject } from 'common-types' import { Package } from '@lerna/package' import { d...
<gh_stars>1-10 /** * @author <NAME> * @author <NAME> * @author <NAME> */ import { BackSide, Mesh, MeshBasicMaterial, PerspectiveCamera, Vector3 } from "three"; import { ResonanceAudio } from "resonance-audio"; import Serializable, { SerializedData } from "../data/Serializable"; import { ProjectData, Audio...
const {max} = Math; const lsame_ = (str: string, c: string): boolean => str.startsWith(c); export const sgemm = (transa: string, transb: string, m: number, n: number, k: number, alpha: number, a: Float32Array, lda: number, b: Float32Array, ldb: number, beta: number, c__: Float32Array, ldc: number): number => ...
import { SafeEmitter, Emitter, filterValue } from 'fancy-emitter' import type { ClientID, Name, LobbyID } from '@mothepro/signaling-lobby' import type Peer from './Peer.js' import { parseGroupFinalize, parseGroupChange, parseClientLeave, parseClientJoin, parseSdp, parseYourName, parseFallback } from '../util/parsers.js...
import { Option } from '@hqoss/monads'; import { format } from 'date-fns'; import React, { Fragment, useEffect } from 'react'; import { Link, useParams } from 'react-router-dom'; import { createComment, deleteArticle, deleteComment, favoriteArticle, followUser, getArticle, getArticleComments, unfavorite...
<filename>src/app/pages/BridgeDepositPage/saga.ts import { call, cancel, cancelled, fork, put, select, take, takeLatest, } from 'redux-saga/effects'; import delay from '@redux-saga/delay-p'; import { actions } from './slice'; import { actions as walletProviderActions } from 'app/containers/WalletProvide...
import React from 'react'; import {makeStyles} from '@material-ui/core'; import log from 'loglevel'; import BufferedQueue from '../utils/bufferedQueue'; import {abvt} from '../msg/simstep_generated'; const {flatbuffers} = require('flatbuffers'); const vertexShaderSource = `#version 300 es in vec2 a_position; in float...
/*! 快应用不支持 类属性, 只好将它抽出来放到类名后面 并且针对app要做一些转换 */ import * as path from 'path'; import platConfig from '../../config/config'; //默认manifest.json var manifest: any = { package: 'org.hapjs.demo.sample', name: 'nanachi转快应用', versionName: '1.0.0', versionCode: 1, minPlatformVersion: 1030, icon: '/asse...
import { SubWallet, SerializedSubWallet } from './SubWallet'; import { WalletAccount, WalletAccountType } from '../WalletAccount'; import { WalletManager } from '../../services/wallet.service'; import { StandardSubWallet } from './StandardSubWallet'; import { ERC20SubWallet } from './ERC20SubWallet'; import { Coin, Co...
<filename>integration-test/deploy.ts import { isTxError, LocalTerra, MsgInstantiateContract, MsgStoreCode, AccAddress, StdFee, MsgExecuteContract } from '@terra-money/terra.js'; import { contractAddressesFile } from './lib'; import * as fs from 'fs'; import { Mirror } from '../src/client/Mirror'; import {...
import * as vscode from 'vscode'; import * as fs from 'fs'; import * as path from 'path'; import * as R from 'ramda'; import * as model from 'ask-smapi-model'; import { SmapiResource, Utils, SmapiClientFactory } from '../runtime'; import { loggableAskError } from '../exceptions'; import { getSkillFolderInWs } from '....
import React, {useEffect, useState} from 'react'; import {ActivityIndicator, SafeAreaView, StyleSheet, Text, useWindowDimensions, View} from 'react-native'; import {RNCamera, TrackedTextFeature, TrackedTextFeatureRecursive} from "react-native-camera"; import {widthPercentageToDP as wp, heightPercentageToDP as hp} from ...
<reponame>jsflow/jsflow /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ let readline = require('readline'); let fetch = require('node-fetch'); let url = require('...
<filename>src/deploy/functions/validate.ts import * as path from "path"; import * as clc from "cli-color"; import { FirebaseError } from "../../error"; import { getSecretVersion, SecretVersion } from "../../gcp/secretManager"; import { logger } from "../../logger"; import * as fsutils from "../../fsutils"; import * as...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { CdkDragDrop, moveItemInArray, transferArrayItem, } from '@angular/cdk/drag-drop'; import { EMPTY, forkJoin, Observable, Subject } from 'rxjs'; import { mergeMap, takeUntil } from 'rxj...
import { CollabEvent, CollabEventsRecord, InitToken, MessageMeta, Pre, int64AsNumber, Optional, CObject, } from "@collabs/core"; import { GrowOnlyResettableCCounterMessage, GrowOnlyResettableCCounterSave, IGrowOnlyResettableCCounterResetEntry, IGrowOnlyResettableCCounterSaveEntry, } from "../../...
<reponame>JustinBeckwith/flem<filename>src/lib/builder.ts import Runtime from './runtimes'; import * as path from 'path'; import {spawn, ChildProcess} from 'child_process'; import * as fs from 'fs-extra'; import {trimEnd, indexOf} from 'lodash'; import RuntimeDetector from './runtimeDetector'; import {EventEmitter} fro...
<filename>src/FlowEditorState.ts import { arrayType, booleanType, frozen, lazyType, nullType, RecordClass, recordClassType, RecordType, recordType, unionType, } from "paratype"; import { DefaultFlowTheme, filterNotNull, FlowContent, FlowOperation, ...
// (C) 2007-2018 GoodData Corporation import * as React from 'react'; import { AgGridReact } from 'ag-grid-react'; import * as classNames from 'classnames'; import noop = require('lodash/noop'); import get = require('lodash/get'); import isEqual = require('lodash/isEqual'); import { AFM, Execution } from '@gooddata/typ...
import pg from "../init"; import LineSettings from "../objectSettings/model/LineSettings"; import getSettings from "../objectSettings/model/getSettings"; import AreaSettings from "../objectSettings/model/AreaSettings"; import PointSettings from "../objectSettings/model/PointSettings"; import { requestImportXVI } from "...
const config = { "tokens": { "colors": { "$transparent": "transparent", "$current": "currentColor", "$black": "#000", "$white": "#fff", "$gray100": "#f7fafc", "$gray200": "#edf2f7", "$gray300": "#e2e8f0", "$gray400": "#cbd5e0", "$gray500": "#a0aec0", "$gray600": "#718096", "$gray700"...
<filename>src/worker.ts let cancelCode = 0; let localSpawnWarps: Array<string> = []; let resultsCache: { [key: string]: { [key: string]: { [key: string]: Result; }; }; } = {}; onmessage = function (e) { console.log("MESSAGE RECIEVED"); let data = e.data; let code: SWCode = data.shift(); if (...
// This code is derived from github.com/satackey/action-docker-layer-caching. // // MIT License // // Copyright (c) 2020 satackey // // 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...
import { Database, Q } from '@nozbe/watermelondb'; import { withDatabase } from '@nozbe/watermelondb/DatabaseProvider'; import withObservables from '@nozbe/with-observables'; import dayjs, { Dayjs } from 'dayjs'; import { Dictionary, groupBy, keyBy, sortBy } from 'lodash'; import React, { useEffect, useState } from 're...
/** * x-combobox */ import { debounce } from '@fatesigner/utils'; import { Input, Select, SelectOption, Spin } from 'ant-design-vue'; import { isArray, isFunction, isNullOrUndefined, isObject } from '@fatesigner/utils/type-check'; import { PropType, computed, defineComponent, nextTick, onMounted, reactive, ref, watc...
import * as $DNS from "dns"; import * as $Net from "net"; import * as C from "./Common"; import * as E from "./Errors"; import { RawPromise } from "@litert/core"; class Connection { private _socket!: $Net.Socket; private _connectPromise!: Promise<void>; private _buffer!: string; private _waiters!: ...
<filename>src/api/estados/bahia.ts<gh_stars>1-10 import { stateType } from "../../types/stateType"; const ba: stateType = { state: 'Bahia', abbreviation: 'ba', cities: [ 'Abaíra', 'Abaré', 'Acajutiba', 'Adustina', 'Água Fria', 'Aiquara', 'Alagoinhas', 'Alcobaça', ...
import React, { useState, useEffect, useCallback } from 'react' import SVG from 'react-inlinesvg' import cn from 'classnames' import LineEdit from './LineEdit' import ProfileCardFrame from './ProfileCardFrame' import ProfileCardAvatar from './ProfileCardAvatar' import { truncateMiddle } from 'common/utils/string' impor...
import * as Promises from "../promises"; import { AbstractMod, ModParameters, ModResult, ModStatus } from "../mod"; import TemplateEngine from "../templating/engine"; import { Logger, createLogger } from "../logger"; import { Executor } from "../executors"; import Context from "../context"; const LOGGER: Logger = crea...
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
import * as tp from "typed-promisify"; import * as sqlite3 from "sqlite3"; import * as log from "loglevel"; import { TableRep, QueryExp, Schema, TableInfoMap, TableInfo, Row, ColumnMetaMap, DataSourceConnection, SQLiteDialect, ColumnType, DataSourcePath, DataSourceNode, DataSourceId, EvalQue...
import React from "react"; import {Component, createContext} from "react"; import {ScrollComponent} from "./scrollComponent"; // A contect for the animator, which pins can use to get data of a section export const AnimationContext = createContext({ getSection: (() => undefined) as (name: string) => NormalizedSecti...
import * as d3 from 'd3'; import { SVGRenderer } from 'svg-flowgraph'; import { SVGRendererOptionsInterface, SubgraphInterface, SubgraphNodeInterface } from '@/types/typesGraphs'; import { calcLabelColor, flatten } from '@/graphs/svg/util'; import { Colors, NodeTypes } from '@/graphs/svg/encodings'; import SVGUtil f...
import "@material/mwc-button/mwc-button"; import "@material/mwc-list/mwc-list"; import "@material/mwc-list/mwc-list-item"; import "@polymer/paper-item/paper-item"; import "@polymer/paper-radio-group/paper-radio-group"; import "@polymer/paper-radio-button/paper-radio-button"; import "@polymer/paper-input/paper-input"; i...
<gh_stars>0 import { ethers } from 'ethers'; import { BigNumber } from 'ethers/utils'; export const REQUIRED = 'REQUIRED'; export const CHOICE = 'CHOICE'; // Market templates export const SPORTS = 'Sports'; export const POLITICS = 'Politics'; export const FINANCE = 'Finance'; export const ENTERTAINMENT = 'Entertainment...
import React, { CSSProperties, useState, useCallback } from 'react'; import * as Css from 'csstype'; import OverlayTrigger from 'react-bootstrap/OverlayTrigger'; import Tooltip from 'react-bootstrap/Tooltip'; import { format } from '../logion-chain/datetime'; import { Row, Col } from './Grid'; import { Child, Childre...
<filename>src/sankey/sankeyFunc.ts<gh_stars>0 // Copyright 2021 Observable, Inc. // Released under the ISC license. // https://observablehq.com/@d3/sankey-diagram import * as d3 from "d3"; import { ScaleOrdinal } from "d3"; import * as d3Sankey from "d3-sankey"; export interface Link { source: string; target:...
<filename>packages/lib/elastic.ts import { Client, RequestParams, ClientOptions } from '@elastic/elasticsearch' import semver from 'semver'; import _ from 'lodash' import path from 'path' import fs from 'fs' import jsonFile from 'jsonfile' import { IConfig } from 'config'; import Logger from '@storefront-api/lib/logger...
import { FileLoader } from "./FileLoader"; import { AttributeType } from "geometry/Geometry"; import { Accessor, glTF, MeshPrimitive } from "loader/spec/glTF"; import { Attribute, BufferedGeometry, DefaultAttribute } from "geometry/BufferedGeometry"; import { Material } from "materials/Material"; import { ImageLoader }...
import React, { useEffect, memo } from "react"; import { View, TouchableOpacity, StyleSheet, Dimensions, ScrollView, Alert, LayoutAnimation, Platform } from "react-native"; import { Text } from "../styles/components" import PropTypes from "prop-types"; import { systemWeights } from "react-native-typography"; im...
import React from 'react' import lodash from 'lodash' import { Form, Input, Tooltip, Dropdown } from 'asp-antd-compatible' import { WrappedFormUtils } from 'asp-antd-compatible/lib/form/Form'; import { ColumnProps, TableContext, TableContextProps } from './Table' import './style/index.less' type Props<T> = { // 列的...
import { HttpError } from './base' import { GenericObject } from './utils' export class BadRequestError extends HttpError { static status: number = 400 static error: string = 'BadRequest' static message: string = 'Bad Request' static phrase: string = 'Bad request.' constructor(message?: string | GenericObje...
<filename>packages/composables/src/types/index.ts import { FacetSearchResult, ComputedProperty, ProductsSearchParams } from '@vue-storefront/core'; import { ProductCategory } from '@vue-storefront/kibocommerce-api'; import { UseCheckoutErrors } from '../factories/useCheckoutFactory'; export { UseCategory, UsePr...
import path from "path"; import AWS, {AWSError} from "aws-sdk"; import {default as mime} from "mime"; import yaml from "js-yaml"; import {GetObjectOutput, ListObjectsV2Output, NextToken} from "aws-sdk/clients/s3"; import _ from "lodash"; import Bluebird from "bluebird"; const bucketName = process.env.ORIGINAL_BUCKET |...
<filename>src/codes.ts /** * 文字装飾コード番号 - The character OrnamentCode (SGR Parameter) to apply * * @see https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters */ export type OrnamentCode = number /** @constant reset. All attributes off.*/ export const resetCode: OrnamentCode = 0 /** @constant bold. As with ...
<reponame>patricklindner/confidential-storage import { ServerInstance } from '../../types'; import { documentLoader } from '../../client/__fixtures__/documentLoader'; import base64url from 'base64url'; const zcapVerify = require('http-signature-zcap-verify'); const jsigs = require('jsonld-signatures'); const { Ed2551...
<reponame>DucatusX/ducatus-copay import { HttpClient } from '@angular/common/http'; import { Component } from '@angular/core'; import { AlertController, NavController } from 'ionic-angular'; import _ from 'lodash'; import moment from 'moment'; import { ApiProvider, Coin, FilterProvider, Logger, ProfileProvide...
'use strict'; import { TextDocumentContentProvider, Uri, EventEmitter, Event, ProviderResult, CancellationToken } from 'vscode'; import { Shell } from './shell'; import { FS } from './fs'; import { Advanceable, Errorable, UIRequest, StageData, OperationState, OperationMap, advanceUri as wizardAdvanceUri, selectionChan...
<reponame>Dominos/jupyterlab-gcloud-auth<filename>src/index.ts import { JupyterFrontEndPlugin, JupyterFrontEnd } from '@jupyterlab/application'; import { IMainMenu } from "@jupyterlab/mainmenu"; import { GcpMenu } from "./gcp"; import { URLExt } from '@jupyterlab/coreutils'; import { ServerConne...
import { css } from "@emotion/core"; import Head from "next/head"; import PlusSVG from "../../../public/svg/sidebarSettings/plus.svg"; import BackSVG from "../../../public/svg/settings/back.svg"; import TeamSVG from "../../../public/svg/settings/team.svg"; import React, { useCallback, useState } from "react"; import R...
import {assert} from "chai"; import {describe, it} from 'mocha'; import {__isValidColor, cleanupStyleOption, validCssColorNames} from "./cleanupStyleOption"; import {AllowedStretches, AllowedStyles, AllowedVariants, AllowedWeights} from "../StyleOptions"; let lastError = { field: "", value: "", error: "", }; const ...
<reponame>bdjeffyp/ra-twitch-ext import { AxiosError, AxiosResponse } from "axios"; import { Api } from "./api"; export const RA_URL = "https://retroachievements.org"; const INVALID_KEY_ERROR = "Invalid API Key"; export enum ApiTargets { topTenUsers = "TopTenUsers", gameInfo = "Game", gameInfoExtended = "GameEx...
<filename>packages/rc-hooks/animation/src/hooks/useChildrenEnterLeave.ts import {AnimateType, CubicBezierGetter, cubicBezier, presets} from '@co-hooks/util'; import {usePrevProp, useRefCallback, useSingleton, useUpdate} from '@rc-hooks/use'; import React, {Key, ReactElement, ReactNode, useEffect, useRef} from 'react'; ...
import React, { FC, Component, useEffect, useState } from 'react'; import isEqual from 'lodash/isEqual'; // import BaseDatePickerViewProps from './PropsType'; import PickerColumn from '../picker/PickerColumn'; // import removeFnFromProps from '../picker-view/utils/removeFnFromProps'; import { isExtendDate, parseState }...
import { Injectable, NotFoundException, BadRequestException, NotImplementedException } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import * as mongoose from 'mongoose'; import { ICoupon } from './interfaces/coupon.interface'; import { OptQuery } from '...
<gh_stars>10-100 import { relative, dirname } from "path"; export interface IPosition { file?: string, column: number, line: number } /** Matches [0-9] */ export function characterIsNumber(char: string) { const charCode = char.charCodeAt(0); return 48 <= charCode && charCode <= 57; } /** * These...
import axios from 'axios'; import { API_URL } from 'config'; import { GetServerSideProps } from 'next'; import Layout from '~/components/Layout'; import StaticWrapper from '~/components/StaticWrapper'; import DOMPurify from 'isomorphic-dompurify'; import { Button } from '~/components/buttons/Buttons'; import router fro...
<reponame>paula75/quetienemicomida-web import { Producto } from "../producto"; import { TipoProducto } from "../tipo-producto"; export const VEGETARIANOS: Producto[] = [ { nombre: '<NAME>', marca: '<NAME>', tipo: 'Nugget de verdura', energia: 251, proteina: 5.9, ...
import fs from 'fs' import readline from 'readline' // tslint:disable-next-line: no-console const logger = console.log interface IColRef { table: string col: string } interface ITableColumn { name: string isPk: boolean isFK: boolean 'NOT NULL'?: boolean ref?: IColRef type?: string enum?: string, ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
import React from "react" import { BoxGeometry, BoxHelper, BufferAttribute, BufferGeometry, Color, DynamicDrawUsage, Group, LineBasicMaterial, LineSegments, Mesh, PerspectiveCamera, Points, PointsMaterial, Scene, Vector3, WebGLRenderer, sRGBEncoding, } from "three" import { OrbitContro...
import * as fs from 'fs'; import axios from 'axios'; import * as _ from 'lodash'; import BigNumber from 'bignumber.js'; import Staking from './Staking'; import { Fee, Operations, TotalFee } from './Operation'; import tokens from './tokens'; import tokensToDistribute from './tokensToDistribute'; type SimpleOperation = ...