text
stringlengths
3.08k
15.5k
<filename>src/model/implementation/model.ts import { groupBy, uniqBy } from 'lodash'; import memorize from 'memorize-decorator'; import { flatMap, objectEntries, objectValues } from '../../utils/utils'; import { ModelConfig, TypeKind } from '../config'; import { NamespacedPermissionProfileConfigMap } from '../index'; i...
import { BaseUniDriver, baseUniDriverFactory, } from 'wix-ui-test-utils/base-driver'; import { Simulate } from 'react-dom/test-utils'; import { UniDriver } from 'wix-ui-test-utils/unidriver'; import { dropdownDriverFactory as coreDriverFactory } from 'wix-ui-core/dist/src/components/dropdown/Dropdown.driver'; impo...
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import { MemberSpec as Member, MemberFlag, MemberRef, MemberRefFlag } from "@wikipathways/cxml"; import { Exporter } from "./Exporter"; import { Namespace } from "../Namespace"; import { Type } from...
import styled from 'styled-components' import Slider from '../base/Slider' import { useTypedSelector, useDmxSelector } from '../redux/store' import { useDispatch } from 'react-redux' import { TextField, Button, IconButton } from '@mui/material' import ForwardIcon from '@mui/icons-material/ArrowForward' import BackIcon ...
<gh_stars>1-10 import { ApolloServer, GraphQLObjectType, GraphQLSchema, GraphQLString, IRadarsuMessage, IRadarsuResponse, ISequelizeConfig, RadarsuSocket, Sequelize, VoidFunction, WebSocket, _, express, fs, gql, graphql, http, https, opn, path, radarsuControllers, radarsuModels, sequelize, winston, SubscriptionServ...
import moment from 'moment'; import { xml2js } from 'xml-js'; import { get, isEmpty, isString, merge, union } from 'lodash'; import config from '../config/prism.json'; import { LayerDefinitions } from '../config/utils'; import type { AvailableDates, PointDataLayerProps } from '../config/types'; import type { PointLaye...
import {Request, Response} from 'express'; import {Stream, Readable} from 'stream'; import {Buffer} from 'buffer'; // ------------------ // DATA TYPES // ------------------ interface EndpointConfig { method : string; route : string; handler : string; params : Array<string>; query : Array<string>;...
<filename>src/Lightbox/medium-lightbox.ts // @ts-ignore-file /* * Plugin: MediumLightbox v1.0 * Author: <NAME> * Adapted By: <NAME> */ export interface Options { margin?: number; } export interface ScreenSize { x?: number; y?: number; } type ZoomedImage = any; export default function M...
import { AfterViewInit, ChangeDetectorRef, Component, Inject, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { FormControl, Validators } from '@angular/forms'; import { SubjectDataService } from './services/subject-data-service.service'; imp...
import {IBlock} from '@floip/flow-runner' import {IIndexedString, IValidationStatus} from '@/store/validation/index' import Ajv, {ErrorObject, ValidateFunction} from 'ajv' import {get, isEmpty} from 'lodash' import {JSONSchema7} from 'json-schema' import ajvFormat from 'ajv-formats' const DEV_ERROR_KEYWORDS = [ // u...
<reponame>NoahOliverRigonan/WebPOS-ui<gh_stars>0 import * as wjcCore from 'wijmo/wijmo'; import * as wjcSelf from 'wijmo/wijmo.nav'; export declare class TreeView extends wjcCore.Control { static _DATAITEM_KEY: string; static _AS_DLY: number; static _AN_DLY: number; static _CND: string; static _CNDL...
/* * @license NewConsensus Platform v0.1 * (c) 2020-2021 KaoGeek. http://kaogeek.dev * License: MIT. https://opensource.org/licenses/MIT * Author: chalucks <<EMAIL>>, shiorin <<EMAIL>> */ import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { AuthenManager } from '../../../../.....
import path from 'path' import {promises as fs} from 'fs' import {GitHub} from '../types' import {uniq} from 'lodash' import getConfig from '../config' import fetch from 'node-fetch' import {graphql as graphqlUnauthed} from '@octokit/graphql' import codeowners from 'codeowners' import temp from 'temp' import {findMenti...
<gh_stars>0 import FormData from 'form-data'; import { AscDesc, ExtendableGenerics, DefaultGenerics, OwnUserBase, OwnUserResponse, UserResponse } from './types'; /** * logChatPromiseExecution - utility function for logging the execution of a promise.. * use this when you want to run the promise and handle errors by...
<reponame>jakubholik/vue-awesome-swiper import SwiperClass from 'swiper' import VueAwesomeSwiper, { Swiper as SwiperComponent, SwiperSlide as SlideComponent, install, directive } from '../src' import { CoreNames, ComponentPropNames, DEFAULT_CLASSES } from '../src/constants' import { mount, shallowMount, createLocalVue...
import * as React from "react"; import Torus from "@toruslabs/torus.js"; import NodeDetailsManager from "@toruslabs/fetch-node-details"; import nacl from "tweetnacl"; import { Account } from "@solana/web3.js"; import { useGoogleLogin, GoogleLoginResponse, GoogleLoginResponseOffline, } from "react-google-login"; ...
import type { Component } from "solid-js"; import { For } from "solid-js"; import model from "./Words"; import Dropdown from "./Dropdown"; interface ListProps { setMode: (mode: string) => void; langIndex: () => number; setLangIndex: (index: number) => void; langs: { name: string; value: string }[]; } const L...
/* * Copyright 2020 Unbounded 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...
<reponame>JonathanWilbur/x500-ts /* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, NumericString, PrintableString, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /* START_OF_SYMBOL_DEFINITIO...
import assert = require("assert"); import * as ts from "typescript"; import * as lua from "../../LuaAST"; import { TransformationContext, tempSymbolId } from "../context"; import { LuaLibFeature, transformLuaLibFunction } from "../utils/lualib"; import { transformInPrecedingStatementScope } from "../utils/preceding-sta...
<filename>src/index.ts<gh_stars>0 import * as commander from 'commander'; import * as fs from 'fs'; import * as path from 'path'; import * as util from 'util'; import * as ts from 'typescript'; import { processString, Options } from 'typescript-formatter'; let d = (node: Node) => console.log(util.inspect(node, { showH...
import { Switch, Route, useHistory, } from "react-router-dom"; import { useEffect } from "react"; import { useAppDispatch } from './app/hooks'; import { useAppSelector } from './app/hooks'; import { userAuthState } from './features/user/userSlice'; import { UserAuth } from './types'; import { DispenseOil } fr...
import React, { useState, useEffect } from 'react' import { useForm } from 'react-hook-form' import { ErrorMessage } from '@hookform/error-message' import HelpBox from '../../common/HelpBox' import { ClientAllowedScopeDTO } from '../../../entities/dtos/client-allowed-scope.dto' import NoActiveConnections from '../../co...
<reponame>kimisme9386/cdk-codepipeline-badge-notification<filename>src/main.ts import * as path from 'path'; import { aws_codepipeline as codePipeline, aws_events_targets as targets, aws_iam as iam, aws_lambda as lambda, aws_s3 as s3, aws_ssm as ssm, } from 'aws-cdk-lib'; import * as cdk from 'aws-cdk-lib';...
<reponame>shawly/WebCord<gh_stars>0 import { appInfo } from "../clientProperties"; import { AppConfig, WinStateKeeper } from "../configManager"; import { app, BrowserWindow, shell, Tray, net, nativeImage } from "electron"; import * as getMenu from '../nativeMenus'; import { packageJson, discordFavicons } from '../../gl...
<reponame>alii13/live-ide import * as R from 'remeda'; import type { editor } from 'monaco-editor'; import { TypedEventEmitter } from '../lib/TypedEventEmitter'; import { HighlighterService } from '../services/HighlighterService'; import { CodeActionsCallbackMap, Monaco } from '../types'; import { CodeChange } from 'sh...
import BaseController from '~/src/controller/api/base' import { Request, Response } from 'express' import { JsonController, Req, Res, Get, Post, UseBefore } from 'routing-controllers' import fs from 'fs' import path from 'path' import LoginMiddleware from '~/src/middleware/login' import knex from '~/src/library/mysql' ...
/* * Copyright 2021 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/** * Created by weinbin.shao on 2019/06/19. * 级联组件. */ import React, { PureComponent, Fragment } from 'react'; import { Card, Icon, Input } from 'antd'; import { util } from '../../util'; import styles from './index.less'; const noop = () => {}; // 默认校验函数 const defaultValidate = () => Promise.resolve(true); /*...
<reponame>srirajkondapuli/sec-oauth-js-client /* * Copyright 2017 Google 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 r...
import { Checkbox, HStack, RangeSlider, RangeSliderFilledTrack, RangeSliderThumb, RangeSliderTrack } from "@chakra-ui/react"; import {ColorPalette} from "../styles/color_palette"; import AvadaSpinner from "../genericComponents/AvadaSpinner"; import {HeatMap} from "./heatmap/HeatMap"; import Reac...
<reponame>ferrets6/dynamic-dns import { CloudflareApi } from "../../../index.js"; import publicIp from "public-ip"; import parseOptions from "../../utils/parseOptions.js"; import sentenceFromArray from "../../utils/sentenceFromArray.js"; const basicTokenUsage = "dynamic-dns cloudflare --token XXX<PASSWORD>"; const he...
<reponame>stuartpb/itwinjs-core /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-----------------------------------------...
import React, { Component } from 'react'; import classnames from 'classnames'; import PropsType from './PropsType'; import Select from '../select'; import Button from '../button'; import Icon from '../icon'; class Transfer extends Component<PropsType, any> { static defaultProps = { prefixCls: 'ui-transfer', ...
import React from 'react' // Import component files import DataTable, { ROW_WITH_COLLAPSIBLE_TYPE } from './index' import DataTableProps, { RowWithCollapsibleType } from './types/props' import docs from './README.md' import { Story } from '@storybook/react/types-6-0' import Badge from '../../atoms/badge' import RfiFor...
import { IGlobalConfigService, ILayer, ILayerPlugin, ILogService, IScale, IStyleAttribute, IStyleScale, lazyInject, ScaleTypes, StyleScaleType, TYPES, } from '@l7/core'; import { IParseDataItem } from '@l7/source'; import { extent } from 'd3-array'; import * as d3 from 'd3-scale'; import { inject,...
<filename>src/app/dashboard/student-dashboard/student-reportcard/student-report-card.component.ts import {Component, OnDestroy, OnInit} from '@angular/core' import {ActivatedRoute} from '@angular/router' import {ReportCardEntryService} from '../../../services/report-card-entry.service' import {EMPTY, of, Subscription, ...
import { CharacterMetadata, ContentBlock, ContentState } from "draft-js" import { List } from "immutable" import { ATOMIC, IMAGE } from "../constants" /** * Parameters to determine which entity instances to keep. */ export interface EntityRule { // Entity type, eg. "LINK" type: string // Allowed attributes. Ot...
<filename>scripts/upgrades/upgrade-epoch.ts<gh_stars>10-100 import { run, ethers } from "hardhat"; import { convertFacetAndSelectorsToString, DeployUpgradeTaskArgs, FacetsAndAddSelectors, } from "../../tasks/deployUpgrade"; import { StakingFacet__factory } from "../../typechain"; import { StakingFacetInterface } ...
<reponame>ja0nz/umbrella import { implementsFunction } from "@thi.ng/checks/implements-function"; import { isFunction } from "@thi.ng/checks/is-function"; import { isNotStringAndIterable } from "@thi.ng/checks/is-not-string-iterable"; import { isString } from "@thi.ng/checks/is-string"; import { DEFAULT, defmulti } fro...
<reponame>gdnmobilelab/podmod // import { ShowNotification } from "./interfaces/notification"; // import { WorkerBridge } from "./bridge/worker-bridge"; import { NotificationBridge, NotificationBridgeInstance } from "./bridge/notification"; import { CacheSync } from "./io/cache-sync"; import { CommandListener } from "s...
import "../sass/main.scss"; import { edit_boxElems, elements, mainElems,} from "./views/base"; import * as editView from "./views/editBox"; import * as headerView from "./views/headerView"; import { clickOnBar, closeFullScreen, openFullscreen, showPresentBar } from "./views/presentView"; import * as rightClickEvents fr...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *-----------------------------------------------------------...
import * as parse from 'csv-parse'; import * as async from 'async'; import * as fs from 'fs'; import Product from './models/product'; import PricingItem from './models/pricing-item'; import PriceRequest from './models/price-request'; import { PriceResult, PriceResultItem } from './models/price-result'; const PARSER_OP...
import proto from "../proto/broker_pb"; import { Observable } from "mz-observable"; import future, { IFuture } from "fp-future"; export type RTCDoubleSDP = { sdp: string; type: RTCSdpType; originalSdp: string }; export interface ISocket { readonly socketId: string; readonly awaitableConnected: IFuture<void>; re...
/** * * @license * Copyright (C) 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
import { intersection } from 'polygon-clipping'; type Point = [number, number]; type Poly = Array<Point>; type Layer = Array<Poly>; const doResize = true; const padding = .2; const gutter = .2; const numTriangles = 3; const backgroundFill = "#FFCC00"; const foregroundFill = "#CCFF00"; const intersectionFill = "#00CCF...
<gh_stars>10-100 import {Component, Directive, ElementRef, EventEmitter, Input, Output, ViewChild, ViewContainerRef} from '@angular/core'; import {CustomValueAccessor, customValueAccessorFactory, HandledEvent, ICustomValueAccessorHost} from '../../../misc/util/internal'; import {FuiLocalizationService} from '../../../b...
/* MIT License Copyright (c) 2022 Looker Data Sciences, Inc. 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 use, copy, modi...
import React, { useState, useEffect } from "react"; import axios from "axios"; import { forwardRef, createRef } from "react"; import Grid from "@material-ui/core/Grid"; import MaterialTable from "material-table"; // import axios from 'axios' import Alert from "@material-ui/lab/Alert"; import "./Scores.css"; import...
<reponame>jthcast/jthcast-gatsby<filename>gatsby-config.ts<gh_stars>1-10 export const siteMetadata = { title: `JthCast`, author: { name: `<NAME>`, summary: `Front-end developer work with design and technology, so trying to look problems from various perspective to solve them.`, }, description: `Make dig...
import Domain from './domain'; import {Filter} from './lib/filter'; import Page from './page'; import WebAudio from './webAudio'; import Config from './lib/config'; import './vendor/findAndReplaceDOMText'; // NO-OP for chrome.* API var chrome = {} as any; chrome.runtime = {}; chrome.runtime.sendMessage = function(obj)...
<filename>test/integration.test.ts /* eslint-disable jest/expect-expect */ import winston from 'winston' import { SeqTransport } from '../src/index' const axios = require('axios').default; require('dotenv').config() let logger: winston.Logger, transport: SeqTransport describe('winston-seq', () => { beforeAll(() => ...
import React, { ReactElement } from 'react'; import { server, util, widget, app } from 'components'; import AvatarEditor from 'react-avatar-editor' import { WComponent, WComponentProps, WEntity, WEntityProps } from 'core/widget'; import { T, AccountRestURL, WUploadResource, UploadResource } from "./Dependency"; cons...
<gh_stars>0 /** * @author <NAME> <<EMAIL>> * @licence Apache License, Version 2.0 */ import * as cv from 'opencv'; import * as std from 'std.ts'; import {mean, stats} from './sci.stats'; const threshMaxVal = 255; const threshMinVal = 0; export function processImg(img: cv.Matrix) { // Working on blue channel c...
import { CommonServerSideParams } from '@/app/types/CommonServerSideParams'; import { StaticPath } from '@/app/types/StaticPath'; import { StaticPathsOutput } from '@/app/types/StaticPathsOutput'; import { StaticPropsInput } from '@/app/types/StaticPropsInput'; import { SSGPageProps } from '@/layouts/core/types/SSGPage...
import { Request, Response } from 'express'; import { check, param, oneOf } from 'express-validator'; import DOMPurify from '../services/sanitizer'; import geo from '../utils/geo'; import validation from '../utils/validation'; import dbPsychologists from '../db/psychologists'; import asyncHelper from '../utils/async-h...
<filename>client/pages/mdContent/index.ts // pages/mdContent/index.js import { IMyApp } from '../../app'; import isqq from '../../src/utils/isqq'; import Cache from '../../src/Framework/src/Support/Cache'; let key: any = null; let title: any; let toDoActivityId: any; let expirationTime: any; let cache = new Cache(); ...
import { Component, OnInit, ElementRef, ViewChild, AfterViewInit, ViewChildren, QueryList, OnDestroy, EventEmitter } from '@angular/core'; import {Http, Response} from '@angular/http'; // import {EditorToolbarComponent} from "./_trash/editor-toolbar.component"; import 'rxjs/Rx'; import {EditorHelper} from './Hel...
<gh_stars>10-100 // Simple version for stringify, used for displaying object abstract. import escape from 'licia/escape' import toStr from 'licia/toStr' import contain from 'licia/contain' import startWith from 'licia/startWith' import escapeJsStr from 'licia/escapeJsStr' import each from 'licia/each' import endWith fr...
import { FC, useState, useRef, FormEvent } from 'react'; import PrivacyModal from './PrivacyModal'; import ResponseModal from './ResponseModal'; import Input from '../../shared/Input'; import { VALIDATOR_MIN_LENGTH, VALIDATOR_MAX_LENGTH, VALIDATOR_EMAIL, VALIDATOR_PHONE, } from '../../../utils/validators'; imp...
import { BackoffKind, OnFail } from '@superfaceai/ast'; import createDebug from 'debug'; import { MapInterpreterError, ProfileParameterError } from '../internal'; import { UnexpectedError } from '../internal/errors'; import { NonPrimitive, Variables } from '../internal/interpreter/variables'; import { Result } from '....
import { useEffect, useContext, useMemo } from "react"; import Image from "next/image"; import { useRouter } from "next/router"; import Head from "next/head"; import { useStyletron } from "baseui"; import { PageContext } from "../components/layout"; import { Figma, LeftChevron, RightChevron } from "../components/icons"...
<reponame>arno01/sifchain-ui import { useCore } from "@/hooks/useCore"; import { PoolStat, usePoolStats } from "@/hooks/usePoolStats"; import { TokenListItem } from "@/hooks/useToken"; import { accountStore } from "@/store/modules/accounts"; import { flagsStore } from "@/store/modules/flags"; import { TokenSortBy } fro...
<gh_stars>100-1000 import { removeNode } from './dom'; export interface Node { id?: any; el: HTMLElement; } function isSameNode(a: Node, b: Node): boolean { if (!a || !b) return false; return a === b || a.id === b.id; } function unmount(node: Node, unmountNode?: (n: Node) => void) { removeNode(node.el); ...
import { Injectable } from '@angular/core'; import { RequestOptionsArgs, Response, RequestMethod } from '@angular/http'; import { throwError, Subject } from 'rxjs'; import { Observable } from 'rxjs/Observable'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { takeUntil, map, catchError } f...
<reponame>StevenJNPearce/monorepo import AppWithAction from "@counterfactual/contracts/build/AppWithAction.json"; import { NetworkContext } from "@counterfactual/types"; import { Contract, ContractFactory, Wallet } from "ethers"; import { AddressZero, Zero } from "ethers/constants"; import { JsonRpcProvider } from "eth...
/* * Copyright © Live-Poll 2020-2021. All rights reserved */ import {Component, EventEmitter, Input, Output} from '@angular/core'; import {OPTIONS_DATA, OptionType} from '../../shared/poll-item-options'; import {Poll} from '../../model/poll'; import {CommonToolsService} from '../../service/common-tools.service'; imp...
import { Transform2D } from "../Transform2D"; import { Transform3D } from "../Transform3D"; import { mat2d, vec2, vec4 } from "gl-matrix"; import { RenderableComponent } from "../RenderableComponent"; import { TransformComponent } from "../TransformComponent"; import { extractScale } from "../../math"; import type { IJ...
<reponame>mcode/clinical-trial-matching-service-breastcancertrials.org /** * Handles conversion of patient bundle data to a proper request for matching service apis. * Retrieves api response as promise to be used in conversion to fhir ResearchStudy */ import { ClinicalStudy, ClinicalTrialsGovService, fhir, ...
import Album = require('album'); import App = require('app'); import $ = require('jquery'); import Flipper = require('flipper'); import I18N = require('i18n'); import Leaflet = require('leaflet-wrapper'); import Picture = require('picture'); import PictureFrame = require('pictureframe'); /// <reference path="leaflet.d...
<gh_stars>0 /* eslint-disable @typescript-eslint/camelcase */ import * as path from "path"; import { queue } from "./queue"; import { CodeGenerator, McFunction, LootInput, DataPackFile, TagType, Tag, LootTable, FileType, Objective, Command, DataPackExport, } from "./types"; import { SelectorArgs, ...
<gh_stars>0 import * as passport from 'koa-passport' import {Strategy as FacebookStrategy} from 'passport-facebook' import {Strategy as JwtStrategy, ExtractJwt } from 'passport-jwt' import {Strategy as GitHubStrategy } from 'passport-github2' import {OAuth2Strategy as GoogleStrategy } from 'passport-google-oauth' impor...
<reponame>sokril/board import { HTTP_INTERCEPTORS, HttpErrorResponse, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http'; import { HttpHandler } from '@angular/common/http/src/backend'; import { HttpEvent } from '@angular/common/http/src/response'; import { Injectable } from '@angular/core'; impor...
/*! * V4Fire Core * https://github.com/V4Fire/Core * * Released under the MIT license * https://github.com/V4Fire/Core/blob/master/LICENSE */ import { getProxyValue } from 'core/object/watch/engines/helpers'; import { WrapParams, WrapResult, StructureWrappers } from 'core/object/watch/wrap/interface'; export co...
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { async, fakeAsync, tick, ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { GenticsUICoreModule, ModalServi...
/* eslint-disable array-callback-return */ import * as postcss from 'postcss'; import * as CleanCSS from 'clean-css'; import * as del from 'del'; import { join, parse } from 'path'; import DefaultHashString = require('string-hash'); import Config from '../utils/config'; import { dev } from '../utils'; import { getHash...
import update from 'immutability-helper'; import { DateTime } from 'luxon'; import { bindCallback, Observable, Subscriber, } from 'rxjs'; import { map } from 'rxjs/operators'; import { fakeName, isDevelopment, isFakeNames, } from '../../constants'; import { RestoredBirthday, Settings, StoredBirthday, ...
<reponame>rkoron007/federation<gh_stars>10-100 /** * Similar in concept to `IntrospectAndCompose`, but this handles * the `experimental_updateComposition` and `experimental_updateSupergraphSdl` * configuration options of the gateway and will be removed in a future release * along with those options. */ import type...
<reponame>nikita2206/wireguard-tools // License below retained on purpose /*! SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2015-2020 <NAME> <<EMAIL>>. All Rights Reserved. */ import * as crypto from "crypto"; function gf(init?: number[]): Float64Array { let r = new Float64Array(16); if (init) { for ...
import { Redis } from "ioredis"; import { Closable } from "../Closable"; import { Job } from "../Job"; import type { ScheduleMap } from "../index"; import { computeTimestampForNextRetry } from "./retry"; import { AcknowledgementDescriptor, Acknowledger, OnError, } from "../shared/acknowledger"; import { decodeRed...
<filename>functions/src/tokensdb.ts<gh_stars>10-100 /* * Copyright 2021 Google 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-...
<reponame>Dutchosintguy/Memex import styled from 'styled-components' import { colorPrimary, colorSecondary, } from 'src/common-ui/components/design-library/colors' const PricingTable = styled.div` border-radius: 5px; padding: 10px 13px; margin-bottom: 20px; display: flex; flex-direction: co...
<filename>src/scenes/GameScene.ts import * as tileEx from "akashic-tile-ex"; import * as types from "../types"; import * as entities from "../entities"; import * as handlers from "../handlers"; import * as behaviors from "../behaviors"; import * as components from "../components"; import * as utils from "../utils"; imp...
<reponame>rishabhnuevezo/user-interfaces import { Overlay, OverlayRef } from '@angular/cdk/overlay'; import { CdkPortal } from '@angular/cdk/portal'; import { Component, ElementRef, HostListener, Inject, OnInit, ViewChild, } from '@angular/core'; import { getModule } from '@placeos/ts-client'; i...
import React, { Component } from 'react'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Paper from '@material-ui/core/Paper'; import { createStyles, Theme, withStyles, WithStyles } from '@material-ui/core/styles'; import { TableCell, TableRow, TableHead, Table, T...
import {useCallback, useEffect, useRef, useState} from 'react'; import {useHotkeys} from 'react-hotkeys-hook'; import {Dropdown, Menu, Tooltip} from 'antd'; import {LoadingOutlined} from '@ant-design/icons'; import {TOOLTIP_DELAY} from '@constants/constants'; import {ClusterModeTooltip} from '@constants/tooltips'; ...
<gh_stars>0 import Web3 from 'web3'; import { BlockTransactionString } from 'web3-eth'; import { EventData, PastEventOptions } from 'web3-eth-contract'; import { PrefixedHexString, TransactionOptions } from 'ethereumjs-tx'; import { BlockNumber, HttpProvider, IpcProvider, provider, Transaction, TransactionReceipt, Webs...
import React, { useState, useEffect } from 'react'; import useStateWithError from 'azrmui/hooks/useStateWithError'; import { useLocation } from 'react-router'; import { useConnect } from 'azrmui/hooks/redux-react-hook-ex'; import { useTranslation } from 'react-i18next'; import { makeStyles } from '@material-ui/core/sty...
<filename>Westmoor.DowntimePlanner/ClientApp/src/app/home/schedule-downtime.component.ts import { Component } from '@angular/core'; import { BsModalRef } from 'ngx-bootstrap/modal'; import { FormArray, FormControl, FormGroup, Validators } from '@angular/forms'; import { defer, forkJoin, from, merge, Observable, of } fr...
import { useAuth } from '@/context/auth-context' import { useUser } from '@/context/user-context' import { Avatar, Box, Button, chakra, Container, Heading, Icon, useColorModeValue, Flex, Text, Editable, EditableInput, EditablePreview, ButtonGroup, useEditableControls, useColorMode, Ico...
import { hiveFetch, QueryClient } from '@libs/query-client'; import { AUD, CAD, CHF, CNY, DKK, EUR, GBP, HKD, HumanAddr, IDR, INR, JPY, KRT, KRW, Luna, MNT, NativeDenom, NOK, Num, PHP, SDR, SEK, SGD, THB, Token, u, UST, } from '@libs/types'; // language=graphql con...
import { Identity } from "openfin/_v2/identity" interface BasicWindow { name: string width: number height: number } export type Offset = [number, number] const openFinPopupPrefix = "user-generated-popup-" export const mainOpenFinWindowName = "Reactive-Trader-MAIN" // set in the app.json function popupNameFor(n...
<gh_stars>1-10 import { LogEventType, LogConfig, LogLevel } from './classes'; import { StateData } from "./StateData"; import { IStateConstructor, IReducerDelegate } from "./interfaces"; import { KeyValuePair } from "./private-interfaces"; import { parse, stringify } from 'flatted/esm'; class Manager { private stati...
/// <reference path="./types.d.ts" /> /// <reference path="./android.d.ts" /> /// <reference path="./artifact.d.ts" /> /// <reference path="./boot.d.ts" /> /// <reference path="./chat.d.ts" /> /// <reference path="./dialog.d.ts" /> /// <reference path="./constants.d.ts" /> /// <reference path="./data_cache.d.ts" /> ///...
<reponame>luodongseu/weex-toolkit // The MIT License (MIT) // Copyright (c) 2016-3016 Infinite Red, Inc. // 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, incl...
<reponame>pazz-dot-com/ngx-chat<filename>src/lib/core/form.ts import { Element } from 'ltx'; import { jid as parseJid, JID } from '@xmpp/jid'; import { xml } from '@xmpp/client'; // implements https://xmpp.org/extensions/xep-0004.html export const FORM_NS = 'jabber:x:data'; export type FormType = 'form' | 'submit' |...
import { principalAxesToOrientation } from './helper/CalcOrientation'; import Clock from './helper/Clock'; import ISourceNodeOptions from './nodes/ISourceNodeOptions'; import SounityOutputNode from './nodes/SounityOutputNode'; import SounitySoundNode, { ESounitySourceNodeState } from './nodes/SounitySoundNode'; //wind...
import * as React from 'react'; import rafSchedule from 'raf-schd'; import { updateColumnsOnResize } from 'prosemirror-tables'; import { browser, akEditorTableToolbarSize } from '@atlaskit/editor-common'; import TableFloatingControls from '../ui/TableFloatingControls'; import ColumnControls from '../ui/TableFloatingCon...
import "./styles/index.scss"; export interface IRenderOptions { /** * Whether or not to encapsulate the entire object inside a single root element. */ useRootElement?: boolean; /** * The name of the root element to use if useRootElement is true. Defaults to "root". */ rootName?: st...