text
stringlengths
3.08k
15.5k
<reponame>kimisme9386/cdk-codepipeline-badge-notification<gh_stars>1-10 import { CodePipelineClient, GetPipelineExecutionCommand, } from '@aws-sdk/client-codepipeline'; import { PutObjectCommand, S3Client } from '@aws-sdk/client-s3'; import { Callback, CodePipelineCloudWatchEvent, Context } from 'aws-lambda'; impor...
<filename>src/revealPreviewView.ts import { ItemView, MarkdownView, Menu, WorkspaceLeaf } from 'obsidian'; import { AdvancedSlidesSettings } from './main'; import { Options } from './options'; import { YamlParser } from './yamlParser'; export const REVEAL_PREVIEW_VIEW = "reveal-preview-view"; export class RevealPrevi...
import { default as c } from "ansi-colors"; import { inspect } from "util"; inspect.styles.string = "yellow"; import { TestRun, Stats } from "../types"; export function printStats(stats: Stats, startTime: number, endTime: number) { printColoredTextStats(stats, startTime, endTime); } export async function printTes...
<gh_stars>1-10 import { JSONSchema, JSONSchemaObject, PatternProperties } from "@json-schema-tools/meta-schema"; /** * Signature of the mutation method passed to traverse. * * @param schema The schema or subschema node being traversed * @param isCycle false if the schema passed is not the root of a detected cycle....
type OptionalExceptFor<T, TRequired extends keyof T = keyof T> = Partial< Pick<T, Exclude<keyof T, TRequired>> > & Required<Pick<T, TRequired>>; export class TlmObject { private readonly _oid: number; private readonly _type: number; constructor(oid: number, type: number) { this._oid = oid; this._typ...
import { Avatar, Badge, Button, Descriptions, Icon, Input, Upload, message, } from 'antd'; import { RcFile } from 'antd/lib/upload'; import { UploadChangeParam } from 'antd/lib/upload/interface'; import * as React from 'react'; import { connect } from 'react-redux'; import { getDownloadUrl, getQiniuTok...
// Copyright 2017-2022 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { OverrideBundleDefinition } from '@polkadot/types/types'; /* eslint-disable sort-keys */ const definitions: OverrideBundleDefinition = { types: [ { // on all versions minmax: [0, ...
<filename>src/SingleEvent.ts<gh_stars>0 type Listener<A, S> = (args: A, sender: S) => void; abstract class SuperEvent<A, B, S> implements singleEvent.SingleEvent<B, S> { private readonly _listeners = new Set<Listener<B, S>>(); private readonly _children = new Set<SuperEvent<B, any, S>>(); private readonly ...
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ import { Level3Snapshot } from "../Level3Snapshot"; import { Level3Update } from "../Level3Update"; import { L2Point } from "./L2Point"; import { L3Point } from "./L3Point"; /** * Prototype for maintaining a Level 3 order book for Kucoin according * to ...
/* * Copyright 2012, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions...
/** * Copyright 2022, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. */ type Identifier = string | number; type InternalProps = { partialData?: boolean }; // eslint-disable-next-line @typescript-eslint/no-explicit-any export type KegRecord = Record<str...
import { spawnSync } from 'child_process'; import { mkdirSync, writeFileSync } from 'fs'; import { dirname, join } from 'path'; import { expect } from 'chai'; import { SDK_VERSION } from '../../../src/main/version'; import { ERROR_ID, RATE_LIMIT_ID, SERVER_PORT, TestServer } from '../server'; import { createLogger, ge...
import i18next from 'i18next'; import merge from 'lodash.merge'; import React, { Component } from 'react'; import { PublicPlayerState } from '../../../../src/types/state'; import nanamiSingPng from '../../assets/nanami-sing.png'; import nanamiSingWebp from '../../assets/nanami-sing.webp'; import { login } from '../../...
<filename>angular/app/ico-project/ico-project-all/ico-project-all.component.ts<gh_stars>1-10 import { Component, OnInit } from '@angular/core'; import {Router, ActivatedRoute} from '@angular/router'; import { NgForm } from '@angular/forms'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Orde...
import { ButtonBar, DateField, DinaForm, DinaFormOnSubmit, FieldSet, ResourceSelectField, SelectField, SubmitButton, TextField, useAccount, useApiClient, useQuery, withResponse } from "common-ui"; import { NextRouter, useRouter } from "next/router"; import { Field } from "formik"; import { F...
<filename>src/shared.ts import { decompress } from 'brotli'; import { inflate } from 'pako'; import { getDecoder, getEncoder, toArrayBuffer } from './encoding'; export enum WS { WS_OP_HEARTBEAT = 2, WS_OP_HEARTBEAT_REPLY = 3, WS_OP_MESSAGE = 5, WS_OP_USER_AUTHENTICATION = 7, WS_OP_CONNECT_SUCCESS = 8, WS_P...
import React, { memo, useState, useRef, useEffect } from 'react'; import JsonExample from '@components/json-example'; import cn from 'classnames'; import { Store } from 'effector'; import { Form } from 'effector-react-form'; import Settings from '../../assets/images/Settings.svg'; import styles from './styles.module.sc...
import { useCallback, useEffect, useState } from "react"; const microphoneInit = (onChageVolume: any) => { if (navigator.mediaDevices) { navigator.mediaDevices .getUserMedia({ audio: true }) .then(function (stream) { const audioContext = new AudioContext(); const mediaStreamAudioSourc...
import React, { useState } from 'react'; import { Theme, FormControl, Tooltip } from '@material-ui/core'; import {makeStyles} from '@material-ui/core/styles'; import {CustomButton} from '@/components/custom-button'; import { RoleRadio } from '@/components/role-radio'; import {CustomIcon} from '@/components/icon'; impor...
import { Component, OnInit, OnChanges, OnDestroy, Input, Output, EventEmitter, SimpleChanges, ElementRef } from '@angular/core'; import {NgClass} from '@angular/common'; interface ISelectOption { value: string; label: string; index?: string; } /* tslint:disable:component-selector-name */ @Component({ ...
<reponame>americanexpress/twizt /** * Copyright 2019 American Express Travel Related Services Company, 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/licen...
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import classNames from 'classnames'; import { BaseProps, extractBaseProps } from '@/utils/types'; import { Row, Column, Backdrop, OutsideClick, ModalHeader, ModalBody, ModalFooter } from '@/index'; import { ColumnProps, ModalHeaderProps } from '@/in...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------...
import { useNavigation } from '@react-navigation/native'; import { Button, Grid, Row } from 'native-base'; import React, { useEffect, useRef, useState } from 'react'; import { StyleSheet, Text, View, Image, Keyboard } from 'react-native'; import { connect } from 'react-redux'; import { getProfileData } from '../actions...
import React, {useState} from 'react'; import {Button, Divider, Form, Input, Modal, Radio, Switch} from 'antd'; import {AlertInstanceTableListItem} from "@/pages/AlertInstance/data"; import {buildJSONData, getJSONData} from "@/pages/AlertInstance/function"; import {ALERT_TYPE} from "@/pages/AlertInstance/conf"; export...
<gh_stars>1-10 import nanoid from 'nanoid' import Message, { IMessage } from "../models/message" import Room, { IRoom } from "../models/room" import mongoose, { Query } from 'mongoose' import { IMessageData } from "../models/message-data" import IUser from '../models/user' const ObjectId = mongoose.Types.ObjectId /**...
<filename>src/visual/Video.ts /* eslint-disable @typescript-eslint/no-non-null-assertion,functional/immutable-data */ import {continuously, delayLoop } from "../flow/index.js"; //eslint-disable-next-line functional/no-mixed-type export type Capturer = { start():void; cancel():void; readonly canvasEl:HTMLCanvasEl...
<filename>src/run.ts import { getBooleanInput, getInput, setFailed, setOutput } from '@actions/core' import { context } from '@actions/github' import createPagesSdk, { PagesSdk } from './cloudflare' import { dashboardBuildDeploymentsSettingsUrl, dashboardDeploymentUrl } from './dashboard' import { deploy } from './depl...
import * as fs from 'fs' import { promisify } from 'util' import { resolve, dirname } from 'path' import * as yaml from 'js-yaml' import { generateFromTemplate } from '../../templates' import { homedir } from 'os' import { Config, validateConfig } from './schema' import { validateToken, SegmentAPI } from '../api' impor...
import { WorkerExecResponse__Output } from '@dcfjs/proto/dcf/WorkerExecResponse'; import { WorkerServiceClient } from '@dcfjs/proto/dcf/WorkerService'; import { MasterServiceHandlers } from '@dcfjs/proto/dcf/MasterService'; import { WorkerStatus } from '@dcfjs/proto/dcf/WorkerStatus'; import * as grpc from '@grpc/grpc-...
<reponame>jeffreymkabot/classicdb_bot<filename>src/lib.ts<gh_stars>0 /** * @fileoverview Project wide functions. * @author <NAME> * @since 1.2.0 */ import { DMChannel, GroupDMChannel, Guild, Message, TextChannel } from "discord.js"; import * as request from "request-promise"; import * as config from "../config.js...
/* Component for selecting from a list of options with a text input to filter options */ import * as _ from "lodash"; import * as React from 'react'; import * as classNames from "classnames"; import FilterInput, { Props as FilterProps } from "./FilterInput"; import Icon from "./Icon"; import { Choice } from "./Men...
<reponame>kmartinezmedia/kmart /** * DO NOT MODIFY * Generated from scripts/codegen/main.ts */ import { css } from '@linaria/core'; export const top0 = css` padding-top: var(--spacing-0); `; export const top1 = css` padding-top: var(--spacing-1); `; export const top2 = css` padding-top: var(--spacing-2); `;...
import assert from 'assert' import crypto from 'crypto' import generate from '@babel/generator' import { parse as parseBabel } from '@babel/parser' import { RawSourceMap, SourceMapConsumer, } from 'source-map' import { compileTemplate, parse as parseVueSFC, } from '@vue/compiler-sfc' import { File, asser...
<filename>src/lib/utils.ts import path from 'path'; import chex from '@darkobits/chex'; import nodeVersons from '@darkobits/node-versions'; import bytes from 'bytes'; import ejs from 'ejs'; import findUp from 'find-up'; import fs from 'fs-extra'; import readPkgUp, {NormalizedPackageJson, Options} from 'read-pkg-up'; i...
import { expect } from 'chai'; import 'mocha'; import { differenceInMinutes } from 'date-fns'; import * as t from 'io-ts' import * as tdc from './index' //import { PathReporter } from 'io-ts/lib/PathReporter' type Operators = 'equals' | 'notEquals' const Operators = { equals: 'equals' as Operators, notEqua...
<filename>packages/coli-export-string/stringfy.ts import { ColiObject, _internal, _abstract } from "coli"; import { SyntaxKind } from "@coli.codes/core/_internal"; import * as strfy from "./core"; import { FormattingToken, FormatterTokenLike, format as _astfmt, } from "@coli.codes/ast-formatter"; import { Keyword...
import express from 'express'; import path from 'path'; import kingbot from './index'; import api from './api'; import settings from './settings'; import logger from './logger'; import { inactive_finder } from './extras'; import { buildings, tribe, troops } from './data'; import { Ifeature_params, feature } from './fea...
import * as React from 'react'; export default class UsageSamples { static Tabs = ` <Tabs> <Tab title="Tab#1"> Sample content "tab 1" </Tab> <Tab title="Tab#2"> Sample content "tab 2" </Tab> <Tab title="Tab#3"> Sample content "tab 3" </Tab> <...
import { useState } from "react"; import { AppBar, Box, Container, IconButton, Menu, MenuItem, Toolbar, Typography, Button, Drawer, Avatar, Link, Chip, List, } from '@mui/material' import MenuIcon from "@mui/icons-material/Menu" import LinkedInIcon from '@mui/icons-material/LinkedIn'; import...
<reponame>tatchi/dcopy import { suite } from "uvu"; import { mkdir } from "mk-dirs"; import * as assert from "uvu/assert"; import { promisify } from "util"; import { dirname, join } from "path"; import { dcopy } from "../dist"; import tmp from "tmp"; import { premove } from "premove/sync"; import { existsSync, writ...
/// <reference lib="dom" /> /// <reference lib="dom.iterable" /> import { css, html } from '../deps_app.ts'; import { WebtailAppVM } from '../webtail_app_vm.ts'; export const PROFILE_EDITOR_HTML = html` <form id="profile-form" autocomplete="off"> <fieldset id="profile-fieldset"> <div id="profile-form-title" class="...
<gh_stars>10-100 import shlp from 'sei-helper'; import got, { Headers, Method, Options, ReadError, Response } from 'got'; import cookieFile from './module.cookieFile'; import * as yamlCfg from './module.cfg-loader'; import curlReq from './module.curl-req'; export type Params = { method?: Method, headers?: ...
<gh_stars>0 import { Source, SourceAuthenticationMethod, Template, Dashboard, Cell, SourceLinks, TemplateType, TemplateValueType, } from 'src/types' import {Links} from 'src/types/v2/links' export const links: Links = { auths: '/api/v2/authorizations', buckets: '/api/v2/buckets', dashboards: '/ap...
import * as Http from 'http' import * as Path from 'path' import * as util from 'util' import * as querystring from 'querystring' import * as formidable from 'formidable' import * as pathToRegexp from 'path-to-regexp' import Request, { HTTP_METHODS } from './request' import Response from './response' import httpParse...
import mongoose from 'mongoose'; import { Channel } from 'amqplib'; import { mq, MessagingParty, MessagingQueue, Action, UserServiceChangedDataKey, QueueMessage, MessageData, ChangedDataType, TeamDocument, UserDocument, } from '@entomophage/common'; import Team from '../models/Team'; import * as userServi...
<gh_stars>1-10 export type CurrentTrackRef = number|null; export type TrackQueue = Array<QueuedTrack>; export type RepeatType = null|'one'|'all'; export interface QueuedTrack { track: object; id: string; } function generateId(): string { return Math.random().toString(36).substr(2, 9); } /** * Shuffle an array ...
<filename>packages/ui/browser/src/ts/Router.ts import {injectable} from 'inversify'; import {BufferQueue} from '@0cfg/utils-common/lib/BufferQueue'; import {Sequential} from '@0cfg/utils-common/lib/Sequential'; import {Predicate} from '@0cfg/utils-common/lib/Predicate'; import {has} from '@0cfg/utils-common/lib/has'; i...
<filename>src/combinereducers.ts<gh_stars>0 import { isFunction, isPlainObject, isUndefined } from '@kubric/litedash' import { AnyAction, CombineOptions, ReducersMapObject, NonReducerKeysCache } from "./interfaces"; export const ActionTypes = { INIT: '@@redux/INIT' }; const getUndefinedStateErrorMessage = (key: str...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as PQP from "@microsoft/powerquery-parser"; import type { Position } from "vscode-languageserver-types"; import { PositionUtils } from "../.."; import { ActiveNode, ActiveNodeUtils, TMaybeActiveNode } from "../activeNode"; import { Au...
<reponame>danielearwicker/flyingdemo<filename>main.ts /// <reference path="three.d.ts"/> interface Touch { pageX: number; pageY: number; } interface TouchEvent extends UIEvent { touches: Touch[]; } interface Element { innerHTML: string; } function touchArray(touches: Touch[]) { var ar: Touc...
<reponame>sneat-co/sneat-apps<gh_stars>1-10 import { hideVirtualSlide, showVirtualSlide, VirtualSlideAnimationsStates, wdCodeToWeekdayLongName, } from '@sneat/components'; import { dateToIso, getWeekdayDate } from '@sneat/core'; import { Observable } from 'rxjs'; import { TeamDaysProvider } from '../pages/schedule/...
<reponame>hagerupe/legend-studio<filename>app/ApplicationConfig.ts /** * Copyright 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/L...
import React from 'react'; import block from 'bem-cn'; import { bind } from 'decko'; import { connect } from 'react-redux'; import { Dispatch, bindActionCreators } from 'redux'; import { withRouter, RouteComponentProps } from 'react-router'; import { IAppReduxState } from 'shared/types/app'; import { ICommunication } ...
import * as React from "react" import { useEffect, useRef, useCallback, useReducer } from "react" import Axios from "axios" import { AxiosResponse, AxiosError } from "axios" import * as Cookie from "js-cookie" import * as Zlib from "zlib" import Environment from "../../lib/environment" import Escape from "../../lib/...
// Copyright 2022 Touca, Inc. Subject to Apache-2.0 License. export enum EFeatureFlag { NewsletterProduct = 'newsletter_product', NewsletterChangelog = 'newsletter_changelog' } export enum EPlatformRole { Guest = 'guest', User = 'user', Admin = 'admin', Owner = 'owner', Super = 'super' } export enum EN...
<filename>functions/src/infrastructure/algolia/AlgoliaIndexingService.ts import { SearchIndex } from 'algoliasearch'; import * as TaskEither from 'fp-ts/lib/TaskEither'; import { pipe } from 'fp-ts/lib/pipeable'; import * as Option from 'fp-ts/lib/Option'; import { unknownError, GenericErrorType, GenericError, }...
<filename>src/app/components/home/home.component.ts import {Component, OnInit} from '@angular/core'; let Janus = require('../../../janus'); import {desktopCapturer} from 'electron'; interface StreamInfo { stream:MediaStream name:string id:number } @Component({ selector: 'app-home', templateUrl: './home.co...
<gh_stars>0 import {IConfig, IPlugin} from 'umi-types'; import defaultSettings from './defaultSettings'; // https://umijs.org/config/ import slash from 'slash2'; import webpackPlugin from './plugin.config'; const {pwa, primaryColor} = defaultSettings; // preview.pro.ant.design only do not use in your production ; // ...
import MaskedView from "@react-native-community/masked-view" import React, { useRef } from "react" import { View } from "react-native" import { State, TapGestureHandler } from "react-native-gesture-handler" import Animated, { call, cond, Easing, eq, Extrapolate, greaterThan, interpolate, multiply, neq...
<gh_stars>10-100 import {genAssert, genLogger, Continuous} from "../../utils"; import {IWorker, WorkerRunningState} from "./interface"; import {Logger} from "winston"; import {forCondition, timeoutPromise} from "kht"; import {turtle} from "../../turtle"; import {CAssert} from "@khgame/err"; import {Job} from "node-sche...
<filename>index.ts import { DirectiveOptions, DirectiveBinding } from 'vue/types/options' import { VueConstructor } from 'vue' type StickyOptions = { stickSide?: string | null | boolean top: number bottom: number zIndex: number onStick?: Function } const getType = (obj: any) => Object.prototype.toString.ca...
<reponame>targoo/serverless-typescript-boilerplate import id from '../../../utils/id'; import { prepareResponseDate, prepareFormInput } from '../nexusTypes/utils/form'; import { IFollowingJob, IKeyBase } from '../../../types/types'; import { GraphQLContext } from '../index'; import { jobFormProperties, jobProperties, f...
/** * redaktor/auth/jwt * * JSON Web Token encode and decode module for browsers and node.js * */ /* TODO for jwt auth client : header: { 'Access-Control-Allow-Origin': '*' } * https://scotch.io/tutorials/the-ins-and-outs-of-token-based-authentication * TODO exp nbf https://github.com/zeit/ms */ /** * module...
/** @jsx jsx */ import React, { useCallback, useRef, useState } from 'react'; import { css, jsx } from '@emotion/core'; import { UIAnalyticsEvent, usePlatformLeafEventHandler, } from '@atlaskit/analytics-next'; import Field from '@atlaskit/form/Field'; import Form from '@atlaskit/form/Form'; import GlobalTheme fr...
/* * Copyright 2022 LSD Information Technology (Pty) Ltd * * 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...
<gh_stars>0 const MODULE_NAME:string = "@colabo-topichat/b-talk"; import { TopiChat, TopiChatPlugin, TopiChatPackage, TopiChatPluginPackage} from '@colabo-topichat/b-core'; import {GetPuzzle} from '@colabo-utils/i-config'; let puzzleConfig:any = GetPuzzle(MODULE_NAME); console.log("[TopiChatTalk] Should we save chat...
<filename>src/modules/mentornity/src/view-wrappers/sozluk-calendar-entries.ts export const sozlukCalendarEntryEn = { key: 'calendar', language: 'en', january: 'January', february: 'February', march: 'March', april: 'April', may: 'May', june: 'June', july: 'July', august: 'August', september: 'Sep...
<gh_stars>0 // tslint:disable: no-string-literal import chalk from 'chalk'; import execa, { ExecaReturnValue } from 'execa'; import _ from 'lodash'; import PCancelable from 'p-cancelable'; import parseJson from 'parse-json'; import { log, LogType, pushInputStrLog } from '../config'; import { ActionFlowManager, getP...
<reponame>lannonbr/github-actions-parser import * as Functions from "./functions"; import { And, BaseCstVisitor, Contexts, Eq, GT, GTE, LT, LTE, NEq, Or, } from "./parser"; import { PropertyPath, iteratePath } from "../utils/path"; import { ContextProvider } from "./types"; import { tokenMatcher }...
<filename>client_v3/src/models/termine-model.ts /******************************************** * This file is part of Webelexis * * Copyright (c) 2016-2018 by <NAME> * * License and Terms see LICENSE * ********************************************/ import { KontaktType, Kontakt } from "./kont...
<reponame>hoakusa/Simon-game-Android import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { private start_delay = 1000; private light_duration = 500; private light_delay = 1000; privat...
<reponame>anton-iskryzhytskyi/stu-tgram import { isNil, isObject, flatMap, intersection, get, isEqual, findLast } from 'lodash' import * as Excel from 'exceljs' import parseGroups from './parse-groups' import parseLegend from './parse-legend' import parseFirstWeekMonday from './parse-first-odd-week-monday' import { Leg...
/// <reference types="node" /> import * as events from "events"; import Message, { Headers } from "./message"; import * as protocol from "./protocol"; /** * Options to be passed to constructor. */ export interface BaseClientOptions { /** * Number of milliseconds of idleness (i.e. no data * transmitted o...
/* * This file is part of the "GS Commit Message Checker" Action for Github. * * Copyright (C) 2019 by Gilbertsoft LLC (gilbertsoft.org) * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTIC...
import {Client} from "@brimdata/zealot" import {createPool} from "src/app/core/pools/create-pool" import {syncPool} from "src/app/core/pools/sync-pool" import Ingests from "src/js/state/Ingests" import Url from "src/js/state/Url" import BrimApi from "src/js/api" import brim from "src/js/brim" import ingest from "src/js...
<reponame>feature-flags-co/feature-flags-co<filename>FeatureFlagsCo.Portal/src/app/pages/main/analytics/types/analytics.ts import { uuidv4 } from 'src/app/utils'; import { NzSelectOptionInterface } from "ng-zorro-antd/select"; export enum CalculationType { Count = 1, Sum = 2, Average = 3 } export interfac...
<filename>src/engine/operations/sop/Scatter.ts import {BaseSopOperation} from './_Base'; import {CoreGroup} from '../../../core/geometry/Group'; import {DefaultOperationParams} from '../_Base'; import {BufferGeometry} from 'three/src/core/BufferGeometry'; import {BufferAttribute} from 'three/src/core/BufferAttribute'; ...
import onePng from './assets/1.png'; import twoPng from './assets/2.png'; import fourPng from './assets/4.png'; import {cleanMap, drawGuide, renderHover, renderMap, setBorder} from './src/render'; import {editorRatio, tileSize} from './src/state'; import {getLoc, newGrid, rotationSet, setLoc} from './src/utils'; let p...
import { AlbumCollection } from "../src/media-separator.types"; import { DbAlbum } from "../src/db.types"; import { AlbumWithFilesAndMetadata } from "../src/api/album.types"; export const albumDbFixture: DbAlbum = { path_id: "foo", modified_at: "2022-06-07T08:54:54.590Z", metadata: { year: 2000, album: "...
<gh_stars>100-1000 'use strict'; import * as request from 'request'; import { StatusError, makeError } from '../common/utils-fail'; const { debug, info, warn, error } = require('portal-env').Logger('portal-auth:kong-utils'); import * as wicked from 'wicked-sdk'; import { utils } from '../common/utils'; import { Call...
import React, {useEffect, useRef} from "react" import {SceneCard} from "../SceneCard"; import Box from "@material-ui/core/Box"; import {Collapse, ListItem} from "@material-ui/core"; import List from "@material-ui/core/List"; import {AudioElement, Direction, MinimalInfoProvider, SceneCardData} from "../../types"; ...
<filename>src/common/format.ts import type * as ts from "typescript"; export const F_READONLY: 'R' = 'R'; export const F_ABSTRACT: 'A' = 'A'; export const F_PUBLIC: '$' = '$'; export const F_PRIVATE: '#' = '#'; export const F_PROTECTED: '@' = '@'; export const F_PROPERTY: 'P' = 'P'; export const F_METHOD: 'M' = 'M'; e...
<gh_stars>0 import boxen from 'boxen' import chalk from 'chalk' import fs from 'fs' import BridalLiveAPI, { FetchAllFunction } from '../integrations/BridalLive/api' import { BaseBridalLiveObject, BridalCustomerSettings, BridalLiveToken, } from '../integrations/BridalLive/apiTypes' import { logError, logHeader, lo...
<reponame>X37ddV/expr-manager import image_prompt_svg_tpl from "../../images/prompt.svg.tpl"; import image_trash_svg_tpl from "../../images/trash.svg.tpl"; import Expression from "../../scripts/expression"; import View from "../../scripts/view"; import Result from "../result/result"; import { ShapeColor, ShapeName } fr...
import migrationContent from '../../statics/json/migratedFixtures/migration-content.json'; import rawContent from '../../tests/modifyFixtures/images-dividers.json'; import { select } from './select'; import type { Node } from 'ricos-schema'; import { Node_Type, PluginContainerData_Alignment, PluginContainerData_W...
import React, { useState } from 'react'; import Image from 'next/image'; import { styled, makeStyles, useTheme } from '@material-ui/core/styles'; import useMediaQuery from '@material-ui/core/useMediaQuery'; import Typography from '@material-ui/core/Typography'; import Icon from '@material-ui/core/Icon'; import PushPin...
import browser from 'webextension-polyfill' import log from 'libs/log' export { browser } export const TAB_HEIGHT = 42 // The not_popup=1 query indicate current page is not opened by browser_action. // Because the browser_action can only open without any query params. export const popupURL = browser.runtime.getURL('...
import cactusTheme, { CactusTheme } from '@repay/cactus-theme' import PropTypes from 'prop-types' import React from 'react' import * as styledComponents from 'styled-components' import { textStyle } from '../helpers/theme' interface Env { NODE_ENV: string } interface Process { env: Env } declare let process: Pr...
import React, { MouseEvent, useCallback, useState, useRef, useContext } from 'react'; import LanguageIcon from '@material-ui/icons/Language'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import i18next, { TFunction } from 'i18next'; import { useTranslation } from 'react-i18next'; import { withStyles } fr...
// components import React, { useCallback, useState } from 'react' import { Button, Col, Form, Row, Table } from 'react-bootstrap' import { useDropzone } from 'react-dropzone' import './dropzone.css' // lib import { saveAs } from 'file-saver' import JSZip from 'jszip' import { Icon, IconEntry, toPngIconEntry } from '....
<reponame>BreezeZin/DefinitelyTyped import TLV = require('node-tlv'); import assert = require('assert'); // Examples directly from the source page. @see https://github.com/coolbong/node-tlv#readme // GPO Example // parse TLV const resp = '770E8202580094080801010010010301'; const tlv = TLV.parse(resp); // response m...
import { Observer } from 'mobx-react-lite'; import { useState } from 'react'; import { FaChevronDown } from 'react-icons/fa'; import { Box, Button, ButtonGroup, Container, HStack, Heading, IconButton, ListItem, Menu, MenuButton, MenuItem, MenuList, Modal, ModalBody, ModalCloseButton, Mo...
<gh_stars>0 import { DOM } from "../dom.js"; import { Notifier, PropertyChangeNotifier } from "./notifier.js"; const notifierLookup = new WeakMap<any, Notifier>(); const accessorLookup = new WeakMap<any, Accessor[]>(); let watcher: ObservableExpression | undefined = void 0; export interface Accessor { name: strin...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { LineSplitter } from "./lineSplitter"; import { ProcessProvider } from "./processProvider"; export type DockerBuildImageOptions ...
import { Component, createMemo, For, Show, untrack } from 'solid-js' import { NavLink, useRoute, useRouter } from '@rturnq/solid-router' import { Dynamic } from 'solid-js/web' import { Transition } from 'solid-transition-group' import { ScrollTargetContext } from '@minht11/solid-virtual-container' import { BaseMusicIte...
/* External dependencies */ import React, { useEffect, useRef, useState } from 'react' import { base } from 'paths.macro' import { Story, Meta } from '@storybook/react' /* Internal dependencies */ import { styled } from 'Foundation' import { getTitle } from 'Utils/storyUtils' import Overlay from './Overlay' import Ove...
<reponame>xcash-rocks/desktop-wallet<gh_stars>1-10 import { Component, OnInit, ViewChild } from '@angular/core'; import { UiModalComponent } from 'src/app/theme/shared/components/modal/ui-modal/ui-modal.component'; import { FormControl, Validators, FormArray } from '@angular/forms'; import { WalletNamePasswordModalComp...
<reponame>Bhaskers-Blu-Org2/staticstaging /** * The support library for running SSC's WebGL output in an interactive * browser widget. This is the support structure that "links" with the * compiled program to compose a complete scene. */ // Declare the `require` function, which will be "implemented" by running // ...
/* * Licensed to the Kassenärztliche Bundesvereinigung (KBV) (c) 2020 - 2021 under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The KBV licenses this file * to you under the Apache License, Version 2....