text stringlengths 3.3k 33k |
|---|
import * as express from 'express'
import * as compression from 'compression'
import * as bodyParser from 'body-parser'
import * as cheerio from 'cheerio'
import verifier from 'google-id-token-verifier'
import * as favicon from 'serve-favicon'
import device from 'device'
import { renderToString } from 'react-dom/server... |
import { StepResult, StepJSON, BaseStep } from './step';
import { StepMap, Mappable } from './step-map';
import { Slice } from '../node/slice';
import { EditorNode } from '../node';
import { Schema } from '../schema';
/**
* Replace a part of the document with a slice of new content.
*/
export class ReplaceStep exten... |
<filename>packages/cz-git/src/generator/question.ts
/**
* @description: generate commitizen questions(generateQuestions)
* @author: @Zhengqbbb (<EMAIL>)
* @license: MIT
*/
import type { Answers, CommitizenGitOptions, Option } from "../shared";
import {
isSingleItem,
getCurrentScopes,
getProcessSubject,
get... |
<reponame>mtomim/kana-romaji
const map = {
consonant: {
k: [..."かきくけこ"],
s: [..."さすせそ"],
sh: ["し",],
t: [..."たてと"],
ts: ["つ",],
ch: ["ち",],
n: [..."なにぬねのん"],
h: [..."はひへほ"],
m: [..."まみむめも"],
y: [..."やゆよ"],
ySupPre: [..."ゃゅょ"],
supPre: [..."ぁぃぅぇぉゎ"],
r: [..."らりるれろ"],... |
import type { ArgumentGenerator, ArgumentOption } from '#util/arguments';
import { parseArguments } from '#util/arguments';
import { ALIAS_REPLACEMENT_REGEX, Links, PRODUCTION } from '#util/constants';
import { log } from '#util/logger';
import { escapeRegex, getUser, isInteraction, isOwner, pluralize } from '#util/mis... |
import DataLoader = require('dataloader')
import { Client } from 'pg'
import { CollectionKey, ObjectType, getNonNullableType } from '../../../interface'
import { sql, memoizeMethod } from '../../utils'
import { PgCatalog, PgCatalogNamespace, PgCatalogClass, PgCatalogAttribute, PgCatalogPrimaryKeyConstraint, PgCatalogUn... |
<gh_stars>0
import * as _ from 'lodash';
// microservice
import * as chassis from '@restorecommerce/chassis-srv';
import { createLogger } from '@restorecommerce/logger';
import { createServiceConfig } from '@restorecommerce/service-config';
import { Events, Topic } from '@restorecommerce/kafka-client';
import { GrpcCli... |
import { PlayedTrack, SpotifyToken, SpotifyUser, SpotifyUserData } from '../ts';
import { uniqueId } from 'lodash';
export function buildPlayedTrack(overrides?: any): PlayedTrack {
return Object.assign({
spotifyUri: 'spotify:track:091n9MH1VUepOdhnv7SLci',
spotifyId: '091n9MH1VUepOdhnv7SLci',
... |
/* eslint-disable react/jsx-props-no-spreading */
/* eslint-disable global-require */
import React, { useCallback, useEffect, useState } from 'react';
import { Image, View, Text } from 'react-native';
import { gql, useQuery, useMutation, useSubscription } from '@apollo/client';
import {
Bubble,
Composer,
GiftedCh... |
const DOUBLE_QUOTE = '"';
const SINGLE_QUOTE = "'";
const BACK_QUOTE = "`";
const SLASH = "/";
const STRING_PAIR = [SINGLE_QUOTE, DOUBLE_QUOTE, BACK_QUOTE] as const;
const L_BRACE = "{";
const R_BRACE = "}";
const CONTROL_TOKENS = [
";",
",",
L_BRACE,
R_BRACE,
"(",
")",
"+",
"-",
"/",
"%",
">",... |
<gh_stars>1-10
import { ICopy, IEqualsDelta } from "@thi.ng/api/api";
import { isArrayLike } from "@thi.ng/checks/is-arraylike";
import { Mat, ReadonlyMat, Vec } from "./api";
import { eqDelta } from "./common";
import { EPS } from "./math";
import {
cross2,
dot2,
setS2,
Vec2
} from "./vec2";
export co... |
<gh_stars>1-10
import { spawn } from 'child_process';
import { ChildProcess } from 'child_process';
import * as tempy from 'tempy';
import * as request from 'superagent';
import { Socket } from 'net';
import { logger } from './logger';
import { Readable } from 'stream';
import execa = require('execa');
export interfac... |
import type {
ResponseBody,
ResponseBodyError,
WithJWT,
ToObject,
ToOptional,
} from '../global';
export type Version = 'v0-alpha.1' | 'v1';
class ApiError extends Error {
type: string;
code: number;
statusCode: number;
headers: Record<string, string>;
args?: any;
stack!: string;
constructor({
args,
m... |
import { FC, useEffect, useState } from 'react';
import Select from 'react-select';
import CourseVersion from './CourseVersion';
import { ReactComponent as Question } from '../../../../resources/svg/Question.svg';
import { ReactComponent as Arrow } from '../../../../resources/svg/ArrowDown.svg';
import { useDispatch, u... |
import React, { useState, useEffect } from "react";
import { Block, Text } from "styledComp";
import { BatakCard } from "./cards/usercCard";
import { BatakBotCard } from "./cards/botCard";
import { BatakGameCard } from "./cards/gameCard";
import BatakGameHeader from "./header";
import { IAppState, IGlobalDispatch... |
<gh_stars>0
import {convertDtoToChatMessage} from "../../api/converters";
import {ChatRoom, ChatRoomMessage, ChatRoomUser} from "../../model/chat-room";
import {UserProfile} from "../../model/user-profile";
import {AUTH_ACTION_TYPES, LogInSuccessAction} from "../auth/actions";
import {CreateProfileSuccessAction, FetchU... |
import { GraphQLResolveInfo } from 'graphql';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMay... |
import React, {useState, useContext, useEffect} from 'react';
import {useIntl} from 'react-intl';
//// storage
import AsyncStorage from '@react-native-community/async-storage';
import ImagePicker, {ImageOrVideo} from 'react-native-image-crop-picker';
import {AuthContext, PostsContext, UIContext, UserContext} from '~/co... |
<filename>Source/Classes/Services/DataStoreService.ts
// NOTICE Tag internal members as @internal or pull them out.
import { GlobalDataStore } from '../GlobalDataStore';
import { Globals } from '../../Util/Globals';
import { OrderedDataStore } from '../OrderedDataStore';
import { DataStoreOptions } from '../DataStoreO... |
<filename>demo/src/app/components/+modal/modal-section.component.ts
import { Component } from '@angular/core';
import { DEMOS } from './demos';
// webpack html imports
let titleDoc = require('html-loader!markdown-loader!./docs/title.md');
@Component({
selector: 'modal-section',
template: `
<demo-section [name]="n... |
import React, { useState, useEffect, useRef } from "react";
import { useParams } from "react-router-dom";
import {
makeStyles,
Theme,
Box,
Grid,
Typography,
TextField,
Button,
fade,
darken,
} from "@material-ui/core";
import Cookies from "js-cookie";
import "react-image-crop/dist/ReactCrop.css";
impor... |
<filename>packages/components/menu/src/Menu.styles.tsx
import * as React from 'react';
import styled, { css, FlattenSimpleInterpolation } from 'styled-components';
import { ThemeProps } from '@synerise/ds-core/dist/js/DSProvider/ThemeProvider/theme';
import { Menu } from 'antd';
import { AntdMenuProps, MenuDividerProps... |
// Copyright 2017 The HongJiang Project Authors. All right reserved.
// Use of this source that is governed by a Apache-style
// license that can be found in the LICENSE file.
//
// 定义跨设备服务器端接口 之 开始订单支付信息
//
// 调用权限: API_PURVIEW_MEMBER | API_PURVIEW_ADMINS <Passing/>
//
// 参数说明:
// {
// "openID": "<KE... |
<filename>rush-plugins/rush-init-project-plugin/src/plopfile.ts<gh_stars>10-100
import type { RushConfiguration } from "@rushstack/rush-sdk";
import { FileSystem, PackageName } from "@rushstack/node-core-library";
import hbsHelpersLib from "handlebars-helpers/lib";
import { Answers, Inquirer } from "inquirer";
impo... |
/*
* @Author: 焦质晔
* @Date: 2022-01-06 10:58:43
* @Last Modified by: 焦质晔
* @Last Modified time: 2022-01-09 18:08:03
*/
import React from 'react';
import omit from 'omit.js';
import classNames from 'classnames';
import localforage from 'localforage';
import ConfigContext from '../../../config-provider/context';
impo... |
import {
payRequest,
getErc20Balance,
hasErc20Approval,
approveErc20,
} from "@requestnetwork/payment-processor";
import { useCallback, useEffect, useState } from "react";
import { useWeb3React } from "@web3-react/core";
import { useRequest } from "request-shared";
import { Web3Provider, TransactionResponse }... |
import { Article } from 'app/App.components/Article/Article.view'
import { Banner } from 'app/App.components/Banner/Banner.view'
import { Blog } from 'app/App.components/Blog/Blog.view'
import { Button } from 'app/App.components/Button/Button.view'
import { GetClap } from 'app/App.components/GetClap/GetClap.controller'... |
import { Context } from "config/types"
import {
CreateBandInput,
SessionInformation,
OutBandInput,
JoinBandInput,
UpdateBandInput,
UpdateBandQuery,
DeleteBandInput,
} from "resolvers/app/band/models"
import {
sessionParse,
snakeToCamel,
getRandomImage,
bandJoinMessage,
} from... |
/* eslint-disable max-lines */
import React, { FunctionComponent } from 'react';
import {
Container,
Title,
Description,
Form,
ModeButtonsContainer,
ModeButton,
InlineFieldsWrapper,
BottomButtonsWrapper,
} from './EventForm.style';
import { useIntl } from 'react-intl';
import InputField from 'component... |
<filename>src/hooks/useMirroringShare.ts
import database, {
FirebaseDatabaseTypes,
} from '@react-native-firebase/database';
import { useNavigation } from '@react-navigation/native';
import * as Location from 'expo-location';
import * as TaskManager from 'expo-task-manager';
import * as geolib from 'geolib';
import {... |
<reponame>Vector000/bilive_electron
import { randomBytes } from 'crypto'
import { EventEmitter } from 'events'
import tools from './lib/tools'
import User from './user'
import DMclient from './dm_client_re'
import { _options, _user } from './index'
import { ipcMain, BrowserWindow } from 'electron'
/**
* 程序设置
*
* @c... |
<gh_stars>1-10
import { exists, readFile } from 'vs/base/node/pfs';
import { CMAKE_CONFIG_FILE_NAME, CMAKE_LIBRARY_FOLDER_NAME, ICompileOptions } from 'vs/kendryte/vs/workbench/cmake/common/cmakeConfigSchema';
import { resolvePath } from 'vs/kendryte/vs/base/node/resolvePath';
import { ILogService } from 'vs/platform/l... |
import { ButtonInteraction, CommandInteraction, InteractionUpdateOptions, Message, MessageEmbedOptions, MessageOptions, MessagePayload, TextChannel, User, WebhookEditMessageOptions } from 'discord.js';
import moment from 'moment-timezone';
import fs from 'fs';
import { appendTime, condenseArrayByLengthLimit, confirm_t... |
<gh_stars>100-1000
const THREE = SupEngine.THREE;
import { CubicModelAssetPub } from "../data/CubicModelAsset";
import { Node } from "../data/CubicModelNodes";
import CubicModelRendererUpdater from "./CubicModelRendererUpdater";
export interface RendererNode {
nodeId: string;
pivot: THREE.Object3D;
shape: THREE... |
<reponame>Mariana-Yui/yui-server-side
import encrypt from './crypto';
import * as PacProxyAgent from 'pac-proxy-agent';
import * as request from 'request';
import * as queryString from 'querystring';
import * as zlib from 'zlib';
// request.debug = true // 开启可看到更详细信息
const chooseUserAgent = (ua: string | undefined) =... |
// Modules
import * as React from 'react'
import Group from 'react-group'
const javascriptStringify = require('javascript-stringify')
// Components
import Table from 'react-styleguidist/lib/rsg-components/Table'
import Name from 'react-styleguidist/lib/rsg-components/Name'
import Type from 'react-styleguidist/lib/rsg-... |
import * as childProcess from "child_process"
import * as path from "path"
import * as chokidar from "chokidar"
import { promisify } from "util"
export interface TaskEnvironment {
readonly name: string
}
export interface Task<T> {
readonly name: string | null
withName(name: string | null): Task<T>
run... |
<filename>src/Data/Characters/Albedo/data.ts
import { getTalentStatKey } from "../../../Build/Build"
import { IFormulaSheet } from "../../../Types/character"
import { basicDMGFormula } from "../../../Util/FormulaUtil"
const data = {
normal: {
hitArr: [
[36.74, 39.73, 42.72, 46.99, 49.98, 53.4, 58.1, 62.8, ... |
<gh_stars>0
import View from '!view!./event-item.html?style=./event-item.styl';
import { Community } from 'game-jolt-frontend-lib/components/community/community.model';
import { AppCommunityPill } from 'game-jolt-frontend-lib/components/community/pill/pill';
import { Environment } from 'game-jolt-frontend-lib/component... |
/**
* Utilities for parsing WebDriver commands from HTTP Requests.
*/
import * as events from 'events';
export type HttpMethod = 'GET'|'POST'|'DELETE';
export type paramKey = 'sessionId'|'elementId'|'name'|'propertyName';
export enum CommandName {
NewSession,
DeleteSession,
Status,
GetTimeouts,
SetTimeout... |
<filename>utils/useMemberTable.ts<gh_stars>1-10
import {
useFilters,
useGlobalFilter,
useSortBy,
usePagination,
useTable,
UseFiltersInstanceProps,
UseGlobalFiltersInstanceProps,
UsePaginationInstanceProps,
UseSortByInstanceProps,
PluginHook,
UseFiltersOptions,
UseGlobalFiltersOptions,
UsePagin... |
import { SelectProps } from "antd/lib/select";
import React, { useState, useEffect, ReactElement } from "react";
import { Select, Divider, message } from "antd";
import { OptionData } from 'rc-select/lib/interface';
import { useSearchManufacturerItemsQuery, UpdateManufacturerItemMutationVariables, useGetManufacturer... |
import * as CANNON from "cannon-es";
import { stepSpring } from "./spring";
import { createNanoEvents, Emitter } from "nanoevents";
import * as THREE from "three";
import { MathUtils } from "three";
import { getDiceUpFace } from "./getDiceUpFace";
import { nDice } from "./types";
import { getPhysicalHand } from "./phys... |
import assert from 'assert';
import fs from 'fs';
import path from 'path';
import { inspect } from 'util';
import webpack from 'webpack';
import terser, { MinifyOptions } from 'terser';
import Worker from 'jest-worker';
import { IndexRamBundle } from './IndexRamBundle';
import { FileRamBundle } from './FileRamBundle';... |
<reponame>winkitee/coffee-friends-nearby<gh_stars>1-10
import { Alert } from 'react-native';
import firebase from 'firebase';
import 'firebase/firestore';
import { Location, Permissions, Linking } from 'expo';
import {
Action,
Dispatch,
Location as LocationType,
GeoPoint
} from '../../types';
import { updateUse... |
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
import type {
EditorConfiguration,
Editor,
EditorChange,
Position,
Hints,
ShowHintOptio... |
import React from 'react'
import Tooltip from 'antd/lib/tooltip'
import { renderNumericValue } from '../helpers'
import { getColumnWidth } from '../quality/columns'
import Threshold from './Threshold'
import Trends from './Trends'
import { defaultSort, renderPercentColumnValue, getGroupTitle } from './helpers'
import ... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort'... |
<filename>src/app/models/journey.ts<gh_stars>0
import { IFareApiResponse, Fare } from './fare';
import { Discount } from './discount';
import { ILocationApiResponse, Location } from './location';
import { SeatReservation, IReservationApiResponse } from './seat-reservation';
import { TimetableJourney, ITimetableJourney... |
import { Bounds, Epsg, GoogleTms, Nztm2000QuadTms, Nztm2000Tms } from '@basemaps/geo';
import { TileSetName, V, VNodeElement } from '@basemaps/shared';
import { roundNumbersInString } from '@basemaps/test/build/rounding.js';
import { createHash } from 'crypto';
import o from 'ospec';
import { WmtsCapabilities } from '.... |
import React from 'react';
import './App.css';
import ROSLIB from 'roslib';
import RosNodeHealth from './RosNodeHealth/RosNodeHealth';
import { RosMon, RosOut, SensorMsgsJoy, RosmonActionEnum } from './ROS_message_types';
import RosOutLog from './RosOutLog/RosOutLog';
import { Drawer, Paper, Hidden } from '@material-ui... |
export type LanguageCode = string;
export interface Language {
code: LanguageCode;
enName: string; // english name
}
export const languages: Language[] = [
{ code: 'AA', enName: 'Afar' },
{ code: 'AB', enName: 'Abkhaz' },
{ code: 'AE', enName: 'Avestan' },
{ code: 'AF', enName: 'Afrikaans' },
{ code: 'AK', enN... |
import axios from 'axios';
import cheerio from 'cheerio';
import moment from 'moment';
import 'moment-timezone';
import { URLSearchParams } from 'url';
export interface ID {
n: string,
time: string,
}
export interface Address {
id: ID,
name: string,
ip: string,
subnet: string,
mac: string,
}
export in... |
<reponame>VenusProtocol/saddle<filename>src/trace/operator.ts<gh_stars>10-100
import { StructLog } from '../trace';
import { Desc, TraceInfo } from './descriptor';
import { addInv, showInv } from './inversion';
import { last, lastN, trimZero } from './utils';
export interface ExtendedInfo {
inputs: string[]
output... |
import React, { useState } from "react";
import { Knapp } from "nav-frontend-knapper";
import { FormattedMessage } from "react-intl";
import { FormContext, FormValidation, ValidatorContext } from "calidation";
import InputMedHjelpetekst from "components/felter/input-med-hjelpetekst/InputMedHjelpetekst";
import SelectLa... |
<reponame>renovate-bot/rushstack
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as fs from 'fs';
import * as os from 'os';
import { once } from 'events';
import { Path, ITerminal } from '@rushstack/... |
interface IMatrix3Static {
create (src?: number[]): number[];
copyTo (src: number[], dest: number[]): number[];
init (dest: number[], m11: number, m12: number, m21: number, m22: number, x0: number, y0: number): number[];
identity (dest?: number[]): number[];
equal (a: number[], b: number[]): bo... |
import {
Component,
Input,
ViewEncapsulation
} from '@angular/core';
import { BaseReactWrapper } from 'app/data-browser/base-react/base-react.wrapper';
import { GENDER_STRATUM_MAP, getBaseOptions } from 'app/data-browser/charts/react-base-chart/base-chart.service';
import * as highCharts from 'highcharts';
import... |
<filename>play-dl/YouTube/utils/extractor.ts
import { request } from './request';
import axios from 'axios';
import { Video } from '../classes/Video'
import { PlayList } from '../classes/Playlist'
const DEFAULT_API_KEY = "<KEY>";
const video_pattern = /^((?:https?:)?\/\/)?(?:(?:www|m)\.)?((?:youtube\.com|youtu.be))(\/... |
<filename>src/demos/bars/bars-chart.ts
import {
Selection,
axisBottom,
axisLeft,
extent,
max,
range,
scaleLinear,
select,
} from "d3"
import $ from "jquery"
import "jquery-ui/themes/base/all.css"
import { v1 as uuidv1 } from "uuid"
import { DragModule } from "./bars-chart-drag"
import * as styles from ... |
<gh_stars>1-10
import { Device, PageCreatedStep, DialogCloseStep } from 'last-hit-types';
import { Page } from 'puppeteer';
import { shorternUrl } from '../utils';
import ci from './ci-helper';
import Replayer from './replayer';
const installListenersOnPage = async (page: Page) => {
const god = () => {
console.log(... |
<reponame>nhtri/mobilecoffeemanage<filename>src/app/pages/user/user.component.ts
import { Component, OnInit } from "@angular/core";
import { NetworkserviceService } from 'src/app/services/networkservice.service';
import { Router } from '@angular/router';
import { FormBuilder, FormControl, FormGroup } from "@angular/for... |
import { APIRequestResult } from '@polo/common/api/common';
import { ISession } from '@polo/common/state/models';
import { SessionStatus } from '@polo/common/state/models/session-model-enums';
import React from 'react';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import duration fro... |
<filename>src/services/kyc.service.ts
import { Injectable, ServiceUnavailableException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Method } from 'axios';
import { createHash } from 'crypto';
import { User } from 'src/user/user.entity';
import { KycFile } from 'src/userData/kycF... |
import { json, JSONValueKind, JSONValue, Bytes, ipfs, log } from '@graphprotocol/graph-ts'
import { tokenAmountToDecimal } from './utils'
import { BI_18, NA, ZERO_BD } from './utils/constants'
import {
ProposalCreated as ProposalCreatedEvent,
ProposalStatusChanged as ProposalStatusChangedEvent,
Voted as VotedEven... |
<gh_stars>1-10
import { Component, OnInit } from "@angular/core";
import { QuestionsService } from "../questions.service";
import { CategoryService } from "../categories.service";
import { Category } from "../category.model";
import { QuestionBase } from "../question";
import { DifficultyLevel } from "../enum-difficul... |
import React, { Component } from 'react';
import { join } from 'lodash';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import { defineMessages, intlShape } from 'react-intl';
import vjf from 'mobx-react-form/lib/validators/VJF';
import { Autocomplete } from 'react-polymorph/lib/components/... |
<reponame>ValeeraJS/Nova
import { Matrix4 } from "@valeera/mathx/src/matrix";
import IEntity from "@valeera/x/src/interfaces/IEntity";
import Geometry3, { AttributesNodeData } from "../../components/geometry/Geometry3";
import { GEOMETRY_3D, MATERIAL, MODEL_3D, PROJECTION_3D } from "../../components/constants";
import ... |
import {app, BrowserWindow, ipcMain, dialog, IpcMainEvent} from "electron";
const child = require('child_process');
const taskkill = require('taskkill');
const {autoUpdater} = require('electron-updater');
import * as path from "path";
import fs from "fs";
// import os from "os";
const {v4: uuidv4} = require('uuid');
... |
<reponame>vaporgraph/pooltogether-subgraph<filename>src/mapping.ts<gh_stars>0
import { BigInt, Bytes, Address } from "@graphprotocol/graph-ts"
import { store, log } from '@graphprotocol/graph-ts'
import {
Pool,
Deposited,
SponsorshipDeposited,
AdminAdded,
AdminRemoved,
Withdrawn,
Opened,
Committed,
Re... |
<filename>src/sdk/v4/verses.ts<gh_stars>1-10
import {
ChapterId,
// HizbNumber,
JuzNumber,
Language,
PageNumber,
TranslationField,
// RubNumber,
Verse,
VerseField,
VerseKey,
WordField,
} from '../../types';
import { decamelize } from 'humps';
import Utils from '../utils';
import { fetcher } from '... |
import { Pixel, PixelClass, PixelVariables } from '../models/pixel';
import { CenterOfBiomassSum } from '../models/shared';
import {
calculateCenterOfBiomass,
getPixelSum,
isForestLandUse,
isPrivateLandUse,
} from '../pixelCalculations';
export const processCommercialThin = (pixels: Pixel[], centerOfBiomassSum... |
import path from 'path';
import fg from 'fast-glob';
import fs from 'fs-extra';
import { hash, is, merge, stringify, to, Try, unique } from '@amaui/utils';
import AmauiNode from '@amaui/node';
import AmauiStyle from './amaui-style';
import AmauiTheme from './amaui-theme';
import AmauiStyleSheetManager from './amaui-s... |
<reponame>OliverPanda/Ale
import { PluginObject } from './plugin';
import { AleUIComponent, AleUIComponentSize, AleUIHorizontalAlignment } from './component';
import { AlAlert } from './alert';
import { AlAside } from './aside';
import { AlAutocomplete } from './autocomplete';
import { AlBadge } from './badge';
import... |
<reponame>saby/saby-ui
/// <amd-module name="UICore/_vdom/Synchronizer/resources/Debug" />
/* tslint:disable */
import {
getVNodeChidlren,
isVNodeType,
isTextNodeType,
isControlVNodeType,
isTemplateVNodeType
} from './VdomMarkup';
import { DirtyKind } from './DirtyChecking';
// @ts-ignore
import { TClo... |
// From https://github.com/paulkoerbitz/typeful-redux
// WIP, experimentation
// tslint:disable:no-any
// tslint:disable:member-ordering
// tslint:disable:forin
import { createStore, applyMiddleware, combineReducers } from 'redux';
import { connect as redux_connect } from 'react-redux';
// import reduceReducers from ... |
/*
* AmorevinoPage
*
* This is the first thing users see of our App, at the '/' route
*/
import { useState, createRef } from 'react';
import { Helmet } from 'react-helmet';
import videojs from 'video.js';
import Video from '../../components/Video/video';
import {
Button,
Typography,
ListItemText,
ListIte... |
import classnames from 'classnames';
import React, { useEffect, useState } from 'react';
import { getClassNames } from './Table.classNames';
import { t, generateId, getSrOnlyStyle } from '../utils';
import { Icon } from '../Icon';
import { TableRow } from './TableRow';
import { Language, TableProps } from './Table.type... |
import * as Maybe from "./Maybe";
import * as AsyncData from "./AsyncData";
import { ErrorValue, isErrorValue, fromError } from "./ErrorValue";
export {
// Types
Result,
T,
// Constructors
Ok,
Err,
// Typeguards
isOk,
isErr,
// Conversions
fromMaybe,
fromAsyncData,
fromErrorable,
fromPromis... |
//@ts-nocheck
// todo - add typescript if it seems worthwhile
import {
useTable,
useFilters,
useGlobalFilter,
useAsyncDebounce,
useSortBy,
usePagination,
} from 'react-table'
import {
ChevronDoubleLeftIcon,
ChevronLeftIcon,
ChevronRightIcon,
ChevronDoubleRightIcon,
} from '@heroicons/react/solid'
im... |
import { Injector } from '@angular/core';
import { Subscription } from 'rxjs';
import { clone, isEmpty } from 'lodash';
import { Observable } from 'rxjs/Observable';
import { DataBrokerService } from '../databroker.service';
import { DataSource } from '../dataSource';
import { Query } from '../filter/query';
import { F... |
/**
* Preload file that will be executed in the renderer process.
* Note: This needs to be attached **prior to imports**, as imports
* would delay the attachment till after the event has been raised.
*/
document.addEventListener('DOMContentLoaded', () => {
injectScripts(); // eslint-disable-line @typescript-eslin... |
<filename>src/routes/transcription.ts<gh_stars>0
import {ExecuteOptions, XSLTExecutor} from '@lib.cam/xslt-nailgun';
import express, {Request, Router} from 'express';
import {StatusCodes} from 'http-status-codes';
import {JSDOM} from 'jsdom';
import path from 'path';
import {URL} from 'url';
import {NotFoundError, Up... |
import {EventDispatcher, Matrix4, Object3D, PerspectiveCamera, Raycaster, Scene, Vector3, WebGLRenderer} from 'three';
import {assertIsArCandidate} from '../utilities.js';
import ModelScene from './ModelScene.js';
import Renderer from './Renderer.js';
import Reticle from './Reticle.js';
import {assertContext} from './W... |
import * as L from 'leaflet';
import 'leaflet/dist/leaflet.css';
// TODO - move to index.ts
import '../../../styles/common.scss';
import IDataChangeAnimateOptions from '../../types/event/data/IDataChangeAnimateOptions';
import IMap from '../../types/map/IMap';
import IMapToolAPI from '../../types/api/IMapToolAPI';
im... |
// @ts-ignore
import * as stringify from 'json-stable-stringify-without-jsonify';
import * as crypto from 'crypto';
import type Zigbee from 'zigbee2mqtt/dist/zigbee';
import type MQTT from 'zigbee2mqtt/dist/mqtt';
import type State from 'zigbee2mqtt/dist/state';
import type EventBus from 'zigbee2mqtt/dist/eventBus';
i... |
// author: http://lamyoung.com/
const DIG_RADIUS = 50;
const DIG_FRAGMENT = 12;
const DIG_OPTIMIZE_SIZE = 1;
const { ccclass, property } = cc._decorator;
@ccclass
export default class Main extends cc.Component {
@property(cc.Graphics)
graphics: cc.Graphics = null;
@property(cc.Node)
node_dirty: cc... |
/*
* Copyright (c) 2022 <NAME>
* 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 a... |
<reponame>craftingmod/ncc_discord_auth
import chalk, { Chalk } from "chalk"
import { EventEmitter } from "events"
import * as fs from "fs-extra"
import * as path from "path"
import * as read from "read"
import * as request from "request-promise-native"
import { CookieJar } from "tough-cookie"
import * as util from "uti... |
/**
* Composition Module
*/
import * as primitives from "@tangdrew/primitives";
import * as t from "io-ts";
import { CodeableConcept } from "./CodeableConcept";
import { Element } from "./Element";
import { Extension } from "./Extension";
import { Identifier } from "./Identifier";
import { Meta } from "./Meta";
impo... |
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import type {
runTransaction,
collection,
query,
getDocs,
where,
limit,
doc,
getDoc,
addDoc,
updateDoc,
deleteDoc,
Firestore,
FirestoreDataConverter,
}... |
import { Injectable } from '@angular/core';
import { initializeDiseseCourses, simulateDisease, Course } from './disease/diseaseDynamics';
import { DiseaseDefinition, covid19 } from './disease/diseaseDefinition';
import { Subject, BehaviorSubject, Observable } from 'rxjs';
import * as aM from './tools/arrayMath'
import... |
<filename>client/src/templates.ts
import validFilename from "valid-filename";
import { ipcRenderer as ipc } from "electron";
import * as db from "debounce";
import { right } from "@buckneri/string";
import { CSVField, CSVTemplate, Entity } from "../../backend/types/PSCleaner";
let currentTemplate = "";
const listTemp... |
import { EventEmitter } from 'events';
import { useEffect, useState } from 'react';
import getConfig from 'next/config';
import config from '../../config.json';
export { useViewport } from 'stimbox/Components/ViewportContextProvider';
const {
publicRuntimeConfig: { resolvedTailwindConfig },
} = getConfig();
const ... |
/*!
* Licensed under the MIT License.
*/
import * as MRE from '@microsoft/mixed-reality-extension-sdk';
//import * as MRE from '../../mixed-reality-extension-sdk/packages/sdk/';
//import { Session } from '../../mixed-reality-extension-sdk/packages/sdk/built/internal/adapters/multipeer'
import {PianoReceiver... |
import React, { useState, useEffect, useMemo } from 'react';
import {
StyleSheet,
Dimensions,
Image,
FlatList,
ScrollView,
Alert,
Linking,
Platform,
View,
TouchableWithoutFeedback,
TouchableOpacity,
} from 'react-native';
import { Feather } from '@expo/vector-icons';
import MapView, { Marker } fro... |
<filename>features/multiply/open/pipes/openMultiplyVaultCalculations.ts
import { getMultiplyParams } from '@oasisdex/multiply'
import { BigNumber } from 'bignumber.js'
import { calculatePriceImpact } from 'features/shared/priceImpact'
import { LOAN_FEE, OAZO_FEE } from 'helpers/multiply/calculations'
import { one, zero... |
import React from 'react';
import { observer } from 'mobx-react';
import {
View,
Animated,
Text,
ActivityIndicator,
Image,
StyleSheet,
FlatList,
TouchableWithoutFeedback,
ScrollView,
} from 'react-native';
import { DrawDetailProps } from '~/typings/navigation';
import { observable, runInAction, comput... |
import { useEffect, useState } from 'react';
import createUseContext from 'constate';
import { useSprakContext } from '@navikt/familie-sprakvelger';
import {
byggHenterRessurs,
byggTomRessurs,
hentDataFraRessurs,
RessursStatus,
} from '@navikt/familie-typer';
import Miljø, { basePath } from '../Miljø... |
import { Nil, Type, Class, Constructor } from './types';
/**
* @en Mixin class's base interface.
* @ja Mixin クラスの基底インターフェイス定義
*/
export declare class MixinClass {
/**
* @en call mixin source class's `super()`. <br>
* This method should be called from constructor.
* @ja Mixin クラスの基底インターフェイス定義 <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.