text
stringlengths
3.08k
15.5k
<gh_stars>0 import * as CamelCase from "../CamelCase" export type Header = | { accessControlAllowOrigin?: string accessControlAllowCredentials?: string accessControlExposeHeaders?: string[] accessControlMaxAge?: string accessControlAllowMethods?: string[] accessControlAllowHeaders?: string[] accep...
<filename>node_modules/vite-plugin-mkcert/src/mkcert/index.ts<gh_stars>0 import fs from 'fs' import process from 'process' import pc from 'picocolors' import { Logger } from 'vite' import { debug } from '../lib/logger' import { ensureDirExist, escape, exec, exists, getHash, prettyLog, resolvePath } from...
<reponame>guillaume-haerinck/imac-frontend-coffe const style = require('!css-loader!sass-loader!./pc-window.scss').toString(); import template from "./pc-window.ejs"; import { environment } from "../../../../environment.js"; import { PCWindowOptions } from "./pc-window-options"; import { BonziBuddy } from "./bonzi-budd...
<reponame>codyebberson/medplum<gh_stars>0 /* * Generated by @medplum/generator * Do not edit manually. */ export * from './AccessPolicy'; export * from './Account'; export * from './ActivityDefinition'; export * from './Address'; export * from './AdverseEvent'; export * from './Age'; export * from './AllergyIntoler...
<reponame>afeng7882999/foundi-admin import { Theme, themeProcess as _themeProcess, setDocumentTheme as _setDocumentTheme } from 'element-plus-dynamic-theme/theme' import colorString from 'color-string' // 自定义主题 export const CUSTOM_THEME = { '--el-color-white': '#ffffff', '--el-color-black': '#000000', '--el-colo...
interface GameScene extends Phaser.Scene { objects: any } interface User { id: string lastUpdate: number clientId: number roomId: string } interface Users { [userId: string]: User } interface Room { roomId: string // I am not sure if it is safe to publish the roomId to the client // so we only create ...
import { exit } from "../../lib/process"; import { Argv } from "yargs"; import { initCore, dispatch } from "../../lib/core"; import { BaseArgs } from "../../types"; import { Client, Model, Rbac } from "@core/types"; import chalk from "chalk"; import { findApp, findUser, getAppRoleInviteChoices, logAndExitIfActi...
import { Component, Inject, ViewChild, ElementRef, OnInit } from "@angular/core"; import { AppContextService } from "@microsoft/windows-admin-center-sdk/angular"; import { SETTINGS } from "main/settings"; import { Router, ActivatedRoute } from "@angular/router"; import { WACRuntime } from "runtime/runtime.wac"; ...
<filename>packages/taro-cli/src/__tests__/update.spec.ts<gh_stars>0 import * as path from 'path' import { run } from './utils' import { getPkgVersion } from '../util' import { exec } from 'child_process' import { chalk, fs, shouldUseCnpm, shouldUseYarn, PROJECT_CONFIG } from '@agreejs/helper' const runUpdate...
import isFunction from 'lodash/isFunction' import { createGlobalStyle, css, DefaultTheme } from 'styled-components' import { app } from '@/app' const getSiteStyle = (props: DefaultTheme) => { try { const siteStyle = app.styled.globalStyle return !isFunction(siteStyle) ? siteStyle : siteStyle(props) } catc...
<filename>packages/comms/src/ecl/result.ts import { Cache, exists, StateObject } from "@hpcc-js/util"; import { IConnection, IOptions } from "../connection"; import { WsDfu } from "../services/wsDFU"; import { WorkunitsService, WUInfo, WUResult } from "../services/wsWorkunits"; import { parseXSD, XSDSchema, XSDXMLNode ...
import Phaser, { Physics } from 'phaser'; import level1 from '../../assets/tilemaps/maps/map02.json'; import tileset from '../../assets/tilemaps/tiles/groundTiles03.png'; import madMan from '../../assets/mad-man-sheet.png'; import monster from '../../assets/mushroom.png'; import bullet from '../../assets/bullet.png'; i...
import center from '@turf/center'; import { convertToDrawing, setTool } from 'fm3/actions/mainActions'; import { routePlannerSetFinish, routePlannerSetStart, } from 'fm3/actions/routePlannerActions'; import { SearchResult, searchSelectResult, searchSetQuery, searchSetResults, } from 'fm3/actions/searchActio...
export const MAX_UID = 1000; /** * Calls el.hasChildNodes but ignores empty strings, the default hasChildNodes would return ture on `<div> </div>`. * Very useful to check within a component if the component has set child elements to load or overwrite the component template * @param el */ export const hasChildNodes...
<reponame>Juicpt/rollup-plugin-chrome-extension import { load } from 'cheerio' import loader from 'client/es/page-inline-script-loader.ts?client' import jsesc from 'jsesc' import { HtmlTagDescriptor, IndexHtmlTransformContext, IndexHtmlTransformHook, } from 'vite' import { isString, _debug } from './helpers' impo...
import gameLoop from "./game/gameLoop"; import { ctx } from "./game/canvas"; import CanvasBoard from "./game/CanvasBoard"; import { drawHeart, drawSquare, drawCircle, drawStar, drawTriangle } from "./concerns/drawing"; const scores = {} as Record<string, number>; const MAX_MOVES = 10; let movesLeft = MAX_MOVES; expor...
import React, { useState } from "react"; import { ActionGroup, AlertVariant, Button, Form, PageSection, Tab, TabTitleText, } from "@patternfly/react-core"; import { LdapSettingsAdvanced } from "./ldap/LdapSettingsAdvanced"; import { LdapSettingsKerberosIntegration } from "./ldap/LdapSettingsKerberosInteg...
<gh_stars>0 import moment, {Moment} from "moment"; import Newsie from 'newsie'; import parse from "emailjs-mime-parser"; import {Author} from "../author/Author"; import {Content} from "./Content"; import {Group} from "../group/Group"; import {GroupCache} from "../group/GroupCache"; import {Attachment} from "./Attachmen...
import { safeStringify } from '@stoplight/json'; import { Resolver } from '@stoplight/json-ref-resolver'; import { DiagnosticSeverity, Dictionary } from '@stoplight/types'; import { YamlParserResult } from '@stoplight/yaml'; import { memoize, merge } from 'lodash'; import { STATIC_ASSETS } from './assets'; import { Do...
/* global */ import { ErizoStream } from './ErizoStream'; import { Logger } from './utils/Logger'; const log = Logger.module('EventDispatcher'); export type ListenerFunction<T = undefined> = (arg: T) => void interface EventDispatcher { addEventListener: <T>(event: string, listener: ListenerFunction<T>) => void r...
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
<reponame>gaia-platform/GaiaPlatform_VSCode_Extension<gh_stars>0 // ------------------------------------------------- // Copyright (c) Gaia Platform Authors // // Use of this source code is governed by the MIT // license that can be found in the LICENSE.txt file // or at https://opensource.org/licenses/MIT. // --------...
<reponame>seansfkelley/jest-codemods<gh_stars>100-1000 /** * Codemod for transforming Jasmine `this` context into Jest v20+ compatible syntax. */ import { NodePath } from 'ast-types' import * as jscodeshift from 'jscodeshift' import { Collection } from 'jscodeshift/src/Collection' import finale from '../utils/finale...
<reponame>jsGraph/mxgraph<filename>packages/core/src/view/style/Stylesheet.ts<gh_stars>10-100 /** * Copyright (c) 2006-2015, JGraph Ltd * Copyright (c) 2006-2015, <NAME> * Updated to ES9 syntax by <NAME> 2021 * Type definitions from the typed-mxgraph project */ import { ALIGN_CENTER, ALIGN_MIDDLE, ARROW_CLAS...
import styled from 'styled-components'; import InvoiceIcon from 'src/assets/img/accountIcon.png'; import ItemIcon from 'src/assets/img/sparkle.png'; import Logo from 'src/assets/img/prospa2.svg'; import CaretDown from 'src/assets/img/caret.png'; import { useEffect, useRef, useState } from 'react'; import Modal from 're...
/** * Pingas Uploader (pup), by weld for pingas.army, wtfpl */ import fs = require('fs'); import du = require('du'); import jsdom = require('jsdom'); import md5 = require('md5'); import path = require('path'); import form = require('formidable'); import mime = require('mime'); import ...
import { array } from 'misc-utils-of-mine-generic'; import { char, color, int, words } from '../../spec/data'; import { BorderStyle, easing, FlorDocument, Layout } from '../../src'; import { Scrollable } from '../../src/component/scrollable'; import { Text } from '../../src/component/text'; import { Flor } from '../../...
import * as vscode from 'vscode' import cet4 from './assets/CET4_T.json' import { range } from 'lodash' import { compareWord, getConfig, dicts, DictPickItem, getDictFile } from './utils' import { soundPlayer } from './sound' export function activate(context: vscode.ExtensionContext) { const globalState = context.glo...
<reponame>wongmjane/stitches import { AllCssProps } from "./css-types"; import { IAtom, IComposedAtom, IConfig, ICssPropToToken, IScreens, ISheet, ITokensDefinition, TCss, TUtilityFirstCss, } from "./types"; import { addDefaultUtils, createSheets, cssPropToToken } from "./utils"; export * from "./typ...
<filename>packages/director/src/execution/mongo/runs/run.controller.ts import { CreateRunResponse, CreateRunWarning, getCreateProjectValue, isRunCompleted, Run, Task, } from '@sorry-cypress/common'; import { INACTIVITY_TIMEOUT_SECONDS } from '@sorry-cypress/director/config'; import { getRunCiBuildId } from ...
import React, { FC, useState } from 'react' import { Table as T } from '@island.is/island-ui/core' import { FinanceStatusOrganizationType, FinanceStatusDetailsType, } from '../../screens/FinanceStatus/FinanceStatusData.types' import { Box, Text, Columns, Column, Button, LoadingDots, } from '@island.is/i...
import { MinecraftFolder, MinecraftLocation, Version } from "@xmcl/core"; import { task } from "@xmcl/task"; import { getEntriesRecord, open, readAllEntries, readEntry } from "@xmcl/unzip"; import { ClassReader, ClassVisitor, Opcodes } from "@xmcl/asm"; import { errorFrom, ensureFile, InstallOptions, spawnProcess, writ...
import React, {ReactNode, ReactNodeArray } from 'react'; import { Taxonomy, ComponentTypes, Components, Services, Core, ContentDelivery } from '@episerver/spa-core'; import PageListBlockData, { PageListBlockProps } from 'app/Models/Content/PageListBlockData'; import IContentWithTeaser from 'app/Models/IContentWithTeas...
/* * 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 may ...
import { is } from 'electron-util'; import { createWriteStream, ensureDir, ftruncate, open } from 'fs-extra'; import { configFile, contentRoot, isBuilt, myProfilePath, nativePath, SELF_VERSION } from './environment'; import { registerCleanup } from './lifecycle'; const CLS_INFINITY = 'infinite'; const CLS_HIDE = 'hide...
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Inject, Input, OnDestroy, PLATFORM_ID, Renderer2, } from '@angular/core'; import { Subscription } from 'rxjs'; import { IconRegistry } from './icon-registry.service'; import { isPlatformServer } from '@angular/common'; let elemen...
import * as util from 'util'; import table from 'text-table'; import chalk from 'chalk'; import logSymbols from 'log-symbols'; import {mergeDeep} from 'tily/object/mergeDeep'; import {WriteStream} from 'tty'; // Padding step const padding = ' '; function pad(status: string | any[]) { const max = 'identical'.length...
<reponame>rkamisetti792/kui /* * Copyright 2019 IBM Corporation * * 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 ...
<filename>dist/types/ojwaterfalllayout/ojwaterfalllayout.d.ts /** * @license * Copyright (c) 2014, 2020, Oracle and/or its affiliates. * Licensed under The Universal Permissive License (UPL), Version 1.0 * as shown at https://oss.oracle.com/licenses/upl/ * @ignore */ import { JetElement, JetSettableProperties, J...
<filename>sdk/formrecognizer/ai-form-recognizer/src/prebuilt/models.ts // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { ObjectFieldSchema } from "."; import { Document } from "../generated"; import { DocumentField, toDocumentField } from "../models/fields"; import { isAcronymic, unca...
import { Component } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { Router, Routes } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { Observable } from 'rxjs'; import { configureTestSuite } from './../../util-test/util-e...
import { Component, ViewChild } from '@angular/core'; import { OnInit } from '@angular/core/src/metadata/lifecycle_hooks'; import { InterviewsService, Interview } from './services/interviews-service'; import { InterviewsPipe } from './pipes/interviews-search'; import { SearchService } from './services/seach-service'; v...
import * as React from 'react'; import { createStyles, WithStyles, withStyles } from '@material-ui/core/styles'; import classNames from 'classnames'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import Close from 'mdi-material-ui/Close'; import IconButton f...
import path from 'path'; import React, { HTMLProps, useCallback, useContext, useEffect, useMemo, useState, } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Nullable, Undefinable } from 'tsdef'; import { ChonkyActions } from '../../action-definitions/index'; impor...
import styled from "@emotion/styled"; import React from "react"; import { ListType } from "./List"; /** * Types */ export interface FABProps { addList: (newList: ListType) => void; } /** * Component */ const FAB: React.FC<FABProps> = props => { const { addList } = props; // TODO: Use the Button widget af...
<reponame>theslyone/vgs-satellite import axios, { AxiosError, AxiosResponse } from 'axios'; import Qs from 'qs'; import trimFields from 'src/redux/utils/trim-attrs'; import { notify, FETCH_FAILED_ERROR_TEXT } from 'src/redux/utils/notifications'; import _ from 'lodash'; import { isJSON } from 'src/redux/utils/data.util...
// Type definitions for react-native-zss-rich-text-editor 1.x // Project: https://github.com/wix/react-native-zss-rich-text-editor // Definitions by: <NAME> <https://github.com/naveen-ithappu> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 import { Component, ReactNode } ...
import { Action, ActionPanel, closeMainWindow, Form, popToRoot, showToast, Toast, List, useNavigation, Icon, } from "@raycast/api"; import { useState } from "react"; import Style = Toast.Style; import open from "open"; import { LocalStorage } from "@raycast/api"; import { CallbackUrl } from "./utils...
<filename>src/lib/utils/git-repo.ts import {basename, join} from 'path'; import * as sh from 'shelljs'; import {NEWLINE_PLACEHOLDER} from '../utils/constants'; import {Logger} from './logger'; export interface ICommnandOptions { [key: string]: boolean | string | string[] | undefined; '--'?: string[]; } export cl...
import React from "react"; import { Link, Redirect } from "react-router-dom"; // Data and GraphQL import { Mutation } from 'react-apollo'; import { ApolloError } from "apollo-client"; import { CREATE_PRODUCT, UPDATE_PRODUCT } from "../../../queries"; // @material-ui/core components import {createStyles, Theme, WithStyl...
import { customElement, observable } from "@microsoft/fast-element"; import { MessageSystemDataTypeAction, MessageSystemType } from "../../message-system"; import { ActivityType, HTMLRenderLayer, OverylayPosition, } from "../html-render-layer/html-render-layer"; import { HTMLRenderOriginatorId } from "../ht...
<filename>src/core/component/engines/zero/component.ts /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ import symbolGenerator from 'core/symbol'; import { HAS_WINDOW } from 'core/env'; import type Vue from '...
<reponame>RegoNoShi/AdventOfCode2020 import { measuringExecutionTime, readInputFile } from './utilts'; const day = '1'; console.log(`\n🎄🎄🎄🎄🎄 Day ${day} 🎁🎁🎁🎁🎁\n`); const challengeInput = readInputFile(day) .split('\n') .map((n) => +n); /* --- Day 1: Report Repair --- After saving Christmas five years i...
import React from 'react'; import styled from 'styled-components'; import { ContentWrapper, MarketHeader, MarketList, TextWrapper } from '@src/Styles'; export const Header = MarketHeader.extend` font-size: 27px; font-weight: 600; `; export const SubHeading = styled.h4` font-size: 22px; font-weight: 10...
import { useState } from 'preact/hooks'; import { CURRENT_SITE_INFO, CURRENT_SITE_NAME, TORRENT_INFO, } from '../const'; import { $t, getDoubanIdByIMDB, getDoubanInfo, getDoubanBookInfo, getSubTitle, getAreaCode, getPreciseCategory, } from '../common'; import Notification from './Notification'; const getTvSeason...
import {LayoutDOM, LayoutDOMView} from "models/layouts/layout_dom" import {LayoutItem} from "core/layout" import * as p from "core/properties" declare namespace NGL { class AtomProxy{ } class Blob{ constructor(list: Array<String>, ob: object) } class Colormaker{ atomColor: (atom: AtomProxy) => stri...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import {Upsample} from '../../../ops/upsample'; import {Tensor} from '../../../tensor'; import {CpuInferenceHandler} from '../inference-handler'; export class CpuUpsample extends Upsample { run(inferenceHandler: CpuInfer...
import React, { Fragment } from 'react'; import { useForm, Controller } from 'react-hook-form'; import { Block } from 'baseui/block'; import { LabelSmall } from 'baseui/typography'; import { TYPE } from 'baseui/select'; import { Input } from 'baseui/input'; import { Slider, Dropdown } from '../ui'; import BatchSingleSe...
import * as React from "react"; import { useEffect, useState } from "react"; import { Button, ButtonGroup, Col, Row } from "reactstrap"; import Game from "../../model/chess/Game"; import HumanPlayer from "../../model/chess/players/HumanPlayer"; import Player from "../../model/chess/players/Player"; import ChessboardPre...
<filename>src/plugins/stylelint-no-unused-selectors-plugin-jsx/stylelint-no-unused-selectors-plugin-jsx.ts<gh_stars>10-100 import * as BabelParser from '@babel/parser'; import traverse from '@babel/traverse'; import { File, Node, JSXAttribute, ImportDeclaration, VariableDeclarator, CallExpression, Identif...
import { TweenType, RelativeOperator } from './types'; let LOG_ACTIVE = false; export function log(...args: any[]) { if (LOG_ACTIVE) { console.log.apply(console, args); } } export function activateLogs() { LOG_ACTIVE = true; } export function deactivateLogs() { LOG_ACTIVE = false; } export ...
import { Component, OnDestroy, OnInit } from "@angular/core"; import { ActivatedRoute } from "@angular/router"; import { Item } from "../item/item"; import { SearchService } from "../search/search.service"; import { Document } from "../elastic-search/elastic-search.types"; import { FormControl } from "@angular/forms"; ...
/* eslint-disable consistent-return */ /* eslint-disable global-require */ import dotenv from "dotenv"; import express from "express"; import { MessageEmbed, TextChannel } from "discord.js"; import { join } from "path"; import { Client as PgClient } from "pg"; // import { version } from "../package.json"; importing it ...
<reponame>lamergood/retail-ui<gh_stars>0 import { exposeGetters } from '../../lib/theming/ThemeHelpers'; import { DefaultThemeInternal } from './DefaultTheme'; export class OldColorsTheme extends (class {} as typeof DefaultThemeInternal) { //#region Common variables public static brand = '#1e79be'; public stati...
<filename>programs/wallet/src/core/lib/log_shim.ts /** * Added by <NAME> for tsc */ const assert = require('assert'); const BLOG_STACK_EXP = /^\s*at .*(\S+\:\d+|\(native\))/m; const BLOG_LINE_EXP = /(.+?)(?:\:(\d+))?(?:\:(\d+))?$/; // Add by Yang Jun interface IfInfo { frame: number; pos: boolean | null; ...
import React from "react"; import _ from "lodash"; import Form, { Widget, FormValidation, IChangeEvent, ISubmitEvent } from "react-jsonschema-form"; import { getDefaultFormState } from "react-jsonschema-form/lib/utils"; import { addLocValues, strings } from "../../../../common/strings"; import { IExportFormat, IExportP...
<reponame>favna/LavaCord import { EventEmitter } from "events"; import { JoinData, VoiceServerUpdate, VoiceStateUpdate, DiscordPacket, ManagerOptions, JoinOptions, LavalinkNodeOptions, PlayerUpdateVoiceState, WebsocketCloseEvent } from "./Types"; import { LavalinkNode } from "./LavalinkNode"; import { Player } from "./...
import React, { Ref, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { v4 as uuid } from 'uuid'; import { Tabs, TabList, TabPanels, TabPanel, Tab, SimpleGrid, Heading } from '@chakra-ui/react'; import { Formik, Form, FormikProps } from 'formik'; import NotesTable from 'compone...
import axios from 'axios' import { Client, Message, TextChannel } from 'discord.js' import { MinecraftMessage } from './types' import emojiStrip from 'emoji-strip' import { config, logger } from './index' const Rcon = require('rcon') export class Bot { private client: Client private readonly token: string ...
<filename>src/node/lists.ts import * as DelimitedBlocks from "./delimitedblocks"; import * as Io from "./io"; import * as LineBlocks from "./lineblocks"; import * as Options from "./options"; import * as Utils from "./utils"; import { BlockAttributes } from "./utils"; interface Definition { match: RegExp; listOpen...
import moment from 'moment'; import $global from './global'; // import store from '@/store/store.js' const formatDefault = 'DD-MM-YYYY'; // const formatConfig = store.getters.shortDateFormat; const xshortDateFormat = formatDefault; // let formatDateString = formatConfig.toUpperCase() != undefined ? formatConfig.toUp...
import React, { Suspense, useEffect, useState } from 'react'; import { useTheme } from '@material-ui/core/styles'; import { HelpOutline as HelpOutlineIcon, Close as CloseIcon, Done as DoneIcon } from '@material-ui/icons'; import AddIcon from '@material-ui/icons/Add'; import Autocomplete, { AutocompleteCloseReas...
import * as React from 'react' import { connect } from 'react-redux' import { Dispatch } from 'redux' import styled from 'styled-components' import { usernameToAddress, validRecipientAccount } from 'helpers/account' import { stroopsToLumens, lumensToStroops } from 'helpers/lumens' import { BtnSubmit } from 'pages/sha...
<gh_stars>1-10 import { Rect, RoughAnnotationConfig, RoughAnnotation, SVG_NS, RoughAnnotationGroup, DEFAULT_ANIMATION_DURATION } from './model.js'; import { renderAnnotation } from './render.js'; import { ensureKeyframes } from './keyframes.js'; type AnootationState = 'unattached' | 'not-showing' | 'showing'; class R...
/*! * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { Branch, ControlSignal, StateMachineController, StepFunction } from './stateController' import * as _ from 'lodash' import { Prompter, PromptResult } from '../../shared/ui/prompter' import ...
<filename>release/sites/Zerochan/model.ts function completeImage(img: IImage): IImage { if (!img.file_url || img.file_url.length < 5) { img.file_url = img.preview_url; } img.file_url = img.file_url .replace(/\/s\d+\.zerochan/, "/static.zerochan") .replace(".240.", ".full.") ...
<filename>src/utils/releases.ts import {Logger} from '@technote-space/github-action-log-helper'; import {Octokit} from '@technote-space/github-action-helper/dist/types'; import {Utils} from '@technote-space/github-action-helper'; import {Context} from '@actions/github/lib/context'; import compareVersions from 'compare-...
import * as React from "react"; import * as ReactRedux from "react-redux"; import actions from "actions"; import Alert from "components/js/Alert"; import { defaultStore, mountWrapper } from "shared/specs/mountWrapper"; import { IChartState, IChartVersion } from "../../shared/types"; import ChartMaintainers from "./Cha...
<reponame>pikax/gin-downloader /** * Created by rodriguesc on 05/03/2017. */ import {resolve} from "url"; import config, {error} from "./config"; import { Chapter, FilteredResults, FilterStatus, MangaInfo, MangaSource, MangaXDoc, SiteParser, LicencedError, } from "../../declarations"; import * as url from "url...
<reponame>ChoicescriptIDE/vscode-css-languageservice /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *----------...
import * as http from "http"; import * as https from "https"; import * as fs from "fs"; import * as WebSocket from "ws"; import * as yaml from "js-yaml"; import "crypto-random-string"; import cryptoRandomString from "crypto-random-string"; const serverNodeID = 0; // Server always has node ID 0 // Use "No Server" mode...
<reponame>the-creators-galaxy/hcs-governance<filename>webapp/src/proto/transaction.ts<gh_stars>1-10 /* eslint-disable */ import Long from "long"; import * as _m0 from "protobufjs/minimal"; import { TransactionBody } from "./transaction_body"; import { SignatureList, SignatureMap } from "./basic_types"; export const pr...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import { I18n, Logger } from '@aws-amplify/core'; import React, { FormEvent, useState } from 'react'; import Alert from 'react-bootstrap/Alert'; import Button from 'react-bootstrap/Button'; import ButtonGroup f...
import React, { FC, useState, useEffect, useRef } from 'react'; import { EditorView, highlightSpecialChars, keymap, ViewUpdate, placeholder } from '@codemirror/view'; import { EditorState, Prec } from '@codemirror/state'; import { indentOnInput, syntaxTree } from '@codemirror/language'; import { history, historyKeymap...
import React, { Fragment } from "react"; import connectAllProps from "../../../shared/connect"; import { Redirect } from "react-router-dom"; import { pendingRedirect } from "../../../shared/redirect"; import Article from "../../../models/Article"; import ErrorPage from "../../pages/ErrorPage"; import { Container, Heade...
import { IRandom } from "helpers/random"; import { Direction } from "./enums"; import { TileCreatedEvent, TileMergeEvent, TileMoveEvent, GameEvent, TilesNotMovedEvent, GameOverEvent, TileDeletedEvent, GameStartedEvent } from "./events"; import { Grid } from "./grid"; import { Tile } from "./tile"; impo...
import { mkdir, readFile, stat, writeFile } from 'fs'; import { compile, HelperOptions, registerHelper, registerPartial, } from 'handlebars'; import { OpenAPIV2 } from 'openapi-types'; import { dirname, join } from 'path'; import { parse as swaggerFile, validate } from 'swagger-parser'; import { promisify } fro...
import * as assert from 'power-assert'; import { Kapacitor, ITask, IUpdateTask, ITemplate, IUpdateTemplate } from './kapacitor'; import { IPingStats, ConfigUpdateAction, VarType } from './kapacitor'; import { IConfigSections, IConfigSection, IConfigElement } from './kapacitor'; const kapacitor = new Kapacitor({ host...
import { useState, useEffect } from 'react'; import { getShuffledTileDeck, checkTempai, checkUnits, unitListToScore, unitListToHumansCount, unitListToHandsBoldFlg, sortHands, calcUnitList, } from 'algorithm'; import { ApplicationMode, Action, HANDS_SIZE, nameToIndex } from './constant'; const useStore ...
import { Splitter, DateSpan, EventDef, PositionCache, DateProfile, DateMarker, Duration, DateEnv, DateComponent, ViewProps, RefObject, VNode, ChunkContentCallbackArgs, createElement, CssDimValue, DateProfileGenerator, DayTableModel, Seg, Hit, DateRange, Slicer, EventStore, EventUiHash, EventInteractionState, BaseCompo...
<filename>src/server/index.ts /* eslint-disable @typescript-eslint/restrict-template-expressions */ import * as jwt from "../jwt" import parseUrl from "../lib/parse-url" import logger, { setLogger } from "../lib/logger" import * as cookie from "./lib/cookie" import { defaultCallbacks } from "./lib/default-callbacks" im...
import { useEffect, useState, useRef, useReducer, useMemo, createContext, useContext, useCallback } from "react" import chroma from "chroma-js" import { FormattedMessage } from "react-intl" import { useVirtualScroll, useStay, VirtualItem, VirtualScrollProps } from "./useVirtualScroll" import { useScrollBarSource } from...
/** * @packageDocumentation * @ignore */ import WSCommand from "./WSCommand"; class WSCommandI2C extends WSCommand { public module: any; public _CommandInit: any; public _CommandDeinit: any; public _CommandWrite: any; public _CommandRead: any; public _CommandSlvWritten: any; public sendCommand: any; ...
/* * Copyright 2021 The University of Manchester * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
import React, { useState, useMemo, useEffect } from 'react'; import { Input, Button, message, Checkbox } from 'antd'; import Icon from '@/components/Icon'; import { history } from 'umi'; import { checkBrowser } from '@/utils'; import RtcOptModal from '@/components/RtcOptModal'; import { AudioQuality } from '@/utils/rtc...
import {HardhatRuntimeEnvironment} from "hardhat/types"; import {DeployFunction} from "hardhat-deploy/types"; import {DeploymentsExtension} from "hardhat-deploy/dist/types"; import {ADDRESS_ZERO, expandDecimals, getLatestBlock, getLatestBlockNumber, isNotDeployed, maxUint256, toWei} from "../test/shared/utilities"; imp...
import {Colors} from '@blueprintjs/core'; import gql from 'graphql-tag'; import * as React from 'react'; import {useQuery} from 'react-apollo'; import {Line} from 'react-chartjs-2'; import styled from 'styled-components'; import {Header, Legend, LegendColumn, RowColumn, RowContainer} from 'src/ListComponents'; import ...
import path from 'path'; import semverDiff from 'semver/functions/diff'; import semverGT from 'semver/functions/gt'; import semverGTE from 'semver/functions/gte'; import semverLT from 'semver/functions/lt'; import semverLTE from 'semver/functions/lte'; import semverEQ from 'semver/functions/eq'; import semverParse from...
import EventEmitter from './util/EventEmitter'; import { PlaybackState } from '@eyevinn/web-player-core'; import type { IPlayerState } from '@eyevinn/web-player-core'; const LIVE_EDGE = 20; // seconds from edge considered live const LIVE_SEEKABLE_MIN_DURATION = 300; // require 5 min to allow seeking on live content e...
<gh_stars>1-10 import { FastifyPluginCallback } from 'fastify' import { profile, user } from '../Database' import { cryptSha, emailRegexp } from '../util' import SignUpBody from './schema/SignUpBody.json' import SignInBody from './schema/LoginBody.json' import GetUserById from './schema/GetUserById.json' import UpdateB...