text stringlengths 10 953k |
|---|
import { Document } from 'mongoose';
export interface CommentInterface extends Document {
_id: string;
content: string;
userId: string;
blogId: string;
pid?: string;
isUpdated?: boolean;
isDeleted?: boolean;
likeCount?: number;
createDate?: Date;
updateDate?: Date;
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
export class Elastigroup extends pulumi.CustomResource {
/... |
<TS language="fa" 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>
<transl... |
export interface INamingConvention {
toSymbol(path: string): string;
toFile(symbol: string): string;
}
export class DefaultNamingConvention implements INamingConvention {
toSymbol(path: string): string {
path = this.toCamelCase(path.trim());
return path.charAt(0).toUpperCase() + path.slice(1);
}
toF... |
import { reverseVowels } from './reverseVowels';
describe('reverseVowels function', () => {
it('should work', () => {
const actual = reverseVowels('computer');
expect(actual).toBe('cemputor');
const actual2 = reverseVowels('The Daily Byte');
expect(actual2).toBe('The Dialy Byte');
});
}); |
import { IsDate, IsOptional, IsString, IsUUID } from 'class-validator';
import { RecordToInstanceTransformer } from '../../../shared';
import { BookDto } from './../../../domain/book/dtos/bookDto';
export class AuthorDto {
@IsUUID('4')
public readonly id: string;
@IsDate()
public readonly createdAt: Date;
... |
<!DOCTYPE TS><TS>
<context>
<name>General</name>
<message>
<source><h3>Nimbus</h3>Python 3/Qt 4-based Web browser.</source>
<translation><h3>Nimbus</h3>Python 3/Qt 4-based Web browser.</translation>
</message>
<message>
<source><b>Proxy configuration... |
// THIS FILE WAS AUTOGENERATED
/// <reference path="../../External/qunit.d.ts" />
/// <reference path="../../../JavaScriptSDK/Contracts/Generated/DataPoint.ts" />
/// <reference path="../../../JavaScriptSDK/Contracts/Generated/MetricData.ts" />
/// <reference path="../../../JavaScriptSDK/Contracts/Generated/RemoteDepen... |
import * as provide from 'shared/provide';
provide.add(10, 20); |
import { ThemeProvider } from '@expo/styleguide';
import { MDXProvider } from '@mdx-js/react';
import * as Sentry from '@sentry/browser';
import { AppProps } from 'next/app';
import React from 'react';
import { preprocessSentryError } from '~/common/sentry-utilities';
import * as markdownComponents from '~/common/tran... |
/// <reference path="fourslash.ts" />
// @Filename: f.ts
////class A {
//// [|[|{| "contextRangeIndex": 0 |}constructor|](s: string) {}|]
////}
////class B extends A { }
////[|export { [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}A|], [|{| "isWriteAccess": true, "isDefinition": true, ... |
import { getRect } from '../common/utils';
import { VantComponent } from '../common/component';
VantComponent({
relation: {
name: 'index-bar',
type: 'ancestor',
current: 'index-anchor',
},
props: {
useSlot: Boolean,
index: null,
},
data: {
active: false,
wrapperStyle: '',
an... |
import React, { useState } from "react";
import Button from "../Button/Button";
import { CustomButtonProps } from "../Button/Button.types";
import { Container, Content, Message, Title, Footer, StyledPopover } from "./Popover.styles";
interface ButtonPopoverContentProps {
title: string;
message?: string;
co... |
import { ElementRef, EventEmitter, AfterViewInit } from '@angular/core';
import 'fullcalendar';
import { Options } from "fullcalendar";
export declare class CalendarComponent implements AfterViewInit {
private element;
options: Options;
initialized: EventEmitter<boolean>;
text: string;
constructor(e... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MatDialogModule } from '@angular/material/dialog';
import { MatDialogRef } from '@angular/material/dialog';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ConfirmationDialogComponent } from './confirmation-dialog.co... |
import { State } from '../core/state';
import { Nails } from '../nails';
import { ComponentEngine } from '../core/engine/componentEngine';
import { Injector } from '../core/injector';
const nailsConfig = {
el: 'body',
// tslint:disable-next-line: object-literal-sort-keys
data: {
ipsum: '1',
// tslint:dis... |
export interface AMDemodSettings {
audioDeviceName: string;
audioMute: number;
bandpassEnable: number;
inputFrequencyOffset: number;
rfBandwidth: number;
rgbColor: number;
squelch: number;
title: string;
volume: number;
pll: number;
syncAMOperation: number;
useReverseAPI?... |
// @ts-ignore: package.json will be imported from dist folders
import packageInfo from "../package.json"; // eslint-disable-line
import { Sha256 } from "@aws-crypto/sha256-browser";
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
import { FetchHttpHandler as Reques... |
import { NamedNode, Node } from './Node';
import { SortedMap } from '../util/SortedMap';
import { Index } from './indexes/Index';
/**
*
* @param {Object.<string, FallbackType|SortedMap.<NamedNode, Node>>} indexes
* @param {Object.<string, Index>} indexSet
* @constructor
*/
export declare class IndexMap {
priva... |
import { SkyRouter } from "skyrouter";
import DomNodeView from "./view/DomNodeView";
import Home from "./view/Home";
import SimpleImage from "./view/SimpleImage";
import SpineNodeView from "./view/SpineNodeView";
SkyRouter.route("", Home);
SkyRouter.route("simpleimage", SimpleImage);
SkyRouter.route("spinenode", Spine... |
/// <reference types="react" />
import { CreateCSSProperties } from '@material-ui/styles';
import { UeocGeometry, UeocSize } from './simple/UeocGeometry';
import { UeocBorder } from './simple/UeocBorder';
import { UeocPaddings } from './simple/UeocPaddings';
import { UeocMargins } from './simple/UeocMargins';
export de... |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Staff } from '../model/staff';
import { Bookings } from '../../bookings/model/bookings/bookings';
import { Transaction } from '../../transaction/model/transaction';
import { FirebaseConfigService } from '../../../core/... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersService } from './users.service';
import { UserEntity } from './entities/user.entity';
import { UsersController } from './users.controller';
import { SolanaService } from '../solana/solana.service';
@Module({
imp... |
import * as t from "io-ts";
import * as DFIS from 'io-ts-types/lib/DateFromISOString';
export const DateFromISOString = t.brand(
t.string,
(s): s is t.Branded<string, { readonly DateFromISOString: symbol }> => DFIS.DateFromISOString.is(s),
"DateFromISOString"
);
export type DateFromISOString = t.TypeOf<typeof D... |
import ip from 'ip'
import { OutPacketBase } from 'packets/out/packet'
import { User } from 'user/user'
import { RoomTeamNum } from 'room/room'
/**
* shared room user structure
* @class OutRoomPlayerNetInfo
*/
export class OutRoomPlayerNetInfo {
private teamNum: RoomTeamNum
private playerUnk01: number
... |
import { Controller, UseGuards, Get, Post, Req, Redirect } from '@nestjs/common';
import { Request } from 'express';
import { environment } from '@env';
import { Public } from 'common/decorators';
import { GithubGuard } from 'common/guards';
@Controller('auth')
export class AuthController {
@Public()
@UseGuards(G... |
import { default as ListHeader } from './ListHeader';
import * as CONSTANTS from './ListHeader.constants';
import type { Props, OutlinePosition as _OutlinePosition } from './ListHeader.types';
export { CONSTANTS as LIST_HEADER_CONSTANTS };
export type ListHeaderProps = Props;
export type OutlinePosition = _OutlinePosi... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {IconsComponent} from './icons.component';
describe('IconsComponent', () => {
let component: IconsComponent;
let fixture: ComponentFixture<IconsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarat... |
export enum ConnectionType {
Connected = 'Connected',
Accepted = 'Accepted',
Declined = 'Declined',
Completed = 'Completed'
} |
import { forwardRef, Inject, Injectable } from '@angular/core';
import { App } from '../components/app/app';
export const enum GesturePriority {
Minimun = -10000,
VeryLow = -20,
Low = -10,
Normal = 0,
High = 10,
VeryHigh = 20,
SlidingItem = Low,
MenuSwipe = High,
GoBackSwipe = VeryHigh,
Refresher ... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { ActivatedRoute, Params } from '@angular/router';
import { Location } from '@angular/common';
import {
DateUtils,
DicDataService,
LodopPrintService,
OrderService,
VacStockApprovalApi... |
import ChartJS from "chart.js";
import {isEmpty} from "$utils/Util";
import {cloneDeep, get} from "lodash";
import StoreManager from "./StoreManager";
import {URLParamStore} from "./URLParamStore";
import {UnitModelEnum} from "$models/UnitModel";
import * as LinDBService from "../services/LinDBService";
import {LegendV... |
import * as types from "./types";
import {
deleteAntiHeroAxios,
getAntiHeroesAxios,
postAntiHeroAxios,
putAntiHeroAxios,
} from "@/services/antiHeroService";
import { AntiHeroModel } from "@/models/antiHeroModel";
export function getAntiHeroesAction({ commit }: any) {
commit(types.LOADING_ANTI_HERO, true);
... |
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the ... |
export class User {
public id: number;
public userName: string;
public email: string;
public mobile: string;
public password: string;
public displayName: string;
public createTime: Date;
public updateTime: Date;
public deleted: number;
} |
import { Component, OnInit, OnDestroy, Input } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
import { Subscription } from 'rxjs'
import { debounceTime } from 'rxjs/operators'
import { ConfigurationsService } from '@sunbird-cb/utils'
import { IWidgetErrorFeatureUnavailable } from './error-feat... |
import React, { memo } from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import Profile from 'app/screens/Profile';
import ROUTES from 'app/config/routes';
const Stack = createStackNavigator();
const ProfileNavigation = memo(() => {
return (
<Stack.Navigator>
<Stack.Screen
... |
import { CoreStitchServiceClient, Decoder } from "mongodb-stitch-core-sdk";
import StitchServiceClient from "../StitchServiceClient";
export default class StitchServiceClientImpl implements StitchServiceClient {
private readonly proxy;
constructor(proxy: CoreStitchServiceClient);
callFunction<T>(name: strin... |
/**
* 车门店 API
* 前后端交互协议, 遵循以下约定: 1. 所有api都属于无状态接口 2. 除了/user/login,/_*_/sms,/user/register,/user/updatePwd接口,其他接口都要登录之后才能操作 3. 登录成功之后,后端每次都把token和shopId(当前门店)置入header,回传服务端 4. 客户端请求参数分两种: 1. 以form方式提交,可以附带store、pageNumber、pageSize参数 2. 以json方式提交,务必附带store、pageNumber、pageSize属性,如果没有值,为null 5. 服务端... |
import { Text, Theme, useColor } from "palette"
import React from "react"
export const InputTitle: React.FC<{ optional?: boolean; required?: boolean }> = ({
children: title,
optional,
required,
}) => {
const color = useColor()
if (!title) {
return null
}
return (
<Theme>
<Text variant="md... |
import { getAxiosInstance } from '../shared/user-login';
import {
CATALOG_API_BASE,
CATALOG_INVENTORY_API_BASE,
SOURCES_API_BASE
} from '../../utilities/constants';
import { defaultSettings, PaginationConfiguration } from '../shared/pagination';
import {
Source,
ServiceOffering,
ServiceInventory
} from '@re... |
import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
import { DescribeMultiplexRequest, DescribeMultiplexResponse } from "../models/models_1";
import {
deserializeAws_restJson1DescribeMultiplexCommand,
serializeAws_restJson1DescribeMultiplexCommand,
} from "../p... |
//----------------------
// <auto-generated>
// Generated by Ozytis Model Generator DO NOT EDIT!
// </auto-generated>
//----------------------
export interface MissionProgressionModel {
missionId: string;
startDate: string;
progression: number;
} |
import mongoose from "mongoose";
const Schema = mongoose.Schema;
const LEDSchema = new Schema({
partName: {
type: String,
required: [true, "partName field is required."],
},
effectName: {
type: String,
required: [true, "effectName field is required."],
},
repeat: {
type: Number,
requi... |
import { mount } from 'enzyme'
import { createMemoryHistory } from 'history'
import React from 'react'
import { of, Observable } from 'rxjs'
import { StatusMessagesResult, StatusMessageFields } from '../graphql-operations'
import { StatusMessagesNavItem } from './StatusMessagesNavItem'
describe('StatusMessagesNavIte... |
import { Component } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
import { AuthService } from './services/auth.service';
interface Coordinates {
lat: number;
lng: number;
}
interface Location {
location: Coordinates;
}... |
import * as React from 'react';
import * as fdc3 from '../../../client/main';
import {ContactContext} from '../../../client/context';
import {Contact} from '../../apps/ContactsApp';
import {IntentButton} from '../common/IntentButton';
import './ContactsRow.css';
interface ContactRowProps {
item: Contact;
se... |
/**
* Created by David Chang on 2017/1/2.
*/
import {Component, Input, OnInit} from '@angular/core';
import {Hero} from "./hero";
import {HeroService} from "./hero.service";
import {ActivatedRoute, Params} from "@angular/router";
import { Location } from '@angular/common'
import 'rxjs/add/operator/switchMap'
@Compon... |
// @flow
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit-components
import * as React from "react";
import { ButtonCommonProps } from "../primitives/ButtonPrimitive/index";
declare module "@kiwicom/orbit-components/lib/Button";
type Type = "primary" | "secondary" | "cri... |
import React from "react"
import { View, Image } from "react-native"
import { divalityLogoStyle } from "./DivalityLogoStyle"
const DivilityLogo = () => {
return (
<View style={divalityLogoStyle.container}>
<Image
source={require('@images/logo.png')}
style={diva... |
import Image from 'next/image'
import React from 'react'
const FloatingWhatsapp: React.FC = () => {
return (
<a
target="_blank"
rel="noopener"
className="cursor-pointer hover:scale-105 fixed bottom-0 right-0 z-50 m-10"
href="https://wa.me/447771253554"
>
<Image src="/whatsapp-ic... |
import React, { useEffect, useRef, useState } from "react"
import { graphql, PageProps } from "gatsby"
import { Link } from "gatsby"
import { ArrowRight } from "react-feather"
import { GitHub } from "react-feather"
import { Slack } from "react-feather"
import Layout from "../components/layout"
import { Button } from ... |
/*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import { ComplexTypeField, ComplexTypeStringPropertyField, ConstructorOrField, EntityV4, FieldType, PropertyMetadata, deserializeComplexTypeV4 } from '@sap-cl... |
// Type definitions for Node.js 10.7.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
// Parambir Singh <https://github.com/parambirs>
// Christian ... |
import React from 'react'
import { action } from '@storybook/addon-actions'
import { Container } from 'semantic-ui-react'
import EditAllowanceForm from './EditAllowanceForm'
import { EthAddress, ResolvingStates } from '../addressInput/AddressSlice'
export default {
title: 'EditAllowanceForm',
component: EditAl... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { TaskStatus } from './task-status.enum';
import { CreateTaskDto } from './dto/create-task.dto';
import { GetTasksFilterDto } from './dto/get-tasks-filter.dto';
import { TaskRepository } from './task.repository';
import { InjectRepository } from '@n... |
export interface UseMouse {
// 鼠标按下
startEvent: () => void;
}
export function useMouse(): void {
//
} |
import * as React from 'react';
import '@fontsource/roboto';
import Button from '@material-ui/core/Button';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import SettingsIcon from '@material-ui/icons/Settings';
import {
IChangeEvent,
ErrorSchema,
ISubmitEvent,
} f... |
// Imports
// ========================================================
import { Router, Request, Response } from 'express';
// import { NotFound } from '../../utils/errorHandlers';
import { buildSuccessResponse } from '../../utils/helpers';
// import dictionary from '../../utils/dictionary.json';
import { UPSERT_USER }... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class SharedService {
constructor(private http: HttpClient) {}
getdata(url: string) {
return this.http.get(url);
}
} |
import { AuthUserStoreModel, SocialStoreModel, ProfileStoreModel, DropdownsStoreModel } from './store/models/sore.model';
export interface AppState {
readonly AuthState: AuthUserStoreModel;
readonly SocialState: SocialStoreModel;
readonly ProfileState: ProfileStoreModel;
readonly DropdownsState: DropdownsStore... |
export * from './parking.effects';
export * from './carpark.effects'; |
import * as AWS from "aws-sdk";
import * as Mail from "nodemailer";
const EMAIL_SOURCE = process.env.EMAIL_SOURCE || "";
const EMAIL_ADMIN = process.env.EMAIL_ADMIN || "";
const EMAIL_RECIPIENT = process.env.EMAIL_RECIPIENT || "";
const BUCKET_NAME = process.env.BUCKET_NAME || "";
const ACCESS_KEY_ID = process.env.ACCE... |
import {
AppConfig,
APP_CONFIG,
BaseIACService,
ClipboardService,
DeeplinkService,
IACMessageTransport,
IACMessageWrapper,
ProtocolService,
RelayMessage,
UiEventElementsService
} from '@airgap/angular-core'
import { BeaconMessageType, SigningType, SignPayloadResponseInput } from '@airgap/beacon-sdk'... |
// Copyright IBM Corp. 2017. All Rights Reserved.
// Node module: openapi-to-graphql
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict'
/* globals beforeAll, test, expect */
import * as openapiToGraphql from '../lib/index'
const { parse, vali... |
import { BaseEntity } from './base.entity';
export declare class AdminEntity extends BaseEntity {
user_id: number;
user_firstname: string;
user_lastname: string;
user_email: string;
user_occupation: string;
user_age: string;
user_earnings: string;
user_pass: string;
user_birthdate: D... |
import type { BuildEnv } from '../../boot/init'
import { timeStampNow } from '../../tools/timeUtils'
import { normalizeUrl } from '../../tools/urlPolyfill'
import { generateUUID } from '../../tools/utils'
import type { InitConfiguration } from './configuration'
export const ENDPOINTS = {
logs: 'logs',
rum: 'rum',
... |
import { FC } from 'react';
import { MobileSearch } from 'components/Layout';
import PageTitle from 'components/PageTitle';
import { IDetailedCourse } from './types';
import { ButtonsWrapper, DetailedCourseWrapper, InnerWrapper, MobileSearchWrapper } from './styled';
import BackButton from './components/BackButton';
... |
import { TestBed } from '@angular/core/testing';
import { LocalDataService } from './local-data.service';
describe('LocalDataService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: LocalDataService = TestBed.get(LocalDataService);
expect(serv... |
import { IsNotEmpty, IsPositive, MaxLength, MinLength } from "class-validator";
export class ProductCreateDto {
@IsNotEmpty()
@MinLength(3)
@MaxLength(128)
title: string;
@IsNotEmpty()
@MaxLength(1024)
description: string;
@IsNotEmpty()
image: string;
@IsNotEmpty()
@IsPositive()
price: numbe... |
import React, { ReactText, useState } from 'react';
import { Grommet, Box, DataTable, Meter, Text } from 'grommet';
import { grommet } from 'grommet/themes';
import { ColumnConfig } from '../..';
// This story uses TypeScript
const amountFormatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: '... |
/**
* @type import('hardhat/config').HardhatUserConfig
*/
import * as dotenv from 'dotenv';
import 'hardhat-contract-sizer';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
dotenv.config();
const { ROPSTEN_INFURA_URL, RINKEBY_INFURA_URL, GOERLI_INFURA_URL... |
import { Packet } from '../../packet';
import { PacketType } from '../../packet-type';
import { Reader } from '../../reader';
import { Writer } from '../../writer';
/**
* Received when a notification is received by the player.
*/
export class NotificationPacket implements Packet {
readonly type = PacketType.NOTIF... |
import { Reducer } from 'redux'
import { Config } from '../shape'
import * as actionTypes from '../actionTypes'
const init: Config = {
filename: '',
isReadOnly: false,
isPlayground: false,
activeLayout: 'split',
libraries: [],
activeTab: 'interpreter',
library: {
title: 'source_week_3',
externals... |
export class UserSetting{
public barStartColor : string;
public barEndColor : string;
public cardColor : string;
public nameColor : string;
public specialCircleColor : string;
}
const DEFAULT_USER_SETTING=new UserSetting();
DEFAULT_USER_SETTING.cardColor="363636";
DEFAULT_USER_SETTING.barStartColor... |
/* eslint-disable no-shadow */
/* eslint-disable no-use-before-define */
/* eslint-disable no-bitwise */
/* eslint-disable no-underscore-dangle */
import { OperatingSystem } from './platform';
export enum KeyCode {
Unknown = 0,
Backspace = 1,
Tab = 2,
Enter = 3,
Shift = 4,
Ctrl = 5,
Alt = 6,
PauseBrea... |
import { Route53ResolverClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53ResolverClient";
import { GetResolverDnssecConfigRequest, GetResolverDnssecConfigResponse } from "../models/models_0";
import {
deserializeAws_json1_1GetResolverDnssecConfigCommand,
serializeAws_json1_1GetResolverD... |
export type ExportedModule = org.unimodules.core.ExportedModule;
export type ModuleRegistry = org.unimodules.core.ModuleRegistry;
export type ModuleRegistryProvider = org.unimodules.core.ModuleRegistryProvider;
export type ViewManager<V = any> = org.unimodules.core.ViewManager<V>;
export type Function<Param0, ReturnTyp... |
import Button from '@material-ui/core/Button';
import Modal from '@material-ui/core/Modal';
import TextField from '@material-ui/core/TextField';
import TypoGraphy from '@material-ui/core/Typography';
import max from 'lodash/max';
import React from 'react';
import styled from 'styled-components';
import {Participant, Ru... |
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import { RecoilRoot } from "recoil";
import { Web3ReactProvider } from "@web3-react/core";
import { ethers } from "ethers";
import App from "./App";
import "./index.css";
const POLLING_INTERVAL = 12000;
expo... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { routes } from './routes';
@NgModule({
imports: [
CommonModule,
RouterModule.forRoot(routes)
],
exports:[RouterModule],
declarations: []
})
export c... |
import { Injectable } from '@angular/core';
import { Http, Headers, Response } from '@angular/http';
import { ActivatedRoute, Router } from '@angular/router';
import { Servidor } from '../servidor';
import { Sessao } from '../sessao';
@Injectable()
export class CuidadoRiscoGrauService {
url: string = 'web/pep/';
... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ControlMessagesComponent } from './control-message.component';
import { TranslateModule } from '@ngx-translate/core';
@NgModule({
imports: [CommonModule, TranslateModule],
declarations: [ControlMessagesComponent],
... |
import config from "@config/database/config";
import { Auth } from "@core/access_control";
import IDbConnection from "@core/database/idb_connection";
import sequelizeSoftDelete from "@plugins/sequelize/soft_delete";
import sequelizeTimestamp from "@plugins/sequelize/timestamp";
import Bluebird from "bluebird";
import s... |
export * from './audio-streamer'; |
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Th... |
import { Variable, VariableResolver } from '../snippetParser/snippetParser';
export class TimeBasedVariableResolver implements VariableResolver {
private static readonly dayNames = [
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
];
private static readon... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import {Observable} from 'rxjs/Observable';
import {Subscription} from 'rxjs/Subscription';
import {SkillService} from '../../shared/services/index';
import {Skill} from '../../shared/models/index';
@Component({
moduleId: module.id,
selector: 'skil... |
import React from 'react';
import * as L from '../../korus-ui';
import { StoryProps } from '../types';
export const Div = (storyProps: StoryProps) => (
<L.Div _demoStory>
<L.H4 _title>Div</L.H4>
<br />
<L.Div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
<L.Div style={... |
/*
* Copyright (C) 2019 HERE Europe B.V.
*
* 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 a... |
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { UsersModule } from '../users/users.module';
import { JwtStrategy } f... |
import { Injectable, BadRequestException } from '@nestjs/common';
import { OpenstackApiService } from './openstack.api.service';
import { ICloudApi, ICloudApiConfig } from '@dinivas/dto';
const YAML = require('js-yaml');
@Injectable()
export class CloudApiFactory {
constructor(private openstackApiService: Openstack... |
import Router, { useRouter } from 'next/router'
export async function getServerSideProps(context) {
const { query, res } = context
const id = query && query.v
if (res && !id) {
res.writeHead(302, {
Location: '/',
})
res.end()
}
if (!id) {
return {}
}
if (res) {
res.writeHead(... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { FetcherError } from '@commerce/utils/errors'
import type { GraphQLFetcher } from '@commerce/api'
import { getConfig } from '..'
import fetch from './fetch'
const fetchGraphqlApi: GraphQLFetcher = async (
query: string,
{ variables, preview } = {},
fetchOptions
) => {
const config = getConfig()
const... |
export class IndexOptions {
/**
* Class referenced to this entity.
*/
public readonly target: any;
/**
*
*/
public readonly name?: string;
/**
*
*/
public readonly columns: string[];
/**
*
*/
public readonly unique?: boolean;
constructor(options: Ind... |
/**
* DevExtreme (viz/funnel.d.ts)
* Version: 19.1.5
* Build date: Tue Jul 30 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import DevExpress from '../bundles/dx.all';
declare global {
interface JQuery {
... |
import phoneUtils from "..";
export default (phoneNumber: string) => phoneUtils(phoneNumber).normalized; |
function module2() {
console.log('[module-2]')
}
export default module2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.