text
stringlengths
10
953k
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { Uri } from 'vscode'; import { IPythonExecutionFactory } from '../../client/common/process/types'; import { IServiceContainer } from '../../client/ioc/types'; import { NOSETEST_PROVIDER, PYTEST_PROVIDER, UNITTEST_PR...
export const weatherIcons = { "200": { "label": "thunderstorm with light rain", "icon": "storm-showers" }, "201": { "label": "thunderstorm with rain", "icon": "storm-showers" }, "202": { "label": "thunderstorm with heavy rain", "icon": "storm-showers" },...
import { put, takeLatest } from 'redux-saga/effects' import actions from '../action-types' import { get, getOrElse } from '../api' import { TArtist, TAlbum } from '../store/state' import { getRandomDate, getResume, getRandomCountry } from '../lib/random' type TAlbumLookup = { collectionId: string artworkUrl100...
/* * 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 */ // This is the legacy converted command file. Ignoring code-coverage since this is gener...
import { checkBuildRequestOptions } from "app-builder-lib" import { readAsar } from "app-builder-lib/out/asar/asar" import { doMergeConfigs } from "app-builder-lib/out/util/config" import { walk } from "builder-util/out/fs" import { Arch, createTargets, DIR_TARGET, Platform } from "electron-builder" import { promises a...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="hr"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Ecologicalsquare</source> <translation type="unfin...
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". // //////////////////...
import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core'; import { MaterializeAction } from 'angular2-materialize'; @Component({ selector: 'confirm-dialog', templateUrl: './confirm-dialog.component.html', styleUrls: ['./confirm-dialog.component.css'] }) export class ConfirmDialogComponent i...
import { Action, AnyAction } from 'redux' import {Last, Reverse} from 'typescript-tuple' import { ActionPattern, Effect, Buffer, CombinatorEffect, CombinatorEffectDescriptor, SimpleEffect, END, Pattern, Predicate, Task, StrictEffect, } from '@redux-saga/types' import { FlushableChannel, Puttable...
import * as React from 'react' import SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon'; const Chromatin = (props:SvgIconProps) => { const { fill, style } = props return ( <SvgIcon style={style}> <path d="M11.032 11.1808C12.6971 8.66928 13.4533 6.26769 12.7209 5.81666C11.9885 5.36563 10.045 7.03...
import './services/i18n'; import React from 'react'; import Router from './router'; const App: React.FC = () => { return ( <div className="flex flex-row min-h-screen text-gray-800 bg-gray-100 dark:bg-gray-900 dark:text-white"> <Router /> </div> ); }; export default App;
import {Rule, Tree} from "@angular-devkit/schematics"; import {readIntoSourceFile} from "./find-file"; import {strings} from "@angular-devkit/core"; import {buildRelativePath} from "@schematics/angular/utility/find-module"; import {addImportToModule, insertImport} from "@schematics/angular/utility/ast-utils"; import {a...
export const HOMEPAGE_RADIOGROUP_BUTTON = 'Homepage_RadioGroup_Button'; export const RADIOGROUP_TESTPAGE = 'RadioGroup_TestPage';
// Copyright (C), Siemens AG 2017 import * as chai from "chai"; import { log } from "console"; import * as fs from "fs"; import * as os from "os"; import "url-search-params-polyfill"; import { DataPoint, DataPointValue, DataSourceConfiguration, IMindConnectConfiguration, Mapping, MindConnectAgen...
import React from 'react'; import { TwitterLogoIcon } from '@modulz/radix-icons'; import { Input } from '../Input'; const code = ` <Input variant="headless" placeholder="Add your own styles with styles API" /> `; function Demo() { return ( <Input styles={{ input: { width: '100%' } }} icon={<TwitterL...
interface ITemplateVariables { [key: string]: string; } export default interface IEmailTemplateProviderDTO { file: string; variables: ITemplateVariables; }
export function createId(title: string, existingIds?: string[]): string { let id = stripId(title); if (existingIds) { while (existingIds.indexOf(id) !== -1) { id = nextIdPostfix(id); } } return id; } const ID_STRIP = /[^a-zA-Z0-9\-\_]/g; function stripId(id: string): string { return id.replace(...
import { Routes } from '@angular/router'; import { DashboardComponent } from '../../pages/dashboard/dashboard.component'; import { UserComponent } from '../../pages/user/user.component'; import { TableComponent } from '../../pages/table/table.component'; import { TypographyComponent } from '../../pages/typography/typo...
/* 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 applicable law or agreed to in ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * opens new window via window.open * @param {String} url The URL to be loaded in the newly opened window. * @param {String} windowName A string name for the new window. * @param {String} windowFeatures An optional parameter listing the features (size, position, scrollbars, etc.) of the new win...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'spacey'; }
import Discord from "discord.js"; import {CommandData} from "./../bot.js"; export default { "run": function(client, message) { const embed = new Discord.MessageEmbed(); embed.setColor("RANDOM"); embed.setTitle("Add Me"); embed.setDescription(`https://discordapp.com/oauth2/authorize?client_id=${client...
/** * Copyright 2018 Ambrosus Inc. * Email: tech@ambrosus.com */ /** * Check of location object exists * * @param {any} event * * @returns {boolean} */ const locationExists = (event: any): boolean => { const flag = checkCordinates(event); try { return flag && Array.isArray(event.location.location.geome...
// Dependencies import React, { FC, ComponentPropsWithoutRef, MouseEvent } from 'react' import { cxGenerator, cx } from '@contentpi/lib' // Types import { Color, Shape } from '../../types' // Styles import { Checkbox, CheckboxWrapper, CheckboxChild, CheckboxText, BASE_CLASS_NAME, } from './Checkbox.styled' ...
// Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. import * as fs from "fs"; import * as path from "path"; import execa from "execa"; import * as vscode from "vscode"; import * as lsp from "vscode-languageclient"; import { bundledDtsPath } from "./deno"; export interface DenoVersion { deno...
import { Command, flags, Flags } from 'prisma-cli-engine' import chalk from 'chalk' import { prettyTime } from '../../util' export default class Delete extends Command { static topic = 'delete' static description = 'Delete an existing service' static group = 'db' static flags: Flags = { force: flags.boolea...
import { Color } from './../math/Color'; import { Light } from './Light'; import { PointLightShadow } from './PointLightShadow'; /** * @example * const light = new THREE.PointLight( 0xff0000, 1, 100 ); * light.position.set( 50, 50, 50 ); * scene.add( light ); */ export class PointLight extends Light { construct...
import { generateRootReadmeBadges } from "./generate-root-readme-badges"; import { readReadmeContent } from "./read-readme-content"; import { generateRootReadmePackageTable } from "./generate-root-readme-package-table"; import { generateReadmeFooter } from "./generate-readme-footer"; import { getAllPackages } from "./g...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { MemberExpression, TSInferType, AnyNode, FlowNullableTypeAnnotation, UpdateExpression, ObjectExpression, DoE...
import { graphql, Link } from 'gatsby'; import Img from 'gatsby-image'; import * as _ from 'lodash'; import { setLightness } from 'polished'; import * as React from 'react'; import styled, { css } from 'react-emotion'; import { Helmet } from 'react-helmet'; import AuthorCard from '../components/AuthorCard'; import Foo...
import { Avatar, Card, Dropdown, Icon, Menu } from 'antd'; import Color from 'color'; import React from 'react'; import { Link } from 'react-router-dom'; import { compose, withHandlers } from 'recompose'; import styled from 'styled-components'; import { generateGradient } from '~/lib/colorPalette'; import { routeConst...
import { IConnectionParams } from "./models"; export function onConnectionEventHandler(connObj: IConnectionParams) { connObj.connection.endpoints.forEach(endpoint => { const uuid: string = endpoint.getUuid(); if (!uuid) { return; } if (uuid.indexOf("DottedEndPoint") !== -1) { connObj.conn...
import { Router } from 'express'; import FindCommentsByTicketIdController from '@src/application/controller/comments/FindCommentsByTicketIdController'; import CreateCommentController from '@src/application/controller/comments/CreateCommentController'; import UpdateCommentController from '@src/application/controller/co...
/** * Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or ...
import { Category } from './data.generated'; declare const _default: (categories: Category[], flag?: string | undefined) => RegExp; export = _default;
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app....
import React from "react"; /* https://github.com/vercel/next.js/issues/28596 */ /* eslint-disable-next-line */ import Document, { Html, Head, Main, NextScript, DocumentContext, } from "next/document"; import { getCssText } from "../stitches.config"; import { IdProvider } from "@radix-ui/react-id"; export def...
import {GroupAddData} from "../../../interface"; export function check(data: GroupAddData): string { // check agree if (!data.agree) { return "規約に同意されていません。"; } // check org info form if (data.org.length === 0) { return "1.2.1. 団体名が入力されていません。"; } if (data.org_en.length === ...
import {Stream} from "../Stream"; import {ParseResult} from "../ParseResult"; import {ParseError} from "../ParseError"; // Consume any character export const anyCharacter = (s: Stream): ParseResult | ParseError => { let character = s.get(); return new ParseResult(character, s.next(), s, character); }
type ContentType = string; type HttpStatus = number; declare namespace robots { export interface Sitemap { value: string, } export interface Tuple { key: string, value: string } export type SitemapList = Sitemap[]; export type TupleList = Tuple[]; } declare namespace sitemap { export int...
/* TSBindingsGenerator Generated code -- this code is regenerated on each build */ namespace SkiaSharp { export class sk_canvas_translate_0_Params { /* Pack=4 */ t : number; dx : number; dy : number; public static unmarshal(pData:number, memoryContext: any = null) : sk_canvas_translate_0_Params { memor...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { Socket } from 'net'; import { ConfigurationTarget, DiagnosticSeverity, Disposable, DocumentSymbolProvider, Event, Extension, ExtensionContext, OutputChannel, Uri, WorkspaceEdit } from 'vscode'; import...
import { computed, defineComponent, onMounted, provide, ref, unref } from 'vue'; import { Layout } from 'ant-design-vue'; import { FullLoading } from '/@/components/Loading/index'; import { RouterView } from 'vue-router'; import { ContentEnum } from '/@/enums/appEnum'; import { appStore } from '/@/store/modules/app';...
import * as moment from "moment"; export interface IRawTransaction { "Date": string; "Ledger": string; "Amount": string; "Company": string; } /** * Transaction * */ export class Transaction { // Raw data, as provided. Not externally accessable private source: IRawTransaction; private ...
// Copyright 2014 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...
import { Component } from '@angular/core'; import { AssetsService } from '../../../@core/data/assets.service'; import { AwsTransformService } from '../../../@core/utils/awsTransform.service'; import { LocalDataSource } from 'ng2-smart-table'; @Component({ selector: 'ngx-gestion', templateUrl: './gestion.component....
import { Address } from "./address.class"; import { iAddress } from "./address.interface"; import { iPerson } from "./person.interface"; export class Person implements iPerson { address?: iAddress; addressSameAsAgency?: boolean; annualSalary?: number; baseHourlyWage?: number; benefits?: number; deactivated...
import React, { useState } from 'react' import { useObserver } from 'mobx-react-lite' import { css } from '@emotion/core' import { useStore } from '../hooks/useStore' import 'mobx-react-lite/batchingForReactDom' import { onEnterPress } from '../hooks/onEnterPress' import { Input } from './StyledUI/Input' import { Add...
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { ToDosComponent } from './toDos.component'; describe('ToDosComponent', () => { let component: ToDosC...
import { Component } from '@angular/core'; import { NavController, IonicPage, NavParams } from 'ionic-angular'; import { WordpressProvider } from '@/providers/wordpress/wordpress'; import { IPostParams } from '@/interfaces/wordpress'; @IonicPage({ segment: 'author/:key', }) @Component({ selector: 'author', templ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { CardapioPageRoutingModule } from './cardapio-routing.module'; import { CardapioPage } from './cardapio.page'; import { Compone...
export interface StashTab { numTabs?: number; tabs?: Tab[]; items?: Item[]; currencyLayout?: CurrencyLayout[]; quadLayout?: Boolean; currentTab?: Tab; } export interface CurrencyLayout{ h: number; w: number; x: number; y: number; } export interface Tab { color: { b: number; g: number; ...
import { Test } from 'nodeunit'; import { Aws, CfnMapping, CfnResource, Fn, Stack } from '../lib'; import { toCloudFormation } from './util'; export = { 'mappings can be added as another type of entity, and mapping.findInMap can be used to get a token'(test: Test) { const stack = new Stack(); const mapping =...
import bodyParser from 'body-parser'; import session from 'cookie-session'; import express from 'express'; import helmet from 'helmet'; import {config} from './config'; import * as route from './routes'; const app = express(); const jsonParser = bodyParser.json(); app.use(helmet()); // 设置HTTP头部保护app免受一些知名的web攻击 app...
import { Animation } from '../../interface'; import { createAnimation } from '../animation/animation'; import { TransitionOptions, getIonPageElement } from '../transition'; export const mdTransitionAnimation = (_: HTMLElement, opts: TransitionOptions): Animation => { const OFF_BOTTOM = '40px'; const CENTER = '0px'...
import styled from '@src/styled'; const Grid = styled.div` display: flex; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 800px; margin-top: 3rem; @media (max-width: 600px) { & { width: 100%; flex-direction: column; } } `; export default Grid;
export class ProductType { private id: number; private name: string; private description: string; constructor(id: number, name: string, description: string) { this.id = id; this.name = name; this.description = description; } }
import { renderHook } from '@testing-library/react-hooks'; import { fireEvent, render, screen } from '@testing-library/react'; import useInputFile, { Options } from '../src'; const setup = () => { const ref = { current: document.createElement('input') }; const file = new File([`(¯\_(ツ)_/¯)`], 'me.png', { typ...
import { randomUUID } from 'crypto'; import { Session } from './session'; export class SessionManager { sessions: { [key: string]: Session } = {}; openSession(): string { const session = new Session(randomUUID()); this.sessions[session.getSessionId()] = session; return session.getSessionId(); } c...
export interface Route { path: string; label: string; icon: string; component: React.ComponentClass | React.SFC; }
import { state, project } from "../common"; import { zoomSize, percentageSize, unitSize } from "./helper"; import { SMType } from "../../src/meaxure/interfaces"; export var MapArtboardIDToIndex: { [key: string]: number } = undefined; export function layers() { specLayers(); flowLayers(); } function specLayers...
export * from './UnregisteredUserProductAll'
import { Injectable } from '@nestjs/common'; import { TagEntity } from './tag.entity'; import { Repository } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; @Injectable() export class TagService { constructor( @InjectRepository(TagEntity) private readonly tagRepository: Repository<TagEnti...
import { createContext } from "react"; import { LocalStorageProviderContext as ILocalStorageProviderContext } from "../../../types"; export const LocalStorageProviderContext = createContext<ILocalStorageProviderContext>(null);
export * from './alert'; export * from './user'; export * from './general'; export * from './education'; export * from './work'; export * from './skill'; export * from './certificate';
/* * Copyright 2018-present Sonatype, 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...
/** * sparkline sample */ import { Sparkline } from '../../src/sparkline/sparkline'; import { IAxisRenderingEventArgs } from '../../src/sparkline/model/interface'; let sparkline: Sparkline = new Sparkline({ height: '50px', width: '90%', lineWidth: 2, type: 'Line', valueType: 'Category', fill...
import { useMemo, useState } from 'react'; import styled from 'styled-components'; import dynamic from 'next/dynamic'; import Button from './Button'; import * as url from '../url'; import ShareModal from './ShareModal'; export interface OMASummaryProps { totalMembers: number; maxWage: number; totalWage: number; ...
import { first, last } from 'lodash' import { LoadMoreKey, SkipLoadMoreKey } from '../types/common' // loadMore export function loadMore<T>( list: T[], limit: number, getLoadMoreCursor: (val: T) => number, ): { data: T[]; next?: LoadMoreKey } { if (list.length !== limit || list.length === 0) { return { dat...
import { BaseWallet } from "./Base"; import { UnitEnum, WalletTypeEnum } from "./enum"; import { qrAddress, Image } from "../qr/Qr"; import { networkPrefixMap } from "./createWallet"; import { balanceFromSatoshi, balanceResponseFromSatoshi, BalanceResponse, } from "../util/balanceObjectFromSatoshi"; import { Ca...
import * as dotenv from "dotenv"; import { TwitterClient } from "./Services/TwitterClient"; import { IHeadlineRepository } from "./Repositories/IHeadlineRepository"; import { HeadlineRepository } from "./Repositories/HeadlineRepository"; import { createConnection } from "mysql"; import { IHeadline } from "./Models/IHea...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as React from "react"; import { hasScopes } from "@webiny/app-security"; import { getPlugin } from "@webiny/plugins"; import { ResourcesType } from "../identity"; import { SecureRouteErrorPlugin } from "@webiny/app-security/types"; export default ({ children, scopes }: { children: any; scopes?...
/* * 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 { getScoreString } from './score_health'; describe('create_influencer...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { AlunoService } from './aluno.service'; @NgModule({ decl...
import {User} from './user.model'; import {PlacePollOption} from './place-poll-option.model'; import {DatePollOption} from './date-poll-option.model'; import {Invite} from './invite.model'; export interface Event { id: number; event_hash: string; name: string; is_open_to_dates: boolean; is_open_to_places: bo...
/** @jsx jsx */ import { css, jsx } from "@emotion/core"; import React, { useState, ReactNode } from "react"; import PanelGroup from "react-bootstrap/lib/PanelGroup"; import Accordion from "../../..//ui/miscellaneous/Accordion"; import Paragraph2 from "../../../ui/paragraphs/Paragraph2"; import Title2 from "../../../ui...
import { Component, OnInit } from '@angular/core'; import { IPO } from 'src/modals/Ipo'; import { IpoService } from 'src/app/services/ipo.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-ipodetails', templateUrl: './ipodetails.component.html', styleUrls: ['./ipodetails.component.cs...
import { HistoricItem } from '../../model/HistoricItem' import { IHistoricRepository } from '../IHistoricRepository' export class HistoricRepository implements IHistoricRepository { //Implementação sem permanência de dados private history: HistoricItem[] private static INSTANCE: HistoricRepository private co...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {defineMessages, FormattedDate, FormattedMessage, FormattedTime, injectIntl, IntlShape} from 'react-intl'; import {UserProfile} from 'mattermost-redux/types/users'; import {...
import { mergeLocale } from '../utils/merge-locale' import { base } from './base' const typeTemplate = '${label} ${type} типі емес' const kkKZ = mergeLocale(base, { locale: 'kk-KZ', common: { confirm: 'OK', cancel: 'Бастарту', loading: 'Жүктелуде', }, Calendar: { markItems: ['Дү', 'Се', 'Сә', ...
import { store, Address, BigInt } from "@graphprotocol/graph-ts" import { NFTRegistered, NFTUnregistered } from '../../generated/RevShareLicenseManager/RevShareLicenseManager' import { Content, RevShareLicense } from '../../generated/schema' function makeContentId(address: Address, id: BigInt): string { return ad...
// (C) 2021-2022 GoodData Corporation import { ActionOptions } from "../_base/types"; import { logInfo, logSuccess } from "../_base/terminal/loggers"; import { genericErrorReporter } from "../_base/utils"; import { getListCmdActionConfig, ListCmdActionConfig } from "./actionConfig"; import { ListObjectsFn } from "./typ...
/// <reference types="react" /> import Shape from './Shape'; import { TransformProps } from '../lib/extract/types'; export default class TSpan extends Shape<{}> { static displayName: string; setNativeProps: (props: Object & { matrix?: number[] | undefined; style?: {} | [] | undefined; } & Tr...
// Copyright (c) 2021. Sendanor <info@sendanor.fi>. All rights reserved. import { isScript, parseScript, stringifyScript } from "./Script"; describe('isScript', () => { test( 'can detect Scripts', () => { expect( isScript({ name: 'get_date', command: 'date' }) ).toBe(true...
/// <reference path="./types.d.ts" /> class Board { private content: cellContent[][]; constructor(defaultContent: number[][]) { this.content = []; for (let i = 0; i < 9; i++) { this.content.push([]); for (let j = 0; j < 9; j++) { this.content[i].push(defaultContent[i][j] === 0 ? { stat...
import React from 'react'; import dynamic from 'next/dynamic'; import Image from 'next/image'; import NextLink from 'next/link'; const QuickNav = dynamic(() => import('../QuickNav')); const MainNav = dynamic(() => import('../MainNav')); const Search = dynamic(() => import('../Search')); import styles from './Header.mod...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import ndarray from 'ndarray'; import {AveragePool, GlobalAveragePool, GlobalMaxPool, MaxPool} from '../../../ops/pool'; import {Tensor} from '../../../tensor'; import {PoolConvUtil, ShapeUtil} from '../../../util'; import...
import { AVRInterruptConfig, CPU } from '../cpu/cpu'; import { u8 } from '../types'; export interface TWIEventHandler { start(repeated: boolean): void; stop(): void; connectToSlave(addr: u8, write: boolean): void; writeByte(value: u8): void; readByte(ack: boolean): void; } export interface TWIConfig { ...
import GlobalErrorBoundary from './GlobalErrorBoundary' export default GlobalErrorBoundary
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { BrowserRouter, Route, Switch } from 'react-router-dom' import { Home } from './pages/Home/' import { NewRoom } from './pages/NewRoom/' import { AuthContextProvider } from './contexts/AuthContext' import { Room } from './pages/Room/' import { AdminRoom } from './pages/AdminRoom/' function App() { return ( ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /* eslint-disable eqeqeq */ import * as base64 from "./util/base64"; import * as utils from "./util/utils"; import { SerializerOptions, XML_ATTRKEY, XML_CHARKEY } from "./util/serializer.common"; // This file contains utility code to serialize...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Canada eCoin</source> <translation>Despre Canada eCoin</translati...
import { NgModule } from "@angular/core"; import { FormsModule } from "@angular/forms"; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { IgxCalendarModule, IgxCardModule ...
import { Module, MiddlewareConsumer } from '@nestjs/common'; import { UsersController } from './users.controller'; import { UsersService } from './users.service'; import { TypeOrmModule } from '@nestjs/typeorm' import { User } from './user.entity'; import { AuthService } from './auth.service'; import { CurrentUserMiddl...
import { CustomError } from '../../../../lib/errors'; import { args } from '../../../args'; import { getErrorStringCode } from './error-utils'; import { IaCErrorCodes, IaCTestFlags, TerraformPlanScanMode } from './types'; const keys: (keyof IaCTestFlags)[] = [ 'org', 'debug', 'insecure', 'detectionDepth', 's...
// This is to silence ESLint about undefined cy /*global cy, Cypress*/ import { getpassword, get_random_username } from "../../fixtures/utilities"; describe("Test Authorizations", () => { it("Test Admin authorizations", () => { const email = get_random_username("admin"); const pwd = getpassword(4); // .....
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { NavigationLinkComponent } from './navigation-link.component'; describe('NavigationLinkComponent', () => { let component: NavigationLinkComponent; let fixture: ComponentFixture<NavigationLinkComponent>; beforeEach(async(() => { ...