text stringlengths 10 953k |
|---|
/*
* Copyright 2019 Ignacio Loyola @nodonade.com
* Version 0.1 (Working first step blog)
*/
import { UserService } from '../../services/user.service';
import { User } from './../../models/user';
import { Component, OnInit } from '@angular/core';
import { AuthenticationService } from 'src/app/services/authentication... |
export default function SideMenu(props: any) {
return(
<div className='h-100 d-flex flex-column flex-shrink-0' style={{width: props.width ? props.width : '220px', minWidth: '200px', marginRight: "1.5rem"}}>
{props.children}
</div>
);
} |
import {Observable} from 'rxjs'
import {AssetSourceSpec, SchemaType, AssetMetadataType} from '@sanity/types'
import type {Patch} from '../../patch/types'
export type UploadEvent = {
type: 'uploadEvent'
patches: Patch[] | null
}
export type ResolvedUploader = {uploader: Uploader; type: SchemaType}
export type Upl... |
import { EKSClient } from "../EKSClient.ts";
import { DescribeNodegroupCommand, DescribeNodegroupCommandInput } from "../commands/DescribeNodegroupCommand.ts";
import { WaiterConfiguration, WaiterResult, WaiterState, checkExceptions, createWaiter } from "../../util-waiter/mod.ts";
const checkState = async (client: EKS... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { UrlModule, I18nModule } from '@spartacus/core';
import { ProductVariantSizeSelectorComponent } from './product-variant-size-selector.component';
import { RouterModule } from '@angular/router';
@NgModule({
imports: [Com... |
import { BackboneElement } from './BackboneElement'
import { Coding } from './Coding'
import { DomainResource } from './DomainResource'
export class ClaimResponse_Error extends BackboneElement
{
static def : string = 'ClaimResponse_Error';
sequenceLinkId : string ;
detailSequenceLinkId : string ;
sub... |
/// <reference types="jest" />
export declare const Manager: {
create: jest.Mock<Promise<{
loadInitialData: jest.Mock<Promise<{}>, []>;
}>, []>;
}; |
import type Mithril from 'mithril';
export interface ComponentAttrs extends Mithril.Attributes {
}
/**
* The `Component` class defines a user interface 'building block'. A component
* generates a virtual DOM to be rendered on each redraw.
*
* Essentially, this is a wrapper for Mithril's components that adds several... |
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
import type { Vec, u16, u32, u64, u8 } from '@polkadot/types';
import type { Codec } from '@polkadot/types/types';
import type { PalletId } from '@cennznet/types/interfaces/system';
import type { BalanceOf, BlockNumber, Moment, Pe... |
import debugModule from "debug";
const debug = debugModule("codec:format:utils:circularity");
import type * as Format from "@truffle/codec/format/common";
export function tie(untied: Format.Values.Result): Format.Values.Result {
return tieWithTable(untied, []);
}
function tieWithTable(
untied: Format.Values.Resu... |
export class DeleteUserResponse {
message: string;
} |
import axios, { AxiosInstance } from "axios";
import { serializeRequest, serializeResponse } from "./serializer";
import MockedClient from './MockedClient'
import {
AnyObject,
RawDocumentData,
RequestSerializer,
ResponseSerializer,
SimpleQueries,
SimpleResults,
} from "./types";
import { OpenAPIV3 } from "o... |
export class Pagenation{
perPage:number
totalCount:number
currentPage:number
previousPage:number
nextPage:number
pageCount:number
pageUri:number
offset:number
sidePages:number
pages:any
constructor(totalCount,currentPage,pageUri,perPage=2){
this.perPage = perPage;
... |
import React from 'react';
import { MonoStore } from 'mono-state';
import { ReactMonoContext } from '../components/context';
import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';
interface StoreProps {
store: MonoStore,
context?: React.Context<MonoStore>
}
export const Provider: React... |
import { PLuginFunction, HttpError, Sact } from '@sact/core';
import { SessionReq, SessionRes, MemoryStore } from '@sact/session';
import { RedisStore } from '@sact/session/src';
import * as jwt from 'jsonwebtoken';
export interface Options {
/**
* secret for jwt token
*/
secret?: string;
tokenName?: strin... |
import { CHINA, JAPAN, KOREA } from "./producerIds";
declare const _default: {
3: string;
1: string;
2: string;
};
export default _default; |
import { PlopGenerator } from 'plop'
import { plopPromptValidate } from './plopPromptValidate'
export type PlopPrompt = {
language: 'typescript' | 'scala'
path: string
filter: string
prefix?: string
}
export const plopPrompt = (): PlopGenerator['prompts'] => [
{
type: 'list',
name:... |
import * as codebuild from '@aws-cdk/aws-codebuild';
import * as codepipeline from '@aws-cdk/aws-codepipeline';
import * as codepipeline_actions from '@aws-cdk/aws-codepipeline-actions';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as events from '@aws-cdk/aws-events';
import * as iam from '@aws-cdk/aws-iam';
impo... |
import { Route } from '@vaadin/router';
import { Flow } from '@vaadin/flow-frontend/Flow';
import './views/home/home-view';
import './views/main/main-view';
export type ViewRoute = Route & { title?: string; children?: ViewRoute[] };
export const {serverSideRoutes} = new Flow({
imports: () => import('../target/front... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { IncomingHttpHeaders } from 'http';
import { Webhooks } from '@octokit/webhooks';
import { sendActionRequest } from '../sqs';
import { CheckRunEvent, WorkflowJobEvent } from '@octokit/webhooks-types';
import { getParameterValue } from '../ssm';
import { logger as rootLogger } from './logger';
const logger = ro... |
import {
NgbNav,
NgbNavContent,
NgbNavItem,
NgbNavLink
} from '@ng-bootstrap/ng-bootstrap';
export const SHARED_COMPONENTS = [
NgbNav,
NgbNavItem,
NgbNavLink,
NgbNavContent
];
export * from '@ng-bootstrap/ng-bootstrap'; |
import { Component, Listen, State, h } from '@stencil/core';
@Component({
tag: 'docs-footer-announcement',
styleUrl: 'footer-announcement.css'
})
export class DocsFooterAnnouncement {
private frameRequested = false;
@State() hidden = false;
private prevScroll = 0;
@Listen('scroll', { target: 'window' })
... |
<TS language="de" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtsklick zum Bearbeiten der Adresse oder der Bezeichnung</translation>
</message>
<message>
<source>Create a new address</source... |
import React, { Dispatch, useContext, useReducer } from 'react';
import { globalStorage } from 'globalStorage';
import {
Agent, Auth, BrandingType, ClusterOverview, ClusterOverviewResource,
DetailedUser, DeterminedInfo, ResourcePool, ResourceType,
} from 'types';
import { clone, isEqual } from 'utils/data';
import... |
/**
* Generate an entry point that uses an entry point IO variable.
*
* @param {Object} params
* @param params.attribute The entry point IO attribute.
* @param params.type The type to use for the entry point IO variable.
* @param params.stage The shader stage.
* @param params.io An "in|out" string specifying whe... |
/**
* 跨域请求头
*/
export const crossDomainHead = {
'Content-Type': 'application/javascript;charset=UTF-8',
'Access-Control-Allow-Origin': '*',//跨域
'Access-Control-Allow-Headers': 'Content-Type,XFILENAME,XFILECATEGORY,XFILESIZE',//跨域
'Access-Control-Expose-Headers': 'Content-Type,*',//暴露出全部请求头参数
};
/**
... |
import RabbitOnMemory from '../src/index'
describe('RabbitOnMemory topic mode', () => {
it('should delivery a message to matched route and his queue', async () => {
const mockFn = jest.fn<any, any>(() => {})
const mockFn2 = jest.fn<any, any>(() => {})
const mockFn3 = jest.fn<any, any>(() => {})
const... |
import * as Compiler from "@truffle/codec/compiler";
import * as Ast from "@truffle/codec/ast";
import * as AbiData from "@truffle/codec/abi-data/types";
import * as Contexts from "@truffle/codec/contexts/types";
import * as Pointer from "@truffle/codec/pointer";
import { DecodingMode } from "@truffle/codec/types";
imp... |
import React, { FunctionComponent, ReactNode } from 'react'
import styled from '@emotion/styled'
import Header from 'components/organisms/Header'
import Footer from 'components/organisms/Footer'
type PageTemplateProps = {
children: ReactNode
}
const Template = styled.div`
width: 100%;
min-height: 100vh;
displ... |
import { Component, Injectable } from '@nestjs/common';
import { DbCoreService } from './db-core.service';
import { CreateRequestDto } from '../model/dto';
import { IConnection } from 'tsbatis';
import { Request } from '../model/entity/table/request';
import { DisplayException } from '../model/exception';
import { Requ... |
/**
* deno run -A --allow-hrtime ./src/adventofcode/2021/day10/task1.ts
*/
import { PartId, readFile, TaskId, withTime } from "../../common.ts";
import { getClosingCharScore, getOpeningChar } from "./common.ts";
const day: TaskId = 10;
const part: PartId = 1;
const example = false;
const rows = await readFile(day, e... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
/*
Copyright 2020 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 to in ... |
import {
Mutation, Resolver, Arg,
} from 'type-graphql';
import jwt from 'jsonwebtoken';
import { sendEmail } from '../../utils/sendEmail';
import { UserModel } from '../../entity/User';
@Resolver()
export class ForgotPasswordResolver {
@Mutation(() => Boolean, { nullable: true })
async forgotPassw... |
/**
* @fileoverview This file is generated by the Angular 2 template compiler.
* Do not edit.
* @suppress {suspiciousCode,uselessCode,missingProperties}
*/
/* tslint:disable */
import * as import0 from '../../app/app.component';
import * as import1 from '@angular/core/src/linker/view';
import * as import2 from '@... |
import { Carousel } from 'components/common/Carousel/Carousel';
import styled from 'styled-components';
export const ScreeningsCarousel = styled(Carousel)`
margin: 0 1rem;
.slick-disabled {
display: none !important;
}
.slick-slide > div {
display: flex;
justify-content: center;
}
`; |
interface AddressDTO {
postal_code: number;
city: string;
neighborhood?: string | null;
street: string;
street_number?: string | null;
complement?: string | null;
}
export default interface ICreateClientDTO {
email: string;
cpf: string;
address: AddressDTO;
} |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { IStorageWrapper } from 'src/plugins/kibana_utils/public';
import { g... |
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-detail-bill',
templateUrl: './detail-bill.component.html',
styleUrls: ['./detail-bill.component.scss']
})
export class DetailBillComponent implements OnInit {
checkBoxShipAddress = false;
checkBoxCreateAccount: boolean;
... |
import { MigrationInterface, QueryRunner, Table } from "typeorm";
export class createImages1602606748847 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(new Table({
name: 'images',
columns: [
{... |
import 'google-closure-library/closure/goog/i18n/datetimepatternsext';
import alias = goog.i18n.DateTimePatterns_mg_MG;
export default alias; |
/**
* @Description: 用来控制浏览窗口中显示数据,在一般正常的数据基础上,添加checked(是否被选择)、disabled(是否可以选择)
* @Author: newmannhu@qq.com
* @Date: Created in 2018-03-25 15:31
**/
export class BylListFormData<T>{
checked: boolean;
disabled: boolean;
item: T;
} |
export function f() {} |
import { action } from '@storybook/addon-actions'
import { Meta } from '@storybook/react'
import React from 'react'
import { ClearFilterItem } from './ClearFilterItem'
import { createOption } from './RewardFilterPanel.stories'
export default {
title: 'Modules/Rewards/Clear Filter Item',
component: ClearFilterItem,... |
import React, { forwardRef, ReactNode } from 'react';
import styles from './grid.module.scss';
interface Props {
children: ReactNode;
className?: string;
}
export type Ref = HTMLDivElement;
const Container = forwardRef<Ref, Props>(
({ children, className }: Props, ref) => (
<div ref={ref} className={[style... |
import { ServiceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceCatalogClient";
import { ListServiceActionsInput, ListServiceActionsOutput } from "../models/models_0";
import {
deserializeAws_json1_1ListServiceActionsCommand,
serializeAws_json1_1ListServiceActionsCommand,
} from... |
import { Box, Img } from '@chakra-ui/react'
import React from 'react'
import Carousel from 'react-elastic-carousel'
const Galery: React.FC = () => {
const breakPoints = [
{ width: 1, itemsToShow: 1 },
{ width: 850, itemsToShow: 1 }
]
return (
<Box bg="#061621" my="6" px={{ md: 6, lg: 10 }}>
<Bo... |
import Webhook from "./webhook";
import { InlineQueryResultArticle, addSearchParams } from "./libs";
import { Commands, KV, TelegramUpdate } from "./types";
import Handler from "./handler";
export default class Bot {
token: string;
commands: Commands;
api: string;
webhook: Webhook;
kv: KV;
handler: Handler... |
import { FormHandles } from '@unform/core';
import { useCallback, useEffect, useRef, useState } from 'react';
import { parseISO } from 'date-fns';
import { FiCheckCircle, FiEdit, FiXCircle } from 'react-icons/fi';
import { AiOutlineDelete } from 'react-icons/ai';
import { toast } from 'react-toastify';
import { CheckBo... |
import React, { useEffect } from 'react';
import styles from './Home.css';
export default function Home() {
useEffect(() => {
(window as any).recurly.configure('ewr1-BrfKUWEllwCxdpRZvZloaJ');
}, []);
const paypal = e => {
const paypal = (window as any).recurly.PayPal({
display: {
displayNa... |
export * from './smartTables.component'; |
import { CanActivate, Component } from "../core/component-decorators";
import { PhotoGalleryActionCreator } from "./photo-gallery.actions";
@Component({
templateUrl: "wwwroot/photo-gallery/photo-gallery.component.html",
selector: "photo-gallery",
providers: ["photoGalleryActionCreator"]
})
export class Pho... |
export * from "./arrayExtensions"; |
import { initializeApp, getApps } from "firebase/app";
import {
connectAuthEmulator,
getAuth,
onAuthStateChanged,
isSignInWithEmailLink,
sendSignInLinkToEmail,
signInWithEmailLink,
signOut,
updateProfile,
} from "firebase/auth";
import setupFirebase from "~/plugins/firebase";
jest.mock("firebase/auth")... |
import * as pulumi from '@pulumi/pulumi';
const config = new pulumi.Config('website');
export const project = config.require('project');
export const mainRepo = config.require('main-repo');
export const studioRepo = config.require('studio-repo');
export const viewerUsers = config.requireObject<string[]>('viewer-users... |
import { Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Rx';
export class HttpUtils {
static extractData(res: Response) {
if (res.status < 200 || res.status >= 400) {
throw new Error('Bad server response status: ' + res.status);
}
return res.json() || {};
}
static han... |
import { BaseEntity } from "../../../entity/base-entity.class";
import { EntityType } from "../../../entity/entity-type.interface";
import { META } from "../../../symbols";
import { EntityMetaError } from "../../entity-meta.error";
import { Field } from "../field.decorator";
import { Primary } from "../primary.decorato... |
version https://git-lfs.github.com/spec/v1
oid sha256:73e6446fcbb2080499bfba499cc1504f0087ae06d8d371b484f5404b879cab46
size 1112020 |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
export default `
<p>
Hi {{userName}},
</p>
<p>
Use <b>{{twoFactorCode}}</b> to login as {{userName}}.
</p>
<p>
Thanks <br />
{{ siteName }} Team.
</p>
`; |
import { ChildLogger } from "./logger";
import { MONGODB_URI } from "./secrets";
import { Connection, ConnectionOptions, Mongoose, Types, STATES } from "mongoose";
import Bluebird from "bluebird";
const logger = ChildLogger(__filename);
export function toObjectId(id: string | Types.ObjectId): undefined | Types.Object... |
import { Injectable, Body } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Vereda } from '../entities/Vereda';
import { Municipio } from '../entities/Municipio';
import { CreateTownDto } from './dto/createTown.dto';
import { UpdateTownDto } from... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
AnyNode,
TSAssignmentTypeAssertion,
tsAssignmentTypeAssertion,
} from "@romejs/js-ast";
export default function TSAss... |
export const CHARACTER_COUNT = 4;
export enum Animation{
NOTHING, // Don't draw at all
IDLE, // Default
DEAD, // Long gone
ACTION, // Active acting
DEATH, // Active dying
}
export enum RoomAnimation{
NONE,
ROOM_ENTER// Slide-in
}
export class AnimationObject{
enemyAnimation: Animation; // Enemy / whatever
... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ValidationSummaryComponent } from './validation-summary/validation-summary.component';
import { ListErrorsComponent } from './list-errors/index';
import { ConfirmationPopupComponent } from './confirmation-popup/confirmati... |
import { Component } from '@angular/core';
@Component({
selector: 'body',
template: '<router-outlet></router-outlet>'
})
export class AppComponent {
constructor() {}
} |
import { Writable, WritableOptions } from "stream";
interface Options extends WritableOptions {
ignoreEmpty?: boolean;
prefix?: string;
stream?: string;
interval?: number;
aws_access_key_id?: string;
aws_secret_access_key?: string;
aws_region?: string;
group: string;
}
declare class CloudWatchStream e... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-khpi',
templateUrl: './khpi.component.html',
styleUrls: ['./khpi.component.css']
})
export class KhpiComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { CloudTrail, Tables } from 'typings';
export const BATCH_DeleteComputeEnvironment = (record: CloudTrail.Record): Tables.ResouceGSI1Key => ({
EventSource: record.eventSource,
ResourceId: record.requestParameters.computeEnvironment,
}); |
namespace PleromaEntity {
export type Activity = {
week: string
statuses: string
logins: string
registrations: string
}
} |
import React from 'react';
import { $q } from 'ngimport';
import { SortableContainer, SortableElement, SortableHandle, arrayMove, SortEnd } from 'react-sortable-hoc';
import { difference, flatten, get, some, uniq, uniqBy } from 'lodash';
import { FormikErrors, FormikProps } from 'formik';
import {
Application,
Con... |
import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';
import { CONST_IMAGES_CHECKBOX } from './constCheckBox';
@Component({
tag: 'pr-checkbox',
styleUrl: 'pr-checkbox.css',
shadow: true,
})
export class XuachCheckbox {
@Prop() checked: boolean = false;
@Prop() disabled: boolean = fal... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {parseLayerModel} from '../util';
describe('Layer', () => {
describe('parseScale', () => {
it('should merge domains', () => {
const model = parseLayerModel({
layer: [
{
mark: 'point',
encoding: {
x: {field: 'a', type: 'ordinal'}
}
... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
import React from 'react';
import { RicosViewer, RicosViewerProps } from './index';
import { RichContentViewer } from 'wix-rich-content-viewer';
import { pluginHashtag, HASHTAG_TYPE } from '../../../plugin-hashtag/web/src';
import introState from '../../../../e2e/tests/fixtures/intro.json';
import Enzyme from 'enzyme';... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-banner-thirteen-solid',
templateUrl: './banner-thirteen-solid.component.html',
styleUrls: ['./banner-thirteen-solid.component.css']
})
export class BannerThirteenSolidComponent implements OnInit {
constructor() { }
ngOnInit(): v... |
import { IsDefined, IsOptional } from 'class-validator';
import { Constructor, DecoratorBuilder } from './base-builder';
export interface Validating {
optional(): this;
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function ValidatorBuilder<B extends Constructor<Decorator... |
import { Link } from "gatsby"
import PropTypes from "prop-types"
import React from "react"
import styled from "styled-components"
interface IHeaderProps {
siteTitle: string;
}
const Header = ({ siteTitle }: IHeaderProps) => {
console.log(siteTitle)
return (
<HeaderWapper>
<HeaderContainer>
<He... |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import {
assert,
assertEquals,
assertStringIncludes,
assertThrows,
} from "../testing/asserts.ts";
import * as path from "../path/mod.ts";
import { createRequire } from "./module.ts";
import nodeMods from "./module_all.ts";
const modul... |
import * as am4core from "@amcharts/amcharts4/core";
import * as am4charts from "@amcharts/amcharts4/charts";
import am4themes_animated from "@amcharts/amcharts4/themes/animated";
import * as am4plugins_venn from "@amcharts/amcharts4/plugins/venn";
am4core.useTheme(am4themes_animated);
let data = [
{ name: "A", valu... |
import {
Resolver,
Query,
Mutation,
Args,
Parent,
ResolveField,
} from '@nestjs/graphql';
import { UsersService } from './users.service';
import { User } from './models/user.model';
import { ActivitiesService } from '../activities/activities.service';
import { ActivityModel } from '../activities/models/acti... |
import GHCIDebug = require('../lib-src/GHCIDebug')
import path = require('path')
import { expect } from 'chai'
describe('GHCIDebug', function() {
if (process.env.RUN_GHCI_SPEC === 'false') return
let session: GHCIDebug.GHCIDebug
async function wrapPromise<
T extends { on: (arg: U, cb: (val: V) => void) => vo... |
import { device, expect, waitFor } from "detox";
import { Widget, Alert } from "../../../../../tests/e2e/index";
describe("Badge", () => {
beforeAll(async () => {
const badgeWidgetHome = Widget("btnBadge").getElement();
await badgeWidgetHome.tap();
const textBox = Widget("textBoxBadge").ge... |
import { green, red, yellow } from "https://deno.land/std/fmt/colors.ts";
interface AcceptedModules {
init: string;
build: string;
}
interface States {
success: string;
error: string;
info: string;
}
// Logger is an agnostic logger that can be used in any module of the CLI to show messages with different s... |
import enabledModules from '../src/modules'
const program = require('commander')
const config = require('config')
const common = require('../migrations/.common')
const es = require('../src/lib/elastic')
const { aggregateElasticSearchSchema } = require('../src/lib/module/index')
const aggregatedSchema = aggregateElastic... |
import { jsonrpc } from './_request'
import { DexOrderBNToString, Pair, Server as ServerInterface } from '../../types'
import { Wallet } from '../../types'
import { getTimestamp } from '../../utils/helper'
import { personalSign } from '../../utils/sign'
export class Server {
private _url: string
private _wallet: W... |
import { Component, EventEmitter, Output } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { debounceTime, map, take } from 'rxjs/operators';
import { removeEmptyProperties } from '../../../../shared/utils/remove-empty-prop... |
import { Document } from 'mongoose';
export interface IProduct extends Document {
readonly _id: string;
readonly name: string;
readonly description: string;
readonly price: number;
readonly quantity: number;
} |
import * as React from "react";
import HyperScroller from "react-hyper-scroller";
import { useHistory } from "react-router-dom";
import { useLocale } from "@/hooks/useLocale";
import { TEST_SELECTION } from "@/routes";
import IconButton from "../../shared/icon-button/IconButton";
import Navbar from "../../shared/navbar... |
import React, { HTMLProps } from 'react';
import { GrafInsightTheme } from '@grafinsight/data';
import { css, cx } from 'emotion';
import { stylesFactory, useTheme } from '../../themes';
import { getFocusStyle, sharedInputStyle } from '../Forms/commonStyles';
export interface Props extends Omit<HTMLProps<HTMLTextAreaE... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from 'src/users/user.entity';
import { UsersService } from 'src/users/users.service';
import { BoardsController } from './boards.controller';
import { BoardsService } from './boards.service';
@Module({
imports: ... |
import { AttribType, UniformType } from '@darkforest_eth/types';
import { engineConsts } from '../EngineConsts';
import { glsl } from '../EngineUtils';
const a = {
position: 'a_position',
color: 'a_color',
dist: 'a_dist', // cumulative dist so far
};
const u = {
matrix: 'u_matrix', // matrix to convert from wo... |
import * as React from "react";
import {
NavState,
StyleSheet,
Text,
View,
WebView,
} from "react-native";
import { NavigationScreenProp } from "react-navigation";
import { connect } from "react-redux";
import { bindActionCreators, Dispatch } from "redux";
import {
RequestSSOTokenFromApi,
requestSSOToken... |
export default URL.createObjectURL(new Blob([JSON.stringify({
"asset" : {
"version" : "2.0",
"generator" : "Khronos glTF Blender I/O v1.2.20"
},
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [
3
]
}
],
... |
/**
* Copyright (c) Caiden Sanders and his affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// CSS Frameworks & Animation Imports
import styled from 'styled-components';
import { m as motion } from 'framer-motion';
// Typ... |
import { findElementByType } from '../../util/helpers';
import {
sdpStereoHack,
sdpMediaOrderHack,
sdpBitrateHack,
getDevices,
assureDeviceId,
getBrowserInfo,
getWebRTCInfo,
getWebRTCSupportedBrowserList,
SUPPORTED_WEBRTC,
} from '../../webrtc/helpers';
describe('Helpers browser functions', () => {
... |
import "reflect-metadata";
import { PassportLocalStrategyFunction } from "../services/security/security-tools";
import * as express from "express";
import * as bodyParser from "body-parser";
import { createConnection, useContainer as useContainerTypeORM } from "typeorm";
import { Container } from "typedi";
import { use... |
import { CAInfo, DomainTypes } from '../../types'
import { join, resolve } from 'path'
import fs from 'fs-extra'
import * as childProcess from 'child_process'
import { promisify } from 'util'
import env from 'detect-env'
import { Path } from '../../types'
import { GetCAInfoFunc, CreateCACertificateFunc, InjectNginxConf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.