text
stringlengths
3.3k
33k
/** * # Truffle Codec * * This module provides low-level decoding and encoding functionality for * Solidity and the Solidity ABI. Many parts of this module are intended * primarily for internal use by Truffle and so remain largely undocumented, * but some of its types are also output by @truffle/decoder, which p...
<filename>packages/apollo-engine-reporting/src/treeBuilder.ts import { GraphQLResolveInfo, GraphQLError, ResponsePath, responsePathAsArray, } from 'graphql'; import { Trace, google } from 'apollo-engine-reporting-protobuf'; function internalError(message: string) { return new Error(`[internal apollo-server e...
<gh_stars>0 import get from 'lodash/get' import keys from 'lodash/keys' import values from 'lodash/values' import chunk from 'lodash/chunk' import castArray from 'lodash/castArray' import compose from 'compose-then' import flamelink from '@flamelink/sdk-app' import * as App from '@flamelink/sdk-app-types' import { Flam...
import React, { Component } from 'react'; import classNames from 'classnames'; import { BigNumber, createBigNumber } from 'utils/create-big-number'; import Form from 'modules/trading/components/form/form'; import Confirm from 'modules/trading/components/confirm/confirm'; import { generateTrade } from 'modules/trades/h...
/** * @license * Copyright 2021 Dynatrace 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
import * as React from 'react'; import * as _ from 'lodash'; // import * as moment from 'moment'; import SoundUtility from '../sound_utils'; import TimeAxis from './TimeAxis'; import TimeChannel, { AudioChannel, DataChannel, DataPoint } from './TimeChannel'; export interface Timerange { bt: number; tt: numbe...
<reponame>w8a5n1g116/steedos-platform /* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { isJsonMap, JsonMap } from '@salesforce/ts-ty...
import React, { RefObject } from 'react'; import * as Config from '../config'; import * as Util from '../util'; import * as Constants from '../constants' import { TextInput, View, StyleSheet, Button, FlatList, ListRenderItemInfo, Text, TouchableOpacity, } from 'react-native'; import { RRCToast, ...
import fs from 'fs'; import path from 'path'; // @ts-expect-error no types import proxy from 'proxy'; import http, { Server } from 'http'; import util from 'util'; // @ts-expect-error no types import portastic from 'portastic'; // @ts-expect-error no types import basicAuthParser from 'basic-auth-parser'; import { ENV_V...
<gh_stars>1-10 /* * Copyright 2021 by LunaSec (owned by Refinery Labs, Inc) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<filename>projects/tym-modals/src/lib/tym-menu.component.ts /*! * tym-modals.js * Copyright (c) 2021 <NAME> * Released under the MIT license. * see https://opensource.org/licenses/MIT */ import { Inject, InjectionToken, StaticProvider } from '@angular/core'; import { Component, AfterViewInit, HostListener, Elemen...
// SPDX-License-Identifier: Apache-2.0 // Copyright © 2018-2022 Semmtech B.V. import * as React from "react"; import { Input, Spinner } from "reactstrap"; import { isEqual } from "lodash"; import { resolveInject } from "app/di"; import { ISparqlExecutor, SparqlQueryParameters } from "app/services/infrastructu...
<filename>src/selectMachine.ts import { Machine, assign, actions } from "xstate"; import keycode from "keycode"; const { send, cancel } = actions; import { DecoratedItem } from "./types"; const KEY_DOWN_FILTER = "KEY_DOWN_FILTER"; const KEY_DOWN_SELECT = "KEY_DOWN_SELECT"; const KEY_DOWN_UP = "KEY_DOWN_UP"; const KEY_...
<filename>packages/build-utils/src/convert-runtime-to-plugin.ts import fs from 'fs-extra'; import { join, parse, relative, dirname, basename, extname } from 'path'; import glob from './fs/glob'; import { normalizePath } from './fs/normalize-path'; import { FILES_SYMBOL, Lambda } from './lambda'; import type { BuildOpti...
import { readdir } from 'fs/promises'; import { resolve, relative, isAbsolute, sep, join, } from 'path'; import { FileStatusResult, StatusResult } from 'simple-git'; import { StatusSummary } from 'simple-git/src/lib/responses/StatusSummary'; import { Git } from './git'; export enum WorkTreeItemType { FILE, DIRE...
import { AgenciasService } from 'src/app/services/agencias/agencias.service'; import { GraficasService } from 'src/app/services/graficas/graficas.service'; import { BienesService } from 'src/app/services/bienes/bienes.service'; import { ChartOptions, ChartType, ChartDataSets } from 'chart.js'; import { TipoBien } from ...
import {View} from "../View/View"; import {ViewController} from "../ViewController/ViewController"; import {MAnimation} from "../Animation/MAnimation"; import {NavigationControllerDelegate} from "./NavigationControllerDelegate"; import {isDefined} from "../Utils/isDefined"; import {Logging} from "../Utils/logging"; imp...
<reponame>ulaval/modul<filename>packages/modul-components/src/components/file-upload/file-upload.ts import { PluginObject } from 'vue'; import Component from 'vue-class-component'; import { Prop, Watch } from 'vue-property-decorator'; import { MBadgeDirective, MBadgeState } from '../../directives/badge/badge'; import {...
<reponame>perfessic/perfessic interface Tour { index: number, year: string, tournament: string, v: string } interface Player { index: number, year: string, player: string, qualifier: boolean, v: string } function encodeName(n: string): string { return n.replace(' Qualifiers', '').toLowerCase().rep...
<filename>src/index.ts<gh_stars>0 import * as request from "request-promise-native"; import * as url from 'url'; type ContentType = 'page' | 'blogpost' | 'comment' | 'attachment'; type RepresentationType = 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor2' | 'anonymous_export_view'; type StatusType = 'curr...
<filename>server/providers/woob/index.ts import { spawn } from 'child_process'; import * as path from 'path'; import { Access } from '../../models/'; import { assert, makeLogger, KError, checkMinimalWoobVersion, UNKNOWN_WOOB_VERSION, } from '../../helpers'; import { WOOB_NOT_INSTALLED, IN...
/* * Copyright 2019-2020 The Kale Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
<reponame>sabiha-taskin/tagbox_ui<gh_stars>0 import { UserLoginService } from './../services/user-login.service'; import { LoggedInCallback } from './../services/cognito.service'; import { environment } from './../../environments/environment'; import * as Ps from 'perfect-scrollbar'; import { IdentityManagementService ...
import React, { useContext, useEffect, useState } from "react"; import { withRouter, Switch, Route, Redirect, Link, matchPath, useParams, useHistory, } from "react-router-dom"; import { ServicesContext, AuthContext } from "contexts"; import { StackedBarLoader } from "components"; import { FinbotError...
import React = require('react'); import mui = require('material-ui'); import ScriptPicker = require('./ScriptPicker'); const { Dialog, FlatButton, RaisedButton, Toolbar, ToolbarGroup, Tabs, Tab, TextField } = mui; const introMessage = 'Hello there, here you can write JavaScript! For more info type: help'; let lineBa...
import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import Collapse from '@material-ui/core/Collapse'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@materi...
import * as _ from 'lodash'; import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { AbstractUserLogin, AbstractUserLogout, AbstractUserSignup, API_USER, API_USER_CONFIG, API_USER_IS_AUTHENTICATED, API_USER_LOGIN, API_USER_LOGOU...
export { default as AddPlaylist } from "./AddPlaylist"; export { default as Amazon } from "./Amazon"; export { default as Apple } from "./Apple"; export { default as ArrowDown } from "./ArrowDown"; export { default as ArrowLeft } from "./ArrowLeft"; export { default as ArrowRight } from "./ArrowRight"; export { d...
<filename>src/motifs.ts // import swiftSet from 'swiftset'; import { Motif, MotifTemplate } from './queries' import { DynamicGraph, Link, Node } from './dynamicgraph' import netClustering from 'netclustering' export function findTemplate(nodes: Node[], template: MotifTemplate, config?: Object) { var nodeC...
export declare interface CompoundUnitData { long: string; short: string; narrow: string; } export declare function createResolveLocale<K extends string, D extends { [k in K]: any; }>(getDefaultLocale: () => string): (availableLocales: string[], requestedLocales: string[], options: { [k: ...
/////////////////////////////////////// // Soubor: src/bpmnRunner/runContext.ts // Projekt: MWEServer // Autor: <NAME> /////////////////////////////////////// import { Connection, Equal, In } from 'typeorm' import { ActivityStatus, DataObjectInstance, DataObjectTemplate, NodeElementInstance, NodeElementTempl...
import { useReactiveVar } from '@apollo/client' import { Button, Input,Checkbox, Col, Row } from 'antd' import React, { useState, useEffect, useCallback } from 'react' import InfiniteScroll from 'react-infinite-scroll-component' import styled from 'styled-components' import { FooterCardStakingLoading } from '../compone...
import { HandlerFunction } from "@octokit/webhooks/dist-types/types" import { ApiPromise, Keyring, WsProvider } from "@polkadot/api" import { cryptoWaitReady } from "@polkadot/util-crypto" import assert from "assert" import { displayError, envVar } from "opstooling-js" import { Probot, run } from "probot" import { Sta...
import { Component, OnInit, Inject, HostListener, Renderer2 } from '@angular/core'; import { DOCUMENT } from '@angular/common'; // Service import { LocalStorageService } from '../../providers/local-storage.service'; import { AlertService } from '../../providers/alert.service'; import { WalletBuilderService } from '../...
/// /// This is in no way production ready code and will be split up into /// multiple re-usable files. It is currently a demo for what is possible. /// Until we have proper APIs from VSCode, it is neither fully functional /// *manual* refresh required, nor is it very efficient /// import * as vscode from 'vscode'; imp...
<gh_stars>1-10 /*eslint camelcase: [error, {allow: ["per_page", "max_entries", "tag_name"]}]*/ import * as core from "@actions/core"; import { NameSpec, OrderSpec, SafeInputs, Selectable, SelectSpecs, SliceSpec, SortSpec, SortSpecs, Sortable, } from "./types"; export interface ValidateMethods { s...
import React, { useState, useEffect } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { GoogleLogin, GoogleLogout, GoogleLoginResponse, GoogleLoginResponseOffline } from 'react-google-login'; import * as Sentry from "@sentry/browser"; import { setUsername, selectGoogleProfile, selectLogin...
import { MintNFT, Block, Token, User, Pool, Proxy, NonFungibleToken } from "../../../../generated/schema"; import { BigInt, Address, Bytes, log } from "@graphprotocol/graph-ts"; import { extractData, extractBigInt, extractInt, extractBigIntFromFloat } from "../data"; import { createIfNewAccount,...
<reponame>darteil/MazeGame import * as BABYLON from 'babylonjs'; import SceneInstance from './scene'; import { trainingLevel, ILevel, generateNewMap } from './levels'; import Platform from './objects/platform'; import Cube from './objects/cube'; import Ground from './objects/ground'; import FollowCamera from './camera'...
import { FunctionComponent, useEffect, useState } from 'react'; import axios from "axios"; const Candlestick: FunctionComponent = () => { let loading = true; let dataIndex = 0; let dataIndexLen = 0; let timeList: number[] = []; let priceList: number[] = []; const getData = () => { axi...
import * as CoffeeScript from 'coffeescript'; import * as Nodes from 'coffeescript/lib/coffeescript/nodes'; import { Diagnostic, DiagnosticSeverity, Range, SymbolInformation, SymbolKind } from 'vscode-languageserver'; export interface ISymbolMetadata { name: string; kind: SymbolKind; } const OBJECT_LITERAL_CONTA...
<reponame>ToodleBit/car-maqueen<gh_stars>0 /** * @file pxt-maqueen/maqueen.ts * @brief DFRobot's maqueen makecode library. * @n [Get the module here](https://www.dfrobot.com.cn/goods-1802.html) * @n This is a MakeCode graphical programming education robot. * * @copyright [DFRobot](http://www.dfrobot.com), 20...
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { FormControl, FormGroup, ValidationErrors, ValidatorFn, AbstractControl } from '@angular/forms'; import { TiTableRowData, TiMenuItem, TiTableSrcData, TiValidationConfig, TiValidators, TiFileItem, TiFilter } from '@cloud/tiny3'; import...
import { Trans } from "@lingui/macro"; import VisuallyHidden from "@reach/visually-hidden"; import { Box, Button, Checkbox as TUICheckbox, Flex, Input as TUIInput, Label as TUILabel, Radio as TUIRadio, Select as TUISelect, SelectProps, } from "theme-ui"; import { ReactNode, useMemo } from "react"; imp...
import { assert } from "@thi.ng/api"; import { asCubic, circle } from "@thi.ng/geom"; import { serialize } from "@thi.ng/hiccup"; import { svg } from "@thi.ng/hiccup-svg"; import { map, range } from "@thi.ng/transducers"; import { maddN2, mulN2, normalize } from "@thi.ng/vectors"; import { readFileSync } from "fs"; imp...
/// <reference path='../typings/node/node.d.ts' /> 'use strict'; import * as td from './td'; import * as assert from 'assert'; type JsonObject = td.JsonObject; type JsonBuilder = td.JsonBuilder; import * as azureTable from "./azure-table" import * as azureBlobStorage from "./azure-blob-storage" import * as restify...
import * as path from 'path'; import * as replaceLast from 'replace-last'; import { EventEmitter } from 'events'; export class RendezvousTracker { constructor() { this.clientPathsMap = {}; this.emitter = new EventEmitter(); this.filterOutLogs = true; this.rendezvousBlocks = {}; ...
<reponame>sparr/tabletopplayground-scripted-ghetto-counter-optimized // Thanks to @Wodysus for the art and original object // Thanks to @0x40 for the original script // Script refactor, typing, and optimization by @sparr0 import * as TTP from "@tabletop-playground/api"; import { DLListNode, ScriptedCounterObject } fro...
<filename>src/generators/CommonGenerator.ts import { Api } from "../Api"; import { Model } from "../Model"; import { Type } from "../Type"; import * as _ from "lodash"; import * as fs from "fs"; import * as path from "path"; import { spawnSync } from "child_process"; import { TypescriptFile } from "../TypescriptFile"; ...
<reponame>jurko-gospodnetic/fusionauth-typescript-client /* * Copyright (c) 2019, FusionAuth, 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...
// Copyright © 2021 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // // 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 // // Unle...
/* eslint-disable prefer-template */ import Transport from "@ledgerhq/hw-transport"; import { DisconnectedDevice, TransportOpenUserCancelled, } from "@ledgerhq/errors"; import { getBluetoothServiceUuids, getInfosForServiceUuid, } from "@ledgerhq/devices"; import type { DeviceModel } from "@ledgerhq/devices"; im...
import ts from 'typescript'; import { CancellationToken, Diagnostic, DiagnosticSeverity } from 'vscode-languageserver'; import { Document, getTextInRange, isRangeInTag, mapRangeToOriginal } from '../../../lib/documents'; import { DiagnosticsProvider } from '../../interfaces'; import { LSAndTSDocResolver } from '../LSAn...
import React, { useRef, useEffect, useState } from "react"; import styles from "./Board.module.css"; import { Button, Container, Col, Row, Modal, Jumbotron, Form, Alert, InputGroup } from "react-bootstrap"; import io from "socket.io-client"; import { checkWinLoss } from "../../services/control"; import { generateKey } ...
<reponame>GuildOfWeavers/genStark<filename>examples/assembly/lib128.ts<gh_stars>100-1000 // IMPORTS // ================================================================================================ import { StarkOptions, Assertion } from '@guildofweavers/genstark'; import { createPrimeField, instantiate } from '../.....
import { oneLine } from 'common-tags'; import { AnyModel } from '../Model'; import { AnyRecord, ModelRecord } from '../ModelRecord'; import { ModelRelationKind, ModelRelationValue, NormalizedModelRelationValue } from './ModelRelation'; import ToManyIndexed from './ToManyIndexed'; import ToManyIndexedUnique from './ToMa...
<filename>source/lib/kdf-monitoring.ts /********************************************************************************************************************* * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * ...
import React, {useState, useEffect} from 'react'; import {useId} from 'react-id-generator'; import AnimationControl from './animate_control'; import {AnimationState, AnimateProps, AnimationRun, CurrentState} from './types'; import { setStateForFinishedAction, setStateForNewAction, setCurrentStateToUnmounte...
// 系统设置 - 菜单管理 import React from 'react' import { Tree, Button, Icon, Divider, Menu, Dropdown, Form, Input, Radio, message } from 'antd' import styled from 'styled-components' import { postRequest } from '../../../utils/api' const FormItem = Form.Item const RadioGroup = Radio.Group const MenuContent = styled.div` ...
import { clamp } from "lodash"; import { FC, useCallback, useEffect, useMemo, useRef, useState } from "react"; import { Block, Elem } from "../../../../utils/bem"; import { isDefined } from "../../../../utils/utilities"; import { TimelineViewProps } from "../../Types"; import "./Frames.styl"; import { Keypoints } from ...
import React, { useState, useEffect, lazy, Suspense } from 'react'; import { useParams, useLocation, useRouteMatch, useHistory } from 'react-router'; import { NavLink, Link, Route, Switch } from 'react-router-dom'; import { URLS, getAppComposeURL, APP_COMPOSE_STAGE, isCIPipelineCreated, ViewType, NavItem } from '../../...
import styled from 'styled-components'; export const Global = styled.div` * { font-family: 'Helvetica Neue', sans-serif; } /* should be rewritten to formulas */ --woly-line-height: 24px; --woly-border-width: 1.5px; --woly-rounding: 3px; --woly-font-size: 15px; --woly-shadow: 3px 3px 9px rgba(57,...
<filename>src/containers/cells/controls/table.ts import {CellPoint, BORDER_POSITION} from "../../../model/common"; import {targetToRect, cellRangeToRect} from "../../../model/lib/target_to_rect"; import {Rect, Point} from "../../../model/common"; import {Canvas} from "../../../model/canvas"; import {ColumnHeaderItem} f...
export interface Const<T> { readonly _const: T; } export interface Generic { opaque: 'Generic is a token type that is going to be replaced with a real type'; } export interface Unit { opaque: 'opaque token for empty payload type'; } export type Case<T> = Of<T> | Const<T>; export interface RecordDict { reado...
import { buildClientSchema, introspectionQuery } from "graphql"; import { Fields } from "graphql-fields-info"; import onemitter, { Onemitter } from "onemitter"; import Generator from "./Generator"; import { IQuery } from "./typings"; export interface IResolver { fetch(query: string, vars?: any, subscriptionId?: str...
import React, { useEffect, useState, Fragment } from "react"; import tw, { styled } from "twin.macro"; import "styled-components/macro"; import useCurrentMeasure from "../editMeasure/useCurrentMeasure"; import { MeasureScoring } from "../../models/MeasureScoring"; import { Alert, TextField } from "@mui/material"; impor...
/************************************************************************************************ * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates. */ import '@angular/localize/init'; import 'zone.js/dist/zone-node'; import {ngExpressEngine} from '@nguniversal/express-engine';...
<gh_stars>1-10 import assert from 'assert' import fs from 'fs' import path from 'path' import { GraphQLBoolean, GraphQLEnumType, GraphQLEnumValueConfigMap, GraphQLFieldConfig, GraphQLFieldConfigArgumentMap, GraphQLFloat, GraphQLInputObjectType, GraphQLInputType, GraphQLInt, GraphQLList, GraphQLNon...
import React, { useState, useEffect } from 'react'; import { FormikProps } from 'formik'; import { Grid, GridItem, Text, TextContent, TextVariants, FormGroup, Radio, TextInput, Button, FileUpload, Tooltip, TooltipPosition, Form, } from '@patternfly/react-core'; import spacing from '@patternfly...
import * as assert from "assert"; import * as async from "async"; import * as mongodb from "mongodb"; import * as Odin from ".."; import DB, { Operator, JoinQuery, Iterator, Id } from "../DB"; import EventEmitter from "../DB/EventEmitter"; import Filter from "../DB/Filter"; import Relation from "../Relation/Base"; impo...
import * as Bluebird from "bluebird"; import * as fs from "fs"; import * as path from "path"; import * as shelljs from "shelljs"; import { logger } from "./src/lib/logger-singleton"; import * as util from "util"; /* tslint:disable-next-line:no-var-requires */ const config = require("./package.json"); const tmp = pat...
// Copyright (c) 2017-2018 <NAME> Software Co., Ltd. import { Material } from '../../3d/assets/material'; import { IRenderingSubmesh } from '../../3d/assets/mesh'; import { aabb } from '../../3d/geom-utils'; import Pool from '../../3d/memop/pool'; import { Vec3 } from '../../core/value-types'; import { mat4 } from '../...
import { Client } from '@elastic/elasticsearch'; import { Inject, Injectable } from '@nestjs/common'; import { InjectConnection } from '@nestjs/typeorm'; import { unique } from '@vendure/common/lib/unique'; import { FacetValue, ID, Job, JobService, Logger, Product, ProductVariant, Produc...
<reponame>vidartf/unray<gh_stars>1-10 "use strict"; import * as _ from "underscore"; import * as THREE from "three"; import { create_bounding_sphere_geometry, create_bounding_box_geometry, create_bounding_box_axis_geometry, create_bounding_box_midplanes_geometry } from "./boundinggeometry"; import { ...
import { camelCase, pascalCase, snakeCase } from "change-case"; import { parseSchema } from "./parser"; import { Definition, Schema } from "./schema"; import { error, quote } from "./util"; import PREAMBLE from "./peechy.zig"; const TYPE_NAMES = { bool: "bool", byte: "u8", float: "f32", int: "i32", uint8: "u...
import { Hdes, Vis } from '../deps'; type ModelType = 'switch' | 'decisionTable' | 'service' | undefined; class ModelVisitor { private _fl: Hdes.AstAPI.Fl; private _visited: string[] = []; private _nodes: Vis.Node[] = []; private _edges: Vis.Edge[] = []; private _models: Hdes.ModelAPI.Models; private _st...
"use strict"; import * as Promise from "bluebird"; import { app, shell } from "electron"; import * as Utils from "../util/electronutils"; import { EventEmitter } from "events"; import * as fs from "fs"; import * as I from "../typings/interfaces"; import { tmpdir } from "os"; import { OsxUpdater } from "./osxupdater"; ...
<reponame>fes300/DefinitelyTyped import { Action, Flow, StageContext } from "oja"; new Action().activate(); class MyAction extends Action { execute() { this.define('foo', 'bar'); } } new MyAction() .activate() .consume('foo', data => console.log(data)); class Greet extends Action { execu...
/* eslint no-console: 0 */ import SCLang, { SCLangError } from "@supercollider/lang"; import Server, { msg, MsgType } from "@supercollider/server"; import { CallOrder, Command, Dryad } from "dryadic"; import fs from "fs"; import path from "path"; const { defFree, defLoad, defRecv } = msg; const fsp = fs.promises; co...
import clsx from "clsx"; import React, { CSSProperties, useCallback, useEffect, useMemo, useRef, useState, } from "react"; import DummyImage from "~/components/DummyImage"; import KeyHint from "~/components/KeyHint"; import Icon from "~/constants/Icon"; import Illustration from "~/constants/Illustration"; i...
import { WorkerCommand, WorkerResponse } from "./const"; import { AIConfig } from "./const"; const ctx: Worker = self as any // eslint-disable-line no-restricted-globals ////////////////// /// WASM LOAD /// ////////////////// let init_zxing = false let init_cv = false const cv_asm = require('../resources/opencv....
import React, { useState, useRef, ReactNode, useEffect, useCallback, } from 'react'; import {classNames, variationName} from '@shopify/css-utilities'; import { InternalProps as TextFieldInternalProps, TextFieldInternal, } from '../TextField'; import {useThemeConfiguration} from '../Theme'; import {Popper...
import { Component, Host, h, Prop, Event, EventEmitter, FunctionalComponent, State, Method, Watch, Listen } from '@stencil/core'; import { getLogger } from '../../utils/utils'; import { TabProps, TabItem, TabsMap } from '../props'; const log = getLogger('tabs') /** * pointer-events: none; display: block; width: 100%...
<gh_stars>0 import FORMATS from './formats'; import * as utils from './utils'; export type Filter = | 'audioandvideo' | 'videoandaudio' | 'video' | 'videoonly' | 'audio' | 'audioonly' | ((format: VideoFormat) => boolean); export interface ChooseFormatOptions { // To remove string quality?: 'lowest' ...
<reponame>anthow/site-interra import type { GraphQLFieldConfigArgumentMap, GraphQLArgumentConfig, GraphQLOutputType, GraphQLFieldConfig, GraphQLInputType, GraphQLResolveInfo, GraphQLFieldResolver } from './graphql'; import { ObjectTypeComposer } from './ObjectTypeComposer'; import type { ObjectTypeComposerArgumentConfi...
<reponame>Nymphee/CircuitBlocks import * as path from 'path'; import DomParser from 'dom-parser'; import {ipcMain, BrowserWindow} from 'electron'; import homePath from './consts'; import * as fs from "fs"; import * as os from "os"; import logger from "./logger"; import ArduinoCompiler from "../compiler/compiler"; in...
<reponame>drake7707/music-player-v2 import { IPlayerState } from "../domain/objects"; export interface IPlayerViewState { isPlaying: boolean; progress: number; currentTime: number; totalTime: number; currentVolume: number; onLoadError: Function | null; onLoad: Function | nu...
<filename>src/structures/commands.ts import { readdirSync, existsSync, lstatSync } from 'fs'; import Discord, { ApplicationCommand, Snowflake } from 'discord.js'; import { Collection, CommandData, CommandOptionData } from '../typings/index'; import { Sucrose } from './sucrose'; import { SucroseError } from './errors'; ...
<gh_stars>1-10 import {ChatItemId, MsgContent, DeleteMode, Profile} from "./command" export type ChatResponse = | CRActiveUser | CRChatStarted | CRChatRunning | CRApiChats | CRApiChat | CRApiParsedMarkdown | CRUserSMPServers | CRNewChatItem | CRChatItemStatusUpdated | CRChatItemUpdated | CRChatIt...
import { assertUnreachable, getDefaultDenomFromNetwork, IOasisAccountHistory, NetworkDefinition, } from "@anthem/utils"; import * as Sentry from "@sentry/browser"; import { FiatCurrency } from "constants/fiat"; import { FiatPriceHistoryProps, GraphQLConfigProps, OasisAccountHistoryProps, withFiatPriceHi...
import { findIndex, orderBy, union } from "lodash-es"; import { IField } from "common/models/schedule/fields"; import { ITeamCard } from "common/models/schedule/teams"; import ITimeSlot from "common/models/schedule/timeSlots"; import { dateToShortString } from "../../../helpers"; import { GameType } from "./dnd/drop"; ...
'use strict'; import assert = require('assert'); import {Readable, Stream, Transform} from "stream"; import {ChangeStream, Collection, Cursor, MongoClient, ObjectId} from 'mongodb'; import {Subject} from "rxjs"; import {Timestamp} from "bson"; import EventEmitter = require('events'); const MONGO_URI = 'mongodb://127.0...
import { Component, OnInit } from "@angular/core"; import { TNSTextToSpeech, SpeakOptions } from 'nativescript-texttospeech'; import { TNSPlayer } from 'nativescript-audio'; import * as application from 'tns-core-modules/application'; import * as permissions from "nativescript-permissions"; import * as dialogs from 'tn...
import { MateriaClass } from './materiaClass'; import { SeccionClass } from './seccionClass'; import { BloqueHoras } from './BloqueHoras'; import { ordenarPorDia } from '../databaseTransalations/datoToString'; import { Dias } from './enum'; export const CANTIDAD_DE_SEMESTRES = 10; export class HorarioPeriodoClass { ...
/* Board reffered to as a 5x5 grid of positions or x,y coordinates: To the player, they are displayed as (A-E),(1-5) coordinates 0 1 2 3 4 | 0,0 1,0 2,0 3,0 4,0 | A5 B5 C5 D5 E5 5 6 7 8 9 | 0,1 1,1 2,1 3,1 4,1 | A4 B4 C4 D4 E4 10 11 12 13 14 | 0,2 1,2 2,2 3,2 4,2 | A...
<reponame>liriliri/luna import Component from '../share/Component' import h from 'licia/h' import stripIndent from 'licia/stripIndent' import $ from 'licia/$' import isUrl from 'licia/isUrl' import uuid from 'licia/uuid' import types from 'licia/types' import each from 'licia/each' import max from 'licia/max' import is...
import Block from '../../lib/org/bukkit/block/Block.js' import Item from '../../lib/org/bukkit/entity/Item.js' import PlayerDropItemEvent from '../../lib/org/bukkit/event/player/PlayerDropItemEvent.js' import ItemStack from '../../lib/org/bukkit/inventory/ItemStack.js' import Location from '../../lib/org/bukkit/Locatio...
// SPDX-FileCopyrightText: 2021 Andre 'Staltz' Medeiros // // SPDX-License-Identifier: MIT import crypto = require('crypto'); const ssbKeys = require('ssb-keys'); import {LoremIpsum} from 'lorem-ipsum'; import { AboutContent, ContactContent, Content, FeedId, Msg, PostContent, Privatable, VoteContent, }...
/** * @fileOverview Sidebar for editor * @author <a href="mailto:<EMAIL>"><NAME></a> * @version 0.1.0 */ import * as React from 'react'; import * as lev from 'levenshtein'; import { ApiService, AppUrls } from '../../ApiService'; import { DataStore } from '../../DataStore'; import { Entity, EntityType, Predicate,...
<gh_stars>10-100 import { Color, DoubleSide, MathUtils, Mesh, MeshBasicMaterial, Object3D, Shape, ShapeGeometry, } from 'three'; import { HALF_PI, TWO_PI } from '../../math'; import { setBlendAdd, setBlendMultiply, setBlendScreen } from '../utils'; import Timeline from '../../Timeline'; import...