text stringlengths 10 953k |
|---|
var Universes={
"Universe08": {
"GlobalSchema": {
"name": "GlobalSchema",
"properties": {
"key": {
"name": "key",
"range": "StringType",
"domain": "GlobalSchema"
},
"value": {
"name": "value",
"range": "SchemaString",
... |
import { UserIterator } from "./Iterators"
export class MailService {
static sendMail(iterator: UserIterator, text: string): void {
while(iterator.hasMore()){
let user = iterator.getNext()
console.log(`Email sent to ${user.email} with text '${text}'`)
}
}
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------------------------... |
import { MDXRemoteSerializeResult } from 'next-mdx-remote'
import { PostFrontMatterDto } from '../../dto/PostFrontMatter.dto'
export type GetOnePostArgs = {
slug: string
}
export type GetOnePostResult = {
frontMatter: PostFrontMatterDto
slug: string
source: MDXRemoteSerializeResult
} |
import {Disposable} from "atom"
export function listen<T extends keyof HTMLElementEventMap>(
element: HTMLElement,
event: T,
selector: string,
callback: (event: HTMLElementEventMap[T]) => void,
): Disposable {
const bound = (evt: HTMLElementEventMap[T]) => {
const sel = (evt.target as HTMLElement).closes... |
<TS language="hr_HR" version="2.1">
<context>
<name>AddNewAddressDialog</name>
<message>
<source>Address</source>
<translation>Adresa</translation>
</message>
</context>
<context>
<name>AddNewContactDialog</name>
<message>
<source>TextLabel</source>
<translation>T... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MeetingFilesComponent } from './meeting-files.component';
import { FilePickerModule } from '@blockframes/media... |
import React from 'react';
import { Route } from 'react-router';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
type Props = Readonly<{
children: React.ReactNode;
}>;
export default ({ children }: Props) => (
<Route
render={({ location }) => (
<TransitionGroup cla... |
import React, { useMemo, useState } from 'react';
import { scaleOrdinal } from '@vx/scale';
import { LinearGradient } from '@vx/gradient';
import { Drag, raise } from '@vx/drag';
import { WidthAndHeight, ShowProvidedProps } from '../../types';
const colors = [
'#025aac',
'#02cff9',
'#02efff',
'#03aeed',
'#03... |
/* eslint-disable import/first */
import 'react-styleguidist/lib/client/polyfills'
import 'react-styleguidist/lib/client/styles'
import ReactDOM from 'react-dom'
import { getParameterByName, hasInHash } from 'react-styleguidist/lib/client/utils/handleHash'
import renderStyleguide from './utils/renderStyleguide'
// Exa... |
/**
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* 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... |
import {
describe, beforeEach, afterEach, it,
} from 'mocha';
import { expect } from 'chai';
import faker from 'faker';
import sinon from 'sinon';
import sinonTest from 'sinon-test';
import Order from 'src/models/order.model';
import OrderService from 'src/services/order.service';
import { OrderStatus } from 'src/co... |
/* 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 { OptionsComponent } from './options.component';
describe('OptionsComponent', () => {
let component: ... |
/*
* Copyright 2021 Collate
* 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,... |
import { groupBy } from 'lodash-es';
import { Card } from 'franklin-sites';
import EntrySection, {
getEntrySectionNameAndId,
} from '../../types/entrySection';
import { UIModel } from '../../adapters/sectionConverter';
import FeaturesView from '../protein-data-views/UniProtKBFeaturesView';
import XRefView from '../p... |
/**
* @fileoverview Abstract syntax tree representing a source file once parsed.
*
* Each node in the AST is represented by an instance of a subclass of `Node`,
* with its `Node#kind` represented by one of the `NodeKind` constants, which
* dependent code typically switches over. The intended way to create a node
... |
export default {
uniforms: {
tDiffuse: { value: null },
tAdd: { value: null },
},
vertexShader: `
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}`,
fragmentShader: `
uniform sampler2D tDiffuse;
uniform ... |
import { MatchModel, Player, PlayerModel, ResultModel, connection } from '@team-scott/pong-domain';
import dotenv from 'dotenv';
import faker from 'faker';
import moment from 'moment';
dotenv.config();
(async () => { await connection(process.env.MONGO_URL! )})();
const chance = (percent: number) => Math.random() < ... |
/*
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib 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
*
* Unless required by ap... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'raffle';
} |
import { Module } from '@nestjs/common';
import { UsersController } from './users.controller';
import { UsersService } from './users.service';
import { SequelizeModule } from '@nestjs/sequelize';
import { User } from './users.model';
@Module({
controllers: [UsersController],
providers: [UsersService],
imports: [... |
import { IList } from '../../list';
import { IRefund } from '../../payment/refund';
/**
* @deprecated since 3.0.0 - All callbacks will be removed in a future version
*/
export type CreateCallback = (err: any, refund?: IRefund) => void;
/**
* @deprecated since 3.0.0 - All callbacks will be removed in a future versio... |
/*
* 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 deepEqual from 'fast-deep-equal';
import { noop } from 'lodash/fp';
im... |
import { createGlobalStyle } from 'styled-components'
const Body = createGlobalStyle`
@keyframes fadeInBody {
0% {
background-color: ${(props): string =>
props.theme.application.backgroundAnimationColor};;
opacity: 0;
}
100% {
background-color: ${(props): string =>
props... |
import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
@Component({
selector: "SignUp",
templateUrl: "./sign_up.component.html"
})
export class SignUpComponent implements OnInit {
constructor(private router: Router) {
// Use the component constructor to inject... |
import { Component, OnInit, InputDecorator, Input } from '@angular/core';
@Component({
selector: 'app-page-info',
templateUrl: './page-info.component.html',
styleUrls: ['./page-info.component.css']
})
export class PageInfoComponent {
@Input() info: string;
} |
import {
SystemProgram,
SYSVAR_RENT_PUBKEY,
TransactionInstruction,
} from '@solana/web3.js';
import { programIds } from '../utils/programIds';
import { deserializeUnchecked, serialize } from 'borsh';
import BN from 'bn.js';
import { findProgramAddress, StringPublicKey, toPublicKey } from '../utils';
import {
C... |
/**
* ---------------------
* 🚗🚦 Generated by nuxt-typed-router. Do not modify !
* ---------------------
* */
export const routerPagesNames = { index: 'index' as const };
export type TypedRouteList = 'index'; |
import { ObjectType, Field, Int } from '@nestjs/graphql';
@ObjectType()
export class User {
@Field(() => Int, { description: 'ID field' })
id: number;
@Field()
username: string;
} |
import React from "react"
import { graphql, useStaticQuery } from "gatsby"
import { Title } from "../title"
import { ProjectList } from "../projectList"
import type { AirtableProjectsType } from "../../types/tables"
export const Projects: React.FC = () => {
const {
allAirtable: { nodes },
} = useStaticQuery<... |
import {
Component,
OnInit,
PLATFORM_ID,
Inject,
Input,
OnDestroy
} from '@angular/core';
import { CheckoutActions } from '../../../actions/checkout.actions';
import { AppState } from '../../../../interfaces';
import { Store } from '@ngrx/store';
import {
getPaymentEntities,
getOrderId,
getTotalCartVa... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ChartDonutComponent } from './chart-donut.component';
describe('ChartDonutComponent', () => {
let component: ChartDonutComponent;
let fixture: ComponentFixture<ChartDonutComponent>;
beforeEach(async(() => {
TestBed.configure... |
import Share from "./Share" |
import {
ApproxStructure,
Assertions,
Chain,
FocusTools,
Keyboard,
Keys,
Logger,
Mouse,
Step,
UiFinder,
Waiter,
} from '@ephox/agar';
import { UnitTest } from '@ephox/bedrock';
import { Arr, Result } from '@ephox/katamari';
import { SelectorFind } from '@ephox/sugar';
import * as Behaviour from '... |
import { NodeMaterialBlockConnectionPointTypes } from './Enums/nodeMaterialBlockConnectionPointTypes';
import { NodeMaterialBlockTargets } from './Enums/nodeMaterialBlockTargets';
import { NodeMaterialBuildStateSharedData } from './nodeMaterialBuildStateSharedData';
import { Effect } from '../effect';
import { StringTo... |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { ManufacturerPage } from './manufacturer';
@NgModule({
declarations: [
ManufacturerPage,
],
imports: [
IonicPageModule.forChild(ManufacturerPage),
],
})
export class ManufacturerPageModule {} |
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import express from 'express';
import asyncHandler from 'express-async-handler';
const router = express.Router();
import { getProviders } from '../../transitional';
import { Personal... |
import { UnavailabilityError } from '@unimodules/core';
import ExpoSplashScreen from './ExpoSplashScreen';
/**
* Makes the native splash screen stay visible until `SplashScreen.hideAsync()` is called.
* It has to be called before any view is rendered.
*
* @example
* ```typescript
* // top level component
*
* ... |
import { Stack } from 'aws-cdk-lib';
import { EnvironmentType } from '../src/environment-type';
import { Project } from '../src/project';
const config = {
name: 'foo',
author: {
organization: 'Acme Corp',
name: 'Mad Scientists',
email: 'mad.scientists@acme.example.com',
},
accounts: {
dev: {
... |
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { AuthGuard } from "../shared";
import { LoginGuard } from "../shared";
const routes: Routes = [
// { path: '', loadChildren: () => import('./layout/layout.module').then(m => m.LayoutModule) },
{
path: "",
... |
export = (
<ask args={<list />}>
<const
name="covid"
type={<ref name="any" />}
value={
<list>
<struct>
{"country"}
{"USA"}
{"newInfected"}
{69128}
{"newDeaths"}
{1047}
{"newRecovered"}
... |
export { default as routes } from './routes'; |
import { CrudPage } from "./crud.page";
import { CrudUpdatePage } from "./crud-update.page";
describe('Crud update', () => {
let crudUpdatePage = new CrudUpdatePage();
it('should have a <crud-view>', () => {
crudUpdatePage.get();
expect(crudUpdatePage.isPresentCrudViewTag()).toBeTruthy();
... |
import { Mixer, DrawInfo } from '../sprite/mixer';
import * as Color from '../color';
import * as Text from '../text/index';
import { DataBuffer, BufferTarget } from './buffer';
export class DancingData {
protected _data: Mixer[] = [];
private _width: number;
private _height: number;
constructor(width... |
import { HeaderBag } from "@aws-sdk/types";
import { IncomingHttpHeaders } from "http2";
declare const getTransformedHeaders: (headers: IncomingHttpHeaders) => HeaderBag;
export { getTransformedHeaders }; |
/**
* @file Eyes 眼睛
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('eyes', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<svg width="' + pr... |
import {Room} from './room';
import {Machine} from './machine';
import {HomeService} from './home.service';
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
import {TestBed} from '@angular/core/testing';
import {HttpClient} from '@angular/common/http';
describe('Home list S... |
declare global {
interface Event {
persist: Function;
}
}
export declare function attachEvent(domNode: Element, eventName: string, handler: Function): void;
export declare function detachEvent(domNode: Element, eventName: string, handler: Function): void; |
import * as React from "react";
const searchLocalStorage = () => {
return localStorage.forEach(
(item: any, iterator: number) =>
localStorage.key(iterator).includes("Draft") && item
);
};
export default function ListDrafts(props: any): JSX.Element {
const [drafts] = React.useState<any[]>([]);
React... |
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { HttpResponse, HttpErrorResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { TranslateService, LangChangeEvent } from '@ngx-translate/core';
import { ... |
import { CubeTextureLoader, CubeTexture } from 'three'
import { useLoader } from '@react-three/fiber'
type Options = {
path: string
}
export function useCubeTexture(files: string[], { path }: Options): CubeTexture {
// @ts-ignore
const [cubeTexture] = useLoader(
// @ts-ignore
CubeTextureLoader,
[fil... |
import { Component, ViewEncapsulation, forwardRef, Input, OnInit } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { SimpleToggleSettings } from './simple-toggle.model';
export const SIMPLE_TOGGLE_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR,
useExistin... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { useForceUpdate, useSafeLayoutEffect } from "@chakra-ui/hooks"
import { isBrowser, __DEV__ } from "@chakra-ui/utils"
import { createContext } from "@chakra-ui/react-utils"
import * as React from "react"
import { createPortal } from "react-dom"
import { usePortalManager } from "./portal-manager"
type PortalCont... |
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'roles' })
export class RolesPipe implements PipeTransform {
transform(value: any): any {
const map = {
"1": "系统管理员",
"2": "项目负责人",
"3": "样本录入人",
"4": "实验人员",
"5": "分析人员",
... |
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {WorkDayComponent} from './work-day.component';
const routes: Routes = [
{
path: 'work_day',
component: WorkDayComponent,
data: {requiresLogin: true}
},
{
path: 'work_day/sho... |
import { useState, useEffect } from 'react'
import Link from 'next/link'
import { useActiveHash } from '@components/effects/UseActiveHash'
import { IToC } from '@lib/toc'
import { useLang, get } from '@utils/use-lang'
import { maxDepth as optionsMaxDepth } from '@appConfig'
const getHeadingIds = (toc: IToC[], traverse... |
/// <reference path="state.ts" />
/// <reference path="stateManager.ts" />
/// <reference path="../audio/audioManager.ts" />
/// <reference path="../graphics/scene.ts" />
/// <reference path="../graphics/imageLoader.ts" />
/// <reference path="../utils/logger.ts" />
/// <reference path="../views/gameOverView.ts" />
na... |
import { Request, Response } from 'express';
import SendForgotPasswordService from '../../../services/SendForgotPasswordService';
import { container } from 'tsyringe';
export default class ForgotPassowrdController {
public async create(req: Request, res: Response): Promise<Response> {
const { email } = req.body;... |
import { IonicEnvironmentPlugin } from './ionic-environment-plugin';
export declare function getIonicEnvironmentPlugin(): IonicEnvironmentPlugin;
export declare function getSourceMapperFunction(): Function;
export declare function getNonIonicCommonChunksPlugin(): any;
export declare function getIonicCommonChunksPlugin(... |
import fs from 'fs';
import git, { ReadCommitResult } from 'isomorphic-git';
import { Repositories } from '../types';
const getCurrentCommit: Repositories.Data.GetCurrentCommit = async function ({ workDir }) {
return {
commitHash: await git.resolveRef({
fs,
dir: workDir,
ref: 'HEAD',
}),
... |
import { ServiceScope, Environment, EnvironmentType } from "@microsoft/sp-core-library";
import { WebPartContext } from "@microsoft/sp-webpart-base";
import { SiteDesignsServiceKey } from "../services/siteDesigns/SiteDesignsService";
import { MockSiteDesignsService } from "../services/siteDesigns/SiteDesignsMockService... |
import { IParam, IPawnDoc } from '.';
export interface INativeForward {
pawnDoc: IPawnDoc;
type: 'native' | 'forward';
returnsFloat: boolean;
name: string;
params: Array<IParam>;
} |
import "../../../../components/ha-form/ha-form";
import { html, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators";
import {
array,
assert,
assign,
number,
object,
optional,
string,
} from "superstruct";
import { fireEvent } from "../../../../common/do... |
/*
* 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 React, { useContext } from 'react';
import euiStyled from '../../../.... |
import React from 'react'
import { Box, Heading } from '../../../../pattern-library'
type PropsT = {
fixData: {
all?: Array<{ message: string }>
any?: Array<{ message: string }>
}
helpUrl: string
ruleId: string
}
const ViolationFixes = ({ fixData, helpUrl, ruleId }: PropsT): React.ReactElement => {
... |
import { ContactFormDetails } from './../../../../Schema/contact.entity';
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Admin } from 'src/Schema/Admin.entity';
import { Repository } from 'typeorm';
import * as joi from 'joi';
import { IReturnObject } from 'src... |
import React, { ReactNode } from 'react';
import Styled from './styled';
interface Props {
children: ReactNode;
className?: string;
}
const Page = ({ children, className }: Props) => (
<Styled.Page data-testid="page" className={className}>
{children}
</Styled.Page>
);
Page.Menu = ({ children, className ... |
import { forwardRef } from 'react'
import cx from 'clsx'
import { createStyle, getThemeCSSObject } from '../../styles'
import type { ChromatinIcon } from '../types'
const useStyles = createStyle((theme) => ({
root: (props: ChromatinIcon) => ({
height: props.height ?? '100%',
width: props.width ?? ... |
/* eslint jsx-a11y/anchor-is-valid: 0 */
import React, { useState, useCallback } from 'react';
import { actions } from '@storybook/addon-actions';
import { components } from 'react-select';
import AsyncSelect from 'react-select/async';
import { multiOptions } from './Autocomplete/AutocompleteExample';
import { Input... |
export { LogoGlassdoor32 as default } from "../../"; |
export const environment = {
production: true,
firebaseConfig: {
apiKey: "AIzaSyAa_FHngVwgKnApj3G_MKBDBfrzFGTphRM",
authDomain: "stopcarfirebase.firebaseapp.com",
databaseURL: "https://stopcarfirebase.firebaseio.com",
projectId: "stopcarfirebase",
storageBucket: "stopcarfirebase.appspot.com",
... |
import React from 'react'
import type {
AuthClient,
SupportedAuthTypes,
SupportedAuthClients,
SupportedUserMetadata,
} from './authClients'
import { createAuthClient } from './authClients'
export interface CurrentUser {}
export interface AuthContextInterface {
/** Determining your current authentication st... |
import { iconMap, UNDEFINED_ICON } from 'enevti-app/components/atoms/icon/AppIconComponent';
import {
setPaymentFee,
setPaymentStatus,
setPaymentAction,
showPayment,
setPaymentPriority,
} from 'enevti-app/store/slices/payment';
import { AsyncThunkAPI } from 'enevti-app/store/state';
import { attachFee, calcul... |
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/en/configuration.html
*/
export default {
preset: 'ts-jest',
globals: {
'ts-jest': {
tsconfig: 'tsconfig.test.json',
},
},
coverageDirectory: 'coverage',
coverageReporters: [... |
import React from 'react';
import createSvgIcon from './helpers/createSvgIcon';
export default createSvgIcon(
<path d="M6 21h12V7H6v14zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" />,
'DeleteSharp',
); |
import { NextFunction, Request, Response } from "express";
import { getCustomRepository } from "typeorm";
import { UsersRepositories } from "../repositories/UserRespositories";
export async function ensureAdmin(request: Request, response: Response, next: NextFunction) {
const { user_id } = request
const user... |
import * as Mdast from 'mdast';
// Augmentations
declare module 'mdast' {
interface BlockContentMap {
toml: TOML;
}
interface StaticPhrasingContentMap {
mdxJsxTextElement: MDXJSXTextElement;
}
}
interface TOML extends Mdast.Literal {
type: 'toml';
}
interface MDXJSXTextElement e... |
import { Entity as EntityBase, Constructable } from '../odata-common';
import { CustomField } from './selectable/custom-field';
/**
* Super class for all representations of OData v2 entity types.
*/
export class Entity extends EntityBase {
protected static customFieldSelector<EntityT extends EntityBase>(
field... |
import { R4_BackboneElement } from './R4_BackboneElement'
import { R4_DomainResource } from './R4_DomainResource'
import { R4_Period } from './R4_Period'
export class R4_HealthcareService_NotAvailable extends R4_BackboneElement
{
static def : string = 'HealthcareService_NotAvailable';
description : string ... |
import { ReduxActionTypes } from "constants/ReduxActionConstants";
import { SaveOrgLogo, SaveOrgRequest } from "api/OrgApi";
export const fetchOrg = (orgId: string, skipValidation?: boolean) => {
return {
type: ReduxActionTypes.FETCH_CURRENT_ORG,
payload: {
orgId,
skipValidation,
},
};
};
... |
import { Attribute, AttributeClassEvent, AttributeMethodEvent, AttributeParameterEvent, AttributePropertyEvent } from '../../../src/main';
export class TestAttributeImpl extends Attribute {
public type = 'none';
public event: any;
public constructor(private value: number) {
super();
}
public getValue() {
re... |
import * as popsicle from 'popsicle'
import {
introspectionQuery,
buildClientSchema,
printSchema,
} from 'graphql/utilities'
import {
parse,
visit,
print,
EnumTypeDefinitionNode,
FieldDefinitionNode,
DefinitionNode,
NamedTypeNode,
ObjectTypeDefinitionNode,
isNamedType,
isScalarType,
isListTy... |
/*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
* Licensed under the Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0
*/
import * as classNames from "classnames";
import * as React from "react";
import {
ITetherConstraint,
Menu,
MenuDivider,
MenuItem,
... |
import * as mongoose from 'mongoose';
export const ProductSchema = new mongoose.Schema({
owner: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
},
title: String,
description: String,
image: String,
price: String,
created: {
type: Date,
default: Date.now(),
},
}); |
import { createSelector } from 'reselect';
import { getHowToPlay } from './appStateSelectors';
import { HowToPlay } from '../AppState';
import { howToPlaySteps } from '../howToPlay/howToPlaySteps';
export const getCurrentHowToPlayText = createSelector(
[getHowToPlay],
(howToPlay: HowToPlay) => {
return howToPl... |
import * as React from 'react'
import Router from './router'
import { useAuth } from '@/hooks/use-auth'
import { AuthContext } from '@/context'
import '@/styles/index.scss'
const App = () => {
const { loginSession, refreshParams, getLoginSession, isFetchSession, ...rest } = useAuth()
if (!loginSession && refresh... |
import { workspace, Uri } from "vscode";
import * as fs from "fs";
import * as fse from "fs-extra";
import * as path from "path";
import { pascalCase } from "change-case";
import GlobalConfig from "../type/GlobalConfig";
import ComponentConfig, { FunctionDeclare } from "../type/ComponentConfig";
import StyleConfig from... |
import { onReady } from "./on-ready";
describe("on-error event", () => {
console.log = jest.fn();
it("should log in console", () => {
onReady();
expect(console.log).toHaveBeenCalledWith("ready!");
});
}); |
import { ITokenService } from "./ITokenService";
//@ts-ignore
// eslint-disable-next-line import/no-unresolved
import { TokenServiceBase } from "./base/token.service.base";
//@ts-ignore
export class TokenService extends TokenServiceBase implements ITokenService {} |
import inquirer from 'inquirer';
import {
STYLES,
FOLDERS,
LANGUAGES,
REDUX_ADDONS,
STATE_MANAGEMENT,
DEFAULT_APP_NAME,
EXPORT_PREFERENCE,
} from '../constants';
export const handleSetup = async () => {
return await inquirer.prompt([
{
type: 'list',
name: 'language',
choices: [LA... |
import { FormControl, FormGroup } from '@angular/forms';
/*
功能: 两次输入密码是否一致
返回: 验证通过返回NULL | 验证不通过返回错误码passwordsame
*/
export const passwordSameValidator = (formGroup: FormGroup): { [key: string]: boolean } => {
const password = formGroup.get('password') as FormControl;
const checkPassword = formGroup.get('che... |
export { default } from './WeatherTable'; |
import { IReferences } from 'pip-services3-commons-node';
import { ILogger } from 'pip-services3-components-node';
import { ProcessStateV1 } from '../data/version1/ProcessStateV1';
export declare class RecoveryController {
private _references;
private _logger;
constructor(references: IReferences, logger?: I... |
export class Icon {
public Icon: string;
public IconSet?: string;
} |
const DAYS_IN_WEEK = 7;
const DAYS_IN_MONTH_LONG = 31;
const DAYS_IN_MONTH_SHORT = 30;
const sunday = {
/**
* @param today is todays date
* @returns the next Sunday unless today is a Sunday,
* then returns today
*/
next: function(today: Date): Date {
dateErrorHandler(today);
if (today.getDay() ... |
import { DocumentNode, ExecutionResult } from 'graphql';
import { FetchResult } from '../link/core/types';
import { DataProxy } from '../cache/core/types/DataProxy';
import { MutationQueryReducersMap } from './types';
import { PureQueryOptions, OperationVariables } from './types';
/**
* fetchPolicy determines where ... |
import { ApplicationDetailsProps } from '../../common/applicationDetails/ApplicationDetails';
import {
INDIVIDUAL_WINTER_STORAGE_APPLICATION_boatTypes as BOAT_TYPES,
INDIVIDUAL_WINTER_STORAGE_APPLICATION_winterStorageApplication as WINTER_STORAGE_APPLICATION,
} from './__generated__/INDIVIDUAL_WINTER_STORAGE_APPLIC... |
// https://raw.githubusercontent.com/wechat-miniprogram/api-typings/2.7.7/types/wx/lib.wx.cloud.d.ts
/*! *****************************************************************************
Copyright (c) 2018 Tencent, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of t... |
import { ColorWeights } from '../types/Weights';
export interface IColors {
brand: Record<ColorWeights, string>;
secondary: Record<ColorWeights, string>;
base: Record<ColorWeights, string>;
system: IColorSystem;
white: string;
black: string;
}
export interface IColorSystem {
success: Record... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.