text
stringlengths
10
953k
import { chunk, sortBy } from 'lodash'; import { getRandomOneOrZero } from './utils'; export interface Player { name: string; combinedName: string; count: number; rentCount: number; comment: string; level: number; isQuestionable: boolean; isCompanion: boolean; } export type Teams = [Player[], Player[...
// THIS CODE WAS AUTOMATICALLY GENERATED // DO NOT EDIT THIS CODE BY HAND // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es202...
import React, { FC, Fragment } from "react"; import { Divider } from "@react-md/divider"; import { Text } from "@react-md/typography"; import Code from "components/Code/Code"; import StaticPageTransition from "./StaticPageTransition"; import AsyncPageTransitions from "./AsyncPageTransitions"; const CrossFadeExamples...
export class CreateWorkerResponse { success: Boolean; }
import request, { RequestPromiseOptions } from "request-promise-native"; import { Cluster } from "../cluster"; export type ClusterDetectionResult = { value: string | number | boolean accuracy: number }; export class BaseClusterDetector { cluster: Cluster; key: string; constructor(cluster: Cluster) { th...
// Copyright 2014 Evan Wallace // Copyright 2018 the Deno authors. All rights reserved. MIT license. // Originated from source-map-support but has been heavily modified for deno. import { SourceMapConsumer, MappedPosition } from "source-map"; import * as base64 from "base64-js"; import { arrayToStr } from "./util"; im...
import { expect } from 'chai'; import { ruleName } from '../src/ionFabButtonIsNowAnElementRule'; import { assertAnnotated, assertSuccess, assertFailure } from './testHelper'; import { Replacement, Utils } from 'tslint'; describe(ruleName, () => { describe('success', () => { it('should not trigger for parent ion-...
import * as React from 'react'; import './EditorHelpers.css'; import { TextField } from '@rmwc/textfield'; interface IProps { value: string, onChange: (s: string) => void, error?: string, label: string, autoComplete?: string, required?: boolean } export const NumberField: React.SFC<IProps> = ...
import AWS from 'aws-sdk'; import fs from 'fs'; import crypto from 'crypto'; import { AwsS3manager } from './aws.file.upload.service'; import { autoInjectable } from 'tsyringe'; @autoInjectable() export class AWSPolly { constructor(private awsS3manager?: AwsS3manager) {} async texttoSpeech(text) { re...
/******************************************************************************** * Copyright (C) 2017 Ericsson and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * T...
import { Component, Input, OnInit, OnChanges, SimpleChanges } from '@angular/core'; import { TiTableSrcData, TiTableRowData, TiTableColumns } from '@cloud/tiny3'; import { I18nService } from 'projects/sys/src-ide/app/service/i18n.service'; import { FuncReleaseInfo } from '../../doman'; @Component({ selector: 'app-me...
import { Component, ComponentTypes, SelectMenuComponentOption } from "../../internal"; export default function componentsToJSON(components: Component[]): object { // Return return components.map((c: Component) => { // Parse action row component if (c.type === ComponentTypes.ACTION_ROW) return...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { EcomainComponent } from './ecomain.component'; describe('EcomainComponent', () => { let component: EcomainComponent; let fixture: ComponentFixture<EcomainComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ ...
import { NoomiTransaction } from "./noomitransaction"; /** * typeorm 事务类 */ class TypeormTransaction extends NoomiTransaction{ /** * entity manager */ manager:any; /** * 事务开始 */ async begin(){} /** * 事务提交 */ async commit(){} /** * 事务回滚 */ ...
/** * Copyright (c) 2020-present, Goldman Sachs * * 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 l...
import * as vscode from 'vscode' import { v1 as uuid } from 'uuid' import { ViewEngine as QueryViewEngine, Queries, APIRequest } from '../Query' import { INode } from './INode' import { Status } from './Status' import { ConnectionNode, InfluxDBConnectionsKey } from './ConnectionNode' import { ConnectionView } from './...
import { ElegibilidadController } from './elegibilidad.controller'; import { Module } from '@nestjs/common'; import { AuthModule } from 'src/services/auth/auth.module'; import { LoggerModule } from 'src/services/logger/logger.module'; import { AtributosEstaticosModule } from 'src/services/atributos-estaticos/atributos-...
import * as React from 'react'; import { mount } from 'enzyme'; import _ from 'lodash'; import { Link, MemoryRouter } from 'react-router-dom'; import { ModuleWithColor } from 'types/views'; import mockModules from '__mocks__/modules'; /** @vars {Module} */ import GER1000 from '__mocks__/modules/GER1000.json'; import {...
import type { AstNode } from '../node' import type { Range } from '../source' export interface SequenceNode<CN extends AstNode = AstNode> extends AstNode { /** * An array of `AstNode`s that fully make up this node. */ children: CN[], } /** * A utility object for temporarily storing a sequence rule. * * @tem...
import { PanelWidgetModel } from "../../model"; import { OrientationModel } from "../../model/orientation.model"; import { HostItemModel } from "../../model/host.model"; export const richTextWidget = new PanelWidgetModel(<HostItemModel>{ type: "richtext", name: "富文本", component: "RichTextViewComponent", ...
import "tailwindcss/tailwind.css"; import { SeoRoot, AnalyticsRoot } from "@sentrei/roots"; import { ThemeProvider } from "next-themes"; import type { AppProps } from "next/app"; import type { FC } from "react"; import { RecoilRoot } from "recoil"; const AppRoot: FC<AppProps> = ({ Component, pageProps }) => { return...
import {expect} from 'chai'; // You can import and use all API from the 'vscode' module // as well as import your extension to test it import * as vscode from 'vscode'; // import * as myExtension from '../../extension'; suite('Extension Test Suite', () => { vscode.window.showInformationMessage('Start all tests.'); ...
import firebase from "firebase"; import "firebase/storage"; // For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { apiKey: "AIzaSyDn4woNEW0TacYXYlXJWHj4Un6NPP8rYlc", authDomain: "slack-clone-d572b.firebaseapp.com", projectId: "slack-clone-d572b", storageBucket: "slack-clon...
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { ListThingTypesRequest, ListThingTypesResponse } from "../models/models_1"; import { deserializeAws_restJson1ListThingTypesCommand, serializeAws_restJson1ListThingTypesCommand, } from "../protocols/Aws_restJson1";...
import { Component, Host, Event, EventEmitter, h } from '@stencil/core'; @Component({ tag: 'soci-modal-footer', }) export class SociModalFooter { @Event({ eventName: 'modalClosed', }) modalClosed : EventEmitter; render() { return ( <Host class="flex justify-between items-center p-[16px] bg-[#F6F...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Submission } from './entities/submission.entity'; import { DataService } from 'apps/api/src/core/models/data-provider.model'; import { PinoLogger } from 'nestjs-pino'; @Inject...
import { customElement, html, LitElement, property, query, unsafeCSS } from 'lit-element'; // web components used in the view import '@vaadin/vaadin-board/vaadin-board'; import '@vaadin/vaadin-charts/vaadin-chart'; import '@vaadin/vaadin-grid/theme/lumo/vaadin-grid'; import '@vaadin/vaadin-lumo-styles/all-imports'; /...
import { Module, RequestMethod } from "@nestjs/common"; import { MiddlewareConsumer } from "@nestjs/common/interfaces/middleware"; import { DatabaseModule } from "../database/database.module"; import { usersProvider } from "./user.provider"; import { UserService } from "./user.service"; @Module({ controllers: [], ...
import { PrecisionSpec } from 'Typing' import filter from '../filter' import * as math from '../math' export const PRECISION: PrecisionSpec = [6, .25] interface KeywordMatch { index: number, score: number, } // reduce jitter in total (was: `summed / 4`) // @ts-ignore TS2556 const fix = math.fix(...PRECISION) /*...
import {Decimal} from 'decimal.js'; export enum ResultState { NONE = 'NONE', REGULAR = 'REGULAR', NOLIFT = 'NOLIFT', } export interface CashFlowEntry { amount: Decimal; count: Decimal; flowNumber: number; } export interface ProgramWord { arg1: number; arg2?: number; arg3?: number; } export interface...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ // The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`...
import path from 'path'; export const shimSrcPath = path.resolve(`${__dirname}/../resources/localinvoke`); export const shimBinaryName = 'InvocationShim.dll'; export const shimBinPath = path.join(shimSrcPath, 'bin'); export const shimExecutablePath = path.join(shimBinPath, shimBinaryName); export const currentSupporte...
// deno-lint-ignore-file // Decorators import { Middleware as MiddlewareHandler, MiddlewareFunction as MiddlewareFunctionDefinition, MiddlewareType as MiddlewareTypeDefinition, } from "./src/http/middleware.ts"; // Dictionaries import * as log_levels from "./src/dictionaries/log_levels.ts"; import { mime_db } f...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatButtonModule } from '@angular/material/button'; import { MatCheckboxModule } fr...
/* * Copyright 2020 znai maintainers * Copyright 2019 TWO SIGMA OPEN SOURCE, 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 * * U...
import { BusinessJobApplication } from 'instinct-rp-interfaces'; export interface ViewApplicationState { application?: BusinessJobApplication; showSpinner: boolean; } export const defaultViewApplicationState: ViewApplicationState = { application: undefined, showSpinner: true, };
// polyfill only stable ES features: import 'core-js/es/map'; import 'core-js/es/set'; import 'core-js/es/promise'; // polyfill fetch import 'whatwg-fetch'; import 'regenerator-runtime/runtime';
import { Module } from "@nestjs/common"; import { MulterModule } from '@nestjs/platform-express'; import { accessSync, mkdir } from "fs"; import * as moment from 'moment'; import * as multer from 'multer'; import { resolve } from "path"; import * as shortid from 'shortid'; import { promisify } from "util"; import Confi...
import zhHans from './zh-hans' const zhHant: typeof zhHans = { againPressToExit: '再按一次退出程式', loginStatusInvalid: '登入狀態貌似失效了,要前往登入嗎?', newVersionFound: '發現新版本,是否下載?' } export default zhHant
import { TemplateRenderAs } from '@sprucelabs/schema' import { SCHEMA_VERSION_FALLBACK } from '@sprucelabs/spruce-skill-utils' import handlebars from 'handlebars' import { ValueTypes } from '../types/templates.types' /* The type for the value of a field. the special case is if the field is of type schema, then we get ...
/* Copyright 2020-2021 The Matrix.org Foundation C.I.C. 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 t...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'BatalhaNaval'; }
import { StyledIcon, StyledIconProps } from '..'; export declare const ExclamationCircle: StyledIcon<any>; export declare const ExclamationCircleDimensions: { height: any; width: any; }; export { StyledIcon, StyledIconProps };
import { rfc822dateString } from './rfc-822-date.js'; import { getAddressesHeader, encodeIfNeeded } from './header.js'; import type { MailBuildingParams } from './interfaces'; /** * @param {MailBuildingParams} options * @returns {string} */ export function buildHeaders(options: MailBuildingParams): string { // r...
import { useRouter } from 'next/router' import Link from 'next/link' import useTranslation from 'next-translate/useTranslation' import { useTheme } from 'next-themes' import axios from 'axios' import { SocialMediaButton } from '../design/SocialMediaButton' import { Main } from '../design/Main' import { Input } from '....
import { Injectable } from '@angular/core'; import { Hero } from '../classes/hero'; import { HEROES } from '../data/mock-heroes'; import { Headers, Http } from '@angular/http'; import 'rxjs/add/operator/toPromise'; @Injectable( ) export class HeroService { private heroesUrl = 'app/heroes'; // URL ...
/* side-effect import */ import "mod"; import * as all from "mod1"; import Default from 'mod2'; import Def, * as all from "mod3"; import { A, B as C } from "mod4"; import Def, { A as a, B } from "mod5"; import { A, default as DD, B } from "mod6";
import React from "react"; import { useAuth0 } from "@auth0/auth0-react"; import BoyIllustration from "../assets/Ikbal.png"; import Layout from "../components/Layout"; import ProgressiveImage from "react-progressive-graceful-image"; import Blurred from "../assets/blur.png"; const Login: React.FC = () => { const { lo...
import { UserData } from './user.model'; import { TravelTicketData } from './travel.model'; export interface Ticket { amount_paid?: number; birth_date?: string, phone: string firstName: string; lastName: string; email: string; travel: number; user: number; suppliesId: TicketSupplies...
export function toInterface (variable) { var interfaceNames = ['IUnknown']; var extra_interface = ''; var interface = generateInterface('IUnknown', variable, ''); return (interface + '\n/* 自动生成的 Interface */\n' + extra_interface).trim(); } function formatKey (key) { if (!/^[a-z][a-z\d]*$/i.test(key)) r...
/** * Copyright 2018-present Facebook. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @format */ export default () => { const serverPortString = process.env.ANDROID_ADB_SERVER_PORT; let port = 5037; if (serverPortString) { co...
import { configFactory, toArray, toBoolean, toPem, toString } from '../config' const anonymizerConfig = { baseUrl: toString(), internalDomainList: toArray(), anonymizeExternalEmailDomain: toBoolean(true), anonymizeExternalEmailUsername: toBoolean(true), anonymizeInternalEmailDomain: toBoolean(false), anony...
import * as React from 'react'; import Svg, { SvgProps, Circle, Path } from 'react-native-svg'; function CloseStorySvg(props: SvgProps) { return ( <Svg width={34} height={34} viewBox="0 0 34 34" fill="none" {...props}> <Circle cx={16.8} cy={17} r={16.8} fill="#E9EDF4" /> <Path ...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { DashboardComponent } from './dashboard.component'; const routes: Routes = [ { path: '', component: DashboardComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModu...
import { Pref, City } from '@/types/resas' export type GovType = 'prefecture' | 'city' export type StateType = { code: string statField: string routingPath: string prefList: Pref[] cityList: City[] selectedPref?: Pref selectedCity?: City govType: GovType } export type RouteParams = { code: string ...
export class DrumSequencer { tracks: Track[] = [ new Track('snare', 16), new Track('hihat', 16), new Track('kick', 16), new Track('tom', 16), ]; } class Track { instrument: string; beats: Beat[]; constructor(instrument: string, length: number) { this.instrument = instrument; this.bea...
import { isBlank } from './utils'; export interface CSVargs { rows: any[]; keys: string[]; titles: string[]; filename?: string; columnDelimiter?: string; lineDelimiter?: string; } export function downloadCSV(args: CSVargs): void { args.filename = args.filename || 'export.csv'; args.columnDelimiter = a...
import { cacheExchange, Resolver, Cache } from '@urql/exchange-graphcache'; import gql from 'graphql-tag'; import Router from 'next/router'; import { dedupExchange, Exchange, fetchExchange, stringifyVariables, } from 'urql'; import { pipe, tap } from 'wonka'; import { DeletePostMutationVariables, LoginMutat...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Organization } from 'src/organizations/organization.entity'; import { CredentialIssueRequest } from 'src/requests/credential-issue-request.entity'; import { CredentialVerifyRequest } from 'src/requests/credential-verify-request.entity'; /** * Interface describing a Connector that can be used by the SSI-servi...
import Application from "dummy/app"; import config from "dummy/config/environment"; import { setApplication } from "@ember/test-helpers"; import { start } from "ember-qunit"; import * as QUnit from 'qunit'; import { setup } from "qunit-dom"; setup(QUnit.assert); setApplication(Application.create(config.APP)); start(...
export function Get(slug: string): Function { return function child<T extends { new(...args: any[]): {} }>(constructor: T) { return class extends constructor { Kind: string = "GET"; Slug: string = slug; }; } } export function Post(slug: string): Function { retur...
/** * TypeScript version of Axios mock for unit testing with [Jest](https://facebook.github.io/jest/). * This file is based on https://gist.github.com/tux4/36006a1859323f779ab0 * * @author knee-cola <nikola.derezic@gmail.com> * @license @license MIT License, http://www.opensource.org/licenses/MIT */ import { ...
import React from 'react'; import { Crop } from './component/Crop'; import './App.scss'; const App: React.FC = () => { return ( <div className="App"> <Crop></Crop> </div> ); }; export default App;
import { Schema, model, Document } from "mongoose"; export interface ILevels extends Document { userID: string; guildID: string; xp: number; level: number; lastUpdated: Date; } const LevelSchema = new Schema({ userID: { type: String }, guildID: { type: String }, xp: { type: Number, def...
export const makeObj = <T>( keys: readonly string[], defaultValue: T = null as any ) => Object.fromEntries(keys.map((key) => [key, defaultValue]))
import Logger from '../Logger'; import Setting from '../models/Setting'; import shim from '../shim'; import { basename, toSystemSlashes } from '../path-utils'; import time from '../time'; import { NoteEntity } from './database/types'; import Note from '../models/Note'; import { openFileWithExternalEditor } from './Exte...
import { record } from "@azure/test-utils-recorder"; import * as assert from "assert"; import * as dotenv from "dotenv"; import { DataLakeFileClient, DataLakeFileSystemClient, PathAccessControlItem, DataLakeServiceClient } from "../../src"; import { PathPermissions } from "../../src/models"; import { getDataLa...
import { combineReducers } from 'redux'; import * as SearchTeaBags from '../reducers/tea/search'; import * as Teabag from '../reducers/tea/bag'; import * as Brand from '../reducers/tea/brand'; import * as Bagtype from '../reducers/tea/bagtype'; import * as Country from '../reducers/country'; import * as TeaDashboard fr...
// Copyright (c) 2021, Compiler Explorer Authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // thi...
import { URL } from "url"; import * as clc from "cli-color"; import * as fs from "fs"; import { Client } from "../apiv2"; import { Command } from "../command"; import { Emulators } from "../emulator/types"; import { FirebaseError } from "../error"; import { populateInstanceDetails } from "../management/database"; impo...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import {NextFunction, Request, Response} from 'express' import {Status} from '../../utils/interfaces/status' import {Profile} from '../../utils/interfaces/profile' import {updateProfile} from '../../utils/profile/updateProfile' import {deleteProfile} from '../../utils/profile/deleteProfile' import {selectProfileByProfi...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { NbMediaBreakpointsService, NbMenuService, NbSidebarService, NbThemeService } from '@nebular/theme'; import { NbAuthService, NbAuthOAuth2JWTToken, NbAuthResult } from '@nebular/auth'; import { UserData } from '../../../@core/data/users'; impor...
/** * @license * * Use of this source code is governed by an MIT-style license */ import { SqlNode } from '../query/sql-node'; export declare type PostgresColumnDefineAttributes = { deferrable?: boolean; initiallyImmediate?: boolean; isGeometry?: boolean; projection?: boolean; }; export declare type...
import React, { ReactNode, useState } from 'react'; import { Link } from 'gatsby'; // @ts-ignore import * as styles from '../../styles/Navbar.module.css'; // @ts-ignore import * as dashboardStyles from '../../styles/Dashboard.module.css'; interface Props { url: string; text: string; children?: ReactNode; class...
/* eslint-disable prettier/prettier */ import { Module } from '@nestjs/common'; import { AboutService } from './about.service'; import { AboutController } from './about.controller'; import { MongooseModule } from '@nestjs/mongoose'; import { About, AboutSchema } from './schemas/about.schema'; @Module({ providers: [A...
import TestBase from "../../TestBase"; export default class extends TestBase { getDescription() { return '"split" filter'; } getTemplates() { return { 'index.twig': ` {{ "é"|split('', 10)|join('-') }} {{ foo|split(',')|join('-') }} {{ foo|split(',', 1)|join('-') }} {{ foo|split...
import sourcegraph from 'sourcegraph'; import escapeRegExp from 'lodash/escapeRegExp'; import { Declaration } from '../types'; import { fetchHighlightedFileLineRanges, searchVariableDefinition } from '../api/search'; import { getNodeRange } from '../utils/get-node-range'; import { resolveRepositoryURI } from '../utils...
import { IColor, IHighlight, IHighlightDefinition } from "../../common/highlight"; import { ISelectionInfo } from "../../common/selection"; import { IReadiumElectronWebviewWindow } from "./state"; export declare const ID_HIGHLIGHTS_CONTAINER = "R2_ID_HIGHLIGHTS_CONTAINER"; export declare const CLASS_HIGHLIGHT_CONTAINER...
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { TicketsService } from './api/tickets.service'; import { TicketsState } from './state/tickets.state'; import { Ticket } from './models/ticket.model'; import { Deployment } from './models/deployment.model'; @Injectable() export clas...
import { Sendable } from '../../models/Sendable'; import { TaskBuilder } from '../../models/TaskBuilder'; import { htmlToElement } from '../../utils/dom'; import { Parser } from '../Parser'; export class ACMPProblemParser extends Parser { public getMatchPatterns(): string[] { return ['http://acmp.ru/*/index.asp*...
import { AppPage } from './app.po'; describe('image-preload App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to app!'); }); });
/* * Copyright 2020 - MATTR Limited * 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 wr...
// *** 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 { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
/** * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge...
import { Column, Entity, JoinColumn, ManyToOne, Unique } from 'typeorm'; import { BaseEntity } from '@/entities/base.entity'; import { Family } from '@/entities/family.entity'; import { Student } from '@/entities/student.entity'; @Entity({ name: 'student_families' }) @Unique(['studentId', 'familyId']) export class Stu...
export * from './DotOverlay';
import { newE2EPage } from '@stencil/core/testing'; test('should properly set readonly on child accordions', async () => { const page = await newE2EPage({ html: ` <ion-accordion-group animated="false"> <ion-accordion> <ion-item slot="header">Label</ion-item> <div slot="content">...
enum State { NOT_STARTED, STARTED, FINISHED, FAILED } export default State
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { IServiceContainer } from '../../../ioc/types'; import { sendTelemetryEvent } from '../../../telemetry'; import { EventName } from '../../../telemetry/constants'; import { DiagnosticScope, IDiagnostic...
import { expect } from "chai"; import * as sinon from "sinon"; import fs, { PathLike } from "fs"; import commander from "commander"; import { cloneDeep } from "lodash"; import { CLIManager, DefaultBenchmarkOptions, OptionsWrapper, DefaultBenchmarkManagerOptions, } from "../../src"; describe("CLIManager", () =>...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {shallow} from 'enzyme'; import {Group} from 'mattermost-redux/types/groups'; import {Channel} from 'mattermost-redux/types/channels'; import {Team} from 'mattermost-redux/...
import _ from 'lodash'; import cx from 'classnames'; import React, { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import queryString from 'query-string'; import { Link } from 'react-router-dom'; import { useQuery, useMutation } from '@apollo/react-hooks'; import { Table, Tag } fro...
export * from './sdk/FirmaSDK'; export * from './sdk/FirmaConfig'; export * from './sdk/FirmaUtil';
export type Registry = 'http://registry.devsapp.cn/simple' | 'https://api.github.com/repos' | 'http://registry.serverlessfans.cn/simple'; export enum RegistryEnum { github = 'https://api.github.com/repos', serverlessOld = 'http://registry.serverlessfans.cn/simple', serverless = 'http://registry.devsapp.cn/simple...
import React, { useState, useCallback } from 'react'; import Expand from 'react-expand-animated'; import { CommandConfig } from '../../types'; import './Command.scss'; interface Props { command: CommandConfig; } const Command: React.FC<Props> = ({ command }) => { const [isOpen, setIsOpen] = useState(false); con...
import * as BABYLON from "babylonjs"; import { GameUtils } from "./game-utils"; export class Game { private canvas: HTMLCanvasElement; private engine: BABYLON.Engine; private scene: BABYLON.Scene; private camera: BABYLON.ArcRotateCamera; private light: BABYLON.Light; constructor(canvasElement...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import {PartialObserver} from './Observer'; import {Operator} from './Operator'; import {Subscriber} from './Subscriber'; import {Subscription} from './Subscription'; import {root} from './util/root'; import {$$observable} from './symbol/observable'; import {toSubscriber} from './util/toSubscriber'; import {IfObservab...