text
stringlengths
3.08k
15.5k
// https://github.com/radix-ui/primitives/tree/main/packages/react/dialog/src import { styled, keyframes } from "../stitches.config"; import { useState } from "react"; import { blackA } from "@radix-ui/colors"; import { Cross2Icon } from "@modulz/radix-icons"; import * as DialogPrimitive from "@radix-ui/react-dialog";...
import { Column, Relationship, ForeignKeyConstraint } from '../../types/tables' import TableClass from './table-class' import uuidv1 from 'uuid/v1' export interface Mapping { from: ColumnProperty to: ColumnProperty } export abstract class BaseProperty { public readonly tableClass: TableClass public readonly na...
import { Plugin, PluginBuilder } from './pluginbuilder.ts'; import * as styles from './google.css'; const HIGHLIGHTED_LINK_MARGIN = 100; class GooglePage { links: HTMLElement[]; nextPage: HTMLAnchorElement; prevPage: HTMLAnchorElement; tabsDict: object; constructor() { this.links = Array.prototype.slic...
import { Component, OnInit, Input, EventEmitter } from '@angular/core'; import { CdsApiService } from '../../../../service/cds-api.service'; import { DataShareService} from '../../../../service/data-share.service'; import { NgForm } from '@angular/forms/src/directives/ng_form'; class EditInputInfo { name: String; ...
import { Option } from '@glimmer/interfaces'; import * as AST from '../types/nodes'; import { voidMap } from '../parser/tokenizer-event-handlers'; import { escapeText, escapeAttrValue } from './util'; function unreachable(): never { throw new Error('unreachable'); } interface PrinterOptions { entityEncoding: 'tra...
import classnames from 'classnames'; import React from 'react'; import { connect, ConnectedProps } from 'react-redux'; import { selectIsChiprackDisabled } from '@ag/core'; import { setNewBet } from '@redux/bet/actions'; import { selectIsBetOnSuperSix } from '@redux/bet/selectors'; import { selectIsTieWin } from '@red...
<reponame>SandroRybarik/lilkit<filename>src/core.ts /// <reference lib="DOM" /> export type LilkitAttributes<T> = { [key in keyof T]?: T[key] | ObservableVariable | ObservableVariableMap | ObservableVariableCompute; }; export interface ObservableVariableMapCallback { // <T extends HTMLElement, K extends keyof...
<filename>projects/ng-aquila/src/schematics/utils/testing/test-setup.ts import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Tree } from '@angular-devkit/schematics'; import * as shx from 'shelljs'; import { getSystemPath, normalize, virtualFs, JsonParseMode, parseJson } from...
<reponame>xDemon200/turf /** * Turf is a modular geospatial analysis engine written in JavaScript. It performs geospatial * processing tasks with GeoJSON data and can be run on a server or in a browser. * * @module turf * @summary Geospatial analysis for JavaScript */ export { default as isolines } from "@turf/is...
import { Readable } from 'stream'; import { setupDatabase } from '../../database'; import { DatasetId, DatasetValues } from '../../server/types'; import { DatasetProvider } from './datasetProvider'; function getNumberOfColumns(file: string[][]) { const numColumns = file[0].length; file.forEach((row) => { if (...
import React, { useEffect, useState } from 'react'; import type { Coord } from './types'; type Placement = { color: 'black' | 'white'; coord: Coord; }; type Step = { type: 'place' | 'remove'; placement: Placement; }; function Board(): JSX.Element { const [windowWidth, setWindowWidth] = useState<number>(win...
import { substrBetween } from './substrBetween'; import { html } from './html'; import { JSONSchemaForWebApplicationManifestFiles } from './manifest'; import { splitBetween } from './substrBetween'; declare const MY_NS: any; const headers = { "content-type": "text/html;charset=UTF-8", 'Access-Control-Allow-Origi...
<gh_stars>0 import type { UserInfo } from '/#/store'; import type { ErrorMessageMode } from '/@/utils/http/axios/types'; import { defineStore } from 'pinia'; import { store } from '/@/store'; import { RoleEnum } from '/@/enums/roleEnum'; import { PageEnum } from '/@/enums/pageEnum'; import { ROLES_KEY, TOKEN_KEY, USE...
<gh_stars>1-10 /* eslint-disable @typescript-eslint/camelcase */ /* tslint-disable variable-name */ import { isFunction, assign } from '@m-fe/utils'; import { cubicInOut, cubicOut } from './easing'; export interface TransitionConfig { delay?: number; duration?: number; easing?: (t: number) => number; css?: (t...
<filename>src/app/service/auth.service.ts import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, ReplaySubject } from 'rxjs'; import { environment } from '../../environments/environment'; import { NotificationService } from './notifi...
import { FBNode, FBTargetNode, INode, IParamAny, IParam, OP, ParamType, PulseAction, Paramable } from './Types' import deepEqual from 'deep-equal' import { Guid } from 'guid-typescript' import { option, array } from 'fp-ts'; interface ParsedAction { command: string, delay: number, args: (string | number)...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { TodoistApi } from "@doist/todoist-api-typescript"; const api = new TodoistApi(window.TODOIST_TOKEN); import { createTodoistTaskString, dedupTaskList, // getTodoistProject, } from "./utils/util"; export const pullTasks = async ({ todoistFilter, ...
<gh_stars>1-10 import { AccountData, AddAccountParams } from 'types'; import { find, get, keyBy, omit, size } from 'lodash'; import TronWeb from 'tronweb'; import { BigNumber } from 'bignumber.js'; import log from 'electron-log'; import * as mainApi from '../../MessageDuplex/handlers/mainApi'; import { encrypt, crypto...
import { ProofOfBurn__factory, TestTransfer, TestTransfer__factory, BLSAccountRegistry__factory } from "../../types/ethers-contracts"; import { serialize } from "../../ts/tx"; import * as mcl from "../../ts/mcl"; import { StateTree } from "../../ts/stateTree"; import { AccountRegistry } from "../../ts/a...
import { Grid, Typography } from "@mui/material"; import { Box } from "@mui/system"; import CollectionButton from "../components/buttons/CollectionButton"; import VideoBackground from '../components/VideoBackground'; import BottomRightLogo from "../components/logos/BottomRightLogo"; import TopLeftLogo from "@/component...
import * as React from 'react'; import Ersatz from '@formidable-webview/ersatz'; import { waitForErsatz, waitForWindow } from '@formidable-webview/ersatz-testing'; import { render } from '@testing-library/react-native'; import { View } from 'react-native'; import dummyHelloScript from './feat/DummyHello.webjs'; imp...
import { ColorModes, fontSmoothPixel, lineHeight, pxRem, theme, timing, variant, } from '@codecademy/gamut-styles'; import styled from '@emotion/styled'; import React, { ReactNode } from 'react'; export type ToolTipAlignment = | 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | ...
<reponame>scriptex/atanas.info import { drag } from 'd3-drag'; import { range } from 'd3-array'; import { randomUniform } from 'd3-random'; import { select, Selection } from 'd3-selection'; import { forceX, forceY, forceLink, Simulation, forceCenter, forceCollide, forceManyBody, forceSimulation } from 'd3-force...
import { DBCommentAdapter, AddPublicCommentArgs, UpdatePublicCommentArgs, TakeActionOnCommentArgs, OptionalComment, Comment, GetCommentsArgs, GetPublicCommentsArgs, ConnectionResult, CommentState, LimitType, InputCursorType, CommentSort, SortOrder, PublicComment, OptionalPublicComment } ...
<gh_stars>0 import bodyParser from "body-parser"; import express, { Response } from "express"; import path from "path"; import { Course, CourseDetails, CourseExercise, CourseSettings, ExerciseDetails, OldSubmission, Organization, SubmissionFeedbackResponse, SubmissionResponse, S...
import { Emitter, CompositeDisposable } from 'atom' import { debug, warn, mkError, EOT } from '../util' import { EOL } from 'os' import * as CP from 'child_process' import Queue = require('promise-queue') import pidusage = require('pidusage') if (!Symbol.asyncIterator) { Object.defineProperty(Symbol, 'asyncIterator',...
<reponame>dev-expert/monokle import path from 'path'; import {ipcRenderer} from 'electron'; import {createSlice, Draft, PayloadAction, createAsyncThunk} from '@reduxjs/toolkit'; import {AppConfig, Themes, TextSizes, Languages} from '@models/appconfig'; import electronStore from '@utils/electronStore'; import {PROCESS_E...
<filename>lib/EventTarget.ts import {notUAN, TYPE, typeIs, typeIsArray, typeIsFunction, typeIsString, typeIsTrue} from './utils'; import { EventListenerType, IEventTarget, EventListenerOptions, EventTargetData, IEvent, IErrorEvent, IEventListenerObject, GetEventListenerParametersType } from './IEventTarget'; ...
<reponame>u9520107/ringcentral-js-widgets import { recordStatus } from './recordStatus'; import { sessionStatus } from './sessionStatus'; import { camelize } from '../../lib/di/utils/utils'; import callDirections from '../../enums/callDirections'; import { WebphoneSession, WebphoneSessionRequestHeaders, PartyData...
<gh_stars>100-1000 /* * This file is released under the MIT license. * Copyright (c) 2017, 2021, <NAME> * * See LICENSE file for more info. */ import * as fs from "fs-extra"; import * as crypto from "crypto"; import * as path from "path"; import { ExtensionContext, Uri, window, Webview, commands, ProviderResult ...
import type { NextPageContext, Redirect } from 'next'; import Router, { NextRouter, useRouter } from 'next/router'; import React, { ComponentType, ReactNode, Suspense, useEffect, useMemo, useState, } from 'react'; import { loadQuery, PreloadedQuery, useQueryLoader } from 'react-relay/hooks'; import { Envi...
<gh_stars>10-100 import { TwirpError, twirpErrorFromResponse } from "../error"; import { createEventEmitter, Emitter } from "../eventEmitter"; export type ClientConfiguration = Partial<{ /** * The base URL for the RPC. The service path will be appended to this string. */ baseURL: string; /** * HTTP head...
import React, { useState, useEffect } from 'react'; import InfiniteScroll from 'react-infinite-scroll-component'; import { Link, RouteComponentProps } from 'react-router-dom'; import { Button, Table } from 'reactstrap'; import { Translate, getSortState } from 'react-jhipster'; import { FontAwesomeIcon } from '@fortawes...
import { CredentialRecord, CredentialState } from '@aries-framework/core' import { useCredentialByState } from '@aries-framework/react-hooks' import AsyncStorage from '@react-native-async-storage/async-storage' import { StackScreenProps } from '@react-navigation/stack' import React, { useMemo } from 'react' import { us...
<filename>src/utils/puppeteer.ts /* * Copyright (c) 2020, jayree * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import puppeteer from 'puppeteer'; // eslint-disable-next-line @types...
<reponame>yishengjiang99/electrode<filename>packages/xarc-app-dev/src/config/babel/babelrc.ts<gh_stars>0 /* eslint-disable @typescript-eslint/no-var-requires, no-console, @typescript-eslint/ban-ts-ignore */ /* * A single babel RC for all transpiling, including client and server code. * When transpiling for node.js, ...
<gh_stars>0 import {Options} from "../lib/cli-options"; import GUI from "./GUI"; import SocketServer from "./SocketServer"; import Player from "../tournament/model/Player"; import { Tournament, TournamentOptions } from '../tournament/Tournament'; import { Lobby } from "../tournament/model/Lobby"; /** * Load the packa...
type SubscriptionStop = () => void export class EventSubscription { stop: SubscriptionStop private _internal: { state: 'init'|'active'|'canceled', cancelReason?: string, activatePromises: { callback?: (activated: boolean, cancelReason?: string) => void, resolve?: () => void, reject?: (reason: any) => void}[] }...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { get } from 'lodash'; import { AggFieldNamePair, EVENT_RATE_FIELD_ID ...
<reponame>mauricionr/workers-ecommerce-example<gh_stars>10-100 import { AwsClient } from 'aws4fetch' import Stripe from 'stripe' import config from '../../../config' import { json, mailgun, sanityQuery, stripe } from '../helpers' import { persist, retrieveByCode } from '../login' const sanityInfoForProduct = async (pr...
/* * Copyright 2018-2020 TON DEV SOLUTIONS LTD. * * Licensed under the SOFTWARE EVALUATION License (the "License"); you may not use * this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS I...
<reponame>jensengar/stanza // ==================================================================== // XEP-0004: Data Forms // -------------------------------------------------------------------- // Source: https://xmpp.org/extensions/xep-0004.html // Version: 2.9 (2007-08-13) // // Additional: // ----------------------...
/** * @author WestLangley / http://github.com/WestLangley * */ import * as THREE from 'three'; import { addAttribute } from '../ThreeAdaptUtil'; class LineSegmentsGeometry extends THREE.InstancedBufferGeometry { isLineSegmentsGeometry: boolean = true; constructor() { super(); this.type = 'Li...
<reponame>qdraw/starsky import { Dispatch, RefObject, SetStateAction, useEffect, useRef, useState } from "react"; import { callHandler } from "./call-handler"; import { debounce } from "./debounce"; import { getCurrentTouches } from "./get-current-touches"; import { ICurrentTouches } from "./ICurrentTouches...
<gh_stars>0 import { OffersApproveGroupModel } from '../models/offers-approve-group.model'; import { IAvailableProposalsFilters } from './../models/proposals-filters'; import { Action, Selector, State, StateContext } from "@ngxs/store"; import { StateStatus } from "../models/state-status"; import { Injectable } from "@...
import React, { useEffect, useState } from 'react'; import * as yup from 'yup'; import { useFieldArray, useForm } from 'react-hook-form'; import { ApolloQueryResult, gql, OperationVariables, useMutation } from '@apollo/client'; import { yupResolver } from '@hookform/resolvers/yup'; import { Modal } from 'react-bootstra...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as i18n from '../../../i18n/i18n_ast'; import {toPublicName} from '../../../i18n/serializers/xmb'; import * a...
// Copyright 2020 Google 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 agreed to in ...
import * as React from "react"; import { CREATE_OFFICER_SCHEMA } from "@snailycad/schemas"; import { Button } from "components/Button"; import { FormField } from "components/form/FormField"; import { Input } from "components/form/inputs/Input"; import { Select } from "components/form/Select"; import { Loader } from "co...
import httpProxy from "http-proxy"; import express from "express"; import { IncomingHttpHeaders } from "http"; import groupBy = require("lodash/groupBy"); import { MAGDA_TENANT_ID_HEADER, MAGDA_ADMIN_PORTAL_ID } from "magda-typescript-common/src/registry/TenantConsts"; import { GenericProxyRouterOptions } fro...
<filename>src/intl/fi.ts const fi = { 'pages': 'Pages', 'articles': 'Articles', 'workflows': 'Workflows', 'locale': 'Locale', 'locales': 'Locales', 'tag': 'Tag', 'links': 'Links', 'releases': 'Releases', 'options': 'Options', 'value': 'Value', 'date': 'Date', 'order': 'Order', 'description'...
<reponame>resin-io-playground/etcher-sdk /* * Copyright 2018 balena.io * * 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 re...
<filename>src/utils/common.ts<gh_stars>10-100 import { CALENDAR_OFFSET_LEFT, SCROLLBAR_WIDTH } from '../common/constants'; import { CALENDAR_VIEW, TIME_FORMAT } from '../common/enums'; import { CalendarEvent, DraggingDisabledConditions } from '../common/interface'; import { DateTime } from 'luxon'; import { parseToDate...
import * as path from 'path'; import * as os from 'os'; import * as chalk from 'chalk'; import { ConfigFile, IConfig, CliFlag, IonicEnvironment } from '../definitions'; import { FatalException } from './errors'; import { prettyPath } from './utils/format'; import { ERROR_FILE_NOT_FOUND, ERROR_FILE_INVALID_JSON, fsMkd...
type Offset = { x: number, y: number } export type Position = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topRight' | 'topLeft' | 'bottomRight' | 'bottomLeft' | number | Offset export type Radius = 'natural' | 'circular' type Options = { distance?: number reset?: boolean radius?: Radius position?: Po...
/***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens...
import { getRandStr } from '@cromwell/core'; import MagicString from 'magic-string'; import { Plugin } from 'rollup'; // Code borrowed from https://github.com/eight04/rollup-plugin-external-globals const { createFilter } = require("@rollup/pluginutils"); const defaultDynamicWrapper = id => `Promise.resolve(${id})`; ...
import React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import toast from 'react-hot-toast'; import { IStatementExecution, IStatementResult, IQueryResultExporter, } from 'redux/queryExecutions/types'; import * as queryExecutionsActions from 'redux/queryExecutions/action'; import ...
// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT license. import Entry from "./HarFile/entry.js"; import Config from "./config.js"; import Logger from "./logger.js"; import HarFile from "./HarFile/harFile.js"; import HarFileList from "./harFileList.js"; import harServerUrl fro...
import React, { Component } from 'react'; import { IProps, IState } from '../../libs/interfaces'; import { Utils } from '../../libs/Utils'; import { Label } from '../Label'; import { Button, TSize } from '../Button' import { InputErrors, TError } from '../InputErrors'; import { Radio } from './Radio'; type TLabelPosit...
import { FocusEvent, KeyboardEvent, MouseEvent, useEffect, useRef, } from "react"; import { getPopupRole } from "ariakit-utils/dom"; import { useEvent, useForkRef, useId } from "ariakit-utils/hooks"; import { useStore } from "ariakit-utils/store"; import { createComponent, createElement, createHook, } f...
import React, { useRef } from 'react'; import { DockingEvent, IDockManager, DockEvent, DockPosition, Point, RenderEvent, CDockForm } from './interface'; import DockLayout from './DockLayout'; import { CDockPanel, FormActivateEvent } from '..'; export interface Theme { backgroundColor1?: string; backgroundColor2?: ...
import { WalkEntry } from "./deps.ts"; import { basename, dirname, extname, join, relative } from "./deps.ts"; import { fm } from "./deps.ts"; import { slugify } from "./deps.ts"; import { render } from "./render.ts"; import * as attrs from "./attributes.ts"; import { SiteConfig } from "./config.ts"; import { INDEX_FIL...
import tps=require("./types") import {HasType} from "./types"; export function sort(vl:any[],t:tps.Type, property:string,asc:boolean):any[]{ if (vl) { var pr = tps.service.property(t, property); if (pr) { var rst = tps.service.resolvedType(pr.type); var res = vl.sort((x1, x...
import Link from 'next/link'; import { FC, useState } from 'react'; import { FaChevronRight } from 'react-icons/fa'; import ReadImage from '../shared/ReadImage'; import { FaRegHeart } from 'react-icons/fa'; import { BsSuitHeartFill } from 'react-icons/bs'; import FollowIcon from '@/components/shared/Icon'; import { man...
import axios from 'axios'; import scrapeIt from 'scrape-it'; import { decode as decodeHtmlEntities } from 'html-entities'; import type { SlackInterface } from '../lib/slack'; import { escapeRegExp, sample } from 'lodash'; import qs from 'querystring'; interface SongInfo { phrase: string; paragraph: string; ...
"use strict"; import ILevel = require("../curious/ILevel"); import Game = require("../curious/Game"); import Utils = require("../curious/Utils"); import DescOpts = require("../game/runner.options"); class Level_001_Intro implements ILevel { public imgFolder = "/assets/level_001/img/"; private JACK =...
import { PinStore } from "../pin-store"; import { StateStore } from "../state-store"; import CID from 'cids'; import { AnchorStatus, SignatureStatus, Stream, PinningBackend, StreamState, CommitType, TestUtils, } from '@ceramicnetwork/common'; let stateStore: StateStore let pinning: PinningBackend const N...
import { Box, Center, Divider, Flex, Heading, Stack } from "@chakra-ui/layout"; import { Alert, AlertDescription, AlertTitle, Progress, Radio, RadioGroup, } from "@chakra-ui/react"; import { Trans } from "@lingui/macro"; import MyHead from "components/common/MyHead"; import SubText from "components/common/S...
import fs from 'fs-extra'; import { GitUrl } from 'git-url-parse'; import got from 'got'; import fetch, { HeadersInit } from 'node-fetch'; import os from 'os'; import * as path from 'path'; import { Stream } from 'stream'; import tar from 'tar'; import { promisify } from 'util'; import { preConfiguredAlias } from './en...
import { Menu, MenuDivider, MenuItem } from '@blueprintjs/core/lib/esm/components'; import { ContextMenu2, ContextMenu2ContentProps } from '@blueprintjs/popover2'; import { clipboard, ipcRenderer } from 'electron'; import React, { forwardRef, SyntheticEvent, useEffect } from 'react'; import styled from 'styled-componen...
<reponame>bliiitz/mangrove import { logger } from "./util/logger"; import Mangrove from "@mangrovedao/mangrove.js"; import Big from "big.js"; import get from "axios"; Big.DP = 20; // precision when dividing Big.RM = Big.roundHalfUp; // round to nearest /** * Configuration for an external oracle JSON REST endpoint. *...
var teaseManager: TeaseManager; var settingsManager: SettingsManager; class Tease { private _id: number; private _title: string; private _author: string; private _thumbnail: string; private _hasSaveState: boolean; constructor(id: number) { this._id = id; } static fromObject(...
import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import composeClasses from '@mui/base/composeClasses'; import { styled, useThemeProps } from '../styles'; import { ListItemProps, ListItemTypeMap } from './ListItemProps'; impo...
/* eslint-disable react/jsx-key */ /* eslint-disable @next/next/no-img-element */ import { Popover, Transition } from '@headlessui/react' import UnstyledLink from '@/components/links/UnstyledLink' import { MenuIcon, XIcon, } from '@heroicons/react/outline' import { Fragment, useState, useEffect } from 'react' con...
<gh_stars>0 import ProcessingSketch from '../ProcessingSketch'; import { Matrix } from '../../utils/Matrix'; import PoissonDiskSampling from 'poisson-disk-sampling'; import { Color, Graphics, Image } from 'p5'; let matrix: Matrix<number>; const imageName = 'michele-caliani-iLAAT1E-H_8-unsplash.jpg'; const NUM_VARIANTS...
<reponame>stefb965/vs-deploy /// <reference types="node" /> // The MIT License (MIT) // // vs-deploy (https://github.com/mkloubert/vs-deploy) // Copyright (c) <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation f...
require("dotenv").config(); import Application, { ApplicationResponse, ApplicationModel } from "../../Classes/Application"; import { Arg, Mutation, Query, Resolver } from "type-graphql"; import { ObjectIdScalar } from "../myScalars/ObjectId"; import { VendorModel } from "../../Classes/Vendor"; import { GraphQLUpload } ...
import { buildEmitter } from "../../shared/lib/event"; import { AlbumEntry, AlbumEntryPicasa } from "../../shared/types/types"; import { setupAutocolor } from "../features/autocolor"; import { setupBlur } from "../features/blur"; import { setupBrightness } from "../features/brightness"; import { setupBW } from "../feat...
import { chain, isRight, left, map, right } from "fp-ts/lib/Either"; import { pipe } from "fp-ts/lib/pipeable"; import { ItemOrTag, Items, items, parseItemOrTag, parseItems, stringifyName } from "../parts"; import { parseArray } from "../parts/common"; import { encodeCount, encodeGroup, err, hasKeys, isObject, le...
/******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * Th...
import { Automata } from "../Automata"; import { Graph } from "../Graph"; import { Alternative } from "./Alternative"; import { Nil } from "./Nil"; import { RegularExpression } from "./RegularExpression"; import { Sequence } from "./Sequence"; import { Star } from "./Star"; import { Symbol } from "./Symbol"; // Steps ...
/* * Takes care about app state. * That's all global (app wide) data that is not part of the AppData which get stored to disk by AppPersistenceProvider. * Where AppPersistenceProvider is the long term memory, AppStateProvider is like the short term memory during one session. */ import { Injectable } from '@angular...
import React, { useState, useRef, FC, useEffect, useContext } from 'react'; import { useNavigate } from 'react-router-dom'; import DropDown from '../dropdown/DropDown'; import ContextPlaylist from '../contextMenu/ContextPlaylist'; import CollectionType from './collection.type'; import { RiArrowRightSLine } from 'react-...
<reponame>danielholmes/game-boy-emulator import { ByteValue, MemoryAddress, ReadonlyUint8Array } from "../types"; import { WorkingRam, VRam, ZeroPageRam, OamMemory, ReadonlyVRam } from "./ram"; import { Bios } from "../bios"; import { Cartridge } from "../cartridge"; import { toWordHexString } from ".."; export const ...
/** @jsxRuntime classic */ /** @jsx jsx */ import React from "react"; import { jsx, css } from "@emotion/react"; import { FullBobaBaby, Layer, Trait, TraitCategory } from "../IArtDef"; import { babyArtDefinition } from "../babyArtDefinition"; const thecanvas = css` display: none; `; const downloadLink = css` displ...
import { PropertyOptional, RemoveProperties } from 'misc-utils-of-mine-generic'; import { Event, KeyListener, MouseEvent, MouseListener, ProgramElement, RegisteredEventListener, RegisteredGlobalEventListener, StopPropagation } from '..'; import { MouseAction, Program, ProgramKeyEvent, ProgramMouseEvent } from '../decla...
import React from 'react' import { theme } from 'theme' import Typography from '@material-ui/core/Typography' import * as d3dag from 'd3-dag' import * as d3 from 'd3' import StatusIcon from 'components/StatusIcon' import { Stratify } from './parseDot' type Node = { x: number y: number } type NodeElement = { dat...
<filename>src/getWatchStats.ts import { GoogleSpreadsheet } from "google-spreadsheet"; import { getSheetFromDoc, initDoc } from "./lib/sheets"; import { getGreenStatus } from "./lib/utils"; import { StatsArgs, WatchStats } from "./sharedTypes"; import axios from "axios"; interface User { username: string; mon...
import { mat2d, vec4, vec2 } from "gl-matrix"; import { RenderObject } from "./RenderObject"; import { rect } from "../math/rect"; import { multiplyColorTransform } from "../math/color"; import { Texture } from "./gl/Texture"; import { FilterInstance } from "./filter/Filter"; import { CachedRender } from "./CachedRende...
<filename>dist/hub/hubAsync.d.ts /// <reference types="web-bluetooth" /> import { Hub } from './hub'; import { Motor } from '../types'; export declare const DEFAULT_CONFIG: { METRIC_MODIFIER: number; TURN_MODIFIER: number; DRIVE_SPEED: number; TURN_SPEED: number; DEFAULT_STOP_DISTANCE: number; D...
/*! * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ 'use strict' import * as nls from 'vscode-nls' const localize = nls.loadMessageBundle() import * as immutable from 'immutable' import * as os from 'os' import * as path from 'path' import * as vs...
<reponame>codacy-badger/media-inspector /* eslint-disable @typescript-eslint/no-use-before-define */ import fs from 'fs'; import path from 'path'; import { promisify } from 'util'; import chalk from 'chalk'; import { FilterFactory } from './filter'; import { FsTree, Directory, MediaFile, FsNode } from './fs-tree'; ...
<gh_stars>0 import { contextBridge, ipcRenderer } from 'electron'; import * as JSZip from 'jszip'; import { createWriteStream, existsSync, // readdirSync, readFileSync, } from 'original-fs'; import { Illust, User } from '_/types/illust'; import { Illustration } from '_/types/illustration'; let zip: JSZ...
<reponame>delphes99/tock-react-kit<gh_stars>0 import { Dispatch, useCallback } from 'react'; import { Message, QuickReply, TockAction, TockState, useTockDispatch, useTockState, Card, Carousel, Widget, WidgetData, } from './TockContext'; import { Sse } from "./Sse"; export interface UseTock { messages...
// @flow import React, { Component, useState, useContext } from 'react'; import { StyleSheet, TouchableOpacity, Image, Text, View, TextInput, Animated, FlatList, SafeAreaView, } from 'react-native'; import { NavigationScreenProp, NavigationStateRoute } from 'react-navigation'; import { getString } fr...
<reponame>Offirmo/offirmo-monorepo<gh_stars>1-10 import assert from 'tiny-invariant' import stable_stringify from 'json-stable-stringify' import { get_UTC_timestamp_ms } from '@offirmo-private/timestamps' import tiny_singleton from '@offirmo/tiny-singleton' import { overrideHook } from '@offirmo/universal-debug-api-pla...
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { FixedSizeGrid as Grid, FixedSizeGridProps, GridOnItemsRenderedProps, Align } from 'react-window'; import Header from './TableHeader'; import { fn } from './type-utils'; import { RowKey } from './TableRow'; export type...
import Tag from './Tag' import Taggd from './Taggd' import { setStyle, getOffset, getPointer, getWheelRatio, addClass, removeClass } from '../utils/utilities' const TaggdEffect: ThisType<Taggd> = { /** * Load image and reset image * @param {Taggd.Tag[]} tags - An array of tags * @return {Taggd} Current Tagg...
import { CheckBox, CheckBoxOutlineBlank, Download, Info } from '@mui/icons-material'; import { Button, CardContent, Collapse, Divider, Grid, MenuItem, styled, Tooltip, Typography } from '@mui/material'; import { useContext, useMemo, useState } from 'react'; import { CartesianGrid, ComposedChart, Legend, Line, Responsiv...