text stringlengths 10 953k |
|---|
/**
* Driver configuration options that affect how TypeORM performs certain actions such as query building.
*/
export interface DriverConfig {
/**
* The escape character for columns and aliases.
*/
escapeCharacter?: string;
/**
* The maximum length that an alias can be (in queries).
*... |
// Copyright (c) 2022 Uber Technologies, 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, modify, merge... |
export interface GameState {
time: number
shoppers: ShopperState[]
frankens: FrankenState[]
money: number
rearInventory: number
frontInventory: number
bodyParts: number
price: number
}
export interface ShopperState {
cash: number
x: number
y: number
}
export interface FrankenState {
intelligen... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, { ChangeEvent, useEffect, useState } from 'react';
import { useAppSelector } from '../../../hooks';
import GradeFormat from '../../../models/grade-format';
import { selectUser, UserState } from '../../../slices/user.slice';
import { getAllGradeFormats, addGradeFormat } from '../../../remote/trms-backend/t... |
import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { Router } from '@angular/router';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { NotificationComponent } from '../notifications/notification.component';
import { Restaurant } from '../_helpers/... |
// Copyright 2021 The Oppia 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 ap... |
/**
* Tests continueAsNew for the same Workflow from main and signal handler
* @module
*/
import { Context, CancellationScope } from '@temporalio/workflow';
import { ContinueAsNewFromMainAndSignal } from '../interfaces';
const signals = {
async continueAsNew(): Promise<void> {
await Context.continueAsNew<type... |
import { Injectable } from '@nestjs/common';
import { Flunt } from 'src/utils/flunt';
import { Contract } from '../contract';
import { CreditCard } from '../../models/credit-card.model';
@Injectable()
export class CreateCreditCardContract implements Contract {
errors: any[];
validate(model: CreditCard): boolean {... |
import { Controller } from 'stimulus'
import { useDispatch, DispatchOptions } from '../use-dispatch/index'
export const useApplication = (controller: Controller, options: DispatchOptions) => {
// getter to detect Turbolink preview
Object.defineProperty(controller, 'isPreview', {
get(): boolean {
return d... |
import type { IConnectLinks } from "../../../Interfaces/Interactivity/Modes/IConnectLinks";
import type { RecursivePartial } from "../../../../Types";
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader";
export declare class ConnectLinks implements IConnectLinks, IOptionLoader<IConnectLinks> {
op... |
export * from './CsvUploader';
export * from './ParseCsv'; |
import type { Constructor, Dictionary } from '../typings';
import { MetadataStorage } from '../metadata';
export function Embeddable(options: EmbeddableOptions = {}) {
return function <T>(target: T & Dictionary) {
const meta = MetadataStorage.getMetadataFromDecorator(target);
meta.class = target as unknown a... |
import { Switch, Route, Redirect } from "react-router-dom";
import Login from "../Auth/Login";
import DashRoutes from "./DashRoutes";
// 来看看路由,首先,react-router-dom 是个非常优秀的路由库
// 为何如此说?
// 我发现社区很多人都在批评 react-router-dom 纯粹使用标签元素来进行路由组织的方案
// 其实这才是更好的方案,更能配合 SOA/DDD 的方案
// 因为在 React 中,注入点是组件,你才能将路由相关逻辑,自由提取,路由/页面本身,也能... |
import {
createLoggingContext,
CrosschainTransaction,
getNtpTimeSeconds,
getUuid,
jsonifyError,
NxtpError,
RequestContext,
SubgraphSyncRecord,
VariantTransactionData,
} from "@connext/nxtp-utils";
import { BigNumber, constants } from "ethers/lib/ethers";
import { getContext } from "../../router";
imp... |
import React from 'react';
import {
setPersonAge,
setPersonFirstName,
setPersonLastName,
useGlobalState,
} from './state';
const Person = () => {
const [{ firstName, lastName, age }] = useGlobalState('person');
return (
<div>
<div>
First Name:
<input
value={firstName}
... |
import { container } from '../../../inversify.config';
import { ILocalUserService } from '../../../interfaces/services/ILocalUserService';
import { TYPES } from '../../../types';
import { UserNotExistsError } from '../../../error/auth/UserNotExistsError';
export async function getUserByMail(obj: any, args: { mail: st... |
import { changeUserPassword } from './changeUserPassword';
export const PasswordModule = {
changeUserPassword
}; |
import { Test, TestingModule } from '@nestjs/testing';
import { getRepositoryToken } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { FindUsersDto } from './dto/find-users.dto';
import { UsersService } from './users.service';
import { User } from './user.entity';
const user = new User();
user.i... |
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { LegalOwnerInfo } from '@dsh/api-codegen/questionary';
@Component({
selector: 'dsh-legal-owner-info',
templateUrl: 'legal-owner-info.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class LegalOwn... |
import { ICarouselResourceStrings } from 'igniteui-angular';
export const CarouselResourceStringsES: ICarouselResourceStrings = {
igx_carousel_of: 'of'
}; |
import { CloudFormationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFormationClient";
import { DeleteChangeSetInput, DeleteChangeSetOutput } from "../models/models_0";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, MiddlewareStack, HttpHandlerOptions as __... |
import { combineLatest } from "../combineLatest";
import { Subject } from "../subject";
import { toArray } from "../toArray";
test("combineLatest", async () => {
const subjects = [
new Subject<number>(),
new Subject<number>(),
new Subject<number>(),
];
const combined = combineLatest(...subjects.map(s... |
import { ApiService } from "../shared";
import { getCurrentPositionAsync } from "../utilities";
const template = require("./splash.component.html");
const styles = require("./splash.component.scss");
export class SplashComponent extends HTMLElement {
constructor(
private _apiService: ApiService = ApiServi... |
/*
* Copyright (c) 2021-2021, by Miłosz Gilga <https://miloszgilga.pl>
*
* 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/license/LICENSE-2.0>
*
* Unless req... |
import { componentOnReady } from '../helpers';
describe('componentOnReady()', () => {
it('should correctly call callback for a custom element', (done) => {
customElements.define('hello-world', class extends HTMLElement {
constructor() {
super();
}
});
const component = document.creat... |
import RunnerOpts from "../../interfaces/runner-opts";
import { ContextSetup } from "../../interfaces/setup";
import MuchiTsTestRunner from "./muchi-ts-test-runner";
import canRunWithin from "../../utils/can-run-within";
import MockRegistry from "../../registries/mock-registry";
import ContextBuilder from "../../utils/... |
import React from 'react';
export interface Context {
total: number;
searchFunction: (char: string) => void;
}
const Totalitems = React.createContext<Context>({total: 0, searchFunction: function () {}});
const ItemProvider = Totalitems.Provider;
const ItemConsumer = Totalitems.Consumer;
export {ItemProvider, I... |
import {
HttpInterceptor,
HttpRequest,
HttpHandler,
HttpErrorResponse
} from "@angular/common/http";
import { catchError } from "rxjs/operators";
import { throwError } from "rxjs";
import { Injectable } from "@angular/core";
import { MatDialog } from "@angular/material";
import { ErrorComponent } from "./error... |
import { Component, OnInit } from '@angular/core';
import { environment } from 'src/environments/environment';
import { AuthService } from './services/api/auth.service';
import { RoomService } from './services/api/room.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: [... |
import React from "react";
import { Meta } from "@storybook/react/types-6-0";
import { UserAvatar } from "./UserAvatar";
export default {
title: "UserAvatar",
component: UserAvatar,
} as Meta;
export const Default = (props: any) => {
return <UserAvatar firstName="John" lastName="Bar" />;
}; |
// Auto-generated via `yarn axia-types-from-defs`, do not edit
/* eslint-disable */
/* eslint-disable sort-keys */
import type { DefinitionsTypes } from '../../types';
export default {
/**
* Lookup66: polkadot_runtime_common::claims::EthereumAddress
**/
PolkadotRuntimeCommonClaimsEthereumAddress: '[u8;20]'... |
const fse = require("fs-extra");
const inquirer = require("inquirer");
export const promptOverwrites = async (
contentCollisions: any,
logger = console
) => {
const overwriteContents = [];
for (const file of contentCollisions) {
logger.log(`${file} already exists in this directory...`);
const overwrit... |
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Inject } from '@angular/core';
import { LY_MEDIA_QUERIES } from '@alyle/ui/responsive';
@Component({
selector: 'responsive-demo-01',
templateUrl: './responsive-demo-01.component.html',
styleUrls: ['./responsive-demo-01.component.css'],
changeDetec... |
import { Controller, Get, Param } from '@nestjs/common';
import { NotificationsService } from '../../services/notifications/notifications.service';
@Controller('api/v1/notifications')
export class NotificationsController {
constructor(private readonly notificationsService: NotificationsService) {}
@Get()
... |
import React, { FC } from "react";
import { css } from "emotion";
import FooterButtons, { IFooterButtonOptions } from "../../src/component/footer-buttons";
import { DocDemo, DocSnippet, DocBlock } from "@jimengio/doc-frame";
let PageFooterButtons: FC<{}> = React.memo((props) => {
let items: IFooterButtonOptions[] = ... |
import SimplePeer from "simple-peer";
import * as Y from "yjs";
import { mutex } from "lib0";
import { WebsocketClient } from "lib0/websocket";
import { Observable } from "lib0/observable";
export class WebrtcConn {
constructor(signalingConn: SignalingConn, initiator: boolean, remotePeerId: string, room: Room): Webr... |
import { useAuthenticated } from '@contexts/AuthenticationContext';
import RedirectRoute from '@routing/RedirectRoute';
import type { NextPage } from 'next';
import dynamic from 'next/dynamic';
import React from 'react';
const GuildSettingsProvider = dynamic(() => import('@contexts/Settings/GuildSettingsContext'));
co... |
import { Identity } from '../../identity';
import { CausalSet } from './CausalSet';
import { Hash, HashedObject } from '../../model';
import { Authorization, Authorizer } from '../../model/causal/Authorization';
class SingleAuthorCausalSet<T> extends CausalSet<T> {
static className = 'hss/v0/SingleAuthorCausalSe... |
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable no-console, unicorn/no-process-exit */
import fs from 'fs';
import path from 'path';
import { test } from 'uvu';
import * as assert from 'uvu/assert';
import {
mocksSetup, mocksTeardown, setup, teardown,
} from './utils';
// esbuild add... |
import { ReactChildren } from "react"
export type TTokenData = {
exp: number
[x: string]: any
}
export interface IAuthProvider {
authConfig: TAuthConfig,
children: ReactChildren
}
export type TAuthConfig = {
clientId: string
authorizationEndpoint: string
tokenEndpoint: string
redirectUri: string
... |
/**
* Keepa API
* The Keepa API offers numerous endpoints. Every request requires your API access key as a parameter. You can find and change your key in the keepa portal. All requests must be issued as a HTTPS GET and accept gzip encoding. If possible, use a Keep-Alive connection. Multiple requests can be made in ... |
import axios from 'axios';
import { Logger } from '../../src/lib/Logger';
import { BitbucketAPI } from '../../src/bitbucket/BitbucketAPI';
import { MergeOptions } from '../../src/types';
jest.mock('axios');
const mockedAxios = (axios as unknown) as jest.Mocked<typeof axios>;
jest.mock('delay');
jest.mock('../../src/... |
import {CSSParser, Tokens} from "@internal/css-parser/types";
import {CSSCalcSum, CSSMaxFunction, CSSMinFunction} from "@internal/ast";
import {
matchToken,
nextToken,
readToken,
skipWhitespaces,
} from "@internal/css-parser/tokenizer";
import {parseCalcSum} from "@internal/css-parser/parser/calculations";
import {... |
import * as React from "react";
import IconButton from "../shared/icon-button/IconButton";
import Modal from "../shared/modal/Modal";
import { i18n } from "../../Locale";
import ElementManager, { getElementLocales } from "../../ElementManager";
import { IMassCalculatorElement } from "./hooks/useMassCalculator";
interf... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DOLLAROnline</source>
<translation>Over DOLLAROnline</translation>
</message>
<message>
... |
const APP_KEY = '@WonGames'
export function getStorageItem(key: string) {
if (typeof window === 'undefined') return
const data = window.localStorage.getItem(`${APP_KEY}:${key}`)
return JSON.parse(data!)
}
export function setStorageItem(key: string, value: string[]) {
if (typeof window === 'undefined') return... |
import {Component} from '@nestjs/common';
import {DefinitionTypeInterface} from '../type/definition-type.interface';
import {DefinitionRepository} from '../../persistence/repository/definition.repository';
import {DefinitionConfigMapper} from './definition-config-mapper.component';
import {DefinitionInterface} from '..... |
import { Injectable, Logger } from '@nestjs/common';
import { RedisService } from '@liaoliaots/nestjs-redis';
import { Redis } from 'ioredis';
import { State } from 'xstate';
const PREFIX = 'botState';
@Injectable()
export class TrackerService {
private logger = new Logger(TrackerService.name);
private client: Re... |
/// <reference types="node" />
import { Binary } from 'bson';
import { BSONRegExp } from 'bson';
import { BSONSymbol } from 'bson';
import { Code } from 'bson';
import { ConnectionOptions as ConnectionOptions_2 } from 'tls';
import { DBRef } from 'bson';
import { Decimal128 } from 'bson';
import Denque = require('denqu... |
export interface Password {
id: number; // Timestamp
title: string;
username: string;
password: string;
url: string;
note: string;
}
export interface Database {
name: string;
passwords: Array<Password>;
}
export interface DatabaseDescription {
id: string;
title: string;
downloadUrl: string;
}
... |
import { BadRequestException, NotFoundException } from '@nestjs/common';
import { PokemonService } from './pokemon.service';
import { PokemonCreateDto } from './pokemon_create.dto';
import { PokemonUpdateDto } from './pokemon_update.dto';
const mockPokemonRepository = jest.fn().mockImplementation(() => ({
getOneFrom... |
import * as Path from 'path'
import {
enumerateValues,
HKEY,
RegistryValue,
RegistryValueType,
} from 'registry-js'
import { pathExists } from 'fs-extra'
import { IFoundEditor } from './found-editor'
interface IWindowsAppInformation {
displayName: string
publisher: string
installLocation: string
}
typ... |
import { Styles } from 'react-modal';
export interface Theme {
componentsTheme: ThemeProperties;
modalTheme: Styles;
}
export interface ThemeProperties {
background: string;
backgroundERC721: string;
borderColor: string;
boxShadow: string;
buttonBuyBackgroundColor: string;
buttonCollec... |
const colors = {
primary: '#55A38B',
primaryDark: '#00543D',
background: '#FFFFFF',
opaqueBackground: '#FFFFFFb3',
white: '#FFFFFF',
black: '#000000',
text: '#FFFFFF',
textDark: '#444444',
textDisabled: '#AAAAAA',
textError: '#CE1126',
textGreen: '#55A38B',
clickable: '#55A38B',
clickableAc... |
// Adapted from https://doc.babylonjs.com/resources/babylonjs_and_reactjs
import React, { ReactNode, useEffect, useContext, useRef, useState, createContext, ReactElement } from 'react';
import {
Engine,
Scene,
Nullable,
EngineOptions,
SceneOptions,
ArcRotateCamera,
Vector3,
MeshBuilder,
HemisphericLig... |
import React from 'react'
import './Splash.scss'
const Splash: React.FC = () => (
<header id='splash'>
<h1>
Nolan Kovacik
</h1>
<p>
A student at
<a href='https://www.makeschool.com/'>
Make School
</a>
<br />
with a passion for frontend.
</p>
{/* <a href='#nothing'>
More In... |
/*
* 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 fetch from 'cross-fetch'
export default async function abortableFetch(url: string, options = {}) {
return Promise.race([fetch(url, { ...options }), abort(url)])
}
export async function abort(message: string, milliseconds = 3000) {
return new Promise((_, reject) =>
setTimeout(() => {
reject(new Er... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { GameShellComponent } from './game-shell.component';
const routes: Routes = [
{
path: ':characterid',
component: GameShellComponent,
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [Ro... |
import type { EditionsIssue, IssueVersion } from 'types/Edition';
import type { CAPISearchQueryResponse } from './capiQuery';
import type { EditionsFrontMetadata } from 'types/FaciaApi';
import { Moment } from 'moment';
import pandaFetch from './pandaFetch';
import type { EditionCollectionResponse } from 'types/FaciaAp... |
import { observable, autorun, toJS } from 'mobx'
interface Dictionary<T> {
[Key: string]: T;
}
export enum TaskPriority {
Low = 0,
Medium = 1,
High = 2
}
export type TaskData = {
uid: string
name: string
dueDate: Date
description: string
location?: string
finished: boolean
... |
/*!
* Copyright 2011-2021 Unlok
* https://www.unlok.ca
*
* Credits & Thanks:
* https://www.unlok.ca/credits-thanks/
*
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
* ... |
import { NativeModules } from 'react-native';
import { DateTime } from './DateTime';
type NpmLibraryType = {
multiply(a: number, b: number): Promise<number>;
showToast(message: string): void;
getJsonString(): Promise<string>;
};
const { NpmLibrary } = NativeModules;
export default NpmLibrary as NpmLibraryType;... |
// 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 = {
production: false,
API_BASE_URL: 'http://localhost:3000',
PUBLI... |
import path from 'path'
import webpack from 'webpack'
import { configureNodePolyfills, getPackageVersion } from '@coil/webpack-utils'
const TRANSPILE_ONLY = Boolean(process.env.TS_LOADER_TRANSPILE_ONLY)
const packageJSONPath = path.resolve(__dirname, 'package.json')
const VERSION = getPackageVersion(packageJSONPath)... |
import { Module } from "@nestjs/common";
import { AppController } from "./app.controller";
import { AppService } from "./app.service";
import { UserModule } from "./user/user.module";
@Module({
imports: [UserModule],
controllers: [AppController],
providers: [AppService]
})
export class AppModule {} |
import { FunctionTemplateContributorFactory } from 'amplify-function-plugin-interface';
import { provideHelloWorld } from './providers/helloWorldProvider';
export const functionTemplateContributorFactory: FunctionTemplateContributorFactory = context => {
return {
contribute: request => {
const selection =... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {$, browser, by, element, ExpectedConditions} from 'protractor';
import {verifyNoBrowserErrors} from '../../... |
import { Injectable } from '@angular/core';
import CustomStore from 'devextreme/data/custom_store';
import { AppSettings } from '../app.config';
import { HttpClient } from '@angular/common/http';
/**
* Patients Service
*/
@Injectable()
export class PatientsService {
store: CustomStore;
constructor(private h... |
import { GT } from "../index"
const UserError = new GT.Object({
name: "UserError",
fields: () => ({
message: {
type: GT.NonNull(GT.String),
},
fields: {
type: GT.NonNullList(GT.String),
},
}),
})
export default UserError |
import { CollectionCache, CollectionKey } from "../../../common";
export namespace DiplomaticRelationsAttitudes {
export const KEY = new CollectionKey("diplomatic_relations_attitudes");
export class Entry {
private readonly collectionCache: CollectionCache;
readonly attitude: string;
readonly value:... |
/*
* 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 { FtrProviderContext } from '../../ftr_provider_context';
import { Com... |
import {CommonModule} from '@angular/common';
import {HttpClient} from '@angular/common/http';
import {Component, NgModule} from '@angular/core';
import {MatButtonModule} from '@angular/material/button';
import {MatIconModule} from '@angular/material/icon';
import {MatMenuModule} from '@angular/material/menu';
import {... |
import React, { useState, useEffect } from "react";
import { useWeb3React } from "@web3-react/core";
import { Link, useHistory, useParams } from "react-router-dom";
import { Token } from "@uniswap/sdk-core";
import NewPools from "./NewPools";
import ExistingPools from "./ExistingPools";
import NewPosition from "./NewP... |
class TwoFer {
static twoFer(who:string="") {
// Your code here
if(who === ""){
return `One for you, one for me.`;
}else{
return `One for ${who}, one for me.`;
}
}
}
export default TwoFer |
import Sound from "../types/Sound";
import { useSelector } from "react-redux";
import { getChosenSounds } from "../store/selectors";
export default function useChosenSounds(): Sound[] {
return useSelector(getChosenSounds);
} |
import { FetchFromRegistry } from '@pnpm/fetching-types'
import fetch, { RetryTimeoutOptions } from './fetch'
import createFetchFromRegistry from './fetchFromRegistry'
export default fetch
export { createFetchFromRegistry, FetchFromRegistry, RetryTimeoutOptions } |
import * as url from 'url';
import * as _ from 'lodash';
import { isAbsoluteProtocollessUrl } from './request-utils';
/**
* Normalizes URLs to the form used when matching them.
*
* This accepts URLs in all three formats: relative, absolute, and protocolless-absolute,
* and returns them in the same format but norm... |
import { Component, Input, OnInit } from '@angular/core';
import { FileUploadService } from './file-upload.service';
import { NgModule } from '@angular/core';
import { Photo } from '../services/util/photo';
import {MatFormFieldControl, MatFormFieldModule} from '@angular/material/form-field';
import { PhotoData } from '... |
import React from 'react';
export const StrutAlign: React.FC = ({ children }) => (
<span
style={{
display: 'inline-flex',
alignItems: 'center',
}}
>
{'\u200b' /* ZWSP(zero-width space) */}
{children}
</span>
); |
import { IResponse, IContext } from '../../../types';
export interface IdestroyDropletAndAssociatedResourcesApiRequest {
droplet_id: number;
snapshots: string[];
volume_snapshots: string[];
volumes: string[];
}
export type destroyDropletAndAssociatedResourcesResponse = IResponse<void>;
export const destroyDr... |
import { TestBed } from '@angular/core/testing';
import { TacosService } from './tacos.service';
describe('TacosService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: TacosService = TestBed.get(TacosService);
expect(service).toBeTruthy();
... |
import { Allocation } from '@/api/server/getServer';
import { FractalResponseData } from '@/api/http';
import { FileObject } from '@/api/server/files/loadDirectory';
import { ServerAuditLog, ServerBackup, ServerEggVariable } from '@/api/server/types';
export const rawDataToServerAllocation = (data: FractalResponseData... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import Component from '@glimmer/component';
import { setComponentTemplate } from '@ember/component';
import { click, render, settled } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';
import { setupRenderi... |
import * as React from 'react';
import { Grid } from '../index';
import { create } from 'react-test-renderer';
it('renders correctly', () => {
const grid = create(<Grid blocks={[]} />).toJSON();
expect(grid).toMatchSnapshot();
}); |
/*
* Copyright (C) 2017-2019 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
export * from "./lib/AnimatedExtrusionHandler";
export * from "./lib/CameraMovementDetector";
export * from "./lib/ClipPlanesEvaluator";
export * from "./lib/ColorCache";
... |
import { ILink } from '../../models/Link';
import { LinkRelations } from '../../models/LinkRelations';
import { ITask } from '../../models/Task';
import { ITaskService } from './ITask.service';
export const taskListMock: ITask[] = [
{
projectId: 1,
links: [],
load: 5,
sortOrder: 1,
taskTypeId: 1,... |
import * as path from 'path';
import ReactPP from './utils/utils';
// const path = require('path');
// const {mountToReactRoot, getAllSlowComponentRenders, getTotalCommitCount, scrubCircularReferences} = require('./bundle.puppeteer.js'); // since generated file is in lib folder
async function record(page, url: string,... |
export * from './default.theme'; |
import * as React from 'react';
import { remote, MenuItemConstructorOptions, Menu } from 'electron';
interface Props {
template: MenuItemConstructorOptions[];
}
interface State {
isVisible: boolean;
}
export class ContextMenu extends React.Component<Props, State> {
menu: Menu = null;
constructor(pro... |
import mongoose from "mongoose";
import { EnvironmentConfig } from "./environment.config";
import * as logger from "../services/helper/logger";
export class DatabaseConfig {
private static instance: DatabaseConfig;
public static database: mongoose.Connection;
public static instantiate(): DatabaseConfig {
... |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
/* eslint-disable camelcase */
import { AxiosResponse, AxiosPromise } from 'axios'
export interface IDRFListResponse<T> {
count: number
next: string | null
previous: string | null
results: T[]
}
export interface IDRFRequestListParameters {
page: number
page_size: number
ordering?: string
fields?: stri... |
/*
* @license
* Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
*
* Use of this source code is governed by an Apache-2.0 license that can be
* found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
*/
import { CommonModule } from '@angular/common';
imp... |
import { EventModelApi } from '@alice/alice-common/models/alice-model-engine';
import { Location, SpellTrace } from '@alice/sr2020-common/models/location.model';
import * as uuid from 'uuid';
import { duration } from 'moment';
const MAX_SPELL_TRACES = 100;
export function recordSpellTrace(api: EventModelApi<Location>... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
import { AuthGuard } from './auth/AuthGuard';
import { CreateComponent } from './dashboard/create/create.component';
const routes: Routes = [
{
path: '',
redirectTo: 'question-builder',
pa... |
import "@knitkode/core-media";
import "./index.scss"; |
import { Descriptor } from 'pip-services3-commons-node';
import { Factory } from 'pip-services3-components-node';
export declare class ServiceAgreementsClientFactory extends Factory {
static Descriptor: Descriptor;
static NullClientV1Descriptor: Descriptor;
static DirectClientV1Descriptor: Descriptor;
s... |
import { compose } from '@fluentui/react-bindings';
import { commonPropTypes } from '../../utils';
import Box, { BoxProps, BoxStylesProps } from '../Box/Box';
export interface AttachmentBodyOwnProps {}
export interface AttachmentBodyProps extends AttachmentBodyOwnProps, BoxProps {}
export type AttachmentBodyStylesPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.