text
stringlengths
3.3k
33k
<gh_stars>1-10 import { getLogger } from '@stencila/logga' import { SoftwareSession } from '@stencila/schema' import childProcess from 'child_process' import crypto from 'crypto' import fs from 'fs' import http from 'http' import path from 'path' import { promisify } from 'util' import { Session } from './Session' con...
export function renderCodeStreamUrl(codestreamURL: string): string { const baseURL = `${window.location.protocol}//${window.location.host}`; return `${codestreamURL}/#${baseURL}` + window.location.pathname; } export function makeOpenInPopup(a: HTMLAnchorElement): void { a.onclick = () => { var w = window.open(a.h...
<gh_stars>0 import { html, render, svg, TemplateResult, } from '../node_modules/lit-html/lit-html'; import { newSpreadsheet, Spreadsheet } from './spreadsheet'; import { styleMap } from '../node_modules/lit-html/directives/style-map.js'; import { PAGE_MODEL, Counter, Converter, Booker, Timer, Crud, ...
/* eslint-disable jsx-a11y/alt-text */ import 'tippy.js/animations/scale.css' import 'tippy.js/dist/tippy.css' import React from 'react' import { CodeAlt } from '@styled-icons/boxicons-regular/CodeAlt' import { CodeBlock } from '@styled-icons/boxicons-regular/CodeBlock' import { Highlight } from '@styled-icons/boxicons...
<gh_stars>0 // Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // 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, ...
<gh_stars>10-100 /// <reference types="node" /> import { EventEmitter } from 'events'; import { Dirent as NodeDirent, ReadStream } from 'fs'; import { Stats as NodeStats, WriteStream } from 'fs'; import { NoParamCallback, BigIntStats as NodeBigIntStats } from 'fs'; import { LinkStrategy } from './algorithms/copyPromise...
/* eslint-disable @typescript-eslint/no-explicit-any */ /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *-------------------------------------------------...
<gh_stars>0 import { CollectionProxy, RecordProxy, NullProxy } from "./proxies"; import { CredentialStorage, StorageBackend } from "./credential-storage"; import { IDMap } from "./id-map"; import { Attribute } from "./attribute"; import { Scope, WhereClause, SortScope, FieldArg, StatsScope, IncludeScope } from "./scope...
import { Helper } from '../helper'; export const tipiPowerUp = { 'health': { name: 'health', hp:5, color:'DodgerBlue', r: 5, spawnTime: 30000 }, 'megaHealth': { name: 'megaHealth', hp:50, color:'DodgerBlue', r:10, spawnTime: 30000 }, 'armour': { name: 'armour', ap:5, color:'green', r:5, spawnTi...
import { useReducer, useEffect, useCallback, useRef, useMemo } from 'react'; type CleanupFunction = () => void; export type EffectFunction< TState, TEvent extends EventObject, TEffect extends EffectObject<TState, TEvent> > = ( state: TState, effect: TEffect, dispatch: React.Dispatch<TEvent> ) => CleanupFu...
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {Header, ImageService} from '../image.service'; export class FileHolder { public serverResponse: { status: number, response: any }; public pending: boolean = false; constructor(public src: string, public file: File) { } } @C...
import { ReduxComponent } from '../js_web_comp_lib/ReduxComponent'; import { reduxStoreInstance, State } from '../ReduxStore'; import { CSS } from '../Css'; import { AbstractReduxStore } from '../js_web_comp_lib/AbstractReduxStore'; import { AbstractReducer, Action } from '../js_web_comp_lib/AbstractReducer'; import *...
import {Assert, DeepGet, DeepSet} from "js-vextensions"; import {VMenuReducer, VMenuState} from "react-vmenu"; import {combineReducers} from "redux"; import {firebaseStateReducer, helpers} from "react-redux-firebase"; //import {reducer as formReducer} from "redux-form"; import {ACTMessageBoxShow, MessageBoxOptions, Mes...
/* eslint-disable */ import React, { useEffect, useState } from 'react' import { useHistory} from 'react-router-dom' import { CCard, CCardBody, CCardHeader, CButtonToolbar, CButton, CRow, CForm, CLabel, CInput, CSelect, CNav, CDataTable, CFormGroup, CInvalidFeedback, CValidFeedback, CToaster, CToast, CToastBody, CToast...
<gh_stars>1-10 /* tslint:disable */ /* eslint-disable */ // To parse this data: // // import { Convert, PriceFeed } from "./file"; // // const priceFeed = Convert.toPriceFeed(json); // // These functions will throw an error if the JSON doesn't // match the expected interface, even if the JSON is valid. export int...
<filename>libs/ng-rive/src/lib/state-machine.ts import { EventEmitter, Directive, NgZone, OnDestroy, Output, Input, ContentChildren, QueryList } from '@angular/core'; import { SMIInput, StateMachine, StateMachineInstance } from 'rive-canvas'; import { BehaviorSubject, of, Subscription } from 'rxjs'; import { filter, ma...
<reponame>implydata/druid-query-toolkit<filename>src/sql/sql-base.ts /* * 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 requ...
export interface ISkill { code: string level?: number days?: number title?: string } export interface SkillDef { title: string deps: ISkill[] } export const SKILL_TREE: { [ code: string]: SkillDef } = { OBSE: {"title": "observation","deps": []}, STEA: {"title": "stealth","deps": []}, ...
<reponame>uplol/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *----------------------------------------...
import * as fs from "fs"; import * as path from "path"; import * as cmn from "@akashic/akashic-cli-commons"; import * as fsx from "fs-extra"; import readdir = require("fs-readdir-recursive"); import * as UglifyJS from "uglify-js"; export interface ConvertTemplateParameterObject { output: string; logger: cmn.Logger; ...
// // Copyright (C) 2020 Bluzelle // // 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...
import { parse as parseflags, Option, Results, } from "@design-sdk/flags/parsing-strategy-dashdash"; import * as keys from "./keys"; import { flag_key__artwork } from "./--artwork"; import { flag_key__as_wrap } from "./--as-wrap"; import { flag_key__module } from "./--module"; import type { HeadingFlag, Tex...
<gh_stars>10-100 import { Acl, Model, Schema } from '@contember/schema' import { SchemaUpdateError } from '../exceptions' import { isDefined } from '../../utils/isDefined' import { isInverseRelation, isOwningRelation, isRelation, PredicateDefinitionProcessor } from '@contember/schema-utils' import { VERSION_ACL_PATCH, ...
import { ESCAPE, UP_ARROW } from '@angular/cdk/keycodes'; import { Overlay, OverlayConfig, OverlayRef, ScrollStrategy } from '@angular/cdk/overlay'; import { ComponentPortal } from '@angular/cdk/portal'; import { DOCUMENT } from '@angular/common'; import { ChangeDetectionStrategy, Component, ComponentRef, Event...
import React, { useEffect } from "react"; import Menu from "@material-ui/core/Menu"; import MenuItem from "@material-ui/core/MenuItem"; import { connect } from 'react-redux'; import actions from "redux/actions/brickActions"; import { User } from "model/user"; import { PageEnum } from "./PageHeadWithMenu"; import { cl...
import { AnimatePresence, motion, useAnimation, useViewportScroll, } from "framer-motion" import React, { useContext, useEffect, useRef } from "react" import { useState } from "react" import { useTranslation } from "react-i18next" import usePageContent from "src/hooks/usePageContent" import { ThemeContext, useT...
<gh_stars>0 import * as loadBalancerLib from './loadbalancer'; import * as co from 'co'; import * as _ from 'lodash'; import { EventEmitter } from 'events'; import * as retry from 'async-retry'; import { Logger } from 'winston'; import { createLogger } from '@restorecommerce/logger'; import * as grpc from './transport/...
import net from 'net'; import http from 'http'; import https from 'https'; import { Duplex } from 'stream'; import { EventEmitter } from 'events'; import createDebug from 'debug'; import promisify from './promisify'; const debug = createDebug('agent-base'); function isAgent(v: any): v is createAgent.AgentLike { retu...
<reponame>ztrank/package-installer import { Observable, from, of } from 'rxjs'; import { injectable, inject } from 'inversify'; import { mergeMap, map, concatMap, reduce, catchError } from 'rxjs/operators'; import { Symbols } from '../symbols'; import { Downloader } from '../interfaces/Downloader'; import { Settings } ...
<reponame>olzzon/tv-automation-server-core-integration<filename>src/lib/ddpConnector.ts let DDP = require('ddp') import { EventEmitter } from 'events' export interface DDPConnectorOptions { host: string port: number path?: string ssl?: boolean debug?: boolean autoReconnect?: boolean // default: true autoReconn...
import * as https from 'https'; import * as http from 'http'; import * as uuid from 'uuid'; import * as fs from 'fs'; import fetch from 'node-fetch'; import { Document } from 'mongoose'; import { ObjectId } from 'bson'; import ReportJSON from './report-json'; import { ThreatFeedParser } from './threat-feed-parser'; im...
import { Button, Checkbox, CircularProgress, FormControl, ListItemText, makeStyles, MenuItem, Paper, Select, TextField, Tooltip, Typography, withStyles, } from "@material-ui/core"; import { ToggleButton, ToggleButtonGroup } from "@material-ui/lab"; import { useCallback, useMemo, useState } fro...
/** * Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
import { flatten, isEmpty, keyBy, mapValues, some } from 'lodash'; import { types as CollectiveTypes } from '../constants/collectives'; import models, { Op, sequelize } from '../models'; import { MigrationLogType } from '../models/MigrationLog'; import { DEFAULT_GUEST_NAME } from './guest-accounts'; const countEntit...
/* eslint-disable react-native/no-raw-text */ /* eslint-disable react/no-unescaped-entities */ import React, { useState } from 'react'; import { Keyboard, StyleSheet, View } from 'react-native'; import { connect } from 'react-redux'; import { Button, CheckBox, EllipsisText, InputItem, LinearGradient, Radio...
import * as queryString from 'query-string'; import * as React from 'react'; import wikitreeLogo from './wikitree.png'; import {analyticsEvent} from '../util/analytics'; import {FormattedMessage, injectIntl, WrappedComponentProps} from 'react-intl'; import {getLoggedInUserName} from '../datasource/wikitree'; import {Me...
import {Component, OnInit, ViewChild} from '@angular/core'; import {MatDialog} from '@angular/material/dialog'; import {MatPaginator} from '@angular/material/paginator'; import {MatSort} from '@angular/material/sort'; import {MatTableDataSource} from '@angular/material/table'; import {ApiService} from '../../../core/ap...
<filename>src/extension/panelControllers/invokeFilePanelController.ts import * as fs from "fs"; import * as path from "path"; import * as vscode from "vscode"; import ActiveConnection from "../activeConnection"; import AutoComplete from "../autoComplete"; import AutoCompleteData from "../../shared/autoCompleteData"; i...
import React, { FC } from 'react'; import { observer } from 'mobx-react-lite'; import { useContextMenuForm, createMenuOptionGroup, useMenuOptionUI, useNode, ContentNode, NodeProvider, useEditContext, useGetter, } from '@bodiless/core'; import type { OptionGroupDefinition } from '@bodiless/core'; import ...
import _ from 'lodash'; import React, {PureComponent} from 'react'; import { PanResponder, PanResponderInstance, GestureResponderEvent, PanResponderGestureState } from 'react-native'; import asPanViewConsumer from './asPanViewConsumer'; import PanningProvider, { PanningDirections, PanDirectionsProps, PanA...
import * as path from 'path'; import { workspace, ExtensionContext, ProviderResult} from 'vscode'; import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from 'vscode-languageclient'; import * as vscode from 'vscode'; let client: LanguageClient; let context: ExtensionContext; export func...
/// <reference path="../../common/Define.d.ts" /> import * as WebSocket from "ws"; import * as repl from "repl"; import * as https from "https"; import * as fs from "fs"; interface ConnectInfo extends ConnectCmdData { ip: string; port: number; useProxy: true; } const enum Constant { ProjectName = "WD...
<filename>src/core/Interpreter.ts<gh_stars>1-10 import binarySearch from "binarysearch"; // External library for laziness (and performance) import { Map as ImmutableMap } from "immutable"; import { ReducerAction } from "../types"; import { ioReducer, IOStream } from "./IOStream"; // Homemade Immutable List just for fu...
<reponame>mempool-space/mempool.space import { Component, ElementRef, ViewChild, HostListener, Input, Output, EventEmitter, NgZone, AfterViewInit, OnDestroy } from '@angular/core'; import { MempoolBlockDelta, TransactionStripped } from 'src/app/interfaces/websocket.interface'; import { WebsocketService } from 'src/app/...
<reponame>okikio/bundle import { animate } from "@okikio/animate"; import { EventEmitter } from "@okikio/emitter"; import { debounce } from "./util/debounce"; import { ResultEvents, renderComponent, setState } from "./components/SearchResults"; import { hit } from "countapi-js"; import { decode, encode } ...
import "source-map-support/register"; // tslint:disable-line:no-import-side-effect import { assertNever } from "assert-never"; import * as fs from "fs"; import * as path from "path"; import * as ts from "typescript"; import { ColTypesFormat, defaultColTypesFormat, loadConfigFile, sqlUniqueTypeName, UniqueTableColumnTy...
/** @format */ import { block } from './blockRules' import { edit, noop } from './utils' /* eslint-disable no-useless-escape */ /** * Inline-Level Grammar */ const inline: Record<string, { exec(str: string): RegExpExecArray | null }> = { escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, autolink: /^<(sch...
import React, { Component } from 'react'; //import PropTypes from 'prop-types'; /** * @typedef {Object.<string, TReactCSSThemrTheme>} TReactCSSThemrTheme */ /** * @typedef {{}} TReactCSSThemrOptions * @property {String|Boolean} [composeTheme=COMPOSE_DEEPLY] */ const COMPOSE_DEEPLY = 'deeply'; const COMPOSE_SOFT...
import crypto from 'crypto' import { AxiosError } from 'axios' import { debugLog } from './debugLog' import { APIClient } from './APIClient' import { Bundle } from './Bundle' import { Bundler } from './Bundler' import { Application, ClientTaskResponse, ListApplicationsResponse } from './api-types' import { Application...
import { orderBy } from 'lodash' import { toAst } from './actions-visitor' import { operators } from './operators' import { Conditions, Field, From, Func, Operand, Operation, SQLTree, Where } from './SqlTree' import * as utils from './utils' export const computePath = (path: (string | number)[] | undefined, allowedSo...
<gh_stars>1-10 import { Message } from "discord.js"; import { BaseCommandClass } from "../../BaseCommand/BaseCommand"; import { MatchMode } from "../../BaseCommand/BaseCommandTypes"; import { getInhouseFighterRoleId } from "../../channels/channels"; import { GameModesType, getActiveGameModes, getModeChosen } from "../....
// Libraries import _ from 'lodash'; import React, { Component, ReactElement } from 'react'; import { SortDirectionType, SortIndicator, MultiGrid, CellMeasurerCache, CellMeasurer, GridCellProps, Index, } from 'react-virtualized'; import { Themeable } from '../../types/theme'; import { stringToJsRegex, ...
<gh_stars>100-1000 import { exit } from "../../lib/process"; import { Argv } from "yargs"; import { initCore } from "../../lib/core"; import { BaseArgs } from "../../types"; import { authz, graphTypes } from "@core/lib/graph"; import { getChangesetForVersion, getChangesets, getEnvWithMetaForVersion, getLatestVe...
import { EntityDataProvider, EntityDataProviderFindOptions, DataProvider } from "../data-interfaces"; import { SqlCommand, SqlImplementation, SqlResult } from "../sql-command"; import { CompoundIdField } from "../column"; import { CustomSqlFilterBuilderFunction, CustomSqlFilterObject, FilterConsumerBridgeToSqlRequest...
import 'element-scroll-polyfill'; import { formatDateTime, stringToDate } from './src/DateTimeInput/helpers'; import { bindFunctionalRef, bytesSizeToUnitsSize, generateId, getClassNames, getSizeInBytes, getWordEnding, scrollIntoView, useElement, useElementRef, useInterval, useProps, useValue, }...
import Vue, { ComponentOptions } from 'vue'; import rivenMap from '../data/riven-map'; function isCompat(itemType: number, rivenType: string) { return !rivenType || (rivenType === 'Projectile' && itemType < 2) || (rivenType === 'Melee' && itemType === 2); } const statTypes: { name: string, p: st...
<reponame>ArnaudVanHerck/slickgrid-universal import { getHtmlElementOffset, GetSlickEventType, GridOption, GridSize, PubSubService, SlickEventData, SlickEventHandler, SlickGrid, SlickNamespace, SlickResizer, } from '@slickgrid-universal/common'; // using external non-typed js libraries declare cons...
import * as Phaser from 'phaser'; import { Duck, DuckType } from './duck'; import { Food } from './food'; import { TARGET_WIDTH } from './gameRunner'; import { GameState } from './gameState'; import { Nest } from './nest'; import { randomInt } from './utils'; const ZOOM_LEVEL = 0.4; export class GameScene extends Ph...
import React, { useState, useCallback, useRef } from 'react'; import clsx from 'clsx'; import { LocationDescriptorObject } from 'history'; import PlusIcon from '@resources/svg/plus.svg'; import { useSelector } from 'react-redux'; import { Account, CredentialNumberPrfKey, TransactionFilter, } from '~/utils/t...
<reponame>prigaux/compte-externe<filename>server/tests/test_ldap.ts<gh_stars>0 'use strict'; import * as _ from 'lodash'; import { parseDN } from 'ldapjs'; import * as conf from '../conf'; import * as ldap from '../ldap'; import * as ldap_convert from '../ldap_convert'; type entry = Dictionary<any> type params = Dic...
<reponame>HikaruEgashira/search-with-qiita import * as vscode from 'vscode'; // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import {window, workspace, commands, ExtensionContext, EventEmitter,TextDocumentContentProvider, Uri,...
import React, { useState, useEffect, useLayoutEffect, useMemo } from "react"; import { OrgComponent } from "@ui_types"; import { Api, Client, Model, Rbac } from "@core/types"; import * as g from "@core/lib/graph"; import * as R from "ramda"; import { pick } from "@core/lib/utils/pick"; import { getEnvParentPath } from ...
<filename>src/client/clientGame.ts<gh_stars>0 import * as THREE from 'three'; import { ClientNoiseWorld } from './clientNoiseWorld'; import { ClientMainPlayer, ClientPlayer } from './clientPlayer'; import { ThirdPersonCamera } from './thirdPersonCamera'; import * as io from 'socket.io-client'; import { ClientDataReques...
<gh_stars>0 import * as three from 'three'; import { CSS2DRenderer, CSS2DObject, } from 'three/examples/jsm/renderers/CSS2DRenderer.js'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; import { AnimationAction } from 'three'; const OFFSET = 10; const WIDTH = 6; const HEIGHT = 4; const...
<filename>src/lib/CustomRulePathManager.ts import path = require('path'); import {Logger, SfdxError} from '@salesforce/core'; import {injectable, injectAll} from 'tsyringe'; import {CUSTOM_PATHS_FILE, SFDX_SCANNER_PATH} from '../Constants'; import {RulePathManager} from './RulePathManager'; import {RuleEngine} from './...
import {Query} from "./generated/Query_pb"; import {Ed25519PrivateKey, Ed25519PublicKey} from "./Keys"; import {grpc} from "@improbable-eng/grpc-web"; import {CryptoGetAccountBalanceQuery} from "./generated/CryptoGetAccountBalance_pb"; import {QueryHeader} from "./generated/QueryHeader_pb"; import { getProtoAcco...
<filename>willsCheatMenu/src/hacks/pets.ts<gh_stars>0 // @ts-nocheck import { Swal, Toast, NumberInput, Input } from "../utils/swal"; import { Hack, category } from "../index"; import { VERY_LARGE_NUMBER, gameData, pickRandom } from "../utils/util"; import { TODO } from "../../../typings/util"; import { prodigy, game }...
<filename>graphql-api/app.ts import * as fs from 'fs' import * as _ from 'lodash' import * as AWS from 'aws-sdk' import * as neo4j from 'neo4j-driver' import { makeAugmentedSchema, neo4jgraphql } from 'neo4j-graphql-js' import { Config, decorateWithLogger } from 'apollo-server' import { ApolloServer } from 'apollo-ser...
import { action, computed, IKeyValueMap, IMapEntries, observable, ObservableMap, reaction, } from "mobx"; import { v4 } from "uuid"; import { SourceDirectory } from "../codegen/file-system"; import { NodeModel, NodeData, ConnModel, ConnectionData, } from "../node/node-model"; import { downloadToCl...
<reponame>robertmeisner/atom-jobs import { AtomDBAdapter } from "./AtomDBAdapter"; import { AtomJob, AtomJobStatus } from "./AtomJob"; import { AtomSchedulerError } from "./AtomSchedulerError"; import { AtomSchedulerEvent, IAtomEvent } from "./AtomEvent"; var crypto = require('crypto'); export class AtomSchedule...
import calculateStats from 'sim/Stats'; import { MutableDistribution } from 'util/Distribution'; import mulberry32 from 'util/mulberry32'; import { exportedForTesting } from './expressionUtils'; import { parseSimExpr } from 'sim/parse'; import SimState from 'sim/SimState'; const RandomTestSeed = 13649713898; // Do not...
/* file : bgp-stage-builder.ts MIT License Copyright (c) 2018-2020 <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...
import React, { forwardRef, useState } from 'react'; import { DragDropContext } from 'react-beautiful-dnd'; import Column from './Column'; import ColumnAdder from './ColumnAdder'; import DefaultCard from './DefaultCard'; import DefaultColumnHeader from './DefaultColumnHeader'; import * as helpers from './helpers'; impo...
import React, { Fragment, useState, useEffect } from "react"; import { Modal, Row, Col } from "react-bootstrap"; import classNames from "classnames"; import { Tooltip } from "@material-ui/core"; import { API } from "aws-amplify"; import strings from "localization"; import loader from "Assets/Images/loader.gif"; impor...
import { Construct } from "constructs"; import ts from "typescript"; import { Expr } from "./expression"; import { isArrayLiteralExpr, isBinaryExpr, isBooleanLiteralExpr, isComputedPropertyNameExpr, isForInStmt, isForOfStmt, isFunctionDecl, isFunctionExpr, isIdentifier, isNullLiteralExpr, isNumber...
/* -------- * Default React Bucket Types Explained * All default React Bucket Component Interface * will accept any other props passed to component. * This Types must be used to declared the StrictComponentInterface * * - MinimalReactBucketComponentProps<P, E> * Has all props of element E and in addition ...
/* * ts-common is the basic building blocks of our typescript projects * * Copyright (C) 2020 Intuition Robotics * * 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.ap...
import React, { ReactElement, ChangeEvent, useState, useEffect } from "react"; import { useStore } from "react-redux"; import { Link } from "react-router-dom"; import { TFunction, useTranslation } from "react-i18next"; import moment from "moment"; import styled from "styled-components"; import { AllGamesList } from "cl...
// Copyright 2019 <NAME> // // 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 wr...
<reponame>LuceCarter/p4nth3rb0t-mainframe<filename>src/events/messages.ts import { tmi } from "./../tmi"; import WebSocketServer from "../WebSocketServer"; import { ChatUserstate } from "tmi.js"; import { config } from "../config"; import { getCommandFromMessage, ChatCommands, BroadcasterCommands, ExclusiveComm...
/* global Set */ // eslint-disable-next-line no-unused-vars import { RouteComponentProps } from 'react-router'; import { Redirect, Link } from 'react-router-dom'; // eslint-disable-next-line no-unused-vars import { rootType } from '../redux/reducers'; import { connect } from 'react-redux'; import React from 'r...
<gh_stars>1-10 import { apiRequest, capitalize, format, formatArray } from '../../utils'; import { MdStatuses, MdStatusesTypeEn, MdStatusesTypePt, MdContentRating, MdDemographics, MdGenres, MdGenresIdType, MdGenresLabelTypeEn, MdGenresLabelTypePt, MdLanguagesType, MdLanguagesTwoLettersType, MdRelationshipTy...
<filename>src/gfx/GfxTypes.ts // ------------------------------------------------------------------------------- // Notes: Custom constants that are graphics API agnostic. All rendering is done // using these, and they are converted to the correspoinding API-specific // constants in the renderer implemen...
<reponame>PaulTFreedman/angular /** * @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 {AotCompilerOptions, AotSummaryResolver, CompileMetadataResolver, CompilerCon...
import { Component, ComponentInterface, h, Prop, Method, Element, Watch, State, Event, EventEmitter, Host } from '@stencil/core'; export interface Option { value: any; label: string; disabled?: boolean; selected?: boolean; } /** * @name Select * @state 🟡 * @description handle single ...
<gh_stars>0 import { FormulaParser, Sheet, CellRange, Functions, ParseResults, CellPosition, SheetConfig, } from "./parser"; import { Dag, Node, DependencyMapping } from "./graph"; import { cellToAddress, isNull, createPosition, detectDataType, castToString, log, } from "./helpers"; import mer...
/// <reference types="node" /> import { Backup } from '../../../../../yandex/cloud/mdb/mongodb/v1/backup'; import { Operation } from '../../../../../yandex/cloud/operation/operation'; import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptio...
/** * Copyright 2019, SumUp 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 agreed to in wri...
import { useReactiveVar } from '@apollo/client' import { Skeleton, Spin } from 'antd' import React, { useState } from 'react' import { Link } from 'react-router-dom' import styled from 'styled-components' import notFound from '../../../assets/notfound.svg' import { getFeatureToggleByChainId } from '../../../featureTogg...
<reponame>verida/verida-js<gh_stars>1-10 import AuthClient from "./auth-client"; // @ts-ignore import Sora from "./assets/fonts/Sora-Regular.ttf"; import { AuthClientConfig, VaultAccountConfig } from "./interfaces"; const _ = require("lodash"); const store = require("store"); const VERIDA_AUTH_CONTEXT = "_verida_aut...
/* Copyright (c) 2014-2016 <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 conditio...
import { useEffect, useState } from "react"; import { discordId, Presence } from "../types/types"; import { EventType, Operation, SocketEvent } from "../types/event"; const Spotify = ({}: { setActive: (active: boolean) => void } & any) => { const [socket, setSocket] = useState<WebSocket | null>(null); const [doin...
// Imports import fs from 'fs'; import path from 'path'; import chalk from './chalk.js'; import { PrintableError } from './errors.js'; import { ExcludeMe, OmitExcludeMeProperties } from '../types/exclude-matching-properties.js'; import getContext from './get-context.js'; // Define what command input looks like export ...
<filename>src/main.ts import * as core from '@actions/core' import * as github from '@actions/github' import {context} from '@actions/github/lib/utils' import {checkBody, checkTitle, checkBranch} from './checks' type PullRequestReview = { id: number node_id: string user: { login: string id: number no...
import path from 'path' import Debug from 'debug' import fs from 'fs-extra' import imageSize from 'probe-image-size' import Vibrant from 'node-vibrant' import sharp from 'sharp' import termimg from 'term-img' import Table from 'cli-table3' import chalk from 'chalk' import { Palette } from '@vibrant/color' import { Op...
import { faBook, faCheckCircle, faDownload, faQuestionCircle, faTimesCircle, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Button, Column, Columns, Container, Content, Hero, HeroBody, Section, Subtitle, Table, Title...
<gh_stars>0 import {AfterViewInit, ChangeDetectorRef, Component, OnInit, ViewContainerRef} from '@angular/core'; import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms'; import {Property} from './property'; import {Inquiry} from './inquiry/inquiry'; import {PropertyService} from './property.servi...
<reponame>jkunimune15/dunhamar<gh_stars>1-10 /** * MIT License * * Copyright (c) 2021 <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 li...
import { DefinitionsResolver } from "../DefinitionsResolver"; import openAPI from "./mock-data/openAPI.json"; describe("DefinitionsResolver", () => { it("should generate correct definitions", () => { expect(DefinitionsResolver.of((openAPI as any).components).scanDefinitions().resolvedDefinitions).toEqual( ...
import { Command } from "../base/Command"; import Discord from "discord.js"; import Client from "../base/Client"; import ytsr from "ytsr"; import ytpl from "ytpl"; import ytdl from "ytdl-core"; const PlayCommand = new Command({ name: "play", alias: ["p"], usage: "<song name>", description: "Play some m...