text stringlengths 10 953k |
|---|
import * as Knex from "knex";
export async function up(knex: Knex): Promise<void> {
return knex.schema.table('teachers', (table) => {
table.enum('prefix', ['Mr', 'Mrs', 'Ms'], {
useNative: true,
enumName: 'teacher_prefix'
}).notNullable();
});
}
export async function down(knex: Knex): Pr... |
// Type definitions for Highcharts No Data to Display 4.2.7
// Project: http://www.highcharts.com/
// Definitions by: Andrey Zolotin <https://github.com/nitoloz>, Rowell Heria <https://github.com/rowellx68>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Static } from "highcharts";
declare... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-r87',
templateUrl: './r87.component.html',
styleUrls: ['./r87.component.css']
})
export class R87Component implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
import { SetMetadata } from '@nestjs/common';
import { Role } from './role.enum';
const ROLES_KEY = 'roles';
const Roles = (...roles: Role[]) => SetMetadata(ROLES_KEY, roles);
const OnlyAdmin = () => SetMetadata(ROLES_KEY, [Role.Admin]);
export { ROLES_KEY, Roles, OnlyAdmin }; |
/*
* O componente inicial obtém o usuário atual do armazenamento local e todos os
* usuários do serviço do usuário e os torna disponíveis para o modelo.
*/
import { Component, OnInit } from '@angular/core';
import { first } from 'rxjs/operators';
import { Usuario } from '@app/_models';
import { UserService } from '@a... |
import { SvgIconProps } from './internal/SvgIcon';
export declare const Instagram2: (props: SvgIconProps) => JSX.Element; |
import { GeneralSteps } from '@ephox/agar';
import { Keys } from '@ephox/agar';
import { Logger } from '@ephox/agar';
import { Pipeline } from '@ephox/agar';
import { TinyActions } from '@ephox/mcagar';
import { TinyApis } from '@ephox/mcagar';
import { TinyLoader } from '@ephox/mcagar';
import Theme from 'tinymce/them... |
/*
* 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 { FieldType } from 'ui/index_patterns';
import { startsWith, uniq } fr... |
import * as React from 'react'
import * as Styles from '../styles'
import ReactList from 'react-list'
import {Box2} from './box'
import ScrollView from './scroll-view'
import {Props} from './section-list'
import {debounce, throttle, once} from 'lodash-es'
import {memoize} from '../util/memoize'
/*
* How this works: W... |
/* This file is generated by createIcons.js any changes will be lost. */
import { IconType } from '../createIcon';
declare const ChevronUpIcon: IconType;
export default ChevronUpIcon; |
/* tslint:disable:variable-name interface-over-type-literal max-line-length */
import {
TestUseMixinB,
TestUseMixinBB,
TestUseMixinBBB,
} from "./common";
//////////////////////
export declare const expectType: <T>(value: T) => void;
//////////////////////
const _b = new TestUseMixinB('');
const _bb = n... |
import { BaseVisitor } from '@graphql-codegen/visitor-plugin-common';
import { JavaApolloAndroidPluginConfig } from './plugin';
import { GraphQLSchema, GraphQLNamedType, GraphQLOutputType, TypeNode, GraphQLInterfaceType } from 'graphql';
import { VisitorConfig } from './visitor-config';
import { ImportsSet, Transformed... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {forwardRef, useEffect, useRef, useState, useImperativeHandle} from 'react';
import {intlShape} from 'react-intl';
import {Alert, BackHandler, Platform, StyleSheet, Text, View, ViewStyle} from ... |
export const CircleSolid = {
width: 30,
height: 30,
data: {"name":"svg","type":"element","value":"","attributes":{"width":"30","height":"30","viewBox":"0 0 30 30","fill":"none","xmlns":"http://www.w3.org/2000/svg"},"children":[{"name":"circle","type":"element","value":"","attributes":{"cx":"15","cy":"15","r":"15"... |
import Translator from '@jsmodules/translator.js';
const translations : {
showContentSideBarButtonTitle : string,
showContentSideBarButtonCaption : string,
showAuthenticatedUserSideBarTitle : string,
showAuthenticatedUserSidebarCaption : string,
userAvatarDescription : string,
register : string... |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
export * from './mark-deprecated';
export * from './utils';
export * from './get';
export * from '.... |
import React from "react";
import renderer from 'react-test-renderer';
import {ProductTitle} from "../../src";
import {ProductCard} from "../../src/components/ProductCard";
// @ts-ignore
import {products} from "../data/products";
const product1 = products[0];
describe('ProductTitle Tests', () => {
test('Should r... |
import {expect} from 'chai';
import {inputToConfig, defaultConfig} from '../src/config';
describe('UNIT: inputToConfig', () => {
describe('successful transformations', () => {
const testCases = [
{
name: 'compilerOptions',
input: {
compilerOptions: {
evmVersion: 'const... |
import { Router } from 'express';
import ensureAuthenticated from '@modules/user/infra/http/middlewares/ensureAuthenticated';
import AddressController from '../controllers/AddressController';
const addressRoutes = Router();
addressRoutes.get('/', ensureAuthenticated, AddressController.show);
addressRoutes.post('/',... |
import { CrudController } from './../core/crud';
import { AppointmentEmployee } from './appointment-employees.entity';
import { AppointmentEmployeesService } from './appointment-employees.service';
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
import { Controller, UseGuards, HttpStatus, Get, Par... |
import { InjectionToken } from '@angular/core';
export const AppStorage: InjectionToken<Storage> = new InjectionToken<Storage>('AppStorage');
export * from './browser.storage';
export * from './server.storage'; |
import BN = require('bn.js')
import { PrecompileInput } from './types'
import { OOGResult, ExecResult } from '../evm'
const assert = require('assert')
const bn128 = require('rustbn.js')
export default function(opts: PrecompileInput): ExecResult {
assert(opts.data)
const inputData = opts.data
const gasUsed = new... |
enum ActionTypes {
LOADING_ACTION = 'boilerplate/App/LOADING_ACTION',
AUTH_ACTION_SUCCESS = 'boilerplate/App/AUTH_ACTION_SUCCESS',
AUTH_ACTION_ERROR = 'boilerplate/App/AUTH_ACTION_ERROR',
GET_ADMIN_REPORTS_SUCCESS = 'boilerplate/Home/GET_ADMIN_REPORTS_SUCCESS',
GET_EMPLOYEE_PROFILE_SUCCESS = 'boilerplate/App/... |
import { Browser, EventHandler } from '@syncfusion/ej2-base';
import { addClass, removeClass } from '@syncfusion/ej2-base';
import { formatUnit, isNullOrUndefined } from '@syncfusion/ej2-base';
import { IGrid, IAction, NotifyArgs } from '../base/interface';
import { getScrollBarWidth, getUpdateUsingRaf } from '../base/... |
import React, {PureComponent, ReactNode} from 'react';
import classNames from 'classnames';
import {BetaBadge} from "../Badge/beta_badge";
const paddingSizeToClassNameMap = {
none: null,
s: 'c-panel--paddingSmall',
m: 'c-panel--paddingMedium',
l: 'c-panel--paddingLarge',
};
export const SOFT_PANEL_SI... |
import AbstractGameActionMessage from "@/protocol/network/messages/AbstractGameActionMessage";
export default class GameActionFightReflectSpellMessage extends AbstractGameActionMessage {
public targetId: number;
constructor(actionId = 0, sourceId = 0, targetId = 0) {
super(actionId, sourceId);
this.target... |
import IContractIXC from '@modules/ixc/customers/details/contract/main/models/IContractIXC';
export default interface ICustomersDetailsContractDetailsMainIXCPage {
open(contract: IContractIXC): Promise<void>;
close(): Promise<void>;
} |
import React from 'react';
import renderer, { act } from 'react-test-renderer';
import Provider from '../../../provider';
import Hello from './component/hello';
import Text from './component/text';
import store from './store';
export default function App2() {
return (
<Provider store={store} debug>
<Text /... |
import React from 'react'
const BellPepper = ({ size, rem }: {
size: number | string,
rem?: boolean
}) => {
const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px`
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style={{ width: width }}><path fill="#3E721D" ... |
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-base',
templateUrl: './base.component.html',
styleUrls: ['./base.component.css']
})
export class BaseComponent implements OnInit {
private refreshRate: number;
constructor() {
}
ngOnInit() {
}
setRefreshrate(refresh: numb... |
import { TextFontStyle } from 'jimu-ui';
import { ImmutableObject } from 'seamless-immutable';
import { Blot } from 'parchment/dist/src/blot/abstract/blot';
import { LinkParam } from 'jimu-ui/advanced/setting-components';
export declare type IMLinkParamMap = ImmutableObject<{
[id: string]: LinkParam;
}>;
export dec... |
/* eslint-disable */
import Vue from 'vue';
import Vuex from 'vuex';
import authentication from './authentication';
import projects from './projects';
import tasks from './tasks';
Vue.use(Vuex);
export default new Vuex.Store({
strict: true,
state: {
baseUrl: '/api',
},
modules: {
authentication,
p... |
import * as React from 'react';
import { shallow } from 'enzyme';
import { ListPage } from '@console/internal/components/factory';
import PipelinePage from '../PipelinesPage';
import PipelineRuns from '../PipelineRuns';
const pipelinePageProps = {
namespace: 'all-namespaces',
};
const pipelineRunProps = {
obj: {
... |
export interface IRegisterParams {
username: string;
email: string;
password: string;
repeatPassword: string;
} |
import styled from 'styled-components/native';
import Button from '@src/components/Button';
export const TabsContainer = styled.ScrollView`
flex-direction: row;
flex-grow: 0;
background-color: ${({ theme }) => theme.primary};
`;
export const TabContainer = styled(Button)`
padding: 10px 16px;
`; |
import { renderHook } from '@testing-library/react-hooks'
import { Navigation, BottomTabLongPressedEvent } from 'react-native-navigation'
import useNavigationBottomTabLongPress from './useNavigationBottomTabLongPress'
describe('useNavigationBottomTabLongPress', () => {
let triggerEvent: (event: BottomTabLongPressedE... |
import { Request, Response } from 'express'
import knex from '../database/connection'
export const index = async (request: Request, response: Response) => {
const { city, uf, items } = request.query
if (!city && !uf && !items) {
const points = await knex('points')
.select('points.*')
.join('point_... |
import {
registerDecorator,
ValidationOptions,
ValidatorConstraint,
ValidatorConstraintInterface,
} from 'class-validator'
import { User } from '../../../entity/User'
@ValidatorConstraint({ async: true })
export class IsEmailAlreadyExistConstraint
implements ValidatorConstraintInterface {
validate(email: string)... |
import * as Phaser from 'phaser-ce';
import Rack from './Rack';
export default class HexGrid extends Phaser.Group {
gridWidth: Number;
gridHeight: Number;
racks: Rack[] = [];
constructor (game, gridWidth: number, gridHeight: number) {
super(game);
this.gridWidth = gridWidth;
this.gridHeight = gri... |
import Extensions from './extensions';
import Extension from './extension';
import CodeExtension from './behavior/code';
import GraphExtension from './behavior/graph';
import PathFinderExtension from './path-finder/index';
import ParticlesCreatorExtension from './particles-creator/particles-creator';
import PostProces... |
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium) in the proj... |
// Copyright 2017-2021 @polkadot/app-storage authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ConstValue } from '@polkadot/react-components/InputConsts/types';
import type { ConstantCodec } from '@polkadot/types/metadata/decorate/types';
import type { ComponentProps as Props } from '../types... |
import InfoContainer from "../../container/Info/InfoContainer"
const InfoPage = () => {
return (
<InfoContainer/>
)
}
export default InfoPage |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatIconRegistry, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material';
import { AppRoutingModule } from './app-routing.module';
... |
import mongoose, { Document } from 'mongoose'
const { Schema, model } = mongoose
export interface IssueDocument extends Document {
id: string
datasetId: string
issues: object
}
const issueSchema = new Schema({
id: { type: String, required: true },
datasetId: { type: String, required: true },
issues: Objec... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'chat-replay';
} |
import { Component, OnInit,AfterViewChecked, ElementRef, ViewChild } from '@angular/core';
import { Router , ActivatedRoute, Params } from '@angular/router';
import { FormGroup,FormBuilder,Validators,FormControl,FormArray } from '@angular/forms';
import { ItemService } from '../../services/item.service';
import { Alert... |
import { Label } from '@headlessui/react/dist/components/label/label'
import React from 'react'
function Logo({ ...rest }) {
return <label style={{ fontSize: '22px' }}>Edge Code Playground</label>
}
export default Logo |
/**
* @license
* Copyright Google Inc. 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
*/
import { TagContentType, TagDefinition } from './tags';
export declare class HtmlTagDefinition implements TagDefiniti... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MatTableModule, MatExpansionModule } from '@angular/material';
import { FormatterService } from '@core/formatter.service';
import { MockPipe } from '../../../mock-pipe';
import { OutputComponent } from './output.component';
describe('O... |
import { assert, describe, expect, it } from 'vitest'
describe('suite name', () => {
it('foo', () => {
assert.equal(Math.sqrt(4), 2)
})
it('bar', () => {
expect(1 + 1).eq(2)
})
it('snapshot', () => {
expect({ foo: 'bar' }).toMatchSnapshot()
})
})
it('timeout', () => new Promise(resolve => se... |
import { Component, ViewEncapsulation, Input, ChangeDetectionStrategy } from '@angular/core';
import { JsonEditorNode } from '../../json-editor-node';
import { DialogService } from '../../../dialog/dialog.service';
import { JSONEditorSchema } from '../../json-editor.helper';
@Component({
selector: 'ngx-json-editor-... |
import {
Injectable,
CanActivate,
ExecutionContext,
BadRequestException,
} from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { RequestInterface } from 'src/auth';
import { GangMemberRepository, UserRepository } from 'src/repository';
import { USER_MESSAGE } from 'src/user';
@Injectable()
... |
/**
* @module systems/sys_physics_integrate
*/
import {Vec3} from "../../common/math.js";
import {add, copy, scale, set} from "../../common/vec3.js";
import {Entity} from "../../common/world.js";
import {RigidKind} from "../components/com_rigid_body.js";
import {Game} from "../game.js";
import {Has} from "../world.j... |
import { getTextWidth, truncateLongLabel, getCellColors, resolvePrimaryAndSecondaryMeasures } from '../internal/Utils';
export { truncateLongLabel, getTextWidth, getCellColors, resolvePrimaryAndSecondaryMeasures }; |
import { PromiEvent, TransactionReceipt } from "web3-core";
export interface ConfirmationHandler {
(confirmationNumber: number, receipt: TransactionReceipt): void;
}
export declare function handleConfirmations(pe: PromiEvent<TransactionReceipt>, onConfirmation?: ConfirmationHandler): PromiEvent<TransactionReceipt>; |
export enum TestingCardTypes {
Empty = "EmptyTestingCard",
PureColor = "PureColorTestingCard"
}
export interface ITestingCard {
name?: string,
type: TestingCardTypes
}
export interface IEmptyTestingCard extends ITestingCard {
type: TestingCardTypes.Empty
}
export interface IPureColorTestingCard e... |
/// <reference path="tsd.d.ts" /> |
export { default as Fieldset } from "./Fieldset";
export { default as InputContext } from "./InputContext";
export { default as InputError } from "./InputError";
export { default as InputLabel } from "./InputLabel";
export { default as InputWrapper } from "./InputWrapper"; |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule } from '@nestjs/config';
import { FilesService } from './files.service';
import PublicFile from './publicFile.entity';
@Module({
imports: [TypeOrmModule.forFeature([PublicFile]), ConfigModule],
provider... |
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import { userCreateBody, userLoginBody, userUpdateBody } from './user.interface';
import { JwtService } from '@nestjs/jwt';
import * as bcrypt from 'bcryptjs';
import { User } from './user.entity';
import { Repository } from 'typeorm';
import { Inj... |
// smithy-typescript generated code
import { Paginator } from "@aws-sdk/types";
import {
ListInfrastructureConfigurationsCommand,
ListInfrastructureConfigurationsCommandInput,
ListInfrastructureConfigurationsCommandOutput,
} from "../commands/ListInfrastructureConfigurationsCommand";
import { Imagebuilder } from... |
import { expect } from 'chai';
import { DynamicType } from './DynamicType';
import { FloatType } from './FloatType';
describe('FloatType', () => {
it('is equivalent to double types', () => {
expect(new FloatType().isAssignableTo(new FloatType())).to.be.true;
expect(new FloatType().isAssignableTo(n... |
const create: any = require("react-test-renderer").create;
import React from "react";
import { act } from "react-dom/test-utils";
import Terria from "../../../lib/Models/Terria";
import CatalogGroup from "../../../lib/Models/CatalogGroupNew";
import ViewState from "../../../lib/ReactViewModels/ViewState";
import Breadc... |
/* istanbul ignore file */
import { text } from '@storybook/addon-knobs';
import React from 'react';
import { Size } from '..';
import { WebBookmark } from './WebBookmark';
export default { title: 'Web bookmark' };
const LONG_LOREM_IPSUM = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ut quam sollicit... |
import randomNumber from "./random-number";
const jokes = {
"0": {
q: "Relationship status?",
a: "I'll leave the relations to the database.",
form: "qa",
},
"1": {
q: "How do you get the code for the bank vault?",
a: "You checkout their branch.",
form: "qa",
},
"2": {
q: "How did ... |
import { BigNumber, BigNumberish } from "ethers";
import Contract from "../Contract";
declare class PixelCatContract extends Contract {
constructor();
ownerOf(mateId: BigNumberish): Promise<string>;
balanceOf(owner: string): Promise<BigNumber>;
tokenOfOwnerByIndex(owner: string, index: number): Promise<... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.21.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
import type { IDisposable, Scene } from "../scene";
import type { Nullable } from "../types";
import type { Observer } from "../Misc/observable";
import { Observable } from "../Misc/observable";
import { Vector3, TmpVectors, Matrix } from "../Maths/math.vector";
import { Sprite } from "./sprite";
import { SpriteSceneCo... |
export type ClassType<T = any> = { new (...args: any[]): T };
export type FuncType<T> = (...args: any[]) => T;
export type ValueType<T> = T;
export type Token = any;
export type CycleType = 'permanent' | 'transient'; |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
import { Catch, ArgumentsHost, Inject, HttpServer } from '@nestjs/common';
import { BaseExceptionFilter, HTTP_SERVER_REF } from '@nestjs/core';
@Catch()
export class AllExceptionFilter extends BaseExceptionFilter {
constructor(@Inject(HTTP_SERVER_REF) applicationRef: HttpServer) {
super(applicationRef);
}
c... |
import { Injectable } from '@angular/core';
import { Plugins } from '@capacitor/core';
import { TaskReminderInfo } from '@models/taskDetails';
const { LocalNotifications } = Plugins;
@Injectable({
providedIn: 'root'
})
export class LocalNotificationsService {
constructor() {}
scheduleAt(data: TaskReminderInfo) ... |
import {
trigger,
transition,
style,
animate,
query,
stagger,
} from '@angular/animations'
export const listFadeInOut = trigger('listFadeInOut', [
transition('* => *', [
// each time the binding value changes
query(':leave', [stagger(250, [animate('0.5s', style({ opacity: 0 }))])], {
option... |
/**
* @license
* Copyright Google Inc. 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/ngcc/src/packages/build_marker" />
import { EntryPoint, EntryPointFor... |
import { StyleSheet } from 'react-native';
import { colors } from '../../global/styles/colors';
export const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background
}
}); |
import { RouteData } from '@/store/interface'
/**
* 递归筛选未隐藏的路由
* @param arr 路由数组
* @returns 未隐藏的路由
*/
export function filterRoutesFun (arr: Array<RouteData>): Array<RouteData> {
return arr.filter((item) => item.meta?.isHide)
.map((item) => {
if (item.children) item.children = filterRoutesFun(item.child... |
import chalk from 'chalk';
import * as path from 'path';
import * as Koa from 'koa';
import { EventEmitter } from 'events';
import { IAstroboyOptions, IInnerApplication } from '../definitions/core';
import { IAstroboyFrameworkDefine } from '../definitions';
import { IBaseFrameworkDefine } from '../definitions/extends/c... |
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {FilmResponse} from './response/films.respose';
@Injectable({
providedIn: 'root',
})
export class FilmsService {
private url = 'https://swapi.co/api/';
constructor(
private http: HttpClient
) {
... |
import { DataModel } from '~/models/abstract/DataModel';
import { DataModelAttributeMap } from '~/models/abstract/IDataModel';
import { ModelData } from '~/types/models-data/ModelData';
import { IPostMedia } from '~/models/posts/post-media/IPostMedia';
import { PostMediaType } from '~/models/posts/post-media/lib/PostMe... |
import {StepFunctionsService} from "./step-functions.service";
import {Injectable} from "@angular/core";
import {LogsService} from "./logs.service";
function IsJsonString(str) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}
@Injectable({
providedIn: 'ro... |
import {TokenModel} from "../models/TokenModel";
export class BearerToken {
constructor(protected token:TokenModel){}
valueOf() {
const object:any = {
access_token: this.token.accessToken,
token_type: 'Bearer'
};
if (this.token.accessTokenLifetime) {
... |
/**
* Copyright (c) 2014,Egret-Labs.org
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of c... |
/**
*
* utils
*
*/
import { GraphQLError } from 'graphql';
/** @private */
export declare function isObject(val: unknown): val is Record<PropertyKey, unknown>;
/** @private */
export declare function isAsyncIterable<T = unknown>(val: unknown): val is AsyncIterableIterator<T>;
/** @private */
export declare function... |
version https://git-lfs.github.com/spec/v1
oid sha256:d246d3de4ff99dda6393cd058cea40dec43e55efbe4b9a076f4992916243e475
size 399688 |
import {
BaseEntity,
Entity,
Column,
JoinColumn,
OneToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import { MinCostValue } from './minCostValue';
@Entity()
export class MinCostOtherValues extends BaseEntity {
@PrimaryGeneratedColumn()
id!: number;
@Column({
length: 10,
nullable: false,
... |
import * as isError from 'invariant';
import * as isWarning from 'warning';
import * as g from 'global';
export const global: Window = g;
export const reflect: any = global['Reflect'];
export const META_DESIGN_TYPE = 'design:type';
export const META_DESIGN_PARAMTYPES = 'design:paramtypes';
export const META_DESGIN_RE... |
import { css } from 'emotion';
import tokens from '@contentful/forma-36-tokens';
/**
* Returns the target height of the modal window body in pixels.
* Relative units were causing multiple resizings of the iframe.
*/
function getBodyHeight() {
const HEADER_HEIGHT = 114;
const twentyPerc = window.outerHeight * 0.... |
import * as vscode from 'vscode';
import * as MarkdownIt from 'markdown-it'
export class MarkDown {
private _currentPanel: vscode.WebviewPanel | undefined = undefined;
private _context: vscode.ExtensionContext | undefined = undefined
constructor(context: vscode.ExtensionContext) {
this._context = ... |
import { Action, createReducer, on } from '@ngrx/store';
import { EntityState, EntityAdapter, createEntityAdapter } from '@ngrx/entity';
import { Produto } from '../shared/produto';
import * as produtosActions from './produtos.actions';
export const ENTITY_FEATURE_KEY = "produtos";
export interface ProdutoState exte... |
import React from 'react';
import { throttle } from 'lodash';
import { debug } from 'app/utilities/logger';
import { style, getStyleVar } from 'app/styles';
import * as d3 from 'd3';
require('d3-selection-multi');
import { ICommit } from 'app/interfaces';
import { addMoveToFront } from 'app/utilities/d3';
import { dat... |
//-----------------------------------------
// type assertion
//-----------------------------------------
// as : 여러 개의 타입을 지원하는 함수의 경우 리턴값을 하나의 type만 리턴하게 한다.
{
function getNetPrice(price: number, discount: number, format: boolean): number | string {
let netPrice = price * (1 - discount)
return fo... |
import { Component, OnInit } from '@angular/core';
import { TiendaService } from "../../services/tienda.service";
import {Router} from "@angular/router";
import { FormBuilder, FormGroup, FormControl } from '@angular/forms';
import { Tienda } from "../../models/tienda";
@Component({
selector: 'app-addtienda',
templ... |
import * as React from 'react'
import cx from 'classnames'
import { TeamsProcessedSvgIconSpec } from '../types'
import { teamsIconClassNames } from '../teamsIconClassNames'
export default {
icon: ({ classes }) => (
<svg role="presentation" focusable="false" viewBox="8 8 16 16" className={classes.svg}>
<g>
... |
import React from 'react';
import { JssInjectedProps } from 'rsg-components/Styled';
import * as Rsg from '../../../typings';
export declare const styles: ({ space }: Rsg.Theme) => {
block: {
marginBottom: number;
};
};
export interface ArgumentProps {
name: string;
type?: any;
default?: str... |
import { Component, OnInit, Input,Output, EventEmitter } from '@angular/core';
import { Quote } from '../quote';
@Component({
selector: 'app-quote-details',
templateUrl: './quote-details.component.html',
styleUrls: ['./quote-details.component.css']
})
export class QuoteDetailsComponent implements OnInit {
@Inp... |
import {Observable} from "rxjs";
import {Response} from "@angular/http";
import {isUndefined} from "util";
export class Action {
constructor(public name: string, public id: number, public recordNum?: number) {
}
}
export class ActionCategory {
constructor(public name: string, public id: number, public children: A... |
import path from 'path';
import express from 'express';
import logger from 'morgan';
import compression from 'compression';
import helmet from 'helmet';
import hpp from 'hpp';
import favicon from 'serve-favicon';
import chalk from 'chalk';
import devServer from './devServer';
import ssr from './ssr';
import config fro... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import chai from "chai";
import chaiAsPromised from "chai-as-promised";
chai.use(chaiAsPromised);
const assert = chai.assert;
import { MessageSender } from "../../src/core/messageSender";
import { OperationOptionsBase } from "../../src/modelsT... |
import kontaktIoExample from './src/main.android';
kontaktIoExample(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.