text
stringlengths
3.3k
33k
export function ToChars(s: string): string[] { return Array.from(s) } // Atom is the basic unit in Lisp // it could be a number or a symbol export interface Atom<T> { value: T } // General form of an ATOM type AUT = Atom<string> | Atom<number> | Atom<boolean> export function ParseAtom(s: string): AUT { s = s.tri...
import { Branch } from '../../companies/entities/Branch.entity'; import { Company } from '../../companies/entities/Company.entity'; import { Customer } from '../../customers/entities/Customer.entity'; import { CustomerBranch } from '../../customers/entities/CustomerBranch.entity'; import { logDatabaseError, numeroALetr...
import React, { useCallback, useEffect, useRef, useState } from "react"; import { IRuntimeQuestionComponentProps } from "../../shared/components/base-question-app"; import { IAuthoredState, IDraggableItem, IDroppedItem, IDropZone, IInitialState, IInteractiveState, IPosition, ItemId, TargetId } from "./types"; import { ...
import { Author, AuthorRepository, Document, DocumentRepository, CreateDocumentInput, UpdateDocumentInput, ValidationError, NotFoundError, validateDocument } from "@/domain"; import { sortById } from "@/test/__utils__/sorting"; const INVALID_OBJECTS = [null, undefined, NaN, 123, '', 'a string']; con...
import assert = require("assert"); import generator = require("../lib/generator"); import pitcher = require("../lib/runtime"); import { Module, ModuleGraph } from "../modules/run"; import fs = require("fs"); import * as ts from "typescript"; import path = require("path"); import utils = require("../lib/generator-utils...
/** * @license * * Copyright 2019 Google LLC. 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 req...
/** * @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 {LContainer} from '../interfaces/container'; import {AttributeMarker, TAttributes, TNode, TNodeType} from '../interf...
import * as React from 'react'; import { InputFieldLayout } from '../InputFieldLayout'; import classNames from 'classnames'; import withStyles, { WithStyles } from 'react-jss'; import styles from './MultiSelectField.styles'; import { defaultFormContextValues, FormContext } from '../Form'; import { CheckboxField } from ...
import { Runtime, RuntimeType } from '../runtime/Runtime'; import { Base64 } from '../utils/Base64'; import { CRC32 } from '../utils/CRC32'; export class ApngData { width: number; height: number; duration: number = 0; numPlays: number = 0; frames: ApngFrame[] = []; } export class ApngFrame { left: number ...
import * as GoogleSignIn from 'expo-google-sign-in'; import * as Google from 'expo-google-app-auth'; import { Platform, Alert } from 'react-native'; import AsyncStorage from '@react-native-community/async-storage'; import uuidv4 from 'uuid/v4'; import dayjs from 'dayjs'; import advancedFormat from 'dayjs/plugin/advance...
<reponame>CaioDev1/ecommerce interface IHandleMultistepForm { formDOM: string, stepsButtons: { dom: string, nextBtn: string, backBtn: string }, callback?: (isNextStep: boolean) => void } class InterfaceController { constructor(page: string) { this.handleLoadingIma...
<filename>src/services/DfusionService.ts import Web3 from 'web3' import NodeCache from 'node-cache' import { Logger, ContractEventLog, tokenList, Erc20Contract, BatchExchangeContract, } from '@gnosis.pm/dex-js' import { Subscription } from 'web3-core-subscriptions' import { TcrContract } from '@gnosis.pm/dex...
import { ChainClientFactory, SimpleTransferTransaction } from "ferrum-chain-clients"; import { Injectable, Logger, LoggerFactory, Network, ValidationUtils } from "ferrum-plumbing"; import { Big } from 'big.js'; import { BridgeProcessorModule } from "./BridgeProcessorModule"; import { LambdaGlobalContext } from "aws-lam...
import React, { useState, useRef } from 'react'; import { StatusBar, ScrollView } from 'react-native'; import { useForm } from 'react-hook-form'; import * as Yup from 'yup'; import { yupResolver } from '@hookform/resolvers/yup'; import { useNavigation, useRoute } from '@react-navigation/native'; import LottieView from ...
<filename>src/renderer/functions/gitGraph.ts<gh_stars>0 // ! ### - Git Graph related functions - ### // ------------------------- // --- SimpleGit Imports --- // ------------------------- import gitP, {SimpleGit} from 'simple-git/promise'; import { Graph } from "react-d3-graph"; // -------------------- // --- Type...
//Simulation quality - the number of milliseconds between calculating the positions of bodies (dt) enum ParachuteSimulationQuality { //Very high numbers because low dts can send things like the resultant force to infinity, //breaking the graph VeryLow = 10, Low = 5, Medium = 2, High = 1, VeryHigh = 0.5 } //What...
<reponame>rodgomesc/react-native-modal import * as React from 'react'; import { Animated, EmitterSubscription, PanResponderGestureState, PanResponderInstance, StyleProp, ViewStyle, ViewProps, } from 'react-native'; import * as PropTypes from 'prop-types'; import * as animatable from 'react-native-animatab...
import * as yup from 'yup'; import type { ConfigOptions, PluginOptions } from './types'; import type { RouteOptions } from '../routes/types'; import type { HookOptions } from '../hookInterface/types'; import hookInterface from '../hookInterface/hookInterface'; const configSchema = yup.object({ locations: yup .ob...
<filename>src/webrtchelper.ts /** * @license * Copyright 2018 OOMWOO LLC. 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-...
<gh_stars>10-100 import AssetsPlugin from 'assets-webpack-plugin' import { CleanWebpackPlugin } from 'clean-webpack-plugin' import CopyPlugin from 'copy-webpack-plugin' import { readFileSync } from 'fs' import HtmlWebpackPlugin from 'html-webpack-plugin' import MomentLocalesPlugin from 'moment-locales-webpack-plugin' i...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { UserInputError, AuthenticationError, ApolloError } from 'apollo-server-express'; import { ObjectID, Collection, ObjectId, FilterQuery } from 'mongodb'; import { ApplicationFieldResolvers, ApplicationQuestionResolvers, HackerResolvers, LoginResolvers, MentorResolvers, OrganizerResolvers, QueryResolvers, ...
import React, { useEffect, useState } from 'react'; import Modal from '@/components/elements/Modal'; import { Form, Formik, FormikHelpers } from 'formik'; import Field from '@/components/elements/Field'; import { number, object, string } from 'yup'; import { ServerContext } from '@/state/server'; import { httpErrorToHu...
<filename>src/core/SiteGenerator.ts import gulp from 'gulp'; import path from 'path'; import del from 'del'; import BS, { BrowserSyncInstance } from 'browser-sync'; import cleanCss from 'gulp-clean-css'; import autoprefixer from 'gulp-autoprefixer'; import scss from 'gulp-sass'; import sourcemaps from 'gulp-sourcemaps'...
<reponame>wycats/glimmer import { Statement as StatementSyntax } from './syntax'; import SymbolTable from './symbol-table'; import * as Simple from './dom/interfaces'; import { DOMChanges, DOMTreeConstruction } from './dom/helper'; import { Reference, PathReference, OpaqueIterable } from 'glimmer-reference'; import {...
import { MouseCatcher, MouseEvent } from '@naker/services/Catchers/mouseCatcher'; import { Animation } from '@naker/services/System/systemAnimation'; import { SystemEvent } from '@naker/services/System/system'; import { MeshSystem } from '../System/meshSystem'; import { TileMap } from './tileMap'; import { Mesh } fro...
import React, { Component, ReactElement, ReactSVGElement } from 'react'; import { PieChart, Pie, Legend, Cell, Tooltip, ResponsiveContainer, Sector, Label, LabelList } from 'recharts'; import { scaleOrdinal } from 'd3-scale'; import { schemeCategory10 } from 'd3-scale-chromatic'; import { changeNumberOfData } from '....
import { Color, Culling, DefaultVertexData, FilterMode, mat4, MaterialFromShader, Mesh, minus, mul, plus, FrameBuffer, RenderTexture, Shader, shaderProp, TextureFormat, vec2, vec3, Vector2, VertexStruct, Blending, TextureResizing } from "zogra-renderer"; import { Debug } from "zogra-renderer/dist/core/global"; import...
<reponame>icaswell/hilbert-rtree-demo<filename>r-tree/r-tree.ts /// <reference path="../type-definitions/lodash.d.ts" /> interface DataEntry{ x: number; y: number; width: number; height: number; data?: any; } class RTreeRectangle{ public children:Array<RTreeRectangle> = []; public parent: RTreeRectangle; co...
import { Model, model } from 'mongoose'; import { publish } from '../../pubsub'; import { customerSchema, ICustomerDocument } from './definitions/customers'; interface IGetCustomerParams { email?: string; phone?: string; cachedCustomerId?: string; } interface ICreateCustomerParams { integrationId?: string; e...
import File from "./File"; import Table from "../lib/table"; import Renderer from "./Renderer"; import * as _ from "lodash"; import Relation from "../lib/relation"; class PointerOpConnectorRenderer extends Renderer { public file: File; public table: Table; constructor(table: Table, options: any = {}) { supe...
<gh_stars>1-10 "use strict"; // Classes from the framework must be imported here // so that they can be referenced without using the namespace. import gf = ThisCouldBeBetter.GameFramework; // hack // These classes currently have to come first. import RandomizerLCG = gf.RandomizerLCG; // Helpers. import ArrayHelper ...
// deno-lint-ignore-file no-explicit-any import { blue, extname, format, green, gzip, OriginRouter, red, Reflect, resolve, send, Status, STATUS_TEXT, yellow, } from "../deps.ts"; import { checkByGuard } from "./guard.ts"; import { GzipOptions, NestUseInterceptors, RouteItem, RouteMap, ...
import React, { useState, useRef, useEffect } from 'react'; import { useStore } from 'effector-react'; import { styled } from '@linaria/react'; import { Button, Input, Window } from '@pages/shared'; import { setView, $accounts, $balance } from '@state/shared'; import { send } from '@state/init'; import { currenc...
import React, { memo, useState } from "react"; import path from "path-browserify"; import { ParsedStack, basename, ParsedStackFrame } from "^jab"; import { JsLink } from "^jab-react"; import { OpenFile } from "^util-javi"; //props export type ViewExceptionCallStackProps = { stack?: ParsedStack; projectRoot: stri...
<reponame>Smittyvb/ttw<filename>web/sync.ts // @ts-ignore import { updateTagIndexWithPings, rebuildTagIndex } from "./tagIndex.ts"; // @ts-ignore import { unsub } from "./push.ts"; // @ts-ignore import { unsyncedPings, putPings, Ping } from "./pings.ts"; //@ts-ignore import { backend, FULL_BACKEND, MINI_BACKEND } from ...
/*! * © 2019 Atypon Systems 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 applicable law or agreed to i...
import React, { useState, useEffect, useCallback } from 'react'; import { connect } from 'react-redux'; import 'bootstrap/dist/css/bootstrap.min.css'; import { Button, Container, Row, Col, Image } from 'react-bootstrap'; import Carousel from 'react-multi-carousel'; import 'react-multi-carousel/lib/styles.css'; import R...
<filename>src/commands/Moderation/prune.ts import { GuildSettings } from '#lib/database'; import { LanguageKeys } from '#lib/i18n/languageKeys'; import { SkyraCommand } from '#lib/structures'; import type { GuildMessage } from '#lib/types'; import { PermissionLevels } from '#lib/types/Enums'; import { CLIENT_ID } from ...
<filename>examples/server/src/utils/Collection.ts<gh_stars>1-10 import get from "lodash/get"; import matches from "lodash/matches"; const every = (array, predicate) => array.reduce((acc, value) => acc && predicate(value), true); const some = (array, predicate) => array.reduce((acc, value) => acc || predicate(...
import "@pnp/sp/files"; import "@pnp/sp/folders"; import { BehaviourOptions, ContextOptions, ErrorOptions, RenderOptions } from "../../types/options"; import { DisableOptionType, DisableOptionValueType } from "../../types/options/RenderOptions"; import { FilteredODataQueryable, ODataQueryableCollection } from "../../ty...
<filename>Module/Blog/UserInterface/assets/ts/blog.ts function formData(item: JQuery): string { let data = []; item.find('input,textarea,select').each(function(this: HTMLInputElement) { if (this.type && ['radio', 'checkbox'].indexOf(this.type) >= 0 && !this.checked) { return; } ...
import * as pc from 'puppeteer-cluster'; import { Page, ElementHandle } from 'puppeteer'; import * as Fs from 'fs'; import { MessageContent, Message } from './ReplikaModels'; export enum ReplikaLoginResult { WRONG_USERNAME, WRONG_PASSWORD, SUCCESS } type OnMessageCallback = (messageContents: MessageConte...
<reponame>samcodex/ngarch import * as d3 from 'd3'; import { forEach, forOwn } from 'lodash-es'; import { BoxArea } from '@core/bm67/box-area'; import { DiagramLinkableElement } from '@core/diagram-element-linkable'; import { ElementBox, PairNumber } from '@core/models/arch-data-format'; import { d3Element } fro...
import * as d3 from 'd3' import { PlotDatum } from '../../../typings/CubeData'; // ================================================================== // /* This is a barplot component which takes the following arguments in the props: * data * name (id for the div to stick it in) * width * height */ // Type...
<gh_stars>1-10 import { MixedStyleDeclaration } from '@native-html/css-processor'; import { Element } from 'domhandler'; import { ReactNativePropsDefinitions, ReactNativePropsSwitch } from '../helper-types'; import { ExtractTNodeFromType, Markers, SetMarkersForTNode, TNodeDescriptor, TNodeType } from '../...
import {CipherProps, PropsWithKey} from "./lib/algorithm/cipher/Cipher"; import type {Word32Array} from "./lib/Word32Array"; import {StreamCipher} from "./lib/algorithm/cipher/StreamCipher"; import {PasswordBasedCipher} from "./lib/algorithm/cipher/PasswordBasedCipher"; import {SerializableCipher} from "./lib/algorithm...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { Area, Circle, CircleMap, Point, IntersectionStats, Intersection } from '../interfaces'; import { venn, lossFunction, normalizeSolution, scaleSolution } from './layout'; import { intersectionArea, distance, getCenter } from './circle-intersection'; import...
import * as url from 'url'; import request from './client'; import * as qs from 'qs'; import { DownloadOptions } from './models'; // A shared cache to keep track of html5player.js tokens. export const cache = new Map(); /** * Extract signature deciphering tokens from html5player file. * * @param {string} html5play...
<gh_stars>0 /// <reference path="../lib/phaser.d.ts"/> import Configuration from "./Configuration"; import {MapChunkRegistry, MapChunk} from "./MapGenerator"; import {Ship} from "./Ship"; import {ShipBuilder} from "./ShipBuilder"; import {KeyboardControlEngine, GamePadControlEngine, DummyControlEngine} from "./Control...
<reponame>marcj/marshal.ts<gh_stars>100-1000 /* * Deepkit Framework * Copyright (C) 2021 Deepkit UG, <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the MIT License. * * You should have received a copy of the MIT License along with this program. */ import...
<filename>proto_ts/session/types_pb.d.ts // package: neo.fs.v2.session // file: session/types.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; import * as refs_types_pb from "../refs/types_pb"; import * as acl_types_pb from "../acl/types_pb"; export class ObjectSessionContext ...
import { AuthenticationService } from './authentication.service'; import { HttpClient, HttpParams, HttpResponse } from '@angular/common/http'; import { BASEURL_PROXY } from '../../shared/constants/app.constants'; import { Observable, forkJoin, of, isObservable } from 'rxjs'; import { map, tap, mergeMap, catchError } fr...
<reponame>satoxiw/machine-to-cloud-connectivity-framework<gh_stars>1-10 // Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import { Aws, CfnDeletionPolicy, Construct, Duration } from '@aws-cdk/core'; import { AttributeType, CfnTable } from '@aws-cdk/aws-dy...
import { B, D, g, i } from './LoadScene' import AudioManager from './audio' export class Container extends Phaser.GameObjects.Container { constructor(scene: Phaser.Scene, x, y, children?) { super(scene, x, y, children) scene.add.existing(this) } set hitArea(rect: Phaser.GameObjects.Rectangle) { this.setInt...
<reponame>pojok-webdev/pos<filename>www/components/login/login.ts /// <reference path="../../../typings/tsd.d.ts" /> require('auth0-angular'); const pouchdb = require('pouchdb'); pouchdb.plugin(require('pouchdb-upsert')); export default angular.module('app.login', [ 'auth0', require('angular-storage'), re...
<reponame>soutaro/language_server-protocol-ruby import * as ts from "typescript"; import * as fs from "fs"; import * as path from "path"; import * as fetch from "isomorphic-fetch"; const lspVersion = "c0c516735fb9eea08ac0151333b5380d70525961"; const rootDir = path.normalize(path.join(__dirname, "..")); const tempDir =...
import { EventEmitter } from 'ee-ts' import * as JsSip from 'jssip' import { IncomingRTCSessionEvent, OutgoingRTCSessionEvent } from 'jssip/lib/UA' import { Answer, CallSession, Outbound, SipClient, SipConfiguration } from '../' import { Log } from '../../log' import { SipClientEvents } from '../index' import { Sessi...
<reponame>SUSE/open-build-service-api /** * Copyright (c) 2020 SUSE LLC * * 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 limitation the rights to ...
<reponame>tngraphql/lucid /** * (c) <NAME> <<EMAIL>> * User: nguyenpl117 * Date: 5/3/2020 * Time: 8:43 AM * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import * as Transaction from 'knex/lib/transaction.js'; import * as Transac...
import * as fs from "fs"; import * as readline from "readline"; import { bold, dim, Env, flatMap, fromEntries, HIDE_CURSOR, isNonEmptyArray, join, ReadStream, SHOW_CURSOR, toError, toJSON, WriteStream, } from "../Helpers"; import { getLastVersion, KNOWN_TOOL_NAMES, KNOWN_TOOLS, KnownT...
<filename>src/matrixmessageprocessor.ts import * as Parser from "node-html-parser"; import { Util, PuppetBridge } from "mx-puppet-bridge"; const MATRIX_TO_LINK = "https://matrix.to/#/"; export interface IMatrixMessageParserOpts { listDepth?: number; puppetId: number; puppet: PuppetBridge; } export class MatrixMes...
import ForumUser, { Item } from "./types/ForumUser"; import playwright from 'playwright'; import Credentials from '../../_credentials/mxl-trade.json'; class ForumScraper { forumUsers: ForumUser[] = []; hrefs: string[] = []; browser: playwright.Browser; context: playwright.BrowserContext; cookiesCre...
import { isNullOrUndefined } from "util" export class VmObject { boolValue?: boolean numberValue?: number ptrValue?: number stringValue?: string modifiedAtStep?: number toString() { if (!isNullOrUndefined(this.boolValue)) { return '' + this.boolValue } else if (!isNullOrUndefined(this.numbe...
import { Web3Wrapper } from '@0x/dev-utils'; import { TakerRequestQueryParamsUnnested, V4RFQFirmQuote, V4RFQIndicativeQuote } from '@0x/quote-server'; import { BigNumber } from '@0x/utils'; import { AxiosInstance, CancelToken } from 'axios'; import { constants } from '../constants'; import { AltFirmQuoteResponse, ...
import * as YAML from "yamljs"; import * as cheerio from "cheerio"; import { readFileSync, writeFileSync, existsSync } from "fs"; import { resolve } from "path"; import { createHash } from "crypto"; import * as jsBeautify from "js-beautify"; import { forceChangeBranch, getCurrentBranch, clearGitRepo, submitCommit } fro...
// local imports import { SubscriptionSelection, ListWhen, SubscriptionSpec, RefetchUpdateMode } from '../types' import type { Cache, LinkedList } from './cache' import { flattenList } from './stuff' export class ListManager { rootID: string constructor(rootID: string) { this.rootID = rootID } // associate lis...
import { inject, injectable, named } from "inversify"; import { AssetDefinition, AssetInterface } from "assets/core/asset-interface"; import { DisposableObject } from "backend/disposable-container"; import { FilesystemEntry } from "shared/api.types"; import { isChildAssetPath, isParentAssetPath } from "utils/projec...
import * as React from "react"; import * as ReactDOM from "react-dom"; import { DropDownMenu } from './DropDownMenu'; import * as __utils from '../utils'; export enum DropDownDirection { DownRight, DownLeft, UpRight, UpLeft, } export class DropDownItemBase { public key: string = ""; public i...
import sqlite3 from 'better-sqlite3'; import express from 'express'; import { Command, commandDecoder, Contract, contractDecoder, ContractState, Id, idDecoder, Message, messageDecoder, UpdateMessage } from 'qanban-types'; import { v4 as uuidV4 } from 'uuid'; import yargs from 'yargs'; import os from 'os'; import path f...
import { GetStaticProps } from 'next'; import { NextSeo } from 'next-seo'; import Image from 'next/image'; import ContactForm from '@component/ContactForm'; import MoreIcon from '@component/icons/MoreIcon'; import ProjectItem from '@component/items/ProjectItem'; import Diagonal from '@component/layouts/Diagonal'; impo...
import { uniq } from 'lodash'; import { ipcRenderer as ipc } from 'electron'; import { createSelector } from 'reselect'; import Player from '../../lib/player'; import { Playlist, selectors as playlistSelectors } from './playlist'; import { Album, getAlbumListResponse, getAlbumContentResponse, selectors as album...
<reponame>BA7JCM/grr<filename>grr/server/grr_response_server/gui/ui/store/client_page_global_store.ts import {Injectable} from '@angular/core'; import {ComponentStore} from '@ngrx/component-store'; import {combineLatest, merge, Observable, of, throwError} from 'rxjs'; import {catchError, concatMap, distinctUntilChanged...
<reponame>ZeroTo0ne/taro<filename>packages/taro-cli/src/ui/index.ts import * as fs from 'fs-extra' import * as path from 'path' import * as chokidar from 'chokidar' import chalk from 'chalk' import * as _ from 'lodash' import { Compiler } from '../h5' import { buildH5Script, buildForH5 } from './h5' import { buildForR...
<reponame>jayree/sfdx-plugin-manifest /* * Copyright (c) 2021, jayree * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { join, basename, sep, posix, dirname } from 'path'; impo...
<reponame>karimsa/rsxjs /** * @file src/channel/channel.ts * @description Based on Go's channels to provide CSP-style programming in JS. * @copyright 2018-present <NAME>. All rights reserved. */ import createDebug from 'debug' import check from 'check-types' const debug = createDebug('rsxjs:channel') import { De...
import { Icon } from "@iconify/react"; import { convertToRaw, EditorState } from "draft-js"; import draftToHtml from "draftjs-to-html"; import React, { useRef, useState } from "react"; import { Button, ButtonGroup, Col, Container, Dropdown, Form, FormControl, FormGroup, Image, In...
import { useConstant } from '@graphcommerce/framer-utils' import { MotionValue, motionValue, Point, useMotionValue } from 'framer-motion' import { PlaybackControls } from 'popmotion' import React, { useEffect, useRef, useMemo, useCallback } from 'react' import { scrollerContext } from '../context/scrollerContext' impor...
<filename>src/statistics/usage/panels/UsagePanel.ts import { cloneDeep } from 'lodash'; import { IUsageSaveService } from '../IUsageSaveService'; class DetailsParams { public item: any; } interface IUsagePanelBindings { [key: string]: any; item: any; onDetails: any; } const UsagePanelBindings: IUsa...
import { FetcherState, Tracker } from 'flyxc/common/protos/fetcher-state'; import { trackerPropNames } from 'flyxc/common/src/live-track'; import { Keys, pushListCap } from 'flyxc/common/src/redis'; import { Pipeline, Redis } from 'ioredis'; import nos from 'node-os-utils'; import zlib from 'zlib'; import { ElevationU...
import Collection from "@discordjs/collection"; import { bgBlue, bgGreen, bgYellow, black } from "colorette"; import { Client, Message } from "guilded.js"; import path from "path"; import type { Argument } from "./structures/Argument"; import type { Command } from "./structures/Command"; import type { Inhibitor } from...
<reponame>calibur-tv/skr<filename>packages/cli/src/utils/index.ts import fs from 'fs' import path from 'path' import { spawn, exec } from 'child-process-promise' import toposort from 'toposort' import urllib from 'urllib' import fsExtra from 'fs-extra' import compressing from 'compressing' import { Input, Confirm, Auto...
import React from 'react' import ReactResizeDetector from 'react-resize-detector' import { CartesianGrid, Legend, Line, ComposedChart, Scatter, Tooltip, TooltipPayload, XAxis, YAxis } from 'recharts' import type { LineProps as RechartsLineProps, YAxisProps } from 'recharts' import { useTranslation } from 'react-i18nex...
import AbstractComponent from '@components/AbstractComponent'; import Meal from '@models/Meal'; import colors from '@theme/colors'; import React from 'react'; import Icon from 'react-native-vector-icons/Feather'; import { StyleSheet, Text, View, FlatList, TouchableWithoutFeedback, TouchableOpacity, Dimensions } from 'r...
import React, { useCallback, useReducer, useEffect, useRef, useLayoutEffect, } from "react"; import "./Plan.scss"; import { Plan as IPlan, Units } from "../lib/workout"; import { func, getLongDateString, DisplayMode, DEFAULT_DISPLAYMODE, getVolumeStringFromWorkouts, addDays, ...
<gh_stars>0 import { Knex } from 'knex'; import { SchemaInspector } from '../types/schema-inspector'; import { Table } from '../types/table'; import { Column } from '../types/column'; import { ForeignKey } from '../types/foreign-key'; type RawTable = { TABLE_NAME: string; }; type RawColumn = { TABLE_NAME: string;...
import * as Immutable from "immutable" export interface Unit { } export type CoConcreteRes<s, e, a> = { kind: "k", s: s, k: Coroutine<s, e, a> } | { kind: "e", e: e } | { kind: "v", s: s, v: a } export type CoRes<s, e, a> = { kind: "k", s: s, k: Coroutine<s, e, a> } | { kind: "e", e: e } | { kind: "v", s: ...
<reponame>kotliluk/rachel import {BinaryNode} from "./binaryNode"; import {RATreeNode} from "./raTreeNode"; import {Relation} from "../relation/relation"; import {Row} from "../relation/row"; import {SupportedColumnType} from "../relation/columnType"; import {VEResult, VETreeNode} from "../vetree/veTreeNode"; import {I...
import { AfterViewInit, Component, ElementRef, Input, OnDestroy, ViewChild} from '@angular/core'; import { single, multi } from './data'; declare let jQuery: any; declare let require: any; const highCharts = require('highcharts/highcharts.src'); import 'highcharts/adapters/standalone-framework.src'; @Component({ s...
import React from "react"; import { expect } from "chai"; import { QueryClientProvider } from "react-query"; import { arbeidsgiver, arbeidstaker, behandler, mockState, mote, moteTekster, navEnhet, } from "../testData"; import { changeTextInput, clickButton, getTextInput, getTooLongText, maxLengt...
import React, { useCallback, useEffect, useState } from 'react' import { NativeStackScreenProps } from '@react-navigation/native-stack' import { Animated, StyleSheet, Text, View, TouchableOpacity, Dimensions, SafeAreaView } from 'react-native' import { useDispatch, useSelector } from 'react-redux' impor...
<filename>web/netlify/functions/handle-checkout.ts /* * This function creates a Stripe Checkout session and returns the session ID * for use with Stripe.js (specifically the redirectToCheckout method). * * @see https://stripe.com/docs/payments/checkout/one-time */ import Stripe from "stripe" import { Handler } fro...
import * as React from 'react'; import { deepEqual } from '@datns/utils'; import { Input } from '../Input/Input'; import './SelectDropdown.css'; export interface SelectDropdownProps { selectedValue: number | string; defaultValue?: number; classNames?: any; filterable?: boolean; label?: string; options?: ...
import { DocumentNode, ExecutionResult, GraphQLFieldResolver, GraphQLSchema, parse, specifiedRules, validate, ValidationContext, } from 'graphql' import { IncomingMessage } from 'http' import { createAsyncIterator, forAwaitEach, isAsyncIterable } from 'iterall' import * as WebSocket from 'ws' import { M...
import * as core from '@actions/core'; import * as github from '@actions/github'; import * as Octokit from '@octokit/rest'; import dayjs from 'dayjs'; type Issue = Octokit.IssuesListForRepoResponseItem; type IssueLabel = Octokit.IssuesListForRepoResponseItemLabelsItem; const GH_ACTIONS_LOGIN = 'github-actions[bot]'; ...
<reponame>rbxts-flamework/transformer import ts from "typescript"; import path from "path"; import fs from "fs"; import ajv, { ValidateFunction } from "ajv"; import crypto from "crypto"; import { v4 as uuid } from "uuid"; import { PACKAGE_ROOT, PKG_VERSION } from "./rojoResolver/constants"; import { isPathDescendantOf ...
<reponame>riotchat/server import Routable, { Route, POST, Path, GET, Body, Authenticated, Param, DELETE, PUT, Query } from '../../Routable'; import * as IChannel from '../../../api/v1/api/channels'; import * as IUser from '../../../api/v1/api/users'; import { dbConn } from '../../../database'; import { User, DMChannel,...
import { Manifest,BaseServer} from "@project-sunbird/ext-framework-server/models"; import { Request, Response } from "express"; import { ReviewResponse } from "./models"; import * as _ from "lodash"; import { telemetryHelper } from "./telemetryHelper"; import { HTTPService as http } from "@project-sunbird/ext-framework...
import React from 'react'; import { hierarchy, Tree } from '@visx/hierarchy'; import { Group } from '@visx/group'; import { Text } from '@visx/text'; import { HierarchyPointLink, HierarchyPointNode, } from '@visx/hierarchy/lib/types'; import { Line } from '@visx/shape'; import { LinearGradient } from '@visx/gradien...
import {isTextCol} from '../../utils/ColTypes'; import {COLUMN_TYPE} from '../../utils/Consts'; import {cloneObj} from '../../utils/Helpers'; import {CONFIG} from '../../utils/Consts'; import {DEFAULT_SORT} from '../../components/settingComponents/Sort'; import {isRecordExist, QueryCount} from '../../utils/EditorHelper...