text
stringlengths
10
953k
import {createStoreNotifier} from '@codeimage/store/plugins/store-notifier'; import {createRoot} from 'solid-js'; import {createStore} from 'solid-js/store'; import {appEnvironment} from '@core/configuration'; export interface EditorUIOptions { readonly fontId: string; readonly fontWeight: number; readonly showL...
export class User { userId:number; email:string; password:string; firstName:string; lastName:string; numberPosts: number; birthDate:string; }
// Copyright 2020 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, EventEmitter, OnInit, DoCheck, ApplicationRef, HostBinding } from '@angular/core'; import { GlobalEventDispatcher } from 'ngx-planet'; import { ProjectService } from './projects.service'; import { ThyDialog } from 'ngx-tethys/dialog/dialog.service'; import { ProjectDetailComponent } from './detail/d...
import { Injectable, Logger } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { IUserInformation } from '../schemas/definitions/users.interface'; import { UserInformation, UserInformationDocument, } from '../schemas/users-info.schema'; import { UserInf...
import Configuration from './shared/config/Configuration'; import NumberLength from './core/NumberLength'; import AbstractRandomNumber from './core/AbstractRandomNumber'; import RandomNumber from './core/RandomNumber'; import RandomNumberTimestampBased from './core/RandomNumberTimestampBased'; export { Configuration }...
import {RerunConfig, zebrunnerConfig} from './ZebrunnerReporter'; const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; const ffmpeg = require('fluent-ffmpeg'); ffmpeg.setFfmpegPath(ffmpegPath); let UAParser = require('ua-parser-js'); let parser = new UAParser(); export type testResult = { suiteName: string; ...
import {BasicProgram, decodeBasicProgram} from "./Basic"; import {Cassette, decodeCassette} from "./Cassette"; import {CmdProgram, decodeCmdProgram} from "./CmdProgram"; import {RawBinaryFile} from "./RawBinaryFile"; import {decodeJv1FloppyDisk, Jv1FloppyDisk} from "./Jv1FloppyDisk"; import {decodeJv3FloppyDisk, Jv3Flo...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Params } from '@angular/router'; import { Location } from '@angular/common'; import { Modal } from '../modal'; import { PictureService } from '../picture.service'; @Component({ selector: 'app-modal-div', templateUrl: './modal-div.component...
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { Category } from 'app/models/category'; import { CategoryService } from 'app/services/category.service'; import { AuthService } from 'app/services/auth.service'; import { MatDialog } from '@angular/material/dialog'; import { ConfirmationD...
import { Wave } from "./Wave"; export interface WaveSet { waves: Record<string, Wave>; }
import dataSearch from "../dataSearch"; type dataType = { hasDiscount: boolean; name: string; images: string[]; description: string; price: string; discountValue: string; material: string; category: string; id: string; locale: string; }; export default function dataFilter( newData: dataType[], ...
import * as b from "bobril"; import { IBaseElementDataWithChildren, BaseElement } from "./BaseElement"; export const toastHeaderStyles = { toastHeader: b.styleDef("toast-header"), }; export interface IToastHeaderData extends IBaseElementDataWithChildren {} export class ToastHeader extends BaseElement<IToastHeade...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { AppPl...
/* ****************************************************************************** * Copyright (c) 2021 Julian Rüth <julian.rueth@fsfe.org> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
import { isUsable } from 'af-conditionals'; import { RegExpPropertyOptions } from '../regexp-property'; import { StringValidator, StringValidatorOptions } from './string-validator'; export interface RegExpValidatorOptions extends StringValidatorOptions { // This is marked option here to make implementing a default ...
// Copyright 2017-2022 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Observable } from 'rxjs'; import type { ObsInnerType } from '@polkadot/api-base/types'; import type { EraIndex } from '@polkadot/types/interfaces'; import type { ExactDerive } from '../derive'; impor...
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React, { useEffect } from 'react'; import { useHistory } from 'react-router-dom'; import { RosterAttendee, useAttendeeStatus, PopOverItem, useMeetingManager } from 'amazon-chime-sdk-compone...
import {Language} from '@taiga-ui/i18n/interfaces'; import {TUI_FRENCH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_FRENCH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; import {TUI_FRENCH_LANGUAGE_ADDON_PREVIEW} from './addon-preview'; import {TUI_FRENCH_LANGUAGE_ADDON_TABLE} from './addon-table'; imp...
import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; @Component({ moduleId: module.id, selector: 'select-demo', templateUrl: 'select-demo.html', styleUrls: ['select-demo.css'], }) export class SelectDemo { isRequired = false; isDisabled = false; currentDrink: strin...
import { inBrowser } from '../utils'; import { Ref, onMounted, onActivated, onDeactivated, onBeforeUnmount, } from 'vue'; // @Experimental export function useVisibilityChange( target: Ref<Element | undefined>, onChange: (visible: boolean) => void ) { // compatibility: https://caniuse.com/#feat=intersec...
import * as React from 'react'; import { of, Observable, NEVER, asapScheduler, merge } from 'rxjs'; import { filter, switchMap, observeOn } from 'rxjs/operators'; import { useFormContext, FormContext, IFormContext } from './context'; import { useValue$ } from './hooks'; import { FieldModel, FieldArrayModel, isFie...
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; import { IqkeyboardmanagerComponent } from './iqkeyboardmanager.component'; @NgModule({ imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path:...
/* * 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 * as React from 'react'; import { mountWithIntl } from 'test_utils/enzy...
import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { StoreModule } from '@ngrx/store'; import { BrowserModule } from '@angular/platform-browser'; import { StoreDevtoolsModule } from '@ngrx/store-devtools'; import { EffectsModule } from '@ngrx/effects'; import { Sto...
import { ServiceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceCatalogClient"; import { ListPortfoliosInput, ListPortfoliosOutput } from "../models/index"; import { deserializeAws_json1_1ListPortfoliosCommand, serializeAws_json1_1ListPortfoliosCommand } from "../protocols...
import React, { useState } from "react"; import CommonRecord from "../components/CommonRecord"; import IgnoreList from "../components/IgnoreList"; import DataManager from "../components/DataManager"; import { makeStyles, Theme } from "@material-ui/core/styles"; import AppBar from "@material-ui/core/AppBar"; import Tab...
import { Module } from '@nestjs/common'; import { SequelizeModule } from '@nestjs/sequelize'; import { PhotoController } from './photo.controller'; import { PhotoService } from './photo.service'; import { AlbumService } from '../album/album.service'; import { Photo } from './photo.model'; @Module({ imports: [Sequeli...
import React, { useState, useEffect } from 'react'; import { Form, Popover } from 'antd'; import type { FormItemProps, PopoverProps } from 'antd'; import type { NamePath } from 'rc-field-form/lib/interface'; import './index.less'; import { LoadingOutlined } from '@ant-design/icons'; interface InlineErrorFormItemProps...
import { Router } from "express" import { ProductTag } from "../../../.." import { PaginatedResponse } from "../../../../types/common" import middlewares from "../../../middlewares" import "reflect-metadata" const route = Router() export default (app) => { app.use("/product-tags", route) route.get("/", middlewar...
// #docplaster // #docregion import { provideRouter } from '@angular/router'; import { CrisisListComponent } from './crisis-center/crisis-list.component'; import { HeroesRoutes } from './heroes/heroes.routes'; export const routes = [ ...HeroesRoutes, { path: '/crisis-center', component: CrisisListCom...
import { ControlAction } from '@src-shared/control-structure/models'; import { Repository } from '@src-shared/rxdb-repository/Repository'; import { StpaBaseQuery } from '@stpa/src/main/repositories/StpaBaseQuery'; import { inject, injectable } from 'inversify'; import { StpaDBConnector } from '../../../StpaDBConnector'...
import {Provider} from '@loopback/context'; import {repository} from '@loopback/repository'; import {VerifyFunction} from 'loopback4-authentication'; import {AuthClientRepository} from '../../../repositories'; import {UserRepository} from '../../../repositories'; export class ClientPasswordVerifyProvider implements ...
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions, } from "@aws-sdk/smithy-client"; /** * Base exception class for all service exceptions from DataSync service. */ export class DataSyncServiceException extends __ServiceException { /** * @internal */ c...
import * as _ from 'lodash'; import { k8sGet, k8sPatch, SecretKind } from '@console/internal/module/k8s'; import { compareOwnerReference } from '@console/shared/src/utils/owner-references'; import { getLabels, getOwnerReferences } from '@console/shared/src'; import { SecretModel } from '@console/internal/models'; impor...
import { IP } from "types"; export const baseIP: IP = { continent: { code: "EU", geonameId: 6255148, names: { en: "Europe", }, }, country: { geonameId: 3017382, isInEuropeanUnion: true, isoCode: "FR", names: { en: "France", }, }, traits: { isAnonymous: fals...
interface InteractivModel { 'M': number; 'N': number; } interface InteractivModelItem { 'm_Rd': number, 'n_Rd': number, 'fs1': number; 'fs2': number; 'fc': number; 'sig_c': number; 'sig_s1': number; 'sig_s2': number; 'eps_s1': number; 'eps_s2': number; 'eps_c1': numb...
import { HttpParamStyles, IMediaTypeContent } from '@stoplight/types'; import { JSONSchema } from '../../..'; import { validate, findContentByMediaTypeOrFirst } from '../body'; import { assertRight, assertLeft, assertSome } from '@stoplight/prism-core/src/__tests__/utils'; describe('validate()', () => { describe('co...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Boocoin</source> <translation>Σχετικά με το Boocoin</translation>...
// Copyright 2020 Google Inc. Use of this source code is governed by an // MIT-style license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. import {Subject, Observable} from 'rxjs'; import {PacketTransformer} from './packet-transformer'; describe('packet transformer', () => { l...
import { Pipe, PipeTransform } from '@angular/core'; import { Job } from './job'; @Pipe({ name: 'filter' }) export class FilterPipe implements PipeTransform { transform(items: Job[], searchText: string): Job[] { if(!items) return []; if(!searchText) return items; searchText = searchText.toLowerCase();...
import { Injectable, EventEmitter } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { environment } from '@environments/environment'; @Injectable({ providedIn: 'root', }) export class ClientService { toggleEditControl: EventEmitter<boolean> = new EventEmitter<boolean>(); saveClien...
// Generated by https://quicktype.io export interface PokemonI { abilities: Ability[]; base_experience: number; forms: Species[]; game_indices: GameIndex[]; height: number; held_items: any[]; id: ...
Page({ data: { lists: [ { key: 0, label: '测试' }, { key: 1, label: '测试' }, { key: 2, label: '测试' }, { key: 3, label: '测试', disabled: true }, ], activeItem: 3, disabled: true, value1: '选中', value2: '选中', value3: '选中', }, onShow() {}, change(event: WechatMiniprog...
/** * @file Leaves 树叶 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime'; export default IconWrapper( 'leaves', true, (h: IconHelper, props: ISvgIconProps) => ( <svg ...
import React, { Fragment } from "react"; import { withRouter, RouteComponentProps } from "react-router-dom"; import { SafeJSURL } from "src/general_utils"; import { secondaryColor } from "src/style_constants/index"; import { StatelessModal } from "./StatelessModal"; type ModalButtonProps = RouteComponentProps<{ op...
import {Component, Type} from '@angular/core'; import {TestBed, waitForAsync} from '@angular/core/testing'; import {initTestEnvironment} from '../../../testing'; import {HelpersModule} from './module'; @Component({template: '{{ value | networkConnectionFamily }}'}) class TestFamilyComponent { value: string|undef...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_CL" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Bitcoin</source> <translation>Sobre Bitcoin</translation> </me...
/*! * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required ...
import React, { useContext } from "react" import Box from "@material-ui/core/Box" import Grid from "@material-ui/core/Grid" import Typography from "@material-ui/core/Typography" import Img from "gatsby-image" import { Link, navigate } from "gatsby" import parse from "html-react-parser" import PostActionButton from ".....
export type AmplifyDependentResourcesAttributes = { "auth": { "awsdisaster4ddd7f5c": { "IdentityPoolId": "string", "IdentityPoolName": "string", "UserPoolId": "string", "UserPoolArn": "string", "UserPoolName": "string", "AppClientIDWeb"...
import { AccessLevel, User } from '../data/entities/user'; import { Request, Response, NextFunction } from 'express'; import { UnauthorizedError, ForbiddenError } from '../errors'; export interface RouteComparer { minimumAccessLevel?: AccessLevel; preExecAuth?: (user: User, req: Request) => boolean | Promise<boole...
import React from "react"; import { render, screen } from "@testing-library/react"; import StatsRow from "../index"; describe("<StatsRow />", () => { test("renders without errors", () => { render( <StatsRow icon="star" labelKey="widget.github-stats.stars" value={12347} /> ...
/** * Xero Payroll AU * This is the Xero Payroll API for orgs in Australia region. * * The version of the OpenAPI document: 2.2.10 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manua...
import { NextFieldType, CacheHint, IndividualFieldAccessControl, FieldReadAccessArgs, BaseGeneratedListTypes, ItemRootValue, schema, FindManyArgsValue, KeystoneContext, } from '@keystone-next/types'; import { GraphQLResolveInfo } from 'graphql'; import { validateFieldAccessControl, validateNonCreateLi...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MtxSplitComponent } from './split.component'; import { MtxSplitPaneDirective } from './split-pane.directive'; @NgModule({ imports: [CommonModule], declarations: [MtxSplitComponent, MtxSplitPaneDirective], exports:...
import { mount } from '@vue/test-utils' import { CNavItem as Component } from '../../../index' const ComponentName = 'CNavItem' const defaultWrapper = mount(Component, { propsData: {}, slots: { default: 'Default slot', }, }) const customWrapper = mount(Component, { propsData: { href: '/bazinga', ...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { SetParameterComponent } from './set-parameter.component'; describe('SetParameterComponent', () => { let component: SetParameterComponent; let fixture: ComponentFixture<SetParameterComponent>; beforeEach(async () => { await TestBed....
/* * Copyright © 2019 Cask Data, 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...
declare module '@salesforce/design-system-react/components/accordion' { import React from 'react'; type Props = { /** * CSS class names to be added to the accordion component. _Tested with snapshot testing._ */ className?: any[] | Record<string, any> | string; /** * HTML id for accordion component. _Te...
/* * 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 React, { Component } from 'react'; import { TabsWrapper, TabsHeader, TabsAdditionalHeaderContent, TabsContent, } from './styled'; import { TabProps } from './Tab'; interface Props { additionalHeaderContent?: React.ReactNode; defaultActiveTabIndex?: number; } interface State { activeTabIndex: nu...
import assert from 'static-type-assert' import * as iter from '../index' assert< IterableIterator<0 | 1 | 2> >(iter.range(3)) assert< IterableIterator<number> >(iter.range(200)) assert< IterableIterator<number> >(iter.range({ start: 2 }))
declare module '@ailhc/broadcast' { /** * @author AILHC 505126057@qq.com */ export class Broadcast<MsgKeyType extends broadcast.IMsgKey, ValueType = any, ResultType = any> implements broadcast.IBroadcast<MsgKeyType, ValueType, ResultType> { keys: { [key in keyof MsgKeyType]: MsgKeyType[key]; };...
import { Component, OnInit, ViewChild } from '@angular/core'; import { CalendarComponent } from 'ng-fullcalendar'; import { Options } from 'fullcalendar'; import { GeneralService } from '../../general.service'; import { SchoolCalendar } from '../../calendar'; @Component({ selector: 'app-mycalendar', templateUrl:...
import {XHRBackend, Http, RequestOptions} from "@angular/http"; import {InterceptedHttp} from "../helpers/http.interceptor"; export function HttpService (xhrBackend: XHRBackend, requestOptions: RequestOptions): Http { return new InterceptedHttp(xhrBackend, requestOptions); }
import { distinctUntilChanged } from './distinctUntilChanged'; import { MonoTypeOperatorFunction } from '../types'; /* tslint:disable:max-line-length */ export function distinctUntilKeyChanged<T>(key: keyof T): MonoTypeOperatorFunction<T>; export function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare: ...
import { Injectable } from '@nestjs/common' import { InjectModel } from '@nestjs/mongoose' import { Model } from 'mongoose' import { IBook } from './interface/book.interface' import { BOOK_MODEL } from '@/common/constants' import { BaseService } from '@/common/services/base.service' @Injectable() export class BookSer...
import { ApsLoaderModule } from './../../aps-loader/aps-loader.module'; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { BootstrapV3Component } from './bootstrap-v3.component'; import { TableComponent } from './table/table.component'; import { ButtonTypesComponent } fr...
import { PlayerModel, Role } from '@dirtleague/common'; import { ReactElement, useCallback, useEffect, useState } from 'react'; import { Link, useRouteMatch } from 'react-router-dom'; import { Table, Button, Menu, Icon, Modal, Grid, Dropdown, } from 'semantic-ui-react'; import IfAuthorized from '../../com...
/* tslint:disable */ import { ConcreteFragment } from "relay-runtime"; declare const _SuggestedGenesContent_suggested_genes$ref: unique symbol; export type SuggestedGenesContent_suggested_genes$ref = typeof _SuggestedGenesContent_suggested_genes$ref; export type SuggestedGenesContent_suggested_genes = ReadonlyArray<{ ...
import Knex from 'knex'; export async function up(knex: Knex) { return knex.schema.createTable('classes', table => { table.increments('id').primary(); table.string('subject').notNullable(); table.decimal('cost').notNullable(); table.integer('teacher_id') .notNullable() .references('id') ...
import { GraphModule } from "vesper"; import { AuthController } from "./AuthController"; import { Token } from "./model/Token"; import { TokenController } from "./TokenController"; export interface IAuthConfig { refreshToken: { expiresIn: string; maxSavedTokens: number; }; accessToken: { expiresIn: string; }...
import { ipcMain } from 'electron'; import { spawn } from 'child_process'; export const HAHAHA = () => { ipcMain.on('Command', (event, arg) => { const ls = spawn("npm", ["start"], { cwd: '/Users/saiumeshdhanewar/Desktop/programming/react/my-app' }); ls.stdout.on("data", data =>...
import { EventData } from 'tns-core-modules/data/observable'; import { Button } from 'tns-core-modules/ui/button'; import { StackLayout } from 'tns-core-modules/ui/layouts/stack-layout'; import * as imageModel from 'nativescript-image'; export function onSetTap(args: EventData) { const button = args.object as Butt...
import { Test, TestingModule } from "@nestjs/testing"; import { CommandBus, EventBus } from "@nestjs/cqrs"; import { clearRepositories, TestEnvironment } from "src/@test/cqrs"; import { EnterQueueHandler } from "src/mm/queue/command/EnterQueue/enter-queue.handler"; import { EnterQueueCommand } from "src/mm/queue/comman...
export interface Response<T> { meta: any; payload: T; }
import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { StoreModule } from '@ngrx/store'; import { EffectsModule } from '@ngrx/effects'; import { TOKENS_FEATURE_KEY, initialState as tokensInitialState, tokensReducer } from './+state/tokens.reducer'; import...
import { browser, by, element } from "protractor"; // tslint:disable-next-line:no-import-side-effect import "tslib"; describe("App", () => { beforeEach(async () => { await browser.get("/"); }); it("should have a title", async () => { const subject: string = await browser.getTitle(); const result: string = "S...
import React, { useState, forwardRef, LegacyRef, useRef, useEffect, useContext } from 'react'; import classNames from 'classnames'; import SlideDown from 'react-slidedown'; import { createPopper } from '@popperjs/core'; import ResizeObserver from 'resize-observer-polyfill'; import { SidebarContext } from '../ProSidebar...
export interface ChatInstance { _id: string author: string text: string } export interface ChatState { input: string messages: ChatInstance[] username: string threadID?: string invite?: string }
export const ItalianPizza = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="sndvll-food-icons icon-italian-pizza"> </svg>`
export const dbName = 'ZKC_OAK_BOARD_DATABASE' export const tokenName = 'ZKC_OAK_BOARD_TOKEN' // Github export const endpoint = 'https://api.github.com/graphql' // export const clientId = 'Iv1.62bf0a93fb9ae255' export const clientId = '9c668b814363151ab785' // export const clientSecret = 'acc0c7f72b3237d4349bb10bdb0e...
/** * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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 require...
/** * alias for a constructor type */ export type Class<T> = new (...args: any[]) => T; export class Dynamic { } /** * */ export type ParameterDecorator = ( target: any, propertyKey: PropertyKey, index: number ) => any; /** * represents a location in a region (memory arena) */ export class Address { ...
import { memo, FC } from 'react'; interface ICardsIconProps { className?: string; } const CardsIcon: FC<ICardsIconProps> = (props) => { const { className } = props; return ( <svg className={className} viewBox="0 0 24 24" fill="currentColor"> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 ...
import { Component, OnInit } from '@angular/core'; import { CompleterService } from '@akveo/ng2-completer'; import { DefaultEditorComponent } from './default-editor.component'; @Component({ selector: 'lib-completer-editor', template: ` <ng2-completer [(ngModel)]="completerStr" [dataService]...
<TS language="zh_CN" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>右键点击编辑地址或标签</translation> </message> <message> <source>Create a new address</source> <translation>创建新的地址</translation> ...
import React from 'react'; import { styled } from '@kitten/theme'; import { BaseDatepickerComponent, BaseDatepickerProps, } from './baseDatepicker.component'; import { Calendar, CalendarElement, CalendarProps, } from '../calendar/calendar.component'; export type DatepickerProps<D = Date> = BaseDatepickerProp...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AppComponent } from './app.component'; import { MenuService } from './core/menu/menu.service'; import { HomeComponent } from './views/home/home.component'; import { NotFoundComponent } from './views/not-found/not-...
import _ from 'lodash'; import ajax from 'services/ajax'; import { useDummyData } from 'common/injectGlobals'; import queryString from 'querystring'; import { Group } from 'common/typedefs/Group'; import dummyGroups from './dummyData/groups'; export const getGroups = ({ offset = 0, limit = 20, query, userId, ...
import {TwirpOptions} from "./twirp-options"; import {createTwirpRequestHeader, parseMetadataFromResponseHeaders, parseTwirpErrorResponse} from "./twirp-format"; import { ClientStreamingCall, Deferred, DuplexStreamingCall, mergeRpcOptions, MethodInfo, RpcError, RpcMetadata, RpcOptions, ...
import React, { FC, ReactNode, ComponentProps } from 'react' import { AppProvider, AppContext, AppTypes } from './app' import { I18nProvider, I18nContext, I18nTypes } from './i18n' const combineComponents = ( ...components: FC<{ children?: ReactNode }>[] ): FC<{ children?: ReactNode }> => { return components.reduc...
class C { async foo() { } }
/** * Copyright 2017-2021, Voxel51, Inc. */ import { Optional, StateUpdate, VideoState } from "../state"; import { BaseElement, Events } from "./base"; import { muteUnmute, playPause, resetPlaybackRate, supportLock, } from "./common/actions"; import { lookerControlActive, lookerClickable, lookerTime, }...
import {expect, test} from '@oclif/test' describe('cms:m-make', () => { test .stdout() .command(['cms:m-make']) .it('runs hello', ctx => { expect(ctx.stdout).to.contain('hello world') }) test .stdout() .command(['cms:m-make', '--name', 'jeff']) .it('runs hello --name jeff', ctx => { expect(c...
import { ConfirmOptions, Connection, PublicKey, sendAndConfirmTransaction, Signer, Transaction, TransactionSignature, } from '@paychains/web3.js'; import { TOKEN_PROGRAM_ID } from '../constants'; import { createMintToCheckedInstruction } from '../instructions'; import { getSigners } from './...
export default function isSortable( value: unknown, ): value is boolean | number | string { return ( typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string' ); }
import { SelectShortenDemoComponent } from './select-shorten-demo.component'; import { SelectShortenPipe } from "./select-shorten.pipe"; import { SelectShortenComponent } from "./select-shorten.component"; import { async, TestBed, ComponentFixture, ComponentFixtureAutoDetect } from '@angular/core/testing'; import { By...
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import IconButton from '@material-ui/core/IconButton' import Badge from '@material-ui/core/Badge' import IconNotifications from '@material-ui/icons/Notifications' import Menu from '@material-ui/core/Menu' import List from '@material-ui/cor...