text stringlengths 10 953k |
|---|
/*
* MIT License
*
* Copyright (c) 2020 manager
*
* 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, modify, ... |
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { UserInfo } from './userInfo/userInfo.component';
import { Bonus } from './bonus/bonus.component';
import { Homework } from './homework/homework.component';
@NgModule({
declarati... |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
import React from "react";
import { Button } from "@chakra-ui/button";
import { Center, Text, VStack } from "@chakra-ui/layout";
import { useHistory } from "react-router";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPlus } from "@fortawesome/free-solid-svg-icons";
function NoBoards() {... |
import "reflect-metadata";
import {Connection} from "../../../src";
import {createTestingConnections, closeTestingConnections} from "../../utils/test-utils";
import {expect} from "chai";
import {UserEntity} from "./entity/UserEntity";
describe("github issues > #5478 Setting enumName doesn't change how migrations get g... |
import { Injectable } from '@angular/core';
import * as d3 from 'd3';
import { Block } from './helpers/block';
import {
IBlock,
IMoveDetectOption,
ICell,
IGap,
IGapDetectOption,
IFreeGapDetectOption,
IBlockMove,
} from './interfaces';
/**
* 提供 barrier 和 gap 检测服务,
* 分为两个主要功能:barrier 检测和 gap 检测:
*
* 1)... |
import React from 'react'
import { NavLink, NavLinkProps } from 'react-router-dom'
interface Props extends NavLinkProps {
to: string
}
export class NavigationLink extends React.Component<Props> {
render() {
const { to, children } = this.props
return (
<NavLink to={to}
... |
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
import './styles.css';
import { Piano } from '@tonejs/piano';
import VoicingDisplay from './VoicingDisplay';
// import useHotKeys from './useHotKeys';
import useHotKeys from './useHotKeys';
import getBassNote from './getBassNote';
import ... |
import { lsp } from "../deps.ts";
// this could really use some tests
export function rangeToLspRange(
document: TextDocument,
range: Range,
): lsp.Range | null {
const fullContents = document.getTextInRange(new Range(0, document.length));
let chars = 0;
let startLspRange: lsp.Position | undefined;
const l... |
declare module 'joi-phone-number'; |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { LintResultPipe } from './lint-result.pipe';
@NgModule({
declarations: [LintResultPipe],
exports: [
LintResultPipe
],
imports: [
CommonModule
]
})
export class MarkdownlintModule { } |
import React, {
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from "react";
import { Cue, Node } from "subtitle";
import { lowerBound } from "../utils/lowerBound";
import { TimeStamp } from "./time_stamp";
import { ScrubBar } from "./scrub_bar";
import { ProcessColors } from "../theme/components/proces... |
import { Observable } from 'rxjs/Observable';
/**
* @name Network
* @description
* Requires Cordova plugin: cordova-plugin-network-information. For more info, please see the [Network plugin docs](https://github.com/apache/cordova-plugin-network-information).
*
* @usage
* ```typescript
* import { Network } from '... |
/*
* Copyright (c) 2018, Gnock
* Copyright (c) 2018, The Masari Project
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of cond... |
import React, { FC } from 'react';
import { LoginLayout, InnerBox } from '../Login/LoginLayout';
import { ChangePassword } from './ChangePassword';
import LoginCtrl from '../Login/LoginCtrl';
export const ChangePasswordPage: FC = () => {
return (
<LoginLayout>
<InnerBox>
<LoginCtrl>{({ changePasswo... |
/**
*
*
* OpenAPI spec version: 20181201
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
/*
Copyright 2021 Expedia, 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
import { Button } from 'components/common/buttons/Button/Button';
import styled from 'styled-components';
export const Btn = styled(Button)`
width: 100%;
`; |
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
@Injectable()
export class TestversionGuard implements CanActivate {
redirectUrl: string;
private _testversionInfoAccepted = false;
constructor(private router: Router)... |
<TS language="pl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Kliknij prawy przycisk myszy, aby edytować adres lub etykietę</translation>
</message>
<message>
<source>Create a new address</sour... |
import { is_void } from '../../utils/names';
import Node from './shared/Node';
import Attribute from './Attribute';
import Binding from './Binding';
import EventHandler from './EventHandler';
import Transition from './Transition';
import Animation from './Animation';
import Action from './Action';
import Class from './... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { SettingsFormService } from '@msft-sme/angular';
import { CommonSettingsIsolatedExamplePanelBaseComponent } from './common-settings-isolated-exam... |
import { iocContextInitializer } from '@e2e/fixtures/common/ioc-context-initializer'
import { WithoutOptionsController } from './without-options.controller'
import { WithViewController } from '@e2e/fixtures/without-options/with-view.controller'
export function initializer ({ name, version }: { name?: string, version?:... |
import debug from 'debug';
import { sync as globSync } from 'globby';
import isGlob from 'is-glob';
import semver from 'semver';
import { normalize } from 'path';
import * as ts from 'typescript';
import { astConverter } from './ast-converter';
import { convertError } from './convert';
import { createDefaultProgram } f... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NavbarOpt2Component } from './navbar-opt2.component';
describe('NavbarOpt2Component', () => {
let component: NavbarOpt2Component;
let fixture: ComponentFixture<NavbarOpt2Component>;
beforeEach(async () => {
await TestBed.configureT... |
import {AwsRegion} from '../../pricing/aws-regions';
import {optimizationProfile} from '../../shared/constants';
import {streamToString} from '../../shared/stream-to-string';
import {lambdaLs, lambdaReadFile, lambdaWriteFile} from '../helpers/io';
import {OptimizationProfile} from './types';
export const writeOptimiza... |
import { StackScreenProps } from '@react-navigation/stack';
import * as React from 'react';
import { StyleSheet, TextInput, View } from 'react-native';
import Analytics from '../api/Analytics';
import AuthApi from '../api/AuthApi';
import Form from '../components/Form';
import PrimaryButton from '../components/Primary... |
import { InjectionToken, Provider } from '@angular/core';
export const DOCUMENT = new InjectionToken<Document>('Document');
export const documentProvider: Provider = { provide: DOCUMENT, useValue: document }; |
import {useCryptid} from "../utils/Cryptid/cryptid";
import React, {useEffect, useState} from "react";
import {PublicKey} from "@solana/web3.js";
import {CryptidButton} from "../components/balances/CryptidButton";
import {RefreshIcon, ReceiptRefundIcon} from "@heroicons/react/solid";
import {useSendTransaction} from ".... |
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {FilteredUserInput, StatisticSet} from '../../../../components/data-view/models/result-set.model';
import {StatisticRequest} from '../../../../models/ui-request.model';
import {CrudService} from '../../../../services/crud.service';
imp... |
import RequestHandler from '../../request/RequestHandler';
export default class EnvironmentHandler extends RequestHandler
{
protected encodingKey: string;
protected decodingKey: string | undefined;
public constructor(encodingKey: string, decodingKey: string | undefined = undefined)
{
super();
this.en... |
import {
customElement,
html,
LitElement,
property,
TemplateResult,
} from "lit-element";
import { fireEvent, HASSDomEvent } from "../../common/dom/fire_event";
import "../../components/ha-switch";
import type { HaSwitch } from "../../components/ha-switch";
import type { HomeAssistant } from "../../types";
im... |
import { DownOutlined, InfoCircleOutlined } from "@ant-design/icons";
import { Checkbox, Dropdown, Form, Menu, Select } from "antd";
import React, { useState } from "react";
export type VersionFilters = {
includePrereleases: boolean;
};
type FormItem = {
selectedId?: string;
available: { id: string; name: strin... |
/**
* Author: Huan LI https://github.com/huan
* Date: Jun 2020
*/
import {
Wechaty,
WechatyPlugin,
WechatyPluginUninstaller,
log,
} from 'wechaty'
import type { WechatyEventName } from 'wechaty/dist/src/events/wechaty-events'
import {
callerResolve,
hotImport,
} ... |
export class Quote {
showRecite: boolean;
length: number;
constructor(public id: number,public name: string,public author:string ,public upvote:number,public downvote:number,public completeDate: Date ){
this.showRecite=false;
}
} |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Manages an App Service Hybrid Connection for an existin... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/// <amd-module name="@angular/compiler-cli/src/ngtsc/annotations/src/component" />
import { AnimationTriggerNames, Co... |
// *** 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 * as utilities from "../../utilities";
/**
* Policy Contract details.
*/
export class ApiPolicy extends pulumi.C... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
import { Equal, Expect } from '@type-challenges/utils'
type cases = [
Expect<Equal<Expected1, MyPick<Todo, 'title'>>>,
Expect<Equal<Expected2, MyPick<Todo, 'title' | 'completed'>>>,
// @ts-expect-error
MyPick<Todo, 'title' | 'completed' | 'invalid'>,
]
interface Todo {
title: string
description: string
... |
/**
* This file is auto-generated by the API client generator.
* https://github.com/flowup/api-client-generator
*
* Avoid editing this file manually unless necessary.
* Please report any bugs so they can be addressed in future versions.
*/
/* tslint:disable */
/* eslint-disable */
export interface TeamMembersh... |
import { CommandSet } from 'pip-services3-commons-node';
import { ICommand } from 'pip-services3-commons-node';
import { Command } from 'pip-services3-commons-node';
import { Schema } from 'pip-services3-commons-node';
import { Parameters } from 'pip-services3-commons-node';
import { FilterParams } from 'pip-services3-... |
import {
ComponentConfigTypes,
NODE_PROPS_TYPES,
PROPS_TYPES,
} from '@brickd/core'
const p: ComponentConfigTypes = {
nodePropsConfig: {
children: {
type: NODE_PROPS_TYPES.reactNode,
},
},
propsConfig: {
children: {
label: '文本内容',
type: PROPS_TYPES.string,
},
},
}
export default p |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faSendBackward: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const liga... |
export const vmSizeSampleResponse = {
"value": [
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
... |
import { unique, uniqueFilter, freqCount, mustBeDefined, isDefined, textToWords, pick, setIfDefined } from './util';
describe('Util', () => {
test('unique', () => {
expect(unique([1, 2, 3, 4, 2, 3, 2])).toEqual([1, 2, 3, 4]);
});
test('uniqueFilter', () => {
expect([1, 2, 3, 4, 2, 3, 2].fi... |
import React from 'react';
import { Theme, createStyles, makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import ExpansionPanel from '@material-ui/core/ExpansionPanel';
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
import ExpansionPanelSummary from '@material-ui/core... |
import { MessageEmbed } from 'discord.js'
import Command from '../shared/Command'
import { x_ } from '../utils/emojis.json'
export default new Command({
name: 'commandlist',
aliases: ['listacomandos', 'listadecomandos', 'cl'],
allowDM: true,
description:
'Exibe em uma Embed uma lista com o nome prímário de... |
/* eslint-disable @typescript-eslint/no-empty-interface */
/** Stand alone validation routines. */
export interface IUtilityValidator {} |
import { TFabricPlatformPageProps } from '../../../interfaces/Platforms';
const related = require('!raw-loader!@fluentui/public-docsite/src/pages/Controls/ChipPage/docs/ChipRelated.md') as string;
const componentUrl =
'https://github.com/microsoft/fluentui/tree/master/apps/public-docsite/src/pages/Controls/ChipPage'... |
import { GSheet } from "../gapi/gsheets"
import IndexedDatabase from "./idb"
import GApi from "../gapi"
const TABLE_PREFIX = import.meta.env.DEV ? "__yolked_dev_" : "__yolked_";
const INDEX_TABLE_NAME = TABLE_PREFIX + "index"
export class Table {
constructor(
public name: string,
public sheet: GSheet
) { ... |
import { Processor, Document } from 'dgeni';
export class PackagesProcessor implements Processor {
name = 'packages';
$runBefore = ['computing-ids'];
docTypes = [];
$process(docs: Document[]): Document[] {
return docs.map(doc => {
if (doc.docType === 'module') {
doc.id = doc.id.replace(/\/sr... |
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
import Web3 from "web3";
import { ConnectWallet } from "../ConnectWallet";
describe("ConnectWallet", () => {
const mockAccount = {
address: "0xE6bA1467eB6B30EE316a7886DB8d0786b94CA6Ac",
balance: "94462715000000000... |
import { Component } from '@angular/core';
@Component(
{
selector: 'my-app',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css']
})
export class AppComponent{
title = 'Angular 4 & Webpack seed project';
} |
export interface State {
user?: any,
app?: any;
title: string;
}
export const state: State = {
title: 'Vue(v3) 与 tsx 的结合~',
}; |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect, Path } from "react-native-svg";
import { IconProps } from '../lib'
function SidebarSimple(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size}
fill={props.color} {...props}><Rect width={256} height={256}... |
/*
* Copyright (c) 2019. Mario Studio. All right reserved.
*/
import {
Pipe,
PipeTransform,
} from '@angular/core';
import {
flatMap,
List,
ListIterator,
Many,
} from 'lodash';
@Pipe({
name: 'flatMap',
})
export class FlatMapPipe implements PipeTransform {
transform<T, TResult> (
collection: L... |
import { lazyComponent } from '@waldur/core/lazyComponent';
import { translate } from '@waldur/i18n';
import { getEventsTab } from '@waldur/resource/tabs/constants';
import { ResourceTabsConfiguration } from '@waldur/resource/tabs/ResourceTabsConfiguration';
const SecurityGroupRulesList = lazyComponent(
() =>
im... |
import webpack from 'webpack';
export declare const build: (config: webpack.Configuration, dist: string, publicDir: string) => Promise<void>; |
// Copyright IBM Corp. 2017,2019. All Rights Reserved.
// Node module: @loopback/grpc
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {
Component,
ProviderMap,
Server,
CoreBindings,
Application,
} from '@loopback/core';
import {inject, C... |
"use strict";
import { CAST_LOADER_SCRIPT_URL
, CAST_SCRIPT_URLS } from "../lib/endpoints";
const _window = (window.wrappedJSObject as any);
_window.chrome = cloneInto({}, window);
/**
* YouTube won't load the cast SDK unless it thinks the
* presentation API exists.
*/
if (window.location.host === "www.y... |
import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import { IconBase } from '@sbb-esta/angular-icons/core';
/**
* @deprecated use @sbb-esta/angular-core/icon module
*/
@Component({
selector: 'sbb-icon-sa-bz',
// tslint:disable:max-line-le... |
import { type } from "os";
export type PasswordStrengthString = undefined | 'Very weak' | 'Weak' | 'Fear' | 'Good' | 'Strong'
export type PasswordStrengthMap = {
[key: number]: PasswordStrengthString;
};
export type UserRole = 'BUYER' | 'SELLER'
export interface FormDataValues {
firstName: string
lastName: st... |
// Type definitions for node-xml2js
// Project: https://github.com/Leonidas-from-XIV/node-xml2js
// Definitions by: Michel Salib <https://github.com/michelsalib>, Jason McNeil <https://github.com/jasonrm>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'xml2js' {
export = xml2js;
... |
import { browser, element, by } from 'protractor';
export class HeroesPage {
addNewHeroButton = element(by.buttonText('Add New Hero'));
newHeroNameField = element(by.css("input.ng-pristine"));
saveNewHeroButton = element(by.buttonText('Save'));
heroesPageLink = element(by.css("a[routerlink='/heroes']"));
addNew... |
import {WalletContractInterface, GnosisSafeInterface} from '@universal-login/contracts';
import {Log} from 'ethers/providers';
import {WalletEventArgs, WalletEventType} from '../models/events';
export const eventInterface = {...WalletContractInterface.events, ...GnosisSafeInterface.events};
export function parseArgs(... |
import { CommonModule } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import {
MatAutocompleteModule, MatDialogModule, MatDividerModule, MatFormFieldModule,
MatIconModule, MatInputModule, MatMenuModule, MatRadioModule, Ma... |
export * from './ping.controller';
export * from './orders.controller';
export * from './transactions.controller';
export * from './payment-gateways.controller';
export * from './templates.controller'; |
import * as _ from 'lodash';
import defaultOptions from 'defaultOptions';
import {ConvertOptions} from 'typeScript/interfaces/ConvertInterfaces';
/**
* Получить опции конверирования.
* @param {Object} options - Опции, выбранные пользователем.
* @return {Object} Опции конвертирования.
*/
const getOptions = (options... |
import {GsMultiLH} from "../src/core/gsHelpers.js";
import {GsParser} from "../src/core/gsParser.js";
import {GsSerializer, GsStringWriter} from "../src/core/gsSerializer.js";
import {GsFromJson, GSON, GsToJsonLH} from "../src/profileOn/gson.js";
describe("gson", function () {
it("single", function () {
toGs("", '... |
import React from 'react';
import { FiArrowRight } from 'react-icons/fi';
import { Link } from 'react-router-dom'
import '../styles/pages/landing.css';
import logoImg from '../images/logo.svg';
function Landing() {
return(
<div id="page-landing">
<div className="content-wrapper">
<img src={logoI... |
// Copyright 2019-2022 @polkadot/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ThemeProps } from '../types';
import { faUsb } from '@fortawesome/free-brands-svg-icons';
import { faCodeBranch, faFileExport, faFileUpload, faKey, faPlusCircle, faQrcode } from '@fortawesome/free... |
import { Bag } from "@paperbits/common";
import { EventManager } from "@paperbits/common/events";
import { ComponentFlow, IWidgetBinding } from "@paperbits/common/editing";
import { ViewModelBinder } from "@paperbits/common/widgets";
import { ConferenceSessionViewModel } from "./conferenceSessionViewModel";
import { wi... |
import { FormEvent, useState } from "react";
import { useHistory } from "react-router-dom";
import { database } from "../services/firebase";
import { useAuth } from "../hooks/useAuth";
import { Button } from "../components/Button";
import toast, { Toaster } from "react-hot-toast";
import illustrationImg from "../a... |
import { React, classNames } from 'jimu-core'
import { Icon, SVGIconProps } from 'jimu-ui'
import svg from '../../svg/outlined/directional/bring-back.svg'
export const BringBackOutlined = (props: SVGIconProps) => {
const { className, ...others } = props
const classes = classNames('jimu-icon-component', className)
... |
import addBindingPrefixDeclartaion from './add-binding-prefix';
import changeVersionToSemVerDeclartaion from './to-semver-migration';
import changeImportSpecifiersToArray from './change-import-specifiers-to-array';
import implSpecsToFilesDeclartaion from './to-files';
import ensureMainFileDeclartaion from './ensure-mai... |
import { WebPlugin } from "@capacitor/core";
import { CapacitorRateAppPlugin } from "./definitions";
export class CapacitorRateAppWeb extends WebPlugin
implements CapacitorRateAppPlugin {
constructor() {
super({
name: "CapacitorRateApp",
platforms: ["web"]
});
}
async requestReview(): Prom... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const RemovePermissionInput: _Structure_ = {
type: "structure",
required: ["QueueUrl", "Label"],
members: {
QueueUrl: {
shape: {
type: "string"
}
},
Label: {
shape: {
type: "string"
}
}
}
}... |
import * as React from 'react';
export class StageListItemStatusComponent extends React.Component<{ stageStatus: StageStatus, stage: Stage | null }, any> {
render() {
let stage = this.props.stage;
const stageStatus: StageStatus = this.props.stageStatus;
if (stageStatus == StageStatus.OP... |
// 和视频保持一致
import React from 'react';
import { MenuBar } from '@/components/index';
import { useLocation } from 'umi';
import {StoreProvider} from 'think-react-store';
import * as stores from '@/stores'
import log from 'think-react-store/middlewares/log';
import '@/global.less'
export default (props: any) => {
con... |
export {default} from './MainTerminal' |
import { Component, OnInit } from '@angular/core';
import { TiffDescriptor } from './types';
import { TiffService } from './tiff.service';
import { Router } from '@angular/router';
@Component({
selector: 'tiff-list-page',
template: `
<h2>Available tiff files</h2>
<tiff-list
[tiffs]="tiffs"
(se... |
import { Host } from "./utils/host.ts";
import { Status } from "https://deno.land/x/oak/mod.ts";
const host: Host = new Host({
proxy: true,
port: parseInt(Deno.env.get("PORT") || "8080"),
hostname: Deno.env.get("HOSTNAME") || "0.0.0.0",
});
host
.addExceptionHandlerMiddleware()
.use(async (ctx) => {
cons... |
import { Component } from '@angular/core';
import { ColumnMode, SelectionType } from 'projects/swimlane/ngx-datatable/src/public-api';
@Component({
selector: 'cell-selection-demo',
template: `
<div>
<h3>
Cell Selection
<small>
<a
href="https://github.com/swimlane/ngx... |
import { AccessToken, AgentPermission } from './permission/granting';
interface Author {
name: string;
url: string;
}
/**
* Configuration for an Agent
*/
interface Agent {
name: string;
title: string;
description: string;
author: Author;
homepage: string;
version: string;
flags: string[];
permis... |
import { Request, WithRequired } from 'apollo-server-env';
import {
GraphQLResolveInfo,
responsePathAsArray,
ResponsePath,
DocumentNode,
ExecutionArgs,
GraphQLError,
} from 'graphql';
import { GraphQLExtension, EndHandler } from 'graphql-extensions';
import { Trace, google } from 'apollo-engine-reporting-p... |
import { Component, ViewChild } from '@angular/core';
import { jqxTreeGridComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxtree';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
@ViewChild('TreeGrid', {static: false}) treeGrid: jqxTreeGrid... |
import { IsString } from "class-validator";
export class MessageDto {
@IsString()
text: string;
} |
import * as React from 'react';
import { loadAssets } from '../loader/Loader';
import { updateBunnies } from './bunnies/Bunnies-Updater';
import { WorldState } from './World-State';
export const WorldUpdater = (worldState: WorldState): Promise<WorldState> =>
(!worldState.texture)
? loadAssets(worldState)
... |
import { Component, ComponentInterface, h } from '@stencil/core';
@Component({
tag: 'blog-comments-container',
styleUrl: 'blog-comments-container.css',
shadow: true,
})
export class BlogCommentsContainer implements ComponentInterface {
render() {
return (
<div class="container__comment">
<p... |
import {Request, Response } from 'express';
import knex from '../database/connection';
class PointsController{
async index(request: Request, response: Response){
const {city, uf, items} = request.query;
const parsedItems = String(items)
.split(',')
.map(item => Numb... |
#!/usr/bin/env ts-node
import * as Path from 'path'
import chalk from 'chalk'
const { CLIEngine } = require('eslint')
const shouldFix = process.argv.indexOf('--fix') > -1
const eslint = new CLIEngine({
cache: true,
cwd: Path.dirname(__dirname),
fix: shouldFix,
rulePaths: [Path.join(__dirname, '..', 'eslint-r... |
export class NeDBError {
message: string = '';
name: string = '';
stack: string = '';
errorType: string = '';
key: string = '';
} |
namespace $.$$ {
export class $mol_chart_legend extends $.$mol_chart_legend {
@ $mol_mem
graphs_front() {
return this.graphs().filter( graph => graph.Sample())
}
graph_legends() {
return this.graphs_front().map( ( graph , index )=> this.Graph_legend( index ) )
}
graph_title( index : number )... |
import { CharStatus } from '../../lib/statuses'
import classnames from 'classnames'
import { REVEAL_TIME_MS } from '../../constants/settings'
type Props = {
value?: string
status?: CharStatus
isRevealing?: boolean
isCompleted?: boolean
position?: number
}
export const Cell = ({
value,
status,
isReveal... |
import React from "react";
import { History, Location } from "history";
import { FormControl } from "react-bootstrap";
import numeral from "numeral";
import { Global } from "../../store/global/types";
import { TrendingTags } from "../../store/trending-tags/types";
import BaseComponent from "../base";
import Search... |
class foo<T> { }
new foo<>();
// https://github.com/microsoft/TypeScript/issues/33041
class noParams {}
new noParams<>(); |
import { AssertionFailed } from '../../errors';
import { dispel } from '../../dispel/dispel';
import { prettyPrint } from '../../prettyPrint/typeAware/prettyPrint';
import { error, Result, value } from 'defekt';
// eslint-disable-next-line @typescript-eslint/naming-convention
const assertResultIsNotAValue = function <... |
/*
typescript-tenant.ts -
*/
import {AWS, Client, Entity, Match, Table, print, dump, delay} from './utils/init'
import {TenantSchema} from './schemas'
// jest.setTimeout(7200 * 1000)
const table = new Table({
name: 'TypescriptTenantTestTable',
client: Client,
schema: TenantSchema,
uuid: 'ulid',
}... |
import { SandDance } from '@msrvida/sanddance-react';
import PresenterElement = SandDance.VegaDeckGl.PresenterElement;
export function getCanvas(viewer: SandDance.Viewer) {
var tags = viewer.presenter.getElement(PresenterElement.gl).getElementsByTagName('canvas');
if (tags) {
return tags[0];
}
}
e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.