text
stringlengths
10
953k
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { LeftNavTemplateComponent } from './template/left-nav-template.component'; import { PageNotFoundComponent } from './page-not-found/page-not-found.component'; import { AdminLayoutComponent } from './layouts/admin-la...
import { useState } from "react"; import "../styles/tasklist.scss"; import { FiTrash, FiCheckSquare } from "react-icons/fi"; interface Task { id: number; title: string; isComplete: boolean; } export function TaskList() { const [tasks, setTasks] = useState<Task[]>([]); const [newTaskTitle, setNewTaskTitle]...
import { Component, h } from '@stencil/core'; @Component({ tag: 'ws-footer', styleUrl: 'ws-footer.css', shadow: true }) export class WsFooter { render() { return ( <footer> <p>&copy; 2019 nilsbenz.ch</p> </footer> ); } }
import { ILogger, LogLevel } from './ILogger'; export class Logger implements ILogger { public level: LogLevel; public constructor(level: LogLevel) { this.level = level; } public trace(...values: readonly unknown[]): void { this.write(LogLevel.Trace, ...values); } public debug(...values: readonly unknown[...
import { Node } from 'types'; export interface NodeOperation { type: string; path: Iterable<number>; node: Node; } export interface SplitNodeOperation { type: string; path: Iterable<number>; position: number; target: number; properties: Record<string, any>; data?: Map<string, any>;...
import { includes } from 'lodash'; import React, { PureComponent } from 'react'; import { connect, ConnectedProps } from 'react-redux'; import { NavModel } from '@grafana/data'; import { featureEnabled } from '@grafana/runtime'; import { Themeable2, withTheme2 } from '@grafana/ui'; import Page from 'app/core/component...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {FormattedMessage} from 'react-intl'; import {trackEvent} from 'actions/telemetry_actions.jsx'; import {Constants, Preferences, ModalIdentifiers} from 'utils/constants.jsx'...
import snippets from './snippets'; export default { group: '原子组件', componentName: 'Button', title: '按钮', icon: 'https://img.alicdn.com/tfs/TB1rT0gPQL0gK0jSZFAXXcA9pXa-200-200.svg', docUrl: '', screenshot: '', npm: { package: '@alifd/next', version: '{{version}}', exportName: 'Button', mai...
export const fizzBuzz = (n: number) => [...Array(n)].map((v, i) => { const val = i + 1; if (val % 3 === 0 && val % 5 === 0) return "FizzBuzz"; if (val % 3 === 0) return "Fizz"; if (val % 5 === 0) return "Buzz"; return val + ""; });
import { MigrationInterface, QueryRunner } from 'typeorm'; export class createUserandcustomer1639880578797 implements MigrationInterface { name = 'createUserandcustomer1639880578797'; public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query( `ALTER TABLE "user" ADD "createAt" T...
/* * Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0 * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { ServiceClientOptions, RequestOptions, ServiceCallback } from 'ms-rest'; import * as operations from "./operations"; declare class ServiceFabricCli...
/* tslint:disable */ /* eslint-disable */ // This file was automatically generated and should not be edited. // ==================================================== // GraphQL fragment: OtherPost // ==================================================== export interface OtherPost_frontmatter { __typename: "MarkdownRe...
import { circle_perimeter } from '../src/index' // Circle Perimeter describe('Circle Perimeter', () => { test('The radius is 4', () => { expect(circle_perimeter(4)).toBe(25.132741228718345) }) })
<TS language="en_GB" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Right-click to edit address or label</translation> </message> <message> <source>Create a new address</source> <translati...
import { ComponentOptionsMixin, ComponentOptionsWithArrayProps, ComponentOptionsWithObjectProps, ComponentOptionsWithoutProps, ComponentPropsOptions, ComponentPublicInstance, ComputedOptions, EmitsOptions, MethodOptions, RenderFunction, SetupContext, ComponentInternalInstance, VNode, RootHyd...
import React from "react"; import { graphql } from "react-relay"; import { withFragmentContainer } from "coral-framework/lib/relay"; import { SSOConfigContainer_auth as AuthData } from "coral-admin/__generated__/SSOConfigContainer_auth.graphql"; import { SSOConfigContainer_authReadOnly as AuthReadOnlyData } from "cor...
/** * @license * Copyright Google LLC 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 */ // tslint:disable: no-duplicate-imports import {Component} from '@angular/core'; // #docregion registration-options im...
import createMultiFormatter from '../../src/factories/createMultiFormatter'; describe('createMultiFormatter()', () => { describe('creates a multi-step formatter', () => { const formatter = createMultiFormatter({ id: 'my_format', useLocalTime: true, }); it('formats millisecond', () => { ...
export class HardWareRule { id?: number; name?: string; regexPattern?: string; status?: string; createdBy?: string; updatedBy?: string; createdAt?: number; updatedAt?: number; parentId?: number; children?: Array<HardWareRule>; }
import React = require('react'); export interface HamburguerProps { showNotification?: boolean; isOpened?: boolean; inverted?: boolean; ariaLabelDescription?: string; } export default class Hamburguer extends React.Component<HamburguerProps> {}
// *https://www.registers.service.gov.uk/registers/country/use-the-api* import fetch from 'cross-fetch'; import React from 'react'; import TextField from '@material-ui/core/TextField'; import Autocomplete from '@material-ui/lab/Autocomplete'; import CircularProgress from '@material-ui/core/CircularProgress'; interface...
import { Field, ObjectType } from '@nestjs/graphql'; @ObjectType() export default class GithubMavenPomsData { @Field({ nullable: false, description: 'Query received as a parameter', }) query: string; @Field({ nullable: false, description: 'Transformation of the received query in an Elasticsear...
import { GestureKey, CoordinatesKey } from './config'; import { State } from './state'; import { Vector2 } from './utils'; export declare type InternalGenericOptions = { target?: () => EventTarget; eventOptions: AddEventListenerOptions; window?: EventTarget; enabled: boolean; transform?: (v: Vector2...
export const DEFAULT_FILL_COLOR = '#9191A8'; // gray40 export const FAILURE_FILL_COLOR = '#FF9E87'; // sunset20 export const SUCCESS_FILL_COLOR = '#4AE3AE'; // mint20 export const DEFAULT_CIRCLE_FILL_COLOR = '#523be4'; // indigo80 export const DEFAULT_CIRCLE_ICON_FILL_COLOR = '#fafaff'; // indigo0
import { Cluster, PrismaDefinitionClass } from 'prisma-yml' import { GraphQLClient } from 'graphql-request' import IDatabaseClient from '../IDatabaseClient' import { DatabaseType } from 'prisma-datamodel' const SERVICE_NAME = 'prisma-temporary-service' const SERVICE_STAGE = 'temporary-stage' const SERVICE_SECRET = 'pr...
import { Column, CompositeEditorOption, Editor, } from './index'; /** A composite SlickGrid editor factory. */ export interface SlickCompositeEditor { /** Constructor of the Slick Composite Editor, it can optionally receive options */ constructor: (columns: Column[], containers: Array<HTMLElement | JQuery<HTMLElem...
import { Injectable } from '@angular/core'; import gql from 'graphql-tag'; import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of'; import { map, tap } from 'rxjs/operators'; import { Hero } from './hero'; import { GraphQLService } from './graphql.service'; @Injectable() export class Hero...
// Type definitions for @paypal/payouts-sdk 1.0 // Project: https://github.com/paypal/Payouts-NodeJS-SDK#readme // Definitions by: Rumon <https://github.com/msrumon> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Minimum TypeScript Version: 3.7 type RecipientType = 'EMAIL' | 'PHONE' | 'PAYPAL_ID...
/* eslint-disable react/prop-types */ import React, { FunctionComponent } from 'react'; import clsx from 'clsx'; import TRSStepper from './TRSStepper/TRSStepper'; import styles from './arrowSelector.css'; export interface ArrowSelectorProps { backInactive: boolean, disabled?: boolean, forwardInactive: boolean, ...
import readLines from '../readLines' import path from 'path' import has = Reflect.has type IEdge = { id: number; rotated: number; flipV: boolean; flipH: boolean; } type ITileNeighbour = { id: number; rotated: number; flipV: boolean; flipH: boolean; } const TILES: Map<number, string[][]...
import * as React from "react"; import DeleteIcon from "material-ui-icons/Delete"; import MessageIcon from "material-ui-icons/Message"; import IconButton from "material-ui/IconButton"; import {ListItem, ListItemSecondaryAction, ListItemText} from "material-ui/List"; export interface GameInviteProps { email: string; ...
declare const _default: { log(txt?: string | undefined): void; info(txt?: string | undefined): void; success(txt?: string | undefined): void; warn(txt: string): void; error(txt: string, err?: any): void; }; export default _default;
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ItemBadgeComponent } from './item-badge.component'; describe('ItemBadgeComponent', () => { let component: ItemBadgeComponent; let fixture: ComponentFixture<ItemBadgeComponent>; beforeEach(async () => { await TestBed.configureTestin...
import React, { ReactNode, ReactElement } from 'react' import classNames from 'classnames' import { errorConfigRecord } from './error' import { withDefaultProps } from '../../utils/with-default-props' import { ElementProps } from '../../utils/element-props' const classPrefix = `adm-error-block` export type ErrorBlock...
import React from 'react'; import SvgIcon from './svgIcon'; type Props = React.ComponentProps<typeof SvgIcon>; const IconShow = React.forwardRef(function IconShow( props: Props, ref: React.Ref<SVGSVGElement> ) { return ( <SvgIcon {...props} ref={ref}> <path d="M8,14.16c-3.67,0-6.18-1.87-7.9-5.86a.78....
/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { Service, ServiceStatus } from '@cbosuite/schema/dist/client-types' import { useMemo } from 'react' import { useCurrentUser } from '~hooks/api/useCurrentUser' import { useServiceList } f...
import { Typography } from '@material-ui/core'; import DoneIcon from '@material-ui/icons/Done'; import { ButtonFilled, ButtonOutlined } from 'litmus-ui'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import useStyles from './styles'; interface AgentDeployModalProps { handle...
export const TAB_ONE = 1; export const TAB_TWO = 2; export const LOGOUT_TAB = 3;
export { Components, JSX } from './components'; import '@shoelace-style/shoelace'
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerExecutionContext, HttpHandlerOptions...
/** * Resource Manager API * API for the Resource Manager service. Use this API to install, configure, and manage resources via the "infrastructure-as-code" model. For more information, see [Overview of Resource Manager](/iaas/Content/ResourceManager/Concepts/resourcemanager.htm). * OpenAPI spec version: 20180917 ...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { EffectsModule } from '@ngrx/effects'; import { StoreModule } from '@ngrx/store'; import { provideDefaultConfigFactory } from '../../config/config.module'; import { Sta...
import { Link, navigate } from '@reach/router' import cn from 'classnames' import React from 'react' import TeamSelect from '../components/TeamSelect' import UserMedailon from '../components/UserMedailon' import './sidebar.sass' import { LayoutChildProps } from './Layout' import { MeContext } from 'App' import { Team }...
import {Component,OnInit} from '@angular/core'; import {Router, ActivatedRoute} from '@angular/router'; import {HttpService} from '../../../service/HttpService'; import {AuthService} from '../../../service/AuthService'; import {SessionService} from '../../../service/SessionService'; import {ApiConstant} from '../../.....
import clsx from 'clsx'; import { ExclamationCircleIcon, CheckCircleIcon } from '@heroicons/react/solid'; export type State = 'ok' | 'error' | 'loading' | 'idle'; export function StateIcon({ state }: { state: State }) { switch (state) { case 'ok': return <CheckCircleIcon className="mr-2 h-4 w-4 text-green...
import * as React from 'react'; import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu'; import styled from 'styled-components'; import { Box } from '../../../../layout'; import { ActionList } from '../../../action-list'; export interface DropdownMenuContentProps extends RadixDropdownMenu.DropdownMenuArrowP...
import type { RxStorageMemory, RxStorageMemorySettings } from './memory-types'; export declare function getRxStorageMemory(settings?: RxStorageMemorySettings): RxStorageMemory; export * from './memory-helper'; export * from './memory-types'; export * from './memory-indexes'; export * from './rx-storage-instance-memory'...
/** * @module botbuilder-dialogs */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Token } from '@microsoft/recognizers-text-date-time'; import { Activity, ActivityTypes, Attachment, CardFactory, InputHints, MessageFactory, TokenResponse, TurnContext, ...
export { default } from "./PinnedItems";
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import * as models from '../models/all'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; import { BatchInputTimelineEvent } from '../models/BatchInput...
import { attemptUpdate, Immutable } from '../src'; describe('immutable annotation', () => { class Entity { public name: string; @Immutable() public email: string; } const email = 'email@email.org'; const name = 'Name'; let entity: Entity; beforeEach(() => { ...
import React, { useState } from "react"; import { WeatherType, WeatherTitle } from "../../types/enums"; import { AppPanelBlock } from "./panel/AppPanelBlock"; import { SET_TYPE } from "../../types/components/App"; import { AppPanel } from "./panel/AppPanel"; import { AppPanelTabs } from "./panel/AppPanelTabs"; interfa...
/// <reference types="node" /> import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; export declare namespace managed...
/** * 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 { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); })); it('should create the app', ...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('sample-...
declare var $: any; _.each([1, 2, 3], (num) => alert(num.toString())); _.each({ one: 1, two: 2, three: 3 }, (value, key) => alert(value.toString())); _.map([1, 2, 3], (num) => num * 3); _.map({ one: 1, two: 2, three: 3 }, (value, key) => value * 3); //var sum = _.reduce([1, 2, 3], (memo, num) => memo + num, 0); // h...
/** * 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...
import { Statement } from "@xapi/xapi"; export interface StatementTransform { (s: Statement): Statement; }
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BackToOfficeCatHomeTestPage } from './back-to-office.cat-home-test.page'; const routes: Routes = [ { path: '', component: BackToOfficeCatHomeTestPage, }, ]; @NgModule({ imports: [RouterModule.forC...
import React, { useEffect, PropsWithChildren } from 'react'; import FormContext, { useGenericContext } from '../../../../../../components/Form_New/FormContext'; import { Enrollment, FundingSource } from '../../../../../../generated'; import produce from 'immer'; import set from 'lodash/set'; type WithNewFundingProps =...
import {Component} from '@angular/core'; import {TodoService, TodoItem} from './../services/todo.service'; import {FilterEnum} from './filter-enum'; import {AddItemComponent} from './add-item/add-item.component.ts'; import {FiltersComponent} from './filters/filters.component'; import {ItemsListComponent} from './items-...
import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import * as serviceWorker from "./serviceWorker"; import { Provider } from "./contexts/CounterContext"; import reducer from "./reducers"; ReactDOM.render( <Provider reducer={reducer} initialState={{ count: 0 }...
import { Component } from '@angular/core' import { FormGroup, FormControl, FormBuilder, Validators } from '@angular/forms' import { LoopbackLoginService } from './lb-login.service' @Component({ selector: 'wsl-lb-login', templateUrl: './lb-login.component.html', styleUrls: ['./lb-login.component.css'] }) export ...
import { isHorizontal, getWidth, getValueDomainName, fixOffset, scaleLinear, scaleBand, makeScale, scaleBounds, moveBounds, growBounds, invertBoundsRange, } from './scale'; jest.mock('d3-scale', () => ({ scaleLinear: () => ({ tag: 'scale-linear' }), scaleBand: () => { const ret = { tag: 'scale-band' } as...
import { FakeChildClass, FakeClass } from './fake-classes-to-test'; import { Observable } from 'rxjs/Observable'; import { Spy } from "./spy-types"; import { createSpyFromClass } from './create-spy-from-class'; let fakeClassSpy: Spy<FakeClass>; let fakeChildClassSpy: Spy<FakeChildClass>; let fakeValue: any; let actua...
export * from './errors';
import {expectType} from 'tsd'; import getPort = require('.'); expectType<Promise<number>>(getPort()); expectType<Promise<number>>(getPort({port: 3000})); expectType<Promise<number>>(getPort({port: [3000, 3001, 3002]})); expectType<Promise<number>>(getPort({host: 'https://localhost'})); expectType<Promise<number>>(get...
/* * Copyright (c) 2014-2021 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ import { TranslateModule } from '@ngx-translate/core' import { HttpClientTestingModule } from '@angular/common/http/testing' import { CookieService } from 'ngx-cookie-service' import { ComponentFixture, TestBed, waitForAsync } from '@...
import type { IDropListPickerProps } from '../../../../components'; export interface IIssueTypeSelectorProps extends Partial<IDropListPickerProps> {}
import { Table } from './table'; const logisticalTable: Table = { name: '物流', guid: 'RTHXp3ghtKXY3GcC', prefix: 'wuhan2020', sheets: [ '工作表1' ], skipHead: 2, columns: [{ name: '物流名称', }, { name: '物流区域', }, { name: '联系方式', }, { name: '发布链接', }, { name: '备注', }, { name: '审核状...
// Copyright (C) 2019-2020 Intel Corporation // // SPDX-License-Identifier: MIT import { MasterImpl } from './master'; export interface Size { width: number; height: number; } export interface Position { x: number; y: number; } export interface Geometry { image: Size; canvas: Size; grid:...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { ILendingPoolConfigurator } from "./ILendingPoolConfigurator"; export class ILendingPoolConfiguratorFactory { static...
export type DragNavProps = { className: string; onDragBegin: () => void; onDragEnd: () => void; } export type DropNavProps = { navigate: () => void; className: string; navigateTo: string; } export type SkillProps = { skill: string; level: number; } export type SkillsProps = { test...
<TS language="nl" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Rechtermuisklik om het adres of label te wijzigen</translation> </message> <message> <source>Create a new address</source> ...
function square(x: number) { return x * x; } square(2, true, "hedgehog");
import { TypeOrmModuleOptions } from '@nestjs/typeorm'; import * as config from 'config'; const dbConfig = config.get('db'); export const typeOrmConfig: TypeOrmModuleOptions = { type: dbConfig.type, host: process.env.RDS_HOSTNAME || dbConfig.host, port: process.env.RDS_PORT || dbConfig.port, usernam...
import { MessageComponentDiscovery, MessageComponentMeta } from '../message-component.discovery'; import { SetMetadata } from '@nestjs/common'; import { MESSAGE_COMPONENT_METADATA } from '../../necord.constants'; export const MessageComponent = (options: MessageComponentMeta) => SetMetadata<string, MessageComponentDi...
import { useCallback, useMemo } from "react" import { atom, useRecoilState } from "recoil" import { encode } from "js-base64" import { CreateTxOptions, Tx, isTxError } from "@terra-money/terra.js" import { AccAddress, SignDoc, PublicKey } from "@terra-money/terra.js" import { MnemonicKey, RawKey, SignatureV2 } from "@t...
export const PAGE_LIMIT = 50;
import db from '../../db/dbConnect'; import { LoginToken } from '../../types/LoginToken'; export async function getLoginTokenById(id: number): Promise<LoginToken> { try { const query = `SELECT id, token, user_id from login_tokens WHERE id = :id`; const [[loginToken]]: [[LoginToken]] = (await db.query(query, ...
import React, { ReactElement } from "react" import styled from "styled-components" // import types import { DatoCmsCategoryFragment, ShopifyProductFragment, ShopifyProductVariantFragment, } from "../../../../graphql/types" // import styles import { CategoryButton } from "../../../../styles/elements" // import store ...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { Provider } from './ProgressProvider'; export const hoc: THoc = (Component, router: TRouter) => { return <Provider router={router}>{Component}</Provider>; };
version https://git-lfs.github.com/spec/v1 oid sha256:ab529a8830570badf2645bacbc3ca3856ef60f8f378fdf88dfeb846cceb283fd size 1484072
import { app, remote } from "electron" import * as path from "path" import * as fs from "fs" import * as request from "request" import * as requestPromise from "request-promise-native" import logger from "./logger" import { ensureDir, pathExists } from "fs-extra" import * as md5File from "md5-file" import { globalReque...
import { ResponseType } from './ResponseType'; import { XHRMethod } from '.'; /** * Request parameters. */ export interface AngularHttpRequestParams { /** * Respnse type. */ responseType?: ResponseType; /** * Content type. */ contentType?: string; /** * Extra headers. ...
declare var Ext: any; import { Injectable } from '@angular/core'; declare var KitchenSink: any; @Injectable() export class CalendarService { constructor() { this.init(); } init = function () { Ext.define('KitchenSink.data.calendar.Util', { singleton: true, filter: function (data, start, e...
import { AfterViewInit, Directive, ElementRef, EventEmitter, Input, Output, Renderer2, OnDestroy, } from '@angular/core'; import { fromEvent, Subject } from 'rxjs'; import { window } from '../utils/facade/browser'; import { distinctUntilChanged, filter, map, pairwise, share, skip, throttle...
import React from 'react'; import { useHistory } from 'react-router-dom'; import { PostEditor } from '../../components/PostEditor/PostEditor'; import { useEditPost, useGetPost } from '../../actions/post.actions'; export const EditPostRoute = ({ match: { params: { id }, }, }) => { const { data, isLoading } = ...
import styled from "styled-components"; import { Link as LinkScroll } from "react-scroll"; interface NavProps { isScrolling?: boolean; isVisible: boolean; } export const Nav = styled.nav<NavProps>` background: ${({ isScrolling, theme }) => isScrolling ? theme.colors.secondary.normal.bg : "transparent"}; b...
import { Component, OnInit, ViewChild } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; @Component({ selector: 'dio-tabela', templateUrl: './tabela.component.html', styleUrls: ['./tabela.component.scss'] }) export class TabelaCom...
import { padLeft } from "../padLeft"; import { testCases } from "./padleft-cases"; describe("padLeft operation", () => { for (const t of testCases) { it(`should padLeft "${t[0]}" to length "${t[0]}" using "${ t[2] }" should be equal to "${t[3]}"`, () => { expect(padLeft(t[0], t[1], t[2])).toBe(t[...
<TS language="id" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klik kanan untuk mengubah alamat atau label</translation> </message> <message> <source>Create a new address</source> <trans...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule, FormsModule } from '@angular/forms'; import { MatFormFieldModule, MatCheckboxModule, MatButtonModule, MatInputModule, MatSnackBarModule, MatSidenavModule, MatToolbarModule, MatDividerMo...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import * as React from 'react'; import { NewTabLink } from '../../../common/components/new-tab-link'; import { productName } from '../../../content/strings/application'; import { BrandWhite } from '../../../icons/brand/whit...
// Type definitions for Highland 2.12.0 // Project: http://highlandjs.org/ // Definitions by: Bart van der Schoor <https://github.com/Bartvds> // Hugo Wood <https://github.com/hgwood> // William Yu <https://github.com/iwllyu> // Alvis HT Tang <https://github.com/alvis> //...
import React from 'react'; import createClass from 'create-react-class'; import { SmallDataTableLoadingSkeleton } from '../../../../index'; export default createClass({ render() { return <SmallDataTableLoadingSkeleton isLoading={true} />; }, });
export { GeneratorProcess, GeneratorError } from './GeneratorProcess'; export { generatorHandler } from './generatorHandler'; export * from './types'; export * from './dmmf';
// - Parse expressions in templates into compound expressions so that each // identifier gets more accurate source-map locations. // // - Prefix identifiers with `_ctx.` or `$xxx` (for known binding types) so that // they are accessed from the right source // // - This transform is only applied in non-browser build...