text stringlengths 10 953k |
|---|
import React from 'react';
import '../css/Products.css';
import Product from './Product';
import { withStyles, createStyles, Theme, ThemeProvider } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/... |
import { Day, DayStatus } from './day.model';
export class Challenges {
constructor (public title: string,
public description: string,
public year:number,
public month:number,
private _days: Day[] = [])
{
if (_days.length > 0) {
return;
}
// ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
export const waitForRender = () => new Promise((resolve) => {
// RAF executes before render
requestAnimationFrame(() => {
// A timeout of 0 executes in the next task, after render
setTimeout(resolve);
});
}) |
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 14.2.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 14.2.0,
* ap-northeast-3 (https://d2zq80gdmjim8k.cl... |
export enum ModuleDeclarationKind {
Namespace = "namespace",
Module = "module",
Global = "global",
} |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-navigation',
templateUrl: './navigation.component.html',
styleUrls: ['./navigation.component.scss']
})
export class NavigationComponent implements OnInit {
isLoggedIn = false;
title = "FrameApp";
constructor() { }
ngOnInit()... |
/**
* @barba/core/utils/url
* <br><br>
* ## URL utils.
*
* - Collect and structure informations from URLs
*
* @module core/utils/url
*/
/***/
// Definitions
import { IGenericObject, IUrlBase } from '../defs';
/**
* Get location href.
*/
export const getHref = (): string => window.location.href;
/**
* Get... |
<TS language="bg_BG" 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</so... |
export * from "./parseStringToNumber";
export * from "./parseConsumablesToNumber";
export * from "./parseAttributesForView";
export * from "./getRandomChampion";
export * from "./getRandomStarship";
export * from "./getRandomElementFromArray";
export * from "./getAttributeWinner"; |
/*
* 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 may ... |
import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Store, Select } from '@ngxs/store';
import { Observable } from 'rxjs';
import { switchMap, take } from 'rxjs/operators';
import { IUserModel } from '../../../models';
import { Au... |
import { UUID } from 'angular2-uuid';
export class FavouriteBook {
public readonly bookGuid: UUID;
constructor(bookGuid: UUID) {
this.bookGuid = bookGuid;
}
} |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.13.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do no... |
import React, { useState, FormEvent, useEffect } from 'react';
import { Form, SubmitButton, ErrorAlert, InfoAlert, LoadingSpinner } from 'elements';
import { useCustomForm } from 'hooks';
import './styles.scss';
interface FormFields {
name?: string;
location?: string;
description?: string;
}
type Props = {
on... |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
const { test } = Deno;
import { fail, assertEquals } from "../../testing/asserts.ts";
import { chown, chownSync } from "./_fs_chown.ts";
//chown is difficult to test. Best we can do is set the existing user id/group id again
const skip = Deno.... |
import { Observable, of, ReplaySubject } from 'rxjs';
import { switchMap, takeUntil, tap } from 'rxjs/operators';
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
import { Championship, Competition, EventEntity } from '@zsport/api';
import { ChampionshipFinalBase } from '../../base';... |
import {ActionKind} from '@prisma/client';
import {PermissionFlagsBits} from 'discord-api-types';
import {Message, Permissions} from 'discord.js';
import {Event} from 'fish';
export class MessageCreateEvent extends Event {
name = 'messageCreate';
async run(msg: Message) {
const {content, member} = msg;
i... |
/**
* Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or ... |
import React, { FC } from 'react';
import { StaticImage } from "gatsby-plugin-image";
const ShareIcon: FC = () => {
return (
<>
<StaticImage
src="../../../public/static/images/share.png"
alt="brand"
className="share__icon"
/>
</>
);
};
export default ShareIcon; |
import React, { useState, useEffect } from "react";
import styled from "@emotion/styled";
import { css } from "@emotion/core";
import SatirLine from "./partials/SatirLine";
import { center } from "../styles/display";
// icons
import Twitter from "./icons/Twitter";
import Facebook from "./icons/Facebook";
const ShareW... |
import { ValidatedResponse, ValidatedResponseArgs } from '@txstate-mws/graphql-server'
import { optionalString } from 'txstate-utils'
import { Field, ID, InputType, ObjectType, registerEnumType } from 'type-graphql'
import { RuleType } from 'internal'
export enum RulePathMode {
SELF = 'self',
SUB = 'sub',
SELFAN... |
import * as _ from 'lodash';
import {
Request,
Response,
Route,
RouteResources,
} from '../../API';
import { IContainer } from '../../services/Docker';
export default class RouteImpl extends Route {
public url: string;
constructor(resources: RouteResources) {
super(resources);
this.url = '/contai... |
import { inject } from '@loopback/context';
import {
FindRoute,
InvokeMethod,
ParseParams,
Reject,
RequestContext,
RestBindings,
Send,
SequenceHandler,
} from '@loopback/rest';
import { AuthenticationBindings, AuthenticateFn } from '@loopback/authentication';
const SequenceActions = RestBindings.Seque... |
import * as React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
margin-bottom: 0.5rem;
`;
const CheckboxContainer = styled.div`
display: inline-block;
vertical-align: middle;
`;
const Icon = styled.svg`
fill: none;
stroke: white;
stroke-width: 2px;
`;
// Hide checkbox... |
/*
* 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 { Position } from '@elastic/charts';
import { i18n } from '@kbn/i18n';... |
export declare const CreateOption: {
(): JSX.Element;
storyName: string;
};
declare const _default: {
parameters: {
storySource: {
source: string;
locationsMap: {
"create-option": {
startLoc: {
col: number;
... |
/**
* Global internal type definitions.
*
* Definitions provided here cannot be used in public APIs, as they aren't
* bundled with the published packages. declaring an interface that depends on
* them will yield, "Property 'X' of exported interface has or is using private
* name 'Y'.ts(4033)".
*/
/** GL Matrix ... |
/**
* Copyright 2020 Opstrace, 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 agree... |
// Basic
export * from './source/primitive';
export * from './source/typed-array';
export * from './source/basic';
export * from './source/observable-like';
// Utilities
export {Except} from './source/except';
export {Mutable} from './source/mutable';
export {Merge} from './source/merge';
export {MergeExclusive} from ... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ListDetailsComponent } from './list-details.component';
describe('ListDetailsComponent', () => {
let component: ListDetailsComponent;
let fixture: ComponentFixture<ListDetailsComponent>;
beforeEach(async () => {
await TestBed.confi... |
export declare const cidRssAlt: string[]; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, State } from '@stencil/core';
import store from './store'
import { autorun } from 'mobx';
@Component({
tag: 'my-header',
styleUrl: 'my-header.scss'
})
export class HeaderComponent {
@State() unfinishedTodoCountState: number;
constructor() {
autorun(() => {
this.... |
export {
initDataState,
clearDataState,
noopDataState,
reserveLayer,
clearLayer,
getCurrentDependencies,
} from './data';
export * from './keys';
export * from './store'; |
import { OGOD_CATEGORY } from "@ogod/common";
import { ogodEpicActorChanges, ogodEpicActorDestroy, ogodEpicActorInit } from '../actor/epic';
export const epicInstanceInit = ogodEpicActorInit(OGOD_CATEGORY.INSTANCE);
export const epicInstanceChanges = ogodEpicActorChanges(OGOD_CATEGORY.INSTANCE);
export const epicInsta... |
import Link from "next/link";
import styles from "./style.module.scss";
interface PlataformsInterface {
git?: string;
play?: string;
app?: string;
web?: string;
}
export interface ProjectsProps {
documentId: string;
name: string;
thumbnail?: string;
description?: string;
plataforms?: PlataformsInte... |
function computeArea(
A: number,
B: number,
C: number,
D: number,
E: number,
F: number,
G: number,
H: number
): number {
let width = Math.min(C, G) - Math.max(A, E);
let height = Math.min(H, D) - Math.max(B, F);
let commonArea = Math.max(width, 0) * Math.max(height, 0);
l... |
import { isMaskedCpf } from "../lib/is-masked-cpf";
/**
*
* True
*
*/
describe("isMaskedCpf (return True)", () => {
it("with valid cpf (1)", () => {
expect(isMaskedCpf("553.573.140-47")).toBe(true);
});
it("with valid cpf (2)", () => {
expect(isMaskedCpf("801.583.970-02")).toBe(true);
});
it("with vali... |
import Model from '../../../src/Calliope/Model';
import User from './User';
import ContractFactory from '../Factories/ContractFactory';
export default class Contract extends Model {
public override getName(): string {
return 'Contract';
}
public get fillable(): string[] {
return ['*'];
... |
import firebase from './firebase';
export const environment = {
firebase,
production: false
}; |
import {
AssociateAttributeGroupCommandInput,
AssociateAttributeGroupCommandOutput,
} from "../commands/AssociateAttributeGroupCommand.ts";
import { AssociateResourceCommandInput, AssociateResourceCommandOutput } from "../commands/AssociateResourceCommand.ts";
import { CreateApplicationCommandInput, CreateApplicati... |
import { SchemaDirectiveVisitor } from 'graphql-tools';
import { defaultFieldResolver, GraphQLString } from 'graphql';
import formatDate from 'dateformat';
class DateFormatDirective extends SchemaDirectiveVisitor {
visitFieldDefinition( field ) {
const { resolve = defaultFieldResolver } = field;
co... |
import React from 'react'
export interface InputProps {
/**
* 允许清空
*/
allowClear: boolean
/**
* 默认值
*/
defaultValue?: string
/**
* 禁用状态
*/
disabled: boolean
/**
* 输入框尺寸
*/
size: 'large' | 'middle' | 'small'
/**
* 输入框值,受控
*/
value?: string
/**
* 输入框值变化触发
*/
on... |
import styled from 'styled-components';
import { BaseCell } from './UserOrders/Wrapper';
const Wrapper = styled.div`
display: flex;
flex-direction: column;
margin-top: 18px;
padding-top: 12px;
background: #ffffff;
border: 1px solid #dce0e2;
border-radius: 10px;
.marbot {
margin-bottom: 0;
}
`;
... |
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { InfraRolesComponent } from './infra-roles.component';
import { RouterTestingModule } from '@angular/router/testing';
import { FormsModule, ReactiveFormsModule } from '@angula... |
import { makeStyles } from '@material-ui/core/styles'
import React, { ReactElement, useEffect, useState } from 'react'
import { useSelector } from 'react-redux'
import ReceiveModal from 'src/components/App/ReceiveModal'
import { styles } from './style'
import Modal from 'src/components/Modal'
import Col from 'src/com... |
import { useCallback, useState } from 'react';
export enum InputType {
AbsoluteValue = 0,
Percent = 1,
}
export const useSliderInput = (
convert: (val: string | number) => string | number
) => {
const [value, setValue] = useState('');
const [pct, setPct] = useState(0);
const [type, setType] = useState(Inp... |
export default class Prices {} |
export interface Case {
} |
import { BigNumber } from "ethers/utils";
import WalletConnect from "@walletconnect/browser";
import { BaseWallet } from ".";
import { convertUtf8ToHex } from "@walletconnect/utils";
export interface WalletConnectWalletOptions {
bridge?: string;
}
export interface txParams {
from?: string;
to: string;
data?: ... |
import React, { CSSProperties, FC, HTMLProps, ReactNode } from 'react';
import { NavLink, NavLinkProps } from 'react-router-dom';
import cn from 'classnames';
import s from './s.module.scss';
type NavTabProps = NavLinkProps | HTMLProps<HTMLAnchorElement>;
type NavTabsProps = {
tabs: NavTabProps[];
className?: st... |
import React from "react";
import { render, fireEvent } from "@testing-library/react";
import Suggest from "../src/Suggest";
import { OptionConfig } from "xy-select/es/interface";
import { CustomItemProps } from "../src/interface";
import { OptionsContext } from "xy-select";
describe("Suggest", () => {
test("Rende... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const DumpsterDimensions: {
height: undefined;
width: undefined;
}; |
import { ValidationError } from '../errors/validation-error';
import { ErrorField } from '../models/error-field';
import { DietGroup } from './diet-group';
import { Ingredient } from './ingredient';
export class SuggestedValue {
constructor(
public id: number,
public description: number,
p... |
import { DiffProxy } from './diff-proxy';
describe('DiffProxy', () => {
it('should create an instance', () => {
expect(new DiffProxy()).toBeTruthy();
});
}); |
import { LogRowModel, toDataFrame, Field, FieldCache } from '@grafana/data';
import React, { useState, useEffect } from 'react';
import useAsync from 'react-use/lib/useAsync';
import { DataQueryResponse, DataQueryError } from '@grafana/data';
export interface RowContextOptions {
direction?: 'BACKWARD' | 'FORWARD';
... |
import Cat from '../../../models/Cat'
import React, {useState} from 'react'
import { Link } from 'react-router-dom'
import {Box, Button, Card, CardActions, Skeleton, Typography} from '@mui/material'
import styles from './styles'
export interface DetailsCardProps {
cat: Cat
}
export const DetailsCard: React.FC<Det... |
import { AN_EMPTY_ENTITY, AN_ENTITY, A_PARTIAL_ENTITY,
createJsonEntitySchema, JsonEntity, loadTestJson } from '../helpers/data-helper';
import Client from '../../../lib/client';
import Schema from '../../../lib/schema/schema';
import Repository from '../../../lib/repository/repository';
describe("fetch JSON", () =... |
<TS language="cy" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clic-dde i olygu cyfeiriad neu label</translation>
</message>
<message>
<source>Create a new address</source>
<translation>... |
import {AppRegistry} from "react-native";
import {Playground} from "./common/playground";
import {App} from "./App";
import {appSettingsProvider} from "./core/settings";
// noinspection JSUnusedGlobalSymbols | used from js code
export function registerApp(): void {
const rootComponent = appSettingsProvider.setting... |
import * as THREE from "three";
import * as Framework from "./framework/BaseScene";
import { ThreeApplication } from "./ThreeApplication";
import { KeyHandler } from "./framework/KeyHandler";
export class MainScene extends Framework.BaseScene {
private readonly ENTITY_HEIGHT: number = 0.2;
private readonly... |
type ShouldIgnore = <TError extends Error>(error: TError) => boolean;
const ignoreError = <TResult>(
promise: Promise<TResult>,
shouldIgnore?: ShouldIgnore
): Promise<void | TResult> =>
promise.catch(<TError extends Error>(error: TError) => {
if (shouldIgnore !== undefined && !shouldIgnore(error)) {
th... |
import { Signer } from "@ethersproject/abstract-signer";
import { artifacts, waffle } from "hardhat";
import { Artifact } from "hardhat/types";
import { PRBMathSD59x18Mock } from "../../typechain/PRBMathSD59x18Mock";
import { PRBMathSD59x18TypedMock } from "../../typechain/PRBMathSD59x18TypedMock";
import { PRBMathUD6... |
import {Component} from '@angular/core';
declare var require: any;
@Component({
selector: 'demo-zone-demo',
templateUrl: './zone-demo.component.html',
})
export class ZoneDemoComponent {
tsCode = require('!!raw-loader!./zone.component.ts');
htmlCode = require('!!raw-loader!./zone.component.html');
} |
import {Component, Event, EventEmitter, h, Listen, Method, Prop} from '@stencil/core';
import Tunnel, {DashboardState} from "../../../../data/dashboard";
import {ElsaStudio, WorkflowModel} from "../../../../models";
import {
eventBus,
pluginManager,
activityIconProvider,
confirmDialogService,
toastNotificatio... |
import { connect, MapDispatchToProps, MapStateToProps } from "react-redux";
import { Dispatch } from "redux";
import GaroonEventPage, { ConnectedDispatchProps, ConnectedState } from "../../components/tutorial/garoon-event-page";
import { setEventPageUrl, SetEventPageUrlAction, submitEventPageUrl } from "../../modules/g... |
/**
* Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
import Iterator from '../iterator';
function iteratorToArray<T>(it: Iterator<T>): T[] {
const ret = [];
while (it.hasNext) {
const v = it.move();
... |
import { OptionsComponent } from '../options';
import { DeclarationOption } from '../declaration';
export declare class TypeScriptSource extends OptionsComponent {
private declarations;
static IGNORED: string[];
initialize(): void;
getOptionDeclarations(): DeclarationOption[];
private addTSOption(op... |
import React from 'react';
import createSvgIcon from './helpers/createSvgIcon';
export default createSvgIcon(
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7h-2z" />,
'KeyboardReturnTwoTone',
); |
import handleNotFound from '../src/utils/handleNotFound'
const consoleWarn = jest.spyOn(global.console, 'warn').mockImplementation(() => {})
describe('handleNotFound()', () => {
const OLD_ENV = process.env
beforeEach(() => {
jest.resetModules()
process.env = { ...OLD_ENV }
delete process.env.NODE_ENV... |
/**
* Gate API v4
* APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user\'s behalf.
*
* Contact: support@mail.gate.io
*
* NOTE: This class is auto generated by OpenAPI Generator (... |
import { Component } from '@angular/core';
import { DropDownElement } from 'app/shared/models/drop-down-element';
import { DeploymentCenterStateManager } from 'app/site/deployment-center/deployment-center-setup/wizard-logic/deployment-center-state-manager';
import { CacheService } from 'app/shared/services/cache.servic... |
import {Component, Inject, OnInit} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
@Component({
selector: 'ngx-report-settings-mat-dialog',
templateUrl: './report-settings-mat-dialog.component.html',
styleUrls: ['./report-settings-mat-dialog.component.scss'],
})
expo... |
import type { CompileOptions } from 'svelte/types/compiler/interfaces';
import type { PreprocessorGroup } from 'svelte/types/compiler/preprocess/types';
import type { Plugin } from 'esbuild';
interface esbuildSvelteOptions {
/**
* Svelte compiler options
*/
compileOptions?: CompileOptions;
/**
... |
import React from 'react';
import { BindingConfigMetadata } from '../../../../models/functions/bindings-config';
import { BindingInfo } from '../../../../models/functions/function-binding';
import i18next from 'i18next';
import { BindingFormBuilder, BindingEditorFormValues } from './BindingFormBuilder';
import { Functi... |
import ReviewFrame from '@celo/react-components/components/ReviewFrame'
import ReviewHeader from '@celo/react-components/components/ReviewHeader'
import colors from '@celo/react-components/styles/colors'
import { CURRENCY_ENUM } from '@celo/utils/src/currencies'
import * as React from 'react'
import { WithTranslation }... |
import {HardhatUserConfig} from 'hardhat/types';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
import '@typechain/hardhat';
import 'hardhat-gas-reporter';
const config: HardhatUserConfig = {
paths: {tests: 'sol-prototype/tests', sources: 'sol-prototype'},
defaultNetwork: 'hardhat',
sol... |
/// <reference types="react-scripts" />
declare module "@boomerang-io/carbon-addons-boomerang-react";
declare module "@carbon/icons-react";
declare module "@boomerang-io/utils";
declare module "carbon-components";
declare module "react-lazylog";
declare module "*.scss" {
const styles: { [className: string]: string }... |
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
import { RetireGrantRequest } from "../models/models_0";
import {
deserializeAws_json1_1RetireGrantCommand,
serializeAws_json1_1RetireGrantCommand,
} from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "@aws-s... |
import * as lp from '../../internals/loadPackage';
import { ValidationPipe } from './validation.pipe';
describe('ValidationPipe', () => {
const ENV = process.env;
beforeEach(() => {
jest.resetModules();
process.env = { ...ENV };
});
afterAll(() => {
process.env = ENV;
});
it('Should check if... |
import { query } from "../db/connect";
import bcrypt from "bcrypt";
export default class User {
constructor() {
}
async addNewUser(login: String, pas: String) {
pas = await bcrypt.hash(pas, 5);
const sql = `INSERT INTO users (login, password) VALUES ('${login}', '${pas}')`;
try {
... |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... |
import { NestFactory } from '@nestjs/core';
import { ExpressAdapter } from '@nestjs/platform-express';
import { AppModule } from './src/app.module';
import * as express from 'express';
import * as functions from 'firebase-functions';
import * as helmet from "helmet"
const server = express();
export const createNestSe... |
import { Square } from "./square";
export class MovedChessPiece {
public readonly chessPieceId: string;
public fromSquare?: Square;
public toSquare?: Square;
constructor(chessPieceId: string) {
this.chessPieceId = chessPieceId;
}
} |
/**
* Created by Christian Schrödel on 13.09.2016.
*/
import {Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, EventEmitter} from '@angular/core';
import {TruckLocation} from '../../../types';
@Component({
selector: 'location-overview',
templateUrl: 'location-overview.component.html',
styl... |
import { BrowserModule, Title } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpModule
],
providers: [... |
import {
MutationFunction,
useMutation as useReactMutation,
UseMutationOptions,
useQuery as useReactQuery,
UseQueryOptions,
UseQueryResult,
} from "react-query";
import { UnknownInstance } from "./builder";
/**
* @internal
*/
export type Await<T> = T extends Promise<infer U> ? U : T;
export function createUse... |
export const env = {
prod: false,
origin: 'http://localhost:4200',
} |
import { ParseMailTemplateDto } from '../dtos/parse-mail-template.dto';
export interface IMailTemplateProvider {
parse(data: ParseMailTemplateDto): Promise<string>;
} |
import * as invariant from "invariant";
import mklog from "./log";
const log = mklog("fetch");
import {opts} from "../logger";
import client from "./api";
import {normalize, arrayOf} from "./idealizr";
import {game, user, collection, downloadKey} from "./schemas";
import {each, union, pluck, where, difference, conta... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppModule } from './app.module';
import { ScanPageComponent } from './pages/scan-page/scan-page.component';
import { GeneratePageComponent } from './pages/generate-page/generate-page.component';
const routes: Ro... |
import dependencyHandler from './default-dependency-handler';
export * from './helpers';
export * from './model';
export { run } from './main';
export const defaultDependencyHandler = dependencyHandler; |
import { GenericResolver } from './generic.resolver';
import { Args, Mutation, Resolver } from '@nestjs/graphql';
import { GraphQLBoolean, GraphQLString } from 'graphql';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { FuncaoEnumType } from '../types/inputs/funcao.enum.type';
import { ... |
import { Option } from '@ephox/katamari';
import { Element, Insert, Remove, SelectorFind, Traverse } from '@ephox/sugar';
const getNode = function (container: Element) {
return SelectorFind.descendant(container, '.me').fold(function () {
return SelectorFind.descendant(container, '.child').bind(Traverse.firstChil... |
import { Document, model, Schema } from "mongoose";
import { CourseDocument } from "./course";
import { UserDocument } from "./user";
/**
* Model Purpose
*
* Users who have purchased a course can give their feedback
* regarding their experience with the course and others...
*/
export type FeedbackDocument = Docu... |
import * as fs from "fs";
import * as path from "path";
import * as os from "os";
import { Dict } from "./core";
import { DiagnosticMessages, NullDiagnosticMessages } from "./diagnostics";
import { EmitFormat, CompilerOptions, getDefaultOptions } from "./options";
import { SyntaxKind } from "./tokens";
import { Parser ... |
// pages/404.js
import utilStyles from '../styles/utils.module.css'
export default function Custom404() {
return (
<img
className={`${utilStyles.container}`}
src='/images/pageNotFound.gif'
onClick={() => window.location.href = `${window.location.origin}/`}
/>
)
} |
import React from 'react'
import {PositionSettings, getAnchoredPosition} from '../behaviors/anchoredPosition'
import {useProvidedRefOrCreate} from './useProvidedRefOrCreate'
export interface AnchoredPositionHookSettings extends Partial<PositionSettings> {
floatingElementRef?: React.RefObject<Element>
anchorElement... |
import { Component } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { Observable } from 'rxjs';
import { map, shareReplay } from 'rxjs/operators';
import { UserService } from '../user.service';
import { Router } from '@angular/router';
@Component({
selector: 'nav-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.