text
stringlengths
3.08k
15.5k
import { MangoQuery } from './rx-query'; /** * this file contains types that are pouchdb-specific * most of it is copied from @types/pouchdb * because it is outdated and strange */ export interface PouchReplicationOptions { live?: boolean; retry?: boolean; filter?: Function; doc_ids?: string[]; ...
/* Copyright 2022 The Matrix.org Foundation C.I.C. 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 ...
<reponame>goldfinch-eng/mono import * as admin from "firebase-admin" import {isPlainObject, isString, isStringOrUndefined} from "@goldfinch-eng/utils" import firestore = admin.firestore let _firestoreForTest: firestore.Firestore let _configForTest: FirebaseConfig = { kyc: {allowed_origins: "http://localhost:3000"}, ...
<reponame>ip138/BahnhofsAbfahrten import { byEva, byName, byPosition, byRl100, keys } from 'business-hub'; import { CacheDatabases, createNewCache } from 'server/cache'; import { getSingleStation } from 'server/iris/station'; import { StopPlaceKeyType } from 'business-hub/types/RisStations'; import type { GroupedStopPl...
import assert from 'assert-diff' import _ from 'lodash' import {RippleAPI} from 'ripple-api' import {RecursiveData} from 'ripple-api/ledger/utils' import {assertRejects, assertResultMatch} from './utils' import addresses from './fixtures/addresses.json' import responses from './fixtures/responses' import ledgerClosed f...
<filename>ts/input/tex/require/RequireConfiguration.ts /************************************************************* * * Copyright (c) 2019 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
/* * The MIT License * Copyright (c) 2019- Nordic Institute for Interoperability Solutions (NIIS) * Copyright (c) 2018 Estonian Information System Authority (RIA), * Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK) * Copyright (c) 2015-2017 Estonian Information System Author...
<gh_stars>0 /** * @license * Copyright Google LLC 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 {assertLContainer} from '../render3/assert'; import {createLView, renderView} from '../render3/ins...
<reponame>koddsson/island.is<gh_stars>0 import { Field, findSectionIndexForScreen, findSubSectionIndexForScreen, FormItemTypes, FormLeaf, FormValue, getSubSectionsInSection, MultiField, ExternalDataProvider, Repeater, shouldShowFormLeaf, } from '@island.is/application/template' import { Applicatio...
import type { FetchCompleteContext, Observable, RawError, XhrCompleteContext } from '@datadog/browser-core' import { ErrorSource, initXhrObservable, RequestType, initFetchObservable, computeStackTrace, toStackTraceString, monitor, noop, } from '@datadog/browser-core' import type { LogsConfiguration } fr...
// from https://github.com/visionmedia/debug/blob/master/src/node.js /** * Module dependencies. */ const tty = require('tty') const util = require('util') /** * This is the Node.js implementation of `debug()`. */ exports.init = init exports.log = log exports.formatArgs = formatArgs exports.save = save exports.lo...
<reponame>rei-gun/myriad-web<filename>src/components/experience/use-experience.hooks.ts import {useState} from 'react'; import {useSelector, useDispatch} from 'react-redux'; import getConfig from 'next/config'; import {useExperience as baseUseExperience, ExperienceActionType} from './experience.context'; import Axio...
import * as Config from "../../config/config"; import * as builder from "./roles/builder"; import * as harvester from "./roles/harvester"; import * as worker from "./roles/worker"; import * as architect from "./architect"; import { log } from "../../lib/logger/log"; /** * Initialization scripts for CreepManager mod...
<filename>x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts<gh_stars>1-10 /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this fil...
<gh_stars>0 import { Component, OnInit, ViewChild } from '@angular/core'; import { Socket } from 'ng-socket-io'; import { createGesture } from '@ionic/core' @Component({ selector: 'app-play', templateUrl: './play.page.html', styleUrls: ['./play.page.scss'], }) export class PlayPage implements OnInit { @ViewChi...
import * as React from "react"; import dynamic from "next/dynamic"; import { Layout } from "components/Layout"; import { useAreaOfPlay } from "hooks/global/useAreaOfPlay"; import { getSessionUser } from "lib/auth"; import { getTranslations } from "lib/getTranslation"; import type { GetServerSideProps } from "next"; imp...
<filename>esm-samples/jsapi-angular-cli/src/app/esri-oauth.service.ts import { Injectable } from "@angular/core"; import esriConfig from "@arcgis/core/config"; import esriId from "@arcgis/core/identity/IdentityManager"; import OAuthInfo from "@arcgis/core/identity/OAuthInfo"; import Portal from "@arcgis/core/portal/Por...
import * as React from 'react'; import { Links, Meta, Scripts, LiveReload, useLoaderData, useTransition, useCatch, json, Outlet, ScrollRestoration, } from 'remix'; import * as Fathom from 'fathom-client'; import toast from 'react-hot-toast'; import clsx from 'clsx'; import type { ErrorBoundaryComp...
<filename>src/app/app.component.ts import { Component, ElementRef, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { EpubChapter, EpubError, EpubLocation, EpubMetadata, EpubPage, EpubSearchResult } from './ePubViewer/angularEpubViewer.models'; import { AngularEpubViewerComponent } from './ePubViewer...
import { Box, Button, Divider, Stack, Theme } from "@mui/material" import { makeStyles } from "@mui/styles" import async from "async" import localforage from "localforage" import { last, random, sample } from "lodash" import { FC, useEffect, useState } from "react" import { AuthorsDocument, Authors_Insert_Input...
import { ResultFilter, Result, XSDSchema, XSDXMLNode } from "@hpcc-js/comms"; import { ColumnType, Deferred, domConstruct, QueryResults, RowFormatter } from "@hpcc-js/dgrid"; function entitiesEncode(str) { return String(str).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;")...
import React, { forwardRef, memo, useCallback, useMemo, useReducer, } from 'react'; import AutoSizer from 'react-virtualized-auto-sizer'; import { AutoSizeHexEditorProps, HexEditorHandle, } from '../types'; import CLASS_NAMES from '../constants/classNames'; import INLINE_STYLES, { MEASURE_STYLE } from '...
<filename>packages/core/src/lib/core/queries/output-field.ts import { CacheHint } from 'apollo-server-types'; import { GraphQLResolveInfo } from 'graphql'; import { NextFieldType, IndividualFieldAccessControl, BaseListTypeInfo, BaseItem, FindManyArgsValue, KeystoneContext, GraphQLTypesForList, FieldRead...
<filename>src/games/games.gateway.ts<gh_stars>1-10 /* eslint-disable @typescript-eslint/no-unused-vars */ import { ConnectedSocket, MessageBody, SubscribeMessage, WebSocketGateway, WebSocketServer } from '@nestjs/websockets'; import { Server, Socket } from 'socket.io'; import { Game } from '@games/entities/game.en...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import 'dotenv/config'; import path from 'path'; import crypto from 'crypto'; import express, { Express, Request, Response, NextFunction } from 'express'; import bodyParser from 'body-parser'; import morgan from 'morgan'; import compression fr...
import * as React from 'react' import * as RPCChatTypes from '../../../constants/types/rpc-chat-gen' import * as Kb from '../../../common-adapters/index' import * as Styles from '../../../styles' export type PathToInfo = { [K in string]: { type: 'image' | 'file' title: string filename: string outboxI...
import * as getRawBody from 'raw-body'; import { FAAS_ARGS_KEY, ServerlessLightRuntime, } from '@midwayjs/runtime-engine'; import { Application, HTTPRequest, HTTPResponse, } from '@midwayjs/serverless-http-parser'; import * as util from 'util'; const isOutputError = () => { return ( process.env.SERVERL...
<reponame>PitouGames/Farmbot-Web-App<filename>frontend/sequences/locals_list/handle_select.ts /** Given a drop down item and a ResourceIndex, * figures out the corresponding Tool | Coordinate | Point */ import { DropDownItem } from "../../ui"; import { Coordinate, ScopeDeclaration, ParameterApplication, Dictio...
<filename>shop/website-angular/src/app/+login/login.component.ts import { Component, OnInit, ElementRef, ViewChild, OnDestroy } from '@angular/core'; import { FormControl, FormGroupDirective, NgForm, FormBuilder } from '@angular/forms'; import { ErrorStateMatcher, MatDialog } from '@angular/material'; import {...
// 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 '../../core/common/common.js'; import * as Host from '../../core/host/host.js'; import * as i18n from '../../core/i18n/i18n.js'; i...
import { erStandard, erVarigEllerGradertVarig } from './innsatsgruppe'; import { OrNothing } from './type/ornothing'; import { HovedmalType, InnsatsgruppeType, Vedtak } from '../api/veilarbvedtaksstotte'; import { MalformData, MalformType } from '../api/veilarbperson'; import { Kilde } from '../page/utkast/skjema-secti...
import { Node } from 'postcss'; import CssParser, { Token } from 'postcss-scss/lib/scss-parser'; import Input from 'postcss/lib/input'; import * as Ast from '../Ast'; import Parser from './index'; function firstValueWord(tokens: Token[]) { let foundValue = false; for (const token of tokens) { if (token[0] ==...
import { assign, Machine, sendUpdate } from 'xstate'; import { CurrentSpecContext } from '../../../lib/Interfaces'; import { ILearnedBodies, ILearnedBody, } from '@useoptic/cli-shared/build/diffs/initial-types'; import { AddContribution, AddRequest, CQRSCommand, IOpticDiffService, } from '@useoptic/spectacl...
import { createLog, getDefaultLogPath, openRevertLog } from '../../common/log-helpers'; import { Argv, Arguments } from 'yargs'; import { join } from 'path'; import { CopyItemBuilderOptions } from '../../interfaces/copy-item-builder-options.interface'; import { ConfigurationParameters } from '../configure'; import rmdi...
import React from 'react'; import KeyCode from 'rc-util/lib/KeyCode'; import classNames from 'classnames'; import { connect } from 'mini-store'; import { noop, menuAllProps } from './util'; import { SelectEventHandler, HoverEventHandler, DestroyEventHandler, RenderIconType, MenuHoverEventHandler, MenuClickE...
import React, { useState } from 'react' import Checkbox from '@material-ui/core/Checkbox' import FormControlLabel from '@material-ui/core/FormControlLabel' import { Theme, makeStyles } from '@material-ui/core/styles' import { SvgIconProps } from '@material-ui/core/SvgIcon' import TextField from '@material-ui/core/Text...
<reponame>cloud-hybrid/cloud-factory // generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS VPC */ export interface DataAwsNatGatewayConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.i...
import type { FootballContent } from '@guardian/apps-rendering-api-models/footballContent'; import type { FootballTeam } from '@guardian/apps-rendering-api-models/footballTeam'; import type { Scorer } from '@guardian/apps-rendering-api-models/scorer'; import type { Content } from '@guardian/content-api-models/v1/conten...
import { getNotificationsContext } from "svelte-notifications" export type JSONVal = | string | number | boolean | null | JSONVal[] | { [key: string]: JSONVal } /** Helper: GET from URL as json response. */ export function fetchJSON(url: string, args?: RequestInit): Promise<JSONVal> { retu...
import { JestProcessManager, JestProcessRequest, JestProcessRequestBase, ScheduleStrategy, requestString, QueueType, JestProcessInfo, } from '../JestProcessManagement'; import { JestTestProcessType } from '../Settings'; import { RunTestListener, ListTestFileListener } from './process-listeners'; import { ...
import SASjs from '@sasjs/adapter/node' import { AuthConfig, ServerType, Target } from '@sasjs/utils' import path from 'path' import { CommandExample, ReturnCode } from '../../types/command' import { TargetCommand } from '../../types/command/targetCommand' import { getAuthConfig } from '../../utils' import { prefixAppL...
<filename>src/commands/birthday.ts import transformText from '@/util/text' import { Message } from 'eris' import moment from 'moment' import Command, { CommandArgs } from '../services/Command' const bdayPattern = /(?:<@!?(\d{16,20})>|(\d{16,20}))? *(jan(?:uary)?|feb(?:r?uary)?|mar(?:ch)?|apr(?:il)?|may|june?|july?|aug...
<reponame>ff14wed/aetherometer import { app } from 'electron'; import fs from 'fs'; import path from 'path'; import os from 'os'; import ChildProcess from 'child_process'; import appRootDir from 'app-root-dir'; import * as upath from 'upath'; import cryptoRandomString from 'crypto-random-string'; import getPort from ...
<reponame>AltaverseDAO/thoth<filename>core/src/plugins/modulePlugin/module-manager.ts import { Engine, Socket, Component } from 'rete' import { Socket as SocketType } from 'rete/types' import { ModuleType, ModuleWorkerOutput, ThothNode, ThothWorkerInputs, ThothWorkerOutputs, } from '../../../types' import { ...
import * as RSS from '../proxies/rss-feed'; import i18n from '../i18n'; import twoKeyReply from '../utils/two-key-reply'; import errors from '../utils/errors'; import { MContext, Next } from '../types/ctx'; import { isNone } from '../types/option'; import { decodeUrl } from '../utils/decodeUrl'; export async function ...
import * as gulp from 'gulp'; import glob from 'fast-glob'; import run from 'gulp-run-command'; import del from 'del'; import * as esbuild from 'esbuild'; import { ESLint } from 'eslint'; import * as fs from 'fs-extra'; import * as path from 'path'; import tsconfig from './tsconfig.json'; import eslintrc from './.eslin...
<reponame>SReichelt/slate<gh_stars>10-100 import * as Fmt from '../../format/format'; import * as FmtUtils from '../../format/utils'; import { getNextDefaultName } from '../../format/common'; import { LibraryDataAccessor, LibraryDefinition, LibraryItemInfo } from '../../data/libraryDataAccessor'; import CachedPromise f...
<filename>src/video.ts import { BitSet } from 'bitset' import { decode as decodeFromZ85, encode as encodeToZ85 } from 'z85-codec' import { atob, fromUint8Array } from 'js-base64' export interface Section { start: number end: number } export interface Video { id: string sections: Array<Section> } const VIDEO_...
/** * Inspired by https://github.com/nolimits4web/Framework7/blob/master/src/js/fast-clicks.js * https://github.com/nolimits4web/Framework7/blob/master/LICENSE * * Inspired by https://github.com/fians/Waves */ import $ from 'mdui.jq/es/$'; import { JQ } from 'mdui.jq/es/JQ'; import 'mdui.jq/es/methods/addClass'; ...
import { getExtendedInfoUrl, buildDirectUrl, getData, } from '../../utils/urlTools'; import * as errors from '../../utils/errors'; import { createMarkdownLink, createListEmbed, createEmbed, createMarkdownListItem, createDescription, adjustDescriptionLength, getChosenResult, createMarkdownBash, E...
<reponame>xreng/xrengine import AFRAME from 'aframe' export const ComponentName = 'video-details' export interface VideoDetailsData { cellHeight?: number cellWidth?: number cellContentHeight?: number // originalTitle: string, title: string, description: string, url: string, thumbnailUrl: string, pro...
import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { Link, RouteComponentProps } from 'react-router-dom'; import { Button, Row, Col, Label } from 'reactstrap'; import { AvFeedback, AvForm, AvGroup, AvInput, AvField } from 'availity-reactstrap-validation'; import { ICrudGet...
<reponame>shtepcell/e-library import S3 from 'aws-sdk/clients/s3'; import createHttpError from 'http-errors'; import { Contract } from '../models/Contract'; import { Client } from '../models/Client'; import { onError, onValidateError } from '../libs/validate'; import { Document, IDocument } from '../models/Document'; ...
import { FormControl, IconButton, MenuItem, OutlinedInput, Select, Typography, } from '@material-ui/core'; import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown'; import WatchLaterRoundedIcon from '@material-ui/icons/WatchLaterRounded'; import { ButtonOutlined } from 'litmus-ui'; import mo...
import { commit, FieldKey, isMetaFn, Meta, metaCall, MetaFn, metaSetups, reset } from "../../meta" import { validateAll } from "../validation/validation" import { metaForm } from "./widgets" import { wait } from "../../util/util" import { up } from "@metaliq/up" import { MetaView } from "./presentation" import { label ...
import { useState, useEffect } from 'react'; import { RGBColor, ChromePicker } from 'react-color'; import { Grid, Segment, Header, Dropdown, Menu, Button, Input } from 'semantic-ui-react'; import TesoroKeyboard from './TesoroKeyboard'; import socket from 'socket.io-client' interface SpectrumState { key?: string, ...
<reponame>Daviduk1/cil-internship-cohort-02 /** * @license * Copyright Google LLC 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 */ /// <amd-module name="@angular/compiler-cli/src/ngtsc/scope/src/local" /> ...
import { Path } from "./path"; import { Shape } from "./shape"; import { BBox } from "../bbox"; export enum RectSizing { Content, Border } export class Rect extends Path { static className = 'Rect'; private _x: number = 0; set x(value: number) { if (this._x !== value) { this....
<reponame>john-rice/novo-elements<filename>projects/novo-elements/src/elements/date-time-picker/DateTimePicker.ts // NG2 import { ElementRef, Component, EventEmitter, Input, Output, forwardRef } from '@angular/core'; import { trigger, state, style, transition, animate } from '@angular/animations'; import { NG_VALUE_ACC...
<reponame>dima7a14/mdapp // (C) Copyright 2015 Moodle Pty 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 b...
<gh_stars>10-100 import { bind } from '@wry/context'; const enum State { UNSETTLED, SETTLING, RESOLVED, REJECTED, } function isPromiseLike(value: any): value is PromiseLike<any> { return value && typeof value.then === 'function'; } // A Task is a deliberately stripped-down Promise-compatible abstraction //...
import React, { createElement, useCallback, useEffect, useMemo, useState } from 'react'; import { Col, Icon, Row, Tooltip } from 'antd'; import map from 'lodash/map'; import get from 'lodash/get'; import isEqual from 'lodash/isEqual'; import isEmpty from 'lodash/isEmpty'; import filter from 'lodash/filter'; import isSt...
import Button from "@material-ui/core/Button"; import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import Hidden from "@material-ui/core/Hidden"; import { createStyles, Theme, withStyles, WithStyles } from "@material-ui/core/styles"; import Table from "@material-u...
<gh_stars>1-10 import { registerMessage } from "../utils"; export const CharacterMaterialWiki = "https://genshin-impact.fandom.com/wiki/Character_Ascension_Materials"; export type CharacterMaterial = { type: "Character Ascension Material"; name: string; item: string; wiki: string; }; registerMessage({ defaul...
import { Typography } from '@material-ui/core'; import React, { useCallback, useEffect, useRef, useState } from 'react'; import Slug from 'github-slugger'; import { useStyles } from './styles'; import { useSetting } from '../../lib/useSetting'; import TocList, { Node, TocListProps } from './Toc'; import { Nullable } f...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *-----------------------------------------------------------...
import {AxiosResponse} from 'axios' import {getAllCodelists, getAllCountries, getCountriesOutsideEUEEA} from '../api' export enum ListName { PURPOSE = 'PURPOSE', CATEGORY = 'CATEGORY', THIRD_PARTY = 'THIRD_PARTY', SENSITIVITY = 'SENSITIVITY', NATIONAL_LAW = 'NATIONAL_LAW', SUBJECT_CATEGORY = 'SUBJECT_CATEG...
import React, { useEffect, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { useNavigate, useParams } from 'react-router-dom'; import { ReactComponent as Left } from '../../assets/Arrow_Left_MD.svg'; import { ReactComponent as Down } from '../../assets/Arrow_Down_SM.svg'; import ...
<filename>packages/react-google-maps-api/src/components/drawing/Polygon.tsx /* global google */ import * as React from 'react' import { unregisterEvents, applyUpdatersToPropsAndRegisterEvents } from '../../utils/helper' import MapContext from '../../map-context' const eventMap = { onClick: 'click', onDblClick: '...
import React, { forwardRef, ReactElement } from 'react'; import Checkbox from '../../Checkbox'; import Radio from '../../Radio'; import { isString, isArray } from '../../_util/is'; import cs from '../../_util/classNames'; import useComponent from '../hooks/useComponent'; import IconPlus from '../../../icon/react-icon/I...
import { Request, Response, NextFunction } from 'express'; import fs from 'fs'; import has from 'has'; import { version } from 'pjson'; import Pluma from '../Types/types'; import * as PlumaError from '../Error/errors'; import isDisplayedAtom from './isdisplayed-atom.json'; import { ELEMENT } from '../constants/constant...
/* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain Permission is ...
<filename>src/components/rpcServer.ts import Application from "..//application"; import tcpServer from "../components/tcpServer"; import { SocketProxy, loggerType } from "../util/interfaceDefine"; import * as define from "../util/define"; import * as rpcService from "./rpcService"; let serverToken: string = ""; let ma...
import * as path from 'path'; import {CLIArguments} from '../types'; import {getProjectConfig} from './getProjectConfig'; import {getJsonFileSync} from './getJsonFile'; import {getProviderPath, getProviderUrl} from './manifest'; import {ClassicManifest, PlatformManifest, ServiceDeclaration} from './manifests'; import...
import { setupWallets } from '@neo-one/cli-common'; import { assertCallFlags, common, crypto, MethodTokenModel, NefFileModel, scriptHashToAddress, SignerModel, SourceMaps, TransactionResult, UserAccountID, WitnessScopeModel, } from '@neo-one/client-common'; import { DeveloperClient, LocalKeyStore,...
import {config as loadEnv} from 'dotenv'; import * as ngrok from 'ngrok'; // @ts-ignore import puppeteer, {Browser} from 'puppeteer'; import {CreateOrderRequest, HipayClient, HipayNotificationResponse} from '../src'; import { captureOrderOrThrow, cards, client, createOrderOrThrow, newCreateOrderRequ...
/* This file is part of Astarte. Copyright 2020 Ispirata Srl 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 ...
import * as React from 'react'; import { Image } from '../../Image'; import { Label } from '../../Label'; import { Icon } from '../../Icon'; import { IChoiceGroupOption, IChoiceGroupProps } from './ChoiceGroup.types'; import { assign, BaseComponent, css, getId, getNativeProps, inputProperties } from '../../...
import { SelectQueryBuilder } from 'typeorm'; import { castArray } from 'lodash'; import { QueryConditionOptionsInternal, QueryBuilderPart, QueryComparableProp, } from '../model/repository.model'; import { LookupFilter, LookupFilterSymbol, OPERATOR, } from '../constants/filter.constant'; import { isArray } ...
<reponame>coolio-so/tui.grid import { AlignType, VAlignType } from '@/types'; import { HeaderRenderer, ColumnHeaderInfo, HeaderRendererProps } from '@/renderer/types'; export {}; class CustomRenderer implements HeaderRenderer { private el: HTMLElement; private columnInfo: ColumnHeaderInfo; public constructor(...
import { Menu, Anchor, Icon, Drawer } from 'antd'; import * as React from 'react'; import * as Loadable from 'react-loadable'; import { inject, observer } from 'mobx-react'; import { RouterStore } from 'mobx-react-router'; import './Nav.scss'; import Loading from 'x-components/common/Loading'; const { Link } = Anchor...
<reponame>ETRick/CocosCreator-Dropdown<gh_stars>10-100 import DropDownOptionData from "./DropDownOptionData"; import DropDownItem from "./DropDownItem"; const { ccclass, property } = cc._decorator; @ccclass() export default class DropDown extends cc.Component { @property(cc.Node) private template: cc.Node = u...
<gh_stars>0 /* * Copyright (c) 2017 VMware Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState, } from 'react'; import {Button, DynamicSection, Text, View} from 'components'; import { NewActiveTypeScreenProps, Attribute, NewActiveTypeProps, BasicAttributeState, } from 'types'; import { ActivityIndicator, StyleSheet, ...
import { adv1, autosell, availableAmount, buy, chew, cliExecute, containsText, create, equip, eudoraItem, haveEffect, haveSkill, myLevel, myMp, mySpleenUse, print, runChoice, runCombat, toUrl, use, useFamiliar, useSkill, visitUr...
import React, { createContext, useContext, useState } from "react"; import { Button, Col, Dropdown, DropdownItem, DropdownMenu, DropdownToggle, Row } from "reactstrap"; import { IsaacItemQuestion, IsaacReorderQuestion, IsaacParsonsQuestion, IsaacClozeQuestion, Item, ParsonsItem } from "../../.....
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerExecutionContext, HttpHandlerOptions...
import { TextlintRuleOptions, TextlintRuleReporter } from "@textlint/types"; import { wrapReportHandler } from "textlint-rule-helper"; import { createKatakanaEnglishIndex, KatakanEnglishIndexType } from "@textlint-ja/textlint-rule-preset-foreign-language-writing-helper"; import { TxtNodeType } from "@textlint/a...
import { expect, assert } from 'chai'; import { describe, it } from 'mocha'; import AWSManager from '../server/AWSManager'; import AWS from 'aws-sdk'; import fs from 'fs'; import path from 'path'; // se li pesca dai secret di github, in locale fa undefined const AWS_ID = process.env.AWS_ID; const AWS_KEY= process.env....
import React, { useState } from "react"; import { Alert, SafeAreaView, ScrollView, Text, View } from "react-native"; import { Button, Input } from "react-native-elements"; import FilePickerButtonGroup from "../components/FilePickerButtonGroup"; import ProgressiveFileUpload from "../components/ProgressiveFileUpload"; i...
<filename>src/behavior/impl/saddled4.ts import { BigNumber, ethers, Signer } from "ethers"; import { Provider } from "@ethersproject/providers"; import erc20Abi from "../../Contracts/ABIs/erc20.json"; import communalFarmAbi from "../../Contracts/ABIs/communal_farm.json"; import swapFlashLoanAbi from "../../Contracts/AB...
/* * Copyright 2015-2016 <NAME>, 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 agre...
<reponame>frank-dspeed/rollup import MagicString from 'magic-string'; import ExternalModule from '../../ExternalModule'; import Module from '../../Module'; import { GetInterop, NormalizedOutputOptions } from '../../rollup/types'; import { PluginDriver } from '../../utils/PluginDriver'; import { getDefaultOnlyHelper, ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { SecurityScanWidgetComponent } from './security-scan-widget.component'; import { SecurityScanService } from '../security-scan.service'; import { DashboardService } from '../../../shared/dashboard.service'; import { NgbModal, NgbModule } ...
import { endList, startList } from '../constant'; import { isToken } from './autoComplete'; interface WrappedToken extends Prism.Token { tag: string; classes: string[]; attributes: {}; language: string; content: WrappedTokenStream; } type WrappedTokenStream = WrappedToken | WrappedToken[] | string | string[...
<reponame>Mrclg/davinci /* * << * Davinci * == * Copyright (C) 2016 - 2017 EDP * == * 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...
import { Languages } from "../../../Languages" function lang(key,a?,b?,c?,d?,e?) { return Languages.get("SmartHomeStateButton", key)(a,b,c,d,e); } import * as React from 'react'; import { ActivityIndicator, Alert, Text, TouchableOpacity, View } from "react-native"; import {colors, screenWidth} from "../../sty...
<reponame>baumgarb/barista<gh_stars>0 /** * @license * Copyright 2020 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 * * U...
//type jsJsonSchema = BasicJsonSchema & FFExtensionType; // interface jsJsonSchema extends FFCompiledExtensionType, BasicJsonSchema {} interface JsonSchemaGeneric<T> { $ref?: string; // Schema Metadata /* This is important because it tells refs where the root of the document is located*/ $id?: string; /* It...
import { Inject, Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Md5 } from 'ts-md5/dist/md5'; import * as simbrief from '../../../simbrief.json'; import { md5 } from '../shared/md5'; import * as xmlJs from 'xml-js'; import { BehaviorSubject, Subscription, timer } from 'rx...