text stringlengths 10 953k |
|---|
export interface LazyNotebookDivision {
name: Name;
pages: number[];
craftLevel: number;
gatheringLevel: number;
}
export interface Name {
en: string;
ja: string;
de: string;
fr: string;
} |
/**
* Types extracted from https://discord.com/developers/docs/topics/gateway
*/
import type { Snowflake } from '../globals';
import type {
APIApplication,
APIApplicationCommand,
APIApplicationCommandInteraction,
APIChannel,
APIEmoji,
APIGuild,
APIGuildIntegration,
APIGuildMember,
APIMessage,
APIMessageCom... |
export interface Action<T> {
(value: T): void;
}
export interface Func<T> {
(): T;
}
export interface Func2<T, T2> {
(x: T): T2;
}
export interface IDisposable {
dispose(): void;
}
export interface IObservable<T> extends IDisposable {
subscribe: (x: Action<T>) => IDisposable;
subscribeOnce:... |
/*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import { PendingDataAttributeBean, PendingDataAttributeBeanField } from './PendingDataAttributeBean';
import { ChangeDataBean, ChangeDataBeanField } from './C... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CitiesController } from './cities.controller';
import { CitiesService } from './cities.service';
import { City } from './city.entity';
@Module({
imports: [TypeOrmModule.forFeature([City])],
controllers: [CitiesContro... |
version https://git-lfs.github.com/spec/v1
oid sha256:4d2b53512c2207596e8c0881d70e5bfcdbff3c20a3177be3410de2c591d3ffaa
size 846000 |
'use strict';
import path = require('path');
import * as ws from 'ws';
import url = require('url');
import querystring = require('querystring');
import Utils = require('../models/utils');
import LocalizedConstants = require('../constants/localizedConstants');
import Constants = require('../constants/constants');
import... |
import { JsxBaseElement } from "@coli.codes/jsx-core/elements";
import { ReturnStatement } from "coli";
import { stringfy_tokenformatted, StringfyLanguage } from "..";
import { formatters } from "@coli.codes/ast-formatter";
export function strfy_return_statement(
c: ReturnStatement,
l: StringfyLanguage
): string {... |
import React, { FunctionComponent } from 'react';
import { injectIntl, WrappedComponentProps } from 'react-intl';
import { Undertekst, Undertittel } from 'nav-frontend-typografi';
import urlMann from '@fpsak-frontend/assets/images/mann.svg';
import urlKvinne from '@fpsak-frontend/assets/images/kvinne.svg';
import { Im... |
import { createPxth, Pxth } from 'pxth';
import { Stock } from './useStock';
import { useStockValue } from './useStockValue';
import { StockProxy } from '../typings/StockProxy';
const rootPxth = createPxth([]);
export const useAllStockValues = <T extends object = object>(
customStock?: Stock<T>,
proxy?: Stoc... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
url: 'http://127.0.0.1:8000/api/',
production: false
};
/*
* Fo... |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {CloudFrontCustomizations} from '../lib/services/cloudfront';
import {WaiterConfiguration} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase... |
export const version = '6.2.0-alpha.0'; |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import {DefaultExampleParentComponent} from "./default-example/parent/default-example-parent.component";
import {DefaultExampleChildComponent} from "./default-example/chi... |
import { helpers, keys } from '../../../../__data__';
import { DiagnosticCode } from '../../../../DiagnosticCode';
describe('ObjectBindingHelper', () => {
describe('variable', () => {
test('simple', async () => {
await helpers.executeString(`
const value = { a: 0, b: 1, c: 2, 3: 3, 4: [4] };
... |
export interface ICourse {
loadJson(filename: string, callback: ICallback): void;
}
export interface ICallback {
success(data?: string): void;
error(error: Error): void;
}
export class SuccessCallback implements ICallback {
public error = (error: Error): void => {
console.error('Callback Error... |
import { cli } from 'cli-ux';
import debug from 'debug';
import fs from 'fs';
import { inject, injectable, multiInject } from 'inversify';
import _ from 'lodash';
import os from 'os';
import path from 'path';
import git from 'simple-git/promise';
import url from 'url';
import { inspect } from 'util';
import { Arguments... |
import classnames from 'classnames'
import React from 'react'
import { IconType } from 'react-icons'
export interface ToolbarButtonProps {
className?: string
badge?: string | number
blink?: boolean
onClick: (event: React.MouseEvent) => void
icon: IconType
offIcon?: IconType
on?: boolean
title: string
}... |
import { expect as expectCDK, matchTemplate, MatchStyle } from '@aws-cdk/assert';
import * as cdk from '@aws-cdk/core';
import * as SetupPolicyAdjustments from '../lib/setup_policy_adjustments-stack';
test('Empty Stack', () => {
const app = new cdk.App();
// WHEN
const stack = new SetupPolicyAdjustments.Se... |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { assert, expect } from 'chai';
import { Config } from '../../../src/config/config... |
import FakeAppointmentsRepository from '../repositories/fakes/FakeAppointmentsRepository';
import ListProviderMothAvailabilityService from './ListProviderMonthAvailabilityService';
let fakeAppointmentsRepository: FakeAppointmentsRepository;
let listProviderMothAvailability: ListProviderMothAvailabilityService;
descri... |
export class Party {
partyId: number;
partyName: string;
} |
export * from './exceptions/base';
export * from './exceptions/argument';
export * from './exceptions/evaluation';
export * from './exceptions/grammar';
export * from './grammar/grammar-base';
export * from './grammar/name';
export * from './grammar/production'; |
// >> trace-require
import trace = require("trace");
// << trace-require
export var test_DummyTestForSnippetOnly0 = function () {
// >> trace-all-categories
trace.setCategories(trace.categories.All);
trace.enable();
// << trace-all-categories
}
export var test_DummyTestForSnippetOnly1 = function () {... |
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
import {
ListModelExplainabilityJobDefinitionsRequest,
ListModelExplainabilityJobDefinitionsResponse,
} from "../models/models_2";
import {
deserializeAws_json1_1ListModelExplainabilityJobDefinitionsCommand,... |
import { IGState } from "./NASAIg-types";
import { NASAIgActionTypes } from "./NASAIg-types";
import { SET_CURRENT_IMAGES } from "./NASAIg-types";
import { getAPODDefault } from "./NASAIg-actions";
import { SET_LOADING } from "./NASAIg-types";
import { SET_LIKES } from "./NASAIg-types";
import { PURGE } from 'redux-per... |
import React, { useCallback, useEffect, useState } from 'react';
// Utils
import { Linking } from '../../../core/Styles/utils';
// Components
import Logo from '../../assets/logo';
import SearchBar from '../../components/Search/search-bar';
// Api
import { resolveInitial } from '../../api/documentation-api';
import {... |
import { getLevenshteinClosest } from '@sap-cloud-sdk/generator-common/internal';
import {
VdmActionImport,
VdmEntity,
VdmFunctionImport,
VdmParameter
} from '../vdm-types';
/**
* @internal
*/
export function getODataEntity(
serviceName: string,
vdmEntities: VdmEntity[]
): VdmEntity {
return (
getL... |
import { customElement } from '@aurelia/runtime-html';
@customElement({
name: 'fast',
template: `
Fast
`})
export class Fast {
public load(parameters, instruction, navigation) {
console.log('Fast load:', parameters, instruction, navigation);
}
// public detaching() {
// return new Promise(r => setTim... |
import * as React from "react";
type EventListenable = {
addEventListener: any;
removeEventListener: any;
};
export default function useEvent<T extends EventListener>(
element: EventListenable | EventListenable[] | null,
event: string | string[],
callback: T,
enabled = true,
capture = false
) {
return... |
// tslint:disable:no-unused-expression
import * as yup from 'yup';
import { expect } from 'chai';
import 'mocha';
import 'reflect-metadata';
import {
ConvectorController,
Controller,
Invokable
} from '@worldsibu/convector-core-controller';
import { ClientFactory } from '../src/controller-client';
import { Contr... |
import { Counter } from './counter';
import { range } from '../iterators/range';
describe('Counter', () => {
it('should count from strings', () => {
const counter = new Counter(['a', 'a', 'b']);
expect(counter.size).toBe(2);
expect(counter.get('a')).toBe(2);
expect(counter.get('b')).toBe(1);
});
... |
/**
* Copyright 2017 Google Inc. 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 applic... |
import { Skeleton } from "antd";
import React from "react";
interface ListItemProps {
className?: string;
children?: React.ReactNode;
title: string;
content: React.ReactNode;
loading: boolean;
}
function ListItem({ className = '', children, title, content, loading }: ListItemProps): React.ReactElement {
r... |
import {Injectable} from 'angular2/di';
import {Request} from 'angular2/src/http/static_request';
import {Response} from 'angular2/src/http/static_response';
import {ReadyStates} from 'angular2/src/http/enums';
import {Connection, ConnectionBackend} from 'angular2/src/http/interfaces';
import {ObservableWrapper, EventE... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as path from 'path'
import { Command } from './Command'
import { Config } from './Config'
import { Output } from './Output'
import { RunOptions } from './types/common'
import Lock from './Plugin/Lock'
import { Dispatcher } from './Dispatcher/Dispatcher'
import { NotFound } from './NotFound'
import fs from './f... |
/* Tslint:disable */
/* eslint-disable */
// ######################################## THIS FILE WAS GENERATED BY MONGOOSE-TSGEN ######################################## //
// NOTE: ANY CHANGES MADE WILL BE OVERWRITTEN ON SUBSEQUENT EXECUTIONS OF MONGOOSE-TSGEN.
import mongoose from 'mongoose'
/**
* Lean version of... |
import { EntityRepository, Repository } from 'typeorm';
import { Products } from './products_entity';
import { ProductsDto } from './dto/products_dto';
import { InternalServerErrorException , UploadedFile} from '@nestjs/common';
@EntityRepository(Products)
export class ProductRepository extends Repository<Products> {... |
import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from "react-redux"
import {enableAllPlugins} from "immer"
import store from "./store"
import './index.css'
import App from './App'
import reportWebVitals from './reportWebVitals'
enableAllPlugins() // enable full immer functionality
ReactDOM... |
import { NgModule } from '@angular/core';
import { Top20NgxdBenchmarkModule } from './ngxd-20/ngxd-20.module';
@NgModule({
exports: [
Top20NgxdBenchmarkModule,
// Top100NgxdBenchmarkModule
// Top1000NgxdBenchmarkModule
],
})
export class NgxdBenchmarkModule {} |
export const Styles = {
OuterContainer: (): Partial<VCSSStyleDeclaration> => ({
width: "100%",
height: "50%",
flowChildren: "down",
marginTop: "7.5px",
marginRight: "7.5px",
marginBottom: "7.5px",
marginLeft: "5px",
borderRadius: "5px",
border: "1px solid rgba(0, 0, 0, 0.5)",
... |
export class Singleton {
public static sharedInstance(): Singleton {
if (!this._instance) {
this._instance = new Singleton();
}
return this._instance;
}
private static _instance: Singleton;
private constructor() {
console.log("インスタンスを生成しました。");
}
} |
import qs from 'qs';
import { IssueState } from '../../inspectors';
import { PullRequestState } from '../../inspectors/ICollaborationInspector';
import { BitbucketIssueState, BitbucketPullRequestState } from '../bitbucket/IBitbucketService';
import { GitLabIssueState, GitLabPullRequestState } from '../gitlab/IGitLabSer... |
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 { URLSearchParams } from 'url';
import { Request, SetDefOptions } from './request.js';
import type { RequestOptions } from './request';
import type * as helpers from './helpers';
import type * as types from './types';
export const setDefaultRequestOptions = SetDefOptions;
const
Path = (...paths: string[]) ... |
"use strict";
import { Document, model, Schema } from "mongoose";
// tslint:disable-next-line: no-implicit-dependencies
// tslint:disable-next-line: no-var-requires
import MongooseIdValidator from "mongoose-id-validator";
import { OmitOverride } from "../baseInterfaces";
import { accessibleRecordsPlugin } from "@casl/m... |
import * as React from 'react';
function IconArrowLeftSizeM(props: React.SVGProps<SVGSVGElement>) {
return (
<svg viewBox="0 0 24 24" fill="currentColor" {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z" />
</svg>
);
}
export default IconArrowLeftSizeM; |
import { Component, OnInit } from '@angular/core';
import { Settings } from "../../models/Settings";
import { Router } from '@angular/router';
import { FlashMessagesService } from 'angular2-flash-messages';
import { SettingsService } from '../../services/settings.service';
@Component({
selector: 'app-settings',
te... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-... |
export { default as Select } from './Select'
export { default as SelectIcon } from './SelectIcon'
export { default as Option } from './Option'
export * from './types' |
import { ObjectType, Field } from "@nestjs/graphql"
import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, OneToMany } from "typeorm"
import { PokemonEntity } from "pokemon/pokemon.entity"
@ObjectType()
@Entity("user")
export class UserEntity extends BaseEntity {
@PrimaryGeneratedColumn("uuid")
@Field(()... |
import { Cell } from '../grid/Cell'
import { BaseModal } from './BaseModal'
type Props = {
isOpen: boolean
handleClose: () => void
}
const softerBlueGrey = '#455469'
export const InfoModal = ({ isOpen, handleClose }: Props) => {
const absentBorderColor = { borderColor: softerBlueGrey }
return (
<BaseModa... |
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { RefundSearchResult } from '@vality/swag-anapi-v2';
@Component({
selector: 'dsh-refunds-list',
templateUrl: 'refunds-list.component.html',
})
export class RefundsListComponent {
@Input() refunds: RefundSearchResult[];
@Inpu... |
import * as React from "react";
import { IEmojiProps } from "../../styled";
const SvgPerson101 = (props: IEmojiProps) => (
<svg viewBox="0 0 72 72" width="1em" height="1em" {...props}>
<path
fill="#E27022"
d="M18.2 47.3c1.1 1 2.3 1.9 3.6 2.7 1.6-1.2 3.4-1.9 5.4-2.1 6.2 5 12.5 5 18.7 0 1.5.1 3 .6 4.2 ... |
/**
* @license
* Copyright 2017 Google 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 ... |
import { GetServerSideProps } from "next";
import React, { FunctionComponent } from "react";
import { Button } from "../../../components/Button";
import { CountrySelect } from "../../../components/domain/formElements/CountrySelect";
import { FormErrorSummary } from "../../../components/ErrorSummary";
import {
Form,
... |
import { Component, DoCheck, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { JwtHelperService } from '@auth0/angular-jwt';
import { AuthService } from '../core/auth.service';
import { LoggedUserModel } from '../models/users/loggedUserModel';
import { animations } from '../shared/anima... |
import { ActionGroup } from "./ActionGroup";
import { Action, Reducer } from "redux";
import { defineActionCore, ActionCreatorFn } from "./defineAction";
import { validateActionType, composeActionType, isSubType } from "./actionTypeUtils";
import { StateHash, hashedReducer, indexedReducer } from "../reducer-utils";
e... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
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, modi... |
import {
CancellationToken,
commands,
ConfigurationChangeEvent,
Disposable,
ProgressLocation,
TreeItem,
TreeItemCollapsibleState,
window,
} from 'vscode';
import { CommitsViewConfig, configuration, ViewFilesLayout, ViewShowBranchComparison } from '../configuration';
import { Commands, ContextKeys, GlyphChars } ... |
import { setBoxBySquareCoordinates } from "../../src/functions/box";
test('testBoxBySquareCoordinates returns correct box location', () => {
for (let rowIndex = 0; rowIndex < 9; rowIndex++) {
for (let columnIndex = 0; columnIndex < 9; columnIndex++) {
expect(setBoxBySquareCoordinates(rowIndex, columnIndex)... |
import md2c from 'md2c';
import request from 'request';
import Turndown from 'turndown';
import clipboard from 'clipboardy';
import config from './config';
// 不转义代码中的某些字符
// @ts-ignore
Turndown.prototype.escape = (text: string): string => text;
const turndown = new Turndown();
turndown.addRule('pre', {
filter: ['... |
import { NgModule } from '@angular/core';
import { NbMenuModule } from '@nebular/theme';
import { ThemeModule } from '../@theme/theme.module';
import { PagesComponent } from './pages.component';
import { DashboardModule } from './dashboard/dashboard.module';
import { ECommerceModule } from './e-commerce/e-commerce.modu... |
import { Module } from '@nestjs/common';
import { MetricsController } from './metrics.controller';
import { MetricsService } from './metrics.service';
import { PrometheusModule } from '@/providers/prometheus/prometheus.module';
@Module({
imports: [PrometheusModule],
providers: [MetricsService],
controllers: [M... |
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WikiPage } from './wiki.page';
describe('WikiPage', () => {
let component: WikiPage;
let fixture: ComponentFixture<WikiPage>;
beforeEach(async(() => {
TestBed.configure... |
export const CELL_SIZE = 40
export const MISTAKES_ALLOWED = 3
export const MAX_EMPTY_CELLS = 42 |
import { IUserRepository } from "./UserRepository";
import { User } from "../models/entities/User";
import { getRepository } from 'typeorm';
import { Request } from 'express';
import { IUser } from '../models/User';
import APIError from '../global/response/apierror';
import Err from '../global/response/errorcode';
exp... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@spartacus/core';
import { OrderConfirmationModule } from '../../../checkout/index';
import { PageLayoutModule } from '../../../cms/index';
impor... |
export default function parseLocale(...candidates: string[] | undefined[]) {
// eslint-disable-next-line no-restricted-syntax
for (const candidate of candidates) {
if (candidate != null) {
const matches = candidate.match(/(^|[\W_])([a-z]{2}[-_][A-Z]{2})($|[\W_])/);
if (matches) {
return mat... |
import { IMatchingCriterions } from '@gauzy/models';
import { ICommand } from '@nestjs/cqrs';
export class SaveEmployeeCriterionCommand implements ICommand {
static readonly type = '[EmployeeCriterion] Create';
constructor(public readonly input?: IMatchingCriterions) {}
} |
import * as React from 'react';
import { connect } from 'react-redux';
import { withRouter, RouteComponentProps, Link } from 'react-router-dom';
import '../styles/Header.css';
// tslint:disable-next-line:no-any
export interface HeaderProps extends RouteComponentProps<any> {
}
class Header extends React.Component<Head... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-flow-layout',
template: '<router-outlet></router-outlet>'
})
export class FlowLayoutComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { TestBed } from '@angular/core/testing';
import { RememberedGuard } from './remembered.guard';
import {HttpClientTestingModule} from "@angular/common/http/testing";
import {AuthService} from "../_Services/auth.service";
import {AlertService} from "../_Services/alert.service";
import {Router} from "@angular/rou... |
import { useParams, useHistory } from 'react-router-dom'
import deleteImg from '../assets/images/delete.svg'
import checkImg from '../assets/images/check.svg'
import answerImg from '../assets/images/answer.svg'
import { Header } from '../components/Header'
import { Question } from '../components/Question';
import { use... |
import { Injectable } from '@angular/core';
import Config from '../../env.js'
@Injectable({
providedIn: 'root'
})
export class RegisterService {
registerUserSuccess : boolean = false;
registerInstitutionSuccess : boolean = false;
registerCaSuccess : boolean = false;
constructor() { }
async registerUser(... |
type Env = 'development' | 'production' | 'prerelease';
const env = process.env.NODE_ENV as Env;
const publicPath = process.env.publicPath || '/';
const version = process.env.version;
const outputDir = process.env.outputDir;
const addVersion = process.env.addVersion;
const svgRootPath = publicPath + `svg/sprite${addVe... |
import { graphqlAzureFunction } from './main';
import { auth0AuthenticationHook } from '../lib/auth';
import { wrapper } from '../lib/utils';
// export default auth0AuthenticationHook(graphqlAzureFunction);
export default auth0AuthenticationHook(graphqlAzureFunction); |
import React from "react";
import { useState } from "react";
import * as S from "./styles";
import searchIcon from "../../assets/seachicon.png";
import { useNavigation } from "@react-navigation/native";
export function Input() {
const [value, setValue] = useState("");
const navigation = useNavigation();
funct... |
import { Component, OnInit, Input } from '@angular/core';
import { WallpaperState } from 'src/app/shared/models/wallpaper/wallpaper-state';
@Component({
selector: 'app-wallpaper-transition',
templateUrl: './wallpaper-transition.component.html',
styleUrls: ['./wallpaper-transition.component.scss']
})
export class... |
import React, { FC } from 'react';
import type { AppProps } from 'next/app';
import { ChakraProvider } from '@chakra-ui/react';
import { NextSeo } from 'next-seo';
import 'mapbox-gl/dist/mapbox-gl.css';
const App: FC<AppProps> = ({ Component, pageProps }: AppProps) => {
return (
<>
<NextSeo
title=... |
declare const _exports: typeof Connection;
export = _exports;
/**
* An implementation of the js-libp2p connection.
* Any libp2p transport should use an upgrader to return this connection.
*/
declare class Connection {
/**
* Creates an instance of Connection.
* @param {object} properties properties of t... |
import { IHttpClientImplementation } from '../ApiService';
import { ExpectedRequest, IExpectBuilder } from './expectedRequest';
import { flushAngularJS, IDeferred, tick, UrlArg, Verb } from './mockHttpUtils';
import { ReceivedRequest } from './receivedRequest';
interface IRequest {
verb: Verb;
url: string;
param... |
import NodeEnvironment from "jest-environment-node";
import { Config } from "@jest/types";
import setup from "./setup";
import { start, stop } from "./db";
export default class DynaliteEnvironment extends NodeEnvironment {
constructor(projectConfig: Config.ProjectConfig) {
// The config directory is based on the... |
import React from 'react';
import { render, screen, userEvent, waitFor } from '../../test/test-utils';
import { SignInForm } from './SignInForm';
const handleSubmit = jest.fn();
beforeEach(() => {
jest.resetAllMocks();
});
describe('<SignInForm />', () => {
test('displays validation error if email is not entered... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { RecipeComponent } from './recipe/recipe.component';
import { NotesComponent } from './notes/notes.compon... |
import dotenv from 'cubejs-dotenv';
import CubeCore, {
CreateOptions as CoreCreateOptions,
CubejsServerCore,
DatabaseType,
} from '@cubejs-backend/server-core';
import { getEnv, withTimeout } from '@cubejs-backend/shared';
import express from 'express';
import https from 'https';
import http from 'http';
import ... |
import { Component, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'ag-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
// We're using some globals in example so don't apply encapsulation
encapsulation: ViewEncapsulation.None,
})
export class AppComponent {
t... |
/*
* Copyright 2021 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
import * as React from 'react';
import {BrowserRouter as Router} from 'react-router-dom';
import {TodoContainer} from './todos';
class AppComponent extends React.Component<{}> {
public render() {
return (
<Router>
<div className="container">
<h1>React Redux... |
import { Injectable, UnauthorizedException } from "@nestjs/common";
import { PassportStrategy } from "@nestjs/passport";
import { Strategy } from "passport-local";
import { AuthService } from "./auth.service";
@Injectable()
export class LocalStrategy extends PassportStrategy(Strategy) {
constructor(private authServi... |
/**
@module @ember/component
*/
import { environment } from 'ember-environment';
import { computed } from 'ember-metal';
import { TextSupport } from 'ember-views';
import Component from '../component';
import layout from '../templates/empty';
const inputTypes = Object.create(null);
function canSetTypeOfInput(type: str... |
import { createContext, useEffect, useState } from "react"
//type Tema = 'dark' | ''
interface AppContextProps{
tema?: string
alternarTema?:()=> void
}
const AppContext = createContext<AppContextProps>({
tema:null,
alternarTema:null
})
export function AppProvider(props){
const [tema,setTema] =... |
// Copyright 2015-2021 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
import { NbMenuItem } from '@nebular/theme';
export const MENU_ITEMS: NbMenuItem[] = [
{
title: 'IoT Dashboard',
icon: 'nb-home',
link: '/pages/dashboard',
home: true,
},
/* {
title: 'IoT Dashboard',
icon: 'nb-home',
link: '/pages/iot-dashboard',
},*/
{
title: 'CÔMODOS',
... |
export const getCurrentYear = () => new Date().getFullYear(); |
import {
getAuthor,
getCategory,
getDate,
getTag,
} from "@mr-hope/vuepress-shared/lib/client";
import { usePageData, usePageFrontmatter, usePageLang } from "@vuepress/client";
import { computed, inject, reactive } from "vue";
import { usePure, useThemeData, useThemeLocaleData } from "./themeData";
import type... |
import { ITicket } from './../../../core/models/ticket.interface';
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-tickets',
templateUrl: './tickets.component.html',
styleUrls: ['./tickets.component.scss']
})
export class TicketsComponent implements OnInit {
@Input() tick... |
import { Metrics } from './metrics.interface';
import { Statistic } from './statistic.interface';
export interface GraphqlPaginatedResult<T = any> {
data: {
[datasetName: string]: {
/** result set of data objects (array of data) */
nodes: T[];
/** Total count of items in the table (needed for ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { MatCard, MatCardContent, MatCardHeader } from '@angular/material/card';
import { MatCheckbox } from '@angular/material/checkbox';
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.