text stringlengths 10 953k |
|---|
/**
* Copyright (c) 2021 OpenLens Authors
*
* 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, p... |
import { h, defineComponent } from 'vue';
import { makeClassByName } from '@/utils';
import { vhColumnHeader } from './header';
export const vhTable = defineComponent({
name: 'vh-table',
props: {
class: {
type: String,
default: ''
},
type: {
type: Stri... |
export type Meta = {
name: string
}
export const DefaultMeta: Meta = {
name: ""
} |
import { Container } from "./styles";
import githubIcon from "../../assets/github-icon.svg"
import externalLinkIcon from "../../assets/external-link-icon.svg"
import ScrollAnimation from "react-animate-on-scroll";
export function Portfolio(){
return(
<Container id="portfolio">
<h2>Meu portfólio</h2>
... |
import {Body, Param, Get, Post, Put, Delete, Controller, Query} from '@nestjs/common';
import {HermesGateway} from '../../hermes';
import {SocketEvents} from '../../Types';
import {DataEvents} from '../Types';
@Controller('data')
export class DataController {
gateway: HermesGateway;
constructor(gateway: HermesGat... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/// <reference lib="esnext.asynciterable" />
import { ClientContext } from "./ClientContext";
import { getPathFromLink, ResourceType, StatusCodes } from "./common";
import {
CosmosHeaders,
DefaultQueryExecutionContext,
ExecutionContext,
... |
import {html, render} from 'lit-html';
import withCustomElement, {unsafeStatic} from '../src/withCustomElement';
const testWithCustomElement = () => {
describe('withCustomElement', () => {
let container: HTMLElement;
let chtml: typeof html;
beforeEach(() => {
container = document.createElement('di... |
import { StorefrontApiModule, registerExtensions } from '@storefront-api/lib/module'
import { StorefrontApiContext, GraphqlConfiguration, ElasticSearchMappings } from '@storefront-api/lib/module/types'
import { Router } from 'express'
import resolvers from './graphql/resolvers'
import schema from './graphql/schema'
imp... |
import 'reflect-metadata';
import {
classToClass,
classToClassFromExist,
classToPlain,
classToPlainFromExist,
plainToClass,
plainToClassFromExist,
} from '../../src/index';
import { defaultMetadataStorage } from '../../src/storage';
import { Exclude, Expose, Type } from '../../src/decorators';
import { test... |
import React from 'react'
import { PostTagsProps } from '../types'
const PostTags:React.FC<PostTagsProps> = ({ tags }) => {
return (
<div className="hidden md:flex md:flex-row">
{tags.map((tag, i)=>(
<p key={i} className="font-serif mr-2">#{tag}</p>
))}
</div>
)
}
export default Post... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DiaSemanaComponent } from './diasemana.component';
const routes: Routes = [
{ path: '', component: DiaSemanaComponent }
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
}... |
declare module "*.svg" {
const content: string;
export default content;
}
type Endpoint = (
req : import("http").IncomingMessage,
res : import("http").ServerResponse
) => Promise<boolean>
type DocumentOutput = {
html : string[]
js : string[]
css : string[]
cache : Set<string>
}
type ... |
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
import Page = require('../../../../base/Page');
import Response = require('../../../../http/response');
import V2010 = require('../../V2010');
import serialize = require('../../../../base/serialize');
im... |
import chalk from 'chalk';
import main from './main';
import list from './list';
import {
ValidationError,
NoTransformsExistError,
InvalidUserInputError,
} from './errors';
import packageJson from '../package.json';
import { Command, Option } from 'commander';
const program = new Command();
program
.version(... |
import { AlexaForBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AlexaForBusinessClient";
import { ApproveSkillRequest, ApproveSkillResponse } from "../models/index";
import {
deserializeAws_json1_1ApproveSkillCommand,
serializeAws_json1_1ApproveSkillCommand,
} from "../protocols/Aws_... |
import * as React from 'react';
export interface IBlogFormProps {
}
export function BlogForm (props: IBlogFormProps) {
// set form values with useState and onChange when they are changed
// send post request to save blog post
React.useEffect(()=>{
// document.forms retrieves all forms in documen... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import {
ContainerRuntimeFactoryWithDefaultDataStore,
DataObject,
DataObjectFactory,
} from "@fluidframework/aqueduct";
import { ClickerInstantiationFactory, Clicker } from "@fluid-example/clicker";
impo... |
/*
* 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 React from 'react';
import { Visualization } from '../../../types';
im... |
'use strict';
/*
* Copyright © Mythical Rawr 2014-2017
* Authors: Eduardo de Sousa Fernandes
* Website: www.failcake.me
*/
import { Component, OnInit, OnDestroy, NgZone, ElementRef, ViewChild } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { SocketManager } from '../managers/socketMa... |
/* eslint-disable no-console */
import React from 'react';
import { Form, Button } from 'antd';
import { ADynamicTreeSelect } from '@aiolosjs/components';
const layout = {
labelCol: { span: 4 },
wrapperCol: { span: 16 },
};
const styles: React.CSSProperties = {
width: 300,
};
export default () => {
function... |
import React from "react";
import styles from "./styles.module.css";
import clsx from "clsx";
const Loader = () => {
return (
<div className={styles.root}>
{/* <div className={clsx(styles.background, styles.background0)}></div>
<div className={clsx(styles.background, styles.background1)}></div>
... |
import * as mongoose from 'mongoose';
export const CourseSchema = new mongoose.Schema({
name: {
type: String,
required: true,
},
credit: {
type: String,
required: true,
},
duration: {
type: String,
required: true,
},
uiversityId: {
type: String,
required: true,
},
unive... |
const card: Event = {};
export default card;
//{"title":"City Wall (5C33)","text":"Set:\tBattle of Helm's Deep\nKind:\tFree People\nCulture:\tGondor\nTwilight:\t1\nCard Type:\tCondition\nStrength:\t-3\nGame Text:\tFortification. Plays to your support area. Skirmish: Exert a [Gondor] Man or spot 3 knights to transfer t... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
i... |
export * from '@styled-icons/remix-fill/Message3' |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_MX" version="2.1">
<context>
<name>AccountManager</name>
<message>
<location filename="../src/account-mgr.cpp" line="105"/>
<source>failed to open account database</source>
<translation>fallo al abrir la base de datos de las cuentas</tr... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CompanyDetailsPageComponent } from './company-details-page.component';
describe('CompanyDetailsPageComponent', () => {
let component: CompanyDetailsPageComponent;
let fixture: ComponentFixture<CompanyDetailsPageComponent>;
befor... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About breakout</source>
<translation type="unfinished"/>
</message>
<message>
<location line=... |
import { CSSProperties, useRef, useState } from "react";
import Button from "react-bootstrap/Button";
import ButtonGroup from "react-bootstrap/ButtonGroup";
import Col from "react-bootstrap/Col";
import Form from "react-bootstrap/Form";
import Row from "react-bootstrap/Row";
import { Redirect } from "react-router";
imp... |
import { ID } from './identifier'
import { PrivateKey, PublicKey } from './crypto'
import { Address, NetworkType } from './address'
/**
* Account/Group Meta data
*
* data format: {
* version: 1, // algorithm version
* seed: "moKy", // user/group name
* key: "{publ... |
import { Parser } from "../../src/";
import { expect } from "../utils";
export default () => {
describe("dateGenderToCf", () => {
it("Should return CF date part from year, month, day and gender", () => {
expect(Parser.dateGenderToCf([2016, 3, 23], "M"))
.to.be.equal("16D23");
... |
import { Entity, Column, ManyToMany, Index } from 'typeorm';
import { AbstractEntity } from './abstract.entity';
import { ArticleEntity } from './article.entity';
@Entity('tag')
export class TagEntity extends AbstractEntity {
@Column()
@Index({ unique: true })
title: string;
@ManyToMany(
() => ArticleEntit... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const GetPersonTrackingInput: _Structure_ = {
type: "structure",
required: ["JobId"],
members: {
JobId: {
shape: {
type: "string",
min: 1
}
},
MaxResults: {
shape: {
type: "integer",
mi... |
const gameStateKey = 'gameState'
type StoredGameState = {
guesses: string[]
solution: string
}
export const saveGameStateToLocalStorage = (gameState: StoredGameState) => {
localStorage.setItem(gameStateKey, JSON.stringify(gameState))
}
export const loadGameStateFromLocalStorage = () => {
const state = localS... |
import { Component, OnInit } from '@angular/core';
import {
PoCheckboxGroupOption,
PoMultiselectLiterals,
PoMultiselectOption,
PoRadioGroupOption
} from '@po-ui/ng-components';
@Component({
selector: 'sample-po-multiselect-labs',
templateUrl: './sample-po-multiselect-labs.component.html'
})
export class S... |
import { Models } from '@rematch/core'
import { config } from './config'
export interface RootModel extends Models<RootModel> {
config: typeof config
}
export const models: RootModel = { config } |
const secondary = {
frost: {
one: '#8FBCBB',
two: '#88C0D0',
three: '#81A1C1',
four: '#5E81AC',
},
aurora: {
one: '#BF616A',
two: '#D08770',
three: '#EBCB8B',
four: '#A3BE8C',
five: '#B48EAD',
},
};
const light = {
...secondary,
name: 'light',
base: {
one: '#ECEFF4... |
export * from './Sync/types'; |
/// <reference types="node" />
import { UmbraConfig } from "../Config/UmbraConfig";
declare class PackageJsonConfigLoader {
private readonly requireRef;
constructor(requireProxy?: NodeRequire);
loadConfig(): Partial<UmbraConfig> | null;
}
export { PackageJsonConfigLoader }; |
import Phaser from 'phaser';
import { Scene, GameObject } from './types';
class Money extends Phaser.Physics.Arcade.Sprite {
public static readonly FRAME_WIDTH = 11;
public static readonly FRAME_HEIGHT = 16;
public static readonly FRAME_SPACING = 15;
public static readonly MAX_VELOCITY = 300;
constructor(
... |
import { Component, OnInit } from '@angular/core';
import { Observable, interval } from 'rxjs';
import { map } from 'rxjs/operators';
/**
* Horizontal gauge illustrating the current stock market sentiment (bearish, bullish);
*/
@Component({
selector: 'app-sentiment',
templateUrl: './sentiment.component.html'
})
... |
import { contracts } from "./contracts";
import { generateAbis } from "./generate-abi";
import { generateProjectIndexFile } from "./generate-project";
console.log("Generating abis");
generateAbis();
console.log("Generating index file");
generateProjectIndexFile(contracts); |
const assert = require('chai').assert;
import { ConfigParams } from 'pip-services3-commons-nodex';
import { Dummy } from '../Dummy';
import { DummyCommandableLambdaFunction } from './DummyCommandableLambdaFunction';
suite('DummyCommandableLambdaFunction', () => {
let DUMMY1: Dummy = { id: null, key: "Key 1", con... |
import {Injectable, Type} from '@angular/core';
import {Categories} from '../models/category/categories';
import {Category} from '../models/category/category';
import {CaseAuthor} from '../models/category/case/case-author';
import {CaseCreationDate} from '../models/category/case/case-creation-date';
import {CaseDataset... |
import { MdiReactIconComponentType } from './dist/typings';
declare const InteractionDoubleTapIcon: MdiReactIconComponentType;
export default InteractionDoubleTapIcon; |
export default class HttpError extends Error {
status: number;
constructor(status: number, ...params: any[]) {
super(...params);
this.status = status;
Error.captureStackTrace(this, HttpError);
}
} |
/**
* This is a generated file. Do not modify it manually.
*
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
* @checksum f80ff0b262acf6338700f6665f4116f3
*/
import * as React from 'react';
import PropTypes from 'prop-types';
import { css, cx } from '@leafygreen-ui/emotion';
import { generateAc... |
/**
* Copyright 2018 Jim Armstrong (www.algorithmist.net)
*
* 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 applic... |
import { Controller, Get, Post, Body, Delete, Param, Patch } from '@nestjs/common';
import { CreateInsuranceDto } from '../dto/insurance.dto';
import { InsuranceService } from '../service/insurance.service';
/**
* - POST /insurance
* - GET /insurance
* - GET /insurance/:id
* - ... |
export * from "./useTheme";
export * from "./useColor";
export * from "./useSpacing";
export * from "./useForm"; |
import { toRaw, reactive, readonly, ReactiveFlags } from './reactive'
import { track, trigger, ITERATE_KEY, MAP_KEY_ITERATE_KEY } from './effect'
import { TrackOpTypes, TriggerOpTypes } from './operations'
import {
isObject,
capitalize,
hasOwn,
hasChanged,
toRawType,
isMap
} from '@vue/shared'
export type ... |
import { ServerShape } from "@/game/comm/types/shapes";
import { ServerLocationOptions } from "./settings";
export interface ServerLocation {
id: number;
name: string;
options: Partial<ServerLocationOptions>;
}
export interface InitiativeData {
uuid: string;
initiative?: number;
visible: boole... |
import { combineReducers } from 'redux';
import { todosReducer } from './todos';
import { Todo } from '../actions';
export interface StoreState {
todos: Todo[];
}
export const reducers = combineReducers<StoreState>({
todos: todosReducer
}); |
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { RootState } from 'redux/interfaces';
import { fetchConnectorConfig, updateConnectorConfig } from 'redux/actions';
import {
getConnectorConfig,
getIsConnectorConfigFetching,
} from 'redux/reducers/connect/selectors';
impo... |
import { Component, OnInit } from '@angular/core';
import { RegserviceService } from '../../servers/regservice.service';
import decode from 'jwt-decode';
@Component({
selector: 'app-newaddedparks',
templateUrl: './newaddedparks.component.html',
styleUrls: ['./newaddedparks.component.scss']
})
export class Newadde... |
/*
* 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 { throwError, EMPTY, timer, from, Subscription } from 'rxjs';
import {... |
import { ApiProperty } from '@nestjs/swagger';
import { CaseType } from '../entities/case.entity';
export class CreateCaseDto {
@ApiProperty({ default: 'long text', description: 'content of the case' })
content: string;
@ApiProperty({ default: CaseType.INQUIRY })
caseType: CaseType;
@ApiProperty()
organi... |
export function run( creep:Creep) {
if(creep && creep.carry.energy == 0) {
creep.memory.building = false;
creep.say('🔄 harvest');
}
if(!creep.memory.building && creep.carry.energy == creep.carryCapacity) {
creep.memory.building = true;
creep.say(... |
export interface MethodComplexity {
id: number;
numberOfPrimitiveDataTypeParameters: number;
numberOfCompositeDataTypeParameters: number;
returnType: number;
} |
/*********************************************************************************************************************
* Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. *
* ... |
/**
* Database Tools
* Database Tools APIs to manage Connections and Private Endpoints.
* OpenAPI spec version: 20201005
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* This so... |
/**
* @description Capitalizes a string passed as it's parameter.
* @param string The string to be capitalized.
* @returns A capitalized string.
*/
const capitalize = (str: string) => {
const trimmedString = str.trim();
return trimmedString.charAt(0).toUpperCase() + trimmedString.slice(1);
};
export default c... |
import net from 'net';
import http from 'http';
import Log from '@secret-agent/commons/Logger';
import MitmRequestContext from '../lib/MitmRequestContext';
import CookieHandler from './CookieHandler';
import BaseHttpHandler from './BaseHttpHandler';
import IMitmRequestContext from '../interfaces/IMitmRequestContext';
i... |
import chai, {expect} from 'chai';
import {describe, beforeEach, afterEach, before, after, it} from 'mocha';
chai.config.includeStack = true;
describe('## TESTS', () => {
it('should run', (done) => {
done();
});
}); |
// Type definitions for express-slow-down 1.1
// Project: https://github.com/nfriedly/express-slow-down
// Definitions by: Jeremy Forsythe <https://github.com/jdforsythe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import express = require("express");
declare namespac... |
import clsx from "clsx";
import { computed, defineComponent, h } from "vue";
import { computeKeyOnly } from "../../utils/classNameHelper";
export default defineComponent({
name: 'SuiFeed',
props: {
inverted: Boolean,
size: String
},
setup(props) {
const computedClass = computed(() => {
return... |
import { ANIMATIONS } from './common';
const BOUNCE_DEFAULT = {
transform: 'translate(0)',
easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)'
};
const BOUNCE: Keyframe[] = [
{ offset: 0, ...BOUNCE_DEFAULT },
{ offset: 0.2, ...BOUNCE_DEFAULT },
{ offset: 0.4, transform: 'translateY(-30px)', easing: 'cubic-bezier(... |
import React from "react";
import { TextField, Select } from "formik-material-ui";
import { Formik, Form, Field } from "formik";
import { Button, InputLabel, MenuItem, FormControl } from "@material-ui/core";
import * as Yup from "yup";
import { useMutation } from "@apollo/client";
import ErrorMessage from "../component... |
import { IVolume } from "./IVolume";
import { IPowerControl } from "./IPowerControl";
import { IInput } from "./IInput";
import { IBasicStatus } from "./IBasicStatus";
import { IConfig } from "./IConfig";
export interface ISystem {
Volume: IVolume;
Power_Control: IPowerControl;
Input: IInput;
Basic_Stat... |
import { BiosimulationsConfigModule } from '@biosimulations/config/nest';
import { Test, TestingModule } from '@nestjs/testing';
import { ConfigService } from 'aws-sdk';
import { FilePaths } from './file-paths';
describe('FilePaths', () => {
let filePaths: FilePaths;
beforeAll(async () => {
const module: Test... |
import { Box, styled, Typography } from '@mui/material';
import React, { ReactElement } from 'react';
import NavLink from '../interfaces/NavLink';
import FlexButton from './FlexButton';
export interface ExampleCardProps {
title: string;
body: string;
image: string;
navLink?: NavLink;
reverse?: boolean;
}
co... |
import test, { ExecutionContext } from "ava"
import { Color, Hsl } from "../types"
import { assertHsl } from "../_test-utils"
import toHsl from "."
function assertToHsl(t: ExecutionContext, input: Color, expected: Hsl) {
const actual = toHsl(input)
t.log(actual)
assertHsl(t, actual, expected)
}
test(
"converts ... |
import type { SignOptions } from '@polkadot/keyring/types';
import type { IKeyringPair, Registry } from '../types';
export declare function sign(registry: Registry, signerPair: IKeyringPair, u8a: Uint8Array, options?: SignOptions): Uint8Array; |
// github:tom-weatherhead/common-utilities.ts/src/regexes.ts
'use strict';
import * as engine from '../lib/main';
// test('UniversalFunctor1', () => {
// // Arrange
// const expectedValue: number[] = [4, 6, 10];
// // Act
// const fnMapElement = (n: number) => 2 * n;
// const actualValue: number[] = new engine... |
import '@testing-library/jest-dom'
// NOTE: jest-dom adds handy assertions to Jest and is recommended, but not required
import * as React from 'react'
import {render, fireEvent } from '@testing-library/react'
import { withValidState, IWithProps } from "./with-valid-state";
const TestComponent: React.FC<{debug: string... |
#!/usr/bin/env node
/*
Copyright (C) 2018 - 2020 HERE Europe B.V.
SPDX-License-Identifier: MIT
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 l... |
import { Injectable } from '@angular/core';
import { User } from '../data/user';
import { Plan, PlanDetails } from '../data/plan';
import { Subject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class UserService {
private key_user = "user";
private userSource = new Subject<User>();
user$ = this.u... |
import React, { useContext, useState, useEffect } from 'react';
import { Empty, Input, AutoComplete, Checkbox } from 'antd';
import { SelectProps } from 'antd/lib/select';
import { useHistory } from 'react-router-dom';
import classNames from 'classnames';
import Context from '../context';
import { Title } from '../comp... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
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 a... |
import { AxiosRequestConfig } from './types'
import { transformResponse, transformRequest } from './helpers/data'
import { processHeaders } from './helpers/headers'
const defaults: AxiosRequestConfig = {
method: 'get',
timeout: 0,
headers: {
common: {
Accept: 'application/json, text/plain, */*'
}
... |
import React from 'react';
import TrainingMenu from './Training/TrainingMenu'
const Training = () => {
return (
<div className="Container">
<div className="Main">
<h1>Training</h1>
<div>
<TrainingMenu />
</div>
</div>
</div>
)
}
export default Training |
/* eslint-disable */
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
export namespace Components {
interface EmbedCode... |
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// [START maps_places_autocomplete_service]
let autocompleteService: google.maps.places.AutocompleteService;
let placesService: google.maps.places.PlacesService;
let requestElement: HTMLPreElement;
let respon... |
import { Actor, IAction, IActorArgs, IActorOutput, IActorTest } from "@comunica/core";
/**
* A base actor for listening to HTTP events.
*
* Actor types:
* * Input: IActionHttp: The HTTP request.
* * Test: IActorHttpTest: An estimate for the response time.
* * Output: IActorHttpOutput: The HTTP response.... |
import * as DelightRPC from 'delight-rpc'
import { ChildProcess } from 'child_process'
import { Deferred } from 'extra-promise'
import { CustomError } from '@blackglory/errors'
import { IRequest, IResponse, IError, IBatchRequest, IBatchResponse } from '@delight-rpc/protocol'
export function createClient<IAPI extends o... |
import { gettext } from "i18n";
const colorSet = [
{ color: "black" },
{ color: "darkslategrey" },
{ color: "dimgrey" },
{ color: "grey" },
{ color: "lightgrey" },
{ color: "beige" },
{ color: "white" },
{ color: "maroon" },
{ color: "saddlebrown" },
{ color: "darkgoldenrod" },
{ color: "goldenro... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { CpassComponent } from './cpass.component';
import {CpasComponent } from './cpas/cpas.component';
import {EntityDataService, EntityDefinitionService} from '@ngrx/data... |
/**
* @file IconStamp 邮票
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('IconStamp', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<svg wid... |
describe('Add Liquidity', () => {
it('loads the two correct tokens', () => {
cy.visit('/add/0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82-0xe9e7cea3dedca5984780bafc599bd69add087d56')
cy.get('#add-liquidity-input-tokena .token-symbol-container').should('contain.text', 'CAKE')
cy.get('#add-liquidity-input-toke... |
/**
* Provides settings of the `zebra`-widget.
*/
export interface ZebraOptions {
/**
* The classes to add to even and odd rows.
*/
zebra?: [string, string] | undefined;
} |
import * as React from "react";
import * as PropTypes from "prop-types";
export interface DataProps {
/** Set effectEnable type, default is both. */
effectEnable?: "hover" | "border" | "both" | "disabled";
/** Set hover size. */
hoverSize?: number;
/** Set hoverColor. */
hoverColor?: string;
... |
import { useState } from 'react';
import { SideBar } from './components/SideBar';
import { Content } from './components/Content';
import './styles/global.scss';
export function App() {
const [selectedGenreId, setSelectedGenreId] = useState(1);
return (
<div style={{ display: 'flex', flexDirection: 'row' }}>... |
import React, { FC } from 'react';
import {
Paper,
Grid,
Typography,
Button,
makeStyles,
Theme,
createStyles,
} from '@material-ui/core';
import Close from '@material-ui/icons/Close';
import { useItemInteraction } from '../hooks/interactions';
import ItemForm from './ItemForm';
import Save from '@material... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
OperationParameter,
OperationURLParameter,
OperationQueryParameter
} from ... |
import { Injectable } from '@nestjs/common';
import { ProductDto } from './dto/product.dto';
import { createObjectCsvWriter } from 'csv-writer';
import { users } from './data/test';
@Injectable()
export class ProductsService {
findOne(id: string): ProductDto {
return { id, name: 'Red Dress', stock: 10, price: 12... |
import {CompileDirectiveMetadata, CompileTemplateMetadata, CompileTypeMetadata} from '@angular/compiler/src/compile_metadata';
import {CompilerConfig} from '@angular/compiler/src/config';
import {DirectiveNormalizer} from '@angular/compiler/src/directive_normalizer';
import {Lexer} from '@angular/compiler/src/expressio... |
import { Message } from "discord.js";
import Command from "../../structures/Command";
import Bot from "../../structures/Bot";
export default class AddRoleAllCommand extends Command {
constructor(bot: Bot) {
super(bot, {
name: "addroleall",
aliases: ["arall", "aroleall", "giveroleall"],
descript... |
/**
* Copyright 2014 Mozilla Foundation
*
* 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... |
<TS language="pl" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<source>About Pesetacoin Core</source>
<translation>O Pesetacoin Core</translation>
</message>
<message>
<source><b>Pesetacoin Core</b> version</source>
<translation>Wersja <b>... |
/**
* @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 { BooleanInput } from '@angular/cdk/coercion';
import { AfterContentInit, ElementRef, NgZone, OnDestroy, DoChec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.