text stringlengths 3.3k 33k |
|---|
import P from 'bluebird';
import { difference, differenceWith, isEqual, some, uniq } from 'lodash';
import { ScopeId, Ticker, TransferManager, TxTag } from 'polymesh-types/types';
import { Context, Identity, PolymeshError, Procedure, SecurityToken } from '~/internal';
import {
CountTransferRestrictionInput,
ErrorC... |
import React, { lazy, useMemo, useState } from "react"
import { Grid, Link } from "@material-ui/core"
import useLocalStorage from "../../components/hooks/useLocalStorage"
import { clone, unique } from "../../../jacdac-ts/src/jdom/utils"
import {
Box,
Chip,
Menu,
MenuItem,
TextField,
Typography,
... |
import { logger } from '$Logger';
import {
handleAuthUrl,
setAuthLibStatus
} from '$Extensions/safe/actions/authenticator_actions';
import { app } from 'electron';
import * as safeBrowserAppActions from '$Extensions/safe/actions/safeBrowserApplication_actions';
import { initSafeBrowserApp } from '$Extensions/sa... |
<reponame>kabel/vscode_cobol<gh_stars>0
import path from "path";
import fs from 'fs';
import { extensions, FileType, Uri, workspace } from "vscode";
import { getWorkspaceFolders } from "./cobolfolders";
import { ScanData, ScanDataHelper } from "./cobscannerdata";
import { VSCOBOLConfiguration } from "./configuration";
... |
import type { Lang } from "../.internal/Lang";
// DUTCH
const lang: Lang = {
"AD": "Andorra",
"AE": "Verenigde Arabische Emiraten",
"AF": "Afghanistan",
"AG": "Antigua en Barbuda",
"AI": "Anguilla",
"AL": "Albanië",
"AM": "Armenië",
"AO": "Angola",
"AQ": "Antarctica",
"AR": "Argentinië",
"AS": "Amerikaans S... |
<reponame>rgwch/webelexis
/********************************************
* This file is part of Webelexis *
* Copyright (c) 2016-2020 by <NAME> *
* License and Terms see LICENSE *
********************************************/
import { WebelexisEvents } from '../webelexisevents';
import { aut... |
import React, { useState, useCallback } from 'react';
import { connect } from 'react-redux';
import { change as reduxFormChange, FieldArray, getFormInitialValues, reset as reduxFormReset } from 'redux-form';
import { FormattedMessage } from 'react-intl';
import { bindActionCreators } from 'redux';
import { Hovedknapp, ... |
<filename>src/lib/autocomplete/autocomplete.ts
import {
AfterContentInit,
Component,
ElementRef,
EventEmitter,
forwardRef,
HostListener,
Input,
Output,
Provider,
ViewEncapsulation,
NgModule,
ModuleWithProviders
} from '@angular/core';
import {
NG_VALUE_ACCESSOR,
ControlValueAccessor,
Forms... |
<filename>tests/adapter.update.spec.ts
import { makeTest, TestBedConfig, ItFunc } from './scaffolding/runner';
import { DatasourceUpdater, getDatasourceClassForUpdates } from './scaffolding/datasources/class';
import { Data } from './miscellaneous/items';
import { BufferUpdater, Item, AdapterUpdateOptions } from './mis... |
import { EMPLOYEE_INIT } from '@app/state/ducks/smart/employee/reducers'
import { Employee } from '@app/state/ducks/smart/employee/types'
import { MobileMask } from '@app/utilities/mask'
import { vText } from '@app/utilities/validator'
import AppBar from '@material-ui/core/AppBar'
import Button from '@material-ui/core/... |
import { $reduceInt } from "./util/GCD";
import type { Sign } from "./types";
/** floor(sqrt(max_safe_integer / 2)) */
const MAX_SAFE = 67108863;
export type Rational = number | Fraction;
//=================================================================
/**
* 代表一個有理分數。
*
* 原本這個類別內部採用 BigInt 型態來確保無窮精度的分數,
* 並且在... |
import * as chalk from 'chalk'
import { IotDpsClient } from '@azure/arm-deviceprovisioningservices'
import { v4 } from 'uuid'
import {
uiServer,
WebSocketConnection,
} from '@nordicsemiconductor/asset-tracker-cloud-device-ui-server'
import { deviceTopics } from './deviceTopics'
import { defaultConfig } from './defaul... |
<filename>packages/mds-ingest-service/service/validators.ts<gh_stars>10-100
/**
* Copyright 2020 City of Los Angeles
*
* 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.... |
import { Component, State, Listen, Prop } from '@stencil/core';
@Component({
tag: 'app-contact',
styleUrl: 'app-contact.scss',
})
export class AppContact {
@State() formSubmitted = false;
@State() formSubmitting = false;
@State()
formValues: {
name: '';
email: '';
company: '';
phone: '';
... |
import * as React from 'react';
import { Select, Spin, Form, Tooltip } from 'component/antd';
import { message } from 'antd';
import { IFormItem } from 'component/x-form';
import { cluster } from 'store/cluster';
import { alarm } from 'store/alarm';
import { topic } from 'store/topic';
import { observer } from 'mobx-re... |
<gh_stars>0
import { Strings } from '../system';
import { DecorationInstanceRenderOptions, DecorationOptions, ThemableDecorationRenderOptions } from 'vscode';
import { IThemeConfig, themeDefaults } from '../configuration';
import { GlyphChars } from '../constants';
import { CommitFormatter, GitCommit, GitDiffChunkLine,... |
<reponame>touchifyapp/nwixtoolset
import {
RunResult,
raw
} from "./run";
import {
CommonWIXOptions,
Dictionary,
addArgument,
addCommonArguments,
addFixedArgument,
addMapArgument,
addPathArgument,
addFixedPathArgument,
addPathFile,
undef
} from "./util";
/**
* Links ... |
// package: pddpb
// file: api.pdd.proto
import * as jspb from "google-protobuf";
export class QQAppInfo extends jspb.Message {
getAppId(): string;
setAppId(value: string): void;
getBannerUrl(): string;
setBannerUrl(value: string): void;
getDesc(): string;
setDesc(value: string): void;
getPagePath():... |
import { BullModule, InjectQueue } from "@nestjs/bull";
import { Logger, Module } from "@nestjs/common";
import { InjectRepository, TypeOrmModule } from "@nestjs/typeorm";
import { Queue } from "bull";
import { configService } from "../../../../config/config.service";
import { Connection, getConnection, QueryRunner, Re... |
<filename>src/comboboxMachine.ts<gh_stars>0
import { Machine, assign, actions } from "xstate";
const { send, cancel } = actions;
import keycode from "keycode";
import { DecoratedItem } from "./types";
const KEY_DOWN_COMBOBOX = "KEY_DOWN_COMBOBOX";
const KEY_DOWN_UP = "KEY_DOWN_UP";
const KEY_DOWN_DOWN = "KEY_DOWN_DOWN"... |
<reponame>ConciseCSS/preprocessor
// The MIT License (MIT)
// Copyright (c) <NAME>, <NAME> & <NAME>
// 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... |
import React, { useState, useContext, useEffect } from 'react';
import { Modal, Button, Input, Row, Col, Form, message, Select } from 'antd';
import { PlusOutlined, DeleteOutlined } from "@ant-design/icons";
import ProductInfo from '../../models/ProductInfo';
import deepClone from "lodash.clonedeep";
import Order ... |
/* This file is part of the Data Cleaning Library (openclean).
*
* Copyright (c) 2018-2021 New York University.
*
* openclean is released under the Revised BSD License. See file LICENSE for
* full license details.
*/
import * as React from 'react';
import CommAPI from './CommAPI';
import {
AppliedOperator,
A... |
<gh_stars>0
import * as apigateway from "aws-cdk-lib/aws-apigateway";
import * as cdk from "aws-cdk-lib";
import * as lambda from "aws-cdk-lib/aws-lambda";
import * as s3 from "aws-cdk-lib/aws-s3";
import * as iam from "aws-cdk-lib/aws-iam";
import * as cloudfront from "aws-cdk-lib/aws-cloudfront";
import * as origins ... |
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requi... |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import AppBar from '@material-ui/core/AppBar';
import CssBaseline from '@material-ui/core/CssBaseline';
import Divider from '@material-ui/core/Divider';
import Drawer from '@material-ui/core/Drawer';
import Hidden from '@material-ui/core/Hidden';
... |
<gh_stars>0
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { Connection } from '@salesforce/core';
import { JsonMap } from '@sal... |
<reponame>GisOsTeam/aol
import Feature from 'ol/Feature';
import { transformExtent } from 'ol/proj';
import {
IGisRequest,
IFeatureType,
IQueryFeatureTypeResponse,
IAttribute,
IIdentifyRequest,
IQuerySource,
} from '../IExtended';
import { toGeoJSONGeometry, disjoint, getQueryId } from '../../utils';
import... |
import React, { useState } from "react";
import { useHistory, Link } from "react-router-dom";
// MUI
import {
Button,
Card,
CardActionArea,
CardActions,
CardContent,
CardMedia,
Typography,
SvgIcon,
} from "@material-ui/core";
import { Skeleton } from "@material-ui/lab";
import { makeStyles } from "@mat... |
<filename>packages/storybook/stories/fakta/tilrettelegging/scenario/tilretteleggningMedPermisjon.ts<gh_stars>1-10
export const tilrettelegging = {
termindato: '2020-11-06',
arbeidsforholdListe: [{
tilretteleggingId: 1116961,
tilretteleggingBehovFom: '2020-03-17',
tilretteleggingDatoer: [{
fom: '20... |
import React, { Component, FormEvent } from 'react';
import { Button, Form, Message } from 'semantic-ui-react';
import { Mutation } from '@apollo/react-components';
import { toast } from 'react-toastify';
import gql from 'graphql-tag';
import { ApolloConsumer } from '@apollo/react-common';
import ApolloClient from 'apo... |
// This file is part of the Corinthia project (http://corinthia.io).
//
// See the COPYRIGHT.txt file distributed with this work for
// information regarding copyright ownership.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
import React, { useEffect, useRef } from 'react';
import * as Yup from 'yup';
import { useEnvironment } from '~/hooks/useEnvironment';
import { useTransaction } from '~/hooks/useTransaction';
import { TransactionModal } from '~/components/Common/TransactionModal/TransactionModal';
import {
TokenDefinition,
Exchange... |
import React from "react";
import { useSelector } from "react-redux";
import Link from "next/link";
import { useTranslation } from "next-i18next";
import { useRouter } from "next/router";
import Skeleton from "react-loading-skeleton";
import { userSelector } from "services/User/user.selectors";
import EVAIcon from "c... |
/*
* Copyright (c) 2021 <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and ... |
import React, { useState, useEffect } from 'react';
import {
Button,
Table,
Modal,
message,
Form,
Row,
Col,
Input,
Space,
TreeSelect,
Radio,
InputNumber,
Switch,
Tag,
Popconfirm,
Steps,
Select,
Tree,
} from 'antd';
import { PlusOutlined } from '@ant-design/icons';
import request from... |
<filename>src/jumpy/mod.ts
import {
commands,
ConfigurationChangeEvent,
DecorationOptions,
Disposable,
Position,
Range,
Selection,
TextEditor,
TextEditorSelectionChangeEvent,
TextEditorVisibleRangesChangeEvent,
window,
workspace,
} from 'vscode';
import { getVisibleLines ... |
<gh_stars>0
import {
ApproovConstants,
dataObject, getHostnameFromUrl,
HttpRequestOptions,
HttpResponse,
METHODS,
} from './approov-sdk.common';
import { isDefined } from '@nativescript/core/utils/types';
import * as application from '@nativescript/core/application';
import Approov = com.criticalblue.approovs... |
import {test} from "./test.ts"
export function maybe<A, B>(x?: A, z: B, f: (a: A) => B): B {
return x === undefined ? z : f(x)
}
test(maybe, undefined, -1, x => x + ' ok').is = -1
test(maybe, 'seems', -1, x => x + ' ok').is = 'seems ok'
export function nub<A>(xs: A[]): A[] {
const seen = new Set<A>()
return xs... |
import { safeTextColor, select, theme, ThemeState, useTheme } from "@querycap-ui/core/macro";
import { IconChevronLeft, IconChevronRight } from "@querycap-ui/icons";
import {
addDays,
addMonths,
addWeeks,
format as originFormat,
formatRFC3339,
getDate,
getMonth,
getYear,
isAfter,
isBefore,
isSameD... |
const LightningFS = require('@isomorphic-git/lightning-fs');
import {default as gitts} from 'isomorphic-git';
const git: typeof gitts = require('isomorphic-git');
import filenamify from 'filenamify';
const DEFAULT_DIR = '/gitdir';
const toFilename = (s: string) => filenamify(s, {maxLength: 10000});
import {promises} ... |
import * as path from 'path';
import * as codebuild from '@aws-cdk/aws-codebuild';
import * as codecommit from '@aws-cdk/aws-codecommit';
import * as codepipeline from '@aws-cdk/aws-codepipeline';
import * as codepipeline_actions from '@aws-cdk/aws-codepipeline-actions';
import * as ec2 from '@aws-cdk/aws-ec2';
import ... |
import * as ColorFunctions from '../../lib/styles/ColorFunctions';
import { exposeGetters } from '../../lib/theming/ThemeHelpers';
import { DefaultThemeInternal } from './DefaultTheme';
// TODO Delete repeated values from flat theme
export class FlatTheme extends (class {} as typeof DefaultThemeInternal) {
//#regi... |
import { Message, Interaction, CommandInteractionOption } from "discord.js";
import { DefaultParameter, InputParameter, ObjectID, Parameter, ParameterSchema } from "../structures/Parameter.js";
import { ChatCommandObject, TextCommandOptionChoiceObject, ChatCommandOptionObject, ChatCommandOptionType } from "../structure... |
import { Readable } from 'stream';
import * as $tea from '@alicloud/tea-typescript';
import * as kitx from "kitx";
import { Parser } from 'xml2js';
import { platform, arch } from 'os';
const DEFAULT_USER_AGENT = `AlibabaCloud (${platform()}; ${arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/1`;
function parseXM... |
<filename>src/json-patches.ts
/* eslint-disable @typescript-eslint/no-explicit-any */
import registerLocalePatches from './locale-json-patches.js';
registerLocalePatches(sc.ui2.runtimeLocaleJsonPatchesLib);
const { jsonPatches } = ccmod.resources;
async function patchCredits(data: any): Promise<void> {
if (ig.cur... |
/*
Copyright 2021 The CloudEvents Authors
SPDX-License-Identifier: Apache-2.0
*/
import { CloudEvent, CloudEventV1, CONSTANTS, Mode, ValidationError } from "../..";
import { Message, Headers, Binding } from "..";
import { headersFor, HEADER_MAP, KAFKA_CE_HEADERS } from "./headers";
import { sanitize } from "../http/... |
import {IReadStream, IReadStreamOptions, pathToSteps, TCallback, TFlags, TMode, Volume} from 'memfs/lib/volume';
import {File, Link, Node} from 'memfs/lib/node';
import {URL} from 'url';
import {PathLike} from 'fs';
import {PassThrough, Readable} from 'stream';
import {
HttpDirInfo,
HttpFsError,
HttpFsURLAction,
... |
import { ConfigProvider } from '@basemaps/config';
import { Bounds, Nztm2000QuadTms, TileMatrixSet, WmtsProvider } from '@basemaps/geo';
import { Projection, V, VNodeElement } from '@basemaps/shared';
import { ImageFormatOrder } from '@basemaps/tiler';
import { BBox, Wgs84 } from '@linzjs/geojson';
import { TileSetRast... |
<reponame>WillHayCode/Simple-FPS
import * as BABYLON from 'babylonjs';
import 'babylonjs-loaders';
import { Stage } from './Stage';
import { Asset, Texture, Mesh } from './Asset';
type AssetTypes = Texture | Mesh;
type AssetTypesSecond = typeof Texture | typeof Mesh;
type AssetPromiseTypes = Promise<Texture> | Promise... |
<filename>src/lib/fetcher.ts
import { SalesforceOptions } from './salesforceOptions'
import { RequestOptions } from './requestOptions';
import {
FetchSalesforceRequestError,
FetchSalesforceRequestErrorContext,
RevokeAccessTokenError
} from './errors';
import Logger from './logger';
import * as querystring... |
import { ReadonlyVec3, ReadonlyVec4, vec3 } from 'munum';
import { Armor, Character, Chest, Weapon } from '../entities';
import { Enemy } from '../entities/enemy';
import { Effect, Projectile } from '../entities/projectile';
import { FIRE_HIT_COLOR, HOLY_HIT_COLOR, ICE_HIT_COLOR, ORIGIN } from './config';
import { HitB... |
<filename>src/sky-observer.ts<gh_stars>1-10
import {
abs, Angle, asin, atan, atan2, cos, HALF_PI, interpolate, limitNeg1to1, mod, PI, sign, sin, SphericalPosition, SphericalPosition3D,
sqrt, tan, to_degree, to_radian, TWO_PI, Unit
} from '@tubular/math';
import { tdtToUt, utToTdt } from '@tubular/time';
import { is... |
<gh_stars>0
import * as express from 'express';
import httpProxy = require('http-proxy');
import url = require('url');
const morgan = require('morgan');
const Promise = require('bluebird');
const fs = Promise.promisifyAll(require('fs'));
const path = require('path');
const _ = require('lodash');
const debugLib = requir... |
import * as path from 'path';
import { EslintStrategy } from "./BaseEslintEngine";
import {FileHandler} from '../util/FileHandler';
import {Config} from '../util/Config';
import {Controller} from '../../ioc.config';
import { SfdxError, Logger } from '@salesforce/core';
import { OutputProcessor } from '../pmd/OutputProc... |
<reponame>puyofan99/gamejolt
import { InjectionKey } from 'vue';
import { Analytics } from '../../../../_common/analytics/analytics.service';
import { Api } from '../../../../_common/api/api.service';
import { Community } from '../../../../_common/community/community.model';
import { EventItem } from '../../../../_comm... |
import { Component, ChangeDetectionStrategy } from '@angular/core';
interface IRouteConfig {
icon: string;
route: string;
title?: string;
date?: string;
description?: string;
}
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'layouts-manage-list',
styleUrls: ['./manage-list.comp... |
<filename>lib/pushoutput.ts
// @ts-ignore
import { deps, Script, Transaction, Signature, util, Opcode, crypto } from "bitcore-lib-cash";
var inherits = require("inherits");
// Based on code for MultisigScriptHash
/**
* @constructor
*/
// TODO BitcoinFiles
// pubkeys = [pubkey]
// threshold = 1
// opts = [push up to... |
// IMPORTS
// ================================================================================================
import {
AirSchema, ProcedureContext, Expression, FiniteField, Dimensions, InputRegisterMaster, PrngSequence
} from "@guildofweavers/air-assembly";
import { Component, ProcedureSpecs, InputRegister } from ... |
import { ActionCreator, Dispatch } from "redux";
import { ThunkAction } from "redux-thunk";
import api from "api/api";
import {
AuthPageAction,
LOAD_AUTH_PAGE_DATA_START,
LOAD_AUTH_PAGE_DATA_SUCCESS,
LOAD_AUTH_PAGE_DATA_FAILURE,
CLEAR_AUTH_PAGE_DATA,
PUBLISH_EVENT_SUCCESS,
PUBLISH_EVENT_FAILURE,
PUBLISH... |
<reponame>BreezeZin/DefinitelyTyped<gh_stars>1-10
// element,form,table,util,laytpl,laypage,layedit
layui.use('element', () => {
const element = layui.element;
// 一些事件监听
element.on('tab(demo)', data => {
console.log(data);
});
element.init(); // 更新全部 2.1.6 可用 element.render() 方法替代
ele... |
import { BinaryReader } from "./binary_reader";
import { readByteArray, Biome, Vector2, Vector3, ZdoId } from "./util";
enum SkillType {
None = 0,
Sowrds = 1,
Knives = 2,
Clubs = 3,
Polearms = 4,
Spears = 5,
Blocking = 6,
Axes = 7,
Bows = 8,
FireMagic = 9,
FrostMagic = 10,
Unarmed = 11,
Picka... |
<gh_stars>10-100
/**
* @file: psi.js, created at Monday, 23rd December 2019 3:47:23 pm
* @copyright Copyright (c) 2020
* @author gem <<EMAIL>>
*/
/**
* PSI(Program Specific Information)
*/
// import { HevcPPSProps, HevcSPSProps, HevcVPSProps } from '../codec/avc';
import { PATSection } from './structs/patSection... |
import { toPaddedBinary, toHex, reverse } from "./util";
/**
* Takes a matrix of boolean values and flattens it, i.e. returns a
* one-dimensional array with all the rows concatenated. Moreover, if the
* length of the rows is not evenly divisible by 8, they are padded to a length
* which is divisible by 8 by append... |
/*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Observable } from 'rxjs';
import { CompiladorService } from 'src/app/services/compilador.service'
import { saveAs } from 'file-saver'
import { DomSanitizer } from '@angular/platform-browser';
import * as... |
<reponame>lacuna-tech/mds-core<gh_stars>10-100
/**
* Copyright 2020 City of Los Angeles
*
* 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... |
import * as React from "react";
import { JsonSchema } from "../model/JsonSchema";
import { JsonSchemaGroup } from "../model/JsonSchemaGroup";
import { RawJsonSchema, KeysOfRawJsonSchemaStringValues } from "../types/RawJsonSchema";
import { ParserConfig } from "../types/ParserConfig";
import { RenderOptions } from "..... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*----------------------------------------------------------------... |
import { Component, HostListener, OnInit } from '@angular/core';
import { RestApiService } from 'src/app/services/restAPI/rest-api.service';
declare var jQuery:any;
export interface uploadFile {
no: number
file : File
name:string
path:string
updated?: number
augImgs: AugImgFile[]
resId : number
}
ex... |
import * as React from "react";
import * as ReactDOM from "react-dom";
import { IMapProviderContext, IViewerComponent, useViewerSideEffects } from '../components/map-providers/base';
import { CURSOR_DIGITIZE_POINT, CURSOR_DIGITIZE_LINE, CURSOR_DIGITIZE_LINESTRING, CURSOR_DIGITIZE_RECT, CURSOR_DIGITIZE_POLYGON, CURSOR_D... |
import {FileLikeObject} from './file-like-object';
import {FileItem} from './file-item';
function isFile(value: any) {
return (File && value instanceof File);
}
function isFileLikeObject(value: any) {
return value instanceof FileLikeObject;
}
export class FileUploader {
public url: string;
public authToken: ... |
<filename>src/components/dropdown/dropdown.ts
/*
* Copyright 2016-2017 the original author or authors.
*
* 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... |
import {KeyboardEvent as SyntheticKeyboardEvent} from 'react';
import {selectPlatform, isMacOS} from '@condict/platform';
// Keyboard shortcuts are *weird*.
//
// On most OSes, you have three modifiers that are primarily used for keyboard
// commands: Ctrl, Shift and Alt. On macOS computers, you have FOUR of the damn... |
<reponame>craig-lion/WeasleyClockv2Backend
import {
Resolver,
Query,
Args,
Mutation,
ResolveField,
Int,
Subscription,
} from '@nestjs/graphql';
import { PubSub } from 'graphql-subscriptions';
import { Location } from 'src/location/location.model';
import { LocationService } from 'src/location/location.ser... |
import config from 'config'
import sinon from 'sinon'
import path from 'path'
import { promises as fs } from 'fs'
import ipfsClient from 'ipfs-http-client'
import CID from 'cids'
import type { ClientOptions } from 'ipfs-http-client/src/lib/core'
import Eth from 'web3-eth'
import { Contract } from 'web3-eth-contract'
im... |
<reponame>AnasMostefaoui/nyris-webapp
import {
CategoryPrediction, FeedbackEvent,
FeedbackEventPayload,
ImageSearchOptions,
OfferNyrisResult,
Region,
SearchResult,
RectCoords
} from "./types-external";
require("blueimp-canvas-to-blob");
import {getRectAspectRatio, canvasToJpgBlob, getEleme... |
<gh_stars>1-10
import { Vector2, Vector3 } from "three";
import { EPS, Settings, SETTINGS } from "./Settings";
import { Events } from "./Enums";
function fract(x: number): number {
return x % 1;
}
class NecklaceModel {
private _necklace: number[] = undefined;
/** Vector with total number of jewels per type. */... |
<reponame>itkrt2y/vite-plugin-react-pages<filename>packages/react-pages/src/node/utils/virtual-module/VirtualModules.ts
import { PendingState } from './utils'
export class VirtualModuleGraph {
/**
* the module inside this graph may be virtule module or real fs module
*/
private readonly modules: Map<string, ... |
import { calculatedStatToFilter, FiltersCreationContext } from '../create-stat-filters'
import { calcPropBounds, propAt20Quality, QUALITY_STATS } from './calc-q20'
import { stat, StatBetter } from '@/assets/data'
import { ARMOUR, WEAPON, ItemCategory } from '@/parser/meta'
import { ParsedItem } from '@/parser'
import {... |
/* eslint-disable prettier/prettier */
/** ********************************************************************************************************************
* boot loading for global instance manager
** ***************************************************************************************************************... |
<filename>src/index.ts
import * as m from 'mithril'
/** Represents a single option in a mithril-select */
export interface Option {
/** Unique value that identifies this option. Can be any type except `undefined`. */
value: any
/**
* @deprecated Use `view` instead.
* Content to display for this option. Can be a... |
export = sjcl;
export as namespace sjcl;
declare namespace sjcl {
export var codec: SjclCodecs;
export var hash: SjclHashes;
export var exception: SjclExceptions;
export var cipher: SjclCiphers;
export var mode: SjclModes;
export var misc: SjclMisc;
export var random: SjclRandom;
export... |
// NVRAMに保存するためにはBS/CSの場合broadcaster_idが必要になりBS/地上波の場合affiliation_idが必要となる
// BSの場合original_network_idとservice_idの組からbroadcaster_idはほぼ固定なのであらかじめ用意する
// 地上波の場合多様なのでBITを受信するとlocalStorageに保存する
import { ResponseMessage } from "../server/ws_api";
import * as resource from "./resource";
type Broadcaster = {
services: {
... |
// (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 by applicable law or agree... |
<gh_stars>100-1000
import { Transform, TransformParameter, TransformParameterType } from './transforms.ts';
export async function computeTransforms(): Promise<Transform[]> {
const photon = await import('./ext/photon_rs_bg.js');
const transforms: Transform[] = [];
for (const [ name, value ] of Object.entrie... |
// @ts-nocheck
import __axios from 'axios';
import __strToHtml from '@coffeekraken/sugar/js/html/strToHtml';
import __htmlToString from '@coffeekraken/sugar/js/html/toString';
import __SRequestConfig from './SRequestConfig';
import __autoCast from '@coffeekraken/sugar/shared/string/autoCast';
import __convert from '@c... |
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import { isIPv4 } from 'net';
import { stringify } from 'querystring';
import * as vscode from 'vscode';
import { Terminal } from 'vscode';
import { Client } from 'ssh2';
import ... |
<filename>Generator/jsExpressionClassBuilder.ts
import * as ts from 'typescript';
interface IProperty {
name: string;
type: ts.Type;
}
interface IParameter extends IProperty {
}
interface IMethod extends IProperty {
typeParameters: string[];
parameters: IParameter[];
}
export class JsExpressionClas... |
import * as React from 'react';
import {Alert, Spinner, TreeView, TreeViewDataItem} from '@patternfly/react-core';
import {selectParents, selectTrees, updateNames, updateParents, updateTrees} from "@app/store";
import {useAppDispatch, useAppSelector} from "@app/hook";
export interface SearchTreeViewProps {
/** URL t... |
import { BasicNode, ProstoParserNodeContext, TBasicNodeOptions } from '@prostojs/parser'
import { getRewriter, pushString } from './rw-common'
import { stringExpressionNodeFactory } from './string-expression'
import { TAttrNodeCustomData, THTMLBlockDescr, THTMLBlockOperations, TRewriteCodeFactory, TRewriteHtmlOptions, ... |
<reponame>mtorromeo/vue-patternfly4
import { computed, Fragment, Comment, Prop, VNode, isVNode, VNodeNormalizedChildren, ComponentPublicInstance } from 'vue';
export const breakpoints = ['', 'Sm', 'Md', 'Lg', 'Xl', '2xl'];
const camelize = (s: string) =>
s
.toUpperCase()
.replace('-', '')
.replace('_', ... |
#!/usr/bin/env ts-node
import {
parse_template, Node, ScanningContext
, AttItem
, isIdentOnly, isBareLabeledAtt
, hasStringValue
, extract_line, extract_prefix_spec
} from 'lrxml'
import {
build_template_declaration, TemplateDeclaration,
BuilderSession, Part, Widget,
Variable
} from '../src/declaratio... |
// this engages a babel macro that does cool emotion stuff (like source maps). See https://emotion.sh/docs/babel-macros
import css from "@emotion/css/macro";
// these two lines make the css prop work on react elements
import { jsx } from "@emotion/core";
/** @jsx jsx */
import {
Grid,
Table,
TableFixedCol... |
import { CallSmartContractMethod, Currency } from '@tatumio/api-client'
import {
ChainBatchTransferCustodialWallet,
ChainCallSmartContractMethod,
ChainGenerateCustodialAddress,
ChainGenerateCustodialWalletBatch,
ChainTransferCustodialWallet,
ChainTransferCustodialWalletCelo,
} from '@tatumio/shared-blockcha... |
import * as React from 'react'
import { Spin, ConfigProvider } from 'antd'
import zhCN from 'antd/lib/locale-provider/zh_CN'
import DocumentTitle from 'react-document-title'
import { store } from '@ice/stark-data'
import moment from 'moment'
import 'moment/locale/zh-cn'
import _, {
isPlainObject,
isFunction,
get,... |
<gh_stars>0
import { DEFAULT_BASE_URL, EVENT_UPLOAD_COMPLETE, EVENT_UPLOAD_STARTED } from "./constants";
import { uploadFile, UploadResult } from "./client";
function cssClass(clazz: string): string {
return `s3fileinput-${clazz}`;
}
function sized(val: number): string {
const units = ["bytes", "KiB", "MiB", "GiB... |
import * as React from "react";
import { hot } from "react-hot-loader";
import * as Fabric from "office-ui-fabric-react/lib";
import {
FlowContextMenu,
FlowCustomCommand,
FlowDetailPanel,
FlowItemPanel,
FlowToolbar,
} from "./src/index";
import {
Flow,
// ItemPanel,
Minimap,
MxGraph,
RegisterNode,... |
import { SVGPathData } from 'svg-pathdata';
import { CommandC, CommandL, SVGCommand } from 'svg-pathdata/lib/types';
import BaseLayer from '../Base/BaseLayer';
import { defaultExportOptions } from '../utils';
import {
CGPoint,
ShapePathType,
BezierPoint,
StartPoint,
BaseLayerParams,
SketchFormat,
} from '.... |
<reponame>404-DriverNotFound/backend-b
import { Base } from './base.class';
import { GameStatus } from '../constants/game-status.enum';
import { Point } from './point.class';
import { Room } from './room.class';
import { SETTINGS } from '../constants/SETTINGS';
import { Serve } from '../interfaces/serve.interface';
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.