text stringlengths 10 953k |
|---|
export class User {
constructor(
private id: string,
private name: string,
private nickname: string,
private email: string,
private password: string
) {}
getId() {
return this.id;
}
getName() {
return this.name;
}
getNickname() {
return this.nickname;
}
getEmail() {... |
import React from "react";
import { Loading, Wrapper, Head } from "@app/components";
import {
useCreateCheckMutation,
usePatientQuery,
} from "@app/generated/graphql";
import useAuth from "@app/utils/useAuth";
import withApollo from "@app/utils/withApollo";
import { useRouter } from "next/router";
import {
Box,
... |
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as path from 'path';
import { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine';
import { BaseAction } from './BaseAction';
import { DocumenterCo... |
import Vue from 'vue';
import { Component } from "vue-property-decorator";
/// @ts-ignore
import template = require("text!./roleList.html");
/* import "css!./roleList.css"; */
@Component({
name: 'RoleList',
template: template
})
export default class RoleList extends Vue {
} |
import * as React from "react";
import { MESSAGE_TYPE } from "@src/type/message";
import { STORAGE_FOLLOWING } from "@src/type/storage";
import Icon from '@src/components/Icon';
import "@assets/base.scss";
import "./FollowDisplay.scss";
const Follow = ( { userId }: { userId: string }) => {
return (
<button clas... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { AlertController } from '@ionic/angular';
import { combineLatest, Observable, Subscription } from 'rxjs';
import { map, tap } from 'rxjs/operators';
import { Match } from 'src/app/models/match... |
export { dev } from './api/dev';
export { build } from './api/build';
export { export } from './api/export';
export { find_page } from './api/find_page';
export { runtime_codegen } from './api/utils/copy_runtime' |
import { ToastProps } from '@innovaccer/design-system';
type autoHiderBarProp = { style: object };
export interface AlertComponentProps extends ToastProps {
toastId: string;
dismissIn?: number;
toastClassName: string;
autoHiderBar: autoHiderBarProp;
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ProfileComponent } from './profile.component';
import { MaterialModule } from '@angular/material';
@NgModule({
imports: [
CommonModule,
MaterialModule
],
declarations: [ProfileComponent],
exports: [
P... |
import {
Stmt,
Expr,
Type,
UniOp,
BinOp,
Literal,
Program,
FunDef,
VarInit,
Class,
Location,
Destructure,
Assignable,
ASSIGNABLE_TAGS,
AssignTarget,
Parameter,
} from "./ast";
import { NUM, STRING, BOOL, NONE, CLASS, unhandledTag, unreachable, isTagged, LIST } from "./utils";
import * as... |
declare const _TemplateConfig: (name: any, relPath: any, destPath: any, root: any, exampleBasePath: any) => string;
export = _TemplateConfig; |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class KeypairService {
generate(): PromiseLike<CryptoKeyPair> {
return window.crypto.subtle.generateKey(
{
name: 'RSA-OAEP',
modulusLength: 4096,
publicExponent: Uint8Array.from([0x01, 0x00, 0x... |
import { Schema, model } from 'mongoose';
import IUrl from 'interfaces/IUrl';
const urlSchema = new Schema<IUrl>({
hash: { type: String, require: true, },
originUrl: { type: String, require: true, },
shortUrl: { type: String, require: true, },
});
const UrlModel = model<IUrl>('Url', urlSchema);
export {... |
'use strict';
import { IAgent } from '../IAgent';
import { IInspector } from './IInspector';
import { IProxyEvent } from '../tracing/IProxyEvent';
import { DateTimeValue } from '../configuration/DateTimeValue';
import tracing from '../tracing/Tracing';
import * as HttpClientProxy from '../tracing/proxies/HttpClientPro... |
// intervals are in milliseconds
const second = 1000;
const minute = 60 * second;
export interface PlantData {
interval: number;
interval_description: string;
botanist_description: string;
color: string;
plants: {
name: string;
windows: number;
}[];
}
//["#a55ca5", "#67b6c7", "#bccd7a", "#eb9743",... |
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
// ADF modules
im... |
import { NestFactory } from '@nestjs/core';
import { MicroserviceOptions } from '@nestjs/microservices';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { AppModule } from './app.module';
async function bootstrap() {
const fastifyAdapter = new FastifyAdapter();
const ... |
import favicon = require('koa-favicon');
import { Daruk, defineMiddleware } from '../../..';
@defineMiddleware('koa-favicon')
class Favicon implements DarukType.MiddlewareClass {
public initMiddleware(daruk: Daruk) {
return favicon(`${daruk.options.rootPath}/public/favicon.png`);
}
} |
import { v2 as webdav } from 'webdav-server';
export declare class VirtualStoredResource {
type: webdav.ResourceType;
propertyManager: webdav.LocalPropertyManager;
lockManager: webdav.LocalLockManager;
creationDate: number;
lastModifiedDate: number;
contentUID: string;
constructor(data: Virt... |
/*
* 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.
*/
export { PingListQuery } from './ping_list_query'; |
/// <reference path="tedious.d.ts" />
"use strict";
import tedious = require("tedious");
var config: tedious.ConnectionConfig = {
userName: "rogier",
password: "rogiers password",
server: "127.0.0.1",
options: {
database: "somedb",
instanceName: "someinstance",
}
}
var connection = new tedious.Connection(c... |
import * as React from 'react';
import MenuItem from 'material-ui/MenuItem';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import ExitToApp from 'material-ui/svg-icons/action/exit-to-app';
import { Redirect } from 'react-router-dom';
// import FontAwesomeIcon from '@for... |
// svg/leaf.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgLeaf = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/... |
// This is a generated file from running the "createIcons" script. This file should not be updated manually.
import React, { forwardRef } from "react";
import { FontIcon, FontIconProps } from "@react-md/icon";
export default forwardRef<HTMLElement, FontIconProps>(function AlarmFontIcon(
props,
ref
) {
return (
... |
import { TypedForm, propObject, maxLength, required, propArray, toDate } from "@rxweb/reactive-form-validators";
import { Address } from './address';
import { Skill } from './skill';
//Extending class with 'TypedForm' is only required when you want to access the FormGroup Object in the model Instance
export class User... |
import KeychainServiceDriverBase from './KeychainServiceDriverBase';
const Setting = require('lib/models/Setting');
const BaseService = require('lib/services/BaseService');
export default class KeychainService extends BaseService {
private driver:KeychainServiceDriverBase;
private static instance_:KeychainService;
... |
import React from 'react'
import { fireEvent } from '@testing-library/react'
import { render } from '../../../testUtils'
import { Panel } from '../../../components/Panel/Panel'
import { getPlaceUrl } from '../../../utils/utils'
const IFRAME_ID = 'panelIframe'
const CONTAINER_ID = 'sidePanelContainer'
const OPEN_ID = ... |
import { Component } from '@angular/core'
@Component({
selector: 'ngx-team',
styleUrls: ['./team.component.scss'],
templateUrl: './team.component.html',
})
export class TeamComponent {
} |
import {
chain,
Rule,
SchematicContext,
SchematicsException,
Tree,
} from '@angular-devkit/schematics';
import { RunSchematicTask } from '@angular-devkit/schematics/tasks';
import { NgPackage } from './ng-package';
import { ShowcasePackage } from './showcase-package';
export function bazel(options: { filter... |
import { Caps, Card, Text } from 'components/atoms'
import * as React from 'react'
interface StatProps {
content: any
title: any
}
export const Stat = ({ content, title, ...props }: StatProps & any) => (
<Card mx={2} {...props}>
<Text fontSize={4} color="near-black" is="div">
{content}
</Text>
... |
import bip32 from './__fixtures__/bip-32.json';
import bip39 from './__fixtures__/bip-39.json';
import { HDNode } from './hdnode';
import { fromHex } from './utils';
/**
* Test vectors using mnemonic phrases, as defined in the reference implementation if BIP-39.
*
* https://github.com/trezor/python-mnemonic/blob/b5... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { HeroesService } from './heroes.service';
@Module({
modules: [],
controllers: [AppController],
components: [
HeroesService,
],
})
export class ApplicationModule { } |
import { createTheme } from "@mui/material";
declare module "@mui/material/styles" {
interface Palette {
backgroundColor: string;
borderColor: string;
greyLetter: string;
}
interface PaletteOptions {
backgroundColor: string;
borderColor: string;
greyLetter: string;
}
interface Breakpoi... |
import {
IsDate,
IsNumber,
IsObject,
IsString,
Max,
Min
} from 'class-validator';
import {Type} from "class-transformer";
import {ApiProperty} from "@nestjs/swagger";
class Duration {
@IsDate()
started: Date;
@IsDate()
closed: Date;
}
export class CreateClassDto {
@ApiProperty({ example: 'Backe... |
import { HttpClientModule } from '@angular/common/http';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { LoginComponent } from './login.component';
describe('LoginComponent', () => ... |
import { PackageJsonDependency, DependencyType } from '../../api/PackageJsonEditor';
import { CommonVersionsConfiguration } from '../../api/CommonVersionsConfiguration';
import { VersionMismatchFinderEntity } from './VersionMismatchFinderEntity';
export declare class VersionMismatchFinderCommonVersions extends VersionM... |
import { ServiceClient } from "../ServiceClient";
import { JSONObjectOf } from "../../../redux/types/json";
import { EpochTime } from "../../../redux/types/base";
import { SDKBoolean } from "../JSONRPC11/types";
export interface ObjectIdentity {
workspace?: string;
wsid?: number;
name?: string;
objid?:... |
import Message from "@/protocol/network/messages/Message";
export default class TaxCollectorHireRequestMessage extends Message {
constructor() {
super();
}
} |
import i18next from 'i18next'
import { initReactI18next } from 'react-i18next'
import { languages } from './locale/languages'
i18next
.use(initReactI18next)
.init({
fallbackLng: 'enUS',
lng: 'enUS',
resources: languages,
debug: true,
returnEmptyString: false,
})
.then()
.catch((e: any) => {
console.lo... |
import Console from "./Console";
import Module from "./Module/Module";
export default class Info extends Console {
/**
* Contains the module name.
*/
public name: string = '';
/**
* Contains the module description.
*/
public description: string = '';
/**
* Defines in what group the module b... |
import React, { FC } from "react";
interface TagsProps {
tagList: TagProps["tag"][];
}
interface TagProps {
tag: string;
withPadding: boolean;
}
export const Tags: FC<TagsProps> = ({ tagList }) => (
<div className="flex mt-4">
{tagList.map((tag, index) => (
<Tag key={tag} tag={tag} withPadding={ind... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { SearchBarComponent } from './search-bar.component';
import {ProductServiceModule} from '@nodeart/productservice/index';
/**
* Search bar for searching products by name
*/
@NgModule({
imports: [ProductServiceMod... |
import {Project} from "db"
export type ProjectSwitchProps = {project: Project} |
import Progress from 'zarm/lib/progress';
Progress.defaultProps.prefixCls = 'zw-progress';
export default Progress; |
import { expect } from 'chai';
import { EventEmitter } from 'events';
import { empty } from 'rxjs';
import * as sinon from 'sinon';
import { ClientRMQ } from '../../client/client-rmq';
// tslint:disable:no-string-literal
describe('ClientRMQ', function() {
this.retries(10);
let client: ClientRMQ;
describe('conn... |
import { Behaviours, http, idiom as lang, _, ui } from 'entcore';
console.log('directory behaviours loaded');
Behaviours.register('directory', {
rights:{
workflow: {
externalNotifications: "org.entcore.timeline.controllers.TimelineController|mixinConfig",
historyView: "org.entcore.timeline.controllers.Timeli... |
import {
Table,
Column,
Model,
ForeignKey,
DataType,
BelongsTo,
NotNull,
AllowNull,
} from 'sequelize-typescript';
import { ScoringLabel } from './models/scoring-label.entity';
import { Message } from 'src/message/models/message.entity';
import { User } from 'src/users/models/user.entity';
import { Thre... |
import * as TE from "fp-ts/TaskEither"
import { StepsOutputList } from "../steps"
/**
* A common error state to be used when the file formats are not expected
*/
export const IMPORTER_INVALID_FILE_FORMAT =
"importer_invalid_file_format" as const
export type HoppImporterError = typeof IMPORTER_INVALID_FILE_FORMAT
... |
import { CLIRule } from '../../types'
module.exports = (rule: CLIRule, line: string): string => {
const foundVersions = line.match(/(\d+\.)?(\d+\.)?(\d+)([^\sa-zA-Z0-9]+\w+)?/g)
if (Array.isArray(foundVersions)) {
const matchIndex = rule.matchIndex || 0
return foundVersions[matchIndex]
} else {
throw... |
import {
Observable,
Subject,
Subscription,
of,
BehaviorSubject
} from "rxjs";
import {
map,
flatMap,
catchError,
withLatestFrom,
tap
} from "rxjs/operators";
// import { createStore, StoreEnhancer } from "redux";
import {
WsMessage,
makeChatMessage,
CHAT_MESSAGE_ADD,
WsCommand,
MessageEv... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Copyright 2018, OpenCensus Authors
*
* 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 ... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import { map, first, last } from "@sparkwave/standard/collections"
import { createElement, mergeProps, makeComponent } from '../core'
import { Component, StyleProps, CSSProperties } from '../types'
import { StackPanel } from './stack-panel'
import { HoverBox } from... |
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Injectable } from '@angular/core';
/**
* @name Mobile Accessibility
* @description
* This plugin exposes information on the status of various accessibility features of mobile operating systems, including, for example, whether a screen... |
import draft from './draft';
import * as projectAttachments from './project-attachments-queries';
import * as projectCreate from './project-create-queries';
import * as projectDelete from './project-delete-queries';
import * as projectTreatments from './project-treatments-queries';
import * as projectUpdate from './pro... |
/**
* @license
* Copyright 2021 Dynatrace LLC
* 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 ag... |
import Log from '../util/Log';
import VideoWindow from './VideoWindow';
import JingleMediaSession from '../JingleMediaSession';
import Translation from '@util/Translation';
import JingleCallSession from '@src/JingleCallSession';
import * as screenfull from 'screenfull';
import Client from '@src/Client';
const screen =... |
import { EmployeeService } from './../employee.service';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'employee-detail',
template: `
<h2>Employee Detail</h2>
<h3>{{errorMsg}}</h3>
<ul *ngFor="let employee of employees">
<li>{{employee.id}}. {{employee.name}} - {{emplo... |
import keyAdapter from "./keyboard";
import pointerAdapter from "./pointer";
export * from "./keyboard";
export { keyAdapter, pointerAdapter };
export * from "./mouse";
export { default as mouseAdapter } from "./mouse";
export { default as touchAdapter } from "./touch";
export * from "./wheel";
export default (hand... |
/*
* 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 writing, software
* distribut... |
/**
* @license
* Copyright 2020 Google LLC. 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 a... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faGasPump: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligature... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-contact',
templateUrl: './contact.component.html',
styleUrls: ['./contact.component.css']
})
export class ContactComponent implements OnInit {
constructor() { }
latitude = 33.312805;
longitude = 44.361488;
ngOnInit(): void {
... |
import { Component } from '@angular/core';
import { IrcService } from './services/irc.service';
import { AuthenticateService } from './services/authenticate.service';
import { CacheService } from './services/cache.service';
import { GenericService } from './services/generic.service';
import { gte } from 'semver';
@Com... |
import _esmRequire from 'esm';
import jwt from 'jsonwebtoken';
import * as _module from 'module';
import { Context } from 'koa';
export const verifyJWT = (
dir: string,
authToken: string,
ctx: Context,
): string | Record<string, unknown> => {
const _mod = (_module as unknown) as NodeModule;
const esmRequire ... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { ServerComponent } from './server/server.component';
import { ServersComponent } from './servers/servers.component';... |
import { Node } from 'typescript';
import { TypeGuardPredicate } from './predicate';
/**
* Finds a closest ancestor that matches a given predicate.
*
* Ensures type safety
*/
export function findClosestAncestorNode<ParentNodeType extends Node = Node>(
startingNode: Node,
predicate: TypeGuardPredicate<Node, Pa... |
/**
* export round number
*/
export * from './roundNumber';
/**
* export limit stock
*/
export * from './limitStock'; |
export const ConnectionTexts = {
facebook: {
connected: {
header: 'You are connected to Facebook',
descr: [
'You can now sign in to XRChat using your Facebook account.',
'We will never post to Facebook or message your friends without your permission.'
]
},
not_connected: ... |
import { Validator, error, empty } from '../validation';
import { isEqual } from '../helpers';
export const validateEnum: Validator = (schema, value, { name }) =>
schema.enum && !schema.enum.some((item) => isEqual(item, value)) ? error('enum', name, schema.enum) : empty; |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/**
* Helper function to limit array of strings for shorter displays
* @param list array of strings to chech for the limit
* @param limit number of elements to keep
*/
export const limitWithCount = (list: string[] | null, limit: number) => {
if (!list || list.length < 1) {
return []
}
if (!limit || list.... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UsersModule } from './users/users.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ArticlesModule } from './articles/articles.module';
import { TagsModule } f... |
import {ResistorColorEntry} from './ResistorColorEntry';
export class Resistor {
// Name, Color, Multiplier, Value, Tolerance
static readonly BLACK = new ResistorColorEntry('Black', '#000000', 1, 0);
static readonly BROWN = new ResistorColorEntry('Brown', '#8B4513', 10, 1, 1);
static readonly RED = new Resisto... |
import { createIcon } from '../_createIcon/createIcon';
import IconBookSizeAll from './IconBook_size_all';
export const IconBook = createIcon({
l: IconBookSizeAll,
m: IconBookSizeAll,
s: IconBookSizeAll,
xs: IconBookSizeAll,
name: 'IconBook',
}); |
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* 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 app... |
import { Body, Controller, Delete, Get, Param, Patch, Post} from '@nestjs/common';
import { response } from 'express';
import { CoursesService } from './courses.service';
import { CreateCourseDto } from './dto/create-course.dto';
import { UpdateCourseDto } from './dto/update-course.dto';
@Controller('courses')
export ... |
import { ProjectContainer } from "./project/project.container";
export const CONTAINERS = [ProjectContainer];
export const CONTAINER = {
ProjectContainer: ProjectContainer
}; |
import React, { FC } from 'react';
import { useSelector } from 'react-redux';
import ColorfulBeads from 'components/molecules/ColorfulBeads';
import { CounterState } from 'features/counter';
const EnhancedColorfulBeads: FC = () => {
const count = useSelector<CounterState, number>((state) => state.count);
return ... |
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { CompanyRepository } from './company.repository';
import { CarrierService } from '../carrier/carrier.service';
@Injectable()
export class CompanyService {
constructor(
private reado... |
//
// create.js
// Create Cocktail module
//
'use strict';
// Data Models and Structures
var cocktail = {
id: 0,
title: '',
description: '',
ingredient: [],
glass: '',
garnish: '',
directions: '',
creator: '',
date: '',
};
var ingredient = [{ id: 0, product: 'Bacardi Rum', measurement: '2 oz' }];
... |
// @needsAudit
/**
* This return value is to let iOS know what the result of your background fetch was, so the
* platform can better schedule future background fetches. Also, your app has up to 30 seconds
* to perform the task, otherwise your app will be terminated and future background fetches
* may be delayed.
*... |
import { assertDefined } from '../assert/assert';
import { getInvokeContext } from './use-core';
// <docs markdown="https://hackmd.io/lQ8v7fyhR-WD3b-2aRUpyw#useHostElement">
// !!DO NOT EDIT THIS COMMENT DIRECTLY!!! (edit https://hackmd.io/lQ8v7fyhR-WD3b-2aRUpyw#useHostElement instead)
/**
* Retrieves the Host Elemen... |
import { IUserPending } from 'app/entities/user-pending/user-pending.model';
import { ISettingsList } from 'app/entities/settings-list/settings-list.model';
import { IGroup } from 'app/entities/Homies/group/group.model';
export interface ISpendingList {
id?: number;
total?: number | null;
nameSpendList?: string;... |
import { BaseStyleProps } from '@antv/g';
import { Button, Form, InputNumber, Popover, Space } from 'antd';
import { Dispatch, FC, SetStateAction, useEffect, useState } from 'react';
import { ChromePicker } from 'react-color';
import { useModel } from 'umi';
const ColorPicker: FC<{
value?: string;
onChange?: (val:... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit(): voi... |
import factory from './factory';
import * as React from 'react';
export interface TextareaProps {
id?: string;
className?: string;
name?: string;
value?: string;
placeholder?: string;
placeholderStyle?: React.CSSProperties;
placeholderClass?: string;
disabled?: boolean;
maxlength?: number;
focus?: ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RegistraBibliotecaComponent } from './registra-biblioteca.component';
describe('RegistraBibliotecaComponent', () => {
let component: RegistraBibliotecaComponent;
let fixture: ComponentFixture<RegistraBibliotecaComponent>;
before... |
import gql from 'graphql-tag';
import { useMutation } from '@apollo/react-hooks';
import { useCallback } from 'react';
const UPDATE_THUMBNAIL = gql`
mutation UpdateThumbnail($url: String) {
update_thumbnail(url: $url) {
id
thumbnail
}
}
`;
export default function useUpdateThumbnail() {
const... |
// SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
/* eslint-disable no-underscore-dangle */
type Sc... |
/*
* 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... |
import { ApiProperty } from "@nestjs/swagger";
import { IsEnum } from "class-validator";
import { Reactions } from "../enums/reactions.enum";
import { InputType, Field } from "@nestjs/graphql";
@InputType()
export class RefuseReactionFromCommentDto {
@Field()
@IsEnum(Reactions)
@ApiProperty({
enum: Reaction... |
import { Component } from '@angular/core';
/**
* Generated class for the BodyGrupos component.
*
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
* for more info on Angular Components.
*/
@Component({
selector: 'body-grupos',
templateUrl: 'body-grupos.component.html'
})
expo... |
import {fileExist, readFile, createNewFolder, moveFile} from './file';
import * as mock from 'mock-fs';
const dir = 'dir.md';
const tempDir = 'temp.md';
const patch = '/test';
beforeEach(async () => {
mock({
'/test': {
'dir.md': 'hello world!',
},
'path/to/some.txt': 'hello world!',
'/mov': '',... |
import styled from "styled-components";
import { theme } from "styled-tools";
import { User } from "utils/tempData";
export default function UserInfo(props: { userInfo: User }) {
const userInfo = props.userInfo;
return (
<StWrapper>
<img src={userInfo.image} alt="userThumbNail-1" />
<StInfoWrapper... |
import { Mesh, ShaderMaterial } from 'three';
import { CurvedLineShape } from '../../drawing/shape/curved-line-shape';
import { AtlasManager } from '../../drawing/texture/atlas-manager';
import { BaseBuffer } from '../base-buffer';
/**
* This renders a curved line by injecting all attributes needed to render it.
* Th... |
import { Test, TestingModule } from '@nestjs/testing';
import {UserService} from './user.service';
describe('UserServices', () => {
let service: UserService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [UserService],
}).compile();
service ... |
import {Component} from '@angular/core';
@Component({
selector: 'atc-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
public title: string = 'angular-testing-course';
} |
import Koa from 'koa';
import cors from '@koa/cors';
import endsWith from 'lodash/endsWith';
import some from 'lodash/some';
import config from '../config';
export const initialize = async (app: Koa): Promise<void> => {
await app.use(cors({
origin: (context) => {
const origin = context.get('Origin')
... |
/*
* 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 {
EuiFlexGroup,
EuiFlexItem,
EuiPage,
EuiPanel,
EuiTitle,
} ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.