text stringlengths 10 953k |
|---|
/**
* <p>Represents the subnet associated with a DAX cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with DAX.</p>
*/
export interface _Subnet {
/**
* <p>The system-assigned identifier for the subnet.</p>
*/
SubnetIdentifier?: string;
/**
* <p>Th... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="et">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ICH-C</source>
<translation>Info ICH-C'i koht... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'async-css-angular-example';
} |
import * as Knex from 'knex';
export async function up(knex: Knex): Promise<any> {
await knex.schema.alterTable('echo_history', (t) => {
t.boolean('was_random').defaultTo(false);
});
}
export async function down(knex: Knex): Promise<any> {
await knex.schema.alterTable('echo_history', (t) => {
t.dropColu... |
import React from 'react';
import { ProductDetails } from './elements/product-details/product-details';
import { useGetProductQuery } from '../../graphql/_generated-hooks';
import { ProductPlaceholder } from './elements/product-details/product-placeholder';
export interface ProductProps extends React.HTMLAttributes<HT... |
declare namespace _default {
const name: string;
const mixins: {
methods: {
setState(state: {}, callback: any): void;
__emit(...args: any[]): void;
};
}[];
const inheritAttrs: boolean;
namespace props {
const value: import("vue-types").VueTypeValidable... |
import type { Socket } from 'socket.io-client';
import { ConfiguredDocumentClass, ConfiguredDocumentClassForName, DocumentConstructor } from '../../types/helperTypes';
declare global {
/**
* The core Game instance which encapsulates the data, settings, and states relevant for managing the game experience.
* Th... |
import { ReactComponentLike } from 'prop-types';
import React from 'react';
import { isBrowser } from './client';
// NOTE: Copy-paste from @types/react
export type Defaultize<P, D> = P extends any
? string extends keyof P
? P
: Pick<P, Exclude<keyof P, keyof D>> &
Partial<Pick<P, Extract<keyof P, ke... |
import React from 'react';
import styled from '@emotion/styled';
const Container = styled.div`
margin-top: 10%;
margin-left: 10%;
background-color: ${(props) => props.theme.colors.background};
`;
const H1 = styled.h1`
color: ${(props) => props.theme.colors.primary};
font-family: 'Inter';
`;
const Descript... |
import React, { useEffect, useState } from 'react';
import { StyleSheet, Text } from 'react-native';
import RocketChat from '../../lib/rocketchat';
import { TSupportedThemes, useTheme } from '../../theme';
import sharedStyles from '../Styles';
import { themes } from '../../lib/constants';
import I18n from '../../i18n'... |
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { SplitButton } from './splitbutton';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
describe('SplitButton', () => {
let splitbutton: SplitButton;
let fixture: ... |
<TS language="ka" 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</sour... |
import { Role } from "../../role";
/**
* @see https://www.w3.org/TR/wai-aria/#rowheader
*/
Role.register(
Role.of("rowheader", Role.Category.Structure, {
inherits: ["cell", "gridcell", "sectionhead"],
supports: ["aria-sort"],
context: ["row"],
name: {
from: ["contents", "author"],
requi... |
import * as path from "path";
import {celebrate} from "celebrate";
import Router from "express-promise-router";
import {Const, Env, Joi, S3} from "src";
const router = Router({
mergeParams: true,
});
export default router;
/**
* @api {get} /entities/:id/attachments Получить список вложенией
* @apiVersion 1.0.0
... |
import { BoxGeometry, Mesh, MeshPhongMaterial } from "three";
import Blade from "./Blade";
export default class Propeller {
private _mesh: Mesh = new Mesh();
constructor(colors: any) {
const geom = new BoxGeometry(20,10,10,1,1,1);
const mat = new MeshPhongMaterial({ color: colors.brown, flatS... |
/*
* @license
* Copyright (c) 2021 Cristo Navarro.
* Copyright (c) 2020 Francisco Cruz.
* Copyright (c) 2019 Cristian Abrante.
* All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/
export * from './InnerExchangeMutation';
export * from './GeneExchan... |
import {
ModuleSource,
GlobalSource,
Meaning,
ComponentRoot,
Navigation,
ComponentNavigation,
DeclarationReference,
SymbolReference,
ComponentReference
} from '../DeclarationReference';
describe('parser', () => {
it('parse component text', () => {
const ref: DeclarationReference = DeclarationRe... |
/**
* @module botframework-connector
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
export declare namespace AuthenticationConstants {
/**
* TO CHANNEL FROM BOT: Login URL
*
* DEPRECATED: DO NOT USE
*/
const ToChannelFromBotLoginU... |
import * as React from "react";
import {PostType} from "personal-site-model";
import {PostProps} from "./Post";
export function ProjectComponent(props: PostProps<PostType.project>){
return (
<div className="project-container">
{props.content.render()}
</div>
);
} |
import { VolbackApiApplication } from '../..';
import {
createRestAppClient,
givenHttpServerConfig,
Client
} from '@loopback/testlab';
export async function setupApplication(): Promise<AppWithClient> {
const restConfig = givenHttpServerConfig({
// Customize the server configuration here.
// Empty value... |
import { Component, h, Prop } from '@stencil/core';
import { Document } from '@contentful/rich-text-types';
import { transformRichTextHeader } from '../../utils/transforms';
@Component({
tag: 'media-box',
styleUrl: 'media-box.css',
shadow: true,
})
export class MediaBox {
@Prop() sectionTitle: Document;
@P... |
import { useSelector } from "react-redux";
import { useEffect, useState } from "react";
import allBonds, { allExpiredBonds } from "src/helpers/AllBonds";
import { IUserBondDetails } from "src/slices/AccountSlice";
import { Bond } from "src/lib/Bond";
import { IBondDetails } from "src/slices/BondSlice";
interface IBond... |
import deepFreeze from "deep-freeze";
import produce, { Draft } from "immer";
import partial from "lodash/partial";
import { stateMaker } from "utils/helper/testUtils";
import playlistsWithDuplicatedSnippets from "utils/mocks/duplicatedPlaylistSnippets";
import { Playlists, Videos } from "../types";
import { deletePla... |
import { useEffect, useMemo, useState, useCallback } from 'react';
import * as anchor from '@project-serum/anchor';
import styled from 'styled-components';
import { Container, Snackbar } from '@material-ui/core';
import Paper from '@material-ui/core/Paper';
import Alert from '@material-ui/lab/Alert';
import Grid from ... |
import { createStore } from "vuex";
export default createStore({
state: { count: 1 },
mutations: {
increment(state) {
state.count++;
},
},
actions: {
increment({ commit }) {
commit("increment");
},
},
modules: {},
}); |
import { useEffect } from "react";
import { atom, selector, useResetRecoilState, useSetRecoilState } from "recoil";
import io from "socket.io-client";
import { userIdState } from "../../stores/gameDataStore";
import {
GameStates,
ICodenamesState,
IPlayer,
NAMESPACE,
Teams,
} from "./domain";
export const pla... |
import React, {useCallback} from 'react'
import {Radio} from 'antd';
import css from './index.less'
import {useObservable} from "@mybricks/rxui";
import {isValid} from "../utils";
export default function (props): any {
const {value, options} = props
let datasource
if (Array.isArray(options)) {
datasource = ... |
"use strict";
import { getSecureRandom } from "./utilities/get-secure-random";
/**
* A `SecureRandom` implementation for the current environment.
*
* @since 0.0.1
*/
export const SecureRandom = getSecureRandom();
/**
* A `SecureRandom` instance.
*
* @hidden
*/
const secureRandom = new SecureRandom();
/**
... |
import * as lsp from 'vscode-languageserver-protocol'
import { Connection } from 'typeorm'
import { ConnectionCache, DocumentCache, EncodedJsonCacheValue, ResultChunkCache } from './cache'
import { createDatabaseFilename, hashKey, mustGet } from './util'
import { databaseQueryDurationHistogram, databaseQueryErrorsCount... |
import { LazyLoadService } from '@abp/ng.core';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<abp-loader-bar></abp-loader-bar>
<router-outlet></router-outlet>
`,
})
export class AppComponent implements OnInit {
constructor(private lazyLoadService: La... |
<?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 Bitmxittz</source>
<translation>关于莱特币</translation>
</message... |
import { calculateBase64EncodedLength, decodeBase64, encodeBase64 } from './base64';
describe('base64', () => {
describe('calculateBase64EncodedLength', () => {
it('input 0', () => {
expect(calculateBase64EncodedLength(0)).toEqual([0, 0]);
});
it('input 1', () => {
... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
import { Schema, type, Reflection } from "../src";
class Entity extends Schema {
@type("number") x: number;
@type("number") y: number;
}
class Player extends Entity {
@type("string") name: string;
}
class Bot extends Player {
@type("number") power: number;
}
class InheritedTypes extends Schema {
@type(Ent... |
import styles from './styles.module.css'
export default function Divider1() {
return (
<div className={styles.container}>
</div>
)
} |
import { Token, TokenFactory, TokenValidationError } from './token';
export class Bls12381g2ValidationError extends TokenValidationError {
name: string = 'Bls12381g2ValidationError';
constructor(public value: any, public token: Bls12381g2Token, message: string) {
super(value, token, message);
}
}
export clas... |
import { useSelector } from 'react-redux';
import DetailPageBase from './detail-page-base';
import './styles.scss';
export default () => {
const root = useSelector((state) => state.detail2);
return <DetailPageBase {...root} />;
}; |
import { DefaultHeaderLine } from '../header-lines/default-header-line';
import { Author } from '../header-lines/author';
import { Commit } from '../header-lines/commit';
import { Committer } from '../header-lines/committer';
import { Parent } from '../header-lines/parent';
import { Tree } from '../header-lines/tree';
... |
import { Injectable, Logger } from '@nestjs/common';
import { InjectRepository } from '@mikro-orm/nestjs';
import { QueryOrder } from '@mikro-orm/core';
import { AssetClass } from './entities/assetClass.entity';
import { GetAssetClassListArgs } from './dto/getAssetClassList.args';
import { FilterQuery } from '@mikro-or... |
export const environment = {
production: true
};
export const projects = [
{
"id": "authentication-controller",
"name": "User Authentication Controller",
"description": "User authentification controller have five main functionalities: sign-up, login, logout, change password and delete user. Usernames a... |
/*
* (C) Symbol Contributors 2021
*
* 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 ... |
// Loaded from https://deno.land/x/cliffy@v0.18.0/flags/_errors.ts
import { didYouMeanOption, didYouMeanType, getFlag } from "./_utils.ts";
import type { IFlagOptions } from "./types.ts";
export class FlagsError extends Error {
constructor(message: string) {
super(message);
Object.setPrototypeOf(this, Flag... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nb" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Paxtecum</source>
<translation>Om Paxtecum</translation>
</messa... |
import { TileColor, Owner } from "../../enums/game.enums";
export class Tile {
color: TileColor;
nodeCount: number;
maxNodes: number;
isExhausted: boolean;
//passivelyExhausted: boolean;
capturedBy: Owner;
topLeftNode: number;
topRightNode: number;
bottomLeftNode: number;
bottomRightNode: numbe... |
/**
* Copyright 2020 Intland Software GmbH
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of cond... |
import {
BaseEntity,
Column,
CreateDateColumn,
Entity,
OneToMany,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from "typeorm";
import { View } from "./View";
import { Match } from "./Match";
import { Message } from "./Message";
import { Report } from "./Report";
@Entity()
export class User extends BaseEnt... |
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import path from 'path';
import sourceMaps from 'rollup-plugin-sourcemaps';
import { terser } from 'rollup-plugin-terser';
const pkg = require('./package.json');
const libraryName... |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... |
import React, { FC, useCallback, useState } from 'react';
import { View } from 'react-native';
import { PanGestureHandler } from 'react-native-gesture-handler';
import Animated, {
runOnJS,
useAnimatedGestureHandler,
useAnimatedStyle,
useSharedValue,
withDelay,
withSpring,
} from 'react-native-reanimated';
i... |
/// <reference types="reflect-metadata" />
import isObject from 'lodash/isObject';
import { hasOwnMetadata } from './hasOwnMetadata';
import { getFromStorage } from './fallback/get';
/* istanbul ignore next */
const ReflectBuiltIn: any = Reflect?.getOwnMetadata;
/**
* Reflect retrieves metadata by the key from the m... |
import { TestBed } from '@angular/core/testing';
import { Store, MemoizedSelector } from '@ngrx/store';
import { provideMockStore, MockStore } from '@ngrx/store/testing';
import { State } from '@app-common/models';
import { MONITORING_ACTIONS } from '@app-core/monitoring/actions/monitoring.actions';
import { isDataLoa... |
import { Injectable } from '@angular/core';
@Injectable()
export class ErrorService {
errorMessage: string = '';
constructor() { }
} |
import { useEffect, useState } from "react";
import { api } from "../services/api";
import { Button } from "./Button";
interface GenreResponseProps {
id: number;
name: 'action' | 'comedy' | 'documentary' | 'drama' | 'horror' | 'family';
title: string;
}
interface SideBarProps {
handleClickButton: (id: number)... |
export interface InstanceHistoryItem {
"@id": string;
iriType: { "@id": string };
name: string;
} |
import { all, DI, InterfaceSymbol, Profiler } from '@aurelia/kernel';
import { AttrSyntax } from './ast';
import { IAttributePattern, IAttributePatternHandler, Interpretation, ISyntaxInterpreter } from './attribute-pattern';
export interface IAttributeParser {
parse(name: string, value: string): AttrSyntax;
}
expor... |
import { DataTypes, QueryInterface } from 'sequelize'
export async function up (query: QueryInterface): Promise<void> {
await query.sequelize.transaction(async t => {
await query.createTable('users', {
id: {
type: DataTypes.BIGINT,
autoIncrement: true,
primaryKey: true
},
... |
declare module '*.html' {
const content: string;
export default content;
}
declare module '*.scss' {
const content: string;
export default content;
}
declare module '@polymer/polymer/polymer-element' {
// noinspection TsLint
export const PolymerElement: any;
export const html: any;
}
declare module '@p... |
import {inject, TestBed} from '@angular/core/testing';
import {ProfileService} from './profile.service';
describe('ProfileService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [ProfileService]
});
});
it('should be created', inject([ProfileService], (service: ProfileSer... |
// eslint-disable-next-line import/no-extraneous-dependencies
import { Request, Response } from 'express';
import { BasicListItemDataType } from './data.d';
const titles = [
'Alipay',
'Angular',
'Ant Design',
'Ant Design Pro',
'Bootstrap',
'React',
'Vue',
'Webpack',
];
const avatars = [
'https://gw.a... |
// This icon file is generated by build/generate.ts
// tslint:disable
import { IconDefinition } from '../types';
export const PoweroffOutline: IconDefinition = {
name: 'poweroff',
theme: 'outline',
icon:
'<svg viewBox="64 64 896 896"><path d="M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: '/public' },
{ path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.module').then(m => m.WelcomeModule) },
{ path: 'public', loadCh... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BiddingModule } from '../shared/Common/Bidding/Bidding.module';
import { FormsModule } from '@angular/forms';
import { MutliselectModule } from '../shared/form-guide/multiselect/mutliselect.module';
import { TextBoxModule... |
import { validate } from "superstruct-ts-transformer";
type TestType = { fieldNumber: number; [key: string]: number };
export const obj = validate<TestType>(
JSON.parse('{ "fieldNumber": "str", "field1": 123, "field2": 321 }')
); |
import assert from 'assert-diff'
import responses from '../../fixtures/responses'
import { TestSuite } from '../../utils'
const { generateAddress: RESPONSE_FIXTURES } = responses
/**
* Every test suite exports their tests in the default object.
* - Check out the "TestSuite" type for documentation on the interface.
... |
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
import { StopTrainingEntityRecognizerRequest, StopTrainingEntityRecognizerResponse } from "../models/index";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, MiddlewareStack, HttpH... |
export const Column = jest.fn().mockImplementation(() => target => target);
export const Entity = jest.fn().mockImplementation(() => target => target);
export const Generated = jest.fn().mockImplementation(() => target => target);
export const PrimaryColumn = jest
.fn()
.mockImplementation(() => (target, name) => {... |
import CallbackReturnRule from './callback-return';
import GlobalRequireRule from './global-require';
import HandleCallbackErrRule from './handle-callback-err';
import NoBufferConstructorRule from './no-buffer-constructor';
import NoMixedRequiresRule from './no-mixed-requires';
import NoNewRequireRule from './no-new-re... |
/**
* Copyright 2018 The AMP HTML 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 require... |
import * as React from 'react';
import * as H from 'history';
import { RouteComponentProps, Omit } from 'react-router';
declare module 'react-router-navigation-prompt' {
export interface ChildData {
isActive: boolean;
onCancel: () => void;
onConfirm: () => void;
}
export interface NavigationPromptPr... |
export * from './disk.entity';
export * from './file.entity'; |
import { ICardsFactoryOptions } from '../Game'
export const Single: ICardsFactoryOptions = {
cards: [
{
color: 'blue',
value: 100,
rank: {
symbol: '100',
value: 100,
},
suit: {
symbol: '*',
value: 100,
},
},
],
} |
import { Product } from "src/product/schema/product.entity";
import { Entity, Column, PrimaryColumn, BaseEntity, OneToMany } from "typeorm";
@Entity("user")
export class User extends BaseEntity {
@PrimaryColumn()
id: string; //uuid
@Column()
name: string;
@Column({ unique: true })
username... |
/** @jsx jsx */
import { css, jsx } from "@emotion/core"
import { Link } from 'react-router-dom'
import { BrowserRouter } from "react-router-dom"
import { cleanup, render } from "@testing-library/react"
import {
cssMiskLink,
MiskNavbarHeading,
MiskNavbarHeadingEnvironment
} from "../../../src/features/Navbar"
de... |
import { TextlintMessage } from "../textlint-kernel-interface";
/**
* sort messages by line and column
* @param {TextlintMessage[]} messages
* @returns {TextlintMessage[]}
*/
export default function sortByLineColumn(messages: TextlintMessage[]): TextlintMessage[]; |
export default [
{
Username: 'admin',
Password: 'superuser'
},
{
Username: 'guest',
Password: 'letmein'
},
{
Username: 'user',
Password: 'pass'
}
]; |
import { takeLeading, all, put, select } from "redux-saga/effects";
import { ReduxActionTypes, ReduxAction } from "constants/ReduxActionConstants";
import history from "../utils/history";
import { BUILDER_PAGE_URL } from "../constants/routes";
import {
getCurrentApplicationId,
getCurrentPageId,
} from "../selectors... |
import {
Directive, ElementRef, HostListener, Input, Output, EventEmitter, OnDestroy
} from '@angular/core';
import { Observable, Subscription } from 'rxjs/Rx';
@Directive({
selector: '[resizeable]',
host: {
'[class.resizeable]': 'resizeEnabled'
}
})
export class ResizeableDirective implements OnDestroy {... |
import { Entity, PrimaryGeneratedColumn, Column, Unique, CreateDateColumn, UpdateDateColumn } from "typeorm";
import { Length, IsNotEmpty, IsEmail } from "class-validator";
import * as bcrypt from "bcryptjs";
@Entity()
@Unique(["email"])
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
@Len... |
import {
Controller,
Get,
Post,
Body,
Param,
Delete,
Patch,
Query,
UsePipes,
ValidationPipe,
ParseIntPipe,
} from '@nestjs/common';
import { TasksService } from './tasks.service';
import { CreateTaskDto } from './dto/create-task.dto';
import { GetTasksFilterDto } from './dto/get-tasks-filter.dto';... |
// insertion point sub template for components imports
import { GongBasicFieldsTableComponent } from './gongbasicfields-table/gongbasicfields-table.component'
import { GongBasicFieldSortingComponent } from './gongbasicfield-sorting/gongbasicfield-sorting.component'
import { GongEnumsTableComponent } from './gong... |
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'
import { ComponentFixture, TestBed } from '@angular/core/testing'
import { NoopAnimationsModule } from '@angular/platform-browser/animations'
import { ExamDateComponent } from '../exam-date.component'
import { ExamDateModule } from '../exam-date.module'
import { E... |
import { Agent } from './agent';
try {
console.log(`creating an agent`);
const agent = new Agent();
agent.get();
} catch (e) {
console.log(`exception ${JSON.stringify(e)}`);
} |
import { strictEqual as equal } from 'assert';
import parse from '../src/markup';
import resolveConfig from '../src/config';
import stringify from './assets/stringify';
const defaultConfig = resolveConfig({ cache: {} });
function expand(abbr: string, config = defaultConfig): string {
return stringify(parse(abbr, ... |
import React from 'react'
import { Text } from 'jsx-presentation'
interface PageHeaderProps {
title: string
description: string
}
const PageHeader: React.FC<PageHeaderProps> = ({ title, description }) => {
return (
<>
<Text color="333333" fontSize={16} bold height={9}>
{title}
</Text>
... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const ListTagsForResourceInput: _Structure_ = {
type: "structure",
required: ["ResourceArn"],
members: {
ResourceArn: {
shape: {
type: "string"
}
},
NextToken: {
shape: {
type: "string"
}
},
... |
import {Path, TransformExitResult} from "@romejs/compiler";
import {descriptions} from "@romejs/diagnostics";
import {doesNodeMatchPattern} from "@romejs/js-ast-utils";
function inComponentWillUpdate(path: Path): boolean {
return (
path.findAncestry(({node}) =>
node.type === "JSClassMethod" &&
node.key.type =... |
import { connectToParent } from 'penpal';
const methods: GdocWiki.APIPortal.Methods = {
setManifestProbeUrl(url: string) {
if (url) {
localStorage.setItem('manifestUrl', url);
}
},
getManifestProbeUrl(): string | null {
return localStorage.getItem('manifestUrl');
},
probeExtensionInfo(): Pr... |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type UserDocument = User & Document;
@Schema()
export class User {
@Prop({ type: String, required: true })
firstname: string;
@Prop({ type: String, required: true })
lastname: string;
@Prop({ type: ... |
import { ValidationError } from 'yup';
// Interface Flexível
interface Errors {
[key: string]: string;
}
export default function getValidationErrors(err: ValidationError): Errors {
const validationErrors: Errors = {};
err.inner.forEach(error => {
validationErrors[error.path] = error.message;
});
retur... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as signale from 'signale';
import * as cheerio from 'cheerio';
import { AxiosInstance } from 'axios';
import dbConnect from '../../database';
import Theatre from '../../models/theatre';
async function getName(html: string) {
const $ = cheerio.load(html);
const name = $('h4').text();
return name.trim()... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BTICurrency</source>
<translation>A BTICurrency-ról</translation>
</message>
<message>
... |
import { Message } from 'node-telegram-bot-api'
export interface ICommand {
label: string
execute(message: Message, args: string[])
} |
import {join} from 'path';
import {ng} from '../../../utils/process';
import {expectFileToExist} from '../../../utils/fs';
import {updateJsonFile} from '../../../utils/project';
import { expectToFail } from '../../../utils/utils';
// tslint:disable:max-line-length
export default function() {
const componentDir = jo... |
import logo from './logo.svg';
function Home() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1>
Home1
</h1>
</header>
</div>
);
}
export default Home; |
import { Resolver, Query, Mutation, Args, Int } from '@nestjs/graphql';
import { HeightOptionService } from './height-option.service';
import { HeightOption } from './entities/height-option.entity';
import { CreateHeightOptionInput } from './dto/create-height-option.input';
import { UpdateHeightOptionInput } from './dt... |
import { DefaultDeviceDao, DeviceDao } from '../DeviceDao';
import { Collection, MongoClient, Db } from 'mongodb';
import { DeviceKey } from '../DeviceKey';
import { DeviceDocument } from '../DeviceDocument';
// mongo collection
let deviceCollection: Collection<DeviceDocument>;
let connection: MongoClient;
let db: Db;... |
export * from './apply'
export * from './diff' |
import { default as commonjs } from '@rollup/plugin-commonjs';
export { commonjs }; |
import { getTestClient } from '../../../../utils/getTestClient'
let prisma
beforeAll(async () => {
const PrismaClient = await getTestClient()
prisma = new PrismaClient()
})
afterAll(async () => {
await prisma.$disconnect()
})
test('groupBy email', async () => {
const user = await prisma.user.groupBy({
b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.