text stringlengths 10 953k |
|---|
import type BN from 'bn.js';
import { AccountId, Balance, BlockNumber, Hash, Proposal, PropIndex, ReferendumInfoTo239, ReferendumStatus, Vote, ReferendumIndex, VoteThreshold } from '@polkadot/types/interfaces';
import { Vec } from '@polkadot/types';
export interface DeriveDemocracyLock {
balance: Balance;
isDel... |
/* 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 { InstasurePageComponent } from './instasure-page.component';
describe('InstasurePageComponent', () => ... |
import App from './app';
const port = process.env.PORT || 3001;
console.log('### =======================================');
console.log(`Running`);
console.log(`App listening on port ${port}!`);
console.log('### =======================================');
App.app.listen(port); |
/* eslint-disable */
declare module 'fake-indexeddb';
declare module 'full-icu';
declare module ':storybook/components/*';
declare module '*.jpg';
declare module '*.png';
declare const __DEV__: boolean;
declare const jsdom: any;
// MONKEY PATCHING
type RequestIdleCallbackOptions = {
timeout: number;
};
type Requ... |
import { shouldReportParentError } from "../graphqlErrorHandler"
import { GraphQLTimeoutError } from "lib/graphqlTimeoutMiddleware"
import { HTTPError } from "lib/HTTPError"
describe("graphqlErrorHandler", () => {
describe(shouldReportParentError, () => {
it("reports when the error is null", () => {
expect... |
import { Component, OnInit } from '@angular/core';
import { PurchasesService } from 'src/app/services/purchases/purchases.service';
@Component({
selector: 'app-merch-dash',
templateUrl: './merch-dash.component.html',
styleUrls: ['./merch-dash.component.css']
})
export class MerchDashComponent implements OnInit {... |
#!/usr/bin/env node
import process from "process";
import { AllPackages, getDefinitelyTyped } from "@definitelytyped/definitions-parser";
import { loggerWithErrors, NpmPublishClient } from "@definitelytyped/utils";
import { graphql } from "@octokit/graphql";
import search from "libnpmsearch";
import yargs from "yargs"... |
/**
* title: 自定义表单控件
* desc: `Form.Item` 会给自己的直接子节点(必须是唯一子节点)传递 `onChange` 和 `value` 属性,自定义控件只有在调用这个`onChange` 之后,自己的值才能被 `Form.Item` 收集到 。
*/
import { useRef, useState, useEffect } from 'react';
import { Form, Input, Select, Typography } from '@sensoro-design/react';
function CustomInput(props) {
const [stateVal... |
import * as React from "react";
import {
Theme,
createStyles,
withStyles,
WithStyles
} from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import PageContainer from "@/components/PageContainer";
import Language from "./components/Language";
const styles = (theme: Theme) ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ShelfComponent } from './shelf.component';
describe('ShelfComponent', () => {
let component: ShelfComponent;
let fixture: ComponentFixture<ShelfComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
decl... |
/**
* @memberof dep.app.components
* @ngdoc controller
* @name CreateEntityModal
* @description
* CreateEntityModal Component Controller
*/
import "./createEntity.scss";
import { CreateMode } from "./createEntity-enums/CreateMode.enums";
import { ICreateEntityConfig } from "./createEntity-interfaces/ICreateEntity... |
// 1. Make sure to import 'vue' before declaring augmented types
import Vue from 'vue';
import EventBus from "@/shell/EventBus";
// 2. Specify a file with the types you want to augment
// Vue has the constructor type in types/vue.d.ts
declare module 'vue/types/vue' {
// 3. Declare augmentation for Vue
interface... |
import path from 'path'
import hoist from '@pnpm/real-hoist'
import { readWantedLockfile } from '@pnpm/lockfile-file'
test('hoist', async () => {
const lockfile = await readWantedLockfile(path.join(__dirname, '../../..'), { ignoreIncompatible: true })
expect(hoist(lockfile!)).toBeTruthy()
}) |
import { TestNodeModule } from "test-nm";
export interface Test extends TestNodeModule {
} |
declare module "babylonjs-loaders/glTF/glTFValidation" {
import * as GLTF2 from 'babylonjs-gltf2interface';
/**
* Configuration for glTF validation
*/
export interface IGLTFValidationConfiguration {
/**
* The url of the glTF validator.
*/
url: string;
}
/*... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Nomad</source>
<translation>Über Nomad</translation>
</message>
<message>
<location lin... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { NavbarComponent } from './shared/navbar/navbar.component';
import { FirstComponent } from './shared/first/first.component';
const routes: Routes = [
{path:'',redirectTo:'first',pathMatch:'full'},
{path:'first... |
import { WebpackGenius } from '../WebpackGenius';
import { Configuration } from 'webpack';
export const setMode = (genius: WebpackGenius): Configuration['mode'] => {
return genius.isBuild() ? 'production' : 'development';
}; |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder } from "@angular/forms"
import { RxwebValidators } from '@rxweb/reactive-form-validators';
@Component({
selector: 'app-lowerCase-add-validator',
templateUrl: './lower-case-add.component.html'
})
export class LowerCaseAddValidato... |
import { SideBar } from './components/SideBar'
import './styles/global.scss'
import './styles/content.scss'
export function App() {
return (
<div style={{ display: 'flex', flexDirection: 'row' }}>
<SideBar />
</div>
)
} |
import {
Component,
OnInit,
ViewChild,
TemplateRef,
OnDestroy
} from '@angular/core';
import { Router } from '@angular/router';
import { Observable } from 'rxjs';
import { Store, select } from '@ngrx/store';
import {
ModalService,
NavigationService,
OpenApiUploadSpecification,
OpenApiValidationErrorMe... |
import dayjs from "dayjs";
import {
Arg,
Args,
Authorized,
Ctx,
Mutation,
Query,
Resolver,
UseMiddleware
} from "type-graphql";
import { Entity, getRepository } from "typeorm";
import { Stripe } from "../../../api";
import { isAuthorized } from "../../../auth";
import { AppContext } from... |
import passport from "passport";
import { Strategy } from "passport-discord";
const { CLIENT_ID, CLIENT_SECRET, CALLBACK_URL } = process.env;
passport.serializeUser((user, done) => done(null, user));
passport.deserializeUser((obj, done) => done(null, obj));
passport.use(
new Strategy(
{
clientID: CLIENT... |
/// <reference types="core-js" />
/// <reference types="node" />
/// <reference types="marked" />
/// <reference types="prop-types" />
/// <reference types="react" />
/// <reference types="react-dom" />
/// <reference types="react-transition-group" />
/// <reference types="@types/tinycolor2" />
export as namespace Rea... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About MachtCoin</source>
<translation>Over MachtCoin</translation>
</message>
<message>
<loca... |
import { Test, TestingModule } from '@nestjs/testing';
import { StoreproductsController } from './storeproducts.controller';
describe('StoreproductsController', () => {
let controller: StoreproductsController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
contro... |
import { hasFunctionArgument } from './helpers/functionHelper';
import {
IEventEmitter,
IEventListener,
CallbackEvent,
IEventsConfig,
IEventManager,
} from './types';
/**
* Provider function to inject emitter and config into variable scope
* @param emitter event emitter
* @param config config parameters
... |
import {
createApp,
} from 'vue'
import App from './App.vue'
createApp(App).mount('#app') |
import { createClient } from '@supabase/supabase-js';
import dotenv from 'dotenv';
dotenv.config();
import { NFT } from '../types';
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_DB_KEY);
// ID is same as the NFT Address
export async function getNftById(id: string) {
const { data: nft... |
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { Card, Icon, Row, Col, Popconfirm, Switch, List, Layout, Tooltip, Tag, Collapse, Descriptions, Dropdown, Menu, Button } from 'antd';
import {
initVirtualServicePage, initNamespaceDropdownLis... |
import React, { useState, useRef, useMemo, useCallback } from 'react'
import NavigatorItem from './NavigatorItem'
import SidebarTreeForm from '../../../../design/components/organisms/Sidebar/atoms/SidebarTreeForm'
import { NavigatorRow } from '../../../lib/sidebar/useNavigatorTree'
const NavigatorNestedTreeRow = ({
... |
import { forwardRef, Icon, IconProps } from '@queelag/react-core'
import React, { ForwardedRef } from 'react'
/**
* Usage:
*
* ```typescript
* import { IconEventSeat } from '@queelag/react-material-icons'
*
* function App() {
* return <IconEventSeat />
* }
* ```
*
* @category Component
*/
export const Ic... |
import * as ClassNames from 'classnames';
import * as PropTypes from 'prop-types';
import * as React from 'react';
import {bulma, HTMLComponent} from '../../';
import modalStyle from "./modalStyle";
import {Delete, DeleteProps} from "../../elements/delete";
export interface ModalCloseProps extends DeleteProps {
on... |
/*
* 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.
*/
import * as coreClient from "@azure/core-client";
export const ConnectedRegistryListResu... |
import { EventHandler, FormEvent, Component, PureComponent } from "react";
import * as React from "react";
import { nSQL, DatabaseEvent, NanoSQLInstance } from "nano-sql";
interface FormState {
value: string;
}
interface Nothing {}
export class TodoForm extends PureComponent<Nothing, FormState> {
constructo... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About 404</source>
<translation>Over 404</translation>
</message>
<message>
<location line="+... |
import { Vector3, Matrix4 } from "three";
export const AREA_LIGHT = 0;
export const SKY_LIGHT = 1;
export class Light {
public mTheta: number;
public mPhi: number;
public mWidth: number;
public mHeight: number;
public mDistance: number;
public mSkyRadius: number;
public mP: Vector3;
public mTarget: Vec... |
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { UserEntity } from '../shared/entities/user.entity';
@Injectable()
export class RolesGuard implements CanActivate {
constructor(private readonly _reflector: Reflector) {}
canActivate(cont... |
/*
# types.d.ts
# Scalr Type Declarations
*/
/**
# Declarations
*/
export type ScalableObject = { [key: string]: number } & {
[key: number]: number;
};
export type ScalableCollection = number[] | ScalableObject; |
/// <reference types="node" />
import * as inspector from 'inspector';
import consoleLogLevel = require('console-log-level');
import * as stackdriver from '../../types/stackdriver';
import { ResolvedDebugAgentConfig } from '../config';
import { ScanStats } from '../io/scanner';
import * as v8 from '../../types/v8';
exp... |
import React, { PureComponent } from 'react';
import { Rect } from '../../utilities/geometry';
import { PreferredPosition, PreferredAlignment } from './utilities/math';
declare type Positioning = 'above' | 'below';
interface OverlayDetails {
left?: number;
right?: number;
desiredHeight: number;
position... |
import check, {checkCS1, checkCS2} from './support/check';
import validate from './support/validate';
describe('for loops', () => {
it('transforms basic for-of loops into for-in', () => {
check(`
for k of o
k
`, `
for (let k in o) {
k;
}
`);
});
it('transforms for-o... |
import { IVisitorAST } from "../TreeNodes/IVisitorAST";
import { ProgramNode } from "../TreeNodes/ProgramNode";
import { FunctionDefinitionNode } from "../TreeNodes/FunctionDeclarationNode";
import { NumberLiteralNode } from "../TreeNodes/NumberLiteralNode";
import { BooleanLiteralNode } from "../TreeNodes/BooleanLit... |
/**
* 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 writing, software
* distributed ... |
import { RuleDefinition, SketchFileObject } from '@sketch-hq/sketch-assistant-types'
export const duplicateLayerStyles: RuleDefinition = {
rule: async (context) => {
interface Duplicate {
name: string
number: number
object: SketchFileObject
}
var duplicates: Array<Duplicate> = [];
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/**
* @license
* Copyright 2018 Google Inc.
*
* 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 Software without restriction, including without limitation the rights
* to use, copy, modify, merge... |
import {
setUnion,
arrayIntercalate,
toReadonlyArray,
iterableFirst,
iterableFind,
iterableSome,
withDefault
} from "collection-utils";
import { TargetLanguage } from "../TargetLanguage";
import { Type, TypeKind, ClassType, ClassProperty, ArrayType, MapType, EnumType, UnionType } from "../T... |
import { Action } from 'redux';
export const removeListener = (subscriptionState: {active: boolean}, unsubscribe: () => void, listeners: ((action: Action) => void)[], callback: (action) => void) =>
/**
* Removes the listener callback function associated to this object
*/
() => {
listeners.splice(... |
import { TestBed, inject } from '@angular/core/testing';
import { MasterDataService } from './master-data.service';
describe('MasterDataService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [MasterDataService]
});
});
it('should be created', inject([MasterDataService], ... |
import * as React from 'react';
import { SelectorFunction } from '../select';
import { getGlobalContext } from '../../globalContext';
import { observer } from 'mobx-react';
export interface ReactiveTarget extends React.ClassicComponentClass<any> {
nonReactiveComponent?: React.ComponentClass<any>;
nonReactiveS... |
/*
* Copyright OpenSearch Contributors
*
* 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 in the "license" file accompa... |
import { ModuleSessionInfo } from './module-session-info';
import { Injector } from '@graphql-modules/di';
export interface OnRequest<Config = any, Request = any, Context = any> {
onRequest(moduleSessionInfo: ModuleSessionInfo<Config, Request, Context>): Promise<void> | void;
}
export interface OnConnect<Connection... |
/**
* 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.
*/
export const BABEL_CONFIG_FILE_NAME = 'babel.config.js';
export const BUILD_DIR_NAME = 'build';
export const CONFIG_FILE_NAME = 'd... |
import path from 'path';
import { sync } from 'pkg-dir';
import fs from 'fs';
const interpolate = (string: string, data: Record<string, string> = {}) =>
Object.entries(data).reduce((acc, [k, v]) => acc.replace(new RegExp(`%${k}%`, 'g'), v), string);
export function getPreviewBodyTemplate(
configDirPath: string,
... |
export default () => async (dispatch, getState) => {
console.info('THUNK: INIT PRODUCT_EDIT')
} |
module sunui {
/**
* 视图层(Laya2.x)
*/
export class ViewLayerLaya3D extends ViewLayerLaya {
/**
* 执行视图创建成功的回调
*/
onViewCreate(view: IView, args: any): void {
const components: IPopupView[] = (view as any).getComponents(Laya.Component) || [];
for... |
import React from 'react';
import FileOutlined from '@sensoro-design/icons/FileOutlined';
import FilePdfOutlined from '@sensoro-design/icons/FilePdfOutlined';
import FileImageOutlined from '@sensoro-design/icons/FileImageOutlined';
import FileVideoOutlined from '@sensoro-design/icons/FileVideoOutlined';
import FileAudi... |
import { within } from "@testing-library/react-native"
import { FilterParamName } from "app/Components/ArtworkFilter/ArtworkFilterHelpers"
import { renderWithWrappersTL } from "app/tests/renderWithWrappers"
import React from "react"
import { ArtworkFiltersState, ArtworkFiltersStoreProvider } from "../ArtworkFilterStore... |
import { StyleProp, ViewStyle, Animated } from 'react-native'
export interface ProgressState {
percent: number;
prevPercent: number;
valve: Animated.Value;
}
export interface ProgressProps {
style?: StyleProp<ViewStyle>;
percent: number;
showInfo?: boolean;
borderRadius?: string | number;
strokeWidth:... |
export interface PQueueComparator<T> {
(a: T, b: T): number;
}
export default class PQueue<T> {
contents: T[];
private _sorted;
private _comparator;
private _sort();
constructor(comparator: PQueueComparator<T>);
push(item: T): void;
peek(index?: number): T;
pop(): T;
size(): numb... |
import React from 'react'
import { Route, Switch } from 'react-router'
import { AuthProvider } from '../auth/AuthContext'
import { AuthenticatedRoute } from '../auth/AuthenticatedRoute'
import { Callback } from '../auth/Callback'
import { Header } from './Header'
import { Logout } from '../auth/Logout'
import styled fr... |
import * as React from "react";
import CardSpacer from "../../../components/CardSpacer";
import { ConfirmButtonTransitionState } from "../../../components/ConfirmButton/ConfirmButton";
import Container from "../../../components/Container";
import Form from "../../../components/Form";
import Grid from "../../../compone... |
/*
* 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 { EuiButton, EuiIcon, EuiSpacer, EuiTitle } from '@elastic/eui';
impor... |
import { Profile, ReadWriteWallet, WalletData, WalletFlag } from "@arkecosystem/platform-sdk-profiles";
import { createMemoryHistory } from "history";
import React from "react";
import { Route } from "react-router-dom";
import { act, env, fireEvent, getDefaultProfileId, render, renderWithRouter } from "testing-library"... |
import { StringVoidFun } from '../../../constants/CommonTypes';
import { PDB_URL_INTERFACE_BY_ID, PDB_URL_INTERFACE_BY_PROTEIN } from '../../../constants/ExternalUrls';
import { PdbResponseElement } from './StructuralDetail';
import { ReactComponent as ExternalLinkIcon } from "../../../images/external-link.svg"
interf... |
import type { PropType } from 'vue';
import PropTypes from '../../_util/vue-types';
import { initDefaultProps } from '../../_util/props-util';
import {
filterOption as defaultFilterOption,
validateSearch as defaultValidateSearch,
} from './util';
import { PlaceMent } from './placement';
export const mentionsProps ... |
import * as React from 'react';
import * as ReactDOMServer from 'react-dom/server';
import Helmet from 'react-helmet';
import { matchPath, RouteProps, StaticRouter } from 'react-router-dom';
import { Document as DefaultDoc } from './Document';
import { After } from './After';
import { loadInitialProps } from './loadIni... |
export declare class KeyExpression {
static parse(input: string): KeyExpression;
readonly ctrl: boolean;
readonly alt: boolean;
readonly shift: boolean;
readonly key: number;
readonly exclusive: boolean;
private constructor();
matches(keyData: KeyExpression | KeyboardEvent): boolean;
} |
import React, { useState, useEffect } from 'react';
import { content } from "../../content"
import { StoredWord } from "../../interfaces/storedWord"
interface Props { }
/**
* Table to display a dynamic list of words which are blocked by the extension.
*
* @returns {JSX.Element}
*/
const ContentTable: React.FC<P... |
// - Import react components
import moment from 'moment/moment'
import _ from 'lodash'
// - Import domain
import { User } from 'core/domain/users'
import { Circle, UserTie } from 'core/domain/circles'
// - Import action types
import { CircleActionType } from 'constants/circleActionType'
import { CircleState } from '... |
import DirectLinkingBackend from './backend'
export type Annotation = any
// This thing sends the annotation back to the tab once it's loaded
export type AnnotationSender = ({ annotation, tabId }: { annotation: Annotation, tabId: string }) => void
export interface AnnotationRequest {
memexLinkOrigin: string
... |
// import { Connection, OpenVidu, Publisher, Session, Subscriber, Stream } from 'openvidu-browser';
export class MockOpenVidu {
openVidu: MockOpenViduInternal;
}
export class MockSession {
}
export class MockPublisher {
}
export class MockSubscriber {
}
/**
* PRIVATE CLASSES
*/
export class MockConnection {... |
/*
* spurtcommerce
* version 3.0
* http://www.spurtcommerce.com
*
* Copyright (c) 2019 piccosoft ltd
* Author piccosoft ltd <support@piccosoft.com>
* Licensed under the MIT license.
*/
export class BanneraddModel {
public title: string;
public content: string;
public image: string;
public link: string;... |
import React from 'react';
import { observer } from 'mobx-react';
import { Link, useHistory, useLocation, useParams } from 'react-router-dom';
import { Form, Input, Button, Checkbox, message } from 'antd';
import { useTranslation } from 'react-i18next';
import { NaviLink, ProviderWrapper } from '../CustomStyled';
impor... |
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* ListEventTrackersInput shape
*/
export interface ListEventTrackersInput {
/**
* <p>The ARN of a dataset group used to filter the response.</p>
*/
datasetGroupArn?: string;
/**... |
import { IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs';
/**
* @name Appodeal
* @description
* Plugin to serve ads through native Appodeal SDKs
*
* @usage
* ```
* import { Appodeal } from '@ionic-native/appodeal';
*
* constructor(private appodeal: Appodeal) {
*
* const ap... |
import Button from 'components/Button'
import * as S from './styles'
export type HighlightProps = {
title: string
subtitle: string
backgroundImage: string
floatImage?: string
buttonLabel: string
buttonLink: string
alignment?: 'right' | 'left'
}
const Highlight = ({
title,
subtitle,
backgroundImage... |
import * as React from 'react';
function SvgYouTube(
props: React.SVGProps<SVGSVGElement>,
svgRef?: React.Ref<SVGSVGElement>
) {
return (
<svg
width="1.5em"
height="1.5em"
strokeWidth={1.5}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
color="cur... |
import { createContext, useContext } from "react";
import GameStore from "stores/GameStore";
const gameStoreContext = createContext<GameStore | undefined>(undefined);
gameStoreContext.displayName = "GameStoreContext";
export const GameStoreProvider = gameStoreContext.Provider;
// Can be used only inside GameRouting... |
<TS language="sn" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Gadzira Kero Itsva</translation>
</message>
<message>
<source>&New</source>
<translation>Itsva</translation>
</message>
<messag... |
/*
MIT License
Copyright (c) 2021-present, Elastic NV
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 Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... |
import React from 'react';
import {
ActivityIndicator,
View,
StyleSheet,
Text,
Dimensions,
} from 'react-native';
import {colors} from '../styles/colors';
import {IError} from '../interfaces/error';
import {ErrorImg} from './ErrorImg';
interface Props {
children: JSX.Element | JSX.Element[];
loading: boo... |
export class ShoppingList{
} |
import { SettingsState } from './settings.model';
import { SettingsActions, SettingsActionTypes } from './settings.actions';
export const initialState: SettingsState = {
language: 'es',
theme: 'DEFAULT-THEME',
pageAnimations: true,
elementsAnimations: true
};
export function settingsReducer(
state: Settings... |
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute, NavigationExtras } from '@angular/router';
import { NewsSearchApiService } from '../news-search-api.service';
@Component({
selector: 'app-search-results',
templateUrl: './search-results.component.html',
styleUrls: ['./search-resu... |
import { CacheManger } from "./CacheManger";
import { Utils } from "./Utils";
import { Pool } from "./Pool";
/**
* @private
* 基于个数的对象缓存管理器
*/
export class PoolCache {
//TODO:
/**
* 对象在Pool中的标识
*/
sign: string;
/**
* 允许缓存的最大数量
*/
maxCount: number = 1000;
/**
* 获取缓... |
<TS language="hi_IN" 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>
... |
import React from 'react';
import { motion } from 'framer-motion';
const fadeInUpParent = {
visible: {
transition: {
staggerChildren: 0.05,
},
},
};
const fadeInUpChild = {
hidden: {
opacity: 0,
y: 10,
},
visible: {
opacity: 1,
y: 0,
},
};
function Skill() {
return (
<... |
// Packages
import {TweenLite} from 'gsap';
import {CurrentIntermission} from '../../../../src/types/schemas/currentIntermission';
import {Interview, Run, Runner, ScheduleItem} from '../../../../src/types';
import {InterviewNames} from '../../../../src/types/schemas/interview_names';
import DashLowerthirdNameInputElem... |
import {
action,
autorun,
computed,
observable
} from 'mobx';
import { decode } from 'jwt-simple';
import { SessionToken } from 'gearworks-route';
import { User } from 'app';
const AUTH_STORAGE_NAME = "gearworks-auth";
class AuthStoreFactory {
constructor() {
this.token = localStorage.... |
import { FC } from 'react';
interface Props {
title: string;
setPage: (prams: string) => void;
}
const buttons: FC<Props> = ({ title, setPage }) => {
return <button onClick={() => setPage(`${title}`)} >{title}</button>
};
export default buttons; |
import { diBinder as hikeDiBinder } from './resolvers/hike';
import { diBinder as hikeGroupsDiBinder } from './resolvers/hike-groups';
import { diBinder as imageDiBinder } from './resolvers/image';
import { diBinder as poiDiBinder } from './resolvers/poi';
export const diBinder = (container: Container): void => {
hi... |
import jwt from 'jsonwebtoken';
import Payload from './payload';
import * as config from '../config';
import VerifyUserError from '../exceptions/VerifyUserError';
import AuthorizeUserError from '../exceptions/AuthorizeUserError';
function verifySignature(signature: string): string {
try {
const decoded = jwt.ver... |
// Copyright 2018 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 { browser, by, element } from 'protractor';
export class NgFormPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
} |
import { Test, TestingModule } from '@nestjs/testing';
import { QueueController } from './queue.controller';
import { QueueConfigService } from '../services/queue-config.service';
import { QueueService } from '../services/queue.service';
import { MapVoteService } from '../services/map-vote.service';
class QueueConfigS... |
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import * as ɵngcc0 from '@angular/core';
export declare class NbAuthBlockComponent {
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<NbAuthBlockComponent, never>;
... |
import { enableProdMode, NgZone } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { Router } from '@angular/router';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import { singleSpaAngular, getSingleSpaEx... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.