text
stringlengths
3.08k
15.5k
import { Observable, throwError as _observableThrow, of as _observableOf, observable } from 'rxjs'; import { mergeMap as _observableMergeMap, catchError as _observableCatch } from 'rxjs/operators'; import { Http, Headers, Response } from '@angular/http' import { SwaggerException } from '@shared/service-proxies/service-...
<filename>packages/builder-web-react/react-styled-component-widget/react-styled-components-module-builder.ts import { stringfy } from "@coli.codes/export-string"; import { ScopedVariableNamer } from "@coli.codes/naming"; import { ReservedKeywordPlatformPresets } from "@coli.codes/naming/reserved"; import { NoStyleJSX...
<gh_stars>0 // Models import { Tokens, Credentials } from '@models'; // Others import api from './api'; import { objectID } from '@helpers/uid'; import { encrypt, decrypt } from '@helpers/crypto'; import { generateRefreshToken, generateAccessToken } from './generate-token'; import stringizeScopes from './stringize-sco...
<reponame>banlify/vue-devui<filename>packages/devui-vue/devui/anchor/src/util.ts<gh_stars>1-10 let repeatCount = 0; let cTimeout; const timeoutIntervalSpeed = 10; let hashName: string; // 滚动是由于点击产生 let scollFlag = false; function elementPosition(obj: HTMLElement) { let curleft = 0, curtop = 0; curleft = obj.offsetL...
<gh_stars>10-100 import { v4 as uuid } from 'uuid'; import Tree, { TreeInternalNode, TreeNode, TreePath } from '../utils/tree'; import { InvalidArgError } from '../utils/errors'; import { getParentPath } from '../utils/path-utils'; export type FileBlob = { contentToken: string; version: number; }; export type Fil...
<gh_stars>0 import { IRoute, Router, Response, NextFunction } from 'express'; import * as flattenDeep from 'lodash.flattendeep'; import * as isPromise from 'is-promise'; import * as httpMethods from 'methods'; import { PromiseRouterOptions, ResponseHandler, ErrorHandler } from './interfaces' class PromiseRouter { ...
<reponame>cucumber/language-service<filename>src/language/csharpLanguage.ts<gh_stars>1-10 import { StringOrRegExp } from '@cucumber/cucumber-expressions' import { LocationLink } from 'vscode-languageserver-types' import { createLocationLink, makeParameterType, stripQuotes } from './helpers.js' import { Language, Param...
<reponame>peng-xiao-shuai/vite-vue-admin<gh_stars>10-100 import TYPE from "../type/userType"; import Cookies from "js-cookie"; import { getUser, login } from "@/api/logins"; import router, { addRouter as asyncRouter, Routers} from "@/router/index"; import { RouteRecordRaw } from 'vue-router'; import { Store } from 'vue...
<filename>tests/app/csv.test.ts import { DateTime } from "luxon"; import { BroadcastTimeZone } from "@viacomcbs/broadcast-calendar"; import { isRight, isLeft } from "fp-ts/lib/Either"; import { CsvRowFromPublisher, validateItemsWeeklyRates, } from "../../src/app/csv/validator"; import { NetworkFromString } from ".....
import { environment } from './../../environments/environment'; import { IncidentService } from './../incident.service'; import { Component, OnInit, Input } from '@angular/core'; import { ThingService } from 'app/thing.service'; const signalR = require("@aspnet/signalr"); @Component({ selector: 'wind-speed', templ...
/* * Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC. */ // import { BigNumber } from 'bignumber.js'; import * as d3 from 'd3'; import { ScaleLinear } from 'd3-scale'; import { BaseType, Selection } from 'd3-selection'; import * as React from 'react'; import { createElement } from 'react-faux-dom'; import *...
import React, { useState, useMemo, useCallback, useEffect } from 'react'; import { StyleSheet, View, Text, TouchableOpacity, ViewProps, ViewStyle, Platform, ColorValue, } from 'react-native'; import dayjs, { Dayjs } from 'dayjs'; import localeData from 'dayjs/plugin/localeData'; import isTo...
/** * Copyright 2018 ZenyWay S.A.S., <NAME> * @author <NAME> * @license Apache Version 2.0 * * 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....
<filename>src/internal/gamemap.ts import { Game, GamePlayer } from "./game"; import { GameState, GameStateType } from "./gamestate" // The GameMap class represents the base level of a map that can be played // It holds common attributes and methods that don't change across maps // It is used in combination with the IG...
import { isDate, isNormalObject, isUrlSearchParams } from './util-helper' /** * * * @export * @param {string} url txios 传入的 url * @param {*} [params] txios 传入的 params 参数 * @description 该函数的目的是把 params 拼接到 url 上重建 url 方便服务端解析 * 这里主要需要处理几种情况 * 1. 普通情况 * url = '/base/get' params = {a: 1, b: 2} * 最终结果是 /ba...
<filename>src/day16/index.ts<gh_stars>1-10 import { readInput, test } from "../utils" const prepareInput = (rawInput: string) => rawInput const input = prepareInput(readInput()) interface Packet { version: number; typeId: number; literal?: number; subPackets?: Packet[]; } const parseHexaDecimalToBinary = (l...
/** * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * 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...
<filename>src/hooks/useVersionTaskStatusSelect.ts import { useEffect, useReducer } from "react"; import { GroupedBuildVariant } from "gql/generated/types"; import { usePrevious } from "hooks"; export interface selectedStrings { [id: string]: boolean | undefined; } export type versionSelectedTasks = { [id: string]...
<filename>src/services/custom-validation-func.ts<gh_stars>1-10 import { Validator } from "../commands/validate"; import _ from 'lodash'; import { OCResourceEnum } from "../models/oc-resource-enum"; import { SerializedMarketplace } from "../models/serialized-marketplace"; export type RecordValidationFunc = (record: any...
<filename>src/adapter.ts import { Helper, Model, FilteredAdapter } from 'casbin' import * as redis from 'redis' import { promisify } from 'util' interface IConnectionOptions { host: string port: number } class Line { p_type: string = '' v0: string = '' v1: string = '' v2: string = '' v3: s...
import * as React from 'react'; import {classNames, variationName} from '@shopify/react-utilities/styles'; import {isElementOfType} from '@shopify/react-utilities/components'; import {autobind} from '@shopify/javascript-utilities/decorators'; import {createUniqueIDFactory} from '@shopify/javascript-utilities/other'; i...
<filename>src/lib/cli.ts import { program } from "commander"; import treeify from "treeify"; import { version } from "../version.json"; import Bluetooth from "./bluetooth"; import { ConfigManager } from "./config"; import * as factory from "../factory"; import logger from "./logger"; import * as prompts from "./prompt...
/* This example requires Tailwind CSS v2.0+ */ import { Fragment, useState, useEffect } from 'react' import { Dialog, Transition } from '@headlessui/react' // import { CheckIcon } from '@heroicons/react/outline' import { shortenAddress, getSigner } from '../utils' import { Web3Provider } from '@ethersproject/providers'...
import {ISBFObservable} from "../../../../simplebindingframework/src/common/interfaces"; export type JWDataType = "string" | "number" | "boolean" | "object" | "date" | "time" | "currency"; export type JWComparisonOperator = "=" | ">" | ">=" | "<" | "<=" | "!=" | "startsWith" | "endsWith" |"contains"; export type JWLog...
import BaseWidget = require('core/BaseWidget.class'); import Functions = require('core/Functions.module'); export = HalfPanel; class HalfPanel extends BaseWidget { baseClass: string = "widget-halfpanel"; panelTitle: string; panelUniqClassName: string; innerWidgetPath: string; innerWidgetMain: st...
import React, { FC, useEffect, useState } from 'react'; import Button from '../../components/Common/Button/button.component'; import { buttonTypes } from '../../components/Common/Button/button.types'; import { useGetAllReservationRoomsLazyQuery, useGetAllRoomsReservationLazyQuery, } from '../../generated/graphql'; ...
<filename>src/generals/procesamientos.ts import { EDITAR, GUARDAR } from "@/services/crud"; import Swal from "sweetalert2"; import { SUBIR_ARCHIVO } from "@/services/almacenamiento"; import { BUSCAR_USUARIO_ACTUAL } from "@/services/usuarios"; export const CAPTURAR_CAMPOS: any = async (item: any, campos: any) => { c...
/** 仮想DOM d3.js D3-CloudはDOMがある前提なのでNode.js実行時でも正常動作するように仮想Canvasを使う */ import { createCanvas } from 'canvas' /** 仮想DOM d3.js D3-CloudはDOMがある前提なのでNode.js実行時でも正常動作するように仮想DOMを使う */ import { JSDOM } from 'jsdom' import kuromoji from 'kuromoji' import * as d3 from 'd3' import d3Cloud, { Word } from 'd3-cloud' import { Wor...
import { defineStore } from 'pinia'; import { computed, readonly, ref } from 'vue'; import type { Ref } from 'vue'; import { Character, CharacterSaveData } from '@/lib/Character/Character'; import { CharacterEquipment, EquipmentSaveData } from '@/lib/Character/CharacterEquipment'; import { FoodsSaveData } from '@/lib...
<reponame>joshmarsh/federation<gh_stars>0 import { FieldNode, GraphQLField, GraphQLObjectType, GraphQLSchema, GraphQLNamedType, } from 'graphql'; import { FederationEntityTypeMetadata } from '../composedSchema'; import { FieldSet } from '../FieldSet'; import { getResponseName } from '../utilities/graphql'; im...
<reponame>marinrusu1997/thermopylae import qrcode from 'qrcode'; import type { RequireSome } from '@thermopylae/core.declarations/lib'; import type { AuthenticatorOptions } from '@otplib/core'; import { Authenticator } from '@otplib/core'; import { createDigest, createRandomBytes } from '@otplib/plugin-crypto'; import ...
"use strict"; import { app, BrowserWindow, ipcMain, nativeImage, protocol } from "electron"; import installExtension, { VUEJS_DEVTOOLS } from "electron-devtools-installer"; import { existsSync, statSync } from "fs"; import { writeFile } from "fs-extra"; import { tmpdir } from "os"; import { basename, join, resolve } f...
<filename>src/babylon.ts<gh_stars>0 import { Engine, Scene, ArcRotateCamera, Vector3, CubeTexture, Color4, Mesh, StandardMaterial, Texture, Color3, GlowLayer, AbstractMesh, Material } from '@babylonjs/core'; //import '@babylonjs/inspector'; export let canvas: HTMLCanvasElement export let engine: Engine export let scen...
<gh_stars>10-100 import { t } from 'ttag'; import fetch from '../../../lib/fetch'; import get from 'lodash/get'; import config from '../../../lib/config'; import { trackingEventBackend } from '../../../lib/TrackingEventBackend'; import { wheelmapFeatureCache } from '../../../lib/cache/WheelmapFeatureCache'; import { wh...
<reponame>anodynos/permissions<gh_stars>1-10 import * as _ from 'lodash'; import { PermissionDefinition, PermissionDefinitionDefaults } from '../PermissionDefinitions'; import { isOwner_isDocCreatedByMeAndMyCompanyUsers, isOwner_isDocCreatedByMeAndMyManagedUsers, isOwner_isUserCreatorOfDocument, limitOwned_Docs...
<gh_stars>0 import { ExtensionContext, FormattingOptions, OutputChannel, Range, TextDocument, Uri, window, workspace, } from 'coc.nvim'; export function escapeRegExp(str: string): string { return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '$&'); } type FormatConfVal = number | 'relative'; i...
/* eslint-disable import/first -- __webpack_public_path__ needs to be set before imports */ /* eslint-disable no-undef, @typescript-eslint/no-explicit-any, no-underscore-dangle */ const staticAssetsBaseURL = (window as any).__STATIC_ASSETS_BASE_URL__; if (staticAssetsBaseURL !== '/') { __webpack_public_path__ = stati...
<reponame>oaao/unigraph-dev /** * Test file for entity-related functions and data models. * For the tests used, check out testEntities.json. */ const { buildUnigraphEntity, processAutoref, processAutorefUnigraphId, makeQueryFragmentFromType, unpad } = require('../utils/entityUtils'); const testEntities_1 = require('...
import { h, createElement } from 'preact' import { useState, useEffect, useMemo, useCallback } from 'preact/hooks' import * as okanvas from '../src/okanvas' import { useFileToBase64 } from './files' function getPedal( p: okanvas.Vector, base: okanvas.Vector, vec: okanvas.Vector ): okanvas.Vector { const v1 = v...
<reponame>UnaryPlus/forces-at-play import p5 from 'p5' import { D4, D2, DRot, Force } from './direction' import { Kind, State, chooseState } from './state' function rectColor(k:Kind, selected:boolean) : string { if(selected) { switch(k) { case 'empty': return '#DDDDDD' //white case 'wall': case 'box...
<gh_stars>1-10 //import { StructureTaskRequest } from "tasks/StructureTaskRequest"; //import { CreepTaskRequest2 } from "tasks/CreepTaskRequest"; //import { StructureTaskRequest } from "tasks/StructureTaskRequest"; import * as utils from "utils/utils"; import { getRoomType } from "utils/utils"; export const MemoryVersi...
// tslint:disable-next-line: no-var-requires const AWSXRay = require('aws-xray-sdk'); // tslint:disable-next-line: no-var-requires const AWS = AWSXRay.captureAWS(require('aws-sdk')); import { AWSError } from 'aws-sdk'; // Only used as a type, so not wrapped by XRay import { DocumentClient } from 'aws-sdk/lib/dynamodb/d...
import React, { useState, useEffect, useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import Form from 'react-bootstrap/Form'; import InputGroup from 'react-bootstrap/InputGroup'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faEye, faEyeSlash, faLongArrowAltRigh...
<gh_stars>0 import { Commands } from '../../commands/commands'; import { Definition } from '../../commands/definition'; import { ContextOfButton } from '../../context/context-of-button'; import { ButtonConfig } from './button-config'; import { ToolbarConfig } from '../toolbar/toolbar-config'; import { GroupConfig } fr...
import { Ease } from './Ease'; import { Erp } from './Interpolator'; import * as PIXI from 'pixi.js'; import { TweenManager } from './TweenManager'; export interface TweenTarget<T> { [key: string]: T; } /** * Holds the information needed to perform a tweening operation. It is used internally * by `PUXI.tween.Tw...
import { ResourceBase, ResourceTag } from '../resource'; import { Value, List } from '../dataTypes'; export declare class CustomRequestHandling { InsertHeaders: List<CustomHTTPHeader>; constructor(properties: CustomRequestHandling); } export declare class ManagedRuleGroupStatement { Name: Value<string>; ...
import { loader } from '../lib/loader' const toHeatMap = (map: string[]): number[][] => map.map((s) => s.split('').map((s) => parseInt(s, 10))) const example = toHeatMap([ '2199943210', '3987894921', '9856789892', '8767896789', '9899965678', ]) const input = toHeatMap(loader(9)('input')) type Point = { level...
import notifee, {AndroidStyle, Notification} from '@notifee/react-native'; import AsyncStorage from '@react-native-community/async-storage'; import messaging, { FirebaseMessagingTypes, } from '@react-native-firebase/messaging'; import {NavigationContainer} from '@react-navigation/native'; import {createStackNav...
import { Rank, tensor, Tensor, io, setBackend, env } from '@tensorflow/tfjs-core'; import { GraphModel, loadGraphModel } from '@tensorflow/tfjs-converter'; import '@tensorflow/tfjs-backend-cpu'; export interface ModelResult { languageId: string; confidence: number; } class InMemoryIOHandler implements io.IOHandle...
import { ElectronService } from './core/services/electron/electron.service'; import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { combineLatest, Observable, ReplaySubject } from 'rxjs'; import { map, tap } from 'rxjs/operators'; import { ChartData } from 'chart.js'; ...
/** * Discord Debate Timer * * @license BSD-3-Clause * @version 1.9.3 * @author <NAME> luke-zhang-04.github.io/ * @copyright 2020 - 2021 <NAME> */ import {GoogleSpreadsheet} from "google-spreadsheet" import dotenv from "dotenv" import {maxMotions} from "../getConfig" import {randint} from "../utils" if (!proce...
import { Component, OnInit, Input } from '@angular/core'; import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms'; import { PatientRegistration } from '../model/PatientRegistration'; import { Person } from '../model/Person'; import { Address } from '../model/Addess'; import { City } from '../mo...
import { CommandResponse } from "@slapdash/command-response-types"; import { VercelRequest, VercelResponse } from "@vercel/node"; import { format } from "fecha"; import fetch, { Response } from "node-fetch"; import * as icons from "../../slapdash/icons"; import compact from "../../utils/compact"; import formatNumber fr...
<filename>src/form/b-textarea/b-textarea.ts /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ import symbolGenerator from 'core/symbol'; import bScrollInline from 'base/b-scroll/b-scroll-inline/b-scroll-inline'...
import _ from 'lodash'; import { Metric } from 'common/metricEnum'; import { Projection, Column } from 'common/models/Projection'; import { Projections } from 'common/models/Projections'; import { fail, assert } from 'common/utils'; import { MetroArea } from 'common/regions'; export enum SortType { ALPHABETICAL, P...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------*/ import AdmZip = require('adm-zip'); impor...
/// <reference path="../../built/pxtlib.d.ts"/> import * as React from "react"; import * as ReactDOM from "react-dom"; import { ImageFieldEditor } from "./components/ImageFieldEditor"; export interface EditorBounds { top: number; left: number; width: number; height: number; } export interface FieldE...
<gh_stars>0 import { AzureFunction, Context } from "@azure/functions" import { createLogObject } from "../shared/createLogObject"; import { createLogBlob } from "../shared/createLogBlob"; import { createCallbackMessage } from "../shared/createCallbackMessage"; import { createEvent } from "../shared/createEvent"; import...
<reponame>egessel/omegaup import { Case, CaseGroupID, Group, CaseLine, RootState, GroupID, LineID, CaseRequest, } from '../types'; import { Module } from 'vuex'; import { NIL as UUID_NIL, v4 as uuid } from 'uuid'; import Vue from 'vue'; export interface CasesState { groups: Group[]; selected: CaseGr...
import hre, { ethers } from "hardhat"; import { IERC20Minimal__factory } from "../../../typechain"; import { BigNumber as BN } from "ethers"; export const DEAD_ADDRESS = "0x0000000000000000000000000000000000000001"; export const ZERO_ADDRESS = ethers.constants.AddressZero; export const DEFAULT_DECIMALS = 18; export ...
/** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors ma...
import { GetServerSideProps } from "next"; import Head from "next/head"; import Link from "next/link"; import prisma, { whereAndSelect } from "@lib/prisma"; import Avatar from "@components/Avatar"; import Theme from "@components/Theme"; import { ClockIcon, InformationCircleIcon, UserIcon } from "@heroicons/react/solid"...
import * as CSS from 'csstype'; const Color = require('color'); import { Data } from 'geostyler-data'; import { LevelOfMeasurement } from 'src/Component/RuleGenerator/RuleGenerator'; import { Rule, Filter, SymbolizerKind, Symbolizer, WellKnownName } from 'geostyler-style'; import SymbolizerUtil from './Symb...
import { clearHASState, showHASInitRequestAsTreated, updateInstanceConnectionStatus, } from 'actions/hiveAuthenticationService'; import assert from 'assert'; import SimpleToast from 'react-native-simple-toast'; import {HAS_State} from 'reducers/hiveAuthenticationService'; import {RootState, store} from 'store'; i...
<filename>src/index.ts<gh_stars>1-10 import { BigNumber } from "@ethersproject/bignumber"; import { JsonRpcProvider } from "@ethersproject/providers"; import { formatEther, parseEther } from "@ethersproject/units"; import { Wallet } from "@ethersproject/wallet"; import { blue, green, red } from "chalk"; import { clear ...
import { Component, OnInit, Input } from '@angular/core'; import { Departement } from '../Models/departement'; import { ActivatedRoute, Router } from '@angular/router'; import { isUndefined } from 'util'; import { DepartementsService } from './departements.service'; import { NgbModal, NgbActiveModal } from '@ng-bootstr...
<filename>src/public/js/domains/model/randomizer/randomizeItems.ts<gh_stars>1-10 import assert from 'assert'; import seedrandom, { prng } from 'seedrandom'; import Script from '../../util/scriptdat/data/Script'; import createSource from '../dataset/createSource'; import Item from '../dataset/Item'; import Spot from '.....
<reponame>lucasberent/mapleDocs<gh_stars>1-10 import {Component, ElementRef, OnInit, ViewChild} from '@angular/core'; import {Router} from '@angular/router'; import {Ajv} from 'ajv'; import {MadmpService} from '../../service/madmp.service'; import {HttpClient} from '@angular/common/http'; import {CreateMaDmpDto} from '...
<gh_stars>0 import { GraphQLUnionType, GraphQLObjectType, GraphQLResolveInfo, GraphQLTypeResolver, } from 'graphql'; import { SchemaComposer } from './SchemaComposer'; import { ObjectTypeComposerThunked, ObjectTypeComposerFieldConfig, ObjectTypeComposerFieldConfigMap, ObjectTypeComposerDefinition, Obj...
<reponame>jonkjenn/unleash<filename>src/lib/metrics.ts import client from 'prom-client'; import EventEmitter from 'events'; import { Knex } from 'knex'; import * as events from './metric-events'; import { DB_POOL_UPDATE, FEATURE_ARCHIVED, FEATURE_CREATED, FEATURE_REVIVED, FEATURE_STRATEGY_ADD, F...
import PageTitle from '@/components/PageTitle' import { checkDependencies, compileTemplateLiterals } from '@/components/util' import { qsParse, qsStringify } from '@/util' import { Button, Layout, message, Table } from 'antd' import React from 'react' import { RouteComponentProps } from 'react-router' import { Link } f...
import { IMapService, IMarker, TYPES } from '@antv/l7-core'; import { bindAll, boundsContains, DOM, IBounds, padBounds, Satistics, } from '@antv/l7-utils'; import { EventEmitter } from 'eventemitter3'; import { Container } from 'inversify'; import { merge } from 'lodash'; // @ts-ignore // tslint:disable-nex...
<gh_stars>0 import * as ko from "knockout"; import * as _ from "lodash"; import { toModifierString } from "../../common/Toolbox"; import { CombatantCommander } from "../Commands/CombatantCommander"; import { ConcentrationPrompt } from "../Commands/Prompts/ConcentrationPrompt"; import { DefaultPrompt, LegacyPrompt } fr...
<reponame>a-sore/nostromo<filename>modules/browsers/chromium.ts import puppeteer from 'puppeteer'; import type { IBrowser } from './browser-interface'; import { ChildLogger, logger } from '../../src/logging/logger'; const delay = require('../delay/delay'); const DEFAULT_OPTIONS = { name: 'chromium', headless: tru...
import { Scene, Fog, PerspectiveCamera, Mesh, PlaneGeometry, MeshBasicMaterial, CylinderGeometry, BufferGeometry, Vector3, Line, LineBasicMaterial, Float32BufferAttribute, WebGLRenderer, } from "three"; import { realisticAbsoluteCameraControl } from "./Controllers"; import Tracker from "./Tra...
<reponame>athackr/chakra-ui import { useBoolean, useControllableProp, useSafeLayoutEffect, } from "@hackr/chakra-ui-hooks" import { callAllHandlers, dataAttr, mergeRefs, PropGetter, } from "@hackr/chakra-ui-utils" import { visuallyHiddenStyle } from "@hackr/chakra-ui-visually-hidden" import React, { Cha...
<gh_stars>0 /** * Copyright 2019 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 app...
import * as React from 'react' import { withStyles, Theme, StyleRulesCallback } from '@material-ui/core/styles' import withRoot from '../../../../withRoot' import { withRouter, RouteComponentProps } from 'react-router-dom' import { PersonaField, Persona as PersonaType, PersonaSpec } from '../../types/persona' import Bu...
import { CmsContext, CmsEntry, CmsModel, CmsModelField } from "~/types"; import WebinyError from "@webiny/error"; import dotProp from "dot-prop"; interface ReferenceObject { id: string; modelId: string; } interface Params { context: CmsContext; model: CmsModel; input: Record<string, ReferenceObjec...
import React from "react"; import "./style/flowchart_builder_canvas.css"; import FlowchartBlock from "./FlowchartBlock"; import {TM_FB_CANVAS_HEIGHT, TM_FB_CANVAS_UNIT, TM_FB_CANVAS_WIDTH} from "../../Constants"; /** * The handler for the canvas position. This class is responsible for * handling dragging within the...
<reponame>hinogi/scriptified.dev<gh_stars>0 import axios from 'axios'; import { IssueAPIResponse } from '../interfaces/api'; import { Issue } from '../interfaces/issue'; import { convertDate } from '../utils'; import cloneDeep from 'lodash/cloneDeep'; import SAMPLE_ISSUE from './sampleIssue'; const ASSETS_URL = 'https...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in https://github.com/kriasoft/react-starter-kit. */ import path from 'path'; import express from 'ex...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import produce from 'immer'; import querystring from 'querystring'; import { ...
<gh_stars>0 // prettier-ignore import { State, StateGroup, Computed, Collection, GroupObj, DefaultDataItem, SelectorObj, Config, SubController, Runtime, Storage, Event, EventPayload, EventConfig, EventsObjFunc, StorageConfig, API, APIConfig, Group, Controller, ControllerConfig, FuncObj, StateObj, StatusTracker, Integra...
<filename>src/compile/selection/transforms/project.ts import {array} from 'vega-util'; import {isSingleDefUnitChannel, ScaleChannel, SingleDefUnitChannel} from '../../../channel'; import * as log from '../../../log'; import {hasContinuousDomain} from '../../../scale'; import {SelectionInit, SelectionInitInterval} from ...
import "isomorphic-fetch"; import * as cors from "cors"; import * as express from "express"; import * as path from "path"; import * as yargs from "yargs"; import * as ejs from "ejs"; import * as helmet from "helmet"; import addJwtSecretFromEnvVar from "@magda/typescript-common/dist/session/addJwtSecretFromEnvVar"; im...
import { Rendertron } from './rendertron'; import fetch from 'node-fetch'; import * as urlUtils from 'url'; import { isValidUrl } from './urlUtils'; import { createFile } from './fileUtils'; import * as async from 'async'; import microleaseSample from './microlease.com.sample'; // import electrorentSample from './elect...
<gh_stars>1-10 /* * 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 * "Licens...
import * as execa from 'execa'; import * as fs from 'fs-extra'; import * as detectPort from 'detect-port'; import * as path from 'path'; import * as terminate from 'terminate'; import * as os from 'os'; import chalk from 'chalk'; import * as ipc from './ipc'; import { getCLIConf, setCLIConf, mergeCLIConf } from '../../...
import { Vec3, Quat, NumberParameter, Vec3Parameter, ListParameter, StructParameter, Operator, OperatorOutputMode, Registry, XfoOperatorOutput, } from '@zeainc/zea-engine' /** Class representing a gear parameter. * @extends StructParameter */ class GearParameter extends StructParameter { __rati...
<gh_stars>1-10 import { DataTransformerID } from './ids'; import { DataTransformerInfo } from '../../types/transformations'; import { DataFrame, Field, FieldType } from '../../types/dataFrame'; import { omit } from 'lodash'; import { ArrayVector } from '../../vector/ArrayVector'; import { MutableDataFrame, sortDataFram...
<reponame>popematt/ion-hash-js /* * Copyright 2019 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://www.apache.or...
import * as fse from 'fs-extra'; import * as path from 'path'; import type { IApi } from 'umi'; import { utils } from 'umi'; import { getAbsOutputDir, getMainSrc, getNodeModulesPath, getPreloadSrc, getRootPkg } from './utils'; import { runBuild, runDev } from './compile'; import { ElectronBuilder } from './types'; impo...
<gh_stars>0 import p2, { Body, Box, World } from 'p2'; import { CAR_MASK, CHECKPOINT_MASK, DEFAULT_TRACK_WIDTH, SENSOR_MASK, Vector2, WALL_MASK, WALL_THICKNESS, } from './constants'; import { wrappedModulo } from './utils'; export interface Checkpoint extends Body { index: number; trackSegmentLength...
import * as essentials from 'witness-essentials-package' import _g = require('./_g') const config = _g.config interface Options { node?: string retries?: number set_properties?: boolean } export const update_witness = async ( current_signing_key: string, transaction_signing_key: string, props: essentials...
<gh_stars>1-10 import { Message, Client, GuildMember, MessageOptions, MessageEmbedOptions, InteractionReplyOptions, CommandInteraction, CacheType } from "discord.js"; import { SlashCommandBuilder, SlashCommandStringOption, SlashCommandSubcommandBuilder } from "@discordjs/builders"; import { ApplicationCommand, CommandR...
import { IconCommonSetting } from '@app/assets/icons' import IconButton from '@app/components/kit/IconButton' import { useBlockTranscations } from '@app/hooks/useBlockTranscation' import { useSideBarVariableEditor } from '@app/hooks/useSideBarQuestionEditor' import { ThemingVariables } from '@app/styles' import { Edito...
import scrollIntoView from 'dom-scroll-into-view'; import * as PropTypes from 'prop-types'; import raf from 'raf'; import Menu from 'rc-menu'; import toArray from 'rc-util/lib/Children/toArray'; import * as React from 'react'; import { findDOMNode } from 'react-dom'; import { renderSelect, valueType } from './PropTypes...
import { Either, left, right } from 'fp-ts/lib/Either' import * as fs from 'fs-jetpack' import * as path from 'path' import { addHook } from 'pirates' import slash from 'slash' import * as sourceMapSupport from 'source-map-support' import * as ts from 'typescript' import { Layout } from './layout' import { rootLogger }...
/// <reference types="node" /> import { Transaction } from './transaction'; import { NetworkImpl } from './network'; import { ContractListener, ListenerOptions } from './events'; import { DiscoveryHandler } from 'fabric-common'; import { Gateway } from './gateway'; export interface DiscoveryInterest { name: string;...