text stringlengths 10 953k |
|---|
import { Component, OnInit } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { NbMenuService } from "@nebular/theme";
import { Transaction } from "../../../services/models/blockchain.model";
import { DataBaseService } from "../../../services/databse.service";
@Component({
selector: "n... |
import { ThemeColorMap } from './types';
const colorMap: ThemeColorMap = {
dark1: '#293953',
dark2: '#6B4E71',
dark3: '#829399',
light1: '#34E4EA',
light2: '#D6DBB2',
light3: '#6D72C3',
primary: '#007acc',
secondary: '#c05b4d',
ok: '#8cc800',
warning: '#ffd602',
error: '#ff324d',
white1: '#fff'... |
import { prop } from '@typegoose/typegoose';
import { Base, TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
export enum TopLevelCategory {
Courses,
Services,
Books,
Products,
}
class HtData {
@prop()
count: number;
@prop()
juniorSalary: number;
@prop()
middleSalary: number;
@prop()
seniorS... |
import React, { useCallback, useEffect, useState } from 'react';
import { FiPlus } from 'react-icons/fi';
import { Column } from 'react-table';
import {
Box,
Button,
Flex,
Tooltip,
useDisclosure,
Text,
} from '@chakra-ui/core';
import CreateCompaniesModal from '@/components/Modals/CreateCompaniesModal';
i... |
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
getHello(): string {
return 'Hello my new World!';
}
} |
import React, { Component } from 'react';
import { setScheduleTimezone, TSetScheduleTimezone } from 'actions/schedule';
import { getCurrentScheduleTimezone, ICurrentScheduleTimezone } from 'selectors/schedule';
import { AppState } from 'reducers';
import { Query } from 'components/renderCbs';
import { connect } from 'r... |
/**
* Copyright 2018 Centrum Wiskunde & Informatica
*
* 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 l... |
export const isDefined = (value: unknown): value is number =>
value !== null && typeof value !== 'undefined'; |
<TS language="es_MX" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<source>About Petecoin Core</source>
<translation>Acerca de Petecoin Core</translation>
</message>
<message>
<source><b>Petecoin Core</b> version</source>
<translation><b>Pe... |
import { makeStyles, Theme } from '@material-ui/core';
export const useStylesOverviewDumb = makeStyles((theme: Theme) => ({
root: {
'& .MuiTextField-root': {
margin: theme.spacing(1),
width: '80%',
},
},
grid: {
width: '100%',
margin: 0,
},
typography: {
padding: '1%',
fon... |
import { Injectable, HttpException, HttpStatus } from '@nestjs/common';
import { Cat } from './interfaces/cat.interface';
@Injectable()
export class CatsService {
private readonly cats: Cat[] = [];
create(cat: Omit<Cat, 'id'>): Promise<Cat> {
const newCat = { ...cat, id: Math.max(0, ...this.cats.map((it) => i... |
import { ViewStyle } from 'react-native';
import { Theme } from '../../style';
export interface CarouselStyle {
pagination: ViewStyle;
paginationX: ViewStyle;
paginationY: ViewStyle;
pointStyle: ViewStyle;
pointActiveStyle: ViewStyle;
spaceStyle: ViewStyle;
}
declare const _default: (theme: Them... |
import {DashBoardEntries} from '@enexus/flipper-components';
export class MockDashboard {
static data: DashBoardEntries = {
totalStore: {
value: '1,024,000',
percentage: 12,
since: 'last month'
},
grossProfit: {
value: '1,024,000',
percentage: 12,
since: 'last month'
... |
import {styled} from "../../../globalStyles";
import {DividerType} from "./types";
export const DividerWrapper = styled.div<{ margin: string; size: string, type: DividerType }>`
${props => `
background: ${props.theme.divider.background};
margin: ${props.margin};
${props.type === "vertical" ?
`... |
/*
* @Author: kubrick
* @Date: 2019-10-14 10:52:47
* @LastEditors: kubrick
* @LastEditTime: 2019-10-14 17:22:43
* @Description:
* @email:
*/
import { AfterViewInit, Component, Input } from '@angular/core';
import * as G2 from '@antv/g2';
@Component({
selector: 'fc-g2line',
templateUrl: './fcg2line.com... |
import { CmsContentModelGroup } from "../../src/types";
import { useContentGqlHandler } from "../utils/useContentGqlHandler";
import { useCategoryManageHandler } from "../utils/useCategoryManageHandler";
import { useCategoryReadHandler } from "../utils/useCategoryReadHandler";
import models from "./mocks/contentModels"... |
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable, of, throwError} from 'rxjs';
import {catchError} from 'rxjs/operators';
import {environment} from '../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class HelloWorldService {
pr... |
// https://github.com/nspragg/filehound/issues/84
declare module "filehound"; |
/******************************************************************************
* Copyright 2021 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
***************************************************************... |
import { BeforeInsert, Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
import { Task } from './task.entity';
import { Team } from '../team/team.entity';
import { getRandomInt } from '../__shared/helpers/helpers';
@Entity()
export class TasksForTeam {
// @BeforeInsert()
// addOrders(event) {... |
import { User } from "./user.entity";
import * as bcrypt from "bcryptjs";
describe("User entity", () => {
let user: User;
beforeEach(() => {
user = new User();
user.password = "testPassword";
user.salt = "testSalt";
bcrypt.hash = jest.fn();
});
describe("validatePassword", () => {
it("ret... |
export { default as useFeatureToggle } from './use-feature-toggle';
export { default as useFeatureToggles } from './use-feature-toggles';
export { default as useFlagVariation } from './use-flag-variation';
export { default as useFlagVariations } from './use-flag-variations';
export { default as useAdapterStatus } from ... |
import { TextLintModuleResolver } from "../engine/textlint-module-resolver";
/**
* @param {string} configFilePath
* @param {string} configFileName
* @param {TextLintModuleResolver} moduleResolver
* @returns {{ config: Object, filePath:string}}
*/
export declare function loadConfig(configFilePath: string, {configFi... |
const { registerSuite } = intern.getInterface('object');
const { assert } = intern.getPlugin('chai');
import { getHelperStub } from '../support/testHelper';
import { Helper } from '@dojo/interfaces/cli';
import * as mockery from 'mockery';
import { SinonStub, stub } from 'sinon';
type ESModule = {
default: any
};
co... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.scss';
import App from './components/App/App';
import * as serviceWorker from './serviceWorker';
import Amplify from 'aws-amplify';
Amplify.configure({
Auth: {
// REQUIRED - Amazon Cognito Region
region: process.env.REACT_APP_AWS_RE... |
import React from 'react'
import { GolfCourse as originIcon } from '@icon-park/svg'
import { IIconProps } from '@icon-park/svg/lib/runtime'
import svg64 from 'svg64'
const GolfCourse = (props: IIconProps) => {
const base64Data = svg64(originIcon(props))
//@ts-ignore next-line
return <image src={base64Data}... |
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
import type { ApiTypes } from '@polkadot/api-base/types';
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import t... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
export namespace Commands {
export const RunAllCells = 'python.datascience.runallcells';
export const RunCell = 'python.datascience.runcell';
export const RunCurrentCell = 'python.datascience.runc... |
import compression from 'next/dist/compiled/compression'
import fs from 'fs'
import chalk from 'chalk'
import { IncomingMessage, ServerResponse } from 'http'
import Proxy from 'next/dist/compiled/http-proxy'
import { join, relative, resolve, sep } from 'path'
import {
parse as parseQs,
stringify as stringifyQs,
P... |
import {
DesktopOutlined,
PieChartOutlined,
UserOutlined,
} from '@ant-design/icons';
import { Layout, Menu } from 'antd';
import React, { useContext } from 'react';
import { Context } from '../../lib/store';
import { FlexContainer } from './flexContainer';
const { Sider, Content } = Layout;
type Content... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Megacoin</source>
<translation>Informatio de Megacoin</translation>
... |
export declare function getHTML(element: any, showComments?: boolean): any;
export default getHTML; |
export { KeyUtil } from './KeyUtil';
export { areKeysEqual } from './areKeysEqual';
export { keyToUID } from './keyToUid';
export { DatastoreKeyExtractable, KeyErrorThrower } from './key.types'; |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { ConfirmDialogComponent } from './confirm-dialog/confirm-dialog.component';
import { MatDialogRef, MatDialog } from '@angular/material';
@Injectable()
export class DialogsService {
constructor(private dialog: MatDialog) {... |
/** @license
* Copyright 2018 Esri
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import React from 'react'
import { View } from 'react-native'
import { SearchBar } from '../../components/SearchBar'
import { TrendingCarousel } from '../../components/TrendingCarousel'
import { styles } from './style'
import { TopicTitle } from '../../components/TopicTitle'
import { ScreenTitle } from '../../component... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { computedField, projectionDependency, buildMiddleware, UserInputDriverDataTypeAdapterMap, defaultValueMiddleware, softDelete, audit, selectMiddleware, mock, Projection } from '../../src'
import... |
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from './shared/auth.guard';
import { AuthGuard as NgrxAuthGuard } from './shared/sdk/guards/auth.guard';
const appRoutes: Routes = [
{
path: 'access',
loadChildren: './access/acce... |
import { wrapHandler } from "./simulator"
import { isDefined, isEmpty, isUndefined, nonEmpty, TimeoutHandle } from "./utils"
export type Callback = (theoreticalTime: number) => unknown
export type TimelineState = { hasCallbacks: boolean, isPaused: boolean, canStep: boolean }
function areStatesEqual(s1: TimelineState,... |
/**
* Created by mohma on 7/26/2017.
*/
import { Component } from '@angular/core';
@Component({
templateUrl: './charts.html',
selector:'charts-widgets'
})
export class ChartsWidgetComponent {
/*LineChart*/
public lineChartData:Array<any> = [
{data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'},
{... |
class ListNode {
val: number;
next: ListNode | null;
constructor(val?: number, next?: ListNode | null) {
this.val = val === undefined ? 0 : val;
this.next = next === undefined ? null : next;
}
}
function swapPairs(head: ListNode | null): ListNode | null {
if (!head) return null;
let currNode = hea... |
/*
* Copyright (c) 2020 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
import * as THREE from "three";
import Pose from "./Pose";
import Controller from "./Controller";
import AnimationControl from "~/controls/AnimationControl";
import { toRadian, clamp, circulate } from "~/utils";
import * as DE... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="zh_CN">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<source>About SpeedCoin</source>
<translation type="obsolete">关于速币</translation>
</message>
<message>
<source>&... |
export interface IProduct {
_id?: string;
name: string;
desc: string;
price: number;
shop_id: string;
category: string;
tags?: string[];
} |
export declare class ExpressionField {
name: string;
label: string;
hint: string;
value: string;
multiline: boolean;
syntax: string;
private selectSyntax;
private onSyntaxOptionClick;
renderInputField: () => any;
render(): any;
} |
import { UserFoundError, UserNotFoundError } from '../../domain/user.error';
import { OnMemoryUserRepository } from './user.repository';
describe('OnMemory infra tier', () => {
const repo = new OnMemoryUserRepository();
beforeEach(() => {
repo.deleteAll();
});
describe('list()', () => {
const user = {... |
import { DateTime } from 'luxon'
import { ping } from './pinger'
import {
getServers,
getServersIcons,
getServersRecentStats,
getServersStats,
putServerIcons,
putServersRecentStats,
putServersStats,
Server,
ServerStats,
} from './storage'
declare const WEBHOOK_URL: string | undefined
declare const GL... |
<TS language="mn" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Шинэ хаяг нээх</translation>
</message>
<message>
<source>&New</source>
<translation>&Шинэ</translation>
</message>
<messag... |
import { makeFakeApiEntry } from "../../../../helpers";
import flattenSingleApi from "../flattenSingleApi";
it("should flatten api instance", () => {
const api = {
repos: {
fetch: makeFakeApiEntry("fetchRepos")
},
issues: {
key: {
nested: {
fetch: makeFakeApiEntry("fetchIssu... |
import {
CumulativeValuesByTime,
DomainLabel,
LatestIndexMap,
LineData,
LineLayerSpec,
LinePosition,
NumericColumnData,
Table,
} from '../types'
import {FILL, TIME, VALUE} from '../constants/columnKeys'
import {createGroupIDColumn, getNominalColorScale} from './'
import {getDomainDataFromLines} from '..... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... |
export { default as FormComponent } from './Form.vue'; |
import { Claims, ClaimName } from '../../types/claims';
export type ClaimNameTypeMapping = {
[k in ClaimName]: (v: any) => asserts v is Exclude<Claims[k], undefined>;
}; |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" {...props}>
<path d="M256 48c0 26.51-21.5 48-48 48s-48-21.49-48-48 21.5-48 48-48 48 21.49 48 48zM126.5 199.3c-.9.4-1.9.8-2.8 1.2l-11 4.9c-15.... |
class coin extends stationaryCircle {
draw = (ctx: CanvasRenderingContext2D) => {
drawCircle(ctx, coin.radius, this.center, 'green');
fillCircle(ctx, coin.radius, this.center, '#faffde', this.alpha);
};
zIndex = -2;
static get radius() {
return 22 * distScale;
}
onPlayerCollide: () => void = () => {
getPl... |
import { debounce, MonoTypeOperatorFunction, of, timer } from 'rxjs';
export function debounceAfterFirst<T>(time: number): MonoTypeOperatorFunction<T> {
let wasFirst = true;
return debounce<T>(() => {
const time$ = wasFirst ? of(0) : timer(time);
wasFirst = false;
return time$;
});
} |
import 'source-map-support/register'
import * as winston from 'winston'
export class ContactNotFoundError extends Error {
readonly statusCode: number
constructor(readonly message: string, readonly logger: winston.Logger) {
super(message)
this.statusCode = 404
logger.error(message)
}
} |
import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import * as moment from 'moment';
import { DATE_FORMAT } from 'app/shared/constants/input.constants';
import { map } from 'rxjs/operators';
import { SERVER_API_URL } from 'app... |
import { useEffect, useState } from "react";
import { utils } from "ethers";
// resolved if(name){} to not save "" into cache
/*
~ What it does? ~
Gets ENS name from given address and provider
~ How can I use? ~
const ensName = useLookupAddress(mainnetProvider, address);
~ Features ~
- Provide addre... |
declare module "*.json" {
const value: any;
export default value;
} |
/*
* Copyright (c) 2021 Elastos Foundation
*
* 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, merge, ... |
import * as React from 'react';
import { ExampleWrapper } from '../example-helpers/ExampleWrapper';
import UserPicker from '../src';
export default class Example extends React.Component<{}> {
render() {
return (
<ExampleWrapper>
{({ options, onInputChange }) => (
<UserPicker
f... |
/*!
* V4Fire Malevich
* https://github.com/V4Fire/Malevich
*
* Released under the MIT license
* https://github.com/V4Fire/Malevich/blob/master/LICENSE
*/
import converters, { WARNINGS } from 'engines/figma/converters';
import { textNameNormalizer } from 'engines/figma/converters/helpers';
import $C = require('c... |
import { Theme } from '@mui/material';
import { makeStyles } from '@mui/styles';
const useStyles = makeStyles(({ spacing, breakpoints }: Theme) => ({
detailContent: {
display: 'flex',
overflow: 'hidden',
[breakpoints.down('md')]: {
margin: spacing(1, 2),
},
[brea... |
import { IncomingMessage, RequestOptions } from 'http';
import { OutgoingProxyRequestInfo } from '../steno';
import { parse } from 'url';
const incomingWebhooksPathPattern = /^\/services\//;
const slashCommandsPathPattern = /^\/commands\//;
const interactiveResponseUrlPathPattern = /^\/actions\//;
/**
* Creates a ho... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import { SetupContext } from 'vue';
import RhythmLineSvg from '@airclass/icons-svg/lib/asn/RhythmLine';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const RhythmLine = (props: AntdIconProps, context: SetupContext) => {
const p = {... |
import fs from 'fs';
import tmp from 'tmp';
import watchImportDirectory from '../../../app/services/application/FileSystemService';
const TMP_DIR_PREFIX = 'FileSystemService.test';
describe('Test low level fs funtions', () => {
it('Watch tmp directory and file additions and deletions', async () => {
const testD... |
import { resolve } from 'path';
import { describe, it } from '@jest/globals';
import { Dust } from '../src/base';
const blockingPath = resolve(__dirname, './worker/blocking-test.js');
describe('Dust', () => {
it('blocking test', async () => {
const handler = new Dust(blockingPath, { pools: { maxQueuedJobs: 2,... |
import { timer as observableTimer, Observable, Subscription } from "rxjs";
import { Component, EventEmitter, OnDestroy, OnInit } from "@angular/core";
import { AppSettings } from "../../../app-settings/app-settings";
import { ChartConfig, ChartDataItem } from "../../ng-chart/ng-chart.module";
import { IProjectViewerCo... |
import { decryptWithKeyDerivedFromString, encryptWithKeyDerivedFromString } from '../src/index';
import { CipherStrategy } from '../src/strategies';
import {
binaryStringToBytes,
bytesToBinaryString,
bytesToUtf8,
encode64,
utf8ToBytes,
} from '../src/util';
import { SerializationFormat } from '../src/serializ... |
/*
* Copyright 2020 NEM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
//barrels
export * from './interface';
export * from './concrete'; |
import { Logger } from '@nestjs/common'
import { System, SyncDataFlow, AsyncEventFlow } from '../ms'
import { Node } from '../core'
import * as v1 from './model'
const logger = new Logger('v1-adapter')
export function adaptToV1(system: System): v1.Node {
const v1System = adaptNodeWithNestedNodes(system)
addAdapt... |
test('default + named imports from cjs dep (react)', async () => {
expect(await page.textContent('.cjs button')).toBe('count is 0')
await page.click('.cjs button')
expect(await page.textContent('.cjs button')).toBe('count is 1')
})
test('dynamic imports from cjs dep (react)', async () => {
expect(await page.te... |
import { Component, OnInit } from '@angular/core';
import { ProgramService } from '../program.service';
import { switchMap } from 'rxjs/operators';
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
import { Subscription } from 'rxjs';
@Component({
selector: 'app-edit-subscriptionform',
templateU... |
export default {
code: `
<template>
<div class="root">
<table-box>
<el-table border="" style="width: 100%">
<el-table-column prop="date" label="日期" width="180" :render-header="renderHeader">
</el-table-column>
<el-table-column prop="name" label="姓名" width="180">
... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', ... |
import { RulesetVerificationOpts, StorageRulesRuntime } from "../../emulator/storage/rules/runtime";
import { expect } from "chai";
import { StorageRulesFiles } from "./fixtures";
import * as jwt from "jsonwebtoken";
import { EmulatorLogger } from "../../emulator/emulatorLogger";
import { ExpressionValue } from "../../... |
import { SharedWorkerTransport, listen } from 'data-transport';
import { Main, Worker } from './interface';
class SharedWorkerTransportService
extends SharedWorkerTransport.Worker<Worker>
implements Main {
@listen
async help(options: { text: string }) {
console.log('receive help', options);
return {
... |
/* eslint-disable */
/* tslint:disable */
// @ts-ignore
import icon from 'vue-svgicon'
icon.register({
'password': {
width: 128,
height: 128,
viewBox: '0 0 128 128',
data: '<path pid="0" d="M108.8 44.3H89.6V39c0-9-3.3-24.2-25.6-24.2-23.1 0-25.6 16.9-25.6 24.2v5.3H19.2V39C19.2 15.3 36.8 0 64 0c27.2 0 4... |
/*
* Copyright © 2018 Atomist, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { HomeComponent } from './home/home.component';
import { SinglePlayerComponent } from './single-player/single-player.component';
import { MultiPlayerComponent } from './multi-player/multi-player.component';
import ... |
import { Injectable } from '@angular/core';
import {Router} from '@angular/router';
@Injectable({
providedIn: 'root'
})
export class PrintService {
isPrinting = false;
constructor(private router: Router) { }
printDocument(documentName: string, id: number) {
this.isPrinting = true;
window.open('print... |
import crypto = require("crypto");
import { X7Request, X7Response } from "./common-protocol";
export function verify(data: string, sign: string, key: string, algorithm: "RSA-SHA1" | "RSA-SHA256"): boolean {
const raw_sign_data = Buffer.from(sign, "base64");
let verify = crypto.createVerify(algorithm);
veri... |
import { TConstantFormula, TFormulaResultType, TPropertyFormula, TSymbolFormula } from '@nishans/types';
import { ISchemaMap } from '../types/formula-object';
import { formulateResultTypeFromSchemaType } from './formulateResultTypeFromSchemaType';
/**
* Generate function formula arg based on certain criterias
* @pa... |
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { DatePipe } from '@angular/common';
import * as $ from 'jquery';
@Component({
selector: 'app-kalender',
templateUrl: './kalender.component.html',
styleUrls: ['./kalender.compo... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { EventEmitter } from "events";
import { ITelemetryGenericEvent, ITelemetryLogger } from "@fluidframework/common-definitions";
import {
FluidObject,
IFluidConfiguration,
IFluidHan... |
/// <reference path="./index.ts" />
import * as React from "react";
import type { YogaProps } from "./index";
import { convertStyleRNToRNS, mapEventHandlersRNToRNS } from "./ReactNativeCompat";
export function View(props: RNViewProps = {}){
const { style, ...otherProps } = props;
const styleResolved = style ... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { MessageService, BaseComponent } from './../../../shared';
import { RouteMetods } from './../../../classes/routeMetods';
import { InsegnamTools } from './../../../classes/insegnamTools';
import { B2Incom... |
export * from '@styled-icons/boxicons-regular/Beer' |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import { AppComponent } from './app.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.com... |
import { AxiosRequestConfig } from './types'
import { processHeaders } from './helpers/headers'
import { transformRequest, transformResponse } from './helpers/data'
const defaults: AxiosRequestConfig = {
method: 'get',
timeout: 0,
headers: {
common: {
Accept: 'application/json, text/plain, */*'
}... |
import type { Permissions, Snowflake } from '../../globals';
import type { APIChannel, APIConnection, APIGuildMember, APIUser, GuildFeature } from '../../payloads/v8/index';
/**
* https://discord.com/developers/docs/resources/user#get-current-user
*/
export type RESTGetAPICurrentUserResult = APIUser;
/**
* https:/... |
import {NgModule} from '@angular/core';
import {MaxHeapChart} from './max_heap_chart';
@NgModule({declarations: [MaxHeapChart], exports: [MaxHeapChart]})
export class MaxHeapChartModule {
} |
export const allEmojiFlagCodes = [
'AD',
'AE',
'AF',
'AG',
'AI',
'AL',
'AM',
'AO',
'AQ',
'AR',
'AS',
'AT',
'AU',
'AW',
'AX',
'AZ',
'BA',
'BB',
'BD',
'BE',
'BF',
'BG',
'BH',
'BI',
'BJ',
'BL',
'BM',
'BN',
'BO',
'BQ',
'BR',
'BS',
'BT',
'BV',
'BW',
'BY... |
import React from 'react';
import ReactDOM from 'react-dom';
import { v4 as uuid } from 'uuid';
import ToastContext from './ToastContext';
import toastReducer from './toastReducer';
import Toast from './Toast';
import {
pushToast,
deleteToast as deleteToastActionCreator,
hideToast as hideToastActionCreator,
} fr... |
import { RestTeam, RestUser } from '@asap-hub/squidex';
export const fetchTeamsResponse: { total: number; items: RestTeam[] } = {
total: 1,
items: [
{
id: 'team-uuid-1',
lastModified: '2020-09-25T11:06:27.164Z',
version: 42,
created: '2020-09-24T11:06:27.164Z',
data: {
dis... |
/**
* title.zh-CN: 基础用法
* desc.zh-CN: 最简单的用法。
*/
import React from 'react'
import { Radio } from 'xm-design'
function Base() {
return (
<div>
<Radio value={1}>男</Radio>
<Radio value={2} checked>
女
</Radio>
</div>
)
}
export default Base |
import tape from 'tape'
import { Config } from '../../lib/config'
import { EthProtocol } from '../../lib/net/protocol'
import { PeerPool } from '../../lib/net/peerpool'
import MockServer from './mocks/mockserver'
import MockChain from './mocks/mockchain'
import Blockchain from '@ethereumjs/blockchain'
import { Event } ... |
import { Component, OnInit } from '@angular/core';
import { ResponseContentType, Http, Response } from '@angular/http';
import { Alumno, Equipo, Juego, EquipoJuegoDeColeccion, Cromo } from '../../../../clases/index';
// Services
import { SesionService, PeticionesAPIService, CalculosService } from '../../../../servic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.