text
stringlengths
3.3k
33k
/** * 图片处理相关工具 */ const Fs = require('fs') const Path = require('path') const Https = require('https') const Url = require('url') const Chalk = require('chalk') /** * 支持压缩的图片格式 */ const IMG_REGEXP = /\.(jpe?g|png)$/ /** * 在线压缩网站 */ const TINYIMG_URL = ['tinyjpg.com', 'tinypng.com'] /** * @remarks 字节转换 * @par...
<gh_stars>1-10 export const common = { name: "<NAME>", title: "Blog, Portfolio, and Personal Website", share: "SHARE", twitterHandler: "omaralbeik", readMore: "Read More", read: "read", copy: "Copy", clear: "Clear", copied: "Copied!", searchBlogPosts: "Search in %count% blog posts", searchSnippets...
import { Component, OnInit, Input, ViewChild, ElementRef, EventEmitter, Output, TemplateRef, OnDestroy, DoCheck, HostBinding, Optional, OnChanges, AfterViewInit, Host, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Self, } from '@angular/core'; import { MatAutocomplete, MatAutocompleteOrig...
<gh_stars>0 const path = require("path") const fs = require("fs") const webpack = require("webpack") import { convertWxmlToVueTemplate } from "../convertWxmlToNgTemplate" const d = path.resolve(process.cwd()) let cwd = "" const suid = () => { // I generate the UID from two parts here // to ensure the random numb...
<filename>packages/cli/src/stdio/output/spinnerTree.ts /** * MIT License * * Copyright (c) 2022 Skylix * * 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, including ...
import { ChatroomCharacter, getAllCharactersInRoom } from "../characters"; import { GuiSubscreen } from "./subscreen"; import { getCharacterName } from "../utilsClub"; import { setSubscreen } from "../modules/gui"; const PER_PAGE_COUNT = 8; type RoleListItem = { type: "Character" | "Player" | "Clubowner" | "Owner" |...
/* PyDoctestBtn © 2021 <NAME> - <EMAIL> */ import { fstat } from 'fs'; import { eventNames, stderr } from 'process'; import { exec } from 'child_process'; import * as vscode from 'vscode'; let doctestStatus: vscode.StatusBarItem; let docstringStatus: vscode.StatusBarItem; // Objects that need to be global let ex...
import { type FinalizedQueueOptions, type Job, type JobHandler, type JobIdentifier, type JobOptions, type QueueOptions, type ReceiveCallbacks, type TasklessBody, } from "@taskless/types"; import { DateTime } from "luxon"; import { serializeError } from "serialize-error"; import { JobError } from "../er...
<gh_stars>0 import { parse } from "https://deno.land/std/flags/mod.ts"; import { exists } from "https://deno.land/std/fs/mod.ts"; import { dirname, resolve, globToRegExp, extname } from "https://deno.land/std/path/mod.ts"; import { mux } from "https://denolib.com/kt3k/mux-async-iterator/mod.ts"; import ...
<reponame>fastegg/headerhelper<filename>src/opts/js.ts //@ts-ignore //import * as ts from 'typescript-eslint-parser'; import { HeaderInfo, HeaderLine } from '../HeaderInfo'; import * as vscode from 'vscode'; import { watch , readFile, stat, readdir} from 'fs'; import * as path from 'path'; import * as ts from 'typescri...
<reponame>cruise-automation/webviz-rust-framework<filename>wrflib/web/wrflib_worker_runtime.ts // Copyright (c) 2021-present, Cruise LLC // // This source code is licensed under the Apache License, Version 2.0, // found in the LICENSE-APACHE file in the root directory of this source tree. // You may not use this file e...
import DiscordJS, { Client, Collection, Guild, GuildManager, Channel, Intents, Message, MessageEmbed, TextChannel } from "discord.js" import WOKCommands from "wokcommands" import path from "path" import testSchema from "./test-schema" import fs from "fs" import * as config from "./config.json" import * as custom from "...
import { useEffect, useState } from 'react'; import { createStore } from './createStore'; import type { InterstateMethodsDev, ReadInterstateDev, ResetInterstateDev, SetInterstateDev, UseInterstateDev, } from './DevTypes'; import { getEntriesOfEnumerableKeys, getEnumerableKeys } from './getEntriesOfEnumerableK...
<filename>src/Hosts/BlogCore.App/ClientApp/redux/modules/Blog.ts import { Observable } from 'rxjs/Observable'; import { AjaxResponse } from 'rxjs/Observable/dom/AjaxObservable'; import { Action, Reducer } from 'redux'; import { ActionsObservable } from 'redux-observable'; import { get, post, put, del } from './../clie...
<filename>src/header/tar-header-utility.ts import { TarUtility, AsyncUint8Array, AsyncUint8ArraySearchResult } from '../common'; import { TarHeaderLinkIndicatorType } from './tar-header-link-indicator-type'; import { TarHeaderFieldDefinition } from './tar-header-field-definition'; import { TarHeaderFieldType } from './...
<gh_stars>10-100 import { DEFAULT_DEBUG_NODE_ENVS, DEFAULT_BUFFER_LIMIT, DEFAULT_PARSERS, DEFAULT_STRINGIFYERS, DEFAULT_DECODERS, DEFAULT_ENCODERS, extractOperationSecurityParameters, castParameters, } from '@whook/http-router'; import { reuseSpecialProps, alsoInject } from 'knifecycle'; import Ajv from...
<gh_stars>0 /// /// this file's function implementation follows figma's variant component naming convention, which splits property and value by comma (,) in single line node name. /// import { array } from "@reflect-ui/uiutils"; import { ReflectSceneNodeType } from "@design-sdk/figma-node"; import type { IReflectNodeR...
import { cursor, erase } from 'sisteransi'; import { lineCount, lastRowCol, getEmptyState, splitVTString } from './utils'; import { IInputPos, IState, IRenderState, IPlainState } from './model'; import { RLInterface } from './RLInterface'; /** * #### Description * A renderer that will optimize the output to the term...
import * as vo from "./vo"; import * as option from "./option"; function zerofill(v: any) { return ('0' + v).slice(-2); } class Hoge extends vo.StringVo {} var a = new Hoge("ge"); console.log(a); enum ExecTiming { AM = 'AM', PM1 = 'PM1', PM2 = 'PM2', OVER = 'OVER' } class ScheduledStartDateTime extends vo...
<reponame>Andersen-soft/MassCRM import { IEMail, ILocation, IPhone, ICompany, ISocialNetwork, ContactColleagues, ISequence, INote, ISale, IMinMax, ISaleSearch, ICompanySearch, ISort } from 'src/interfaces'; export interface IContact { [key: string]: any; emails?: string[]; first_name?: ...
import React, { PureComponent } from 'react' import { Animated, Text, TouchableOpacity, TouchableWithoutFeedback, StyleSheet, } from 'react-native' // prettier-ignore import { connect } from 'react-redux' import { TapGestureHandler, State as GestureState } from 'react-native-gesture-handler' import Feather from 'reac...
import { autoBindMethodsForReact } from 'class-autobind-decorator'; import { ListGroup, ToggleSwitch, } from 'insomnia-components'; import React, { PureComponent } from 'react'; import styled from 'styled-components'; import { AUTOBIND_CFG } from '../../../common/constants'; import { HandleGetRenderContext, HandleRe...
import UserService = require('../services/user-service'); import UserModel = require('../models/user-model'); import sequalizeModel = require("../models/user-model"); import Sequelize = require('sequelize'); import token_auth = require('../../JWT_Checker/loginToken') import GroupMemberModel = require('../models/group-m...
import chalk from 'chalk'; import { IEndpoint, IParam } from '@materia/interfaces'; import { App } from '../app'; import { MateriaError } from '../error'; import { Controller } from './controller'; import { Entity } from '../entities/entity'; import { Query } from '../entities/query'; // Not used yet export enum Meth...
import {NativeStackScreenProps} from '@react-navigation/native-stack'; import React, {useContext, useState} from 'react'; import {ScrollView, StyleSheet, Text, useWindowDimensions, View} from 'react-native'; import {Grid, Col} from 'react-native-easy-grid'; import {Button} from 'react-native-elements'; import {DebugTim...
/* eslint-disable no-redeclare */ import * as PUPPET from 'wechaty-puppet' import { FileBox, log } from '../config.js' import { WA_ERROR_TYPE } from '../exception/error-type.js' import WAError from '../exception/whatsapp-error.js' import { contactRawPayload } from './contact.js' import type PuppetWhatsApp from '../pup...
<reponame>nonomal/node-tap<gh_stars>100-1000 import Config from "../Config"; import logger from "../logger"; import * as EventEmitter from "events"; import PacketUtils from "../PacketUtils"; import { TcpPacket, IpProtocol, EthernetType, } from "../PacketsStruct"; import ShadowsocksTcpClient from "../shadows...
<reponame>mshustov/elastic-transport-js<gh_stars>1-10 /* * 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 ...
<gh_stars>0 /** * @license * Copyright Gnucoop soc. coop. All Rights Reserved. * * Use of this source code is governed by a MIT license that can be * found in the LICENSE file at https://gnucoop.io/crotched/LICENSE */ import {Inject, Injectable, InjectionToken, Optional} from '@angular/core'; import {DateAdapter...
// @ts-nocheck import React, { useState, useEffect } from 'react'; import { message, Card, Tree, Button, Input, Form, Radio } from 'antd'; import { cloneDeep } from 'lodash'; import { useFetch } from '@/hooks'; import { addRole, editRole, getCourseClassList } from '@/axios'; import './role-pannel.less'; import { Select...
import { Component, OnInit, Inject, Injector, forwardRef } from '@angular/core'; import { OTableComponent } from './o-table.component'; import { ITableCellRenderer, ITableCellEditor } from '../../interfaces'; import { OTableCellRendererStringComponent, OTableCellRendererBooleanComponent, OTableCellRendererIntege...
<reponame>madhancock/vscode-intelephense /* Copyright (c) <NAME> * Licensed under the MIT Licence. */ 'use strict'; import * as path from 'path'; import * as semver from 'semver'; import * as https from 'https'; import * as querystring from 'querystring'; import { createHash } from 'crypto'; import * as o...
// Copyright IBM Corp. 2019,2020. All Rights Reserved. // Node module: @loopback/context // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT import { ClassDecoratorFactory, DecoratorFactory, MetadataAccessor, MetadataInspector, MetadataMap, Metho...
<filename>packages/core/src/routes/excel_export.ts import querystring = require('querystring'); import odataV4Mongodb = require('odata-v4-mongodb'); import steedosI18n = require("@steedos/i18n"); import { requireAuthentication } from './'; const express = require("express"); const Fiber = require('fibers'); const momen...
import { DydxBridgeActionType, DydxBridgeData, dydxBridgeDataEncoder, encodeERC20AssetData, encodeERC20BridgeAssetData, IDydxContract, } from '@0x/contracts-asset-proxy'; import { ERC20TokenContract } from '@0x/contracts-erc20'; import { ExchangeContract } from '@0x/contracts-exchange'; import {...
import { Injectable } from '@angular/core'; import ExpressionDescriptor from 'cronstrue/i18n'; import CronValidate from 'cron-validate'; import moment from 'moment-timezone'; export enum Period { Secondly = 'Secondly', Minutely = 'Minutely', Hourly = 'Hourly', Daily = 'Daily', Weekly = 'Weekly', Monthly = ...
<reponame>LuckyPigeon/valtio import { getUntracked, markToTrack } from 'proxy-compare' const VERSION = Symbol() const LISTENERS = Symbol() const SNAPSHOT = Symbol() const HANDLER = Symbol() const PROMISE_RESULT = Symbol() const PROMISE_ERROR = Symbol() type AsRef = { $$valtioRef: true } const refSet = new WeakSet() e...
import { Context } from 'egg'; import { ObjectID } from 'mongodb'; import { Document, Model, UpdateQuery, FilterQuery, Mongoose, Connection } from 'mongoose'; import { MongooseSingleton } from '../../../typings/app'; import * as _ from 'lodash'; import BaseBSONDocObject, { KeyType } from '../../object/BaseBSONDocObjec...
<filename>libs/client/src/lib/client.ts /* eslint-disable @typescript-eslint/no-empty-function */ import { ChildProcess, spawn, SpawnOptionsWithoutStdio } from 'child_process'; import { ApiUrl, Run, CompleteTaskDto, CreateRunRequestDto, CreateTasksDto, StartTaskDto, StartTaskResponseDto, Task, SetLead...
<filename>x-pack/plugins/security_solution/public/common/containers/source/index.tsx /* * 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 Licens...
<filename>src/components/logs/logs-filters.controller.ts /* * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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...
import { BaseSource, Candidate, GatherCandidatesArguments, homeDir, path as univPath, wrapA, } from "../@ddc-file/deps.ts"; import * as util from "../@ddc-file/util.ts"; import * as internal from "../@ddc-file/internal_autoload_fn.ts"; type Params = { mode: "os" | "win32" | "posix"; takeFileNum: number...
<filename>src/interval-tree.ts type Color = 0 | 1 | 2; const RED = 0; const BLACK = 1; const NIL = 2; const DELETE = 0; const KEEP = 1; type ListNode = { index: number; high: number; next: ListNode | null; }; interface TreeNode { max: number; low: number; high: number; // color C: Color; // P P: ...
import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import ClickAwayListener from "@material-ui/core/ClickAwayListener"; import Grow from "@material-ui/core/Grow"; import IconButton from "@material-ui/core/IconButton"; import MenuItem from "@material-ui/core/MenuItem"; im...
import * as _ from "lodash"; import Client = require('./client'); import {DriverState, OmnisharpClientStatus} from "omnisharp-client"; import {Observable, Subject} from "rx"; import {basename, dirname} from "path"; export class ProjectViewModel implements OmniSharp.IProjectViewModel { public path: string; publ...
<reponame>samjcs/legend-studio<gh_stars>0 /** * Copyright (c) 2020-present, <NAME> * * 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 *...
<gh_stars>100-1000 /** * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { ReaderResult as Result } from '../result'; import { Task, RuntimeContext } from '../../../mol-task'; import { PlyFile, PlyType, PlyElement } from './schem...
import path from 'path'; import postCss from 'postcss'; import postCssModules from 'postcss-modules'; import {logger} from '../logger'; import {SnowpackConfig} from '../types'; import { appendHtmlToHead, hasExtension, spliceString, HMR_CLIENT_CODE, HMR_OVERLAY_CODE, } from '../util'; import {generateSRI} from...
import { DatafeedConfiguration, ErrorCallback, GetMarksCallback, HistoryCallback, HistoryDepth, IDatafeedChartApi, IDatafeedQuotesApi, IExternalDatafeed, LibrarySymbolInfo, Mark, OnReadyCallback, QuotesCallback, ResolutionBackValues, ResolutionString, ResolveCallback, SearchSymbolResultItem, SearchSymb...
/* eslint-disable */ import React, {useEffect, useState} from 'react'; import {Redirect} from 'react-router-dom'; import {useDispatch} from 'react-redux'; import {Button, Col, Container, Form, Row} from 'react-bootstrap'; import {RadioButton, RadioGroup} from 'react-radio-buttons'; import CheckboxGroup from 'react-chec...
<gh_stars>1-10 import { ANIMATIONS } from './common'; const BOUNCE_DEFAULT = { transform: 'translate(0)', easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }; const BOUNCE: Keyframe[] = [ { offset: 0, ...BOUNCE_DEFAULT }, { offset: 0.2, ...BOUNCE_DEFAULT }, { offset: 0.4, transform: 'translateY(-30px)', easing:...
<gh_stars>1-10 /** * Recursive partial type. */ type RecursivePartial<T> = { [P in keyof T]?: T[P] extends Array<infer I> ? Array<RecursivePartial<I>> : RecursivePartial<T[P]>; }; /** * Design tokens for neutral colors */ export type NeutralColorTokens = { // https://www.figma.com/file/KB9oUjMKen2cKnyPG7RgdS/D...
<filename>packages/design-system-tokens/src/lib/utility.ts import fs from 'fs'; import path from 'path'; import { HexValue, RGBValue, RGBAValue, FileDescriptor } from './types'; // converts an rgb string 'rgb(15,24,128)' to a hex value '#0819A9' export const rgbToHex = (r: number, g: number, b: number): HexValue => { ...
<filename>src/hue.ts import * as https from "https"; import fetch from "cross-fetch"; import { dtls } from "node-dtls-client"; import { Room, Zone, Light, Scene, Device, BridgeHome, ResourceNode, BridgeConfig, EntertainmentArea, HueBridgeNetworkDevice, BridgeClientCredentials, LightGroup, } fro...
import * as grpc from "@grpc/grpc-js"; import { EventEmitter } from "events"; import * as fs from "fs"; import { Empty } from "google-protobuf/google/protobuf/empty_pb"; import * as os from "os"; import * as path from "path"; import * as url from "url"; import * as emu from "./proto/emulator_controller_grpc_pb"; import...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { sortArray, sortIndex, lowerBound, } from "../../../src/util/typedCrossfilter/sort"; /* Sort tests should keep in mind that there are separate code paths for: - small vs. large arrays (insertionsort only) - float-only typed arrays vs. other array types (non-finite handling) - indexed vs. direct sor...
<filename>packages/taro-mini-runner/src/utils/constants.ts import * as os from 'os' import chalk, { Chalk } from 'chalk' export const CSS_EXT: string[] = ['.css', '.scss', '.sass', '.less', '.styl', '.wxss', '.acss', '.ttss', '.qss', 'jxss'] export const SCSS_EXT: string[] = ['.scss'] export const JS_EXT: string[] = ...
import * as _ from 'lodash'; import { BigNumber } from 'bignumber.js'; import { Augur } from '../Augur'; import { MarketType } from '../state/logs/types'; export interface Order { price: string; amount: string; } export interface OutcomeOrderBook { bids: Order[]; asks: Order[]; } export interface OrderBook {...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * R...
import * as React from 'react'; import { Async, Icon, Image, Link, TooltipHost, classNamesFunction, registerIcons, IProcessedStyleSet, IContextualMenuItem, DirectionalHint, ActionButton, Stack, IRawStyle, css, } from 'office-ui-fabric-react'; import { trackEvent, EventNames, getSiteArea, Mar...
import type ws from 'ws' import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack' import type { NextConfigComplete } from '../config-shared' import { EventEmitter } from 'events' import { findPageFile } from '../lib/find-page-file' import { runDependingOnPageType } from '../../build/entries' import...
<reponame>mapo80/nativescript-http import {XhrFactory } from "@angular/common/http"; import {Injectable} from "@angular/core"; import * as types from "@nativescript/core/utils/types"; import { request } from ".."; import { HttpRequestOptions, HttpResponse } from "@nativescript/core/http/http"; namespace XMLHttpRequest...
import * as React from "react"; import * as $ from "jquery"; import { tr } from "../utils/translate"; const _ = require("lodash"); const log = require("loglevel"); import { PaletteStore, PalleteItem } from "../stores/palette-store"; import { CodapStore } from "../stores/codap-store"; import { LaraStore } from "../s...
<reponame>muhammad-usman-anwar/electron-ipc<filename>src/index.ts import { BrowserWindow, ipcMain, ipcRenderer, WebContents } from "electron"; import { filter } from "rxjs/operators"; import { DuplexChannel } from "./channel"; import { ChannelState, ControlFlags, ELectronProcessTypes, SignalData } from "./types" inter...
// Copyright (c) 2021-2022 <NAME> // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. import { $, $type, Kind, TyK, TyVar } from '@fp4ts/core'; import { Either, List, Option, Vector } from '@fp4ts/cats'; import { Poll, ExitCase, MonadCa...
#!/usr/bin/env node import { constants as fsConstants } from "node:fs"; import { access, mkdtemp, rename as fsRename, rmdir, stat, } from "node:fs/promises"; import { basename, dirname, isAbsolute, join, normalize } from "node:path"; import { cwd, exit } from "node:process"; import chalk from "chalk"; impor...
import { Chart, ChartData, ChartLegendLabelItem, ChartTooltipItem, } from "chart.js"; import { AuctionItem, CItemInfo, PriceType } from "../types"; import { NeverNull, NeverUndefined } from "../utils"; import { formatMoney } from "./money"; function toPoints(auctions: AuctionItem[], priceType: PriceType) { r...
import * as React from 'react'; import { Animated, Dimensions, InteractionManager, LayoutChangeEvent, StyleSheet, ViewStyle, ViewProperties, } from 'react-native'; import { EdgeInsets, SafeAreaContext, SafeAreaProvider, SafeAreaConsumer, useSafeArea, } from 'react-native-safe-area-context'; imp...
/** * @license * Copyright Google LLC 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 * as ts from 'typescript'; import {AbsoluteFsPath, PathManipulation, ReadonlyFileSystem} from '../../../src/ng...
/* * Copyright (c) <NAME>. (MIT License) * Copyright (c) Project Nayuki. (MIT License) * https://www.nayuki.io/page/qr-code-generator-library * * 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...
<filename>packages/rhi-webgl/src/WebGLRenderer.ts import { Camera, CameraClearFlags, Canvas, ColorWriteMask, Engine, GLCapabilityType, IHardwareRenderer, IPlatformRenderTarget, IPlatformTexture2D, IPlatformTextureCube, Logger, Mesh, RenderTarget, SubMesh, Texture2D, Texture2DArray, Tex...
import * as React from "react"; import gql from "graphql-tag"; import { useQuery } from "react-apollo"; import { RouteComponentProps, Redirect } from "react-router-dom"; import { NonIdealState, IconName, Colors } from "@blueprintjs/core"; import { IconNames } from "@blueprintjs/icons"; import Loading from "./Loading"; ...
import * as Yup from 'yup' import { getAllLoadNames, getAllDisplayNames } from '../definitions' import { getDefaultLoadName, getDefaultDisplayName } from './formSelectors' import { labwareTypeOptions, wellBottomShapeOptions, wellShapeOptions, DEFAULT_RACK_BRAND, IRREGULAR_LABWARE_ERROR, LABWARE_TOO_SMALL_ER...
<filename>src/client/pythonEnvironments/discovery/locators/services/poetry.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import * as path from 'path'; import { traceError, traceVerbose } from '../../../../common/logger'; import { getOSType, getUserHom...
import { BigNumber } from 'bignumber.js' import { getNetworkInfo } from 'src/config' import { AbiItem } from 'web3-utils' import { CreateTransactionArgs } from 'src/logic/safe/store/actions/createTransaction' import { CALL, DELEGATE_CALL, TX_NOTIFICATION_TYPES } from 'src/logic/safe/transactions' import { enableModule...
import { toChecksum } from "../../src/test/helpers" const BluebirbPromise = require("bluebird") const axios = require("axios") const chalk = require('chalk') const fs = require("fs") const path = require('path') const constants = require('bip44-constants') import { readFileSync, getChainAssetLogoPath, isPat...
import {ApiConnection} from "./ApiConnection"; import {User} from "../../models/User"; import {TextMessageSensitive} from "../../utils/sensitive/TextMessageSensitive"; import {Message} from "../../models/message/Message"; import {TextMessage} from "../../models/message/TextMessage"; import {Conversation} from "../../ut...
import { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; import { CreateQueryLoggingConfigRequest, CreateQueryLoggingConfigResponse } from "../models/models_0"; import { deserializeAws_restXmlCreateQueryLoggingConfigCommand, serializeAws_restXmlCreateQueryLoggingConfigC...
import {ClockodoLib} from "./utilities/lib"; import * as REQUIRED from "./utilities/requiredParams"; import {AbsenceReturnType, AbsencesReturnType, DeleteReturnType, CustomerReturnType, CustomersReturnType, ProjectReturnType, ServiceReturnType, ServicesReturnType, UserReturnType, UsersReturnType, EntryReturnType, Entr...
// @strictNullChecks: true // @declaration: true class Shape { name: string; width: number; height: number; visible: boolean; } class TaggedShape extends Shape { tag: string; } class Item { name: string; price: number; } class Options { visible: "yes" | "no"; } type Dictionary<T> = ...
/** * Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { RenderableSchema, Values, UnboxedValues, UniformSpec, TextureSpec, DefineSpec, RenderableValues } from '../renderable/schema'; import { WebGLContext } from '../webgl/context...
import React, { useReducer, useState, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typography"; import Container from "@material-ui/core/Container"; import AppBar from "@material-ui/core/AppBar"; imp...
<gh_stars>0 import * as t from 'io-ts'; export const PassModelBarcode = t.type({ format: t.union([ t.literal('PKBarcodeFormatQR'), t.literal('PKBarcodeFormatPDF417'), t.literal('PKBarcodeFormatAztec'), t.literal('PKBarcodeFormatCode128'), ]), messageEncoding: t.literal('iso-8859-1'), message: t...
import ISequencer, { ClientInfo } from './ISequencer'; import ISequencerEventData, { rewriteEventDataImpl } from './ISequencerEventData'; import ISynthesizer from './ISynthesizer'; import PointerType, { INVALID_POINTER, UniquePointerType } from './PointerType'; import SequencerEvent from './SequencerEvent'; import Seq...
import * as jQuery from 'jquery'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import {styled, ThemeProvider, defaultTheme} from './styling'; import {PlayState, PlayStateData, currentPosition} from '../data/play-state'; import {Overlays} from './overlays'; import {Toolbar} from './toolbar'; ...
<gh_stars>0 /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { CancellationToken } from 'vscode'; import * as nls from 'vscode-nls'; import { generateBreakpointIds } from './adapt...
import PubsubAspect, { PubsubPreview } from '@teambit/pubsub'; import { Slot, SlotRegistry } from '@teambit/harmony'; import { ComponentID } from '@teambit/component-id'; import crossFetch from 'cross-fetch'; import { PreviewNotFound } from './exceptions'; import { PreviewType } from './preview-type'; import { Preview...
/** * Copyright 2017 Google Inc. All rights reserved. * Modifications copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
import {isDevMode, Input, TrackByFunction, ChangeDetectorRef, Directive, DoCheck, DefaultIterableDiffer, IterableChanges, IterableDiffer, IterableDiffers, CollectionChangeRecord, TemplateRef, ViewContainerRef, EmbeddedViewRef, ViewRef} from '@angular/core'; import {SelectionService} from '../selection-service'; /** *...
/* * 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 { clamp, getDistance, getDistances, getRangeMax, getRangeValue, isInArray, isSsr, Plugins } from "../../Utils"; import type { Container } from "../Container"; import type { Particle } from "../Particle"; import { HoverMode, RotateDirection } from "../../Enums"; import type { IDelta } from "../Interfaces"; funct...
import * as path from 'path'; import R from 'ramda'; import * as RA from 'ramda-adjunct'; import fs from 'fs-extra'; import { BitIds, BitId } from '../../bit-id'; import { filterObject } from '../../utils'; import { ExtensionOptions } from '../../extensions/extension'; import { EnvExtensionOptions, EnvType } from '../....
<filename>src/view.ts<gh_stars>0 import * as d3 from 'd3'; import { flextree } from 'd3-flextree'; import { INode, IMarkmapOptions, IMarkmapState } from './types'; import { initializePlugins } from './util'; import * as plugins from './plugins'; export { plugins }; const uniqId = Math.random().toString(36).slice(2, 8...
import * as React from 'react'; import { connect } from 'react-redux'; import { selectOutcome, setComponentValue } from '../actions'; import { IObjectData, IOutcome, IPageComponent, IPageInput } from '../types'; import PageComponentProps from './PageComponentProps'; import PageComponentError from './PageComponentError'...
import { CartDataSource, CommerceTypes as FSCommerceTypes } from '@brandingbrand/fscommerce'; import DataSourceBase from '../util/DataSourceBase'; import * as ShopifyTypes from '../customTypes'; import { CheckoutResponse, ShopifyLineItem, ShopifyTokenizedPayment } from '../util/ShopifyResponseTypes'; import *...
/* Copyright 2021 The Matrix.org Foundation C.I.C. 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 ...
/** * @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 * as ts from 'typescript'; import {AnnotatorHost} from './annotator_host'; import {assertAbsolute} from './c...
<gh_stars>0 /** * @license * Copyright 2021 Dynatrace LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
<reponame>martunia887/test198 import { ITokenizer, Search, UnorderedSearchIndex } from 'js-search'; import { CategoryId } from '../components/picker/categories'; import { defaultCategories, frequentCategory } from '../util/constants'; import { getCategoryId, isEmojiDescriptionWithVariations, } from '../util/type-he...