text stringlengths 3.08k 15.5k |
|---|
import {
BooleanValueNode,
DirectiveNode,
EnumValueNode,
FieldNode,
FloatValueNode,
GraphQLResolveInfo,
IntValueNode,
ListValueNode,
SelectionNode,
StringValueNode,
ValueNode,
VariableNode,
} from 'graphql';
import * as _ from 'lodash';
/**
* Interface for GraphQLFieldsConfig
*/
export interf... |
// 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 */
/* eslint-disable jsx-a11y/anchor-is-valid */
im... |
<reponame>ecerroni/ga-4-react
import {
GA4Config,
GA4ManagerOptionsInterface,
GA4ReactInterface,
GA4ReactResolveInterface,
gtagAction,
gtagCategory,
gtagFunction,
gtagLabel,
} from '../models/gtagModels';
export const GA4ReactGlobalIndex = '__ga4React__';
declare global {
interface Window {
gtag... |
import Head from "next/head";
import { useState, useEffect } from "react";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fab } from '@fortawesome/free-brands-svg-icons';
import { fas } from '@fortawesome/free-solid-svg-icons'... |
<filename>sdk/nodejs/apigateway/account.ts
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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 "../t... |
<filename>packages/promise/index.ts<gh_stars>1-10
import { EmptyFunc } from '../typing/index'
interface ResolveFn extends EmptyFunc {
(value: any): any
}
interface RejectFn extends EmptyFunc {
(reason: any): any
}
type ExecutorArgs = ResolveFn | RejectFn
type RejectReason = Error | undefined
enum PromiseStatus ... |
import { History } from "../../../verdant-model/history";
import { Nodey, NodeyCodeCell } from "../../../verdant-model/nodey";
import { Sampler } from "../../../verdant-model/sampler";
import { VerNotebook } from "../../../verdant-model/notebook";
import { CodeCell, Cell, MarkdownCell } from "@jupyterlab/cells";
import... |
import { Button, createStyles, makeStyles, Tab, Tabs, Theme } from '@material-ui/core';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/Table... |
import React, { createRef, useEffect, RefObject } from "react"
import {
Scene,
OrthographicCamera,
WebGLRenderer,
PlaneBufferGeometry,
Mesh,
ShaderMaterial,
Vector2,
Color,
} from "three"
import "./style.scss"
const vertexShader = `void main() {
vec4 mvPosition = modelViewMatrix * vec4(position, 1.0 ... |
<reponame>jimmyhmiller/aws-cdk
import * as impl from './diff';
import * as types from './diff/types';
import { deepEqual, diffKeyedEntities, unionOf } from './diff/util';
export * from './diff/types';
type DiffHandler = (diff: types.ITemplateDiff, oldValue: any, newValue: any) => void;
type HandlerRegistry = { [secti... |
// @author : <NAME>
// @version : 0.0.1
// @copyright : 2021
// @license : MIT
import { isNil } from "@axux/utilities";
import { isVisible, withinDomTree, withinEl } from "@axux/utilities/dist/dom";
import { Placement } from "@popperjs/core";
import {
Children,
cloneElement,
FC,
ReactElement,
Ref,
u... |
<reponame>SebasRod23/amplify-cli
import { OPERATION_KEY } from '@aws-amplify/graphql-model-transformer';
import { FieldDefinitionNode } from 'graphql';
import {
Expression,
iff,
not,
ref,
equals,
str,
compoundExpression,
printBlock,
toJson,
set,
methodCall,
nul,
ifElse,
bool,
raw,
forEac... |
import { ModulVue } from '../../utils/vue/vue';
import { PluginObject } from 'vue';
import Component from 'vue-class-component';
import { Prop, Watch } from 'vue-property-decorator';
import WithRender from './flex-template.html?style=./flex-template.scss';
import { FLEX_TEMPLATE_NAME } from '../component-names';
import... |
'use strict';
import {State} from './state';
import {IStateClient, IStateProvider} from './types';
import {urlStateProvider} from './url-state-provider';
import {localStorageStateProvider} from './localstorage-state-provider';
import {lodash as _, isPromise} from '../../utils';
/**
* Core services
*
* @author Our O... |
import { Expr, Group, Const, Variable } from "./expressions";
import { Operators as Ops, PostOp, PostOpDef, BinOpDef, BinOp, OpDef } from './operators'
/// SECTION: Definitions
type Token = {
type: 'const'|'var'|'open'|'close'|'group'|'op'
text: string
opdef?: OpDef
bound?: Token[]
}
/** Parse a single expre... |
import { Component, QueryList, ViewChild, ViewChildren } from '@angular/core';
import { NavController, NavParams, Slides } from 'ionic-angular';
import * as _ from 'lodash';
import { BuyCardPage } from '../buy-card/buy-card';
import { Subject } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
import {
Ac... |
<filename>src/micro_app_element.ts
import type { AttrType, MicroAppElementType, AppInterface } from '@micro-app/types'
import { formatLogMessage, defer, formatURL, version } from './libs/utils'
import { ObservedAttrName, appStatus, lifeCycles } from './constants'
import CreateApp, { appInstanceMap } from './create_app'... |
<filename>src/app/farming/farming.service.ts<gh_stars>0
import _ from 'lodash';
import { MoveReservations, sortMoveAsideCandidatesForStore } from '../inventory/item-move-service';
import { DimItem } from '../inventory/item-types';
import { D1StoresService } from '../inventory/d1-stores';
import { DestinyAccount } from ... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import './App.css';
import { AppInterface, FormFactory } from './AppInterface';
import UndoRedo from './undo/UndoRedo';
import { pushUndo, undo, redo } from './undo/undo';
import StrictDrawing from './draw/StrictDrawing';
import { StrictDrawingSav... |
<gh_stars>0
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { HttpClient, HttpErrorResponse, HttpEventType, HttpResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { AnalyticsService, ApiUrlConfig, DateTi... |
<gh_stars>0
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mo... |
import {
err,
FxError,
GraphTokenProvider,
ok,
Platform,
Result,
returnSystemError,
returnUserError,
TelemetryReporter,
UserInteraction,
CryptoProvider,
} from "@microsoft/teamsfx-api";
import {
AadOwner,
CollaborationState,
Collaborator,
getHashedEnv,
ListCollaboratorResult,
TeamsAppA... |
<reponame>gaul/webpackage
import * as CBOR from 'cbor';
import {URL} from 'url';
declare module 'cbor' {
// TODO: upstream these to @types/cbor
interface DecoderOptions {
canonical?: boolean;
highWaterMark?: number;
}
export function encodeOne(obj: CBORValue, opts?: DecoderOptions): Buffer;
}
type CBO... |
import {Action} from "redux";
import {Channel, Task, Buffer, Predicate} from "./types";
type Pattern<T> = string | string[] | Predicate<T>;
interface TakeEffectDescriptor<T> {
pattern: Pattern<T>;
channel: Channel<T>;
maybe?: boolean;
}
interface TakeEffect<T> {
TAKE: TakeEffectDescriptor<T>;
}
export func... |
<reponame>PapyElGringo/material-shell
/** Gnome libs imports */
import { Settings } from 'gio';
import * as GLib from 'glib';
import * as Meta from 'meta';
import { MsWorkspace } from 'src/layout/msWorkspace/msWorkspace';
import { BaseTilingLayout } from 'src/layout/msWorkspace/tilingLayouts/baseTiling';
import { GridL... |
<filename>src/styles/index.ts
import {css, keyframes} from 'styled-components/macro';
import {rgba} from 'polished';
const palette = {
gray100: '#0b0b0b',
gray150: '#0f0f0f',
gray200: '#121212',
gray250: '#141414',
gray300: '#191718',
gray400: '#231f20',
gray500: '#303030',
gray550: '#3a3a3a',
gray600: '#6666... |
import config from "config";
import {io, Socket} from "socket.io-client";
import {
JoinVoiceChannelRequest,
JoinVoiceChannelResponse,
MoveChannelRequest,
MoveChannelResponse,
NewChannelRequest,
NewChannelResponse
} from "dtos/channel.dto";
import {MoveGroupRequest, MoveGroupResponse, NewGroupReq... |
<filename>types/photoshop/dom/Constants.d.ts
/**
* The method to use for image interpolation
*/
export declare enum ResampleMethod {
/**
* Choose best option automatically
*/
AUTOMATIC = "bicubicAutomatic",
/**
* Bicubic interpolation
*/
BICUBIC = "bicubic",
/**
* Apply a ... |
import * as fs from "fs";
import * as util from "util";
import * as vscode from "vscode";
import DocProvider from "./DocProvider";
const jsonPath = require("jsonpath");
const workerFarm = require("worker-farm");
const searchWorker = workerFarm(require.resolve("./searchWorker"));
const stat = util.promisify(fs.stat);
... |
import { getScreen, scale, event } from '../../main';
import * as GUI from '@babylonjs/gui/';
import { ActionInventoryClick } from 'voxelsrv-protocol/js/client';
import { ItemSlot, createSlot, updateSlot } from '../../parts/itemSlot';
import { defaultValues } from '../../../values';
import { getBaseInventory } from '.... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable max-lines */
import React, {HTMLAttributes} from 'react';
import classNames from 'classnames';
import {ActionFunc} from 'mattermost-redux/types/actions';
import {Channel} from 'mattermost... |
<reponame>cbartel/nw-company-tool
import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatTableDataSource } from '@angular/material/table';
import { Expedition, Participant, Permission, Role } from '@nw-company-tool/model';
imp... |
import cn from 'classnames';
import moment from 'moment';
import React, { useRef } from 'react';
import { FaFutbol } from 'react-icons/fa';
import { useDrop, useDrag } from 'react-dnd';
import { DisplayPlayerType, PitchPlayerType } from '../../types';
import { PlayerPosition } from 'components/Gameweek/PlayerSelectio... |
import defaults from 'lodash/defaults';
import React, { PureComponent } from 'react';
import { InlineField, Select, FeatureInfoBox, Input } from '@grafana/ui';
import { QueryEditorProps, SelectableValue, FeatureState, dataFrameFromJSON, rangeUtil } from '@grafana/data';
import { GrafanaDatasource } from '../datasource... |
import { UIComponent } from "./Component";
import { TabBar, TabBarElementClickEvent } from './TabBar'
import { Tab } from './Tab'
import { TabBarElement } from "./TabBarElement";
import { Collection } from "./Container";
var TabsViewHTML = `
<div>
<div quark-attrib name="tabbar">
<!-- Here lies the TabBar ... |
import { useState, SyntheticEvent, Fragment, ChangeEvent, useEffect } from 'react';
import { connect } from 'react-redux';
import ModalForm from '../../UI/Forms/ModalForm/ModalForm';
import InputGroup from '../../UI/Forms/InputGroup/InputGroup';
import { Bookmark, Category, GlobalState, NewBookmark, NewCategory, NewNo... |
/**
* Localized output will of course vary based on the locale and date library used. Inline examples here are based on
* using `moment` with the `en-US` locale.
*/
export interface DateIOFormats<TLibFormatToken = string> {
/** Localized full date @example "Jan 1, 2019" */
fullDate: TLibFormatToken;
/** Partia... |
import {
Backdrop,
Box,
CircularProgress,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
Typography,
} from "@material-ui/core";
import axios from "axios";
import React, { useEffect, useState } from "react";
import { useHistory } from "react-router";
import { Link } from "react-... |
import React from 'react'
import axios from 'axios'
import { DropzoneDialog } from 'material-ui-dropzone'
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles'
import Modal from '@material-ui/core/Modal'
import Backdrop from '@material-ui/core/Backdrop'
import Fade from '@material-ui/core/Fade'
imp... |
import { Box, Button, Divider, FormControl, InputLabel, ListItem, ListItemText, makeStyles, MenuItem, Select, TextField, Typography } from "@material-ui/core";
import React, { useEffect, useRef, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { RootState } from "../redux/Store";
... |
import { isDefined, isNotNumber } from '../utils'
import { LogicError, MaxSizeError, MinSizeError, NotInSetError, NotIntegerError, RawTypeError } from './errors'
export interface VOFloatOptions {
/**
* Minimum inclusive acceptable value.
* Can't be bigger than `max`.
*/
min?: number
/**
* Maximum in... |
<reponame>emulate-key/emulate-key-in-browser<gh_stars>0
import { AppControlNames, AppControlsHarness, AppDemoFormHarness, AppDemoFormInputNames, AppHarness } from './app.harness';
import { expectNotToHaveThrownAnything } from './expect.function';
import { SharedSpecContext } from './shared-spec-context.model';
export ... |
import { action, autorun, makeObservable, observable } from 'mobx';
import React from 'react';
import { EditorServices } from '../../types';
type MaskPosition = {
id: string;
style: {
top: number;
left: number;
height: number;
width: number;
};
};
export class EditorMaskManager {
hoverComponent... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<gh_stars>10-100
/**
* Copyright 2021 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. A copy of the License is located at
*
* http://www.apache.org/licenses/LICEN... |
<gh_stars>0
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import {NewRole, Realm, Role, UpdateRole} from '../../types';
import actions, { RolesResult, RoleResult} from "../../http";
import {AppThunk} from "../store";
import { createErrorToast, createSuccessToast } from '../toasts/toastsSlice';
interfac... |
/*
* Copyright (c) 2020. MeLike2D All Rights Reserved.
* Neo is licensed under the MIT License.
* See the LICENSE file in the project root for more details.
*/
import {
GatewayEvent,
GatewayOpCode,
Payload,
Shard,
SMEvent,
} from "@neocord/gateway";
import { Class, Collection, isClass, mergeObjects, walk... |
<gh_stars>1-10
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { Subscription } from 'rxjs';
import { getVoteId, putVoteIdCast } from '@api/Vote';
import pluralize from 'pluralize'... |
/**
* This blob of a file is pulled together from different files from the metaplex
* repository.
* Metaplex does not have a NPM package at the current time to make this easier, so instead of
* trying to reference their stuff, I copied all of the minimum necessary code into this file
*/
import { deserializeUncheck... |
import * as React from 'react'
import { TablePagination } from '@material-ui/core';
import { StatElement, layerString, propertyDisplayNames } from '../../utils/statsUtils';
import { SwitchLayerDropdown } from './SwitchLayerDropdown';
import { Mode } from '../../types/Dataset';
import { percentFormat, getCountFormat } f... |
<reponame>bobinchese/PokemonDiscordAppv2
import {Gender, Species, SPECIES} from './data/species';
import {Type} from './data/types';
import {Generation} from './gen';
import {StatsTable, calcStat, STATS, DVToIV, getHPDV, shortForm, Stat} from './stats';
import {extend} from './util';
export type Status =
| 'Healthy'... |
import { Component, OnInit } from '@angular/core';
import {
CabinetManagerService,
Publication,
PublicationForGUI,
PublicationSystem
} from '@perun-web-apps/perun/openapi';
import { FormControl } from '@angular/forms';
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';
impo... |
import { Disposable, CacheConfig, IEnvironment, Snapshot } from 'relay-runtime';
import { isNetworkPolicy, isStorePolicy } from './Utils';
import { __internal, OperationType, OperationDescriptor } from 'relay-runtime';
import { FetchPolicy, RenderProps } from './RelayHooksType';
const { fetchQuery } = __internal;
con... |
/*
* 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 React, { useState, useEffect } from 'react';
import {
EuiFormRow,
E... |
import * as CSS from 'csstype'
import { SystemProp, ThemeNamespaceValue, ITheme, Theme } from '../types'
import { style, compose, themeGetter } from '../style'
import { rpx } from '../unit'
import { getPx, Pixel } from './units'
import { getColor, Color } from './colors'
import { space, SpaceProps } from './space'
// ... |
import {
createStyles,
makeStyles,
Theme,
Button,
Typography,
} from "@material-ui/core";
import { useSelector } from "react-redux";
import { TStore } from "@service/redux/store";
import { useContext, useEffect, useState } from "react";
import { AppContext } from "@components/context";
import { Comment, NewCo... |
import React, {useEffect, useState} from "react";
import {Chip, Grid, ListItemText} from "@material-ui/core";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import ListItemSecondaryAction from "@material-ui/core/ListItemSecondaryAction";
import Container from "@material-ui... |
//RECODING
//<NAME>
//<NAME>
// -------------------
// Parameters and UI
// -------------------
const gui = new dat.GUI()
const params = {
background: 0,
origin: 0,
bezier: 1,
curve: 0,
trigo1: 0,
trigo2: 0,
trigo3: 0,
y: 0,
x: 0,
scale :40,
h: 0.25,
w: 0.9,
n: 0... |
import * as _ from 'lodash';
import * as React from 'react';
import {
constants,
DocAgnosticFormat,
DocsInfo,
DocsInfoConfig,
Documentation,
SupportedDocJson,
TypeDocNode,
} from '@0xproject/react-docs';
import * as v0TypeDocJson from './json/0.2.0.json';
// tslint:disable-next-line:no-im... |
// Print diagnostic information for a few arguments instead of running Hyper.
if (['--help', '-v', '--version'].includes(process.argv[1])) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const {version} = require('./package');
const configLocation = process.platform === 'win32' ? `${process.env.u... |
import React, {
Children,
FC,
isValidElement,
memo,
PropsWithChildren,
useEffect,
useState
} from 'react';
import { compose } from 'redux';
import { Link } from 'react-router-dom';
import FdkLink from '@fellesdatakatalog/link';
import translations from '../../../../lib/localization';
import { getTranslat... |
<filename>src/commands/setup.ts
import Command from "../typings/Command";
import CountService from "../services/CountService";
import Emojis from "../utils/emojis";
import Eris from "eris";
import UserError from "../utils/UserError";
const setup: Command = {
aliases: ["setup"],
denyDm: true,
onlyAdmin: true,
run: ... |
import { Label } from '@tablecheck/tablekit-input';
import { Size } from '@tablecheck/tablekit-theme';
// eslint-disable-next-line import/no-extraneous-dependencies
import {
parseIncompletePhoneNumber,
parsePhoneNumberFromString,
PhoneNumber,
CountryCode
} from 'libphonenumber-js/core';
import metadata from 'li... |
import {MAIN} from '../../data';
import {flatten, keys, vals} from '../../util';
import {AggregateNode} from './aggregate';
import {DataFlowNode, OutputNode} from './dataflow';
import {FacetNode} from './facet';
import {ParseNode} from './formatparse';
import {DataComponent} from './index';
import * as optimizers from ... |
<reponame>tawaship/Pixim-createjs-core<filename>src/createjs/Text.ts
import { Container, Text } from 'pixi.js';
import createjs from '@tawaship/createjs-module';
import { mixinCreatejsDisplayObject, createPixiData, createCreatejsParams, IPixiData, ICreatejsParam, ITickerData, TCreatejsMask, ICreatejsDisplayObjectUpda... |
<reponame>iAziz786/outline-server<filename>src/sentry_webhook/post_sentry_event_to_salesforce.ts<gh_stars>0
// Copyright 2018 The Outline 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 Lice... |
<filename>framework/vue/data.ts
import { inject, onBeforeUnmount, Ref, ref, toRaw, watch } from "vue";
import FetchError from "../core/fetch_error.ts";
import type { SSRContext } from "../../server/renderer.ts";
import { HttpMethod, UpdateStrategy } from "./context.ts";
export type RouteData = {
data?: unknown;
da... |
import { Application } from '@pixi/app';
import { Container } from '@pixi/display';
import { Graphics } from '@pixi/graphics';
import { InteractionEvent } from '@pixi/interaction';
import { gsap } from 'gsap';
import { PopupEvent } from '../..';
import { DisplayObjectWithSize } from '../display/DisplayObjectWithSize';
... |
/**
* 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... |
import {
ActiveEvent,
FocusEvent,
GridConstraintChangeEvent,
GridviewApi,
GridviewReact,
GridviewReadyEvent,
IDockviewPanelProps,
IGridviewPanelProps,
LayoutPriority,
Orientation,
orthogonal,
PanelCollection,
PanelDimensionChangeEvent,
VisibilityEvent,
} from 'doc... |
<filename>packages/s2-shared/src/interface.ts
import type {
S2DataConfig,
S2Options,
CellScrollPosition,
TargetCellInfo,
ResizeParams,
S2Constructor,
Node,
SpreadSheet,
ThemeCfg,
ViewMeta,
LayoutResult,
SortParams,
DataCell,
Data,
GEvent,
HiddenColumnsInfo,
CollapsedRowsType,
DataTyp... |
<reponame>luna215/molstar-proto<filename>src/apps/viewer/extensions/jolecule.ts
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { StateTree, StateBuilder, StateAction, State } from 'mol-state';
import { StateTransforms } from 'm... |
<gh_stars>100-1000
// @ts-ignore
import * as asn from "asn1.js";
function urlize(base64: string): string {
return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
}
function hex2b64url(str: string): string {
return urlize(Buffer.from(str, "hex").toString("base64"));
}
var RSAPublicKey = asn.defi... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
// import { ListenerSignature, TypedEmitter } from "tiny-typed-emitter";
import type { default as TypedEmitter } from "typed-emitter";
import EventEmitter from "events";
export declare type S... |
<filename>src/core/web/modules/transition.ts
import { VNode } from '../../../type'
import {
isDef,
isUndef,
isObject,
isString,
cache,
remove,
once,
noop,
isNumber,
toNumber
} from '../../../helper/utils'
import webMethods from '../dom'
import { mergeVNodeHook } from '../../vnode'
import { nextFrame... |
import React from 'react';
import Button from '@material-ui/core/Button';
import Icon from '@material-ui/core/Icon';
import Fab from '@material-ui/core/Fab';
import Paper from '@material-ui/core/Paper';
import TextField from '@material-ui/core/TextField';
import MySimpleAppBar from './MySimpleAppBar';
import NoteAudio... |
/*
* MIT License
*
* Copyright (c) 2018 <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 limitation the rights to
* use, copy, modify,... |
/*
* Copyright (C) 2017-2018 Erisson and others.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
import URI from '@theia/core/lib/common/uri'... |
import React, { useState, useEffect } from 'react';
import moment from 'moment';
import { Card, Select, Divider } from 'antd';
import { translate } from './utils/cron';
import { getSchedulingTime } from './utils';
import { DEFAULT_VALUE } from './constant';
import { constant } from './utils/cron/transform';
import { jo... |
import React, { useContext, useState } from "react";
import { Col, Container, Row, Button } from "react-bootstrap";
import { useLocation } from "react-router-dom";
import appContext from "../context/app-context";
import { TimeSection, OtherSection, FieldValue } from "./RecipeSections";
import RecipeStars from "./Recipe... |
import { MQStore, getCollectionName } from './MQStore'
import { action, observable, makeObservable, computed } from 'mobx'
export type CaseHandlers<T, R> = {
loading(): R
error(error: any): R
data(data: T): R
}
export type FetchPolicy =
| 'cache-first' // Use cache if available, avoid network request if possi... |
/*
* Copyright 2022 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 { Injectable } from '@angular/core';
import { User } from '../structures/user';
import { Observable, of } from 'rxjs';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { catchError, tap } from 'rxjs/operators';
import { NotificationsComponent } from '../notifications/notifications.component... |
/* eslint-disable no-restricted-globals */
import * as Sucrase from "sucrase";
import {TRANSFORMS} from "./Constants";
import getTokens from "./getTokens";
import {compressCode} from "./URLHashState";
import {Message, WorkerConfig, WorkerMessage} from "./WorkerProtocol";
type Transform = Sucrase.Transform;
declare c... |
import React from "react"
import { useTranslation } from "react-i18next"
import Button, { ButtonProps } from "@material-ui/core/Button"
import Dialog from "@material-ui/core/Dialog"
import DialogActions from "@material-ui/core/DialogActions"
import DialogContent from "@material-ui/core/DialogContent"
import DialogTitle... |
<filename>packages/tooltip/src/css/index.ts
import {
colorsPrimaryAction,
colorsTextIcon,
colorsWhite,
layout,
motion,
type
} from '@pluralsight/ps-design-system-core'
import * as vars from '../vars/index'
const shadowBlurWidth = '4px'
const tailDimension = '14px'
const diamondHeight = getDiamondHeight(t... |
import React, { FC, forwardRef, useCallback, useEffect, useMemo, useState } from "react";
import { Block, Elem } from "../../utils/bem";
import { clamp, isDefined } from "../../utils/helpers";
import { useValueTracker } from "../Form/Utils";
import { Select } from '../Form/Elements';
import "./Pagination.styl";
import ... |
<reponame>bung87/oc2dart<filename>src/converter.ts
import { Token, TokenType, Param, Member } from './token';
import { calculateLevDistance } from './utils';
export function getConverter(
classes: Token[]
): { [propName: string]: (token: Token, arg?: any) => string } {
const handleArr = (token: Token) => {
con... |
import React from 'react';
import { Modal } from 'react-bootstrap';
import { Option } from 'react-select';
import { groupBy, sortBy } from 'lodash';
import { Observable, Subject } from 'rxjs';
import {
ModalClose,
TetheredSelect,
AccountTag,
Application,
IServerGroup,
noop,
IManifest,
IServerGroupManag... |
import { Overlay, OverlayConfig, OverlayRef, ScrollStrategyOptions } from '@angular/cdk/overlay';
import { ComponentPortal } from '@angular/cdk/portal';
import { DOCUMENT } from '@angular/common';
import { ComponentFactoryResolver, ComponentRef, Inject, Injectable } from '@angular/core';
import { ToasterContainerCompon... |
/*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
import { Disklet } from 'disklet'
import { EdgeParsedUri } from 'edge-core-js'
import {
addressToScriptPubkey,
AddressTypeEnum,
bip43PurposeNumberToTypeEnum,
BIP43PurposeTypeEnum,
ScriptTypeEnum,
seedOrMnemonicToXPriv,
verifyAddress,
VerifyAddressEnum,
wifToPrivateKey,
xprivToXPub
} from '../keyman... |
<reponame>k5js/k5js-a<filename>packages/app-admin-ui/client/classes/List.ts<gh_stars>0
import gql from 'graphql-tag';
import { arrayToObject, mapKeys, omit } from '@k5js/utils';
export const gqlCountQueries = lists => gql`{
${lists.map(list => list.countQuery()).join('\n')}
}`;
export default class List {
config... |
<reponame>dolittle/Studio
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { get, writable } from 'use-svelte-store';
import { Exception } from '@dolittle/rudiments';
import {
deleteMicroservice as apiDelete... |
<filename>src/ExternalApi/Mangadex.ts
import axios, {AxiosResponse} from "axios";
import Cache from "../Cache";
import {CommandError, Manga} from "../types";
interface Chapter {
id: string;
title: string;
chapter: number;
volume: string;
}
interface MangadexChapters {
[id: string]: {
"volu... |
import { NextPage } from 'next';
import Head from 'next/head'
import React, { useEffect, useState } from 'react'
import init, {
get_x_size, get_y_size, get_raw_item, get_calculated_item, update_item,
insert_x, insert_y, remove_x, remove_y, export_raw_table, export_calculated_table
} from '../pkg/csvx_app.js';
let ... |
<filename>src/smo/xform/beamers.ts<gh_stars>0
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) <NAME> 2021.
import { SmoMusic } from '../data/music';
import { SmoNote } from '../data/note';
import { SmoAttrs } from '../data/common';
import { SmoMeasure, ISmoBeamGroup } from '../data/measure';
... |
// Unstable?
import {
authenticationTemplateP2pkhNonHd,
authenticationTemplateToCompilerBCH,
bigIntToBinUint64LEClamped,
cashAddressToLockingBytecode,
Compiler,
encodeTransaction,
generateTransaction,
validateAuthenticationTemplate,
TransactionContextCommon,
AnyCompilationEnvironment,
Authenticati... |
/**
* Hey!
*
* Base socials mixin used for every social component
* which have share window. It provides a method for window.open()
* and has props for window features. Also has a method for component render.
*/
import { ExtendedVue } from 'vue/types/vue';
import Vue, { CreateElement, PropOptions, VNode } from '... |
import * as React from "react";
import * as cn from "classnames";
import { $T } from "i18n-strings";
import { ScreenshotModal } from "ui/modals/screenshot-modal";
import { ShareProgramModal } from "ui/modals/share-program-modal";
import { SaveProgramModal } from "ui/modals/save-program-modal";
import { DeleteProgramMod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.