text stringlengths 3.08k 15.5k |
|---|
/**
* @license
* Copyright 2017 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 a... |
import { Constants } from "../../Constants";
import { ShaderUtils } from "../../utils";
import { AlGraphEvents } from "../../utils";
import { AlGraphEntryType } from "../../enums";
import { BaseComponent } from "./BaseComponent";
import { Entity } from "aframe";
interface AlNodeState {
camera: THREE.Camera;
draggi... |
import {
Component,
OnInit,
OnDestroy,
ViewContainerRef,
ViewChild,
ComponentFactoryResolver
} from "@angular/core";
import { ITab } from "src/core/tabs-base/tabs-base.component";
import { TabServicesComponent } from "./section-tabs/tab-services/tab-services.component";
import { TabGeoComponent ... |
import path from 'path';
import glob from 'fast-glob';
import {
TranslationsByKey,
UserConfig,
LoadedTranslation,
LanguageTarget,
LanguageName,
} from '@vocab/types';
import chalk from 'chalk';
import { trace } from './logger';
import {
defaultTranslationDirSuffix,
Fallback,
getAltLanguageFilePath,
... |
<reponame>nissoh/aelea
import { $node, $text, component, style } from '@aelea/dom'
import { Behavior } from '@aelea/core'
import { match, Route } from '@aelea/router'
import { $column, $row, layoutSheet } from '@aelea/ui-components'
import { pallete } from '@aelea/ui-components-theme'
import { awaitPromises, chain, map... |
import { useAtom } from "jotai";
import React, { useState } from "react";
import { useHistory } from "react-router-dom";
import { tw } from "twind";
import { wsend } from "../../createWebsocket";
import { useMuteStore } from "../../webrtc/stores/useMuteStore";
import { currentRoomAtom, meAtom, myCurrentRoomInfoAtom } f... |
import { Dialog, DialogActions, Divider, MenuItem } from "@material-ui/core"
import FlatButton from "material-ui/FlatButton"
import IconMenu from "material-ui/IconMenu"
import SelectField from "material-ui/SelectField"
import React, { useState } from "react"
import { Link } from "react-router-dom"
import * as helper fr... |
<gh_stars>10-100
import { SubcodeWidget } from "./subcode";
import * as dom from 'monaco-editor/esm/vs/base/browser/dom';
const $ = dom.$;
export enum RuntileGlyphs {
Breakpoint = "debug-breakpoint-glyph",
Unverified = "debug-breakpoint-unverified-glyph",
Current = "debug-current-step-glyph",
}
export enum Brea... |
import {getConfig} from "./config";
import {Coordinates} from "./coordinates";
enum State {
Uninitialized = 0,
Initializing,
Querying,
Error,
Ready,
}
interface ISite {
name: string;
url: string;
key: string;
}
interface IOkapiInstallation {
site_url: string;
site_name: string... |
<gh_stars>0
import {AnyAction, combineReducers} from 'redux';
import {MainPage, ReqData, Rpc, RpcClient, SetUp, UserInfo} from './AppState';
import {ActionTypes} from './Actions';
import {Datastore, Utils} from '../utils/Utils';
import {TransactionRequestItem} from '../components/redux/Types';
import {Alert} from 'reac... |
import { OptRow } from '@t/options';
import {
Validation,
Column,
CustomValidator,
ErrorInfo,
CustomValidatorResultWithMeta,
} from '@t/store/column';
import { RowKey, CellValue, Row } from '@t/store/data';
import {
isString,
isBlank,
isFunction,
convertToNumber,
isNumber,
includes,
some,
isBo... |
import React, { Component } from 'react';
import { Box, Columns, Container, Heading, Hero, Table } from 'react-bulma-components';
import { IRequest, IHomeProps } from 'src/server/interfaces';
import { api } from 'src/server/api';
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
R... |
import _ from "lodash";
import { AggregationConfiguration, EntitySource, SingleEnrichmentConfig } from "./types";
/**
* Aggregator is a class that can be used to aggregate data from multiple sources.
*
* The aggregator is responsible for coordinating the aggregation process
* and injecting the data from the ent... |
import React from "react";
import Head from "next/head";
import Image from "next/image";
import { useRouter } from "next/router";
import { Button, Input, SocialButton } from "../components";
import { Magic } from "magic-sdk";
import { OAuthExtension } from "@magic-ext/oauth";
import withoutAuth from "../hocs/withoutAu... |
<gh_stars>0
import {
AfterViewInit,
Component,
ContentChildren,
EventEmitter,
HostBinding,
Inject,
InjectionToken,
Input,
Optional,
Output,
QueryList,
Renderer2,
TemplateRef,
ViewChild,
ViewEncapsulation,
OnInit,
} from '@angular/core';
import { SNGPaginationComponent } from '../paginati... |
import type { NextPage } from "next";
import React, { useEffect, useState, useMemo, createContext } from "react";
import Deployment from "./deployment";
import SettingsModal from "./settings-modal";
import apiClient from "../services/clients/api";
import { MongodbDeploymentWithActionsAndDocs, DocumentedResult } from ".... |
import { testingAsserts as ta } from "./deps-test.ts";
import { fs } from "./deps.ts";
import * as mod from "./mod.ts";
const rejectEntries = mod.walkShellCmdEntryRejectGlobFilter(
".",
".git",
".git/**",
);
Deno.test(`Test invalid command which produces Deno exception (non-zero result)`, async () => {
ta.ass... |
/*
Copyright 2018 Southern California Edison Company
ALL RIGHTS RESERVED
*/
import { BrowserWindow, dialog, Rectangle, screen, app } from "electron";
import ElectronStore = require("electron-store");
export interface IWindowStatus {
x: number;
y: number;
width: number;
height: number;
maximized: ... |
<reponame>seansusmilch/epanel-react
import firebase from 'firebase'
import 'firebase/auth'
import 'firebase/firestore'
import 'firebase/functions'
import 'firebase/storage'
import {StatusProps, InviteUse, Invite} from 'components/Props'
// const fireConf = {
// apiKey: process.env.REACT_APP_FIRE_API_KEY,
// au... |
import React, { useRef, useState } from 'react';
import {
Modal,
StyleSheet,
Text,
TouchableWithoutFeedback,
View,
ViewStyle,
TextStyle,
Animated,
ScrollView,
Dimensions,
} from 'react-native';
import ActionButton from './ActionButton';
const { height } = Dimensions.get('window');
export var showAl... |
import { calcWhatPercent, percentChance, reduceNumByPercent, Time } from 'e';
import { KlasaClient, KlasaUser } from 'klasa';
import { CommandResponse } from 'mahoji/dist/lib/structures/ICommand';
import { Bank, Monsters } from 'oldschooljs';
import { SkillsEnum } from 'oldschooljs/dist/constants';
import TzTokJad from... |
<gh_stars>10-100
import { ApolloServer } from 'apollo-server-express'
import * as express from 'express'
import * as core from 'express-serve-static-core'
import { weaveSchemas } from 'graphql-weaver'
import { EngineReportingOptions } from 'apollo-engine-reporting'
import * as http from 'http'
import {
getPollingMs,... |
<gh_stars>1-10
import { DeviceSet, K8sResourceKind, NodeKind, ResourceConstraints, StorageClassResourceKind, StorageClusterKind, Taint } from "@odf/shared/types";
import { humanizeCpuCores, convertToBaseValue } from "@odf/shared/utils";
import { MatchExpression } from "@openshift-console/dynamic-plugin-sdk-internal/lib... |
<reponame>leoronne/dropbox-homepage-ui-clone<gh_stars>1-10
import styled from 'styled-components';
export const Container = styled.div`
--padding-top: 100px;
--padding-bottom: 120px;
--heading-font-size: 32px;
--content-width: 100%;
--bg-color: var(--color-quaternary);
--text-color: var(--color-tertiary);
... |
<gh_stars>0
import { create } from 'ipfs-client';
import { DirNode, FileNode, Source } from '../index/FsDag';
import { CID, IPFS } from 'ipfs-core';
import * as pth from 'path';
import { spawnSync } from 'child_process';
import fs, { ReadStream, WriteStream } from 'fs';
import rrdir from 'rrdir';
export interface File... |
<reponame>OpenBankingToolkit/openbanking-analytics
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {
ForgerockMainLayoutComponent,
ForgerockMainLayoutModule,
IForgerockMainLayoutConfig,
IForgerockMainLayoutNavigations
} from '@forgerock/openbanking-ngx-c... |
<reponame>djzielin/altspace-artifact-spawner<gh_stars>1-10
/*!
* Licensed under the MIT License.
*/
import * as MRE from '@microsoft/mixed-reality-extension-sdk';
import App from './app';
interface UserProperties {
name: string;
user: MRE.User;
userID: MRE.Guid;
lHand: MRE.Actor;
rHand: MRE.Actor;
... |
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { AddressDto } from '@shared/models/loans';
import { MatTabChangeEvent } from '@angular/material';
import { CheckBoxItem } from '@shared/components/ui-components/checkbox-container/checkbox-container.component';
import { EnvService }... |
<gh_stars>0
/**
* @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 {ViewEncapsulation} from '../metadata/view';
import * as v1 from '../render/api';
import {DebugC... |
<filename>src/controllers/videos.controller.ts
import { NextFunction, Request, Response } from "express";
import Videos, { IVideos } from "../database/models/videos";
import Comments, { IComments } from "../database/models/comments";
import User, { IUser } from "./../database/models/user";
import multer from 'multer';
... |
import * as React from 'react'
// import { Link } from 'gatsby'
import Helmet from 'react-helmet'
import Page from '../components/Page'
// import Container from '../components/Container'
import IndexLayout from '../layouts'
import { graphql, useStaticQuery } from 'gatsby'
///
import clsx from 'clsx'
import { makeStyles... |
<filename>viewer/src/components/display/plans/plan-manager.ts
import { Mesh, Vector3 } from 'three';
import { IFCBUILDINGSTOREY, IFCBUILDING } from 'web-ifc';
import { IfcPlane } from '../clipping-planes/planes';
import { IfcClipper } from '../clipping-planes/clipper';
import { CameraProjections, Context, NavigationMod... |
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
SubjectPublicKeyInfo,
_decode_SubjectPublicKeyInfo,
_encode_SubjectPublicKeyInfo,... |
import * as assert from 'assert';
import { Test, Suite } from '@travetto/test';
import { Util } from '../src/util';
class Test2 { }
@Suite()
class UtilTests {
@Test()
testPrimitive() {
for (const v of [1, '1', true, false, 0.0, /ab/g, new Date()]) {
assert(Util.isPrimitive(v));
}
for (const ... |
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { LumConstants } from '@lum-network/sdk-javascript';
import { useRematchDispatch } from 'redux/hooks';
import { RootDispatch } from 'redux/store';
import { Button as FEButton } from 'frontend-elements';
import { Input, Swit... |
<filename>src/EventTypes.d.ts
import { IArcModelEventTypes } from './models/ArcModelEventTypes';
declare interface IAmfEvents {
processApiLink: string;
processBuffer: string;
processApiFile: string;
selectApiMainFile: string;
}
declare interface IAppEvents {
versionInfo: string;
command: string;
request... |
<gh_stars>1-10
import { AsyncResource } from 'async_hooks';
import async_hooks from 'async_hooks';
import { StorageType, Context } from '../types/types';
// import util from 'util';
// Create increment number to propagate unique id
let id = 1;
function uuid() {
return id++;
}
export class CLS<T> implements Context<T... |
<gh_stars>1-10
import { e } from '../../lib/html.js';
import { EntityInstance, Tile } from '../../types';
import { Map, IMap, Neighbouring } from '../Map.js';
export class Terrain extends Map implements IMap {
render(tiles: Tile[] = this.world().tiles()): void {
this.clear();
tiles.forEach(({ x, y }: Tile) ... |
import Utils from './utils';
import fetch from 'node-fetch';
import Database from './database';
const btoa = require('btoa');
import LOG from './log';
import * as fs from 'fs';
import * as path from 'path';
// import discordBot from './discord_bot';
const HOST = 'in2rp.pl';
// const HOST = 'in2rp.com';
var CLIENT_ID... |
<gh_stars>0
import { ParseResult } from './parser';
import { Token, TOKEN_IDENTIFIER, TOKEN_KEYWORD } from './tokenizer';
import {
quoteString, serializeToken, serializeTokens, shortenIdentifier,
} from './util';
/**
* One log statement format configuration for a given language.
*
* logPrefix: A function calls in... |
import { container } from "../../Common/container";
import { AvbxGravatarClient } from "./gravatar";
import * as awilix from "awilix";
import { AvbxIcon } from "../../Domain/avbx-icon";
container.register({
kms: awilix.asValue({
encrypt: jest.fn(),
decrypt: jest.fn(),
}),
s3: awilix.asValue({
putIcon... |
import {
Element, ElementKind, Name, OperatorAssociativity, OperatorPlacement, OperatorPrecedenceRelation,
VocabularyLiteralElement
} from './ast'
export class PrecedenceLevel {
higher: PrecedenceLevel | null = null
lower: PrecedenceLevel | null = null
makeLower(): PrecedenceLevel {
const ... |
import { Logger } from '../../../../cli';
import {
CommandOption
} from '../../../../Command';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import SpoCommand from '../../../base/SpoCommand';
import commands from '../../commands';
enum HeaderLayout {
Standard = 1... |
<filename>src/scripts/inject/gryphon-inject.ts
import { checkLoggedIn, getAddedElementsFromMutations } from './inject-common'
import {
getMyselfUserId,
getTweetEntityById,
getUserEntityById,
markUser,
toastMessage,
} from './reactredux'
function findTweetIdFromElement(elem: HTMLElement): string | null {
if... |
/* eslint-disable unicorn/filename-case */
// Generated file, please do not edit directly
import { flags } from '@oclif/command';
import { main } from '@rockset/core';
import { runApiCall, Args } from '../../../helper/util';
import { RockCommand } from '../../../base-command';
import * as chalk from 'chalk';
import {... |
import { SnakeState } from "./reducer"
import { SnakePoint, Direction } from "./types"
import { Dispatch } from "react"
import { SnakeActions, actChangeDirection } from "./actions"
import { playFieldSize, foodReach } from "./constants"
const getDirection = (
fromPoint: SnakePoint,
toPoint: SnakePoint
): Direction ... |
import type { isuxportal } from "../pb_admin";
import { ApiError, ApiClient } from "../ApiClient";
import { AdminApiClient } from "./AdminApiClient";
import React from "react";
import { Link, Redirect, useLocation, useHistory } from "react-router-dom";
import { useForm } from "react-hook-form";
import { Clarification... |
/**
* ```javascript
* import { staticServer } from "@fly/fetch"
* ```
* @module fly/static-server
*/
/**
* A basic static file server. Generates a fetch function that serves requests
* from files in the app config. This function knows how to map some default file extensions
* to mime types.
* @param opts opt... |
import {Request, Response} from 'express'
import fs from 'fs'
import path from 'path'
import {promisify} from 'util'
import * as Yup from 'yup' // o yup é uma biblioteca de validação de dados, como ele não tem um export default vamos fazer uma importação de tudo usando o *
import {getRepository} from 'typeorm' // getRe... |
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
let webViewPanel: vscode.WebviewPanel;
let latestMarkdownEditor: vscode.TextEditor;
import * as unified from "unified";
import * as markdown from "remark-parse";
import * as stringify from 'remark-stringify';
import { IBoard, pa... |
/// <reference lib="webworker" />
/* eslint-disable no-restricted-globals */
// This service worker can be customized!
// See https://developers.google.com/web/tools/workbox/modules
// for the list of available Workbox modules, or add any other
// code you'd like.
// You can also remove this file if you'd prefer not t... |
<reponame>victorvw/vscode-sqflint
import * as pegjs from 'pegjs';
import * as fs from 'fs';
import * as fsPath from 'path';
import { SQFLint } from '../sqflint'
const hppParser = require('./grammars/pegjs-hpp') as pegjs.Parser;
const hppPreprocessor = require('./grammars/pegjs-hpp-pre') as pegjs.Parser;
interface Sou... |
import * as React from 'react';
import { Theme } from '@material-ui/core/styles/createMuiTheme';
import classnames from 'classnames';
import createStyles from '@material-ui/core/styles/createStyles';
import withStyles, { WithStyles } from '@material-ui/core/styles/withStyles';
import withRoot from '../withRoot';
import... |
<reponame>Misukun/cv4-angular<gh_stars>0
import {Component, Input, OnInit} from '@angular/core';
import {NgbModal, NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-modal-content',
template: `
<div class="modal-header">
<h5 class="modal-title text-center">{{nameContent}... |
import {FocusMonitor} from '@angular/cdk/a11y';
import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';
import {
Component,
ElementRef,
EventEmitter,
Inject,
Input,
OnDestroy,
Optional,
Output,
Self,
ViewChild,
forwardRef
} from '@angular/core';
import {
AbstractControl,
Con... |
<gh_stars>0
import { enumToMap, IEnumMap } from './utils';
export type RTSPMode = 'loose' | 'strict';
// C headers
export enum ERROR {
OK = 0,
INTERNAL,
STRICT,
LF_EXPECTED,
UNEXPECTED_CONTENT_LENGTH,
CLOSED_CONNECTION,
INVALID_METHOD,
INVALID_URL,
INVALID_CONSTANT,
INVALID_VERSION,
INVALID_HEA... |
import { EditorView } from '@codemirror/view'
import { Extension } from '@codemirror/state'
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'
import { tags as t } from '@lezer/highlight'
const dark0 = '#282828',
dark1 = '#3c3836',
dark2 = '#504945',
dark3 = '#665c54',
dark4 = '#7c6f64',... |
import { FC, useEffect, useState } from "react";
import { logInWithEmailAndPassword, signInWithFacebook, signInWithGoogle } from "@/utils/firebase";
import { useRouter } from "next/router";
import Link from "next/link";
import { useAppDispatch, useAppSelector } from "@/hooks/useRedux";
import Form from "./Form";
import... |
<reponame>azu/github-project-todo-md
import { graphql } from "@octokit/graphql";
import type { IssueState, Organization, Project, Repository, User } from "@octokit/graphql-schema";
import { PullRequestState } from "@octokit/graphql-schema/schema";
import { debug } from "@deps/debug";
import { mdEscape, mdLink } from "m... |
<filename>cluster/index.ts
import * as gcp from "@pulumi/gcp";
import * as k8s from "@pulumi/kubernetes";
import * as pulumi from "@pulumi/pulumi";
const config = new pulumi.Config();
new gcp.compute.ProjectDefaultNetworkTier("network-tier", {
networkTier: "STANDARD",
project: gcp.config.project,
});
const gkeEn... |
// eslint-disable no-console
import { Injectable, Optional, Autowired } from '@opensumi/di';
import { Range } from '@opensumi/monaco-editor-core/esm/vs/editor/common/core/range';
import { IRPCProtocol } from '@opensumi/ide-connection';
import {
CancellationToken,
Disposable,
DisposableStore,
IDisposable,
URI,... |
import * as Asset from '../Asset';
import * as Cardano from '../Cardano';
import {
Address,
Assets,
AuxiliaryData,
BigNum,
Certificates,
Ed25519Signature,
GeneralTransactionMetadata,
Int,
MetadataList,
MetadataMap,
MultiAsset,
PublicKey,
RewardAddress,
Transaction,
TransactionBody,
Trans... |
import {
ActionSheet,
ActionSheetRef,
Block,
Button,
CheckBox,
Divider,
DropDown,
FAB,
HelperText,
LightBox,
ModalAppMode,
ModalAppModeRef,
Otp,
Progress,
RadioButton,
Screen,
Select,
Slider,
Spacer,
Switch,
Text,
TextField,
TouchableScale,
Wallpaper,
} from '@components'... |
import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core";
import { HttpserviceService } from "../../../../services/http/httpservice.service";
import { UserInfoService } from "../../../../services/user-info/user-info.service";
declare let $;
declare let layui;
@Component({
selector: "ngx-my-sele... |
import { createHash, randomBytes } from 'crypto';
import * as Long from 'long';
import { Address, Hash, Reader, Writer } from 'tesra-ts-crypto';
import { Uint256 } from '../common/uint256';
import { DeployCode } from './payload/deployCode';
import { InvokeCode } from './payload/invokeCode';
export const TX_MAX_SIG_SIZ... |
<gh_stars>1-10
// Copyright 2022 @paritytech/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: Apache-2.0
import BN from 'bn.js';
import { MutableRefObject } from 'react';
import { PagesConfig } from 'types/index';
import { decodeAddress, encodeAddress } from '@polkadot/keyring';
import { h... |
import { UserAssociatedFoodPrompt, UserFoodData } from '@common/types/http/foods/user-food-data';
import {
AssociatedFood,
Brand,
Food,
FoodLocal,
FoodLocalList,
Locale,
NutrientMapping,
NutrientTableRecord,
NutrientTableRecordNutrient,
} from '@api/db/models/foods';
import InvalidIdError from '@api/... |
<reponame>PixelShiftAI/createts<gh_stars>1-10
import { Runtime } from '../runtime/Runtime';
import { DrawUtils } from '../utils/DrawUtils';
import { EnumUtils } from '../utils/EnumUtils';
import { LayoutUtils } from '../utils/LayoutUtils';
import { LineHeight } from './LineHeight';
export enum FontStyle {
NORMAL = '... |
<reponame>iosiftalmacel/lightweight-charts<filename>src/renderers/line-anchor-renderer.ts
import { ensureNotNull } from '../helpers/assertions';
import { merge } from '../helpers/strict-type-checks';
import { CanvasRenderParams } from '../model/canvas-render-params';
import { Coordinate } from '../model/coordinate... |
<gh_stars>1-10
import { getV2OpenGroupRoomByRoomId, OpenGroupV2Room } from '../../../../data/opengroups';
import { getConversationController } from '../../../conversations';
import { PromiseUtils, ToastUtils } from '../../../utils';
import { forceSyncConfigurationNowIfNeeded } from '../../../utils/syncUtils';
import {
... |
/**
* 该类将符合本库模板的服务器配置文件解析为pm2启动所需的配置信息
* pm2配置信息 http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
import fs from 'fs';
import path from 'path';
export interface PM2AdapterConfig {
clusters: { [key: string]: PM2AdapterNodeConfig[] };//集群节点列表集合
defaults?: PM2AdapterNodeConfig;//节点默认的配置信息
ho... |
import React, { useState } from 'react';
import styled from 'styled-components/macro';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import NumberFormat from 'react-number-format';
import BigNumber from 'bignumber.js';
import _ from 'lodash';
import { AppDispatch, RootState } from ... |
const UNICODE_DATA = {
initial: [12593, 12594, 12596, 12599, 12600, 12601, 12609, 12610, 12611, 12613, 12614, 12615, 12616, 12617, 12618, 12619, 12620, 12621, 12622],
finale: [0, 12593, 12594, 12595, 12596, 12597, 12598, 12599, 12601, 12602, 12603, 12604, 12605, 12606, 12607, 12608, 12609, 12610, 12612, 12613, 1261... |
/*
* Copyright 2019 <NAME> <<EMAIL>>
* Copyright 2019 Institute of the Czech National Corpus,
* Faculty of Arts, Charles University
*
* 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 ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
<gh_stars>1-10
import * as FS from 'fs';
import * as Path from 'path';
import * as Debug from 'debug';
import { promisify } from 'util';
import { Options, DEFAULT_OPTIONS } from "./options";
import { RootElement, ElementType, ComposedType } from './element';
const logError = Debug('avro-tsc.parser:error');
const... |
import * as gqlc from "graphql-compose";
import * as imgixGatsby from "@imgix/gatsby/dist/pluginHelpers";
import * as prismicT from "@prismicio/types";
import * as RTE from "fp-ts/ReaderTaskEither";
import * as O from "fp-ts/Option";
import * as S from "fp-ts/Semigroup";
import * as A from "fp-ts/Array";
import * as R ... |
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
AddAvlRsp_result,
_decode_AddAvlRsp_result,
_encode_AddAvlRsp_result,
} from "..... |
import moment from "moment";
import {
InvoiceOptions,
getInvoiceSingleton,
} from "lib/paypal/invoice";
import { GBP } from "consts";
import { MatchPlayer, FeeBand, FeeTypes } from "./feeTypes";
import { config } from "config";
import logger from "logger";
import { getPlayers } from "./matches";
import { getPlayer... |
<filename>src/models/note.ts
import ListItemModel, { IListItem } from './list-item'
import BaseService from '~/services/base'
import StatusesService from '~/services/statuses'
import { MysqlError, OkPacket } from 'mysql'
import Validator from 'validatorjs'
import UserModel, { IUser } from './user'
import NoteCoAuthorMo... |
<filename>packages/alfa-css/src/value/gradient/linear.ts<gh_stars>1-10
import { Equatable } from "@siteimprove/alfa-equatable";
import { Hash, Hashable } from "@siteimprove/alfa-hash";
import { Serializable } from "@siteimprove/alfa-json";
import { Parser } from "@siteimprove/alfa-parser";
import * as json from "@site... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
/**
* @license
* 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 required by applicable law or ... |
import React, { useState, useEffect } from 'react'
import { v4 as uuidv4 } from 'uuid'
import MemberStrip, { TMemberStripProps } from './MemberStrip'
import Select, { TOption } from '../../common/components/Select/Select'
import Slider from '../../common/components/Slider/Slider'
import Breadcrumbs, { TBreadcrumb } fr... |
/*
* Copyright 2020 Salto Labs 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 ... |
import React from "react";
import { v4 } from "uuid";
import { Views, ViewsToServerComponents } from "./Views";
import ViewComponent from "./component/ViewComponent";
import { AppContext } from "./Contexts";
import { AppTransport, ViewData, ExistingSharedViewData, Prop } from "./types";
interface AppParameters<ViewsIn... |
import type { Fresh } from "@fncts/io/Layer/definition";
import { tuple } from "@fncts/base/data/function";
import { LayerHash, LayerTag } from "@fncts/io/Layer/definition";
/**
* A `MemoMap` memoizes dependencies.
*/
export class MemoMap {
constructor(readonly ref: Ref.Synchronized<HashMap<PropertyKey, readonly ... |
<reponame>pmieten/sigma-vue<filename>src/main.ts<gh_stars>0
import { createApp } from 'vue';
import { reactive } from 'vue';
import router from './router';
import App from './App.vue';
import AutoComplete from 'primevue/autocomplete';
import Accordion from 'primevue/accordion';
import AccordionTab from 'primevue/accord... |
type Task = {
id: number;
order: number;
title: string;
body: string;
isCompleted: number;
}
let tasks: Task[] = [];
const addTaskInit = document.querySelector(".add-task-init") as HTMLElement;
const addTaskButton = document.querySelector(".form__add-task") as HTMLElement;
const cancelAddTask = document.que... |
import React, {
createContext,
useCallback,
useContext,
useEffect,
useState,
} from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { getMacAddress } from 'react-native-device-info';
import api from '../services/api';
interface Lesson {
id: string;
name: string;
d... |
import Axios from "axios";
import { Guild, TextChannel, User, VoiceChannel } from "discord.js";
import { EventEmitter } from "events";
import { INode, Node } from "./structures/Node";
import { IPlayer, Player } from "./structures/Player";
import { IQueue, Queue } from "./structures/Queue";
import { SearchResult } from ... |
import {
CommandType,
HTTPError,
HTTPResponse$,
NativeRequestOptions,
raiseHTTPErrors,
RequestMonitoring,
RootRouter,
send$,
} from '../lib'
import { PyYouwolClient } from '../lib/py-youwol'
import { AssetsGatewayClient } from '../lib/assets-gateway'
import { filter, map, mergeMap, share... |
<reponame>Platane/js13k-2021<filename>src/system/controls.ts
import { vec2 } from "gl-matrix";
import { emptyBox, enlargeBoxByPoint, enlargeBoxByPoints } from "../math/box";
import { isInsideBlob } from "../math/gauss";
import { getPack } from "../math/pack";
import { Vec2 } from "../math/types";
import { state } from ... |
// =============================================================================
// Euclid.js | Point Class
// (c) Mathigon
// =============================================================================
import {total} from '@mathigon/core';
import {nearlyEquals, roundTo, square, clamp, lerp, Random} from '@mathigon... |
/* eslint-disable no-restricted-globals */
import { getFunction } from "../../fractals";
import { Order, Model, WorkerResponse } from "../types";
import { RenderFn } from "../../fractals/example";
import { Tile } from "../../tile";
const draw = (model: Model, func: RenderFn, tile: Tile) => {
var buffer = tile.buffer... |
import { Button, Form, Icon, Input, Select, Upload } from 'antd';
import { ValidateCallback, WrappedFormInternalProps } from 'antd/lib/form/Form';
import { UploadChangeParam, UploadFile } from 'antd/lib/upload/interface';
import { ReactNode } from 'react';
import { WithTranslation, withTranslation } from 'react-i18nex... |
<gh_stars>0
import {
ClientError,
IEndpoint,
IEndpointCallback,
IEntityEndpoint,
IGetEndpoint,
IListEndpoint,
IMutationEndpoint,
IQuery,
IQueryParams,
IRequestEndpoint,
ISource,
ISourceCreate,
ISourceItem,
ISourcePatch,
ISourceQuery,
IWithIdentityQuery
} from "@leight-core/api";
import {IEndpointParams}... |
import { Trigger, MapPlayer, Quest, Unit } from "w3ts/index"
import { State } from "State";
import { SpawnSystem } from "../SpawnSystem";
import { Players } from "w3ts/globals/index";
import { Icons } from "Config";
export class Command {
private owner: Commands;
public description: string;
public showInI... |
import {
_decorator,
Component,
Sprite,
Prefab,
Node,
instantiate,
PhysicsSystem2D,
EPhysics2DDrawFlags,
RigidBody2D,
Vec2,
Label,
} from 'cc'
import { BirdController } from './bird-controller'
const { ccclass, property } = _decorator
export enum GameState {
INIT,
PLAYING,
END,
}
/**
* P... |
import useSWR from 'swr'
import React, { useEffect, useState } from 'react'
import { NextPage } from 'next'
import { useRouter } from 'next/router'
import { observer } from 'mobx-react-lite'
import {
Typography,
IconLoader,
IconAlertCircle,
IconRewind,
Button,
IconInfo,
Card,
Input,
} from '@supabase/ui... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.