text stringlengths 10 953k |
|---|
import React, { useState, useCallback } from 'react';
import { SelectableValue } from '@grafana/data';
import { css, cx } from 'emotion';
import { useTheme } from '../../themes';
import { BasicAuthSettings } from './BasicAuthSettings';
import { HttpProxySettings } from './HttpProxySettings';
import { TLSAuthSettings } ... |
/*
* MIT License
*
* Copyright (c) 2017-2019 Stefano Cappa
*
* 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, cop... |
import { TestFilesFolder } from "../utillity.test";
import * as path from "path";
import { MCProject } from "../../src/main";
import { expect } from "chai";
const Text1 = `OutputFolder
Temp
Template/something
!BP/**/*.json`;
describe("MCProject", () => {
it("loadSync p1", () => {
const folder = path.join(TestFi... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
commands,
EventEmitter,
Memento,
Uri,
window,
workspace
} from "vscode";
import { CodeTour, store } from ".";
import { EXTENSION_NAME, FS_SCHEME, FS_SCHEME_CONTENT } from "../constants";
import { startPlayer, stopPlayer } f... |
import "./classComponentHooks";
export { createForm } from "./createForm";
export { FormGuardMixin } from "./FormGuardMixin"; |
/**
* Selectors in GrapesJS are used in CSS Composer inside Rules and in Components as classes. To illustrate this concept let's take
* a look at this code:
*
* ```css
* span > #send-btn.btn{
* ...
* }
* ```
* ```html
* <span>
* <button id="send-btn" class="btn"></button>
* </span>
* ```
*
* In this s... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'cvc-assertion-add',
templateUrl: './assertion-add.view.html',
styleUrls: ['./assertion-add.view.less']
})
export class AssertionAddView implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
/**
* @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
*/
import {AnimationOptions, ɵStyleData} from '@angular/animations';
import {AnimationDriver} from '../render/animation_... |
/** @license MIT License (c) copyright 2010 original author or authors */
import { map } from './transform'
import { empty, containsCanonicalEmpty } from '../source/empty'
import Pipe from '../sink/Pipe'
import { IndexSink, IndexedValue } from '../sink/IndexSink'
import { disposeAll, tryDispose } from '@most/disposabl... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MyHttpComponent } from './my-http.component';
// describe('MyHttpComponent', () => {
// let component: MyHttpComponent;
// let fixture: ComponentFixture<MyHttpComponent>;
//
// beforeEach(async () => {
// await TestBed.configureTest... |
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
import { DynamoDB } from "aws-sdk";
import * as _ from "lodash";
import { ITable, Table } from "../table";
import * as Codec from "../codec";
import * as Metadata from "../metadata";
import * as Query from "./query";
const HASH_KEY_REF = "#hk";
const HASH_VALUE_REF = ":hkv";
const RANGE_KEY_REF = "#rk";
export cla... |
export class SetParams {
constructor (
public max_block_net_usage: number,
public target_block_net_usage_pct: number,
public max_transaction_net_usage: number,
public base_per_transaction_net_usage: number,
public net_usage_leeway: number,
public context_free_discount_net_usage_num: number,
... |
import React from "react";
import styles from "./Menu.module.css";
import Link from "@components/Link";
export interface MenuItem {
label: string;
path: string;
}
export interface MenuProps {
items: MenuItem[];
}
const MenuItem = ({ label, path }: MenuItem) => {
return (
<div className={styles.menuItem}>... |
import React from 'react';
import ReactFlow from 'react-flow-renderer';
export const elements = [
{ id: '1', data: { label: 'Node 1' }, position: { x: 250, y: 5 } },
{ id: '2', data: { label: 'Node 2' }, position: { x: 100, y: 100 } },
{ id: 'e1-2', source: '1', target: '2', animated: true },
];
const BasicFl... |
import { Routes, RouterModule } from '@angular/router';
import { ModuleWithProviders } from '@angular/core';
import { AuthGuard } from './app.guard';
import { LoginComponent } from './components/login/login.component';
import {DashboardComponent} from './components/dashboard/dashboard.component';
const routes: Routes ... |
import {SchematicTestRunner} from '@angular-devkit/schematics/testing';
import {migrationCollection} from '../utils/testing';
describe('material-nav-schematic', () => {
let runner: SchematicTestRunner;
beforeEach(() => {
runner = new SchematicTestRunner('schematics', migrationCollection);
});
}); |
import React, { useState, useEffect } from 'react';
import { useGlobal } from 'reactn';
import Auth from '../auth/Auth';
import { Link, Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { IState, IWelcomeStrings, User, Organization } from '../m... |
import { Injectable } from '@angular/core';
@Injectable()
export class AdServiceService {
constructor() { }
} |
import { IConfig } from './src/types'
const c: IConfig = {
// [必填], 请填写您的仓库地址
gitRepoUrl: 'https://github.com/yesyet/nav',
// 部署分支
branch: 'main',
// 路由是否Hash模式, 如果是部署在github pages 务必设为 true
hashMode: true,
// 是否显示右上角的 Github 图标
showGithub: false,
// 您的网站地址,有利于SEO
homeUrl: 'https://nav.ka.mk',
... |
import { v4 as uuid } from 'uuid'
import DriversUninstallCommand from '../../../../../src/commands/edge/drivers/uninstall'
import { InstalledDriver } from '../../../../../src/lib/endpoints/hubs'
import { selectFromList } from '@smartthings/cli-lib'
const MOCK_INSTALLED_DRIVER: InstalledDriver = {
driverId: uuid(),
... |
export { Translate32 as default } from "../"; |
import { get } from '@/utils/request'
// 万年历
export const holiday = async (parmas: any) => {
return get(`/api/holiday/single/${parmas}`, '')
}
// 二维码
export const qrcode = async (parmas: any) => {
return get(`/api/qrcode/create/single?content=${parmas}`, '')
}
// IP地址
export const ip = async () => {
return get... |
/* eslint-disable quotes */
declare module "*.jpg";
declare module "*.png";
declare module "*.svg"; |
import { faSearch } from '@fortawesome/free-solid-svg-icons'
import React from 'react'
import Autosuggest from 'react-autosuggest'
import { http as httpAPI } from 'srtp-core'
import { Input } from 'srtp-ui'
import { Mixed, readonlyArray } from 'srtp-utils'
import '../stylesheets/auto-suggestion.scss'
const http: Retur... |
export function addEventListener(node: EventTarget, event: string, listener: EventListenerOrEventListenerObject): void;
export function removeEventListener(node: EventTarget, event: string, listener: EventListenerOrEventListenerObject): void;
export function getHashPath(): string;
export function replaceHashPath(path: ... |
import { ErrorRecord, PaginationOptions, PaginationResult, TimeWindowOptions } from './common';
interface LogNames {}
interface Hosts {}
interface Reports {}
interface ErrTypes {}
export interface QueryErrorTypes {
lognames: LogNames;
hosts: Hosts;
reports: Reports;
errTypes: ErrTypes;
}
export interface Que... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// *** WARNING: this file was generated by test. ***
// *** 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 } from "./types";
import * as utilities from "./utilities";
/**
* The provider type for the kube... |
export const CA = {
"Click": "Feu clic a",
"to open file": "per obrir el fitxer",
"Or drop file here": "O deixeu anar el fitxer aquí",
"Browse files": "Cercar fitxers",
"Zoom In": "Apropar",
"Zoom Out": "Disminuir el zoom",
"First Page": "Primera pàgina",
"Previous Page": "Pàgina anterior",
"Next Page... |
// @ts-expect-error STRICTNESS_MIGRATION --- 🚨 Unsafe legacy code 🚨 Please delete this and fix any type errors if you have time 🙏
import { shallow } from "enzyme"
import moment from "moment"
import React from "react"
import { DurationProvider } from "./DurationProvider"
describe("DurationProvider", () => {
const ... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
BaseContract,
ContractTransaction,
CallOverrides
} from 'ethers';
import { BytesLike } from '@ethersproject/... |
import { Component, NgZone } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import {
NavController,
AlertController,
MenuController,
ToastController,
PopoverController,
LoadingController,
ModalController } from '@ionic/angular';
// Modals
import { SearchFilterP... |
/*
* Copyright 2020 Spotify AB
*
* 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 i... |
import { MigrationInterface, QueryRunner } from 'typeorm';
export class fullTextSearch1645040628714 implements MigrationInterface {
name = 'fullTextSearch1645040628714';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
update posts set search_document_with_weights = setw... |
///<reference path="common.ts" />
module Dust.Filter {
export interface Filter {
apply(item: any): any;
}
export class SuppressEscape implements Filter {
apply(item: any) { return item; }
}
export class HtmlEscape implements Filter {
static replacers = Pct.newAssocArray(... |
import { Code, createLinkTracker, ExternalLink, useAnalytics } from '../../core';
import { Button, Modal, TextContent } from '@patternfly/react-core';
import React from 'react';
import { ExtensionEntry } from '../pickers/extensions-picker';
import { GenerateResult, Target } from '../api/quarkus-project-utils';
interfa... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
import { Injectable } from '@angular/core';
import {Headers, Http} from '@angular/http'
@Injectable()
export class TesterService {
headers;
mainUrl = 'https://troyhunt-have-i-been-pwned.p.mashape.com/v2/breachedaccount/';
constructor(private http: Http) { }
checkEmail(name: HTMLInputElement): any {
this.heade... |
import { API_BASE_URL } from '../constants';
import SlashCreator from '../creator';
import HTTPS from 'https';
import SequentialBucket from './sequentialBucket';
import Zlib from 'zlib';
import DiscordHTTPError from '../errors/DiscordHTTPError';
import DiscordRESTError from '../errors/DiscordRESTError';
export const U... |
import BigNumber from 'bignumber.js'
import { ethers } from 'ethers'
export const approve = async (lpContract, masterChefContract, account) => {
return lpContract.methods
.approve(masterChefContract.options.address, ethers.constants.MaxUint256)
.send({ from: account })
}
export const stake = async (masterCh... |
export default interface ICacheProviders {
save(key: string, value: any): Promise<void>;
recover<T>(key: string): Promise<T | null>;
invalidate(key: string): Promise<void>;
invalidatePrefix(prefix: string): Promise<void>;
} |
import { useCheckmarkStyles } from '../../selectable/index';
import { useMenuItemStyles } from '../MenuItem/useMenuItemStyles';
import type { MenuItemCheckboxState } from './MenuItemCheckbox.types';
export const useMenuItemCheckBoxStyles = (state: MenuItemCheckboxState) => {
useMenuItemStyles(state);
useCheckmarkS... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sv" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Tardcoin</source>
<translation>Om Tardcoin</translation>
</messa... |
/*
* Public API Surface of diagnostic-data
*/
export * from './lib/services/diagnostic.service';
export * from './lib/services/generic-support-topic.service';
export * from './lib/services/comms.service';
export * from './lib/services/telemetry/telemetry.service';
export * from './lib/services/detector-control.servi... |
export const cpfMask = (value: string) => {
return value
.replace(/\D/g, '')
.replace(/(\d{3})(\d)/, '$1.$2')
.replace(/(\d{3})(\d)/, '$1.$2')
.replace(/(\d{3})(\d{1,2})/, '$1-$2')
.replace(/(-\d{2})\d+?$/, '$1')
}
export const phoneMask = (value: string) => {
return value
.replace(/\D/g,... |
import React from 'react';
import { Link } from "react-router-dom";
import { makeStyles, useTheme } from '@material-ui/core/styles';
import { Typography, Container, Paper, CircularProgress } from "@material-ui/core";
import axios from 'axios';
// Import jquery datatables.net
import 'datatables.net-dt/css/jquery.dataTa... |
import { Editor } from 'slate';
import { EMarks } from '../text/TText';
import { TEditor, Value } from './TEditor';
/**
* Get the marks that would be added to text at the current selection.
*/
export const getMarks = <V extends Value>(editor: TEditor<V>) =>
Editor.marks(editor as any) as Partial<EMarks<V>> | null; |
import { FetchPolicy } from '@apollo/client';
import { FC, useState, useEffect, useContext } from 'react';
import { Spin } from 'antd';
import { WorkspaceRole } from '../../../utils';
import './TableInstance.less';
import TableInstance from './TableInstance';
import { AuthContext } from '../../../contexts/AuthContext';... |
import * as path from "path";
import { app, BrowserWindow, ipcMain, dialog } from "electron";
import { store, describeStoreContent } from "./store";
import { setAppMenu } from "./menu";
import type {
Progress,
FFmpegError,
FFmpegCommandHandlers,
} from "./ffmpeg/types";
import { executeFFmpegCommand, stopAll } fr... |
import { all, call, put, takeLatest } from 'redux-saga/effects';
import * as Actions from '../actions/client/ActionConstants';
import {
addClientFailed,
addClientSuccess,
editClientFailed,
editClientSuccess,
fetchClientsFailed,
fetchClientsSuccess
} from '../actions/client/Actions';
import { AddClient, Edit... |
import { IApiDyanmicResponse } from './i-api-dynamic-response';
/**
* 远程调用接口
*/
export abstract class RpcBase {
/**
* 调用
*
* @param route 路由
*/
public abstract call<T>(route: string): Promise<IApiDyanmicResponse<T>>;
/**
* 调用(不会抛出异常)
*
* @param route 路由
*/
pu... |
import { Request } from "express";
import { OperatorEntity } from "../entities/operator.entity";
export interface RequestWithOperator extends Request {
operator?: OperatorEntity
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About WTF</source>
<translation>关于莱特币</translation>
</message>
... |
export interface IForecast {
id: number;
daytime: string;
temperature: string;
condition: string;
pressure: string;
humidity: string;
windDirection: string;
windSpeed: string;
} |
export declare const radioStyles: (props: any) => import("jimu-core").SerializedStyles; |
import { Factory } from 'rosie';
import * as faker from 'faker';
import { MeResponse, ProductResponse, BasketProductResponse } from 'api/types';
export const MeResponseFactory = new Factory<MeResponse>().attrs({
isAdmin: () => faker.random.boolean(),
});
export const ProductResponseFactory = new Factory<ProductRes... |
import female_first_name from './female_first_name';
import female_last_name from './female_last_name';
import male_first_name from './male_first_name';
import male_last_name from './male_last_name';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
const name: any = {
female_... |
import { Fragment, useReducer, useContext, useCallback } from 'react';
import { GetServerSideProps } from 'next';
import Head from 'next/head';
import nodeFetch from 'node-fetch';
import { AccessTokenContext } from '../contexts';
import Link from '../components/link';
import InfiniteScroller from '../components/infinit... |
<TS language="el_GR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Δημιουργία νέας διεύθυνσης</translation>
</message>
<message>
<source>&New</source>
<translation>&Νέα</translation>
</messag... |
export * from "https://x.lcas.dev/preact@10.5.12/mod.js"; |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... |
/**
* @file GoogleAds 谷歌广告
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime';
export default IconWrapper(
'google-ads',
true,
(h: IconHelper, props: ISvgIconProps) => (
<sv... |
import type { TLPointerInfo } from '@tldraw/core'
import type { Action } from 'state/constants'
import { getPagePoint } from 'state/helpers'
import { mutables } from 'state/mutables'
export const updatePointer: Action = (data, payload: TLPointerInfo) => {
mutables.previousPoint = [...mutables.currentPoint]
mutable... |
// *** 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 { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
... |
import * as assert from 'assert';
describe('PhotopileWebPartWebPart', () => {
it('should do something', () => {
assert.ok(true);
});
}); |
import mem from "mem";
import { TezosToolkit } from "@taquito/taquito";
export const loadContract = mem(fetchContract, {
cacheKey: (args: any[]) => `${args[0].checksum}_${args[1]}`,
});
export function fetchContract(tezos: TezosToolkit, address: string) {
return tezos.wallet.at(address);
} |
import { Deferred } from "backend/deferred";
export interface FsThrottledWriterOptions<ContentType> {
serialize(content: ContentType): string,
time: number,
}
export class FsThrottledWriter<ContentType> {
private pendingDeferred: Deferred<void> | null = null;
private pendingContent: ContentType | null = null... |
import { PreloadingStrategy, Route } from "@angular/router";
import { Observable, of } from "rxjs";
export class AppCustomPreloader extends PreloadingStrategy {
preload(route: Route, fn: () => Observable<any>): Observable<any> {
return route?.data?.preload ? fn() : of(null);
}
} |
export const TREASURY_START_DATE = Date.parse('2020-12-22T00:00:00Z') / 1000;
export const ORACLE_START_DATE = Date.parse('2020-12-19T00:00:00Z') / 1000;
export const UNI_FACTORY = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f';
export const USD = '0x6b175474e89094c44da98b954eedeac495271d0f'; |
export * from './layout';
export * from './panel'; |
import * as React from 'react';
import { shallow } from 'enzyme';
import { formikFormProps } from '@console/shared/src/test-utils/formik-props-utils';
import { FormFooter } from '@console/shared/src/components/form-utils';
import DeployImageForm from '../DeployImageForm';
import ImageSearchSection from '../image-search... |
export { BaseModule } from './base/base.module';
export { LoginModule } from './login/login.module'; |
// Type definitions for Zynga Scroller 0.1
// Project: http://zynga.github.com/scroller/, https://github.com/popham/scroller
// Definitions by: Marcelo Haskell Camargo <https://github.com/haskellcamargo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'scroller' {
namespace Scroller... |
const emptyObject = {};
interface ReactNoopUpdateQueue {
isMounted: (publicInstance: Component) => boolean;
enqueueForceUpdate: (
publicInstance: Component,
callback?: Function,
callerName?: string,
) => any;
enqueueReplaceUpdate: (
publicInstance: Component,
compeleteState: Object,
cal... |
/**
* Allows extraction of a minified key. Let's the build system minify keys
* without losing the ability to dynamically use key strings as values
* themselves. Pass in an object with a single key/val pair and it will return
* you the string key of that single record. Suppose you want to grab the
* value for a ke... |
import AnalyticsService from "../../service/analytics-service";
import {
BlocksOfWorkProgramsFields,
DownloadFileModalFields,
EducationalPlanBlockFields,
EducationalPlanFields,
ModuleFields
} from "./enum";
import {SortingType, Types} from "../../components/SortingButton/types";
import appConfigSer... |
<TS language="uz@Cyrl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Манзил ёки ёрлиқни таҳрирлаш учун икки марта босинг</translation>
</message>
<message>
<source>Create a new address</source>
... |
//
// avatar.tsx
//
import { useRouter } from "next/router"
import * as React from "react"
import IconButton from "@mui/material/IconButton"
import MuiAvatar from "@mui/material/Avatar"
import Tooltip from "@mui/material/Tooltip"
import { getDisplayName, getProfileImageUrl } from "./signin"
export function Avatar({ u... |
import { EventAction, track } from "@/track";
import { GithubFilled, GoogleSquareFilled } from "@ant-design/icons";
import { Button, Form } from "antd";
import { signIn } from "next-auth/react";
interface Props {
mode: "login" | "register";
}
export const SocialLogin: React.VFC<Props> = ({ mode }) => {
const onCli... |
/**
* Copyright 2019 Ironbelly Devs
*
* 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 agree... |
import Value from "./value";
import Int0DValue from "./value/int-0d";
import Int1DValue from "./value/int-1d";
import Int2DValue from "./value/int-2d";
import Int3DValue from "./value/int-3d";
import IntChar0DValue from "./value/int-char-0d";
import IntChar1DValue from "./value/int-char-1d";
import Str0DValue from "./v... |
import { BoundingSphere, defined, Entity, SceneMode, Viewer } from 'cesium';
const boundingSphereScratch = new BoundingSphere();
export function getEntitiesBoundingSphere(
viewer: Viewer,
entities: Entity[],
): BoundingSphere | undefined {
if (!defined(entities) || viewer.scene.mode === SceneMode.MORPHING) {
... |
import { ObservableValue } from 'azure-devops-ui/Core/Observable';
import { PrHubState } from './types';
export const initialState: PrHubState = {
data: {
repositories: [],
pullRequests: [],
currentUser: { id: '', name: '', displayName: '', descriptor: '', imageUrl: '' },
asyncTaskCount: -1,
},
u... |
import { Command } from "../../Interfaces";
import { EmbedBuilder } from "discord.js";
import { AxiosResponse } from "../../Interfaces/Axios";
import { UwuResponse } from "../../Interfaces/Nekoslife";
import axios from "axios";
export const command: Command = {
name: "uwu",
description: "Get UwU text",
options: [
... |
import path from 'path';
import knex from 'knex';
export const config = {
client: 'sqlite3',
connection: {
filename: path.resolve(__dirname, 'database.sqlite'),
},
useNullAsDefault: true,
};
const connection = knex(config);
export default connection; |
import { getRepository } from 'typeorm';
import { Request, Response } from 'express';
import { Users } from './../entity/Users';
import * as jwt from 'jsonwebtoken';
import config from './../config/config';
import { validate } from 'class-validator';
class AuthController {
static login = async (req: Request, res: Re... |
/**
* @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 {beforeEach, describe, expect, it} from '../../../core/testing/testing_internal';
import * as html from '../.... |
import { h } from 'preact'
import easingCoordinates from 'easing-coordinates'
import { SkipOption } from '../main'
const StepIcon = ({
size = 12,
steps = 6,
jump = 'skip-none'
}: {
size: number
steps: number
jump: SkipOption
}) => {
const getPolyPoints = (): string => {
const coords = easingCoordinates(`steps... |
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-search-result',
templateUrl: './search-result.component.html',
styleUrls: ['./search-result.component.css']
})
export class SearchResultComponent {
@Input() error:boolean
@Input() loading:boolean;
@Input() errorMsg:string;
@Inp... |
import { Book, BookPreview } from "../../types/book";
export interface DescriptionProps {
description: string;
size?: 'large' | 'medium' | 'small' | 'default';
style?: React.CSSProperties;
}
export default function Description(props: DescriptionProps) {
let size = props.size;
let description = props.descript... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Store } from '../../types';
import { ActionTypes } from './../../../constants/index';
export const undo = (store: Store) => store.dispatch({ type: ActionTypes.UNDO });
export const redo = (store: Store) => store.dispatch({ type: Acti... |
import { Collection, IGenericRecord, IdOf } from './types';
import cache from './cache';
import { moveKey } from './internals';
/**
* Pick record by id and insert it into the index provided.
*
* Note: Because the function squashes the empty space left by the pick, if the specified index is greater than the starting... |
import * as express from 'express';
import * as luxon from 'luxon';
const url = require('url');
var faker = require('faker');
import { AircraftLayoutFactory } from '../business/aircraftlayoutfactory';
import { CargoFactory } from '../business/cargofactory';
class CargoController {
public router = express.Router();... |
import {ReactWrapper} from 'enzyme';
import {waitUntil, Predicate} from '@universal-login/commons';
import {AppPage} from '../pages/AppPage';
import {utils, providers} from 'ethers';
import {getWallets} from 'ethereum-waffle';
export const hasChangedOn = (wrapper: ReactWrapper, message: any) => {
wrapper.update();
... |
import { generateTestClient } from '../../../../utils/getTestClient'
test('browser-build', async () => {
await generateTestClient()
const { Decimal } = require('./node_modules/@prisma/client/index-browser.js')
const decimal = new Decimal(0.11)
expect(decimal.toString()).toEqual('0.11')
}) |
import { SourceFile } from "ts-simple-ast";
export function getComponent(sourceFile: SourceFile, componentName: string) {
return sourceFile.getClass(componentName) || sourceFile.getFunction(componentName);
}; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TyroCoin</source>
<translation>Om TyroCoin</translation>
</message>
<message>
<location... |
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { Component, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { Subscription } from 'rxjs/Subscription';
import 'rxjs/add... |
// *** 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";
/*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.