text
stringlengths
3.08k
15.5k
<reponame>Scopevisio/undoapp-backend<filename>src/routes/onetimecheckin.ts /* * Licensed to the Apache Software Foundation (ASF) under one or more contributor * license agreements; and to You under the Apache License, Version 2.0. */ /* * written by Scopevisio AG 2021 */ import express from 'express' import { chi...
/** * The MIT License (MIT) * * Copyright (c) 2013-2019 <NAME>, <NAME>, and Adroitwhiz * * 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 limitati...
import { W3TS_HOOK, addScriptHook } from "@voces/w3ts"; import { forEachPlayer, timeout, mapEachPlayer } from "util/temp"; import { fetch } from "util/networkio"; import { getTeams } from "./helpers/getTeams"; import { sheepTeam, wolfTeam, isSandbox, TriggerRegisterPlayerEventAll } from "shared"; import { reloadMultib...
import React, { Component } from 'react'; import { Table, Icon, Pagination, Dropdown } from 'semantic-ui-react'; import { mergeShips } from '../utils/shiputils'; type ProfileShipsProps = { playerData: any; }; type ProfileShipsState = { column: any; direction: 'descending' | 'ascending' | null; searchFilter: strin...
import { grpc } from '@improbable-eng/grpc-web' import { Context, defaultHost } from '@textile/context' import { Identity } from '@textile/crypto' import { WebsocketTransport } from '@textile/grpc-transport' import { Client, CollectionConfig } from '@textile/threads-client' import * as pb from '@textile/threads-client-...
<gh_stars>1-10 import { Scheduler } from "../logic/Scheduler"; import { FileUtil } from "../util/FileUtil"; import { LOCALIZATION_LOG_MAX_STORAGE_TIME_DAYS, LOG_MAX_STORAGE_TIME_DAYS } from "../ExternalConfig"; import { getLoggingFilename, LOG_PREFIX } from "../logging/LogUtil"; import { core } from "../Core"; import {...
import { useCallback, useEffect, useMemo, useReducer, useRef } from "react"; import { useOptionalPersistFn, usePersistFn } from "@/hook/usePersisFn"; import { sendApiRequest } from "@/request/api"; import { ApiRequestData, ApiRequestParam, ApiRequestStateEnum, RequestMethod, RequestQuery, } from "@/request/ty...
// 采用受 Mithril 启发的基于 jQuery 实现的极简框架 https://github.com/ahui2016/mj.js import { noConflict } from "jquery"; import { mjElement, mjComponent, m, cc, span, prependToList } from "./mj.js"; import * as util from "./util.js"; import { create_color_pwd } from "./color-password.js"; const id = util.getUrlParam("id"); const A...
<reponame>akbaruddin/monots<filename>packages/eslint-config-monots/src/index.ts import '@rushstack/eslint-patch/modern-module-resolution'; import type { Linter } from 'eslint'; const config: Linter.Config = { parser: '@typescript-eslint/parser', ignorePatterns: ['*.d.ts'], plugins: ['@typescript-eslint', 'unico...
<reponame>chanhong/autorest<filename>packages/libs/datastore/src/data-store/data-handle.ts import { Delay, Lazy, LazyPromise } from "@azure-tools/tasks"; import { MappedPosition, Position, RawSourceMap, SourceMapConsumer } from "source-map"; import { promises as fs } from "fs"; import { ParseToAst as parseAst, YAMLNode...
import { createObservableMap, ObservableMap } from '@stencil/store'; import forge from 'node-forge'; import { buildFlags, buildQuestionnaireResponse, extractLabel, extractQuestions, extractValue, flattenNestedItems, generateEncryptedPayload, getHash, isValidValue, parseExtensions, } from './question...
/* eslint-disable prefer-const */ import * as chalk from 'chalk'; const l = console.log; export default class HS3DRotate { public rotatorContainer: HTMLDivElement; public hs3dRotate: HTMLDivElement; public prevButton: HTMLButtonElement; public nextButton: HTMLButtonElement; public cellsRange: HTMLInputEleme...
/* eslint react/display-name: "off" */ import React, { useEffect, useState, useMemo } from 'react'; import { compose } from 'ramda'; import { useHistory } from 'react-router-dom'; import { Stack, PrimaryButton, CommandBar, ICommandBarItemProps, getTheme, Label, Text, Link, Icon, } from '@fluentui/rea...
import { Flex, Tag, Button, Image, Text, Link, SimpleGrid, Icon, Tooltip, Box, } from '@chakra-ui/react'; import { useRouter } from 'next/router'; import { CgCross } from 'react-icons/cg'; import { Character } from 'hooks/useCharacters'; import { Death } from 'hooks/useDeaths'; import { Quote } fro...
import { RouteComponentProps, Router } from '@reach/router'; import React, { createContext, lazy, useContext, useEffect, useState } from 'react'; import SiteService from '../../ApiHelpers/SiteService'; import { ArmObj } from '../../models/arm-obj'; import { FunctionAppEditMode } from '../../models/portal-models'; impor...
import * as React from "react"; import { AppBar, createStyles, Divider, Drawer, Hidden, IconButton, Link, List, ListItem, ListItemIcon, ListItemText, Menu, MenuItem, Theme, Toolbar, Typography, withStyles, WithStyles } from "@material-ui/core"; import { AccountCircle, Attachment...
import once from 'lodash/once'; import config from '../../../../lib/config'; import { getBreakpoint, isBreakpoint } from '../../../../lib/detect'; import { pbTestNameMap } from '../../../../lib/url'; import { isInAuOrNz, isInRow, isInUk, isInUsOrCa, } from '../../../common/modules/commercial/geo-utils'; type Strin...
<reponame>FredKSchott/material-components-web-components<gh_stars>0 /** @license Copyright 2018 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apach...
<filename>src/index.ts import Web3 from 'web3'; import fs from 'fs'; import { Account } from 'web3-core'; import { loadConfig } from './config'; import { AccountStore } from './account'; const deployContract = async ( web3: Web3, fromAddress: string, abiPath: string, binPath: string, params: any[] ) => { c...
<reponame>lukealbao/witty 'use strict'; import * as fs from 'fs'; import * as path from 'path'; import Form from 'form-data'; import axios from 'axios'; import SQLite from 'better-sqlite3'; import { RTMClient } from '@slack/rtm-api'; import { WebAPICallResult } from '@slack/web-api'; import dotenv from 'dotenv'; impo...
// Copyright 2020 <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 writ...
import React, { useState } from 'react' import { Alert, Image, KeyboardAvoidingView, Text, TextInput, View } from 'react-native'; import { Formik } from 'formik'; import * as Yup from 'yup'; import { BorderlessButton, RectButton, TouchableOpacity } from 'react-native-gesture-handler'; import {...
<filename>test/format.test.ts<gh_stars>1-10 import { ANSIFormat, Box, BoxFactory } from '../src'; import { Loxes } from '../src/core/Loxes'; import { ErrorLox } from '../src/loxes/ErrorLox'; import { OutputLox } from '../src/loxes/OutputLox'; test('foreground coloring', () => { const fg = ANSIFormat.colorForeground(...
import cubejs from '@cubejs-client/core'; import { CubeProvider } from '@cubejs-client/react'; import { More } from '@uidu/data-controls'; import Form from '@uidu/form'; import Select from '@uidu/select'; import { ShellBody, ShellHeader, ShellMain } from '@uidu/shell'; import { isEqual } from 'lodash'; import React, { ...
import * as React from 'react'; function SvgSvgCart(props: React.SVGProps<SVGSVGElement>) { return ( <svg className="svg-cart_svg__w-6 svg-cart_svg__h-5" viewBox="0 0 20 17" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" {...props} > <defs> ...
/** * * Copyright (c) 2014 All Rights Reserved by the SDL Group. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
import React, { useCallback } from 'react'; import { _cs, isDefined, } from '@togglecorp/fujs'; import { IoClose } from 'react-icons/io5'; import { internal } from '@togglecorp/toggle-form'; import { useLazyRequest } from '#utils/restRequest'; import Button from '#components/Button'; import RawButton from '#compon...
<gh_stars>10-100 import * as Matter from "matter-js"; import Ioc from "../controllers/ioc"; import ViewPort from "../libs/class/view-port"; import { DEFAULT_GAMEPLAY_ROLES, DEFAULT_RENDER_BOUNDS } from "./defaults"; import { IUniVector } from "./interface/global"; import { worldElement } from "./types/global"; import L...
<filename>backend/src/controllers/controller_posts.ts import mongoose, { Mongoose } from "mongoose"; import * as dotenv from "dotenv"; import jwt from "jsonwebtoken"; import express from "express"; import bcrypt from "bcrypt"; import axios from "axios"; import CreateUser from "../models/create_user"; import CreateGrou...
import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { graphql, useFragment, useMutation } from "react-relay"; import { FiArrowDown, FiArrowUp } from "react-icons/fi"; import { match } from "../../../util"; import { bug } from "../../../util/err"; import { RealmOrder } from "...
import React from 'react'; import { observer } from 'mobx-react'; import { Option } from 'funfix-core'; import { FieldChangeHandler } from 'module/mobx-utils'; import { EditorTab } from 'models'; import { TabsStore } from 'stores'; import { ServerStructure } from 'services'; import DataDecorator from 'services/api/Data...
import entityToPolyline from './entityToPolyline'; export default (entities, denormalisedEntities) => { // on récupère et reconstruit les entités avec les attributs qui leur sont liés const entitiesWithAttributs = entities.reduce((acc, entity) => { if (entity.type) { const id = entity.type === 'INSERT' ...
import {Component, OnInit} from '@angular/core'; import isEmpty from 'lodash/isEmpty' const faq = [{ title: 'How does Vetafi work?', content: 'It\'s pretty simple. ' + 'You fill out the questions on our user friendly form, ' + 'and we populate the answers into the official VA paperwork. ' + 'When y...
import config from '@app/config' import { Callback } from '@app/interfaces' import { logger } from '@app/logger' import { errors } from '@app/server/core/exceptions' import { AddressTxsPagesPayload, BalancePayload, BlocksTxsPayload, EthCallPayload, ExchangeRatePayload, JoinLeavePayload, StatsPayload, To...
<reponame>negfeed/epyc import { Injectable } from '@angular/core'; import { AngularFireDatabase, FirebaseObjectObservable } from 'angularfire2/database'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/first'; import * as firebase from 'firebase/app'; import { Auth, AuthUserInfo } from '../auth...
import * as gulp from "gulp"; import {spawn} from "child_process"; import {FSWatcher, readFile, rmdir, writeFile} from "fs"; import {resolve} from "path"; import {promisify} from "util"; import * as BrowserSync from "browser-sync"; import {js2xml, xml2js} from "xml-js"; import {glob} from "glob"; import { uniq} from "l...
<filename>src/security.ts /* * Copyright 2017 <NAME> <<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...
import { ElaraApp } from '../elara-app'; import { pulseWith } from './animations'; export interface Root extends HTMLElement { loadables: ReadonlyArray<string>; links: ReadonlyArray<{name: string; route: string}>; menu(isHide: boolean): Promise<void>; show(route: string): Promise<void>; } export interf...
import * as fs from 'fs'; import Path from 'path'; import type { Argv } from 'yargs'; import { instantiateTemplate } from '../../../TemplateUtils'; import { wrapCommandHandler, wrapVisualProgress } from '../../CliHelpers'; import type { ITaskContext } from '../../ITaskContext'; import { getColorScheme, getExperimentN...
<reponame>lukasztackowiak/apexcharts-card export interface ChartCardExternalConfig { type: 'custom:apexcharts-card'; config_templates?: string[] | string; color_list?: string[]; locale?: string; experimental?: { color_threshold?: boolean; disable_config_validation?: boolean; hidden_by_default?: bo...
import { Path, CustomElement, DisplayObjectConfig, DisplayObject, Line, Polyline, BaseStyleProps, Shape, } from '@antv/g'; import { vec3 } from 'gl-matrix'; type ArrowHead = boolean | DisplayObject; type ArrowBody = Line | Path | Polyline; type ArrowHeadType = 'default' | 'custom'; export interface Ar...
<gh_stars>1-10 import {polyhedron} from './polyhedron'; import {scale} from '../modifiers/transforms'; export interface IGeodesicSphereOptions { r: number; fn: number; } const defaults: IGeodesicSphereOptions = { r: 1, fn: 5, }; const ci = [ // hard-coded data of icosahedron (20 faces, all triangles) [0.85...
import { createApp, defineComponent } from 'vue' import { FileUploader } from 'file-uploader-vue-component' import { indexTemplateHtml } from './variables' const App = defineComponent({ render: indexTemplateHtml, data: () => { return { color: '#ff0000', leftFileName: '', rightFileName: '', ...
<reponame>blomqma/next.js import type { Route, Params } from './router' import type { CacheFs } from '../shared/lib/utils' import type { NextParsedUrlQuery } from './request-meta' import type { FontManifest } from './font-utils' import fs from 'fs' import { join, relative } from 'path' import { PagesManifest } from '....
import * as Bacon from 'baconjs'; import { abbreviateDuration } from 'nicovideo/abbreviate-duration'; import { ConfigModel } from './config-model'; // Unit: seconds const pollingIntervalMin = 30; const pollingIntervalMax = 24 * 60 * 60; const fetchDelayMin = 0.5; const fetchDelayMax = 10; /* Invariant: there is at mo...
import { Yielder } from "../yielders/yielder.js"; import { getChildContainerLength, getChildAtIndex } from "./child_container_functions.js"; import { TraversedNode } from "../types/traversed_node.js"; import { Traverser } from "./core_traverser_class.js"; import { MetaRoot } from "../types/meta_root"; export enum Trav...
<reponame>maheshmurthy20/angular2-multiselect-dropdown import { Component, OnInit, NgModule, OnChanges, ViewEncapsulation,forwardRef, Input, Output, EventEmitter, ElementRef, AfterViewInit, Pipe, PipeTransform } from '@angular/core'; import { FormsModule, NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';...
import { get, writable } from "svelte/store"; import { browser } from "$app/env"; import { toast } from "./toasts"; import { OutboundQueue } from "./app/queue"; import type { File, MemoryUsage, Settings } from "./app/types"; import { TMP_FILE_NAME, WS_URL } from "./app/constants"; export const terminalLines = writable...
import {RESPONSE} from "./Enum"; import {Listener} from "./Listener"; import * as zmq from 'zeromq'; import * as url from 'url'; export interface ResponeMessage { type: string, id: string, err: any, json: any } export class MetaTrader4Connection extends Listener { private reqSocket = zmq.socket('req'); private ...
<gh_stars>10-100 import { WebsocketResponse, WebsocketState, RESPONSE_ACTIONS, FETCH_ORDERS, REDUX_WEBSOCKET_BROKEN, REDUX_WEBSOCKET_CLOSED, REDUX_WEBSOCKET_CONNECT, REDUX_WEBSOCKET_MESSAGE, REDUX_WEBSOCKET_OPEN, REDUX_WEBSOCKET_SEND, REDUX_WEBSOCKET_ERROR, Tables, TableData, } from './types';...
import { CliRepl, parseCliArgs, mapCliToDriver, getStoragePaths, getMongocryptdPaths, runSmokeTests, USAGE, buildInfo } from './index'; import { generateUri } from '@mongosh/service-provider-server'; import { redactURICredentials } from '@mongosh/history'; import { runMain } from 'module'; import readline from 'readlin...
import * as PIXI from 'pixi.js'; import Easing from './Easing'; import TweenManager from './TweenManager'; import TweenPath from './TweenPath'; import { TweenAnimation } from './types'; export default class Tween extends PIXI.utils.EventEmitter { private _chainTween: Tween | null = null; private _to: any = null; ...
/** * `dynamo-query-service.ts` * - common service to query with pkey+sort via dynamo * * * @author <NAME> <<EMAIL>> * @date 2019-11-6 initial version with `dynamodb` package. * * @copyright (C) 2019 LemonCloud Co Ltd. - All Rights Reserved. */ // eslint-disable-next-line @typescript-eslint/no-unus...
// Copyright (c) 2020 WiseTime. All rights reserved. import * as R from "ramda" import produce from "immer" import { pipe } from "fp-ts/lib/pipeable" import * as IO from "fp-ts/lib/IO" import * as O from "fp-ts/lib/Option" import * as E from "fp-ts/lib/Either" import { Either, fold, getOrElse } from "fp-ts/lib/Either"...
<gh_stars>0 import * as Babel from '@babel/core'; import { basename, extname } from 'path'; import { install } from 'source-map-support'; import AllSyntaxPlugin from './AllSyntaxPlugin'; import { BabelPlugin, RawBabelPlugin } from './BabelPluginTypes'; import BabelPrinterPlugin from './BabelPrinterPlugin'; import { Tra...
import { html } from 'lit-html'; import '../src/table/table'; import '../src/button/button'; import { SimplrTable, TableActionClickEvent, TableColumn } from '../src/table/table'; import { ArgTypes, Story } from './story-types.js'; export default { title: 'Simplr Table', component: 'simplr-table', }; export co...
import type { AST } from "svelte-eslint-parser" import type { Linter } from "eslint" const COMPUTED = Symbol() const ALL = Symbol() type Define = { loc: AST.Position } type Block = { loc: AST.Position rule: (ruleId: string) => boolean kind: "enable" | "disable" define: Define targetRule: string | typeof AL...
<reponame>farmerconnect/farmerconnect-ui import styled, { keyframes } from 'styled-components'; import ReactSelect, { Props } from 'react-select'; import { customScrollbar } from '../../mixins/ScrollBar'; import { farmerConnectTheme } from '../Theme'; const animateCheckbox = keyframes` 0% { transform: scale(1.1)...
import { histogram, HistogramRow } from "./histogram.js"; import { br, button, collapsible, intervalCounter, mono, setRootDashboard, sharedPane, singleState, table, tabs, tile, UIElement, } from "./html.js"; import { locallyStored, refreshable, saveFile } from "./io.js"; import { bufferingMode...
<gh_stars>0 import cases from 'jest-in-case'; import { runSimulatedAnnealing, SimulatedAnnealingArgs } from './index'; /** * Utility used for writing test cases with jest-in-case. */ export type TestObject<T = unknown, S = unknown> = { /** * Input arguments/data for a test case. */ input: T; /** * E...
/** * 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 ...
import { IncomingMessage } from 'http'; import { request } from 'https'; import { URL } from 'url'; export enum WebHookEvents { REPO_PUSH = 'repo:refs_changed', REPO_MODIFIED = 'repo:modified', REPO_FORKED = 'repo:forked', REPO_COMMENT_ADDED = 'repo:comment:added', REPO_COMMENT_EDITED = 'repo:comment:edited'...
<gh_stars>0 import _ from 'lodash' import { Account } from '../../services' import { isObject } from '../../utils' import store from '../../common/store' import encryptionServices from './ecc' import stringServices from './string' import objectServices from './object' import arrayServices from './array' import numberS...
import React, { memo, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react"; import { useTable } from "react-table"; import { IFile, ITorrentDetails } from "../../../types/TorrentDetails"; import styles from "./FilesList.module.scss"; import Icon from "@mdi/react"; import { mdiLoad...
<filename>src/application/hooks/sessions/session.ts<gh_stars>0 import { computed, Ref, ssrRef, useFetch, useRouter, watch } from '@nuxtjs/composition-api' import VueRouter from 'vue-router' import { useErrorHandler, useListener, useLoadingHandler } from '@app/hooks/core/states' import { FindSession, GetSessions, Lis...
import pino, { BaseLogger, DestinationStream, LevelWithSilent, LoggerOptions, redactOptions, } from 'pino' import * as prettyPrint from 'pino-pretty' /** * Determines if log environment is development * * @type {boolean} * */ export const isDevelopment = process.env.NODE_ENV === 'development' /** * De...
import { BigDecimal, BigInt } from "@graphprotocol/graph-ts"; //////////////////// ///// Versions ///// //////////////////// export const PROTOCOL_SCHEMA_VERSION = "1.2.1"; export const PROTOCOL_SUBGRAPH_VERSION = "1.1.0"; export const PROTOCOL_METHODOLOGY_VERSION = "1.0.0"; //////////////////////// ///// Schema Enu...
<filename>client/src/system/system.shop.ts import RG from '../rg'; import {SystemBase} from './system.base'; import * as Item from '../item'; import * as Component from '../component'; import {ElementShop} from '../element'; import {SentientActor} from '../actor'; type EventPool = import('../eventpool').EventPool; c...
import React from 'react' import { UIElement } from '@worldbrain/memex-common/lib/main-ui/classes' import Overlay from '@worldbrain/memex-common/lib/main-ui/containers/overlay' import CloudOnboardingModalLogic from './logic' import type { Dependencies, State, Event } from './types' import type { UIServices } from 'src...
import { pickValues } from "@rnx-kit/tools-language/properties"; import findUp from "find-up"; import fs from "fs"; import path from "path"; import pkgDir from "pkg-dir"; import pkgUp from "pkg-up"; /** * Components of a package reference. */ export type PackageRef = { scope?: string; name: string; }; /** * Pa...
/* * @Author: crlang * @Date: 2021-12-24 17:24:14 * @Description: Element Plus Type and Props * @LastEditors: crlang(https://www.crlang.com) * @LastEditTime: 2022-04-11 16:01:21 */ import type { CSSProperties, ExtractPropTypes } from 'vue' // baisc element-plus import type { ButtonProps, ButtonType, Button...
<reponame>gatlin/precursor-ts<gh_stars>1-10 /* eslint-disable */ /** * S-expression {@link Parser}. * * This implements a straightforward, if somewhat clunky, s-expression surface * syntax parser for the {@link Cbpv} term language. * * @remarks * Egregiously plagiarized (see notes for source) and then vivisected...
<gh_stars>1-10 /** * Shows the TS Delta findings view in a tab in the Azure Devops Pull Request perspective. */ import { GitHttpClient4_1 } from 'TFS/VersionControl/GitRestClient'; import { ProjectSettings } from '../Settings/ProjectSettings'; import TeamscaleClient from '../TeamscaleClient'; import { getFirstProjec...
import Head from "next/head"; import { css } from "@emotion/react"; import * as React from "react"; import { DefaultLayout } from "src/components/DefaultLayout"; import { pageSectionCss } from "src/styles/pageSection"; import { NextPage } from "next"; import { palette } from "src/styles/palette"; import { Link, LinkPro...
<reponame>JonathanWilbur/cms-ts /* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, OBJECT_IDENTIFIER, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; export { OTHER_RECIPIENT } from "../Cryptographic...
import React, { useCallback, useEffect, useRef, useState } from 'react'; import useRafLoop from 'react-use/lib/useRafLoop'; import useUpdate from 'react-use/lib/useUpdate'; import mitt from 'mitt'; import type { Emitter } from 'mitt'; import type { BoardProps } from 'boardgame.io/react'; import type { Data, Queue } fro...
<reponame>aqc1/buster<filename>packages/bot/src/listeners/fun/uselessConversions.ts import type { ListenerOptions, PieceContext } from "@sapphire/framework"; import { Events, Listener } from "@sapphire/framework"; import type { Message } from "discord.js"; import { config } from "../../lib/config"; import { NumberReg...
import * as React from "react"; import {Container} from "semantic-ui-react"; import * as PIXI from "pixi.js"; import {IProject} from "../../models/project"; interface IThumbnailTileProps { project: IProject; stageId: string; plane: number; projectPlaneTileStatus: any; thumbsHostname: string; th...
import React from 'react' import { Member, State } from '../../../../typings' import { List } from 'immutable' import { Button } from '@material-ui/core' import './Members.css' import './Member.css' import Card from '../cards/card' import { useTranslation } from 'react-i18next' type MembersProps = { members: List<M...
import 'react-app-polyfill/ie11' import React, { Component, createRef } from 'react' import ReactDOM from 'react-dom' import { Form, Input, Button, Badge, Tag, Row, Col, DatePicker, message, Tree, Slider, Rate, } from 'antd' import { SearchBox, SchemaFormBox, FormBox, TabsBox, TableBox...
// Libs import React, { FormEvent, useEffect, useReducer, useState } from 'react'; // Utils // Resources // @ts-ignore import CogIcon from '../src/static/img/icons/cog.svg'; // Components import Modal from '../src/components/Modal/Modal'; import TabAccordion from '../src/components/TabAccordion/TabAccordion'; import...
<reponame>BohdanShmalko/-system-of-optimization-of-maprouting import { CoreService, EHttpExceptionMessage, GetWebhooksHistoryDto, ResendWebhookDto } from '@common'; import { ClientsService, ErrorsService, EWebhookEvents, UserHistorysService, UserRoomsService, UsersService, WebHooksHistory, WebHooksHistoryService, WebHo...
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { RecepcionDataService } from 'src/app/services/recepcion-data.service'; import { environment } from 'src/environments/environment'; import { Router } from '@angular/router'; import { Platform } fro...
import { deleteTask, fetchTasksWithFilter, updateTask } from "~src/models/task/data"; import { getUserInfo } from "~services/user"; import { doc, DocumentData, FirestoreDataConverter, PartialWithFieldValue, QueryDocumentSnapshot, runTransaction, setDoc, where, WithFieldValue } from "...
import React from "react"; import { Badge, Col, Row, UncontrolledTooltip } from "reactstrap"; import { connect, PromiseState } from "react-refetch"; import { ordinalSuffixOf } from "../../../utils"; import { formatMomentDate, getToday } from "../../../utils/DateUtil"; import { RankingEntry } from "../../../interfaces/R...
import React, { Component } from 'react'; // App import { Button, Card, Spinner } from 'react-bootstrap'; // Output import Downloader from 'js-file-download'; // console.log import { LOG, ErrorMessage, t2wmlColors } from '../../common/general'; import RequestService, { IStateWithError } from '../../common/service'; ...
/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { Checkbox, getTheme, IconButton, IIconProps, IStackStyles, IStackTokens, Label, Stack, TextField, } from '@fluentui/react' import { parse } from 'papaparse' import { memo, useCal...
/// <reference path="../_references.ts" /> declare namespace DracoolaArt.KartwarsBot { export enum CarWeapon { } export enum CarWeaponTrigger { } export enum CarWeaponSpeed { } export interface IGameWrapper { } export interface ICanvasUtils { } export interface IContextMenu { } export interface IUserInt...
<filename>src/app/ui/shared/base-page.component.ts import { Directive, HostBinding, Injector, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { AuthHelperService } from 'app/core/auth-helper.service'; import { CacheService } from 'app/core/cache.service'; import { Conf...
<reponame>milescsmith/Verdant import { History } from "../../../verdant-model/history"; import { Checkpoint } from "../../../verdant-model/checkpoint"; import { verdantState } from "../state"; import { Bundles } from "./event-bundles"; export const INIT_EVENT_MAP = "INIT_EVENT_MAP"; export const UPDATE_CHECKPOINT = "U...
import fs from "fs"; import path from "path"; import { promisify } from "util"; import mkdirp from "mkdirp"; import deepmerge from "deepmerge"; import { QuestionCollection } from "inquirer"; import PluginAPI from "../api/plugin"; import { getPackageManager } from "../api/PackageManager"; import chalk from "chalk"; imp...
/** * @file * Syntax Highlighter Web Part for SharePoint Framework SPFx * * Author: <NAME> * Copyright (c) 2016 */ import { BaseClientSideWebPart, IPropertyPaneConfiguration, PropertyPaneDropdown, PropertyPaneToggle, IWebPartContext } from '@microsoft/sp-webpart-base'; import * as strings from 'SyntaxH...
import React from "react" import { Link } from "gatsby" import styled, { css } from "styled-components" import { Element } from "react-scroll" import Layout from "../components/layout" import SEO from "../components/seo" import Button from "../components/button" import Header from "../components/header" import Containe...
// Copyright (c) 2022 <NAME>. All Rights Reserved. // https://github.com/cinar/indicatorts import { roundDigits } from '../helper/numArray'; import { NumRange } from './numRange'; import { NumScaler } from './numScaler'; const DEFAULT_STYLE = 'black'; const DEFAULT_WIDTH = 1; const FOCUS_STYLE = 'red'; const FOCUS_WI...
import * as React from 'react'; import { autobind, BaseComponent, css, findIndex, getId } from '../../Utilities'; import { ISwatchColorPicker, ISwatchColorPickerProps, IColorCellProps } from './SwatchColorPicker.Props'; import { getColorFromString } from '../../utilities/color/colors'; import { Grid } f...
<filename>src/overloads/creep/Creep.ts import _ from 'lodash' import defineGetter from 'utils/defineGetter' import ResourceRouteProcessor from 'job/resourceRoute/ResourceRouteProcessor' import BuildingRouteProcessor from 'job/buildingRoute/BuildingRouteProcessor' import RepairRouteProcessor from 'job/repairRoute/Repair...
// tslint:disable:no-console import { splitResourceLine } from './generateSerenityResources' const fieldRegex = /'(\w*)': FieldSchema\((.*)\)/mg export class GenerateResourceFields { collectionField: GenerateResourceField = null items: Array<GenerateResourceField> constructor(name, text, primitives) { this.i...
<gh_stars>0 // *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities...
<reponame>jamiegyoung/osu-peak import { createCanvas, loadImage, registerFont, Image } from "canvas"; import { Mode, Theme } from "./osu.types"; interface Options { [key: string]: any; mode: Mode; theme: Theme; peakRank?: string | number; peakAcc?: string; username?: string; profilePicture?: Buffer; } e...
import { Note, note_pitch, note_octave, note_accidental } from '../music/types' export type Synth = { amplitude: number, cutoff: number, cutoff_max: number, amp_adsr: Adsr, filter_adsr: Adsr } export type MidiNote = { synth: Synth, freq: number } export type Adsr = { a: number, d: number, s: numb...