text
stringlengths
3.3k
33k
<filename>src/mock_datas/teamBasic/teamBasicWestern/team_basic_por.ts<gh_stars>1-10 const team_basic_por = { "resource": "commonteamroster", "parameters": { "TeamID": 1610612757, "LeagueID": "00", "Season": "2017-18" }, "resultSets": [{ "name": "CommonTeamRoster", "headers": ["TeamID", "SEASON", "LeagueI...
<reponame>BLCKBOOK/BLCKBOOK<gh_stars>0 import {Component, ElementRef, OnInit, ViewChild} from '@angular/core'; import {ImageUploadService} from '../../services/image-upload.service'; import {AcceptedMimeTypes, ImageUpload, originalImageKey} from '../../types/image.type'; import {findIconDefinition} from '@fortawesome/f...
import React, { useEffect, useState, useMemo, useContext } from 'react' import { Container, Box, Button, Typography, Stepper, Step, StepLabel } from '@material-ui/core' import { Context, EnrichedPostageBatch } from '../../providers/Stamps' import { beeApi } from '../../services/bee' import { useSnackbar } from 'notista...
import fs from 'fs' import path from 'path' import { StringDecoder } from 'string_decoder' import remarkFrontmatter from 'remark-frontmatter' import { remarkMdxFrontmatter } from 'remark-mdx-frontmatter' import matter from 'gray-matter' import * as esbuild from 'esbuild' import type { Plugin, BuildOptions, Loader } fro...
import React, { useState, useEffect, useCallback, useRef } from "react"; import Tweet from "../../commons/models/tweet"; import TwitterService from "../../commons/services/twitterService"; import TweetArc from "../../components/tweetArc/tweetArc"; import TweetTree from "../tweetTree/tweetTree"; import {regenTrees, genT...
import * as _ from 'lodash'; import { fork, ChildProcess } from 'child_process'; import * as path from 'path'; import { Problem, Severity } from '@hint/utils-types'; import { getHintsFromConfiguration, HintConfig, HintsConfigObject } from '@hint/utils'; import { debug as d, generateLog, Hint, HintStatu...
<reponame>schirkan/dynamic-electron-react-module-loader import { ICommandResult, IFieldDefinition, IReactronService, IReactronServiceDefinition, IServiceManager, IServiceRepositoryItem, IReactronServiceContext } from '@schirkan/reactron-interfaces'; import { command } from './commandResultWrapper'; import { ModuleRepos...
import { createNamespace } from '@line-ui/line/src/utils/namespace'; import { createGesture, GestureDetail } from '@line-ui/line/src/utils/gesture'; const { createComponent, bem } = /*#__PURE__*/ createNamespace('picker-column'); const clamp = (min: number, n: number, max: number) => { return Math.max(min, Math.min...
export interface EditorConfig { /** * The html target element. */ container?: string; plugins?: any[]; pluginsOpts?: {[p: string]: any}; autorender?: boolean; // Style prefix stylePrefix?: string; // HTML string or object of components components?: string; // CSS string or object of rules ...
import getAppAlerts from 'front-end/lib/app/alerts'; import { Msg, Route, SharedState, State } from 'front-end/lib/app/types'; import { Dispatch, emptyPageAlerts, emptyPageBreadcrumbs, GlobalComponentMsg, Immutable, mapAppDispatch, mapPageAlerts, mapPageBreadcrumbsMsg, mergePageAlerts, newRoute, PageAlert, PageAlerts, ...
import { Fragment, Mark, Node as ProsemirrorNode, NodeType, Schema } from 'prosemirror-model'; import { GenericNode, select, selectAll, remove } from 'mystjs'; import { FlowContent, FootnoteDefinition, FootnoteReference, Root, InlineFootnote, } from '../../spec'; import { getSchema, UseSchema } from '../../sc...
import React, { useContext, useEffect, useMemo, useState } from 'react'; import { connect } from 'react-redux'; import { useParams } from 'react-router-dom'; import { SearchOutlined, SwapRightOutlined } from '@ant-design/icons'; import { Button, Col, message, Row, Select, Spin, TreeSelect } from 'antd'; import _ from ...
<filename>src/lib/util.ts<gh_stars>0 import * as rq from 'request'; import * as Discord from 'discord.js'; import * as foxconsole from './foxconsole'; import * as fs from 'fs'; const cache = { 'splatoon': { timer: new Date(0), data: {} }, 'salmon': { timer: new Date(0), data: {} } }; export function progr...
import * as board_mode from "./board_mode.js"; import * as html from "./html.js"; import * as sudoku from "./sudoku.js"; import * as vector from "./vector.js"; import { possibleWaysToSumCage } from "./strategies/cages.js"; const CAGE_OFFSET = 0.1; export class Cages extends board_mode.SupportsConstruction<sudoku.Cage...
import * as PatternProperty from './pattern-property'; import * as SerializedModel from './serialized-model'; import * as UserStore from './user-store'; import * as Ts from 'typescript'; export enum AppState { Starting = 'starting', Started = 'started' } export enum PatternType { Pattern = 'pattern', SyntheticBox...
<filename>src/actions/checkBalance.ts import chalk from "chalk"; import * as display from "../display"; import { Address } from "../models/address"; import { OwnAddresses } from "../models/ownAddresses"; import { ScanLimits } from "../models/scanLimits"; import { configuration } from "../configuration/settings"; impo...
import * as swr from 'swr'; import * as ctx from '@hubbl/data-access/contexts'; import { AppProvider, LoadingContext, ToastContext } from '@hubbl/data-access/contexts'; import { createTheme, ThemeProvider } from '@mui/material'; import { act, fireEvent, render, screen } from '@testing-library/react'; import user...
<gh_stars>1-10 import * as vscode from 'vscode' import { ProgressLocation, window } from "vscode"; import { Sandbox } from './models'; import { ProfilesManager } from './profilesManager'; import { getNonce } from './utils' function getWebviewOptions(extensionUri: vscode.Uri): vscode.WebviewOptions { return { ...
import { RecommendationDTO } from './dtos/recommendation.dto'; import { IRecommendation } from './models/recommendation'; import { IAddress, IChannel, IChannelUrl, IPhoneNumber, IChannelDescription, } from './models/channel'; import { Language, LangStringList } from './types'; import { AddressDTO, Channel...
<reponame>adiazulay/vscode-circuitpython import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; import * as axios from 'axios'; import * as unzip from 'unzipper'; import { String } from 'typescript-string-operations'; import * as _ from 'lodash'; import { Library } from './library'; i...
<reponame>citizensadvice/field-editors import { Link } from '@contentful/field-editor-reference/dist/types'; import { BLOCKS, INLINES } from '@contentful/rich-text-types'; import { EditorNodesOptions, getText, PlateEditor, toggleNodeType, ToggleNodeTypeOptions, } from '@udecode/plate-core'; import { Text, Edi...
import { IUserInfo, ITorrent, ISiteMetadata } from '@/shared/types' import PrivateSite from '../schema/AbstractPrivateSite'; import { AxiosResponse } from 'axios'; import { parseSizeString, parseTimeWithZone } from '@/shared/filter'; import dayjs from '@/shared/dayjs'; import Sizzle from 'sizzle'; /** * @refs: https:...
import { spawn, ChildProcessWithoutNullStreams, execSync } from 'child_process'; import fs from 'fs/promises'; import chalk from 'chalk'; import mqtt from 'async-mqtt'; import db, { queryService, ServiceEntry, ServiceSelection } from './db'; import { env as getEnv, util, ConfigMessage, Subscription, ...
import * as ts from 'typescript'; export default function transformer(program: ts.Program): ts.TransformerFactory<ts.SourceFile> { return (context: ts.TransformationContext) => (file: ts.SourceFile) => visitNodeAndChildren(file, program, context); } function visitNodeAndChildren( node: ts.SourceFile, pr...
import { communicationService, eventsRepository, TrackingBidDefinition, UapLoadStatus, } from '@ad-engine/communication'; import { AdSlot, context, DEFAULT_MAX_DELAY, DEFAULT_MIN_DELAY, Dictionary, pbjsFactory, Tcf, tcf, utils, } from '@ad-engine/core'; import { getSlotNameByBidderAlias } from '../alias-he...
import React, { useContext, useEffect, useState } from 'react'; import { Typography, Button, Popover, Tooltip, List, ListItem, ListItemText, ListItemIcon, IconButton, TextField, } from '@material-ui/core'; import { green } from '@material-ui/core/colors'; import { css } from '@emotion/css'; import {...
import { dayjsToDate } from '../utils/dato-utils' import { TagTyper } from './enums' import { RSArbeidssituasjon } from './rs-types/rs-arbeidssituasjon' import { RSMerknad } from './rs-types/rs-merknad' import { RSSoknad } from './rs-types/rs-soknad' import { RSSoknadsperiode } from './rs-types/rs-soknadsperiode' impor...
<filename>src/datatypes/attributeInfo.ts<gh_stars>0 /* * Copyright 2012-2015 Metamarkets Group Inc. * Copyright 2015-2016 Imply Data, 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 a...
import { useState, useEffect, useCallback } from 'react'; import { useHistory, useLocation, useRouteMatch, Switch, Route, Prompt } from 'react-router-dom'; import type { EventInput } from '@fullcalendar/react'; import { DateTime } from 'luxon'; import { useGetLocationsQuery, us...
import { Class, logger, obj_extend, is_Function, is_Array, is_Object, obj_extendDefaults } from '../dependency' import { NotFoundError, SecurityError, RequestError } from '../HttpError/HttpError' import { secure_canAccess, service_validateArgs } from './utils' import { Barricade } from './Barricade' import { class_Dfr ...
/* ***** Lesson 1 */ type Fun<a,b> = { f: (i:a) =>b then:<c>(i:Fun<b,c>) => Fun<a,c>, repeat:()=> Fun<number, Fun<a,a>>, repeatUntil:(g:Fun<a,boolean>)=> Fun<Fun<a,boolean>,Fun<a,a>> } let Id = <a>() : Fun<a,a> => Fun(x=>x) let repeat = function<a>(f: Fun<a,a>, n:number) : Fun<a,a>{ i...
<gh_stars>1-10 export enum CountryKeys { afghanistan = "afghanistan", aland_islands = "aland_islands", albania = "albania", algeria = "algeria", american_samoa = "american_samoa", andorra = "andorra", angola = "angola", anguilla = "anguilla", antarctica = "antarctica", antigua_barbuda = "antigua_bar...
import {Command } from 'commander'; import * as commander from 'commander'; import * as yaml from 'yaml'; import fetch from 'cross-fetch'; import { LCDClient, MsgExecuteContract, Coins, StdSignMsg, StdFee } from '@terra-money/terra.js'; import { AddressMap, AddressProviderFromJson, fabricateAirdropClai...
import React, { HTMLAttributes, ReactNode, useCallback, useMemo, useRef } from 'react'; import classnames from 'classnames'; import Checkbox from 'src/components/Checkbox'; import useLocale from 'src/components/LocaleProvider/useLocale'; import { CollapseProps, useCollapse } from 'src/components/Collapse/hooks'; impor...
import { data } from 'src/data'; import mod from 'src/data/1.1/data.json'; import hash from 'src/data/1.1/hash.json'; import i18n from 'src/data/1.1/i18n/zh.json'; import { Entities, Game, ItemSettings, Link, LinkValue, MatrixResult, MatrixResultType, Mod as _Mod, ModData, ModHash, ModI18n, Node...
// TODO edit-modes: delete handlers once EditMode fully implemented import turfUnion from '@turf/union'; import turfDifference from '@turf/difference'; import turfIntersect from '@turf/intersect'; import { ImmutableFeatureCollection, FeatureCollection, Feature, Polygon, Geometry, Position, } from '@nebula...
import React, { createRef, PureComponent, RefObject, Fragment } from 'react' import cc from 'classcat' import Badge from 'badge' export enum TabStatus { SCROLLABLE = 'scrollable', FIXED = 'fixed', } export interface Tab { readonly id: string readonly label: string readonly icon?: React.ReactElement<Icon> ...
<reponame>cBioCenter/chell-viz-contact // ~bb-viz~ // Seq // Provides useful encapsulation of a biological sequence, including conversion and mapping functions. // ~bb-viz~ import { ambiguousDnaComplement, ambiguousRnaComplement, CodonTable, proteinLetters, standardDnaCodonTable, standardRnaCodonTable, u...
<filename>src/index.ts import {treatedAll} from './common' import * as Geom from './geom' import * as Pointcloud from './pointcloud' import * as Floorplan from './floorplan' import * as Walk from './walk' import * as Render from './render' import * as Random from 'random-js' type MeshType = "Delaunay Pointcloud"|"Thin...
import { SceneBase } from "./scene-base"; import * as GameMath from "../../libs/math"; enum Jump { Jumping, // not on line NotJumping // on line } export class GameScene extends SceneBase { private gameLoop = 0; //private gameLoopPlayerLocations = []; private message; private pla...
<reponame>TheAkio/ytls /* * Copyright 2018 TheAkio <<EMAIL>> * * 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...
/* 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 writing, software distributed under the License i...
'use strict'; import { ManagedUpload } from 'aws-sdk/clients/s3'; import { RequestHandler } from 'express'; import { Operation } from 'express-openapi'; import { SQLStatement } from 'sql-template-strings'; import { WRITE_ROLES } from '../constants/misc'; import { getDBConnection } from '../database/db'; import { Activ...
<reponame>day-jeff/Einstein<gh_stars>1-10 import * as readline from 'readline'; import { Readable } from 'stream'; import { CLI, CLIMain } from '../cli'; import { World } from '../cloud'; import { StdoutCapture } from '../utilities'; import { cdCommand } from './cd'; import { CloudMain } from './cloud'; import { im...
<gh_stars>0 import { ethers, BigNumber } from 'ethers' import { gtcrDecode } from '@kleros/gtcr-encoder' import { LogDescription } from 'ethers/lib/utils' import fetch from 'cross-fetch' import { abi as _gtcrABI } from '@kleros/tcr/build/contracts/GeneralizedTCR.json' import { abi as _gtcrViewABI } from '@kleros/tcr/bu...
<gh_stars>10-100 /// <reference path="../typings/index.d.ts" /> import com from '../common/WorldInfo'; import constants from '../common/Constants'; import Partition from './Partition'; import World from './World'; import { Loader } from './Geometry/Loader'; const VERTICES_PER_FACE = 6; const VALUES_PER_VBLOCK = 7; co...
import { LogLevel } from "@/ipc/log"; import api from "@/ipc/api"; import { GameResult, Player } from "@/players/player"; import { humanPlayer } from "@/players/human"; import { USIPlayer } from "@/players/usi"; import { defaultGameSetting, GameSetting, PlayerSetting, } from "@/settings/game"; import { Color, Imm...
/// <reference path="../dts/globals.d.ts" import { BaseComponent } from './base-component'; import { funcAsComponentClass } from './functional-component'; import { Utils } from './utils'; import { ButtonProps } from '@material-ui/core/Button'; import { i18n, icon } from './shared-vars'; import { Spinner } from './...
<gh_stars>1-10 import { Message, MessageEmbed, MessageReaction, User, PermissionString, Guild, GuildChannel, TextChannel } from "discord.js"; import { GuildStructure, ChannelStructure, RoleStructure, EmojiStructure } from "./structures"; import * as bent from 'bent'; import * as fs from 'fs'; const getString = bent('st...
<reponame>Asvel/megaten-fusion-tool import { Component, ChangeDetectionStrategy, Input, OnInit, OnChanges, OnDestroy } from '@angular/core'; import { FormGroup, FormBuilder } from '@angular/forms'; import { Title } from '@angular/platform-browser'; import { Subscription } from 'rxjs'; import { Demon, Skill, DecodedDem...
<reponame>kwsoft/webpack-angular-translate import * as types from "ast-types"; import { CallExpression, Literal, ArrayExpression, ObjectExpression, Identifier, Node, MemberExpression } from "estree"; import Translation from "../translation"; import TranslateLoaderContext from "../translate-loader-context"...
export const reservedKeywords = [ "ALL", "AND", "ANY", "ARRAY", "AS", "ASC", "ASSERT_ROWS_MODIFIED", "AT", "BETWEEN", "BY", "CASE", "CAST", "COLLATE", "CONTAINS", "CREATE", "CROSS", "CUBE", "CURRENT", "DEFAULT", "DEFINE", "DESC", "DISTINCT", "ELSE", "END", "ENUM", "ES...
<filename>src/forest/method/list.ts import { Store, Event, is, launch, createStore, createEvent, sample, } from 'effector' import type {ListItemType, ListType, LeafDataList, Leaf} from '../index.h' import type {LF} from '../relation.h' import {beginMark, endMark} from '../platform/mark' import { creat...
<reponame>firecraftgaming/binary-structured-objects export type SchemaString = { type: 'string'; }; export type SchemaNumber = { type: 'number'; }; export type SchemaBoolean = { type: 'boolean'; }; export type SchemaTuple = { type: 'tuple'; values: Array<SchemaType>; }; export type SchemaArray = { type: 'a...
<gh_stars>10-100 import uuid from '../util/uuid' import { IPane, IPaneContent, PaneSplitAxis } from './types' import { panesNsCurrentPaneSelector, panesNsPaneSelector, panesNsContentSelector, } from './store' /** * Get a pane by its id and throw if it doesn't exist. */ export const mustGetPane = <Data>( ...
import { EventEmitter } from "events"; import { BasicV1 } from "../commands/classes/BasicV1"; import { SwitchBinaryV1 } from "../commands/classes/SwitchBinaryV1"; import { SwitchMultilevelV1 } from "../commands/classes/SwitchMultilevelV1"; import { Packet } from "../commands/packet"; import { LayerEvent } from "../laye...
<reponame>WaywardGame/types<filename>definitions/game/game/entity/player/IPlayer.d.ts /*! * Copyright 2011-2021 Unlok * https://www.unlok.ca * * Credits & Thanks: * https://www.unlok.ca/credits-thanks/ * * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibi...
/** * React Simple Idle Monitor * * @author <NAME> * */ import React, { createContext, useContext, useReducer, useEffect, useCallback, useRef, useMemo, AllHTMLAttributes, } from 'react'; import PropTypes from 'prop-types'; declare const process: { env: { NODE_ENV: string; }; }; type IdleM...
import { Express } from 'express' import { Story } from 'oma/theater' import { Bundle } from 'oma/system' import { BundleConfiguration, Library, ServantSkeleton, ServiceConfiguration } from 'oma/web' import { DirectoryContents, ReadData } from 'oma/local/filesystem' const { parse, stringify } = JSON const { create, ...
import * as vscodeLogging from '@vscode-logging/logger'; import * as iopath from 'path'; import * as vscode from 'vscode'; import * as cp from 'child_process'; import * as fs from 'fs'; import { ConfigStore } from './config-store'; import { CoverageParser } from './coverage-parser'; import { FilesLoader } from './files...
import {Asset, AssetSearchOptions, AssetSortField, AssetSortType, Category} from "../interfaces/IAsset" import {getEventQueryCSV} from "../api/common/events"; import {search} from "../api/common/elastic"; import {transformAsset} from "../api/assets/asset"; import {APIGatewayProxyEventQueryStringParameters} from "aws-la...
<gh_stars>1-10 //mess with browser please 😂 import { messNative } from './native-override'; //import native please import { Storage } from "@ionic/storage"; import { SplashScreen } from "@ionic-native/splash-screen"; import { StatusBar } from "@ionic-native/status-bar"; import { OSNotificationOpenedResult, OSNotificat...
import React, {FC, Fragment, useMemo, useState, useEffect, useRef, useContext} from 'react'; import { scaleTime, scaleLinear, select, axisBottom, axisLeft, line as d3Line, area as d3Area, } from 'd3'; import {I18nContext} from '../../contexts/I18nContext'; import Bin from './Bin'; import TimeSelector from...
<filename>packages/css/src/types.ts<gh_stars>0 import { StandardProperties } from "./css-types"; export interface IScreens { [key: string]: (css: string) => string; } export interface IAtom { id: string; cssHyphenProp: string; value: string; pseudo: string | undefined; screen: string; _className?: strin...
<filename>src/examples/block-fade/BlockFade.ts import { Color } from '../../core/Color'; import { Utils } from '../../core/Utils'; import { Framebuffer } from '../../Framebuffer'; import RandomNumberGenerator from '../../RandomNumberGenerator'; import { AbstractScene } from '../../scenes/AbstractScene'; import { Textur...
import { FSComponent, DisplayComponent, VNode, ComponentProps } from 'msfssdk'; import { CompositeLogicXMLHost, EventBus, KeyEventData, KeyEvents, KeyInterceptManager } from 'msfssdk/data'; import { Annunciation, AnnunciationType } from 'msfssdk/components/Annunciatons'; import { SoundPublisher } from 'msfssdk/utils/so...
<reponame>zlumer/tesm<filename>src/utils/machine.ts import { SpecificMsg, SpecificState } from "./misc" import { splitApply, simpleFlow } from "../extensions" import { createMsgCreator, ExtractValues, cmd, msg, state } from "../tesm" export const lensSetter = <T, U, V extends T = T>(set: (t: T, u: U) => V) => <SubCmd...
import React from 'react'; import classnames from 'classnames'; import { processProps, RangeProps, SingleRangeProps, MultipleRangeProps, RangeMultipleChangeEvent, COMPONENT, } from '../shared'; import './circular-range.scss'; export type { SingleRangeProps, MultipleRangeProps, RangeMultipleChangeEvent } fr...
import { globalStyle, keyframes, style } from '@vanilla-extract/css'; import { calc } from '@vanilla-extract/css-utils'; import { createAtomicStyles, createAtomsFn } from '@vanilla-extract/sprinkles'; const space = { none: 0, small: '4px', medium: '8px', m: '12px', large: '14px', l: '16px', xl: '28px', }...
<filename>src/helpers/ScriptContentUIHelper.ts import { ISiteScriptContent, ISiteScriptAction, ISiteScript } from "../models/ISiteScript"; import { find, clone } from "@microsoft/sp-lodash-subset"; export interface ISiteScriptActionUIWrapper { $uiKey: string; verb: string; subactions?: ISiteScriptAct...
import * as fs from 'fs'; import { Readable } from 'stream'; import * as zlib from 'zlib'; import { Slicer, Stepper, Caster, createReadableStream, awaitReadableStream, isGzipped } from '../../util'; export enum NiftiDataType { NONE = 'NONE', BINARY = 'BINARY', UINT8 = 'UINT8', INT16 = 'INT16', INT3...
<filename>src/app/dexieDatabase.ts /* * This class defines the tables and DB structure for Dexie DBs */ import { Dashboard } from './models'; import { DashboardTab } from './models'; import { Datasource } from './models'; import { Widget } from './mo...
import { BasePage } from "./base-page"; import { DataSource, DataControlField, CustomField, GridViewCell, GridViewEditableCell, BoundField, GridViewCellControl, createGridView, boundField, BoundFieldParams, dateTimeField, CheckboxListFieldParams, checkboxListField } from "maishu-wuzhui-helper"; import...
import dom = require('./dom'); import gra = require('./grammar'); import pat = require('./pattern'); function checkElement(e1: dom.Element, e2?: dom.Element): void { if (!(e1 instanceof ProxyElement)) throw new Error(); if (e2 && !(e2 instanceof ProxyElement)) throw new Error(); } function pe(e: dom.Element):...
// import { isPlainObject } from "../type"; // // // 这个是最佳做法,存在循环引用的问题 // export function deepClone(obj) { // /** // * 1. 简单对象直接赋值 // * 2. 引用对象新建对象[区分数组和对象] // */ // // // 处理简单值 // if (!isPlainObject(obj)) { // return obj; // } // // 数组初始值为 空数组,对象初始值为空对象 // let ret: Record<string, any> = Array....
<filename>polynote-frontend/polynote/interpreter/vega_interpreter.ts "use strict"; import * as acorn from "acorn" import { Position, KernelReport, CompileErrors, Output, RuntimeError, ClientResult, splitOutput, MIMEClientResult, ResultValue } from "../data/result"; import embed, {Result...
/** * @license * Copyright 2021 Google LLC. 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...
<reponame>tranquilitybase-io/tb-eagle-console import { createReducer, createSelector, on } from '@ngrx/store'; import { defaultLoadable, Loadable, onLoadableError, onLoadableInit, onLoadableSuccess, } from '@app/shared/shared.reducer'; import { createActivatorByURL, createActivatorByURLError, createAc...
// eslint-disable-next-line camelcase import * as child_process from 'child_process'; import * as path from 'path'; import { Command } from '@oclif/config'; import * as fs from 'fs-extra'; import { cloneDeep } from 'lodash'; import { AutocompleteBase } from '../../base'; // eslint-disable-next-line @typescript-eslint...
import React from 'react'; import Clipboard from '@react-native-community/clipboard'; import { WebView } from 'react-native-webview'; import { useTranslation } from 'react-i18next'; import { Location } from 'hafas-client'; import { MainStackParamList, BRouterScreenParams } from './ScreenTypes' import { StackNavigationP...
/* * << * Davinci * == * Copyright (C) 2016 - 2017 EDP * == * 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 b...
<reponame>diamond2221/dragupload<filename>src/components/editor/video.ts /* eslint-disable @typescript-eslint/no-unused-vars */ import { getUploadVideoProgress, uploadVideoNormal, uploadVideoUrl } from '@/network/video' import { LoadingBar, Message, Notice } from 'view-design' import E from 'wangeditor' import UploadVi...
<reponame>filipecaixeta/dontcode<filename>backend/src/main.ts import * as express from 'express' import * as http from 'http' import * as Redis from 'ioredis' const app = express() const server = http.createServer(app) const wss = require('socket.io')(server) const redisAdapter = require('socket.io-redis') const path =...
import type { NextPage } from 'next'; import { useRouter } from 'next/router' import { AuthContext } from '@/components/context/authContext'; import styles from 'styles/Header.module.css'; import Link from 'next/link'; import config from 'utils/config'; import ModalRegister from '@/components/modals/register';...
<filename>src/tools/discord.ts import * as Discord from 'discord.js' import { CommandoClient, CommandoMessage } from 'discord.js-commando' import { replace, ReplaceVars } from '../database' import { isNumber, replaceTags } from './misc.js' export type MessageChannel = Discord.TextChannel | Discord.DMChannel | Discord....
import * as React from 'react'; import { observer, inject } from 'mobx-react'; import { Button, message, Form, Input, Checkbox, Select, Modal, Row, Col } from 'antd'; import { CheckboxChangeEvent } from 'antd/lib/checkbox'; import throttle from 'lodash/throttle'; import { WorkspaceStore, HostFileStore, RuleFileStore, ...
<reponame>MariaSolOs/Ramble import type { TranslationRecord } from 'models/translation'; const englishTranslation: TranslationRecord = { Home: { experienceTitle: 'experience montréal.', discoverTitle: 'Discover unique experiences in Montréal', seeAllButton: 'See all', partakeTitle: ...
import { Actor } from "./actor" import { LevelState, crossLevelData } from "./level" import { Direction } from "./helpers" import { CircuitCity, Wirable, WireOverlapMode, Wires } from "./wires" export enum Layer { STATIONARY, // Terrain, etc. ITEM, // All item-eque things: Bombs, echips, boots, keys, etc. ITEM_SUFF...
<reponame>islami00/chocolate-front-end<filename>src/customComponents/ProjectProfile/hooks/useProject.tsx /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable no-unused-vars */ import { ApiPromise } from '@polkadot/api'; import { ...
import { guidGenerator } from '@csnext/cs-core'; import axios from 'axios'; import { FeatureTypes, MetaUtils, FeatureType, PropertyType } from '..'; import { DataSet } from './data-set'; import { plainToClass } from 'class-transformer'; export enum DataSourceState { unloaded, loading, loaded } export clas...
<filename>beakerx_widgets/js/src/spark/SparkStateProgress.ts /* * Copyright 2018 TWO SIGMA OPEN SOURCE, 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.a...
import React, { useEffect } from 'react'; import { PanelProps } from '@grafana/data'; import { SimpleOptions, UNSELECTABLE } from 'types'; import * as THREE from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; import { Point } from './point'; import { Curve } from './curve'; import {...
<gh_stars>1-10 import { JsonRpcProvider } from '@ethersproject/providers'; import { createAsyncThunk, unwrapResult } from '@reduxjs/toolkit'; import { BigNumber, constants, ethers } from 'ethers'; import { AggregatorV3InterfaceABI, BondingCalcContract, ERC721, StakedClamContract } from '../../abi'; import { BondKey, Bo...
import { NetworkDefinition } from "@anthem/utils"; import { Button, Card, Colors, Elevation, H5, H6, Icon, Menu, MenuItem, Popover, Position, } from "@blueprintjs/core"; import axios from "axios"; import { COLORS } from "constants/colors"; import { History } from "history"; import Modules, { Redux...
/* This is the main view for the group page */ import * as _ from 'lodash'; import * as React from 'react'; import * as classNames from 'classnames'; import { eventList } from "./paths"; import { State, DispatchFn, PostTaskFn } from './types'; import delay from "../components/DelayedControl"; import Icon from "../co...
<filename>src/index.ts /* IMPORT */ import isArray = require ('lodash/isArray'); import isNumber = require ('lodash/isNumber'); import isString = require ('lodash/isString'); import flatten = require ('lodash/flatten'); import mergeWith = require ('lodash/mergeWith'); import uniq = require ('lodash/uniq'); import ejs ...
<filename>src/index.ts import * as BinHeap from 'qheap' import ExtendableError from 'extendable-error' import * as EventEmitter from 'events' const wait = time => new Promise(resolve => setTimeout(resolve, time)) export interface PAPQOptions { removePartitionOnEmpty?: boolean, partitionGCDelay?: number, rejectE...
<filename>Schedule/Schedule.ts<gh_stars>0 import { Frequency } from "../index" import { next } from "./next" export type Schedule = | { frequency: "daily" divisor?: number | [number, number] } | { frequency: "weekly" divisor?: number | [number, number] offset?: Schedule.dayOfWeek } | { frequ...
<reponame>MJZawacki/AzureCostEstimator<gh_stars>0 import * as request from "request-promise"; import * as fs from 'fs'; import { VMSku } from "../src/VMSku"; import { StorageSku } from "../src/StorageSku"; import { IRateTableStore } from "./IRateTableStore"; export class RateTable { constructor(jsonObj?: any) { ...
<gh_stars>10-100 // 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 // "L...