text
stringlengths
10
953k
import dotenv from "dotenv" import "reflect-metadata" import { Container, Service } from "typedi" import { Connection, createConnection, EntitySchema, getConnectionOptions, useContainer, } from "typeorm" import * as Models from "../models" import { SnakeNamingStrategy } from "./snake_naming" @Service() expor...
// ❌ multiple responsibilities // ❌ high level and low level logic mixed // ❌ incorrect name function printOnlyOddNumbers(numbers: number[]): string { let odds: number[]; const rev: number[] = []; odds = numbers.filter(n => n % 2); for (let i = odds.length - 1; i >= 0; i--) { rev.push(numbers[i]); } let...
import React from 'react'; import { Avatar, Overlay, Menu, Icon } from '@alifd/next'; import styles from './index.module.scss'; const { Item } = Menu; const { Popup } = Overlay; export interface Props { name: string; avatar: string; mail: string; } const UserProfile = ({ name, avatar, mail }) => { return ( ...
// Copyright 2019-2021 @polkadot/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 import { MetadataDef } from '@cennznet/extension-inject/types'; const metadataGets = new Map<string, Promise<MetadataDef | null>>(); export function getSavedMeta (genesisHash: string): Promise<MetadataDef | nu...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; @NgModule({ imports: [ CommonModule ], declarations: [] }) export class CartModule { }
function callAPI(){ fetch('https://reqres.in/api/users') .then( (response) => { return response.json() }) .then( (response) => { console.log(response.parameter) }); } async function callAPIAsync() { let apiReturn = await fetch('https://reqres.in/api/users...
import { Incident } from "incident"; import path from "path"; import url from "url"; export const DEFAULT_USER: string = "ME"; export const DEFAULT_ENDPOINT: string = "SELF"; import { updateRegistrationInfo } from "./helpers/register-endpoint"; import { RegistrationInfo } from "./interfaces/api/context"; import * as ...
export const SEARCH_DOC = 'SEARCH_DOC'; export const GET_DOC = 'GET_DOC'; export const SUCCESS_PICS = 'SUCCESS_PICS'; export const SEND_FORM_DETAILS = 'SEND_FORM_DETAILS'; export const MEETINGS_PICS = 'MEETINGS_PICS'; export const UPLOAD_PICS = 'UPLOAD_PICS'; export const SUCCESS_SUBMIT = 'SUCCESS_SUBMIT'; export const...
import {initClient} from './init-client'; import {WebSocketChannelName, WebSocketEvent} from '..'; const client = initClient(); const channels = [ { name: WebSocketChannelName.LEVEL2, product_ids: ['ETH-USD', 'ETH-EUR'], }, { name: WebSocketChannelName.HEARTBEAT, product_ids: ['ETH-USD', 'ETH-EU...
import { Control } from "../control"; import { Dispatcher } from "../../dispatcher"; import { AppEvent } from "../../enums/enums"; export class IdRadio extends Control { private input: HTMLInputElement; // // Create a new instance of IdRadio by providing a query selector that // yields an id-radio element. ...
import { Component, OnInit } from '@angular/core'; import { Ingredient } from './../shared/ingredient.model'; @Component({ selector: 'app-shopping-list', templateUrl: './shopping-list.component.html', styleUrls: ['./shopping-list.component.css'] }) export class ShoppingListComponent implements OnInit { ingredi...
export const FormatsData: {[k: string]: SpeciesFormatsData} = { // New Mons synthinobi: { tier: "YB", doublesTier: "DYB", }, chemicander: { tier: "YB", doublesTier: "DYB", }, primadillo: { tier: "YB", doublesTier: "DYB", }, bersawk: { tier: "YB", doublesTier: "DYB", }, electzal: { tier: "YB"...
/* * /* * * Copyright 2012-2018 the original author or authors. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0...
import { getRTL } from '@ui5/webcomponents-base/dist/config/RTL.js'; import { RefObject, useRef, useState } from 'react'; import { useIsomorphicLayoutEffect } from '../hooks'; const GLOBAL_DIR_CSS_VAR = '--_ui5_dir'; const detectRTL = (elementRef: RefObject<HTMLElement>) => { if (!elementRef.current) { return g...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React, { useContext } from 'react'; import styled from 'styled-components'; import { formatEther } from 'ethers/utils'; import { RouterLink, Tooltip, Button } from 'v2/components'; import { ROUTE_PATHS } from 'v2/config'; import { COLORS, BREAK_POINTS, FONT_SIZE, SPACING } from 'v2/theme'; import { weiToFloat, ...
import chai, { expect } from 'chai'; import * as path from 'path'; import Helper from '../../src/e2e-helper/e2e-helper'; import * as fixtures from '../../src/fixtures/fixtures'; import NpmCiRegistry, { supportNpmCiRegistryTesting } from '../npm-ci-registry'; chai.use(require('chai-fs')); describe('dev-dependencies f...
import { getDatabase } from '../../database'; import * as prompts from 'prompts'; import * as path from 'path'; import * as fs from 'fs-extra'; import { env } from '../../context/env'; import * as execa from 'execa'; import * as chalk from 'chalk'; const onCancel = (): void => process.exit(0); async function command(...
import { Button } from "@chakra-ui/react" interface PaginationItemProps { number: number isCurrent?:boolean onPageChange: (page: number) => void } export function PaginationItem({ number, isCurrent = false, onPageChange }:PaginationItemProps){ if(isCurrent){ return( <Bu...
import { Component, OnInit, HostBinding } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { slideInDownAnimation } from '../../animations'; import { Topic, TopicService } from '../topic.service'; @Component({ selector: 'app-topic-edit', templateUrl: './topic-edit.component.h...
import * as Models from './models'; import * as Parameters from './parameters'; import { Client } from '../clients'; import { Callback } from '../callback'; import { RequestConfig } from '../requestConfig'; export class Webhooks { constructor(private client: Client) {} /** * Returns a [paginated](https://devel...
import * as React from "react"; import gql from "graphql-tag"; import { graphql } from "react-apollo"; import { Comment } from "semantic-ui-react"; import * as _ from "lodash"; import FileUpload from "../components/FileUpload"; import RenderText from "../components/RenderText"; // tslint:disable:no-any const newChann...
import { LoginComponent } from './component/login/login.component'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './component/home/home.component'; import { LogoutComponent } from './component/logout/logout.component'; import { SessionRe...
import { useCallback } from 'react' import { storiesOf } from '@storybook/react' import * as H from 'history' import { BehaviorSubject, of } from 'rxjs' import { FlatExtensionHostAPI } from '@sourcegraph/shared/src/api/contract' import { StatusBarItemWithKey } from '@sourcegraph/shared/src/api/extension/api/codeEdito...
import * as PropTypes from "prop-types"; import { QueryClient, QueryClientProvider } from "react-query"; const QueryClientContainer = ({ children }: any) => { const queryClient = new QueryClient(); return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>; }; QueryClientContainer.propTy...
import {Trans} from '@lingui/react' import {ActionLink, StatusLink} from 'components/ui/DbLink' import {dependency} from 'parser/core/Injectable' import Checklist, {Requirement, TARGET, TieredRule} from 'parser/core/modules/Checklist' import {DoTs as CoreDoTs} from 'parser/core/modules/DoTs' import Suggestions, {SEVERI...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import { Construct } from "@aws-cdk/core"; import { AttributeType, BillingMode, Table } from "@aws-cdk/aws-dynamodb"; import { Code, Runtime, Tracing, Function } from "@aws-cdk/aws-lambda"; import { Bucket, BucketE...
import * as dotenv from "dotenv"; import { HardhatUserConfig, task } from "hardhat/config"; import "@nomiclabs/hardhat-etherscan"; import "@nomiclabs/hardhat-waffle"; import "@typechain/hardhat"; import "hardhat-gas-reporter"; import "solidity-coverage"; dotenv.config(); // This is a sample Hardhat task. To learn ho...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { CampaignCodeCreationPricingMethodComponent } from './campaign-code-creation-pricing-method.component'; describe('CampaignCodeCreationPricingMethodComponent', () => { let component: CampaignCodeCreationPricingMethodComponent; let fi...
import * as TypeGraphQL from "type-graphql"; import GraphQLJSON from "graphql-type-json"; import { PostUncheckedUpdateManyInput } from "../../../inputs/PostUncheckedUpdateManyInput"; import { PostWhereInput } from "../../../inputs/PostWhereInput"; @TypeGraphQL.ArgsType() export class UpdateManyPostArgs { @TypeGraphQ...
import BluebirdPromise from "bluebird-lst" import { configureRequestOptions, HttpError } from "electron-builder-http" import { BintrayClient, Version } from "electron-builder-http/out/bintray" import { BintrayOptions } from "electron-builder-http/out/publishOptions" import { debug, isEmptyOrSpaces, isTokenCharValid, lo...
import { Socket, createSocket } from "dgram"; import { NetworkOnError, NetworkOnMessage, NetworkSend } from "./types/network_types"; /** @internal */ export const initNetwork = ( ownPort: number, distantPort: number, networkOnError: NetworkOnError, networkOnMessage: NetworkOnMessage ): Promise<[Socket, Ne...
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { RouterModule } from '@angular/router'; import {BrowserModule} from '@angular/platform-browser'; import {FormsModule} from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import {APP_BASE_HREF} from '@angular/common'; ...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ConfirmButtonModule } from '@nrwl-airlines/shared/ui-buttons'; import { SeatListingComponent } from './seat-listing.component'; @NgModule({ declarations: [SeatListingComponent], imports: [CommonModule, ConfirmButton...
import React, { useState, useEffect, FormEvent } from 'react'; import { FiChevronRight } from 'react-icons/fi'; import { Link } from 'react-router-dom'; import api from '../../services/api'; import logoImg from '../../assets/logo.svg'; import { Title, Form, Repositories, Error } from './styles'; interface Repositor...
import * as core from '@actions/core'; import * as github from '@actions/github'; import { wait } from './wait'; export async function checkStatus(token: string) { const octokit = github.getOctokit(token); const owner = github.context.repo.owner; const repo = github.context.repo.repo; const payload = github.c...
import { useColor } from "palette/hooks" import React from "react" import { Icon, IconProps, Path } from "./Icon" /** CertificateIcon */ export const CertificateIcon: React.FC<IconProps> = (props) => { const color = useColor() return ( <Icon {...props} viewBox="0 0 18 18"> <Path d="M9.001 4.45a3....
/* * Licensed to the Kassenärztliche Bundesvereinigung (KBV) (c) 2020 - 2021 under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The KBV licenses this file * to you under the Apache License, Version 2....
import React, { useCallback, useState } from 'react'; import { useDropzone } from 'react-dropzone'; import { FiUpload } from 'react-icons/fi'; import StyledDropzone from './styles'; interface Props { onFileUpload: (file: File) => void; } const Dropzone: React.FC<Props> = ({ onFileUpload }) => { const [selectedFi...
/** * * * OpenAPI spec version: 20200630 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ...
import "./bond.scss"; import { t, Trans } from "@lingui/macro"; import { Box, Fade, Grid, Tab, Tabs, Typography } from "@material-ui/core"; import { Skeleton } from "@material-ui/lab"; import { Icon, Modal, TokenStack } from "@olympusdao/component-library"; import { ChangeEvent, Fragment, ReactElement, useEffect, useS...
import * as Path from "path"; import * as Log4js from "log4js"; import * as Util from "util"; import * as Moment from "moment"; // 处理时间的工具 import * as StackTrace from "stacktrace-js"; import Chalk from "chalk"; import config from "../config/log4js"; // 日志级别 export enum LoggerLevel { ALL = "ALL", MARK = "MARK", T...
import { GetterObj, NodeOptions, Shoukaku } from ".."; export class Eris { constructor( client: unknown ); public client: unknown; public getters(): GetterObj; public build(shoukaku: Shoukaku, nodes: NodeOptions[]): GetterObj; }
import postcss_preset_env from "postcss-preset-env"; export = { plugins: [postcss_preset_env()], };
/** * Information stored for every pending request. */ interface PendingMessage<Result> { /** * Function used to resolve the promise. */ resolve: (result: Result) => void; /** * Function used to reject the promise. */ reject: (err?: Error) => void; /** * Timeout handle. */ timeout: any; } /** * ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About kripton</source> <translation>O kriptonu</translation> </message...
import { IOpCodeHanlePayload } from "../../types"; /* OP Code: 0x5B Memonic: BIT 3 E Description: Sets zero flag if bit 3 (fourth to the top right) of register E is set to 0. Size: 2 Byte - increments PC by 2 Cycles: 8 Flags affected: Sets SUBTRACTION flag to 0. Carry flag is unchanged. Sets ZE...
/** * Copyright 2020 Vercel 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 t...
import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useNavigation, useRoute } from '@react-navigation/native'; import Icon from 'react-native-vector-icons/Feather'; import { Alert, Platform } from 'react-native'; import { format } from 'date-fns'; import DateTimePicker from '@react-native...
import { useRouter } from 'next/router' import { useContext, useEffect, useRef } from 'react' import { ViewerContext } from '~/components' import { analytics } from '~/common/utils' const PageViewTracker = () => { const router = useRouter() const viewer = useContext(ViewerContext) const referrer = useRef('') ...
const PRO_LIST_KEYS = [ 'title', 'subTitle', 'avatar', 'description', 'extra', 'content', 'actions', 'type', ]; const PRO_LIST_KEYS_MAP = PRO_LIST_KEYS.reduce((pre, next) => { pre.set(next, true); return pre; }, new Map()); export { PRO_LIST_KEYS_MAP, PRO_LIST_KEYS };
namespace MeshTest { import ƒ = FudgeCore; ƒ.Render.initialize(true, true); import ƒAid = FudgeAid; window.addEventListener("load", init); let graph: ƒ.Node = new ƒ.Node("Graph"); let torusTex: ƒ.Node = new ƒ.Node("torusTex"); let torusFlat: ƒ.Node = new ƒ.Node("torusFlat"); function init(_event: Ev...
import Client from "./client"; const client = new Client(); const New = jest.fn() .mockReturnValue([client, null]) .mockName("clients.New"); export default { New, };
import { Response } from 'express'; export const badRequest = (res: Response, msg?: string) => res.status(400).send({ message: msg || 'Error: Bad request error' }); export const serverError = (res: Response, msg?: string) => res.status(500).send({ message: msg || 'Error: Internal server error' }); export const notFoun...
import { MediaPackageVodClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageVodClient.ts"; import { TagResourceRequest } from "../models/models_0.ts"; import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1.ts";...
import {Link, LinkProps} from '@chakra-ui/react' import {InfoIcon} from './icons' import Tip from './tip' const docsBaseURL = 'https://docs.conveyal.com' const _hover = {color: 'blue.700'} export default function DocsLink({ to, ...p }: { to: string } & LinkProps) { return ( <Tip label='View docs to learn...
// Type definitions for non-npm package ineum-browser 1.0 // Project: https://docs.instana.io/products/website_monitoring/api/ // Definitions by: Enzo Volkmann <https://github.com/evolkmann> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.2 // Website Monitoring API from Ins...
import * as React from 'react'; import { Accordion, AccordionContent, AccordionItem, AccordionToggle, } from '@patternfly/react-core'; import { useTranslation } from 'react-i18next'; import { CLOUD, SSH, SYSPREP } from '../../../../utils/strings'; import Cloudinit from './cloud-init/Cloudinit'; import SSHAdvanc...
import { useTable, useSortBy, TableOptions, usePagination, TableInstance, UsePaginationInstanceProps, UsePaginationState, } from 'react-table'; import styled from 'styled-components'; import { Box, StyledOcticon, Spinner, Pagination } from '@primer/components'; import { ChevronDownIcon, ChevronUpIcon } fr...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { UserDetail } from "../../../models/users/user.model"; import { AuthenticationService } from "../../services/authentication.service"; import { Observable, of } from "rxjs"; import { catchError, debounceTime, distinctUntilChanged, ma...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="be_BY" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Mental</source> <translation type="unfinished"/> </message> <message> <location line...
/* Copyright 2015 The TensorFlow 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 applicable law or agree...
#!/usr/bin/env node import { App, Aspects } from 'aws-cdk-lib' import { StackTags } from '@ndlib/ndlib-cdk2' import 'source-map-support/register' import { getRequiredContext } from '../lib/context-helpers' import * as services from './services' import * as pipelines from './codepipelines' import { ContextEnv } from '.....
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { SearchBarModule } from '../src'; import { DemoComponent } from './demo.component'; @NgModule({ declarations: [DemoComponent], imports: [BrowserModule, SearchBarModule.forRoot()], bootstrap: [DemoComponen...
import * as React from 'react'; import "./Application.scss" import Brightness5Icon from '@material-ui/icons/Brightness5'; import Brightness3Icon from '@material-ui/icons/Brightness3'; import TaskList from "./task/TaskList"; import {useAppDispatch, useAppSelector} from "../../store"; import {toggleTheme} from "../../sto...
import type { AccountDatum } from "../types"; export const accountsEqual = (a: AccountDatum, b: AccountDatum): boolean => { if (a && b) { return a.accountInfo.data.equals(b.accountInfo.data); } return false; };
import { ComponentInstance, GlobalMeta, PageRouter, PluginInstance } from '@vize/types'; export interface PageRenderProps { router: PageRouter; meta: GlobalMeta; globalData: object; globalStyle: object; pageData: object; pageStyle: object; componentInstances: ComponentInstance[]; pluginInstances: Plugi...
import * as React from "react"; import { Link } from "react-router-dom"; import { Carousel, ProductListItem } from ".."; import { generateProductUrl, maybe } from "../../core/utils"; import { TypedFeaturedProductsQuery } from "./queries"; import "./scss/index.scss"; interface ProductsFeaturedProps { title?: string...
export interface PutIndicesRequest { name?: string; multiple?: boolean; fields?: string; }
/* eslint-disable react-hooks/exhaustive-deps */ import { autocomplete } from '@algolia/autocomplete-js' import React, { createElement, Fragment, useEffect, useRef } from 'react' import { render } from 'react-dom' export default function AlgoliaAutocomplete(props: any) { const containerRef = useRef(null) useEffec...
import { IsString, IsNotEmpty, ValidateNested } from 'class-validator'; import { Type } from 'class-transformer'; import { ObjectWithId } from '../../utils/types/object-with-id.dto'; export class CreateProductDto { @IsString() @IsNotEmpty() name: string; @ValidateNested() @Type(() => ObjectWithId) categor...
export class Tag { constructor(_id='',name='',state=false){ this._id=_id; this.name=name; this.state=state; } _id: string; name: string; state: boolean; }
import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/of'; import { Component, Input, HostBinding } from '@angular/core'; @Component({ selector: 'xmpl-base', templateUrl: './base.component.html' }) export class BaseComponent { @Input() promiseValue = Promise.resolve(1); @Input() observable...
const dir = { ETH: 1027, BNB: 1839, } const numItem: number[] = []; for (const item in dir) { numItem.push(dir[item as keyof typeof dir]) } // 1. 写法 // interface ICoinWrapper { // status: Record<string, string> // data: {[key in keyof typeof dir]: ICoin} // } type ElementType<T extends ReadonlyArray<unkno...
import { fluentBorderRadius } from './styleConstants'; import { Depths } from '../FluentDepths'; import { NeutralColors, SharedColors } from '../FluentColors'; import { IComboBoxStyles } from 'office-ui-fabric-react/lib/ComboBox'; export const ComboBoxStyles: Partial<IComboBoxStyles> = { root: { borderRadius: fl...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ListProductCateComponent } from './list-product-cate.component'; describe('ListProductCateComponent', () => { let component: ListProductCateComponent; let fixture: ComponentFixture<ListProductCateComponent>; beforeEach(async () => { ...
import type {Logger} from './type'; /** * Define `globalThis.Alwatr.registeredList` */ export const alwatrRegisteredList = globalThis.Alwatr?.registeredList || []; globalThis.Alwatr ??= {registeredList: alwatrRegisteredList}; alwatrRegisteredList.push({ name: '@alwatr/logger', version: '{{ALWATR_VERSION}}', // ...
import { React,app, ComponentActions } from "./lib/hyperapplike"; import * as serviceWorker from './serviceWorker'; import _states, { States } from "./states"; import _actions, { Actions } from "./actions" import Count from "./views/Count" import {Route, BrowserRouter} from "react-router-dom" import "./index.css" cons...
import classNames from 'classnames' import React from 'react' import { ForwardReferenceComponent } from '../../..' import styles from './CardList.module.scss' interface CardListProps {} export const CardList = React.forwardRef(({ as: Component = 'div', children, className, ...attributes }, reference) => ( <Comp...
import { reduce, Stream } from 'most'; import fromEagerPromise from './fromEagerPromise'; const toArray = <T>(stream$: Stream<T>) => { return fromEagerPromise<T[]>(() => { return reduce<T, T[]>((acc, x) => [ ...acc, x, ], [], stream$); }); }; export default toArray;
export const advancedQueriesRoutesNames: AdvancedQueriesRoutesNames = { filters: 'Advanced Filters', reports: 'Ad Hoc Query Configuration', }; export interface AdvancedQueriesRoutesNames { [key: string]: string; }
/* Copyright 2020 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 to in ...
/** @jsxImportSource @emotion/react */ import React from 'react'; import { css } from '@emotion/react'; import Cookies from 'universal-cookie'; import { DialogOverlay, DialogContent } from '@reach/dialog'; // contexts import { NavigationContext } from 'contexts/Navigation'; // styles import { colors, linkButtonStyles ...
import { Component } from '@angular/core'; // import { NavController } from 'ionic-angular'; import { NavParams} from 'ionic-angular'; import { LeaveData } from '../../providers/leave-data'; import { ToastController } from 'ionic-angular'; import { LoadingController } from 'ionic-angular'; @Component({ selecto...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MessageRoutingModule } from './message-routing.module'; import { MessageComponent } from './message.component'; @NgModule({ declarations: [MessageComponent], imports: [ CommonModule, MessageRoutingModule ]...
import { RDS } from "../RDS"; import { RDSClient } from "../RDSClient"; import { DescribeDBSnapshotsCommand, DescribeDBSnapshotsCommandInput, DescribeDBSnapshotsCommandOutput, } from "../commands/DescribeDBSnapshotsCommand"; import { RDSPaginationConfiguration } from "./Interfaces"; import { Paginator } from "@aw...
import * as ts from 'typescript' import * as fs from 'fs' import * as path from 'path' const version = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../package.json')).toString()).version as string export interface MyPluginOptions { } export default function myTransformerPlugin(program: ts.Program, opts: MyPlu...
import React from 'react'; import { Container, Bar } from './styles'; export interface Props { width: number; color?: string; } const BarInBeginPage: React.FC<Props> = ({ width = 20, color }) => { return ( <Container> <Bar width={width} color={color} /> </Container> ); } export default BarInBe...
'use strict' import test from 'ava' import checkDiskSpace from '@/src/index' import mockDependencies from '@/test/__helpers__/mockDependencies' const platformFixtures = { win32: [ { title: 'Windows XP', path: 'D:/a/long/path', execOutput: ` Caption FreeSpace Size C: 6277038...
import { Geometry } from './../core/Geometry'; export class TorusGeometry extends Geometry { /** * @param [radius=1] * @param [tube=0.4] * @param [radialSegments=8] * @param [tubularSegments=6] * @param [arc=Math.PI * 2] */ constructor( radius?: number, tube?: number, radialSegments?: number, tu...
import { isEmpty } from 'lodash'; import * as React from 'react'; import { useTranslation } from 'react-i18next'; import { createModalLauncher, HandlePromiseProps, ModalBody, ModalComponentProps, ModalTitle, withHandlePromise, } from '@kubevirt-internal'; import { k8sCreate } from '@kubevirt-internal/utils...
// Type definitions for logrotate-stream 0.2.5 // Project: https://github.com/dstokes/logrotate-stream // Definitions by: Rogier Schouten <https://github.com/rogierschouten> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> import stream = require("stream"); // wrapper...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-animation', templateUrl: './animation.component.html', styleUrls: ['./animation.component.css'] }) export class AnimationComponent implements OnInit { constructor() { } ngOnInit() { } }
import { Container } from 'react-bootstrap'; import S from 'src/styles/pages/my-team/index.module.scss'; import { Box, Avatar, LazyBox, Card } from 'src/components'; import { GetImage } from 'src/utils'; const Main = (): JSX.Element => { return ( <Container as="main" className={`${S.Main}`}> {Array(25) ...
import * as github from '@actions/github'; import {Context} from '@actions/github/lib/context'; import {ReposGetResponseData} from '@octokit/types'; export function context(): Context { return github.context; } export async function repo(token: string): Promise<ReposGetResponseData> { const octokit = github.getOc...
import { createStore } from "vuex"; import createPersistedState from "vuex-persistedstate"; import modules from "./modules/index"; export default createStore<any>({ strict: process.env.NODE_ENV !== "production", state: {}, mutations: {}, actions: {}, modules: modules, plugins: [ createPersistedState({ ...
import { SurveyModel } from "../src/survey"; import { PageModel } from "../src/page"; import { QuestionFactory } from "../src/questionfactory"; import { Question } from "../src/question"; import { PanelModel } from "../src/panel"; import { QuestionTextModel } from "../src/question_text"; import { JsonObject, Serializer...
'use strict'; class DeliveryIndicationDecisionReason { /** * */ 'description'?: { [key: string]: string; }; /** * The ID is the primary key of the entity. The ID identifies the entity uniquely. */ 'id'?: number; /** * */ 'name'?:...
import { Amount } from './Amount'; export interface Malt { name: string; amount: Amount; }
import React from "react" import { NavLink } from "react-router-dom" import styled from "styled-components" import Theme from "../theme/Theme" import { baseDelay } from "./AnimatedContainer" interface LinkProps { position: number } const Navigation = () => { return ( <> <Container className="navigation ...