text stringlengths 3.08k 15.5k |
|---|
import React, { Component, RefObject } from 'react';
import { Linking, Platform, StyleSheet, View, WebView } from 'react-native';
import url from 'url';
import PSScreenWrapper from '../components/PSScreenWrapper';
import PSLoading from '../components/PSLoading';
import { handleDeeplink } from '../lib/deeplinkHandler';... |
<gh_stars>0
import Big from 'big.js'
import SubnetDict from './known_subnets'
import BlockchainDict, { C, P, X } from './known_blockchains'
import VMDict from './known_vms'
import { Quote, quotes } from './quotes'
import { BN, Buffer } from 'avalanche/dist'
import { NFTTransferOutput, UTXO } from 'avalanche/dist/apis/a... |
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
Inject,
InjectionToken,
Injector,
Input,
OnChanges,
OnDestroy,
OnInit,
Optional,
SimpleChanges,
StaticProvider,
TemplateRef,
ViewEncapsulation,
} f... |
<reponame>zhinan-oppo/snowball<filename>helpers/postcss-rpx/src/Plugin.ts
import {
AtRule,
ChildNode,
Comment,
Container,
Declaration,
Plugin,
Root,
Rule,
} from 'postcss';
import { Media, mergeOptionsByDecls, Options, RuleOptions } from './options';
function isAtMediaRule(container?: Container): cont... |
<reponame>Jefiozie/in-solidarity-bot
/**
* Copyright 2020 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-2.0
*
* Unless re... |
<reponame>rayrayr2d3/sp-dev-fx-webparts
import { Version } from '@microsoft/sp-core-library';
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
PropertyPaneTextField
} from '@microsoft/sp-webpart-base';
import { escape } from '@microsoft/sp-lodash-subset';
import styles from './TasksCalendar.module.scs... |
import { Request, Response, STATUS, Task } from './transaction'
import { HAND_SHAKE, delay, isNative, noop, isInternalType, warn } from './utils'
import { Self, TaskId, MessageType, ObjMap, MessageListener } from './types/index'
enum STATE {
notConnected,
connecting,
connected,
closed,
}
type RequestIntercept... |
import _ from 'lodash-es';
import { h, PolygonNode, PolygonNodeModel } from '@logicflow/core';
class NodeSelectionView extends PolygonNode {
d = 10;
getShapeStyle() {
// 设置边框为虚线
const style = this.props.model.getNodeStyle();
// @ts-ignore
style.strokeDashArray = '10 5';
return style;
}
ge... |
import React, { FunctionComponent, useState } from "react"
import {
Alert,
StyleSheet,
TouchableOpacity,
View,
ScrollView,
} from "react-native"
import env from "react-native-config"
import { SvgXml } from "react-native-svg"
import { useTranslation } from "react-i18next"
import { useNavigation, useIsFocused }... |
<reponame>bula3-1992/openprojectsd
//-- copyright
// OpenProject is a project management system.
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
<reponame>OliverLeitner/typescript-playground<filename>script.ts
interface IBookData {
has_fulltext: boolean,
title: string,
type: string,
key: string,
author_name: string[]
language: string[]
}
// ok, needs to be done differently...
interface ISomeCoolInterface {
myFirstParam?: string,
... |
<filename>lib/schema/queries.ts<gh_stars>1-10
// IMPORTS
// ================================================================================================
import { Model, ModelSelector, QueryMask, ResultQuery } from '@nova/pg-dao';
import { Query, stringifySingleParam, stringifyArrayParam } from '../Query';
import { ... |
import {
PackagePath,
mustacheUtils,
shell,
fileUtils,
manifest,
Platform,
log,
PluginConfig,
} from 'ern-core'
import fs from 'fs'
import path from 'path'
import readDir from 'fs-readdir-recursive'
import { ApiImplGeneratable } from '../../ApiImplGeneratable'
export const ROOT_DIR = shell.pwd()
const ... |
/*
* © 2021 Thoughtworks, Inc.
*/
import React, {
FunctionComponent,
ReactElement,
SyntheticEvent,
useEffect,
useState,
} from 'react'
import {
DataGrid,
GridColDef,
GridOverlay,
GridRowParams,
MuiEvent,
} from '@material-ui/data-grid'
import {
RecommendationResult,
ServiceData,
} from '@clou... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* ONLY AVAILABLE IN NODE.JS RUNTIME.
*
* TableSASSignatureValues is used to help generating SAS tokens for tables.
*/
import { SasIPRange, ipRangeToString } from "./sasIPRange";
import { SasProtocol, SasQueryParameters } from "./sasQue... |
<filename>src/engine/webgl/component/meshrender.ts
import * as tge from "../../tge"
import { Vector3, Vec3Up } from "../math/vector3"
import { Mesh } from "../core/mesh"
import { Matrix4 } from "../math/matrix4"
import { Quaternion } from "../math/quaternion"
import { MatProjector } from "../material/matprojector"
impo... |
import * as styles from './styles/changePassword.styl';
import { connect } from 'react-redux';
import { changePassword } from '../../actions';
import * as React from 'react';
import { Button, Error, Input, Modal } from '../ui';
import background from '../../services/Background';
import { withTranslation, WithTranslatio... |
import * as React from 'react';
import { Button, Card, Col, Dropdown, Input, Menu, Modal, Row, Table } from 'antd';
import { inject, observer } from 'mobx-react';
import AppComponentBase from '../../components/AppComponentBase';
import CreateOrUpdateNote from './components/createOrUpdateNote';
import { EntityDto } fr... |
<filename>crypto/blockchains/xrp/XrpTransferProcessor.ts
/**
* @version 0.20
* https://gist.github.com/WietseWind/19df307c3c68748543971242284ade4d
*
* https://xrpl.org/rippleapi-reference.html#preparepayment
* https://xrpl.org/rippleapi-reference.html#sign
* https://xrpl.org/rippleapi-reference.html#submit
*/
im... |
import { Component, OnInit } from '@angular/core';
import { fromEvent } from 'rxjs';
import { filter, switchMap, takeUntil, map, tap } from "rxjs/operators";
import { Router, Host } from '../network-devices';
import { DeviceRegistry } from '../device-registry.service';
import { PanelRegistry } from '../panel-registry.s... |
export const unmapped: any = {
background: [
['Bamboo green', 753, 'Less common'],
['Banana yellow ', 750, 'Less common'],
['Belly pink ', 375, 'Uncommon'],
['Royal purple ', 375, 'Uncommon'],
['Blood red ', 93, 'Rare'],
['Mango orange ', 93, 'Rare'],
['Beach gradient ', 93, 'Rare'],
[... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { EuiBadge, EuiButton, EuiButtonIcon, EuiToolTip, EuiTextArea } from '... |
import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
const LOADER_COLOR = '#abcdef'; // loader color
const LOADER_CSS_CLASSNAME = 'image-fallback-loader'; // add this class while loading or class specified by user
const DIR_ERROR_CSS_CLASSNAME = 'image-fallback-error'; // add class on error... |
import {assert} from 'chai';
import {Wetland} from '../../src/Wetland';
import {Criteria} from '../../src/Criteria/Criteria';
import {Mapping} from '../../src/Mapping';
import {Delivery} from '../resource/entity/postal/Delivery';
import {Address} from '../resource/entity/postal/Address';
import {Order} from '../resourc... |
<filename>packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.ts
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as ts from 'typescript';
import ... |
import {
DATA_MEDIA_TYPE,
Image,
ImageEmbedded,
ImageLinks,
ImageListParameters,
IMAGE_EMBEDDED_PARAMETERS,
isImage,
isImageListParameters,
Link,
} from "@phylopic/api-models"
import { UUID } from "@phylopic/utils"
import { ClientBase } from "pg"
import BUILD from "../build/BUILD"
im... |
<filename>src/layout/radial/radialNonoverlapForce.ts
import { Matrix, IPointTuple } from '../../types';
import { Point } from '@antv/g-base';
const SPEED_DIVISOR = 800;
export type RadialNonoverlapForceParam = {
positions: IPointTuple[];
adjMatrix: Matrix[];
focusID: number;
radii: number[];
iterations?: nu... |
import Button from "../../components/Button";
import DirectoryBrowser from "../../components/DirectoryBrowser";
import { postMessage } from "../../helpers/messenger";
interface Props {
updateSettings: () => void;
settings: AdvancedSettings | undefined;
}
export const Advanced: React.FC<Props> = ({settings, update... |
import React, { useState, useRef } from 'react';
import {
StyleSheet,
View,
ScrollView,
TextInput as TextInputType,
ActivityIndicator,
} from 'react-native';
import { Button, TextInput } from 'exoflex';
import { useNavigation, useRoute } from '@react-navigation/native';
import { COLORS } from '../constants/c... |
import * as React from 'react';
import * as fp from 'lodash/fp';
import { faDna } from '@fortawesome/free-solid-svg-icons/faDna';
import { PrePackagedConceptSetEnum, WorkspaceResource } from 'generated/fetch';
import { RenameModal } from 'app/components/rename-modal';
import {
Action,
ResourceActionsMenu,
} from ... |
import { Bill } from "./Models/bill.js";
import { Item } from "./Models/item.js";
function numberWithCommas(x: number) {
return x.toFixed().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
function setCommaForPrice(price: Element) {
// let price = document.querySelector(".price");
// console.log(price);
price.innerHTML =... |
import {
run,
begin,
bind,
cancel,
debounce,
end,
join,
later,
next,
once,
schedule,
scheduleOnce,
throttle,
// private, supported via `declare module` below
_backburner
} from '@ember/runloop';
import EmberObject from '@ember/object';
import { Backburner, DebugInfo, QueueItem, DeferredAct... |
<reponame>dojime/asgardex-electron<filename>src/renderer/i18n/de/wallet.ts
import { WalletMessages } from '../types'
const wallet: WalletMessages = {
'wallet.nav.deposits': 'Einzahlungen',
'wallet.nav.bonds': 'Bonds',
'wallet.nav.poolshares': 'Anteile',
'wallet.column.name': 'Name',
'wallet.column.ticker': '... |
// Generated using generate.py
import { RoutesCommon } from "./Common.Routes";
import { Router } from "express";
import * as Models from "../Models/Models";
export const Journal = Router();
function GetUploadJson(file: any) {
if (file==null)
return {
id:"nullish",
jdate: "",
jt: "",
jrpt: "",
jissn:... |
import { Dialog, Transition } from "@headlessui/react";
import React, { Fragment, useState } from "react";
import { iRange, iRangeData } from "../../../shared/interfaces/app.interface";
import { PlusCircleIcon } from "@heroicons/react/solid";
import { SubmitHandler, useForm } from "react-hook-form";
import axios, { Axi... |
<gh_stars>0
import {createFeatureSelector, createSelector} from '@ngrx/store';
import {TASK_FEATURE_NAME} from './task.reducer';
import {Task, TaskState, TaskWithSubTasks} from '../task.model';
import {taskAdapter} from './task.adapter';
import {GITHUB_TYPE, GITLAB_TYPE, JIRA_TYPE} from '../../issue/issue.const';
impor... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import moment from 'moment-timezone';
import { useEffect, useMemo, useState }... |
<reponame>bitloops/node-bitloops
import jwt_decode from 'jwt-decode';
import open from 'open';
import {
AuthTypes,
IInternalStorage,
BitloopsUser,
BitloopsConfig,
Unsubscribe,
JWTData,
} from '../definitions';
import { IAuthService } from './types';
import HTTP from '../HTTP';
import { isTokenExpired, jwtTo... |
import { unescape } from "lodash"
import * as marked from "marked"
import * as Log from "./../../Log"
import { IGrammarPerLine, IGrammarToken } from "./../../Services/SyntaxHighlighting/TokenGenerator"
import * as DOMPurify from "dompurify"
const renderer = new marked.Renderer()
interface IRendererArgs {
tokens?... |
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { stringify } from '@angular/compiler/src/util';
import { Injectable } from '@angular/core';
export interface Location{
locationId: string;
name: string;
latitude: number;
longitude: number;
regionRadius: number;
temperatureSc... |
<filename>views/app/store.ts
import { defineStore } from "pinia"
// TODO: Spostare questo in un file di configurazione
const DB_NAME = "OGAME"
const DB_VERSION = 1
function chooseIndex(type: string, date: string) {
let indexName = "by_type_date";
if (type && date || (!type && !date)) {
indexName = "by_type... |
import Accounts from '../services/accounts'
import ForwardingRoutingTable, { RouteUpdate } from '../services/forwarding-routing-table'
import { BroadcastRoute } from '../types/routing'
import { create as createLogger, ConnectorLogger } from '../common/log'
import { Relation } from './relation'
import {
CcpRouteContro... |
<reponame>LiyaoJiang1998/devex
'use strict';
import angular, { IController, IScope, uiNotification } from 'angular';
import { IAuthenticationService } from '../../../users/client/services/AuthenticationService';
import { IUserService } from '../../../users/client/services/UsersService';
import { IUser } from '../../..... |
import { Octokit } from "@octokit/rest";
import slugify from "@sindresorhus/slugify";
import { readFile, writeFile } from "fs-extra";
import { safeLoad } from "js-yaml";
import { Curl, CurlFeature } from "node-libcurl";
import { join } from "path";
import { commit, lastCommit, push } from "./git";
import { UpptimeConfi... |
<filename>packages/editor/editor-core/src/plugins/tasks-and-decisions/pm-plugins/keymaps.ts
import { keymap } from 'prosemirror-keymap';
import { ResolvedPos, Schema } from 'prosemirror-model';
import { EditorState, Selection, Transaction, Plugin } from 'prosemirror-state';
import { hasParentNodeOfType } from 'prosemir... |
<reponame>shadow-paw/starlight<gh_stars>0
import * as THREE from "three";
import * as DAT from "dat.gui";
import { IScene } from "./iscene";
import { Universe } from "../model/universe";
import { SimpleGestureDetector } from "../input/gesture/simple";
interface UniverseOptions {
gravity: number;
Ru: number;
... |
<reponame>lucsoft/deno_bson<filename>src/bson.ts<gh_stars>1-10
// deno-lint-ignore-file no-explicit-any
import { Binary, BinarySizes } from "./binary.ts";
import { Code } from "./code.ts";
import { DBRef } from "./db_ref.ts";
import { Decimal128 } from "./decimal128.ts";
import { Double } from "./double.ts";
import { I... |
<reponame>li-yechao/paper-js
// Copyright 2022 LiYechao
//
// 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 appli... |
/**
* MIT License
*
* Copyright (c) 2020 ManBang Group
* 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, cop... |
import BigNumber from 'bignumber.js';
import { JsonRPCRequest } from '../../../basic/request/json-rpc';
import { CoinInfo } from '../../../types/chain';
import {
AddressInfo,
ClientInfo,
FeePricePerUnit,
PartialTokenInfo,
TransactionStatus,
} from '../../../types/provider';
import { BaseClient } from '../../... |
<filename>packages/compiler-core/src/babelUtils.ts
import {
isReferenced,
Identifier,
Node,
Function,
ObjectProperty,
BlockStatement,
Program
} from '@babel/types'
import { walk } from 'estree-walker'
export function walkIdentifiers(
root: Node,
onIdentifier: (
node: Identifier,
parent: Node,... |
<filename>packages/electron-builder/src/targets/LinuxTargetHelper.ts
import { readdir, outputFile, ensureDir } from "fs-extra-p"
import * as path from "path"
import { exec, debug, isEmptyOrSpaces } from "electron-builder-util"
import BluebirdPromise from "bluebird-lst-c"
import { LinuxBuildOptions } from "../options/li... |
import microtask from './microtask';
import {
CycleProgram,
Stop,
Plugins,
SinkProxies,
Sources,
Push,
Straw,
Sinks,
SinkProxy,
Adapter,
} from './types';
export {
Sources,
Sinks,
SinkProxies,
Driver,
Plugins,
Stop,
CycleProgram,
} from './types';
const scheduleMicrotask = microtask(... |
import { resolve, basename, parse } from "path";
import { promises, existsSync, createReadStream, createWriteStream } from "fs";
const { mkdir, unlink, readdir } = promises;
import JSZip from "jszip";
import mimeDB from "mime-db";
import easyDB, { getRandomId, Data } from "easy-db-core";
export * from "easy-db-core";
... |
import React, { useEffect, useState } from "react";
import { Modal, Upload, Button, Alert, message, Row, Col } from 'antd';
import { UploadOutlined } from '@ant-design/icons';
import { getStore } from '@/framework/utils/localStorage';
import { downloadFile } from '@/framework/utils/function';
import styles from '../in... |
<reponame>gudwin/Bodiless-JS
/**
* Copyright © 2019 Johnson & Johnson
*
* 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 {regex as fountainRegexes, parse as fountainParse} from "./afterwriting-parser"
import { secondsToString } from "./utils"
type dialoguePiece = {
character: string
speech: string
}
interface dialoguePerCharacter {
[x: string]: string[]
}
type dialogueStatisticPerCharacter = {
name: string
s... |
import {Geometry, GeometryTagError} from "../../../Component";
import {Transform} from "../../../Geo";
/**
* @class PointsGeometry
*
* @classdesc Represents a point set in the 2D basic image coordinate system.
*
* @example
* ```
* var points = [[0.5, 0.3], [0.7, 0.3], [0.6, 0.5]];
* var pointsGeometry = new Ma... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS205: Consider reworking code to avoid use of IIFEs
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
import { Freez... |
<reponame>userlea/BatchExplorer
import { Injectable } from "@angular/core";
import {
ContinuationToken,
DataCache,
EntityView,
FetchAllProgressCallback,
FilterBuilder,
ListOptionsAttributes,
ListView,
TargetedDataCache,
} from "@batch-flask/core";
import { SubtaskInformation, Task, TaskS... |
import React, { useCallback, useState } from 'react';
import { useFocusEffect } from '@react-navigation/core';
import {
View,
Text,
TouchableOpacity,
FlatList,
StyleSheet,
Image,
} from 'react-native';
import { connect } from 'react-redux';
// @ts-ignore
import AnimateNumber from 'react-native-countup';
imp... |
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS CloudWatch
*/
export interface CloudwatchLogSubscriptionFilterConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers... |
import * as XLSX from 'xlsx';
import { Store } from '@t/store';
import { OptExport } from '@t/store/export';
import { convertDataToText } from '../helper/common';
import {
createExportEvent,
EventParams,
EventType,
getHeaderDataFromComplexColumn,
getNamesAndHeadersOfColumnsByOptions,
getTargetData,
} from '... |
import { screenCenter, screenSize } from 'src/features/game/commons/CommonConstants';
import { limitNumber, mandatory, sleep, toS3Path } from 'src/features/game/utils/GameUtils';
import ImageAssets from '../../assets/ImageAssets';
import CommonBackButton from '../../commons/CommonBackButton';
import { addLoadingScreen... |
import React from "react";
import { Global } from "../../store/global/types";
import { Account } from "../../store/accounts/types";
import { DynamicProps } from "../../store/dynamic-props/types";
import { ActiveUser } from "../../store/active-user/types";
import BaseComponent from "../base";
import HiveEngineToken fr... |
import { ObjectType, PackageItemType } from "./FieldTypes";
import { GComponent } from "./GComponent";
import { GList } from "./GList";
import { GObject, constructingDepth } from "./GObject";
import { PackageItem } from "./PackageItem";
import { UIConfig } from "./UIConfig";
import { UIObjectFactory } from "./UIO... |
<gh_stars>0
// *** WARNING: this file was generated by Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as aws from "@pulumi/aws";
/**
*... |
/*
* Copyright (C) 2018 Intel Corporation
* SPDX-License-Identifier: MIT
*/
import { MasterImpl } from './master';
export interface Size {
width: number;
height: number;
}
export interface Position {
x: number;
y: number;
}
export interface Geometry {
image: Size;
canvas: Size;
top: numb... |
import BigNumber from 'bignumber.js';
import { EntityManager } from 'typeorm';
import { Logger } from 'winston';
import {
Inject,
Injectable,
} from '@nestjs/common';
import { InjectEntityManager } from '@nestjs/typeorm';
import { SYSPAR } from '../common/enum';
import { SysPar } from '../entities/sys-par.entity'... |
<reponame>gravitee-lab/gravitee-management-webui-release-3-5-0<filename>src/components/widget/line/widget-chart-line.component.ts
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with t... |
import { CustomRootFields, TableConfig } from './../../metadata/types';
import {
OrderBy,
WhereClause,
} from '../../components/Common/utils/v1QueryUtils';
import { ReduxState } from '../../types';
import { BaseTableColumn, Relationship, Table } from '../types';
type Tables = ReduxState['tables'];
export interfac... |
<reponame>AlexandruRoman/fb-adblock-extension
import { combineReducers, Reducer } from "redux";
import { fork, takeLatest, call, put } from "redux-saga/effects";
import { authGetLicenceFlow, authGetLicenceAliases } from "./_ducks/get-licence";
import { action } from "typesafe-actions";
import { IApplicationState } from... |
/* eslint-disable react/jsx-props-no-spreading */
import React, { useState } from 'react';
import * as OS from 'opensubtitles-api';
import Dropzone from 'react-dropzone';
import Button from 'react-bootstrap/Button';
import { Row, Col } from 'react-bootstrap';
// import routes from '../../constants/routes.json';
import... |
import { GetStaticPaths, GetStaticProps } from 'next';
import { useRouter } from 'next/router';
import Link from 'next/link';
import { FaCalendarAlt, FaUserAlt, FaRegClock } from 'react-icons/fa';
import PrismicDOM from 'prismic-dom';
import Prismic from '@prismicio/client';
import { format } from 'date-fns';
import pt... |
import { db } from "./init";
import { Event } from "./models/event.model";
import { Application } from "./models/application.model";
import { Trigger, TriggerAction } from "./models/trigger.model";
import { Triggerlog } from "./models/triggerlog.model";
import { User } from "./models/user.model";
import { UOMInfo } fro... |
// (C) Copyright 2015 Interactive Group Pvt 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 l... |
import React, {useState, useEffect} from 'react';
import {useHistory} from 'react-router-dom';
import {Button, Form, InputGroup} from 'react-bootstrap';
import {FiX} from 'react-icons/all';
import {Course} from '../../../../models/api/Course';
import {SearchResult} from '../../../../models/api/SearchResult';
import {S... |
<filename>auction-house/js/src/generated/accounts/AuctionHouse.ts<gh_stars>100-1000
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * ... |
// this whole file is a very slight modification of
// https://github.com/abierbaum/vscode-file-peek
// (licensed under MIT license, it seems)
'use strict';
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode fr... |
import React from "react";
import { connect } from "react-redux";
import ReactTable from "react-table";
import { ResponsesState } from "../../../store/responses/types";
import "./PaymentHistory.scss";
import {
onPaymentStatusDetailChange,
submitNewPayment,
sendConfirmationEmail
} from "../../../store/responses/ac... |
import RouteHandler from 'app/App/RouteHandler';
import { actions } from 'app/BasicReducer';
import Loader from 'app/components/Elements/Loader';
import * as uiActions from 'app/Entities/actions/uiActions';
import { OneUpState } from 'app/istore';
import { setDocuments, unsetDocuments } from 'app/Library/actions/librar... |
<filename>packages/aws-cdk/lib/api/util/cloudformation/stack-activity-monitor.ts<gh_stars>0
import cxapi = require('@aws-cdk/cx-api');
import aws = require('aws-sdk');
import colors = require('colors/safe');
import util = require('util');
interface StackActivity {
readonly event: aws.CloudFormation.StackEvent;
flu... |
import {
Children,
cloneElement,
useEffect,
useRef,
forwardRef,
useState
} from 'react'
import cx from 'clsx'
import {
createStyle,
createStyledComponent,
getThemeCSSObject,
Theme,
ThemeCSSStyles
} from '../styles'
import { AlertProps } from '../alert'
import {
attachSig... |
import {
Alert,
AlertDialog, AlertDialogBody, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, Avatar,
Box,
Button,
Drawer, DrawerBody, DrawerContent,
DrawerHeader, DrawerOverlay, Flex,
Grid,
HStack,
IconButton,
PinInput,
PinInputField,
Stack,
useDiscl... |
<gh_stars>0
import { NgModule, Provider } from '@angular/core';
import { flatten } from '../common/core.helpers';
import { Type } from '../common/core.types';
import { isNgDef } from '../common/func.is-ng-def';
import { isNgModuleDefWithProviders } from '../common/func.is-ng-module-def-with-providers';
import ngMocksU... |
//---------------------------------------------------------------------
// <copyright file="ClassificationNode.ts">
// This code is licensed under the MIT License.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE WARRANTIES OF M... |
<filename>index.ts
import * as fs from "fs";
import { join } from "path";
import seedrandom = require("seedrandom");
// The entropy/complexity/strength of the passwords in bits
const targetComplexityBits = 75;
// Size of the password list
const passwordChoiseLength = 50;
function readWordList(path: string): Promise<... |
import {
Component,
ComponentBindings,
Effect,
Event,
JSXComponent,
Method,
OneWay,
Ref,
Template,
} from 'devextreme-generator/component_declaration/common';
import createDefaultOptionRules from '../core/options/utils';
import devices from '../core/devices';
import noop from './utils/noop';
import th... |
import React, { useEffect, useRef, useState } from 'react';
import { UIAssets } from '@tonlabs/uikit.assets';
import {
View,
StyleSheet,
Text,
Animated,
TouchableOpacity,
Easing,
Image,
TextInput,
I18nManager,
} from 'react-native';
import { useCalendar } from '../calendarContext';
... |
<gh_stars>0
export type OpMoveTo = ["move_to", number, number];
export type OpLineTo = ["line_to", number, number];
export type OpCreateFont = ["create_font", string, string, number, number, number];
export type OpSetFont = ["set_font", string];
export type OpDrawChars = ["draw_chars", string[], (number|number[]), (num... |
<filename>src/lib/xyz/decoder.ts
import { append, Serie, createTyped, DataFrame, IArray } from "@youwol/dataframe"
import { collapse } from "../collapse"
import { trimAll } from "../utils"
/**
* Format in order to know this is a cube:
* ```text
* # nx: 10
* # ny: 10
* # nz: 10
* # x y z a normal stress1
* # siz... |
import React, { FunctionComponent, useState, useEffect } from "react";
import { Core, Components, Services, Taxonomy, useIContentRepository } from "@episerver/spa-core";
import * as IContentWithTeaserNS from 'app/Models/IContentWithTeaser';
import { ResponsiveContentImage } from './ResponsiveImage';
import './Teaser.s... |
<reponame>estiens/cli<gh_stars>100-1000
import color from '@heroku-cli/color'
import {Command, flags} from '@heroku-cli/command'
import Heroku from '@heroku-cli/schema'
import cli from 'cli-ux'
import HTTP from 'http-call'
import {getCoupling, getReleases, listPipelineApps, V3_HEADER} from '../../api'
import Kolkrabbi... |
import { useCallback, useEffect, useMemo, useRef } from "react";
import BigNumber from "bignumber.js";
import constate from "constate";
import { trigger } from "swr";
import {
BCD_NETWORKS_NAMES,
getAccountTokenBalances,
BcdNetwork,
} from "lib/better-call-dev";
import {
useChainId,
useAccount,
isKnownCha... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import {
Axis,
Chart,
ElementClickListener,
GeometryValue,
Histogra... |
import React, { useMemo, useEffect } from "react";
import { DateTime } from "luxon";
import Link from "next/link";
import Head from "next/head";
import {
PersonModelAttributes,
statusOf,
MemberStatusEnum,
} from "@/utils/Person";
import { useQuery } from "@apollo/react-hooks";
import { Button, Heading } from "rea... |
import memoizeOne from 'memoize-one'
const languages = [
'chinese',
'english',
'japanese',
'korean',
'french',
'spanish',
'deutsch'
] as const
type Languages = typeof languages[number]
const matchers: { [key in Languages]: RegExp } = {
chinese: /[\u4e00-\u9fa5]/,
english: /[a-zA-Z]/,
/** Hiragana... |
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as io from '@actions/io';
import * as path from 'path';
import { promises as fs } from 'fs';
import { SemVer } from 'semver';
import { TomlFile } from './edit_toml';
interface Manifest {
name: string,
version: string,
ta... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.