text
stringlengths
3.3k
33k
import { Component, OnInit, Renderer, ViewChild } from '@angular/core'; import { AlertController, IonLabel, Platform } from '@ionic/angular'; import { Router } from '@angular/router'; import { StorageService } from '../shared/services/storage.service'; import { ApiService } from '../shared/services/api.service'; import...
import xml2js from "xml2js"; import DB, { DBInstance } from "./DB"; import StreamReader from "./StreamReader"; import Format, { IEpisode } from "./Format"; export interface IPodcastSuiteConfig { proxy?: IProxy; podcasts?: string[]; fresh?: number; fetchEngine?: Function; shouldInit?: boolean; } export inter...
<gh_stars>0 /* eslint-disable @typescript-eslint/no-namespace */ import { HttpService } from '@nestjs/axios'; import { Inject, Injectable, LoggerService } from '@nestjs/common'; import { WINSTON_MODULE_NEST_PROVIDER } from 'nest-winston'; import { lastValueFrom } from 'rxjs'; import { AccessDeniedException } from '../...
import type { IPointData } from 'pixi.js'; import { EventTypes, Keys, KeyStatus } from './input.model'; /** * Customized map to store key state * @description Both StateID and State are 32-bit integers * * **StateID** * * `StateID = DeviceID + ButtonID << 8` * * ``` * +----------+----------+ * | DeviceID | ...
/* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Mapping, _decode_Mapping, _encode_Mapping, } from "../ServiceAdministration/Mapping.ta"; import { MRSubstitut...
<gh_stars>1-10 import { Ratio } from './src/Ratio' import { suite, test, slow, timeout } from "mocha-typescript" import { assert, deepEqual, throws } from "assert" const throwsMessage = ( f: () => void, errorMessage: string ) => { try { f() throw new Error() } catch ( {message} ) { deepEqual( errorMessage, mes...
<filename>lib/eunitRunner.ts import * as vscode from 'vscode'; import * as fs from 'fs' import * as rebar from './RebarRunner'; import * as erlang from './ErlangShell'; import * as path from 'path'; import * as utils from './utils'; import * as adapter from './vscodeAdapter'; import { erlangBridgePath } from './erlang...
import React from 'react'; import { Mutation } from '@apollo/client/react/components'; import { useQuery, useMutation } from '@apollo/client/react/hooks'; import { IUserWithoutToken, userTypes, Models, GQLRequests, GET_STUDY } from 'itmat-commons'; import { Subsection } from '../reusable'; import LoadSpinner from '../r...
const Logger = require('logplease'); const xmlrpc = require('homematic-xmlrpc'); const logger = Logger.create('XMLRPCServer'); const storage = require('node-persist'); const os = require('os'); export class XMLRPCServer { host: String; port: number; consumers = []; server; devices; constructo...
import { BinaryDecoder } from "@s4tk/encoding"; import type { BinaryFileReadingOptions } from "../../../common/options"; import type { ObjectCellRow, SimDataDto } from "../types"; import { makeList } from "../../../common/helpers"; import { SimDataSchema, SimDataSchemaColumn, SimDataInstance } from "../fragments"; impo...
<reponame>NickPhura/lngcanada-admin import { Location } from '@angular/common'; import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute, ParamMap, Params, Router } from '@angular/router'; import * as moment from 'moment'; import * as _ from 'lodash'; import { Subject, forkJoin } from 'rxjs...
<reponame>Turner77/Atlastraining1 import type { GQlessClient } from 'gqless'; import { createReactClient, CreateReactClientOptions, ReactClient, } from '@gqless/react'; import React, { useContext, useEffect, useRef } from 'react'; import { useRouter } from 'next/router'; import isObject from 'lodash/isObject'; im...
<filename>src/libs/computation.ts import conjunct from './conjunct' import groupBy from './groupby' import sortBy from './sortby' import formatDate from './formatDate' export interface IRecord { 'Apple ID Number': string // '16961810402' 'Apple Music Subscription': string // 'true', 'Artist Name': string...
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'; import { useLocation, useHistory } from 'react-router-dom'; import { keyBy } from 'lodash'; import { Loading, IconAlt } from '@veupathdb/wdk-client/lib/Components'; import { combineClassNames } from 'ebrc-client/componen...
import React, { useEffect, useRef } from "react" import { Item } from "." import { DisolveGalleryDisplay } from "./display" import { RenderedItem } from "./item" import { useGalleryNavigation } from "./navigation" import { concatClasses, prefixClasses } from "./utils" import { useGesture } from '@use-gesture/react' ex...
<reponame>Trustology/trustvault-nodejs-sdk<filename>src/ts/resources/signature/index.ts import { createHash, createHmac } from "crypto"; import { ec as EC } from "elliptic"; import { NIST_P_256_CURVE, PUBLIC_KEY_HEX_PREFIX, SHA_256_HASH_ALGO, VALID_PUBLIC_KEY_BYTE_LENGTH, VALID_SIGNATURE_BYTE_LENGTH, } from "...
import React from "react" import { GoiJaWordType } from "../../types/GoiDictionaryTypes" import { List as MuiList, Box, Paper } from "@material-ui/core" import GoiTranslation from "./GoiTranslation" import TinyTag from "./TinyTag" import TinyContentTag from "./TinyContentTag" import GoiSentence from "./GoiSentence" imp...
<gh_stars>1-10 import * as Effects from "./effects"; import * as waves from "./waves"; type Stack = { index: number, count: number, }; type Wave = "square50" | "square25" | "square12.5" | "triangle" | "saw" | "sine" | "whitenoise" | "sineharmony" | "naturalsquare50" | "...
import { CommandTreeVersion } from './CommandTreeVersion' import { NamingConventionConfig } from './NamingConventionConfig' import { StrictCheckConfig } from './StrictCheckConfig' import { DiagnosticConfig, SepSpacingConfig, BracketSpacingConfig } from './StylisticConfig' import { QuoteTypeConfig } from './QuoteTypeCon...
<filename>src/sort-concentrically.ts<gh_stars>1-10 import {window, TextEditor, workspace, Range, Uri} from 'vscode'; // Concentric CSS order taken from https://github.com/brandon-rhodes/Concentric-CSS const defaultOrder = [ /* browser default styles */ 'all', 'appearance', /* box model */ 'box-sizing', /...
#!/usr/bin/env node import * as program from 'commander'; import * as colors from 'colors'; import {Observable} from 'rxjs/Rx'; import {prompt} from 'inquirer'; import { AliasService, ConfigService, GithubService, LoggingService, } from './services'; import {UserInfo} from './models'; // S...
import { baseFiles, config } from '@/ts/config'; import { EFlag } from '@/ts/enums'; import { addBaseUrl, checkLinkPath, isExternalLink, shortenPath } from '@/ts/path'; import { getAnchorRegExp, getHeadingRegExp, getLinkRegExp, getWrapRegExp } from '@/ts/regexp'; import * as localStorage from '@/ts/storage'; import { s...
<reponame>script-heads/StageUI import { CSSInterpolation as CSSI, CSSObject as CSSO } from '@emotion/serialize' import { ColorProp as ColorPropType } from '@stage-ui/system/props/color' import { OverridesProp as OverridesPropType } from '@stage-ui/system/props/overrides' import { SpaceProp as SpacePropType } from '@sta...
/**by <NAME> - PheoDScop#3470*/ import { BehaviorSubject } from "rxjs"; import { environment } from '../environments/environment'; const Web3 = require('web3'); var Contract = require('web3-eth-contract'); /** * Import contract abi (json) from * Casino Library, TableNFT * RandomNumberConsumer, RouleteeSpinCasino,...
<reponame>siddhant-dev/DinmoGlobal<filename>src/app/data.ts export const normal = [ {index: "4", name: "Matt Black", value: "#1B201F"}, {index: "5", name: "Matt White", value: "#F7F1E6"}, {index: "6", name: "Orange Red", value: "#D12D28"}, {index: "7", name: "Bright Red", value: "#CB2E29"}, {index: "11", name: "N...
import { createOutput } from 'configure-env/dist/output'; import { parseFile, VariableDeclaration } from 'configure-env/dist/parser'; import degit, { Info } from 'degit'; import execa from 'execa'; import fsFull from 'fs'; import mkdirp from 'mkdirp'; import path from 'path'; import { projectInstall } from 'pkg-install...
import * as types from "./types"; import * as common from "./common"; import child_process = require('child_process'); import crypto = require('crypto'); import path = require('path'); import fs = require('fs'); import os = require('os'); import tty = require('tty'); declare const ESBUILD_VERSION: string; // This fi...
<filename>replay/backend/api/index.ts<gh_stars>1-10 import * as http2 from 'http2'; import { ClientHttp2Stream, IncomingHttpHeaders, IncomingHttpStatusHeader } from 'http2'; import { ChildProcess, spawn } from 'child_process'; import * as Path from 'path'; import ISaSession from '~shared/interfaces/ISaSession'; import ...
<reponame>DaniilChukhinFiredome/janus-phone-kit import EventEmitter from './util/EventEmitter'; import {logger} from './util/logger' import {BasePlugin} from "./plugins/BasePlugin"; type SessionOptions = { timeoutMs: number, keepaliveMs: number, } const defaultOptions: SessionOptions = { timeoutMs: 5000, keepa...
import { Box, Flex, Heading, HStack, Stack, StackDivider, Text, VStack, } from "@chakra-ui/layout"; import { HiCloudUpload } from "react-icons/hi"; import React, { useEffect, useReducer, useRef, useState } from "react"; import { chakra, useColorModeValue } from "@chakra-ui/system"; import { FormContro...
import * as http from 'http' import { dirname, resolve } from 'path' import os from 'os' import path from 'path' import sirv from 'sirv' import fs from 'fs-extra' import { chromium } from 'playwright-chromium' import type { InlineConfig, Logger, PluginOption, ResolvedConfig, ViteDevServer } from 'vite' import...
import { demicrofy, formatLuna, formatLunaInput, formatUST, formatUSTInput, LUNA_INPUT_MAXIMUM_DECIMAL_POINTS, LUNA_INPUT_MAXIMUM_INTEGER_POINTS, } from '@anchor-protocol/notation'; import { bLuna, Rate, uUST } from '@anchor-protocol/types'; import { useConnectedWallet, useWallet, WalletReady, } fro...
<gh_stars>1-10 /* eslint-disable consistent-return,no-return-assign */ import { KoaContext } from 'types/koa'; import { Context, Middleware } from 'koa'; import bodyParser from '../middlewares/bodyParser'; type ParamsType = Record<string, any> | any[] | void; export type JsonRpcRequest<T = ParamsType> = { jsonrpc: ...
import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios"; import BlackboardAPI from "."; import { USER_AGENT } from "./constants"; import { BatchResponse } from "./structs/layer"; /** * Inspects the given object and determines if it is an Axios error * @param obj object to inspect */ exp...
/* eslint-disable no-empty */ import { useEffect, useState, useRef, CSSProperties } from 'react'; import loader from '@monaco-editor/loader'; loader.config({ paths: { vs: 'https://g.alicdn.com/code/lib/monaco-editor/0.31.1/min/vs', }, }); type IAmbigousFn = (...args: any[]) => any; // @todo fill type def for...
import "reflect-metadata"; import { expect } from "chai"; import * as ts from "typescript"; import EntityFileToJson from "../utils/EntityFileToJson"; import { createDriver, dataCollectionPhase, modelCustomizationPhase, modelGenerationPhase } from "../../src/Engine"; import * as GTU from "../utils/Genera...
<filename>src/api/catalog-search/catalog-search.ts import lunr from "lunr"; import { CDKType } from "../../constants/constructs"; import { Language } from "../../constants/languages"; import { CatalogPackage } from "../package/packages"; import { PackageStats } from "../stats"; import { CatalogSearchSort } from "./cons...
/** * @license * Copyright 2017 Palantir Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
<filename>src/Blockcore.Vault.Admin/ClientApp/src/app/message/message.component.ts import { Component, ViewChild, Inject, ChangeDetectorRef, OnDestroy } from '@angular/core'; import { map } from 'rxjs/operators'; import { Breakpoints, BreakpointObserver } from '@angular/cdk/layout'; import { ApplicationState } from '.....
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>maxpark/dive import IntervalTree from '@flatten-js/interval-tree'; import { provide, inject, ref, Ref, } from '@vue/composition-api'; import { AnnotatorPreferences as AnnotatorPrefsIface } from './types'; import { CustomStyle, StateStyles, TypeStyling } from './use/useStyling'; import { EditAnnotationTypes...
<reponame>harabat/bokeh import {TextAnnotation, TextAnnotationView} from "./text_annotation" import {ColumnarDataSource} from "../sources/columnar_data_source" import {ColumnDataSource} from "../sources/column_data_source" import * as mixins from "core/property_mixins" import {LineJoin, LineCap} from "core/enums" impor...
import React from 'react'; import { Affix, Button, Dropdown, Layout, Menu, Popover } from 'antd'; import styled from 'styled-components'; import { Link, scrollTo } from 'react-static'; import { size } from '@src/breakpoints'; import logoImg from '@images/logo_light.svg'; const { Header } = Layout; const { SubMenu } = ...
import {VoiceEntry, StemDirectionType} from "./VoiceEntry"; import {SourceStaffEntry} from "./SourceStaffEntry"; import {Fraction} from "../../Common/DataObjects/Fraction"; import {NoteEnum, Pitch} from "../../Common/DataObjects/Pitch"; import {Beam} from "./Beam"; import {Tuplet} from "./Tuplet"; import {Tie} from "./...
import { ComponentOptionsMixin, ComponentOptionsWithArrayProps, ComponentOptionsWithObjectProps, ComponentOptionsWithoutProps, ComponentPropsOptions, ComponentPublicInstance, ComputedOptions, EmitsOptions, MethodOptions, RenderFunction, SetupContext, ComponentInternalInstance, VNode, RootHyd...
<filename>src/demux/demuxer.ts import EventEmitter from "../event/eventemitter"; import PESDecoder from "../mpegts/pes-decoder"; import SectionDecoder from "../mpegts/section-decoder"; import { pid, has_pcr, pcr, PCR_CYCLES, HZ } from "../mpegts/packet"; import { CRC_SIZE, EXTENDED_HEADER_SIZE } from...
import React, { useState, useEffect } from "react"; import { useDispatch } from "react-redux"; import { listShiftRequests, completeTransfer, downloadShiftRequests, } from "../../Redux/actions"; import Button from "@material-ui/core/Button"; import { navigate } from "raviger"; import moment from "moment"; import {...
/** * @license * Copyright 2018-2021 Streamlit Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
import { DestinySocketCategoryStyle } from 'bungie-api-ts/destiny2'; import _ from 'lodash'; import { armor2PlugCategoryHashesByName, TOTAL_STAT_HASH } from '../../search/d2-known-values'; import { infoLog } from '../../utils/log'; import { knownModPlugCategoryHashes, LockableBuckets, MinMax, MinMaxIgnored, r...
let keycodes = []; keycodes[0] = [ 'KC_NO', 'KC_TRNS', 'KC_POST_FAIL', 'KC_UNDEFINED', 'KC_A', 'KC_B', 'KC_C', 'KC_D', 'KC_E', 'KC_F', 'KC_G', 'KC_H', 'KC_I', 'KC_J', 'KC_K', 'KC_L', 'KC_M', // 0x10 'KC_N', 'KC_O', 'KC_P', 'KC_Q', 'KC_R', ...
import { Button, Header } from '@stardust-ui/react' import * as React from 'react' import { NavLink } from 'react-router-dom' import DocPage from '../components/DocPage/DocPage' import CodeSnippet from '../components/CodeSnippet' const header = content => <Header as="h2">{content}</Header> const subheader = content =>...
<gh_stars>0 // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Framework Emulator Github: // https://github.com/Microsoft/BotFramwork-Emulator // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT ...
<filename>frontend/app/shared/state/contents.state.ts /* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ import { Injectable } from '@angular/core'; import { empty, forkJoin, Observable, of } from 'rxjs'; import { catchError, finalize, switchMap, tap } ...
import {chain, Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {addPackageJsonDependency, removePackageJsonDependency} from '@schematics/angular/utility/dependencies'; import {getFileContent} from '@schematics/angular/utility/test'; import { addFile, angularJsonConfigPath, createDevDependency...
<reponame>maybesmurf/talk import Joi from "joi"; import { isNull, uniq } from "lodash"; import { DateTime } from "luxon"; import { v4 as uuid } from "uuid"; import { constructTenantURL } from "coral-server/app/url"; import { Config } from "coral-server/config"; import { MongoContext } from "coral-server/data/context";...
// Type definitions for Moment.js 2.5.0 // Project: https://github.com/timrwood/moment // Definitions by: <NAME> <https://github.com/Lakerfield> // Definitions by: <NAME> <https://github.com/kingdango> (2.4.0) // Definitions by: <NAME> <https://github.com/horiuchi> (2.5.0) // DefinitelyTyped: https://github.com/borisya...
/** * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * * mostly adapted from https://gist.github.com/imbcmdth/6338194 * which is ported from https://code.google.com/archive/p/fastapprox/ (BSD licensed) */ const _a_fastPow2 = new ArrayBuffer...
import React, { memo, useCallback, useEffect, useMemo, useRef, useState, } from 'react' import MapboxGL, { FillLayerStyle, LineLayerStyle, RegionPayload, SymbolLayerStyle, } from '@react-native-mapbox-gl/maps' import { Feature, Point, Position } from 'geojson' import { Hotspot, Witness } from '@heli...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2020 Realm 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/li...
/** * @license * Copyright 2021 Dynatrace LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
import * as React from "react" import SideMenu from "../components/SideMenu" import CodeArea from "../components/CodeArea" import Footer from "../components/Footer" import manualValidation from "../components/codeExamples/manualValidation" import accessibleCode from "../components/codeExamples/accessibleCode" import sh...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import { ImageId, ImageData, ImagesList, ImagesListResponse, ImageEvent, FrescoDebugOverlayEvent, Andr...
import React, {Component, createRef, useContext} from 'react'; import {HorizontalDotsMinor} from '@shopify/polaris-icons'; import isEqual from 'lodash/isEqual'; import {classNames, variationName} from '../../utilities/css'; import {useI18n} from '../../utilities/i18n'; import type {DisableableAction} from '../../types...
import { List, Map } from "immutable"; import { Button, Col, DropdownItem, DropdownMenu, DropdownToggle, Form, FormGroup, Input, InputGroup, InputGroupAddon, InputGroupText, Label, UncontrolledDropdown, } from "reactstrap"; import React, { useState } from "react"; import Problem from "../inter...
<gh_stars>0 import { createAsyncThunk, createSlice } from '@reduxjs/toolkit' import { Hotspot, Sum } from '@helium/http' import Balance, { CurrencyType, NetworkTokens } from '@helium/currency' import { orderBy, sortBy } from 'lodash' import { getHotspotDetails, getHotspotRewardsSum, getHotspots, } from '../../uti...
import { LitElement, html, unsafeCSS } from 'lit'; import { customElement, property, query } from 'lit/decorators.js'; import { classMap } from 'lit-html/directives/class-map'; import { Instance as PopperInstance, createPopper } from '@popperjs/core/dist/esm'; import { animateTo, parseDuration, stopAnimations } from '....
// Copyright (c) 2017 Uber Technologies, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
<reponame>saby/saby-ui<filename>UIInferno/UICore/_vdom/Synchronizer/Synchronizer.ts /// <amd-module name="UICore/_vdom/Synchronizer/Synchronizer" /> /* tslint:disable */ import { createNode } from './resources/ControlNode'; import { DirtyKind, rebuildNode, destroyReqursive, getReceivedState } from './resources/DirtyCh...
<gh_stars>1-10 import { GraphQLResolveInfo } from 'graphql'; export type Maybe<T> = T | null; export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }; export type MakeMaybe<T, K extends keyof T...
import { ReactElement, useState, useEffect, useCallback } from 'react' import { useDispatch, useSelector } from 'react-redux' import { backOff } from 'exponential-backoff' import { TransactionReceipt } from 'web3-core' import { GenericModal } from '@gnosis.pm/safe-react-components' import styled from 'styled-components...
/** * Copyright 2021 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import "./styles/global.css"; import "./lib/socket"; import * as React from "react"; import * as Redux from "react-redux"; import ReactDOM from "react-dom"; import { ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import AuthRoute from "./components/AuthRoute"; import { BrowserRo...
import { DatapointsMultiQuery, GetTimeSeriesMetadataDTO } from '@cognite/sdk'; import { Alert, Button, Checkbox, DatePicker, Form, Input, Modal, Radio } from 'antd'; import { RangePickerValue } from 'antd/lib/date-picker/interface'; import { FormComponentProps } from 'antd/lib/form'; import { chunk, isFunction, range }...
/** * Copyright 2019, SumUp Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
<reponame>pagopa/io-functions-commons /* eslint-disable spaced-comment */ import * as t from "io-ts"; import { none, Option, some } from "fp-ts/lib/Option"; import { Set } from "json-set-map"; import { FiscalCode, NonEmptyString, OrganizationFiscalCode } from "@pagopa/ts-commons/lib/strings"; import { Contain...
import { Channel, integer, Internal, snowflake, timestamp } from '.' declare module './channel' { interface Channel { /** an approximate count of messages in a thread, stops counting at 50 */ message_count?: integer /** an approximate count of users in a thread, stops counting at 50 */ member_count?:...
<gh_stars>0 /* tslint:disable max-classes-per-file */ import { PhoneNumberUtils } from '@celo/utils' import { retryAsync, sleep } from '@celo/utils/lib/async' import { database } from 'firebase-admin' import { DataSnapshot } from 'firebase-functions/lib/providers/database' import Web3 from 'web3' import { CeloAdapter }...
import * as crypto from "crypto"; import { Executable } from "heng-protocol"; import path from "path"; import fs from "fs"; import { ExecType, Language } from "../Spawn/Language/decl"; import { FileAgent } from "./File"; import { getConfig } from "../Config"; import { CompleteStdioOptions } from "../Spawn/BasicSpawn"; ...
import { version } from '@/../package.json'; import abi from '@/helpers/abi'; import client from '@/helpers/client'; import config from '@/helpers/config'; import ipfs from '@/helpers/ipfs'; import { formatProposal, formatProposals } from '@/helpers/utils'; import wsProvider from '@/helpers/ws'; import namespaces from ...
<filename>packages/mobile/src/identity/contactMapping.ts<gh_stars>0 import { AttestationsWrapper, IdentifierLookupResult, } from '@celo/contractkit/lib/wrappers/Attestations' import { isValidAddress } from '@celo/utils/src/address' import { isAccountConsideredVerified } from '@celo/utils/src/attestations' import { ...
<filename>src/pages/app/bi-directional-payment-channel/index.html.ts // metadata export const version = "0.8.3" export const title = "Bi-Directional Payment Channel" export const description = "An example of bi-directional payment channels in Solidity" const html = `<p>Bi-directional payment channels allow participant...
import { Injectable, NotImplementedException } from '@nestjs/common'; import { CacheManagerService, InjectCache, InjectConfig, } from '@steggy/boilerplate'; import { GeneralSaveStateDTO } from '@steggy/controller-shared'; import { domain, HASS_DOMAINS, HassStateDTO, RelatedDescriptionDTO, } from '@steggy/...
import * as React from 'react'; import { BaseComponent, KeyCodes, css, getRTL } from '../../Utilities'; import { ICalendarStrings, ICalendarIconStrings, ICalendarFormatDateCallbacks } from './Calendar.types'; import { FocusZone } from '../../FocusZone'; import { addYears, setMonth, getYearStart, getYearEnd, g...
import { RawPatch, RawUpdateData, Patch, UpdateData } from './types' import 'isomorphic-fetch' import { Readable } from 'stream' export * from './types' const splitOnce = ( s: string, sep: string | RegExp ): [string, string] | null => { const pos = s.search(sep) if (pos < 0) return null else { const rem...
<reponame>xyla-io/longcat_ux<filename>src/app/dashboard/services/template.service.ts import { Injectable } from '@angular/core'; import { AbstractTemplate, TemplateIdentifier, BlockTemplate, TemplateType, isBlockTemplate, TemplateReference, TemplateCollection, isTemplateCollection, } from 'src/app/dashb...
<filename>packages/server/src/projects.ts import * as shared from '@volar/shared'; import type * as ts from 'typescript/lib/tsserverlibrary'; import * as path from 'upath'; import type { TextDocument } from 'vscode-languageserver-textdocument'; import * as vscode from 'vscode-languageserver'; import { createProject, Pr...
<filename>src/index.d.ts // TypeScript Version: 2.6 /** * GraphQL.js provides a reference implementation for the GraphQL specification * but is also a useful utility for operating on GraphQL files and building * sophisticated tools. * * This primary module exports a general purpose function for fulfilling all * ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import APIList from './APIList' import APIResource from './APIResource' import APIResourceFile from './APIResourceFile' import APIResourceProject from './APIResourceProject'; import APIResourceAccessGroup from './APIResourceAccessGroup'; import APIAdminListRuns from './APIAdminListRuns'; import APIAdminResourceClust...
<gh_stars>0 /** * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; import { Constants } from '../constants'; import * as AdminUtils from './utility/adminUtils'; import * as BaseUtils from './utility/baseUtils'; import { CommonConnectionProfileHelper } from './utility/commonConnectionProfileHelper'; import * as...
<gh_stars>1-10 import { FieldInterface } from "../interfaces/FieldInterface"; import { FieldRulesAndParams, serializedParam } from "../types/index"; import { validationRules } from "../states/validationRules"; import Label from "./Label"; import { CleverFormData } from "./CleverFormData"; import { Default } from "../gl...
/* eslint-disable no-sparse-arrays */ import * as fc from 'fast-check'; import { sparseArray, SparseArrayConstraints } from '../../../src/arbitrary/sparseArray'; import { FakeIntegerArbitrary, fakeArbitrary, fakeArbitraryStaticValue } from './__test-helpers__/ArbitraryHelpers'; import * as RestrictedIntegerArbitraryB...
<reponame>axelson/typescript-language-server import tsp from 'typescript/lib/protocol'; import * as lsp from 'vscode-languageserver/node'; import * as lspcalls from './lsp-protocol.calls.proposed'; import { TspClient } from './tsp-client'; import { CommandTypes } from './tsp-command-types'; import { uriToPath, toLocat...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../common/common.js'; import * as Platform from '../platform/platform.js'; import type * as ProtocolClient from '../protocol_clie...
<filename>controls/spreadsheet/src/workbook/integrations/data-bind.ts import { DataManager, Query, Deferred, ReturnOption, QueryOptions } from '@syncfusion/ej2-data'; import { Workbook, getCell, CellModel, RowModel, SheetModel, setCell } from '../base/index'; import { getRangeIndexes, checkIsFormula, updateSheetFromDat...
<filename>discovery-frontend/src/app/data-storage/data-source-list/data-source-list.component.ts /* * 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/...
import { Component, OnInit, ViewChild, TemplateRef } from '@angular/core'; import { formatNumber } from '@angular/common'; import { FormGroup, Validators, FormBuilder } from '@angular/forms'; import { NbShowcaseDialogComponent } from '../../@core/utils/confirm.dialog'; import { NbDialogService } from '@nebular/them...
<filename>src/backend/viewer/Model/Application/Application.ts import {AppInfo} from "../../../AppInfo"; import { v4 as uuidv4 } from 'uuid'; const path = require('path'); const axios = require('axios'); const colors = require('colors/safe'); import BackHostApp from '../../../BackHostApp'; import BaseModel from '../....
import { Constructable, IContainer, Immutable, Omit, PLATFORM, Registration, Reporter, Writable } from '@au-test/kernel'; import { BindingContext, Scope } from '../binding/binding-context'; import { BindingFlags } from '../binding/binding-flags'; import { DOM, ICustomElementHost, INode, INodeSequence, I...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...