text
stringlengths
3.08k
15.5k
import { schema } from '@angular-devkit/core'; import { standardFormats } from '@angular-devkit/schematics/src/formats'; import { Option } from '@angular/cli/models/interface'; import { parseJsonSchemaToOptions } from '@angular/cli/utilities/json-schema'; import { existsSync, readdirSync, readFileSync, statSync } from ...
import {Channel, X, Y, ROW, COLUMN} from '../channel'; import {LAYOUT} from '../data'; import {ScaleType} from '../scale'; import {Formula} from '../transform'; import {extend, keys, StringSet} from '../util'; import {VgData} from '../vega.schema'; import {FacetModel} from './facet'; import {LayerModel} from './layer...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import acorn from 'acorn'; type ResolveContext = { conditions: Array<string>; parentURL: string | void; }; type ...
import * as Enums from './enums'; export namespace Raw { // // ACT API // export type Quest = { readonly id: number; readonly name: String; readonly slug: string; }; export type Act = { readonly slug: string; readonly number: number; readonly name: string; readonly quests: Quest[]; }; export type ActI...
import { useState, useEffect } from 'react'; import { createContainer } from 'unstated-next'; import { findKey } from 'lodash'; import { Style, Layer } from 'mapbox-gl'; import { MAP_FILTER } from '../constants'; import { mapLayersUnitId } from '../config'; import Mapbox from '../repositories/Mapbox'; /** * Interfac...
import { includes, find, filter } from "lodash"; import { XMLAttribute } from "@xml-tools/ast"; import { isXMLNamespaceKey } from "@xml-tools/common"; import { UI5SemanticModel, UI5Class, } from "@ui5-language-assistant/semantic-model-types"; import { getUI5ClassByXMLElement, getUI5AggregationByXMLElement, fl...
<gh_stars>1-10 /** * Contains request routing logic. */ import {Router} from 'worktop'; import {KV, read} from 'worktop/kv'; import {ServerRequest} from 'worktop/request'; import {FetchError} from './errors'; import { CHARSET_UTF_8, CacheControl, ContentType, HeaderKeys, withHeaders, } from './headers'; i...
import { getLogger } from "log4js" import Long = require("long") import { hyconfromString } from "../api/client/stringUtil" import { TxValidity } from "../consensus/database/worldState" import { Server } from "../server" import conf = require("../settings") import { Hash } from "../util/hash" import { Address } from "....
<reponame>rienafairefr/pulumi-digitalocean<filename>sdk/nodejs/dropletSlug.ts // Copyright 2016-2018, Pulumi 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://...
<reponame>matthewsjaeger/eapi-airtable-akveo-seed<filename>src/app/effortless/services/gds.service.ts declare var generateGuestActor: any; declare var generateATRActor: any; declare var generateAuditAgentActor: any; declare var generateGAINSUserActor: any; declare var generateBJFeltLogActor: any; declare var generateSl...
<reponame>Little-Games-Studio/little-rocket<gh_stars>1-10 import * as Phaser from 'phaser'; import * as clouds_big from './../assets/images/background/clouds_big.png' import * as clouds_small from './../assets/images/background/clouds_small.png' import * as asteroid_png from './../assets/images/asteroid.png' import r...
<reponame>adam-sv/arc // dependencies /* NOTE: we would like to do away with mobx; component state seems fairly well covered by React state & hooks. However, BoxGraph needs a rewrite before we can do this, so we'll keep it for now and configure mobx so downstream users have good behaviors */ import { configure } from ...
/* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Release_response_reason, _decode_Release_response_reason, _encode_Release_response_reason, } from "../OSIProtocolSp...
/* eslint-disable react/jsx-props-no-spreading */ import React, { useState } from 'react'; import _ from 'lodash'; import { v4 as uuidv4 } from 'uuid'; import SwipeableViews from 'react-swipeable-views'; import { useQuery } from '@apollo/client'; import { SubmitHandler, useForm } from 'react-hook-form'; import { But...
import React, { FunctionComponent, useState, useMemo, useCallback, useEffect, useRef, RefObject, } from 'react'; import { RawIntlProvider } from 'react-intl'; import BoxedListWithLinks from '@navikt/boxed-list-with-links'; import Header from '@navikt/nap-header'; import Popover from '@navikt/nap-popover'; import Syst...
import { Message, MessageEmbed, User } from 'discord.js'; import * as LifecycleEvents from '../constants/lifecycle-events'; import { Client } from '../interfaces/client'; import { Engine } from '../interfaces/engine'; import { Logger } from '../interfaces/logger'; import { Personality } from '../interfaces/personality...
import React, { FunctionComponent, useCallback, useEffect, useState } from 'react'; import Draggable, { DraggableData, DraggableEvent } from 'react-draggable'; import { MWView } from './MWViewPlugin'; import MWContainerTabBar from './MWContainerTabBar'; type Props = { views: MWView[] onViewClosed: (v: MWView)...
<gh_stars>0 import { DescribeBlock, IParseResults, ItBlock, Location, ParsedNodeTypes } from "jest-editor-support"; import _ from "lodash"; import { parse, sep as pathSeparator } from "path"; import { DESCRIBE_ID_SEPARATOR, TEST_ID_SEPARATOR } from "../constants"; import { createFileNode, createFolderNode, createRootNo...
import React, { useCallback, useEffect, useState } from 'react'; import { useDataProvider, useTranslate, Loading, Error } from 'react-admin'; import { ReactAdminComponentPropsWithId } from 'ra-core'; import { ArrowBack, CheckCircle, Cancel } from '@material-ui/icons'; import { useHistory, useLocation, useParams } from ...
import { spawn } from 'child_process'; import fs = require('fs'); import { BrowserManagerService } from './browser-manager.service'; import fsPromises = fs.promises; const pLimit = require('p-limit'); import { ElasticSearchService } from './elasticsearch.service'; import { JSONQoEInfo } from '../types/api-rest.type'; ...
<reponame>BSH-Werkstatt/datatrain-webclient<filename>src/app/admin/admin.component.ts import { Component, OnInit } from '@angular/core'; import { CampaignComponent } from '../campaign/campaign.component'; import { DefaultService, Campaign, Leaderboard, User, LeaderboardScore, CampaignUpdateRequest, Leader...
import { IDieModification, ModificationType, ICalculatedProbabilities } from '../dieModification'; import { RerollStrategy } from '../rerolls/rerollStrategy'; import { DieType, DieRoll } from '../dieRoll'; import { type } from 'os'; import { AttackPool, Range, AttackPoolResultType, IAttackPool, WeightedAttackPool, Cond...
<reponame>jnordberg/leeroy<filename>src/app.ts import * as assert from 'assert' import * as Bunyan from 'bunyan' import * as cluster from 'cluster' import * as config from 'config' import * as http from 'http' import * as Koa from 'koa' import * as KoaBody from 'koa-bodyparser' import * as Router from 'koa-router' impo...
<reponame>hippy-contrib/HippyWebRenderer<filename>packages/hippy-web-renderer/src/types/index.ts<gh_stars>0 /* * Tencent is pleased to support the open source community by making * Hippy available. * * Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. * All rights reserved. * * Licensed under the Apach...
<filename>src/ui/Debug.ts<gh_stars>0 import { Logger } from 'core/debug/Logger'; import { InputHandler } from 'core/io/Input'; import { UIBase } from 'ui/Base'; export interface DebugFieldInfo { name: string; type: 'output' | 'text' | 'range' | 'radio' | 'number' | 'color' | 'checkbox' | 'button'; callbac...
import { useEffect, useState } from "react" import { useRouter } from "next/router" import Box from '@material-ui/core/Box'; import Head from '../../src/components/Head'; import Header from '../../src/components/Header'; import ComicDetailsComponent from '../../src/components/ListComicDetails'; import { getComicDeta...
import * as React from 'react'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/Button'; import PersonTypeSelect from '../components/common/PersonTypeSelect'; import CountryAutocomplateComponent from './common/CountryAutocomplateComponent'; import CityAutocomplateComponent fro...
<filename>server.ts<gh_stars>0 import express, { Application } from 'express'; import * as fs from 'fs'; import * as React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter } from 'react-router'; import * as AxiosHooks from "axios-hooks"; import * as path from "path"; // App import...
<reponame>PabloSzx/envelop import { gql } from 'graphql-modules'; import querystring from 'querystring'; import { BaseEnvelopAppOptions, BaseEnvelopBuilder, createEnvelopAppFactory, handleRequest } from './common/app'; import { LazyPromise } from './common/base'; import { handleCodegen, WithCodegen } from './common/co...
import React, { useContext, useRef, Ref, ChangeEvent } from 'react' import { HyperfileUrl } from 'hypermerge' import Automerge from 'automerge' import { createDocumentLink, PushpinUrl, parseDocumentLink, HypermergeUrl, } from '../../../ShareLink' import { DEFAULT_AVATAR_PATH } from '../../../constants' import...
<gh_stars>0 import * as PIXI from 'pixi.js'; import { Sprite, Container } from 'pixi.js'; import { Chainsim } from '../'; import { OptionsMenu } from '.'; import { OptionPage } from './page'; import { HorizontalSlider } from './hslider'; import { HSBData, HSBFilters } from '../state'; import { makeHSBFilter } from '../...
<reponame>concord-consortium/collaborative-learning import { useCallback } from "react"; import { useCurrent } from "../../../hooks/use-current"; import { ICase, ICaseCreation, IDataSet } from "../../../models/data/data-set"; import { getGeometryContent } from "../../../models/tools/geometry/geometry-content"; import {...
import React, { FC, MouseEvent, useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'; import { createPortal } from 'react-dom'; import { useConnection } from '@solana/wallet-adapter-react'; import { useNetworkModal } from './useNetworkModal'; import { Select } from './Select'; import { Collapse } fr...
export declare class Yarra<Type> extends Array<Type> { /** * * @param input input indexing template * @param shape shape of array * @returns template of indices */ static toIndices(input: string, shape: number[]): Yarra<any>; static generateTemplate(input: number[][]): Yarra<any>; ...
import React from "react"; // import { useState } from "react"; import { Card, Row, Col, Container, Button, Alert, Dropdown, } from "react-bootstrap"; import moment from "moment-timezone"; import ReactMarkdown from "react-markdown"; import { useActiveUser } from "../UserProvider"; import * as ics from "ic...
import * as React from 'react'; import {useEffect, useState} from 'react'; import {Form, Col, Row, Button} from 'react-bootstrap'; import {Layout} from '../Layout/Layout'; import {Formik, FormikHelpers} from 'formik'; import Input from '../../components/util/Input/Input'; import {LoadingButton} from '../../util/Loading...
<reponame>AtlanticBridge/Atlantic import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { base64 } from 'ethers/lib/utils'; import { FunctionCallerV3Injectable } from "../../core/injectables/contract-injectables/function-callerV3.injectable"; // i...
<filename>src/editor/livegen/code-generators/frontend/generateApi.ts const generateOperation = ( t: 'query' | 'mutation' | 'subscription', schemaType, name ) => `\t${name}: ((props) => (o) => \t\tfullConstruct(options)('${t}', '${name}')(props)(o).then( \t\t\t(response) => response as GraphQLDictReturnType<${sche...
<reponame>wodo/WebTool3 import { AfterContentInit, AfterViewInit, Component, ContentChild, forwardRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'; import {ControlValueAccessor, FormControl, FormControlName, FormGroup, NG_VALUE_ACCESSOR} from '@angular/forms'; import {Dropdown} from 'pr...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, Input, QueryList, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core'; import {BehaviorSubject} from 'rxjs/BehaviorSubject'; import 'rxjs/add/operator/let'; import 'rxjs/add/...
<filename>src/cld/ContextSymbolTable.ts /* * This file is released under the MIT license. * Copyright (c) 2016, 2018, <NAME> * * See LICENSE file for more info. */ "use strict"; import { ParserRuleContext } from 'antlr4ts'; import { SymbolTable, Symbol, ScopedSymbol, SymbolTableOptions, NamespaceSymbol } from "a...
<gh_stars>10-100 import { format, isWithinInterval, eachDayOfInterval, differenceInWeeks, isBefore, isAfter, addDays, addWeeks } from 'date-fns' import { startOfWeek, startOfDay, endOfWeek, isMonday, isTuesday, isWednesday, isThursday, isFriday, isSaturday, isSunday } from 'date-fns' import { AssertionError } from 'ass...
<gh_stars>1-10 import Collection from '@discordjs/collection'; import { EmbedFieldData, MessageEmbedOptions } from 'discord.js'; import Fuse from 'fuse.js'; import { Documentation } from '../website/src/interfaces/Documentation'; import data from './data'; function getNameObj< T extends 'Name' | 'Event' | 'Method' |...
<filename>src/rud.ts /*! Copyright 2016 <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 writi...
<gh_stars>0 import { action, Action, Computed, computed, thunk, Thunk } from "easy-peasy"; import { empty } from "uuidv4"; import { caseIdentifier } from "../input/inputInterfaces"; import { ICase, IGroup, Index } from "./casesInterfaces"; import { calculatePoints } from "./casesLogic"; export interface ICasesModel { ...
// © 2017 <NAME> - All Rights Reserved // Project: HTML53DRenderer // Created on 2017-12-20. // Resources inc import "favicon.ico" import "index.html" import "style.css" import "Awesome.png" import "Blocky.png" import "brick.png" import "grass.png" // Engine inc import IntervalTimer from "Engine/Time/IntervalTimer" ...
import isObject from 'lodash/isObject'; import isFunction from 'lodash/isFunction'; import isUndefined from 'lodash/isUndefined'; import { getOwnKeys } from '@decorize/core/reflect/getOwnKeys'; import { isEqualClass } from '@decorize/core/class/isEqualClass'; import { defineMetadata } from '@decorize/core/reflect/defin...
<gh_stars>0 import { Controller, Get, Post, Body, UseGuards, Req } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger'; import { AuthService, IUserData } from './auth.service'; import { JwtService } from '@nestjs/jwt'; import { Regi...
<reponame>geomen888/jit-driver-mobile /* eslint-disable no-void */ import WSS from 'ws'; import Debug from 'debug'; import * as R from 'ramda'; import axios, { AxiosInstance, AxiosRequestConfig } from 'axios'; import { ActionWithPayload, ApiCallType, WssCallType, ApiCallWithConfig, WssCallWithConfig } from '....
import { Button, List } from "antd"; import React from 'react'; import ReaderEpisodeView from '../../components/page/reader/reader-episode-view'; import ThemingSettingsView from '../../components/page/reader/theming-settings-view'; import LoginRequiredView from "../../components/user/login-required-view"; import { Book...
<filename>desktop/flipper-ui-core/src/dispatcher/plugins.tsx /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import type {Store} from '../reducers/index'; import ...
<reponame>kylehg/ksuid.js /** * Isomorphic JS implementation of K-sortable UUIDs (KSUIDs) * * Based on Segment's reference Golang KSUID, it includes: * - Use of modern browser `crypto.getRandomValues()` API when available * - Use of Node `crypto.randomFillSync()` API when available * - Backing through JS native T...
/* undefined MaaS payment source schema !!! AUTO GENERATED BY IOTSFJS REFRAIN FROM MANUAL EDITING !!! See https://www.npmjs.com/package/io-ts-from-json-schema */ import * as t from 'io-ts'; import * as Station_ from '../../../core/components/station'; import * as Address_ from '../../../core/components/address'; e...
import React, { useEffect, useState } from "react"; import { DataView } from "@aragon/ui"; import { getEpoch, getBatchBalanceOfCoupons, getBatchBalanceOfCouponsUnderlying, getBatchCouponsExpiration, getCouponEpochs, } from "../../utils/infura"; import { ESD, ESDS } from "../../constants/tokens"; import { for...
import { EventEmitter } from './utils/emitter'; import { decode, encode } from './modules/parser'; import { Channels, Channel } from './modules/channels'; import { Listener, Configurations, Options, Message } from './utils/types'; declare const window: any; const Socket: any = window.MozWebSocket || window.WebSocket; ...
/* eslint-disable @typescript-eslint/no-unsafe-return */ import type { BaseObjectLikeTypeImpl, BaseTypeImpl } from './base-type.js'; import type { BasicType, LiteralValue, NumberTypeConfig, OneOrMore, StringTypeConfig, Type, Visitor } from './interfaces.js'; import type { ArrayType, KeyofType, LiteralType, RecordType,...
<reponame>fsilvaco/baseweb<filename>src/map-marker/index.d.ts import * as React from 'react'; import {Override} from '../overrides'; export interface FLOATING_MARKER_ANCHOR_POSITIONS { none: 'none'; topLeft: 'top-left'; topRight: 'top-right'; bottomRight: 'bottom-right'; bottomLeft: 'bottom-left'; } export ...
<gh_stars>1-10 import { h } from "@cycle/react" import { a, b, div, img, li, span, ul } from "@cycle/react-dom" import { dataProvider } from "components/admin/providers" import { normalize, setupPage } from "csstips" import { px } from "csx" import { format, formatISO, parseISO } from "date-fns" import { renderToStatic...
<filename>accessibility-checker-extension/src/ts/devtools/MultiScanData.tsx /****************************************************************************** Copyright:: 2020- IBM, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
<gh_stars>0 /** * A simple cleaning bot for Mangrove which monitors select markets and * snipes and collects the bounty of offers that fail. * @module */ import config from "./util/config"; import { logger } from "./util/logger"; import Mangrove from "@mangrovedao/mangrove.js"; import { WebSocketProvider } from "...
import { useRef, useEffect, useState } from 'react'; import { useOrientation, useMedia } from 'react-use'; import { useFullpageOverflow } from 'helpers/use-fullpage-overflow'; import ReactModal from 'react-modal'; // components import { Text, Icon } from 'design-system/atoms'; // assets import FoodWebSvg from 'public...
import * as functions from 'firebase-functions'; import algoliasearch from 'algoliasearch' import admin = require('firebase-admin'); // // Start writing Firebase Functions // // https://firebase.google.com/docs/functions/typescript // // export const helloWorld = functions.https.onRequest((request, response) => { // ...
<reponame>lancehalberd/spirit-world import { AndLogicCheck, GameState, LogicCheck, OrLogicCheck } from 'app/types'; export function andLogic(...logicChecks: LogicCheck[]): AndLogicCheck { return { operation: 'and', logicChecks}; } window['andLogic'] = andLogic; export function orLogic(...logicChecks: LogicCheck[]...
import * as React from "react"; import { Component, listenTo, dispatch, handles, dispatchAction, StoreComponent } from "../CarbonFlux"; import { richApp } from "../RichApp"; import Panel from '../layout/Panel' import { Brush, app, ChangeMode, Shape, Selection, BrushType } from "carbon-core"; import bem from '../utils/c...
<gh_stars>1-10 const cardShadow = '1px 2px 6px rgba(0,0,0,.13)' const gray = { _0: '#FFFFFF', _15: '#FAFAFA', _20: '#F5F5F5', _25: '#EDEDED', _30: '#E4E4E3', _35: '#D9D9D8', _40: '#CCCCCC', _45: '#BABABA', _50: '#737373', _60: '#595959', _80: '#4D4D4D', _85: '#333333', _90: '#141313', _100: '#000000' } ...
/* Licensed to LinDB under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. LinDB licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the L...
<reponame>VergauwenT/vlinder<filename>dashboard/src/app/d3/Legend.ts /* eslint-disable */ // @ts-nocheck import * as d3 from 'd3'; // adapted from https://observablehq.com/@d3/color-legend export function legend ({ color, title, tickSize = 6, width = 320, height = 44 + tickSize, marginTop = 18, marginRig...
<filename>app/features/distnet/cache.ts import envPaths from 'env-paths'; import fs from 'fs'; import path from 'path'; import * as R from 'ramda'; import url from 'url'; import { APP_NAME, CacheData, Settings, Source, UrlData, } from './distnetClasses'; const fsPromises = fs.promises; const paths = envPat...
import { Box, BoxProps, Stack, Stat, StatGroup, StatHelpText, StatLabel, StatNumber, Text, useColorModeValue } from '@chakra-ui/react' import { useMotionValue, useReducedMotion, useSpring } from 'framer-motion' import React from 'react' import { DoseLevelIndicator } from './DoseLevelIndicator' expo...
/** * @license * Copyright 2016-2019 the original author or 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 Packages: const fs = require('fs'); const rpcs = require('../static/rpcs.json'); // Imports: import { query } from './functions'; import { Address } from 'cookietrack-types'; import { BigNumber, ethers } from 'ethers'; import { beethovenx } from './ABIs'; import { vault as beethovenxVault } from './routes...
// Copyright (C) 2022 Toitware ApS. All rights reserved. // Use of this source code is governed by an MIT-style license that can be // found in the LICENSE file. import { Box, Button, createStyles, Grid, Link, Theme, Typography, withStyles, WithStyles } from "@material-ui/core"; import React from "react"; import Scrol...
<filename>src/figma-plugin/figutil.ts export type ContainerNode = BaseNode & ChildrenMixin export const $ = (q :string, el? :HTMLElement) :HTMLElement|null => (el || document).querySelector(q) export const $$ = (q :string, el? :HTMLElement) :HTMLElement[] => { let o = (el || document).querySelectorAll(q) ;(o a...
<reponame>mchaov/the-collector<filename>src-client/index.ts // https://www.w3.org/TR/navigation-timing-2/ // http://siusin.github.io/perf-timing-primer/ import * as UAParser from "ua-parser-js"; import { addToDom } from "./addToDom"; import { hashString } from "../helpers"; import { reportEvent } from "./reportEvent";...
<gh_stars>0 // ============================= // 型定義 // ============================= /** 角度(ラジアン)[rad] */ export type Radian = number; /** 角度(度)[°] */ export type Degree = number; /** 視野角の値の基準の定数文字列 */ export const FIELD_OF_VIEW_BASIS = { HORIZONTAL_4_3: "4:3 Horizontal", HORIZONTAL_16_9: "16:9 Horizontal", HO...
<reponame>FeLiNa22/emby-party-server<filename>src/Server.ts import express from "express"; import { createServer } from "http"; import { Server, Socket } from "socket.io"; import { PartyManager } from "./PartyManager"; import { SocketParty } from "./SocketParty"; import { Message } from "./Interfaces/Message"; import {...
import * as _ from "lodash-es" import * as path from "node:path" import { Path } from "@browser/core/Path" import * as Native from "@module/native/ts/browser" export class Dir { static readonly HOME: string = "home" private wd: string = Dir.HOME private dp: number = 0 private rg: RegExp | null = null get pwd()...
/** * This module is dynamically loaded in the sandbox env only and provides support for * generating dummy data for the demo site. Disable this behavior from src/index */ import { addDays, differenceInMonths } from 'date-fns'; import { Store } from 'redux'; import { Employee, Reservation, RootState } from '../type...
/* * MIT License * * Copyright (c) 2022 Staatsbibliothek zu Berlin - Preußischer Kulturbesitz * * 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 l...
import '@jxa/global-type'; // import { Keynote } from '@jxa/types/src/core/Keynote'; import { run } from '@jxa/run'; import { Slide } from './slide'; const getDocuments = async (conditions: { [key: string]: any }) => { const res: string = await run(conditions => { let documents; if (conditions) { do...
<filename>src/core/ProCoSysSettings.ts import { IAuthService } from 'src/auth/AuthService'; import SettingsApiClient from '@procosys/http/SettingsApiClient'; const localSettings = require('../../settings.json'); //#region types interface FeatureConfig { url: string; scope: Array<string>, version?: string;...
import {ComputedStylePropertyChange, ComputedStyleRecord} from "./computed-style-record"; import {ComputedStyleObserver} from "./computed-style-observer"; import {ComputedStyleCallback} from "./computed-style-callback"; import {IComputedStyleObserver} from "./i-computed-style-observer"; import {ComputedStyleObserverIni...
<filename>src/Ljbc1994.Blazor.IntersectionObserver/src/index.ts<gh_stars>10-100 export interface DotNetObjectRef { invokeMethodAsync(methodName: string, ...args: any[]): Promise<any>; } export interface IntersectionObserverItemElement { element: Element; elementId: string; } export interface IntersectionObserve...
<gh_stars>0 import { getCoordUnitFromUnitSpec, ICoordUnit } from '~/shared'; import { decodeGridSpec, IGridSpecKey, } from '~/ui/featureEditors/LayoutEditor/models/GridDefinitions'; import { createSimpleSelector } from '~/ui/utils'; import { appState, IEnvBoolPropKey } from './AppState'; import { getKeyboardDesignB...
import React from 'react' import styled from 'styled-components' import { NavLink, useLocation } from 'react-router-dom'; interface Props { transparent?: boolean; } const TopNavItem = ({ iconClassName, text, to, exact, ...props }: any) => { return ( <StyledTopNavItem {...props}> <NavLink exact={exact} ...
import classNames from 'classnames' import { useEffect, useMemo, useRef, useState } from 'react' import type { FC } from '../helpers/types' import { rangeNumber } from '../helpers/util' import { useTouch } from '../hooks/use-touch' import { Image } from '../Image' import type { OnLoad } from '../Image/types' import typ...
/* eslint global-require: off, no-console: off */ /** * This module executes inside of electron's main process. You can start * electron renderer process from here and communicate with the other processes * through IPC. * * When running `yarn build` or `yarn build-main`, this file is compiled to * `./src/main.pr...
// author: <NAME>, 2019 import * as Markdown from 'react-markdown'; import * as React from 'react'; import { Grid, Typography } from '@material-ui/core'; import { WithStyles, withStyles } from '@material-ui/core/styles'; import { editDistDpSpaceComplex, editDistDpTimeComplex, editDistDynCode, editDistRecCode, ...
import { EDBEntity, TProduct, TProductReview, TProductReviewFilter } from '@cromwell/core'; import { getGraphQLClient } from '@cromwell/core-frontend'; import { Done as DoneIcon, HourglassEmpty as HourglassEmptyIcon, ThumbUp as ThumbUpIcon, Visibility as VisibilityIcon, } from '@mui/icons-material'; imp...
<gh_stars>10-100 const marked = require('marked'); const highlight = require('highlight.js'); const handlebars = require('handlebars'); const fs = require('fs'); import { Color, isColor, isColorArray, roundTo } from './value'; import { getSimilarColors, getDeltaE, filterColor } from './color-functions'; import { Rende...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } from '@angular/core'; import { AbstractControl, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; import { SettingsService, _HttpClient } from '@delon/theme'; import { copy } from '@delon/util/browser'; import { NzMod...
import React from "react" import {createStyles, Theme, WithStyles} from "@material-ui/core"; import withStyles from "@material-ui/core/styles/withStyles"; import {Label} from "../models/Label"; import TextField from "@material-ui/core/TextField"; import Api from "../Api"; import CircularProgress from "@material-ui/core...
<filename>src/trajectory/trajectory-player.ts /** * @file Trajectory Player * @author <NAME> <<EMAIL>> * @private */ import { Signal } from 'signals' import { defaults, createParams, updateParams } from '../utils' import Trajectory from './trajectory' export type TrajectoryPlayerInterpolateType = ''|'linear'|'sp...
<filename>src/networking/httpManager.ts /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/no-explicit-any */ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource } from "axios"; import urljoin from "url-join"; import { ApiScope } f...
import React, { useEffect, useState, useCallback } from "react" import { PagnitionComponent } from "../types" import styled from "styled-components" import { FlexRow } from "../layout" import Icon from "@mdi/react" import { useTheme, useThemeMode } from "../theme" import { getColorFromTheme } from "../util" import * as...
<reponame>KerryCodes/miniReact import { reconcileChildrenArray, placeSingleChild, reconcileSingleTextNode } from "./diff"; import { Fiber, rootFiberNode } from "./fiber" import { recoverIndex } from "./hooks"; export let currentlyRenderingFiber: Fiber export function performUnitOfWork(workInProgress: Fiber) { re...
import React from 'react'; import { arcticReference, graticule, iceLayers, iceLayers1979 } from './layers'; import { ModelSchema } from '../../../types'; import Extent from 'esri/geometry/Extent'; import SpatialReference from 'esri/geometry/SpatialReference'; import LayerList from 'esri/widgets/LayerList'; import TimeS...
<filename>media/editor/hooks.ts /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import React, { DependencyList, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"; imp...
<gh_stars>0 import React from "react"; import { Currency, FiatCurrency } from "./common/currency"; import { BIP44 } from "@everett-protocol/cosmosjs/core/bip44"; import { defaultBech32Config } from "@everett-protocol/cosmosjs/core/bech32Config"; import { ChainInfo, AccessOrigin } from "./background/chains"; import { ...
<reponame>hotcoconuts/ScriptPlayer //Run the Webpack task runner to pack it, //Compiled Version should be @ dist/webbundle.js /* Imports */ import { ButtplugClient } from "buttplug"; import { Device } from "buttplug"; import * as Messages from "buttplug"; /* interfaces */ interface IFunAction { pos: number; a...