text stringlengths 3.08k 15.5k |
|---|
export { default as a01 } from "./a01.jpg";
export { default as a02 } from "./a02.jpg";
export { default as a03 } from "./a03.jpg";
export { default as a04 } from "./a04.jpg";
export { default as a05 } from "./a05.jpg";
export { default as a06 } from "./a06.jpg";
export { default as a07 } from "./a07.jpg";
export { def... |
import * as path from 'path';
import URI from 'vscode-uri';
import * as sch from './schema/base';
import { findFirst } from './common';
import { buildLineMap } from './parser/scanner';
import * as lsp from 'vscode-languageserver';
export const languageId = 'sc2layout';
export const languageExt = 'SC2Layout';
// ===
... |
import { Decimal } from 'decimal.js';
import { IComputeEngine } from '../public';
export function gcd(a: Decimal, b: Decimal): Decimal {
//@todo: https://github.com/Yaffle/bigint-gcd/blob/main/gcd.js
console.assert(a.isInteger() && !b.isInteger());
while (!b.isZero()) [a, b] = [b, a.modulo(b)];
return a.abs();... |
import { Deferrable } from "@ethersproject/properties";
import { JsonRpcSigner, TransactionRequest } from "@ethersproject/providers";
import { ChainId } from "./chain";
import { Context, ContextValue } from "./context";
import { EarningsInterface } from "./interfaces/earnings";
import { FeesInterface } from "./interfa... |
import { gql, useQuery } from "@apollo/client";
import clsx from "clsx";
import { InferGetStaticPropsType } from "next";
import { useRouter } from "next/router";
import * as s from "superstruct";
import Link from "next/link";
import Banners from "../../components/Banners";
import Layout from "../../components/Layout";
... |
import * as React from 'react';
import * as _ from 'lodash-es';
import { Base64 } from 'js-base64';
import { PasteIcon } from '@patternfly/react-icons';
import { Button } from '@patternfly/react-core';
import * as classNames from 'classnames';
import { K8sResourceKind, k8sGet } from '../../module/k8s';
import { Sectio... |
<gh_stars>100-1000
//
// Copyright 2020-2021 Picovoice Inc.
//
// You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
// file accompanying this source.
//
// Unless required by applicable law or agreed to in writing, software distributed under the License i... |
<filename>test/oneClickWrapper.test.ts
import { OneClickWrapper, Token, EXP_2022, EXP_2023, YieldContract, forgeIdsInBytes, Action, TokenAmount, SimulationDetails, ETHToken, dummyAddress, EXP_2022JUN, EXP_WONDERLAND } from "../src";
import { NetworkInfo } from '../src/networks';
import { ethers, BigNumber as BN, utils... |
import "@jxa/global-type";
import { run } from "@jxa/run";
import { deserializeObj } from "../utils/common";
import { Types, FieldsWithSerializableTypes } from "../utils/commonTypes";
import {
AllOsascriptRemindersAction,
GetListByKeyProps,
OsascriptRemindersActionType,
OsascriptRemindersReturnType,
GetTodoBy... |
<gh_stars>0
/**
* © 2013 Liferay, Inc. <https://liferay.com> and Node GH contributors
* (see file: README.md)
* SPDX-License-Identifier: BSD-3-Clause
*/
import * as fs from 'fs'
import { cloneDeep } from 'lodash'
import * as path from 'path'
import * as userhome from 'userhome'
import * as which from 'which'
impor... |
<reponame>uxland/uxl-routing<filename>src/router.ts<gh_stars>0
import {extractGetParameters} from "./helpers/extract-get-parameters";
import {getOnlyUrl} from "./helpers/get-only-url";
import {findMatchingRoutes} from "./helpers/find-matching-routes";
import {isPushStateAvailable} from "./helpers/is-push-state-availabl... |
import { Server } from "clibri-websocket-server";
import * as WebSocket from "ws";
import { MultiBar, Presets } from "cli-progress";
import { Logger, DefaultLogger, IServerReceivedEvent } from "clibri";
Logger.setGlobalLevel(1);
const CLIENT_MSG = "Hello from client";
const CLIENTS_COUNT = 10000;
class Connection {... |
<filename>app/spider/KanaDictionaryGenerator.ts
import fs from "fs"
import {
GoiJaDictionaryType,
JA_PRIMARY_POS,
JA_POS,
} from "../src/types/GoiDictionaryTypes"
interface WordInputType {
wordInput: string
wordKeyInput: string
romajiInput: string
wapuroInput: string
posInput: string
jaTranslationInp... |
<gh_stars>0
export const enum op {
magicNumber_noop, //(count:vint, bytes:"BLD"[])
setSourceList, //(i:vint)
addSourceList, //(i:vint1)
subSourceList, //(i:vint1)
setSourceOffset, //(i:vint)
addSourceOffset, //(i:vint1)
subSourceOffset, //(i:vint1)
setDestinationList, //(i:vint1)
add... |
<reponame>ford442/webgpu-samples
import { mat4, vec3 } from 'gl-matrix';
import { makeSample, SampleInit } from '../../components/SampleLayout';
import {
cubeVertexArray,
cubeVertexSize,
cubeUVOffset,
cubePositionOffset,
cubeVertexCount,
} from '../../meshes/cube';
import basicVertWGSL from '../../shaders/b... |
<reponame>harshjulka/seeded<filename>examples/next-hello-world/src/universal_modules/platform-node/node-location.ts
import { Injectable, Inject, Optional } from '@angular/core';
import { PlatformLocation, APP_BASE_HREF } from '@angular/common';
import { REQUEST_URL, BASE_URL, ORIGIN_URL } from './tokens';
import * as... |
<reponame>jsinger67/vscode-clearcasescm
'use strict';
import { OutputChannel, window } from 'vscode';
import * as path from 'path';
import * as cp from 'child_process';
import * as nls from 'vscode-nls';
const localize: nls.LocalizeFunc = nls.loadMessageBundle();
enum ViewType {
UNKNOWN,
DYNAMIC,
SNAPSHO... |
<reponame>rneatherway/vscode-gitlens
'use strict';
import { ProgressLocation, QuickPickItem, window } from 'vscode';
import { BranchSorting } from '../../config';
import { Container } from '../../container';
import { GitReference, Repository } from '../../git/git';
import {
appendReposToTitle,
inputBranchNameStep,
P... |
<filename>next-app/src/Server/server.ts
// Next.js with socket.io: https://github.com/sergiodxa/next-socket.io/blob/master/server.js
// https://medium.com/factory-mind/websocket-node-js-express-step-by-step-using-typescript-725114ad5fe4
// https://blog.logrocket.com/websockets-tutorial-how-to-go-real-time-with-node-an... |
import {
Button,
Form,
FormGroup,
FormSelect,
FormSelectOption,
Modal,
ModalVariant,
Popover,
TextInput,
} from '@patternfly/react-core';
import { useEffect, useRef, useState } from 'react';
import { ISettings } from '../types';
import {
fetchAllDSLs,
fetchCompatibleDSLsAndCRDs,
useStepsAndViews... |
import { BodyDataPayload, RequestRecordDetailPayload, TimelineDataScope } from '../api/IRinCoreHub';
import { getContentType, isImage, isText } from '../utilities';
/** Calculate total duration of children. */
export function calculateChildrenDuration(data: TimelineDataScope) {
const ranges: { start: Date; end: Date... |
<filename>db/graphql-util.ts
import {
gql, makeExecutableSchema,
graphql,
GraphQLError,
GraphQLScalarType, GraphQLNonNull, GraphQLList,
isWrappingType
} from '../deps/graphql.ts';
import type {
ValueNode, ObjectValueNode, GraphQLSchema, GraphQLObjectType,
ObjectTypeDefinitionNode
} from '../deps/graphql... |
<reponame>Frankiamme/uProxy-p2p
import * as logging from '../logging/logging';
var log :logging.Log = new logging.Log('aqm');
// A general interface for Active Queue Manager algorithms.
// <T> must include everything required to send a packet.
// The number of bytes per packet is not exposed, so all
// implementatio... |
import SSH from 'node-ssh'
import fs from 'fs'
import { upload, uploadFiles, IUploadConfig } from './upload'
import { download, IDownloadConfig } from './download'
import path from 'path'
import os from 'os'
export interface IScriptConfig {
type: 'script'
/* custom shebang, default #!/usr/bin/env bash */
shebang... |
import { KeyInfo, KeyConfig } from "../../interface";
import { KeyActionType } from "../key-action/key-action-type";
import { KeyEventListenerType } from "../event-listener/event-listener-type";
import { KeyPosManager } from "../../keyboard-pos-manager/key-pos-manager";
import { KeyEvent } from "../key-event";
i... |
import Vue from "vue";
import Vuetify from "vuetify";
import VeeValidate from "vee-validate";
import VueChartkick from "vue-chartkick";
import Chart from "chart.js";
import { JL } from "jsnlog";
import moment from "moment";
import { List } from "linqts";
//import VueInputMask fro... |
import bodyParser from "body-parser";
import cors from "cors";
import debug from "debug";
import express, { Request, Response } from "express";
import fs from "fs";
import path from "path";
import uuid from "uuid/v4";
import { OWVerifyResponseValidator } from "../../modules/browser/ow";
import { IPv8Service } from "../... |
import {is, isNil, path} from 'ramda'
import * as LRU from 'lru-cache'
import log from './log'
import express from 'express'
/**
* 시간
*/
enum Time {
sec = 1000, minute = 60000, hour = 3600000, halfDay = 43200000, day = 86400000,
}
/**
* LRU 기본 설정
*/
const defaultLRUConfig = {
max: 1000,
maxAge: 5 * Time.min... |
<gh_stars>10-100
import chalk from 'chalk'
import * as fs from 'mz/fs'
import { resolve, sep } from 'path'
import { DbAdapter } from './adapter'
import { Commit, getConfigurationForCommit } from './git'
export type TaskType = 'up' | 'down'
export class MigrationLoadError extends Error {
constructor(public migrati... |
<reponame>karthisuku/incubator-dlab<filename>services/self-service/src/main/resources/webapp/src/app/administration/project/project-form/project-form.component.ts<gh_stars>1-10
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed... |
/**
* @file service worker
* @author Marx
*/
import PouchDB from 'pouchdb';
import {getSuccessData, getErrorData} from '../utils/resData';
interface ExtendableEvent extends Event {
waitUntil(fn: Promise<any>): void;
}
interface FetchEvent extends Event {
request: Request;
respondWith(response: Promise<Respons... |
<filename>2019/CVE-2019-1020010/vultarget/web/source/src/server/api/service/twitter.ts
import * as Koa from 'koa';
import * as Router from 'koa-router';
import * as uuid from 'uuid';
import autwh from 'autwh';
import redis from '../../../db/redis';
import { publishMainStream } from '../../../services/stream';
import co... |
import { Dictionary } from "async";
import { postcss } from "opticss";
import { AttributeSelector, ClassSelector, Declaration, DefinitionAST, DefinitionRoot, GlobalDeclaration, KeyCompoundSelector, Rule, ScopeSelector, Selector, builders, map as mapToDefinition, visit } from "../../BlockParser/ast";
import { AttrValue... |
/*
Copyright 2020-2021 The Matrix.org Foundation C.I.C.
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 t... |
import { Button, Form, message, Modal } from 'antd'
import qs from 'query-string'
import { useEffect, useMemo, useState } from 'react'
import { history, request, useIntl } from 'umi'
import { getGroupValue } from '@/utils/helpers/filters'
import FormItems from './components/FormItems'
import Options from './component... |
const { Crypto } = require('@peculiar/webcrypto')
const crypto = new Crypto()
// @ts-ignore
if (!global.window) {
// @ts-ignore
global.crypto = crypto
}
import * as sigUtil from '@metamask/eth-sig-util'
import { SignTypedDataVersion } from '@metamask/eth-sig-util'
import { Waku, WakuMessage } from 'js-waku'
import ... |
// Copyright 2018 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
<reponame>ShipChain/engine
/*
* Copyright 2018 ShipChain, 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 ... |
<filename>src/ui/dialogs/pageLayout.ts
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) <NAME> 2021.
import { SmoPageLayout, SmoLayoutManager } from '../../smo/data/scoreModifiers';
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
import { DialogDefinitionOption... |
<filename>infra-sk/modules/sort-sk/sort-sk.ts
/**
* @module modules/sort-sk
* @description <h2><code>sort-sk</code></h2>
*
* Allows sorting the members of the indicated element by the values of the
* data attributes.
*
* This element does *not* support the elements to sort changing. It assumes the data in
* the... |
/*
* Copyright © 2019 <NAME>, 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 applicable law or agreed to i... |
import classnames from 'classnames';
import { TFunction } from 'i18next';
import React, { useEffect } from 'react';
import { CSSTransition } from 'react-transition-group';
import { ISetNewBetAction, INumberAction, IStringAction, scssConstants, GoogleAnalytics } from '@ag/core';
import { callBetsSectionToBets } from '... |
<filename>packages/polar/src/types.ts
/* eslint-disable no-use-before-define */
// This file defines the different config types.
//
// For each possible kind of config value, we have two type:
//
// One that ends with UserConfig, which represent the config as
// written in the user's config file.
//
// The other one, w... |
import * as ReactDOM from "react-dom";
import { IDisposable } from "../disposable";
import { CUIContainer } from "./cuiContainer";
import { Margin } from "./primitives/margin";
import { Size } from "./primitives/size";
type ElementParameterOfReactDomRender = Parameters<ReactDOM.Renderer>[0][0];
function registerEvent... |
import pth from "path";
import { mkdirIfNotExist, hasIllegalChars } from "./utility";
import { Tag } from "./tag";
import { Recipe } from "./recipes";
import { LootTable } from "./loot";
import { McFunction } from "@throw-out-error/minecraft-mcfunction";
const dataCategories: string[] = [
"functions",
"tags/blocks... |
import NodeVault = require("node-vault")
import util = require("util")
import os = require("os")
import {Option} from "node-vault";
type TaskLogger = (taskID: string, msg: string) => void
interface operationContext {
contextCancelled: boolean
watchTaskLogsActive: boolean
watchTaskStatusActive: boolean
... |
import React from 'react';
import {forwardRef} from 'react';
import { FormNodeHtmlPlugin } from '../../form-node';
import { onFocus } from './focus';
export interface ItemProps {
id? : string;
style : any;
children: React.ReactNode;
listeners : any;
node : any;
isObjectListNodeEditing : boolean;
onSetValue : a... |
import { Component, ViewChild, Output, Input, EventEmitter, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
import { Observable } from 'rxjs';
import { WindowService } from '../main/window.service';
import { ApiFile } from './file';
enum CompareMode {
None = 0,
Inline = 1,
Split = 2
}
@Compo... |
import { ClockIcon } from "@heroicons/react/outline";
import { useRef } from "react";
import { useLocale } from "@lib/hooks/useLocale";
import showToast from "@lib/notification";
import Button from "@components/ui/Button";
interface SetTimesModalProps {
startTime: number;
endTime: number;
onChange: (times: { st... |
<reponame>Dixaba/TurboAery<filename>src/lolLootManipulator/lolLootManipulator.ts
import axios from 'axios';
import memoize from 'lodash/memoize';
const { Kayn } = require('kayn');
// TODO: extract interfaces to external file
type TLootRarity = '' | 'DEFAULT' | 'EPIC' | 'LEGENDARY' | 'MYTHIC' | 'ULTIMATE';
type TLoot... |
<reponame>sergiosgc/AdventOfCode2019
import { test, readInput } from "../utils/index"
const prepareInput = (rawInput: string) => rawInput
.split("\n")
.map( (line) => line.split('') )
.map( (line, y) => line.map ( (cell, x) => { return { "x": x, "y": y, "asteroid": cell == '#' } } ) )
.reduce( (acc, line) => a... |
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as zlib from 'zlib';
import { IRender, RenderTask, RenderError } from './interfaces'
import { Diagram, diagramStartReg } from '../diagram/diagram';
import { config } from '../config';
import { localize } from '../common';
import { addFileIndex } from... |
import "jqtree";
import { Spinner } from "spin.js";
import * as cookie from "cookie";
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
interface JQTreeMoveEvent extends JQuery.Event {
move_info: {
moved_node: INode;
position: string;
target_node: INode;
do_move... |
<filename>src/site-admin/configHelpers.ts
import { FormattingOptions } from '@sqs/jsonc-parser'
import { removeProperty, setProperty } from '@sqs/jsonc-parser/lib/edit'
import { SlackNotificationsConfig } from '../schema/settings.schema'
import {
AwsCodeCommitConnection,
BitbucketServerConnection,
GitHubCon... |
<filename>ui/taxreport.ts
import {form_button, form_entry, invisible_anchor, loading_placeholder, page_header, table_html} from './elements';
import {date_text_to_utc_ts, prompt_directory_select_async, showError, showInfo, showWarning, timestamp_to_date, utc_now} from './utils';
import {create_task, monitor_add_callbac... |
import * as React from "react"
import { StyleSheet, Dimensions } from "react-native"
import LottieView from "lottie-react-native"
import WhatIsBitcoinSVG from "./01-so-what-exactly-is-bitcoin-01.svg"
import SatSVG from "./02-i-just-earned-a-sat-01.svg"
import WhereBitcoinExistSVG from "./03-where-do-the-bitcoins-exist-... |
<gh_stars>10-100
import * as cheerio from "cheerio";
import {GenreCondition} from "./enum";
import {GenreCollection} from "../filter";
import {filter, GenreFilter, MangaFilter, NameFilterCondition, Search} from "../filter";
import {gin} from "./interface";
import FilterSupport = filter.FilterSupport;
import MangaXDoc =... |
import firebase from "firebase/app";
import "firebase/firestore";
import "firebase/storage";
import "firebase/auth";
import "firebase/analytics";
import "firebase/database";
import { IFirebase } from "@stores/interface";
import axios from "axios";
var firebaseConfig = {
apiKey: "<KEY>",
authDomain: "uniform-window... |
<reponame>wondollaballa/shogun<gh_stars>0
import Vue from 'vue'
import Component from 'vue-class-component'
import { AgGridVue } from 'ag-grid-vue';
import { moment } from 'fullcalendar';
import axios from 'axios'
interface IBlackoutDate {
[date: string] : string
}
interface ISet {
[key: number]: string
}
inte... |
<reponame>sunbird-cb/sb-cb-ui-components
// import { HttpClient } from '@angular/common/http'
import { Injectable } from '@angular/core'
import { KeycloakEvent, KeycloakEventType, KeycloakInitOptions, KeycloakService } from 'keycloak-angular'
import { fromEvent, ReplaySubject } from 'rxjs'
import { filter } from 'rxjs/... |
<gh_stars>1-10
/*
* Copyright 2019 HERMENEUT Consortium
*
* 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 b... |
<filename>src/drivers/abstract-javascript.ts
import * as recast from "recast"
import * as vscode from 'vscode'
import { removeShebang, ParameterPosition, showVariadicNumbers } from "../utils"
export function getParameterName(editor: vscode.TextEditor, position: vscode.Position, key: number, namedValue?: string) {
... |
<filename>src/serve/static.ts
/*--------------------------------------------------------------------------
MIT License
Copyright (c) Hammer 2021 <NAME> (sinclair) <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"... |
export function solution(input: string[], options?: any) {
const cluster = new Cluster();
cluster.parseNodes(input.slice(2));
const map = cluster.generateMap();
cluster.printNodes(map);
return "" + cluster.countLeastMoves(map);
}
interface IPosition {
x: number;
y: number;
}
class Cluster ... |
<reponame>akshatgarg12/Microsoft-engage-project
import http from 'http'
import express, { Request, Response } from 'express'
import { Server } from 'socket.io'
import API from './routes'
import cors from 'cors'
import cookieParser from 'cookie-parser'
import { config } from 'dotenv'
import { __prod__ } from './constan... |
import {
EuiCollapsibleNav,
EuiCollapsibleNavGroup,
EuiFlexItem,
EuiHeader,
EuiHeaderLogo,
EuiHeaderSection,
EuiHeaderSectionItem,
EuiHeaderSectionItemButton,
EuiHorizontalRule,
EuiIcon,
EuiListGroupItem,
EuiPinnableListGroup,
EuiPinnableListGroupItemProps,
EuiShowFor,
} from '@elastic/eui';... |
import puppeteer from 'puppeteer'
type Conversation = {
unread: boolean,
id: number,
timestamp: string,
from: string,
latestMsgText: string
}
class MessageService {
private page: puppeteer.Page
constructor (page: puppeteer.Page) {
this.page = page
}
async getInbox() {
... |
import { debounce } from './'
let localStorage = window.localStorage
const rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/ // 检测是否是json对象格式
function parseData(value: any) {
return value === 'true' ? true :
value === 'false' ? false :
value === 'null' ? null :
+value + '' === value ? +value :
... |
class AverageStatsTableEntry {
private readonly _challenge: number;
private readonly _proficiencyBonus: number;
private readonly _armorClass: number;
private readonly _hitPointsRange: [number, number];
private readonly _attackBonus: number;
private readonly _damagePerRound: [number, number];
... |
import { css } from '@emotion/css'
import globalCss, { rem } from '../styles/global-css'
import useScrollToTop from '../customHooks/useScrollToTop'
import { LoginContext } from '../context/LoginContext'
import { useContext, useEffect, useState } from 'react'
import ErrorSection from '../components/atoms/ErrorSection'
i... |
<filename>test/utils.ts
// Copyright 2021 Cartesi Pte. 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 required by applicable law ... |
import { Component, OnInit } from "@angular/core";
import {
areaGrid,
AreaRenderer,
Chart,
ChartAssist,
IAreaAccessors,
IChartSeries,
IXYScales,
LinearScale,
stackedArea,
stackedAreaAccessors,
TimeScale,
} from "@nova-ui/charts";
import moment from "moment/moment";
@Componen... |
/**
* Copyright Microsoft Corporation. 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 ... |
<gh_stars>1-10
import {
getImageDimensions,
getScrollPositions,
fabricRectToCropperBox,
} from '../utils';
import { fabric } from 'fabric';
import {
DependencyList,
Dispatch,
MutableRefObject,
SetStateAction,
useCallback,
useEffect,
useRef,
} from 'react';
import { CropperProps } from '../types';
... |
import React from "react";
import "./App.css";
import SideNav from "sections/SideNav";
import Header from "sections/Header";
import Footer from "sections/Footer";
import Actions from "sections/Actions";
import {
isHeaderCollapsed,
isResourcesSectionCollapsed,
isShowingHelp,
isSideSectionCollapsed,
} from "store/app... |
/* eslint-disable jsx-a11y/media-has-caption */
/* eslint-disable jsx-a11y/click-events-have-key-events */
/* eslint-disable jsx-a11y/interactive-supports-focus */
import { Component, h, Element, Method, Event, EventEmitter, Prop, State } from '@stencil/core';
import camIcon from '../../assets/icons/camera-reverse.svg... |
<gh_stars>10-100
import * as morph from "ts-morph";
import { Cardinality, Kind, Type } from "../utils/cds.types";
import { IElement, IEntityDefinition, IEnumDefinition } from "../utils/types";
import { BaseType } from "./base.type";
import { Enum } from "./enum";
import {
ActionFunction,
IActionFunctionDeclar... |
<filename>conflux-frontend/js-conflux-sdk/types/index.d.ts
type JSBI = BigInt;
type EPOCH_LABEL = 'latest_mined' | 'latest_state' | 'latest_checkpoint' | 'latest_confirmed' | 'earliest';
type EpochNumber = number | EPOCH_LABEL;
type Address = string;
type Hash = string;
type Quantity = string | number | JSBI;
// =====... |
// package: kin.agora.common.v3
// file: common/v3/model.proto
/* tslint:disable */
/* eslint-disable */
import * as jspb from "google-protobuf";
import * as validate_validate_pb from "../../validate/validate_pb";
export class StellarAccountId extends jspb.Message {
getValue(): string;
setValue(value: strin... |
<gh_stars>1-10
import * as _ from 'lodash';
import { AbstractDB, BaseDocument } from './AbstractDB';
import { SyncStatus } from './SyncStatus';
import { Log, ParsedLog } from '@augurproject/types';
import { DB } from './DB';
import { sleep } from '../utils/utils';
import { augurEmitter } from '../../events';
export in... |
<reponame>mmuller88/alf-cdk
import { name } from '../package.json';
import { PipelineApp, PipelineAppProps } from 'alf-cdk-app-pipeline/pipeline-app';
import { AlfInstancesStack, AlfInstancesStackProps, alfTypes } from './alf-instances-stack';
import { sharedDevAccountProps, sharedProdAccountProps } from 'alf-cdk-app-p... |
<gh_stars>10-100
import {
backgroundTransition,
css,
focusVisible,
focusVisibleColor,
getParsePaletteColor,
nonTouchHoverMedia,
palette2,
paletteContrastText,
px,
radius,
RcTheme,
RcThemedStyled,
setOpacity,
shadows,
} from '../../../../foundation';
import { RcIcon } from '../../../Icon';
im... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Observable, Subscription } from 'rxjs';
import { ActivatedRoute } from '@angular/router';
import { ProfileService } from 'src/app/services/profile.service';
import { AuthService } from 'src/app/services/auth.service';
import { ProfileContent } from ... |
import { getPossessive, getReflexive } from '../../template/Language/pronouns';
import { Missing } from '../../template/Language/Missing';
import { DoVerb } from '../../template/Verb/Do';
import { getSEArray } from './se-array';
import {
fkaTypeKey,
fkaPersonTypeKey,
fkaNameKey,
nameKey,
titleKey,
... |
import {bold} from 'chalk';
import {evalExp} from './evaluation';
import {tagLine, variable} from './lexical';
import {log} from '../log';
import {getPreparedLeftContent} from './utils';
import {createSourceMapApi, getLineNumber} from './sourceMap';
import applyLiquid from './index';
type Options = {
firstLineNum... |
<reponame>budokans/story-typer
import axios from "axios";
import { testables } from "@/lib/getStories";
const {
getParamsString,
getLatestPostsUrl,
getPageUrl,
getPosts,
getPostsOverPagesRecursive,
getPostsOverPagesFactory,
getPostsOverPages,
getLatestStories,
} = testables;
/**
* @jest-environment no... |
<reponame>Gavin-Gong/fre<filename>src/reconcile.ts
import {
IFiber,
FreElement,
FC,
Attributes,
HTMLElementEx,
FreNode,
IEffect,
} from "./type"
import { createElement } from "./dom"
import { resetCursor } from "./hook"
import { schedule, shouldYield, startTransition } from "./schedule"
import { isArr, cr... |
<filename>src/models/state.ts<gh_stars>1-10
import { NearestFilter, Texture, TextureLoader } from 'three';
import m from 'mithril';
import { primaryThreeView } from './globals';
import { blurActiveElement, showErrorModal } from '../utils';
export const ANGLE_NUM_DECIMAL_PLACES = 1;
export const GOLDEN_ANGLE = 137.5;
... |
import { BackTop, Badge, Button, Dropdown, Icon, Layout, Menu } from "antd";
import { isEmpty } from "lodash";
import AutoComplete from "components/ui/AutoComplete";
import OctDrawer from "components/ui/Drawer";
import Logo from "components/ui/Logo";
import connectComponent from "lib/connectComponents";
import { DISTAN... |
/*!
* Copyright 2021 Cognite AS
*/
import { Cognite3DModel } from '../../../public/migration/Cognite3DModel';
import { PopulateIndexSetFromPagedResponseHelper } from './PopulateIndexSetFromPagedResponseHelper';
import { PropertyFilterNodeCollectionOptions } from './PropertyFilterNodeCollection';
import { IndexSet, ... |
<reponame>palgorhythm/preducksDesktop<gh_stars>0
import {
ComponentInt,
ComponentsInt,
ChildInt,
ChildrenInt,
PropInt,
ComponentStateInterface,
} from './InterfaceDefinitions';
import cloneDeep from './cloneDeep';
import store from '../store';
import preducksDefaultDisplay from './preducksDefaultDisplay';
... |
<reponame>YuriKravetc/VictoriaMetrics
import uPlot, {Series as uPlotSeries, Series} from "uplot";
import {getColorFromString} from "./color";
import dayjs from "dayjs";
import {MetricResult} from "../api/types";
import {LegendItem} from "../components/Legend/Legend";
import {getNameForMetric} from "./metric";
import {g... |
import { expect } from 'chai';
import sinon from 'sinon';
import fs from 'fs-extra';
import path from 'path';
import GIFrame from '../src/giframe';
import { writeTempImage, diffImage, cleanTempDir } from './utils';
const GIF_PATH = path.resolve(__dirname, 'img', '1.gif');
const LARGE_GIF_PATH = path.resolve(__dirname,... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DeploymentCredentialsComponent } from './deployment-credentials.component';
import { TextboxComponent } from '../../../../controls/textbox/textbox.component';
import { MockComponent } from 'ng-mocks';
import { TranslateModule } from '@n... |
<reponame>treygriffith/ui-box
import PropTypes from 'prop-types'
import getCss from '../get-css'
import { PropEnhancerValueType, PropValidators, PropEnhancers, PropTypesMapping, PropAliases } from '../types/enhancers'
export const propTypes: PropTypesMapping = {
columnGap: PropTypes.oneOfType([PropTypes.string, Prop... |
import { logging, rpc, sc, u, wallet } from "@cityofzion/neon-core";
import * as abi from "./abi";
const log = logging.default("nep5");
export interface TokenInfo {
name: string;
symbol: string;
decimals: number;
totalSupply: number;
balance?: u.Fixed8;
}
const parseTokenInfo = rpc.buildParser(
... |
import { ICosmosTransaction, ICosmosValidator } from "@anthem/utils";
import { H6 } from "@blueprintjs/core";
import React from "react";
import {
formatAddressString,
getFiatPriceHistoryMap,
getPriceFromTransactionTimestamp,
getValidatorNameFromAddress,
getValidatorOperatorAddressMap,
PriceHistoryMap,
Val... |
<reponame>jeffwilcox3/opensource-portal<gh_stars>1-10
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import express = require('express');
import asyncHandler from 'express-async-handler';
const router = express.Router();
import {... |
<reponame>MaySoMusician/word2vec-visualizer-nuxt
// import path from 'path'
// import fs from 'fs'
// import http from 'http'
import { NuxtConfig } from '@nuxt/types'
import colors from 'vuetify/es5/util/colors'
import {
websiteName,
websiteNameShort,
websiteDescription,
} from './userModules/constants'
import fi... |
import classnames from "classnames";
import React, { PureComponent, KeyboardEvent, FocusEvent } from "react";
import "./Tabs.scss";
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
type CustomSelectEvent = React.MouseEvent<HTMLDivElement, MouseEvent> & {
target: HTMLDivElement;
};
export interface TabProps... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.