text
stringlengths
3.3k
33k
/* * Copyright 2018-present Open Networking Foundation * * 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 appli...
// To parse this data: // // import { Convert } from "./models/covid_data"; // // const covidData = Convert.toCovidData(json); // // These functions will throw an error if the JSON doesn't // match the expected interface, even if the JSON is valid. export interface CovidData { continent: C...
<filename>src/app/layout/activitySchedule/schedule/schedule.component.ts import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { CommonService } from './../../../shared/services/common.service'; import { ApiService } from './../../../shared/services/api/api.service'; import...
import { execSync } from 'child_process'; import puppeteer from 'puppeteer'; import { terminal as term } from 'terminal-kit'; import fs from 'fs'; import path from 'path'; import { BrowserTests } from './BrowserTests'; import yargs from 'yargs'; import sanitize from 'sanitize-filename'; import axios from 'axios...
<filename>src/services/processors/lda.ts import CoreNLP from "corenlp"; import * as _ from "lodash"; import { CandidateTerm, CorpusCandidateTerm, CorpusCandidateTermModel } from "../../models/CandidateTerm"; import { CorpusDocument, CorpusDocumentModel } from "../../models/Document"; import { make2DNumberArray } from "...
<filename>server/classes/Countermeasure.ts import {System} from "./generic"; import {snakeCase} from "change-case"; import uuid from "uuid"; class CountermeasureResources { copper?: number; titanium?: number; carbon?: number; plastic?: number; plasma?: number; [key: string]: number; constructor({copper =...
<filename>src/DisplayPanel/DisplayControls.ts<gh_stars>10-100 /** @module DisplayPanel/DisplayControls */ import * as Color from '../utils/Color'; import ZoomHandler from '../SingleView/Zoom'; let lastGlyphOpacity: number, lastImageOpacity: number; /** * Initialize listeners and controls for display panel. * @para...
import { BaseChannelEmote, BaseEmoteList, BaseGlobalEmote } from "./base"; import { formatNumber, pluralize } from "../formatting"; import { CACHE_TTL, LONG_CACHE_TTL, MEDIUM_CACHE_TTL } from "../config"; import { preferCaseSensitiveFind } from "./common"; import cached from "../caching"; const EMOTE_CODE_REGEX = /^(...
import { chain, Tree, SchematicContext, SchematicsException, branchAndMerge, Rule, mergeWith, apply, url, template, move, noop } from '@angular-devkit/schematics'; import { Schema as ApplicationOptions } from './schema'; import { prerun, getPrefix, getNpmScope, stringUtils, addRootDeps, updateAn...
/* eslint-disable @stencil/ban-side-effects */ import { lazifyKeepElementUpdated } from '../general'; import { numToRem } from './units'; export enum PlacementStrategy { None, Top, TopLeft, TopCenter, TopRight, Right, RightTop, RightCenter, RightBottom, Bottom, BottomLeft, BottomCenter, Bo...
/* tslint:disable */ /* eslint-disable */ export const memory: WebAssembly.Memory; export function __wbg_sendoptions_free(a: number): void; export function __wbg_get_sendoptions_local_pow(a: number): number; export function __wbg_set_sendoptions_local_pow(a: number, b: number): void; export function sendoptions_new(a: ...
import Button from '@material-ui/core/Button'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import { action, c...
<filename>packages/botonic-core/src/hubtype-service.ts import axios, { AxiosResponse } from 'axios' import Pusher, { AuthOptions, Channel } from 'pusher-js' import Channels from 'pusher-js/types/src/core/channels/channels' import { Input } from './models' import { getWebpackEnvVar } from './utils' interface UnsentInp...
<filename>src/module/frontend/front-bill/bill.service.ts import { Injectable } from '@nestjs/common' import { BackBillService, BackBillApi } from '@module-back/back-bill' import { BackMetaService } from '@module-back/back-meta' import { MergeSchemaService } from '@module-front/front-merge-schema' import { IListItem } f...
/******************************************************************************** * Copyright (C) 2017-2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * ...
<filename>src/services/storage/index.ts import storageManagerContract from '@rsksmart/rif-marketplace-storage/build/contracts/StorageManager.json' import stakingContract from '@rsksmart/rif-marketplace-storage/build/contracts/Staking.json' import config from 'config' import { getEndPromise } from 'sequelize-store' impo...
<filename>src/library/core/AmmModel.ts /* eslint-disable no-param-reassign, no-underscore-dangle, no-multi-assign, no-unused-expressions */ import sequelize, { Model, ModelDefined, ModelNameOptions, Sequelize, } from 'sequelize'; import * as columnTypes from './columnTypes'; import { AmmOrmI, AmmSchema } from '...
<filename>polygerrit-ui/app/services/shortcuts/shortcuts-service.ts /** * @license * Copyright (C) 2021 The Android Open Source Project * * 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 ...
import React, { ReactElement, useCallback, useEffect, useState } from 'react'; import NewUserModal from '../../components/authentication/AddUserDrawer'; import AuthUsers from '../../components/authentication/AuthUsers'; import SearchFilter from '../../components/authentication/SearchFilter'; import { Button, ButtonGrou...
<filename>sql-editor/src/app/components/sql-editor/n-sql.hint.ts<gh_stars>0 import * as CodeMirror from 'codemirror'; declare module 'codemirror' { function showParameterInfo(cm: CodeMirror.Editor, hinter?: HintFunction, options?: ShowHintOptions); } let tooltipWidget: TooltipWidget; class TooltipWidget { t...
<reponame>Red-Teapot/NoodleDefense import { TileMap, Loadable, Cell, CellArgs, Random, TileSprite, Vector } from "excalibur"; import WeighedRandom from "../utils/WeighedRandom"; const GROUND_W = new WeighedRandom<number>(); GROUND_W.add(0, 100); GROUND_W.add(1, 3); GROUND_W.add(2, 1); GROUND_W.add(3, 5); GROUND_W.add(...
import {EventEmitter2} from 'eventemitter2'; import {Configurable} from '../util/config/configurable'; import {EventEmitterConfiguration} from './configuration'; import {v4} from 'uuid'; import {Identifiable} from '../util/identifiable'; import {Managed} from '../util/managed'; import {AddressInfo, createConnection, cr...
import { useEffect, useState, useContext, useCallback } from "react"; import CheckIcon from "@mui/icons-material/Check"; import ClearIcon from "@mui/icons-material/Clear"; import ModalUnstyled from "@mui/core/ModalUnstyled"; import { Box, Button, Chip, InputAdornment, InputBase, InputLabel, Stack, Typog...
<filename>examples/modules/ot-json1/lib/cursor.ts // This file exposes a cursor interface for iterating over an operation. // // The cursor interface supports both reading and writing (appending). import {Key, JSONOp, JSONOpComponent, JSONOpList, Path} from './types.js' // const log = require('./log') const log = (.....
<reponame>contra/ui-kit import camelCase from 'camelcase'; import type { ClientInterface, Color, Component, FullComponentMetadata, FullStyleMetadata, Node, Rectangle, StyleType, Text, } from 'figma-js'; import got from 'got'; import { set } from 'lodash'; import pLimit from 'p-limit'; import type { ...
<reponame>miikaah/musa-core import path from "path"; import fs from "fs/promises"; import { traverseFileSystem, audioExts } from "./fs"; import { createMediaCollection } from "./media-separator"; import UrlSafeBase64 from "./urlsafe-base64"; import * as Db from "./db"; import { AlbumUpsertOptions } from "./db.types";...
import chai from "chai" import { solidity } from "ethereum-waffle" import { BigNumber, Contract, Signer } from "ethers" import { deployments } from "hardhat" import { ALCHEMY_BASE_URL, CHAIN_ID } from "../../utils/network" import { GenericERC20, LPToken, MetaSwap, Swap } from "../../build/typechain/" import { asyncFo...
<filename>src/entity/scene/InGameScene.ts import Environment from "../../game/Environment"; import { KeyStatus } from "../../game/input/Input"; import PlayerStatus from "../../game/PlayerStatus"; import Resource from "../../game/Resource"; import { Score, ScoreCalculator } from "../../game/Score"; import Logger from "....
/* Process inline math */ import mdIt from 'markdown-it' import Token from 'markdown-it/lib/token' import { RuleInline } from 'markdown-it/lib/parser_inline' import { RuleBlock } from 'markdown-it/lib/parser_block' function scanDelims( state: import('markdown-it/lib/rules_inline/state_inline'), start: number, d...
<filename>packages/api-headless-cms/src/content/plugins/schema/contentEntries.ts import { Response } from "@webiny/handler-graphql"; import { CmsEntry, CmsContext, CmsModel, CmsEntryListWhere } from "~/types"; import { NotAuthorizedResponse } from "@webiny/api-security"; import { GraphQLSchemaPlugin } from "@webiny/han...
/* Copyright 2021 Merck & Co., Inc. Kenilworth, NJ, USA. 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 A...
import { AfterContentInit, ChangeDetectorRef, Component, EmbeddedViewRef, Injector, Optional, QueryList, Self, TemplateRef, ViewContainerRef, } from '@angular/core'; import { getTestBed } from '@angular/core/testing'; import coreDefineProperty from '../common/core.define-property'; import coreForm ...
import { EditorState, ContentState, SelectionState, RichUtils, Modifier, ContentBlock } from 'draft-js'; import { stateFromHTML } from 'draft-js-import-html'; import { stateToHTML } from 'draft-js-export-html'; import decorator from './decorator'; import { ERROR_MESSAGES, ENTITY_TYPES } from './constants'; interface ...
import { join as joinPath } from 'path'; import SI from 'si-tools'; import crypto from 'crypto'; import forEach from 'lodash/forEach'; import fs from 'mz/fs'; import get from 'lodash/get'; import pickBy from 'lodash/pickBy'; import set from 'lodash/set'; import checkRule from '../utilities/rule'; import Datastore fro...
import { match_, Pattern, TagUnion } from './match'; import { Nominal, SimpleNominal } from './Nominal'; import { Result } from './Result'; import { TaggedUnion } from './TaggedUnion'; type InferType<A extends SimpleNominal<unknown>> = A['_raw']; type UnknownNominal = SimpleNominal<unknown>; type Match<ADT extends T...
<reponame>alevshunov/looter<filename>service/woe/src/indexes/RateAndIndexRecalculator.ts import {MyConnection} from "my-core"; import PlayerSaver from '../PlayerSaver'; import PlayerOnWoESaver from '../PlayerOnWoESaver'; class RateAndIndexRecalculator { private _connection: MyConnection; constructor(connectio...
import { count, concat } from '../../prelude/array'; // MISSKEY REVERSI ENGINE /** * true ... 黒 * false ... 白 */ export type Color = boolean; const BLACK = true; const WHITE = false; export type MapPixel = 'null' | 'empty'; export type Options = { isLlotheo: boolean; canPutEverywhere: boolean; loopedBoard: bo...
import { mat3, mat4, vec3, vec4 } from 'gl-matrix'; import { Color } from '../colors/Color'; import { AABB } from '../geometry/BakedGeometry'; import { BakedMaterial } from '../renderer/Material'; import { worldSpaceAABB } from '../utils/aabb'; import { Task } from '../utils/Task'; import { importObj } from './Import'...
import React, { useState, useEffect, useCallback } from 'react'; import { RefFaucets, OtherFaucets } from '../constants/info'; import { ExternalLinkIcon, CheckIcon, BellIcon } from '@chakra-ui/icons'; import ReactGA from 'react-ga'; import { Heading, Box, Accordion, AccordionItem, AccordionButton, AccordionPan...
<reponame>Jamyth/jamyth-script-v2<gh_stars>1-10 import fs from "fs-extra"; import path from "path"; import { ModuleType } from "../type"; import { Print } from "../util/print"; import { Utility } from "../util/Utility"; interface ModuleGeneratorOption { moduleType: ModuleType; moduleName: string; state?: boolean...
import React, { useEffect, useState, useMemo } from 'react'; import { Row, Col } from 'antd'; import DrawingCanvas from '../../components/DrawingCanvas'; import { useWallet } from '@solana/wallet-adapter-react'; import { useConnection } from '../../contexts/connection'; import { useSocket } from '../../contexts/socket'...
import { Board, PriorState } from "../datatypes/Board.ts"; import { Color, COLOR_WHITE } from "../datatypes/Color.ts"; import { Space, SPACE_EMPTY, spaceGetColor, spaceGetType, spaceHasMoved, } from "../datatypes/Space.ts"; import { assert } from "./assert.ts"; import { PIECETYPE_BISHOP, PIECETYPE_KING, ...
/* eslint max-depth: ["error", 5] */ import {Command, flags} from '@oclif/command' import {TestRailClient} from '../utils/testrail' import {Project, Section, Suite, Test, AddCase, AddRun, Run, Status, TestRailResult} from '../utils/testrail.interface' import {formatToTimeZone} from 'date-fns-timezone' import {JRRun, JR...
<reponame>tangrams/mapillary-demo /// <reference path="../../node_modules/rx/ts/rx.all.d.ts" /> /// <reference path="../../typings/threejs/three.d.ts" /> /// <reference path="../../typings/virtual-dom/virtual-dom.d.ts" /> import * as rx from "rx"; import * as THREE from "three"; import * as vd from "virtual-dom"; imp...
<reponame>alvaroaleman/console import * as sideNavView from '@console/internal-integration-tests/views/sidenav.view'; import { execSync } from 'child_process'; import { $, by, browser, element, ExpectedConditions as until } from 'protractor'; import { clickKebabAction, deleteResource, resourceRowsPresent, until...
import React, {useCallback, useMemo, useState} from 'react'; import {captureException} from '@sentry/react'; import {useHistory} from 'react-router-dom'; import styled from 'styled-components'; import {toast} from 'react-toastify'; import {useSelector} from 'react-redux'; import {RootState, useDispatch} from '../../sto...
<filename>src/content-scripts/params-stash-recover/v1/main.ts import { CMD_RECOVER_PARAMS, CMD_STASH_PARAMS, ContentMessage, ContentResp } from '@/models/content-message' import { StashedParams } from '../models/param-type' import { addBtnForParamsPage, addBtnsForBuildPage } from './params-stash-recover-btn' import { a...
<gh_stars>1-10 import { ApplicationRef, ChangeDetectorRef, ComponentRef, NgZone, Type, } from '@angular/core'; import { ComponentFinderService } from './component-finder.service'; import 'miniprogram-api-typings'; import type { LView, ComponentPath, MiniProgramComponentInstance, NgCompileComponent, ...
import * as React from "react"; import PlotlyChart from 'react-plotlyjs-ts'; import * as Plotly from 'plotly.js' var zerorpc = require('zerorpc'); type ContourPlotDisplayProps = { zerorcpPort: Number, updateRate: Number } /** * State of the display */ type ContourPlotState = { numBeams: Number; ...
<filename>src/util/Functions/Time.ts import ms from "ms"; interface MsResponse { ms: number; s: number; m: number; h: number; d: number; mn: number; y: number; } export default class Time { private constructor() { throw new TypeError("This class may not be instantiated, use static methods."); } /** * ...
import * as oids from './oids'; import { Dict } from './oids'; export const types: Dict<number> = { UEOC: 0x0, BOOLEAN: 0x1, INTEGER: 0x2, BITS: 0x3, BYTES: 0x4, NULL: 0x5, OID: 0x6, UTF8STRING: 0xc, USEQ: 0x10, USET: 0x11, STRING: 0x13, T61STRING: 0x14, TIMESTAMP: 0...
import { Texture, loadTexture } from './texture' /** * The GL shader program used to display 2D sprites. * * Currently, only one program is ever used as it's flexible enough to * handle sprites of various sizes. */ export interface Program { vertex: number; model: number; blend: number; size: numb...
import { modalController } from '@ionic/core'; import { Element, Component, Prop, Watch, State, Host, h, Listen, EventEmitter, Event } from '@stencil/core'; import { Change, Image } from '@venite/ldf'; import Debounce from 'debounce-decorator'; import { getComponentClosestLanguage } from '../../utils/locale'; import ...
<reponame>jiatuhao/engine-3-zjt<gh_stars>1-10 /* Copyright (c) 2017-2020 <NAME> Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assi...
<reponame>Panvala/panvala import axios from 'axios'; import Bottleneck from 'bottleneck'; import { ethers, BigNumber, Contract } from 'ethers'; import * as yargs from 'yargs'; import * as csvParse from 'csv-parse'; import * as stringify from 'csv-stringify/lib/sync'; import { getDefaultProvider } from 'zksync'; import ...
<filename>exercise-final/media-manager-view.ts import {MediaCollection} from "./entities/media-collection"; import {Book} from "./entities/book"; import {Genre} from "./enums/genre"; export interface MediaManagerView { getNewBookCollectionName(): string; renderBookCollection(bookCollection: Readonly<MediaCollecti...
import React, { FC, useRef } from 'react'; import { FaMemory } from 'react-icons/fa'; import { RiCpuLine } from 'react-icons/ri'; import { RiCpuFill } from 'react-icons/ri'; import { RiRhythmLine } from 'react-icons/ri'; import { VscPulse } from 'react-icons/vsc'; import { AiOutlineCodeSandbox } from 'react-icons/ai'; ...
import { css, StyleSheet } from 'aphrodite'; import { padding } from 'css-verbose'; import * as React from 'react'; import { FormattedMessage, InjectedIntl, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import { Button, Tab } from 'semantic-ui-react'; import {...
import fs from "fs"; import path from "path"; import { EventEmitter } from "events"; import util from "util"; import md5File from "md5-file"; import { once } from "events"; import TypedEmitter from "typed-emitter"; import { killer } from "cross-port-killer"; import os from "os"; import { getRegistryKey } from "./winre...
<gh_stars>0 import assert from "assert"; import crypto from "crypto"; import express from "express"; import jwksRsa from "jwks-rsa"; import redis from "redis"; import socketIO, { Socket } from "socket.io"; import { createAdapter } from "socket.io-redis"; import { promisify } from "util"; import { authorize } from "./au...
import { Accessibility } from '@fluentui/accessibility'; import { DateRangeType, DayOfWeek, FirstWeekOfYear, formatMonthDayYear, IDateGridStrings, IDay, IDayGridOptions, IRestrictedDatesOptions, } from '@fluentui/date-time-utilities'; import { ComponentWithAs, getElementType, useAccessibility, u...
// 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 writing, software // distributed...
// Copyright 2019-2020 Centrality Investments Limited // // 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 applica...
'use strict'; import angular, { IDirectiveFactory } from 'angular'; import uiRouter from 'angular-ui-router'; import ngAnimate from 'angular-animate'; import LoginCtrl from './login/login.js'; import SignupCtrl from './signup/signup.js'; import AdminCtrl from './admin/admin.js'; import SearchCtrl from './search/search....
<gh_stars>0 import { Room } from "colyseus" // rooms/MyRoom.ts (server-side, room file) import { randomBytes } from "crypto" import { map, mapObjIndexed } from "ramda" import { defaultState, presets, PresetFlipRule } from "./default-state" import { Card, CardCollection, CardFace, ConstellationCardsState, Uid } from "....
<filename>snykTask/src/index.ts import * as tl from 'azure-pipelines-task-lib/task'; import * as tr from 'azure-pipelines-task-lib/toolrunner'; import { TaskArgs, getAuthToken } from './task-args'; import { getTaskVersion } from './task-version'; import { getOptionsToExecuteCmd, getOptionsToExecuteSnykCLICommand, ...
import {escapeRegExp} from './util'; import markedjs from './markedjsWrapper'; type SyntaxMapping = { textile: {open: string, close?: string, multiline?: boolean}, markdown: {open: string, close?: string}, }; function textileRegExpMaker(open: string, close: string, flag: string): RegExp { open = escapeRegExp(op...
<reponame>npsinr-elections/edison-booth<filename>src/server/model/elections.ts import * as zip from "adm-zip"; import { copyFile, mkdir, readdirSync, unlink } from "fs"; import Datastore = require("nedb"); import path = require("path"); import rimraf = require("rimraf"); import { generate } from "shortid"; import { pro...
/// <reference path='../typings/node/node.d.ts' /> 'use strict'; import * as td from './td'; import * as assert from 'assert'; import * as fs from 'fs'; type JsonObject = td.JsonObject; type JsonBuilder = td.JsonBuilder; import * as azureTable from "./azure-table" import * as azureBlobStorage from "./azure-blob-st...
<gh_stars>0 // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. // This module implements 'child_process' module of Node.JS API. // ref: https://nodejs.org/api/child_process.html import { ChildProcess, ChildProcessOptions, stdioStringToArray, } from "./internal/child_process.ts"; import { ...
import * as winston from 'winston'; import * as os from 'os'; import * as path from 'path'; import { IAppInfo, ILogger, ILoggerConfig, LogLevel } from './interfaces'; const outDir: string = path.join(os.homedir(), '.act-nodejs'); const fileTextFormat = winston.format.printf( ({ level, message, label, timestamp }) =>...
import type { TwitterUserEntities, LimitStatus, Limit, ReactionV2Kind, } from './background/twitter-api' const userNameBlacklist = [ 'about', 'account', 'blog', 'compose', 'download', 'explore', 'followers', 'followings', 'hashtag', 'home', 'i', 'intent', 'lists', 'login', 'logout...
<reponame>polygonjs/polygonjs<filename>src/core/Walker.ts import {BaseNodeType} from '../engine/nodes/_Base'; import {BaseParamType} from '../engine/params/_Base'; import {DecomposedPath} from './DecomposedPath'; import {NodeContext, BaseNodeByContextMap} from '../engine/poly/NodeContext'; import {NodeErrorState} from ...
import React, { Fragment, useState } from 'react'; import { Cropper } from "../Cropper/Cropper"; import Jimp from "jimp"; import path from 'path'; import axios, {AxiosResponse} from "axios"; import { ipcRenderer, desktopCapturer, shell, remote, screen, BrowserWindow, DesktopCapturerSource } ...
<reponame>Rodrigobrinate/stock-system-backend import { Injectable, Inject } from '@nestjs/common'; import { CreateSealDto } from './dto/create-seal.dto'; import { UpdateSealDto } from './dto/update-seal.dto'; //import { Seals } from './seals.interface'; import { Model } from 'mongoose'; import {Connection, createQueryB...
/** * Copyright 2021 Opstrace, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
<gh_stars>0 import { app, protocol, shell, dialog, clipboard, BrowserWindow, NewWindowWebContentsEvent, IpcMainInvokeEvent } from 'electron'; import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'; import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'; import { readdirSync, readFi...
import d from 'debug' import ejs from 'ejs' import { Request, RequestHandler, Router } from 'express' import fs from 'fs' import { Passport, Strategy as StrategyType } from 'passport' import path from 'path' import util from './util' const debug = d('superlogin') // tslint:disable-next-line:no-var-requires global.Pro...
import { Config, NehanElement, CssCascade, PositionValue, LogicalPadding, LogicalBorderWidth, LogicalBorderWidthKeywordSize, WritingMode, FontSizeKeywords, FontSizeKeywordsRelative, FontSizeKeywordSize, FontSizeKeywordRelativeSize, } from "./public-api"; export const CssLengthUnits = ["%", "em"...
/// <reference path="../../../typings/main.d.ts" /> import index = require("../../index"); import assert = require("assert"); import RamlWrapper = require("../artifacts/raml10parserapi"); import jsyaml = require("../jsyaml/jsyaml2lowLevel"); import yaml = require("yaml-ast-parser"); import hlimpl = require("../highLeve...
<filename>packages/web-api/src/services/discord.ts<gh_stars>1-10 import btoa from 'btoa'; import Discord, { TextChannel } from 'discord.js'; import FormData from 'form-data'; import fetch from 'node-fetch'; import type { UserDoc } from '@caravanapp/mongo'; import type { ReferralTier } from '@caravanapp/types'; import...
import { useEffect, useState } from "react"; import * as React from "react"; import { renderStepLabel } from "./Step"; import Modal, { ModalBody, ModalFooter, ModalHeader } from "../Modal"; import type { EditStepProps } from "./EditMockModal"; import LoadingIndicator from "../LoadingIndicator"; const JSON_PROP_TYPES =...
<gh_stars>0 /** Global system-wide Zebes presets and settings. */ export interface ZbsConfigHome { /** Environment variables to set when running actions. */ env?: {[name: string]: string}; /** Parse *.json files as strict JSON, not as permissive JSON5. */ strictConfigFormat?: boolean; /** Automatica...
<gh_stars>0 import { Client, Guild, GuildMember, Message, MessageEmbed } from 'discord.js'; import { SongData } from './apis/musicAPI'; import { Timezones } from './apis/timezoneAPI'; import { config, Config } from './config'; import { DataStore } from './database/DataStore'; import { ICommandManager } from './generic/...
<gh_stars>10-100 import {Iterable, Map as ImmutableMap} from 'immutable'; import {FormException} from './form-exception'; export interface Operations<T> { /// Shallow clone the object clone(): T; /// Clone and merge merge(key: number | string | null, value: T): any; /// Clone the object and update a speci...
import React, { useState, useEffect } from 'react' import Select from '../common/Select/Select' import { Progressing, useForm, showError } from '../common' import { DOCUMENTATION, PATTERNS } from '../../config' import { saveCIConfig, updateCIConfig, getDockerRegistryMinAuth } from './service'; import { getSourceConfig,...
<filename>mdil.d.ts export declare const mdilAccount: string; export declare const mdilAlarm: string; export declare const mdilAlarmPlus: string; export declare const mdilAlert: string; export declare const mdilAlertCircle: string; export declare const mdilAlertOctagon: string; export declare const mdilArrangeBri...
<gh_stars>10-100 import { IToken } from 'chevrotain'; import { FieldFunctionExpression, FieldRelationship, FieldRelationshipWithAlias, FieldSubquery, FieldWithAlias, GroupByFieldClause, GroupByFnClause, HavingClauseWithRightCondition, LiteralType, NegationCondition, OrderByFieldClause, OrderByFn...
<filename>lib/config.ts<gh_stars>10-100 /* * Copyright © 2019 Atomist, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
<gh_stars>1-10 // Copyright (c) Microsoft Corporation // All rights reserved. // // 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 restriction, including // without l...
<filename>src/component.ts import { setAccessor, gather, extend, setAccessorSelf } from "./dom"; import { render } from "./index"; import { idiff } from "./diff"; const NODE_CACHE = new Map<string, Array<Element | Node>>(); const inNodeCache = (dom: Element) => { return NODE_CACHE.has(dom.nodeName.toLowerCase());...
<reponame>fuag15/aardvark<filename>packages/aardvark-shared/src/aardvark.ts import { AABB, AardvarkManifest, AvSharedTextureInfo, EHand, EndpointAddr, Permission } from './aardvark_protocol'; export interface AvTraversalRenderer { (): void; } export interface AvHapticProcessor { ( globalNodeId: string, amplitude: nu...
import {Dropbox, DropboxAuth, DropboxResponse, files} from "dropbox"; import localforage from "localforage"; import {imageStorage} from "./ImageStorage"; import {config} from "../config"; import {FileSync, IFileSet, IFileStatusEntry, IFileSyncStatus} from "../utils/FileSync"; import ILayer from "../ILayer"; const CLIE...
import { of, Subject } from "rxjs"; import { ClassDeclaration, ConstructorDeclaration, Decorator, ImportDeclaration, ImportSpecifier, MethodDeclaration, NamedImports, Node, ObjectLiteralExpression, ParameterDeclaration, printNode, PropertyAccessExpression, PropertyAssignment, SourceFile, S...
/* Copyright (c) 2019, because-why-not.com Limited 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 conditions and ...
import { createEvent, IAggregateIdentifier, IDomainEvent } from '@eskit/core'; import fs from 'async-file'; import path from 'path'; import FileEventStore from './FileEventStore'; import InMemoryEventStore from './InMemoryEventStore'; import { IEventStore, IEventStoreOptions, IInMemoryEventStoreOptions } from ...
<reponame>gregdhill/xopts import { ethers } from "@nomiclabs/buidler"; import { Signer, ContractTransaction } from "ethers"; import { Obligation } from "../typechain/Obligation"; import { OptionPairFactory } from "../typechain/OptionPairFactory"; import { BigNumberish, Arrayish, BigNumber } from "ethers/utils"; import ...
<reponame>bright/bright-tresury import { Inject, Injectable, OnModuleDestroy } from '@nestjs/common' import { ApiPromise } from '@polkadot/api' import Extrinsic from '@polkadot/types/extrinsic/Extrinsic' import { EventRecord, Header } from '@polkadot/types/interfaces' import { extractTime } from '@polkadot/util' import...
import Component from "@/views/PureComponent"; import Grid, { State as RootState } from "@/grid"; import { connect, withGrid } from "@/views/root"; import { Menu } from "@/views/menu"; import { CellPosition, Coordinate, MenuItem } from "@/types"; import CellRange from "@/selection/CellRange"; import { Button } from "@/...
/* * 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 may no...