text
stringlengths
3.3k
33k
import dayjs from 'dayjs'; // #if BROWSER === 'chrome' import { UAParser } from 'ua-parser-js'; // #endif import { ISOString, errorResult, successResult, SubscriptionId, Subscription, Options, getOptions, setOptions, sendMessage, addMessageListener, BackgroundPage, } from './common'; const backgr...
import process = require("process"); import debug = require("debug"); import randomBytes = require("randombytes"); import { ENR, Discv5, toHex } from "@chainsafe/discv5"; import { getBindAddress, readPeerId, readEnr, readEnrs, writePeerId, writeEnr, writeEnrs, } from "./util"; import jayson from "jayson/p...
<reponame>Mosframe/unicon // ----------------------------------------------------------------------------- // 002 : 텍스트 // ----------------------------------------------------------------------------- let THREE = require('../../lib/three.js/build/three'); let Detector = require('../../lib/three.js/exam...
import React, { FC, useCallback, useEffect, useState } from 'react'; import styles from './ToolsDIR.module.scss'; import DropdownSelect from '../../Sub/DropdownSelect/DropdownSelect'; import ButtonGroupWithLabel from '../../Sub/Buttons/ButtonGroupWithLabel/ButtonGroupWithLabel'; import { Button } from '@mui/material'; ...
import * as React from "react"; import Dialog from "material-ui/Dialog"; import FlatButton from "material-ui/FlatButton"; import Snackbar from "material-ui/Snackbar"; import { lightBaseTheme, MuiThemeProvider } from "material-ui/styles"; import getMuiTheme from "material-ui/styles/getMuiTheme"; import { Store } from ...
import React, { FC, useCallback, useEffect, useState } from 'react'; import classNames from 'classnames'; import dayjs from 'dayjs'; import padStart from 'lodash/padStart'; import { TdTimePickerProps, TdTimeRangePickerProps } from './type'; import useConfig from '../_util/useConfig'; import { useTimePickerTextConfig }...
export enum WorkoutCategory{ IndividualSports = "Individual Sports", TeamSports = "Team Sports", ExerciseAndFitness = "Exercise and Fitness", StudioActivities = "Studio Activities", RacketSports = "Racket Sports", OutdoorActivities = "OutdoorActivities", SnowAndIceSports = "Snow and Ice Spor...
/** @jsxRuntime classic */ /** @jsx jsx */ import { jsx, css } from '@emotion/react'; import { FC, useEffect, useRef, useState } from 'react'; import RasaWebchat from 'rasa-webchat'; import { Box, useTheme } from '@material-ui/core'; import { observer } from 'mobx-react-lite'; import { useStore } from 'stores/store-hoo...
<gh_stars>1-10 const enum MessageType { log = 0, info = 1, warn = 2, error = 3 } function __message(message: any, level: string) { if ((<any>global).__consoleMessage) { (<any>global).__consoleMessage(message, level); } } export class Console { private TAG: string = "JS"; privat...
/* eslint-disable max-lines */ import { LoggingUtils } from '../logging-utils'; import { ObjectProxyHandler } from './object'; const { GetMissingPropertyMsg, SetMissingPropertyMsg, CallMissingMethodMsg, } = LoggingUtils; const someValue = { someVal: 'someVal' }; const poked = 'poked'; const ExistingServ...
import { Component, Input, OnChanges, OnDestroy, OnInit, Output, Pipe, PipeTransform, SimpleChanges } from '@angular/core'; import {Participation, ParticipationService} from '../../entities/participation'; import { ParticipationResultService, Result, ResultService } from '../../entities/result'; import { JhiWebsocketSe...
import { h, FunctionalComponent, ComponentChild } from 'preact'; import { useState } from 'preact/hooks'; import styled from 'styled-components'; import media from 'styled-media-query'; import { AppContainer } from '../containers'; import images from '../assets/images/*.png'; import { Colors, Industries, Purposes, Pref...
import React, { useEffect, useState } from 'react' import { withRouter } from 'react-router-dom' import { PagePropsSetStage, useTitle } from 'pages/Page' import Term from 'components/Term' import TermLink, { TermAction } from 'components/TermLink' type MediaFile = { src: string kind: 'image' | 'video' | string } co...
import cheerio from "cheerio"; import got from "got"; import { ScraperError } from "../utils"; import { YoutubeDownloader, YoutubeVideoOrAudio, YoutubeDownloaderV3, YoutubeVideoOrAudioV3 } from "./types"; import { sizeFormatter } from 'human-readable' const toFormat = sizeFormatter({ std: 'JEDEC', // ...
import {setOutput} from '@actions/core'; import {Utils, ContextHelper, GitHelper} from '@technote-space/github-action-helper'; import {Logger} from '@technote-space/github-action-log-helper'; import {Octokit} from '@technote-space/github-action-helper/dist/types'; import { getApiHelper, getChangedFiles, getRefDif...
<gh_stars>0 /** * Copyright (c) 2020 BlockDev AG * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as path from "path" import { format as formatUrl } from "url" import * as os from "os" import { app, BrowserWindow, dialog, ip...
import React, {useRef,useState,useEffect} from 'react'; import { makeStyles } from '@mui/styles'; import Paper from '@mui/material/Paper'; import Grid from '@mui/material/Grid'; import Box from '@mui/material/Box'; import Divider from '@mui/material/Divider'; import TextField from '@mui/material/TextField'; import Typo...
<gh_stars>100-1000 import { Observable, combineLatest, Subject } from 'rxjs'; import { switchMap, map, filter, shareReplay, startWith } from 'rxjs/operators'; import { LogicInterface } from '../../../../src/app/logic-interface.interface'; import { Message, UserWithLastMessage...
import React, { useEffect, useRef, useState, useCallback } from "react"; import { defineMessages, FormattedMessage, MessageDescriptor, useIntl, } from "react-intl"; import { Nav, Navbar, Button, Fade } from "react-bootstrap"; import { IconName } from "@fortawesome/fontawesome-svg-core"; import { LinkContainer }...
 /****************************************** * Helpers */ /** Interface for create dynamic objects */ interface IDynamic<T> { [key: string]: T; } /** Interface for create key/values pair */ interface IKeyValueMap<T, U> { key: T; value: U; } /** @Brief Class for define help methods */ class Helpers { ...
<reponame>via-profit-services/accounts import type { AccessTokenPayload, TokenPackage, AuthentificationService as AuthentificationServiceInterface, RefreshTokenPayload, AccountRole, AuthentificationServiceProps, } from '@via-profit-services/accounts'; import { ServerError } from '@via-profit-services/core';...
import { IWebGLProgramMock, IWebGLShaderMock } from './webgl2-rendering-context-mock'; export const vs = ` precision highp float; void main(void) { gl_Position = vec4(0., 0., 0., 0.); } `; export const fs = ` precision highp float; uniform float f; uniform vec2 v2; uniform vec3 v3; uniform vec4 v4; uniform vec4 v...
<reponame>cleanunicorn/MyCrypto<filename>common/sagas/config/node.ts import { delay, SagaIterator } from 'redux-saga'; import { call, cancel, fork, put, take, takeEvery, select, apply, takeLatest } from 'redux-saga/effects'; import { getNodeId, getNodeConfig, getOffline, isStaticNodeId, getC...
<filename>src/renderer/reader/pdf/webview/index_pdf.ts // ==LICENSE-BEGIN== // Copyright 2017 European Digital Reading Lab. All rights reserved. // Licensed to the Readium Foundation under one or more contributor license agreements. // Use of this source code is governed by a BSD-style license // that can be found in t...
<filename>swim-js/swim-toolkit/swim-vis/swim-chart/src/main/tick/TickView.ts // Copyright 2015-2021 Swim.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.or...
import { decodeEvent } from 'ethjs-abi'; // tslint:disable:variable-name declare global { // tslint:disable-next-line:interface-name interface Window { web3: any; Web3: any; } } export let web3 = window.Web3 ? new window.Web3(window.web3.currentProvider) : undefined; export const processControlForm =...
const _f = require('underscore-functions') const { isMainThread, parentPort, workerData } = require('worker_threads') interface IMoxyTask { _id?: string label: string created?: Date priority?: number retryLimit?: number retryInterval?: number schedule?: Date[] cron?: IMoxyCronOptions task: (() => boolean) | s...
import { StackScreenProps } from '@react-navigation/stack'; import React, { useCallback, useEffect, useState } from 'react'; import { StyleSheet, View } from 'react-native'; import { IconButton } from 'react-native-paper'; import { Container } from '../../components/layout/Container'; import { PaddedInputScrollView } ...
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; export type Maybe<T> = T | null; import { ObjectID } from 'mongodb'; export type PostDbObject = { _id: ObjectID, title: string, author: AuthorDbObject['_id'], }; export type AuthorDbObject = { _id: ObjectID, firstName: ...
<reponame>maxhillis/realign<filename>src/test/suite/extension.test.ts import * as assert from 'assert'; // You can import and use all API from the 'vscode' module // as well as import your extension to test it import * as vscode from 'vscode'; import * as ReAlign from '../../extension'; import { Test } from 'mocha'; ...
import "geolib"; import PositionAsDecimal = geolib.PositionAsDecimal; import CompassDirection = geolib.CompassDirection; import Distance = geolib.Distance; import Bound = geolib.Bound; let dist: number = geolib.getDistance( {latitude: 51.5103, longitude: 7.49347}, {latitude: "51° 31' N", longitude: "7° 28' E"} );...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, OnDestroy, OnInit, ViewChild, ViewEncapsulation, } from "@angular/core"; import { animationFrameScheduler, fromEvent, Subscription } from "rxjs"; import { debounceTime, filter, map, distinctUntilChanged, } from ...
import Vue from 'vue' import Vuex from 'vuex' import { LocalStorage } from 'quasar' Vue.use(Vuex) //* ------------------------------------------------------- *// //* INTERFACE DECLARATIONS -------------------------------- *// export interface EvidenceType { name: string; caption: string; state?: number; } export...
// Copyright (c) 2019-2021 <NAME> - https://github.com/robertrypula export const libraryInfo = { author: '<NAME>', gitHub: 'https://github.com/robertrypula/audio-network-reborn', version: '0.1.0' }; export * from '@physical-layer/audio-mono-io/audio-mono-io'; export * from '@physical-layer/audio-mono-io/audio-m...
import { Component, Directive, Renderer, ElementRef, ViewEncapsulation, NgModule, ModuleWithProviders, Input, ContentChildren, ContentChild, QueryList, ViewContainerRef, ViewChild, TemplateRef, OnInit, forwardRef, OnChanges, HostBinding, Output, EventEmitter, Optional, Simple...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { FormBuilder, FormControl, Validators, FormGroup } from '@angular/forms'; import { Camera, CameraOptions } from '@ionic-native/camera/ngx'; import { ActionSheetController, LoadingController } from '@ionic/angular'; impo...
import debug = require('debug'); import fs = require('fs'); import { sample } from 'lodash'; import path = require('path'); import util = require('util'); const log = debug('brain'); import { ControlTokens, createDictionaryFromInput, generateMessage, IMarkovMap, updateDictionaryFromInput, } from '....
import { NextFunction, Request, Response } from 'express'; const fs = require('fs'); const multer = require('multer'); const axios = require('axios'); const FormData = require('form-data'); import Product from '../../models/productModel'; const baseUrl = process.env.ARCHIVE_HOST; // Setup Storage const storage = mul...
/** * @description * 绘制星空图,星随你动 */ import { DefaultConfig, Config, ResultConfig, Node, Edge } from './types' import util from '../util' const { random, drawCircle, drawLine, throttle } = util const defaultConfig: DefaultConfig = { width: document.documentElement.clientWidth, height: document.documentElement.c...
<reponame>thongnv/hype import { Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { DomSanitizer, Title } from '@angular/platform-browser'; import { FormGroup, FormControl, FormBuilder, Validators, FormArray } from '@angular/forms'; import * as moment...
<gh_stars>1-10 import { Parser } from 'binary-parser'; import { promises } from 'fs'; import { join } from 'path'; import { copy } from 'fs-extra'; export const HEADER = new Parser() .endianess("little") .string("magic", { length: 4, }) .int32("chunkSize") .int32("soundbankVersion") .i...
<filename>sorting-riddles/index.ts import type { WebAPICallResult } from '@slack/web-api'; import type { SlackInterface } from '../lib/slack'; import axios from 'axios'; import { stripIndent } from 'common-tags'; import sample from 'lodash/sample'; // @ts-expect-error import { getPageTitle, getWordUrl, getCandidateWord...
<reponame>JonathanWilbur/x500-ts /* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { HASH, _get_decoder_for_HASH, _get_encoder_for_HASH, } from "../AuthenticationFrame...
<reponame>rolyp/fluid import { zip, zipWith } from "./util/Array" import { Class, __nonNull, absurd, assert, className, userError } from "./util/Core" import { eq } from "./util/Ord" import { Annotation, bool_ } from "./util/Lattice" import { isα, setjoinα } from "./Annotation" import { List, cons, nil } from "./BaseTy...
<gh_stars>0 /** * @license * Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
import * as React from 'react'; import accept from 'attr-accept'; import { ERROR_MESSAGES, FileErrorCodes, MAX_FILE_SIZE, MIN_FILE_SIZE, } from '../../constants'; import { DropZoneError, DropZoneFileType, DropZoneProps, DropZoneState, FileType, ExternalFile, DropZoneFiles, } from './types'; import { EMPTY_DROP_ZON...
<gh_stars>0 const task = { "task.list.title": { cn: "任务列表", en: "Task List", }, "task.list.actions.detail": { cn: "详情", en: "Detail", }, "task.detail.title": { cn: "任务详情", en: "Task Detail", }, "task.asset.title": { cn: "数据详情", en: "Task Assets", }, "task.all": { cn: "全部", en: "All", }, "task.type.train": {...
<reponame>realm/ci-actions import * as core from "@actions/core"; import * as exec from "@actions/exec"; import * as fs from "fs"; import * as path from "path"; import * as urllib from "urllib"; import { EnvironmentConfig } from "./config"; import { createHash } from "crypto"; async function execCmd(cmd: string, args?...
<reponame>musicEnfanthen/inseri import {Component, OnInit, OnDestroy, Inject, AfterViewChecked, ChangeDetectorRef} from '@angular/core'; import {Router, ActivatedRoute} from '@angular/router'; import {AuthService} from '../mongodb/auth/auth.service'; import {Subscription} from 'rxjs'; import {FormControl, FormGroup, Va...
import { Command, flags as flagHelpers } from '@oclif/command'; import { isAbsolute, resolve } from '@stoplight/path'; import { IParserResult } from '@stoplight/types'; import { getLocationForJsonPath, parseWithPointers } from '@stoplight/yaml'; import { writeFile } from 'fs'; import { isNil, omitBy } from 'lodash'; im...
<reponame>wineSu/svu<filename>src/shared/svu.ts /** * ts 相关定义 */ export const enum ReactiveFlags { SKIP = '__v_skip', IS_REACTIVE = '__v_isReactive', IS_READONLY = '__v_isReadonly', RAW = '__v_raw' } export interface Target { [ReactiveFlags.SKIP]?: boolean [ReactiveFlags.IS_REACTIVE]?: boolea...
import React, { useState, forwardRef, useImperativeHandle } from "react"; import { ScrollView, FlatList, View } from "react-native"; import Animated, { useSharedValue, useAnimatedStyle, useAnimatedScrollHandler, interpolate, runOnJS, } from "react-native-reanimated"; import Flex from "../Flex"; import { wit...
import StrictEventEmitter from "strict-event-emitter-types"; import { EventEmitter } from "events"; import fillInPrediction from "./imageRecognition/tensorflow"; import SudokuSolver from "./solver/sudokuSolver"; import getLargestConnectedComponent, { Point, } from "./imageProcessing/getLargestConnectedComponent"; imp...
<reponame>jsejcksn/jsonbox-client const fillRandomValues = window.crypto.getRandomValues.bind(crypto); type BoxMetadata = { _count: number; _createdOn?: string; _updatedOn?: string; }; type BoxOptions = { apiKey?: string; origin: string; }; export type JsonboxRecord<T> = T & Metadata; type JsonPrimitive =...
import type { Body } from 'p2-es' import { Ray, RaycastResult, vec2 } from 'p2-es' import type { Duplet } from './' import type KinematicCharacterController from './KinematicCharacterController' import type { RaycastControllerOptns } from './RaycastController' import RaycastController from './RaycastController' inter...
import { View, ViewBase } from "tns-core-modules/ui/page/page"; import { ObservableArray } from "tns-core-modules/data/observable-array/observable-array"; export var nQueryHelper: Function; type nQueryObject = { element?: nQuery, id?: string, classList?: Array<string>, className?: string, children?:...
<reponame>yuqicxy/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------...
// Copyright (c) 2017 VMware, Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<filename>src/store/actions.ts<gh_stars>1-10 import firebase from 'firebase' import { Action, ActionContext } from 'vuex' import Project from '../models/Project' import * as auth from '../services/auth' import db from '../services/db' import State from './State' import { SAVED_CREATE_PROJECT_FORM_DATA_KEY, PROJECTS_PE...
<filename>src/app/widgets/widgets-tree.ts import { Component, SkipSelf, Optional, forwardRef, Inject, Input, Injectable, ComponentFactory, Compiler, NgModule, ViewContainerRef, ViewChild, ComponentRef, OnChanges, SimpleChanges, OnDestroy, ElementRef, ...
// import '../main' import * as pAll from 'p-all' import * as pForever from 'p-forever' import * as schedule from 'node-schedule' import * as dayjs from 'dayjs' import * as prettyms from 'pretty-ms' import * as _ from '../../common/lodash' import * as Rx from '../../common/rxjs' import * as core from '../../common/cor...
<filename>node_modules/molstar/lib/mol-gl/renderable/schema.d.ts /** * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { ValueCell } from '../../mol-util'; import { AttributeItemSize, ElementsKind, AttributeValues, Attribute...
<filename>backend/src/controllers/test/api-controller.test.ts /** * Runs a set of tests fired by a client-side browser script. * * The tests test all api paths including validation fails. * * To run: * * Run the server, run this and then run the client-side scripts via the browser (which trigger events that caus...
<reponame>devilyouwei/pipcook import { exec, ExecOptions, ExecException } from 'child_process'; import * as path from 'path'; import * as fs from 'fs-extra'; import { provide, inject } from 'midway'; import * as HttpStatus from 'http-status'; import * as createHttpError from 'http-errors'; import { PipelineStatus, ...
import * as ESTree from "estree"; import { Server } from "../tern"; export { }; // #### Context #### interface ContextConstructor { new(defs: any[], parent: Server): Context; } export const Context: ContextConstructor; export interface Context { parent?: Server; topScope: Scope; /** The primitive numbe...
<filename>src/publisher/react-integration/core.ts import { getInternalReactConstants } from "./utils/getInternalReactConstants"; import { getFiberFlags } from "./utils/getFiberFlags"; import { CONCURRENT_MODE_NUMBER, CONCURRENT_MODE_SYMBOL_STRING, CONTEXT_NUMBER, CONTEXT_SYMBOL_STRING, DEPRECATED_ASYNC_MODE_S...
<filename>src/structures/Player.ts<gh_stars>0 import { Structure } from "../Structure"; import { Filters } from "./Filters"; import { Manager, SearchResult } from "./Manager"; import { Queue } from "./Queue"; import { Socket } from "./Socket"; import { LoadedTrack } from "./Track"; import { Utils } from "./Utils"; exp...
/** * @license * Copyright 2013 Palantir Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
/** * Copyright 2020 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law ...
<gh_stars>1-10 import { EventsList, Level, PlayerComponent, SettingsItem, SettingsSubItem } from '../interfaces'; import Player from '../player'; import { EVENT_OPTIONS, IS_ANDROID, IS_IOS, NAV } from '../utils/constants'; import { addEvent, sanitize } from '../utils/general'; import { isDashSource, isHlsSource } from ...
import React from 'react'; import {first, last, endsWith, words} from 'lodash'; import copyToClipboard from 'copy-to-clipboard'; import {filter, each} from '@jaszhix/utils'; import {Context} from './bootstrap'; import state from './stores/state'; import {undoAction, requestPermission} from './stores/main'; import * as...
'use strict'; // vscode import * as vscode from 'vscode'; // node import { env } from 'process'; import { platform } from 'os'; import * as fs from 'fs'; import * as path from 'path'; import { setTimeout } from 'timers'; import { Socket } from 'net'; import { spawnSync } from 'child_process'; import * as download fro...
import { assertIsTrue } from '../../data/utils/asserts'; import { Vec2, Vec3, clamp } from '../../math'; /** * Blends given samples using simple directional algorithm. * @param weights Result weights of each sample. * @param samples Every samples' parameter. * @param input Input parameter. */ export const blendSi...
import { isArray } from '../common/types'; import { LETTER } from '../core/definitions'; import { MathfieldConfigPrivate, InlineShortcutDefinition } from './config'; import { ParseMode } from '../public/core'; import { Atom } from '../core/atom'; import { INLINE_SHORTCUTS } from './shortcuts-definitions-inline'; impor...
<filename>src/plugins/aliases/command.ts import { exec as _exec } from 'child_process' import util from 'util' import { Extra, PluginInstance, PluginOptions, Userlvl } from '../../main/commander' import PluginLibrary from '../../main/pluginLib' const exec = util.promisify(_exec) export const options: PluginOptions ...
<filename>lab/trace-client-next/src/entities/accounts/components/debit-credit-notes/debit-credit-notes-body-hook.tsx<gh_stars>0 import { moment, useState, useEffect, useRef, } from '../../../../imports/regular-imports' import { makeStyles, Theme, createStyles, } from '../../../../imports/gui...
import React from 'react' import GoogleMap from 'react-google-map' import ReactGoogleMapLoader from 'react-google-maps-loader' import { combineAddress } from '../../utils/combine-address/combine-address' import notification from '../Notification' export type Coords = { lat: number lng: number } export type Coordi...
<reponame>unifiedinbox/uib-web2 import domUtil = require('../util'); import Event = require('../../../Event'); import lang = require('dojo/_base/lang'); import Master = require('../Master'); import KeyboardManager = require('./KeyboardManager'); import PointerManager = require('./PointerManager'); import ui = require('...
<reponame>talebzeghmi/metaflow-ui // // Default language // const en = { translation: { items: { flow: 'Flow', run: 'Run', step: 'Step', task: 'Task', artifact: 'Artifact', metadata: 'Metadata', }, home: { home: 'Home', 'show-all-runs': 'Show all runs', ...
<reponame>vikashruhilgit/UI<filename>src/component/gpay/GooglePay.ts /* eslint-disable no-console */ import { html, LitElement, property, state } from 'lit-element'; import { eventObj } from '../../utility/util'; import { postRequest } from '../../utility/http'; import Styles from './styles.scss'; declare global { ...
<filename>lib/theme/action_examples/x_preact/examples/table/table.ts import { VNode } from "preact" import { TableDataColumnRow, TableDataFooterRow, TableDataHeaderRow, TableDataSummaryRow, TableStructure, } from "../../../../../z_vendor/getto-table/preact/core" import { tableStructure } from "../....
<reponame>epam/TimebaseWS import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, OnDestroy, OnInit, Output, } from '@angular/core'; import { ActivatedRoute, Data } from '@angular/rout...
import React, { createContext, useContext, useEffect, useRef, useState, } from 'react'; import { matchPath } from 'react-router'; import { Context } from '~components/wrapper'; import { Near, NavLogo, NavLogoLarge, IconMyLiquidity, IconEn, IconZh, WrapNearEnter, IconAirDropGreenTip, } from '~c...
/* * CommentsStore store * */ import { types as T, getParent, Instance } from 'mobx-state-tree' import { values, map, findIndex, propEq, toUpper, pick, uniqBy, prop, } from 'ramda' import type { TRootStore, TCommunity, TAccount, TUser, TArticle, TThread, TRoute, TID, TPagedComment...
import * as React from "react"; import { CREATE_MATCH, JOIN_MATCH, SET_LOADING, MATCH_READY, HANDLE_INVITE, SET_OPPONENT_READY, SET_GAME, START_MATCH, START_QUESTION, ROUND_COUNTDOWN, ROUND_RESULT, SET_ROUND, SET_READY, MATCH_RESULT, MATCH_END } from "../types"; import MatchContext from ...
import OlImageWMS from 'ol/source/ImageWMS'; import { IQueryFeatureTypeResponse, IGisRequest, IQueryResponse, ISnapshotOptions, IFeatureType, IExtended, ILayerLegend, } from './IExtended'; import { getWmsLayersFromTypes } from '../utils'; import { executeWmsQuery, retrieveWmsFeature, loadWmsFeatureDescrip...
<filename>src/apis/Search.api.ts import { useLocation } from "react-router-dom"; import { IFacetProps, IFacetSectionProps, IFacetSidebarOperators, IFacetSidebarSelection, IOptionProps, } from "../models/Facet.model"; import { SearchResult } from "../models/Search.model"; const API_URL = process.env.REACT_APP...
<reponame>motorcyclejs/motorcyclejs // All events types described at // https://developer.mozilla.org/en-US/docs/Web/Events // tslint:disable:max-file-line-count export type ResourceEvents = 'cached' | 'error' | 'abort' | 'load' | 'beforeunload' | 'unload' export type NetworkEvents = 'online' | 'offline' export t...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict' import { Socket } from 'net' import { Uri, ConfigurationTarget, DocumentSymbolProvider, Extension, ExtensionContext, OutputChannel } from 'coc.nvim' import { DiagnosticSeverity, WorkspaceEdit, Disposable, Event...
<reponame>syedsimanta03/xrchat-server<filename>src/services/project/project.class.ts import { Service, SequelizeServiceOptions } from 'feathers-sequelize' import { Params, Id, NullableId } from '@feathersjs/feathers' import { Transaction } from 'sequelize/types' import fetch from 'node-fetch' import { mapProjectDetail...
// Implements support for Retro Studios actor data import { ResourceSystem } from "./resource"; import { readString } from "../util"; import ArrayBufferSlice from '../ArrayBufferSlice'; import { mat4, vec3 } from 'gl-matrix'; import { CMDL } from './cmdl'; import { Color } from "../gx/gx_material"; import { colorFromRG...
import { ipcRenderer } from 'electron' import { update } from './update-preview' import { MathJaxController, processHTMLString } from './mathjax-helper' import * as util from './util' import { getMedia } from '../src/util-common' import { ChannelMap } from './ipc' let handlerId: number let nativePageScrollKeys = false...
<filename>src/util/ArraySetView.ts import { computed, IComputedValue, IObservableArray, IObservableValue, isObservableArray, observable } from 'mobx' import { ArraySet } from 'mobx-keystone' import { computedFn } from 'mobx-utils' import { exists } from '../styles/util/lang' import { generateId } from './generateId' e...
import { IGirderItem, IGirderFolder } from "@/girder"; export interface IDatasetConfigurationMeta { id: string; datasetId: string; datasetName: string; name: string; description: string; } export interface IFrameInfo { DeltaT: number; PositionX: number; PositionY: number; PositionZ: number; IndexX...
<reponame>nairansilva/po-angular import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild, OnDestroy } from '@angular/core'; import { Subscription } from 'rxjs'; import { isFirefox, isIE, isIEOrEdge, openExternalLink } from './../../../../utils/util'; import { PoKeyCodeEnum } from './../../../.....
<gh_stars>0 import { getDomain } from "tldts"; import { getCanvasFontFp, getCanvasFp } from "./canvas-fingerprinting"; import { loadBrowserCookies, matchCookiesToEvents } from "./cookie-collector"; import { FB_ADVANCED_MATCHING_PARAMETERS, FB_STANDARD_EVENTS, } from "./fb-pixel-lookup"; import { BEHAVIOUR_TRACKIN...
/** * Module containing functions for converting to and from quantized melodies. * * @license * Copyright 2020 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
/** @format */ // https://juejin.im/post/5d594ea5518825041301bbcb 下面大部分hook来源 // https://github.com/streamich/react-use 更多自定义hook import React, { useState, useCallback, useEffect, useRef, Dispatch, SetStateAction, MutableRefObject, useMemo } from 'react' import { EventEmitter } from 'events' // 模拟传统的...
import _ from "lodash"; import PropTypes from "prop-types"; import React, { Component } from "react"; import {TouchableWithoutFeedback, Text, View, TouchableOpacity} from "react-native"; import { shouldUpdate } from "../../../component-updater"; import * as defaultStyle from "../../../style"; import styleConstructor ...
import React, {useCallback} from 'react' import ReactDOM from 'react-dom' import styled from '@emotion/styled' import {FieldArray} from 'formik' import {DragDropContext, Droppable, Draggable} from 'react-beautiful-dnd' import TextArea from 'client/components/TextArea' import SecondaryButton from 'universal/components/S...