text stringlengths 10 953k |
|---|
export * from "./OctocatLink";
export { default } from "./OctocatLink"; |
import * as nls from "vs/nls";
import { Action } from "vs/base/common/actions";
import { TERMINAL_COMMAND_ID } from "vs/workbench/contrib/terminal/common/terminalCommands";
import { ITerminalService } from "vs/workbench/contrib/terminal/common/terminal";
import * as actions from "vs/workbench/contrib/terminal/electron-... |
import { Vehicle } from 'app/_model/vehicle';
import { Repairman } from './repairman';
export class Workdone{
idWorkdone: number;
vehicle: Vehicle;
repairman: Repairman;
fecha: string;
titleWorkdone: string;
commentary: string;
detail: string;
} |
import React from 'react';
import { TimeZone, TimeRange } from '@grafana/data';
interface Props {
isFullscreen: boolean;
value: TimeRange;
onApply: (range: TimeRange) => void;
timeZone?: TimeZone;
roundup?: boolean;
}
export declare const TimeRangeForm: React.FC<Props>;
export {}; |
import RequestError from './request_error';
export class TemplateNotFoundError extends RequestError {
constructor(templateID: string) {
super('templateNotFound', `The requested template with id: '${templateID}' couldn't be found.`, 404);
}
}
export class TemplateNotReadableError extends RequestError {
const... |
import { api } from '../lib/api';
import { InviteDeveloperModel, InviteUserModel } from '../model/api/invite-user.model';
import { Page } from '../model/api/page.model';
/**
* Description: API service to manage User Invites.<br>
*
* Endpoints:<br>
*
* GET 'v2/invites/users'<br>
*
* GET 'v2/invites/users/byToken... |
import { VideosDetailsGateway } from "../gateway/VideosDetailsGateway";
export interface VideoDetailsUCUnput {
videoId: string
}
export interface VideoDetailsUCOutput {
videosDetails: any
}
export class VideoDetailsUC {
constructor(private videoDetaisGw: VideosDetailsGateway){}
public async execute... |
import { Button, FormLabel, Grid, makeStyles } from '@material-ui/core'
import axios, { AxiosResponse } from 'axios'
import https from 'https'
import React from 'react'
import { DEV_URL } from '../../constants'
import { useVoteStateStore, VOTE_STATES } from '../../models/voting'
type StateResult = {
state: string
... |
/*
* 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 { getActionRoute } from './get';
import { httpServiceMock } from 'src/... |
import { Time } from '../time';
test('Time', () => {
const t1 = new Time(3600 + 60 + 1);
expect(t1.hours).toBe(1);
expect(t1.minutes).toBe(1);
expect(t1.seconds).toBe(1);
expect(t1.toString()).toBe('1h 1m 1s');
const t2 = new Time((3600 * 2) + (60 * 3) + (1 * 4));
expect(t2.hours).toBe(2);... |
import * as datTypes from 'dat.gui';
import { debugView, cameraSettings, playerSettings } from '../lib/settings';
// =============================================================================
// Settings
// =============================================================================
/** Default settings for debu... |
import React, { CSSProperties, Fragment } from 'react';
import 'react-confirm-alert/src/react-confirm-alert.css';
import { css } from '@emotion/css';
import { calculatePrice } from './util/price';
import { ConfirmCart } from './alert';
export interface AlertCart {
title: string;
avalible: number;
price: number;
... |
import { Module } from '@nestjs/common';
import { ReleaseController } from '../controllers/api/release.controller';
import { KanbanController } from '../controllers/api/kanban.controller';
import { DeployController } from '../controllers/api/deploy.controller';
import { SharedHttpModule } from './shared-http.module';
... |
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
// always import Shared
import { SharedModule } from "@shared/shared.module";
// next import RoutingModule
import { CoreRoutingModule } from "./core-routing.module";
// next import containers, components
import { HomeContainer } from "./containers";
const COR... |
/** Read-only. Nullable. */
export class AudioRoutingGroupItemRequestBuilderGetQueryParameters {
/** Expand related entities */
public expand?: string[] | undefined;
/** Select properties to be returned */
public select?: string[] | undefined;
/**
* Maps the query parameters names to their enco... |
import Logger from '../Logger'
//import Timer = NodeJS.Timer
export class Poller {
private polling = false
private logger: Logger
private timeout: /*Timer|null for some reason this only works on my machine *shrug */ any = null
constructor(logger: Logger) {
this.logger = logger
}
public start (cb: ()... |
import axios from 'axios';
const api = axios.create({
baseURL: 'https://www.themealdb.com/api/json/v1/',
});
export default api; |
import { Application } from './application';
import { Base } from './base';
import { Controller } from './controller';
import { Factory } from './factory';
import { Middleware } from './middleware';
import { Module } from './module';
import { Provider } from './provider';
import { Service } from './service';
export { ... |
import { Controller, Post } from '@nestjs/common';
import { BoletimService } from './boletim.service';
@Controller('boletim')
export class BoletimController {
constructor(private boletim: BoletimService) {}
@Post('agenda')
async atualizaApiAgenda() {
return await this.boletim.agenda();
}
} |
import config from './config';
import { validateConfig } from './config.validate';
export default (): ReturnType<typeof config> => {
const configVals = {
...config({
skipValidation: true,
}),
DISCORD_BOT_TOKEN: 'bot-token',
DISCORD_CLIENT_ID: 'discord-client-id',
DISCORD_CLIENT_SECRET: 'dis... |
/**
* Inject WDYR into the app. This should be included at the very top of index.tsx
* when needed (i.e. debugging rendering performance).
*/
import React from "react";
import whyDidYouRender from "@welldone-software/why-did-you-render";
if (process.env.NODE_ENV === "development") {
whyDidYouRender(React, {
... |
import React from 'react';
declare const _default: {
title: string;
component: {
new (): Navigator;
prototype: Navigator;
};
decorators: (import("@storybook/addons").DecoratorFunction<import("@storybook/react/dist/client/preview/types").StoryFnReactReturnType> | import("@storybook/addons... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Rule } from '@angular-devkit/schematics';
export { polyfillMetadataRule } from './polyfill-metadata';
export ... |
import React from 'react'
import Store from 'src/store'
import ContainerExample from 'components/examples/ContainerExample'
import TypeExample from 'components/examples/TypeExample'
import InsertExample from 'components/examples/InsertExample'
import AnimationWrapper from 'components/examples/AnimationExample'
import C... |
import 'phaser'
export default class Hero extends Phaser.GameObjects.Sprite {
} |
import {factory, InsideOutPromise, TPromiseState} from '../../main/ts'
import * as Bluebird from 'bluebird'
import {noop} from '../../main/ts/util'
describe('factory', () => {
afterAll(() => factory.Promise = Promise)
it('returns proper instance', () => {
const p = factory()
expect(factory).toEqual(expec... |
/*
* Copyright 2021 ACC Cyfronet AGH
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
import * as paneRegistry from 'pane-registry'
import { getOutliner } from '../src'
const Pane = require('./pane').default
const $rdf = require('rdflib')
const UI = require('solid-ui')
const SolidAuth = require('solid-auth-client')
// FIXME:
window.$rdf = $rdf
async function renderPane (uri: string) {
if (!uri) {
... |
import * as React from 'react';
import { COMPONENTS_NAMESPACES } from '../../constants';
import { PartialGlobalDefaultTheme } from '../../utils/useTheme';
import { ValidationProps } from '../Validation/types';
import { PasswordStrength } from './constants';
import { CustomRender } from '../../commonTypes';
import { def... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {shallow} from 'enzyme';
import {Modal} from 'react-bootstrap';
import {UserProfile} from 'matterfoss-redux/types/users';
import WarnMetricAckModal from 'components/warn_... |
<TS language="es_VE" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import React, { useState } from 'react'
import Splash from '@rn-base/splash'
// import { isIphoneX } from '@rn-base/native-common'
import { AlertProvider, AppProvider, DefaultColor } from '@rn-base/element'
import { enableScreens } from 'react-native-screens'
import { SafeAreaProvider } from 'react-native-safe-area-c... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { HttpResponse, HttpErrorResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { QmsBomTechnologyComponent } from '../../../popup/bomTechnologySelection/qms-bom-technology.comp... |
import { AttriebutesRendererButton } from "./Attributes/Renderer/AttriebutesRendererButton";
import { AttriebutesRendererContainer } from "./Attributes/Renderer/AttriebutesRendererContainer";
import { AttriebutesRendererEmpty } from "./Attributes/Renderer/AttriebutesRendererEmpty";
import { AttriebutesRendererImage } f... |
import http from 'http';
import mongoose from 'mongoose';
import debug from 'debug';
import app from './app';
import type { AddressInfo } from 'net';
debug('setoalan-api:server');
function normalizePort(val: string) {
const port = parseInt(val, 10);
if (isNaN(port)) return val;
if (port >= 0) return port;
ret... |
// **********************************
// Auto-generated file, do NOT modify
// **********************************
import React, { forwardRef, memo } from 'react';
import { PrivateIconProps } from '../../base';
import { useUniqueId } from '../../utils';
import { createStyledFlagIcon, FlagIconProps } from '../base';
co... |
export default {
title: 'Components/GraphEditor'
}
export {
DefaultElement
} from './Default'
export {
WithEditElement
} from './WithEdit' |
import { AutoAcceptProof } from '@aries-framework/core'
import { Type } from 'class-transformer'
import { IsString, IsOptional, ValidateNested, IsEnum } from 'class-validator'
import { ProofRequest } from '../utils/ProofRequest'
export class ProofRequestTemplate {
@ValidateNested()
@Type(() => ProofRequest)
pub... |
import * as vscode from 'vscode'
import * as fs from 'fs'
import {latexParser} from 'latex-utensils'
import type {Extension} from '../../main'
import type {IProvider} from './interface'
import {resolveCmdEnvFile} from './commandlib/commandfinder'
import {Suggestion, splitSignatureString} from './command'
type DataEnv... |
// TODO: Go back to anchor once they handle:
// Error: Raw transaction 4nZwiENzNwKLfCBtDirAr5xE71GUqsNKsUNafSUHiEUkWhqbVgEmximswnDFp4ZFFy5C4NXJ75qCKP6nnWBSmFey failed ({"err":{"InstructionError":[4,{"Custom":1}]}})
export const LangErrorCode = {
// Instructions.
InstructionMissing: 100,
InstructionFallbackNotFou... |
// Type definitions for bardjs 0.1.4
// Project: https://github.com/wardbell/bardjs
// Definitions by: Andrew Archibald <https://github.com/TepigMC>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
/// <reference types="angular" />
/// <reference types="chai" />
/// <refere... |
import { NestFactory } from '@nestjs/core';
import { Logger } from '@nestjs/common';
import { AppModule } from './app.module';
async function bootstrap() {
const logger = new Logger('bootstrap');
const app = await NestFactory.create(AppModule);
await app.listen(3000);
logger.log('Application is listening on por... |
import uuid from '../uuid';
export default class TagUtil {
/**
* 获取 tag key 的中文名
*
* @export
* @param {string} key
* @param {IInputList[]} labelInfoSet
* @returns
*/
public static getTagKeyName(key: string, labelInfoSet: IInputList[]) {
if (!labelInfoSet) {
return;
}
return ... |
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable react-hooks/rules-of-hooks */
import {
Button,
Flex,
Text,
Box,
Modal,
ModalOverlay,
ModalContent,
ModalHeader,
ModalBody,
ModalCloseButton,
} from "@chakra-ui/react";
import React from "react";
import { FaInfoCircle, FaKey, FaWallet... |
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { HttpClientService } from '../../services/http-client.service';
@Component({
selector: 'image-uploader',
templateUrl: './image-uploader.component.html',
styleUrls: ['./image-upl... |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { SchemaTypes } from 'mongoose';
import { Account } from 'src/schema/account/account.schema';
import { User } from 'src/schema/user/user.schema';
@Schema({ versionKey: false, _id: false })
export class AccountOperationDetails {
@Prop({ type: Sche... |
/**
* 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.
*/
import {JSNodeBase} from "@romejs/ast";
import {createBuilder} from "../utils";
export type TSStringLiteralTypeAnnotation = JSNod... |
export {default as Icon} from './icon/Icon'
// import React from 'react'
// import ReactDOM from 'react-dom'
// import Icon from './icon/Icon'
//
// const App = ()=>{
// return (
// <div>
// <Icon name={'pay'}/>
// </div>
// )
// }
//
//
// ReactDOM.render(<App/>,document.querySelector('#root')) |
import React from 'react';
import { cleanup, render, screen } from '@testing-library/react';
import { SolFooter } from '../sol-footer';
// more info
// https://testing-library.com/docs/react-testing-library/example-intro
// https://www.leighhalliday.com/introduction-react-testing-library
afterEach(cleanup);
describe... |
// The @atlassian/mediaviewer type definitions
// These types are required by TS consumers to consume @atlaskit/media-viewer
// This file is intentionally NOT a TS declaration file (mediaviewer.d.ts) because the Atlaskit build process does NOT publish declaration files to the /dist directory
// TODO MSW-216 move type ... |
export class UserRegistrationDto {
pos: {
lat: number,
long: number
}
zipCode: string;
address: string;
timezone: string;
country: string;
email: string;
deviceId: string;
registrationCode: string;
userToken: string;
authId: string;
googleAccessToken: string;
googleIdToken: string;
g... |
import { Injectable, Injector } from '@angular/core';
import { Actions, createEffect, Effect, ofType } from '@ngrx/effects';
import { Store, select } from '@ngrx/store';
import { TranslateService } from '@ngx-translate/core';
import { combineLatest, defer, Observable, scheduled } from 'rxjs';
import { asapScheduler } ... |
import { NgModule } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { BsDatep... |
/*
Copyright 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... |
import { NgModule } from '@angular/core';
import { ThemeModule } from '../../@theme/theme.module';
import { Ng2SmartTableModule } from 'ng2-smart-table';
import { SharedModule } from '../../shared/share.module';
import { RouterModule } from '@angular/router';
import { ButtonViewModule } from '../../shared/modules/butto... |
import { AxiosRequestConfig, AxiosResponse } from 'axios';
import { IR2CurlOptions } from './interface/IR2CurlOptions';
export default function r2curl(request: AxiosRequestConfig | AxiosResponse, option?: Partial<IR2CurlOptions>): string; |
/*
* 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 { useState, useEffect } from 'react';
export function useDebounce<T>(... |
import type {
ActionServiceBase,
ExtractActionTypeDefinitions,
PickActionFunctions,
} from "$common/ServiceBase";
import { getActionMethods } from "$common/ServiceBase";
import type { RootConfig } from "$common/config/RootConfig";
import type { MetricsEventFactory } from "$common/metrics-service/MetricsEventFacto... |
import { User } from '.prisma/client';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { AuthCredentialsDto } from './dto/auth-credentials.dto';
import { UserRepository } from './user.repository';
import * as bcrypt from 'bcrypt';
import { JwtService } from '@nestjs/jwt';
import { JwtPayload ... |
export const vevErrorText = (code: number) =>
[
'middleware must be a function',
'middleware must return config or pass to next',
'next must call once and onle once',
'fetch is unavailable',
'resFormat is not a function',
][code] || ''
export const vevAssert = (cond: boolean, code: number, text... |
import { createEffect, createEvent } from "effector";
import { ISession } from "./types";
import { Token } from "../../api/token";
export const setToken = createEffect<ISession, void, Error>().use(Token.set);
export const getToken = createEffect<void, ISession|undefined, Error>().use(Token.get);
export const removeTo... |
import React from 'react';
import { Popover, Whisper } from 'rsuite';
import './CustomPopover.scss';
type Placement4 = 'top' | 'bottom' | 'right' | 'left';
type Placement8 =
| 'bottomStart'
| 'bottomEnd'
| 'topStart'
| 'topEnd'
| 'leftStart'
| 'rightStart'
| 'leftEnd'
| 'rightEnd';
type PlacementAuto... |
import { Matrix4 } from './Matrix4';
import { Vector3 } from './Vector3';
/**
* ( interface Matrix<T> )
*/
export interface Matrix {
/**
* Array with matrix values.
*/
elements: number[];
/**
* identity():T;
*/
identity(): Matrix;
/**
* copy(m:T):T;
*/
copy( m: this ): this;
/**
* multiplySca... |
import React, { PureComponent } from 'react';
import translate, { translateRaw } from 'v2/translations';
import { Spinner } from 'v2/components';
import { NetworkContext } from 'v2/services/Store';
import { getDPath, getDPaths } from 'v2/services';
import { WalletFactory, ChainCodeResponse } from 'v2/services/WalletS... |
import { SubscriptionContactInfo } from "utils/types";
export const calculateSubscriptionPrice = (
subInfo: SubscriptionContactInfo
): string => {
let cost: number = 0.00;
if(subInfo.subOption == "email") return "15.00";
//At this point, we know that it is a standard subscription. So we need to check if they ... |
version https://git-lfs.github.com/spec/v1
oid sha256:7a7b9bc9b6bcde6774671f33d84656e673bac41e16f518dde6a31ee0ccbe552c
size 55272 |
/**
* @license
* Copyright 2017 Google LLC
*
* 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 ... |
import { boolean } from "@storybook/addon-knobs";
import { storiesOf } from "@storybook/react";
import React from "react";
import { AddressTileOption } from ".";
import { DEFAULT_PROPS } from "./fixtures";
storiesOf("@components/molecules/AddressTileOption", module)
.addParameters({ component: AddressTileOption })
... |
import 'reflect-metadata';
import redis from 'redis';
import AppError from '@shared/errors/AppError';
import { Request, Response, NextFunction } from 'express';
import { RateLimiterRedis } from 'rate-limiter-flexible';
const redisClient = redis.createClient({
host: process.env.REDIS_HOST,
port: Number(process.env.... |
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecr from '@aws-cdk/aws-ecr';
import { DockerImageAsset, DockerImageAssetProps } from '@aws-cdk/aws-ecr-assets';
import * as iam from '@aws-cdk/aws-iam';
import * as kms from '@aws-cdk/aws-kms';
import * as s3 from '@aws-cdk/aws-s3';
import * as sfn from '@aws-cdk/aws... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { DropdownModule } from 'ng2-bootstrap/ng2-bootstrap';
import { ModalModule } from 'ng2-bootstrap/ng2-bootstrap';
import { HomeModule } from './home/home.module';
import { Cha... |
import { DynamoDBDataLoader } from './dynamo-db';
import { NoneDataLoader } from './none';
import { LambdaDataLoader } from './lambda';
export interface AmplifyAppSyncSimulatorDataLoader {
load(payload: any): Promise<object | null>;
}
const DATA_LOADER_MAP = new Map();
export function getDataLoader(sourceType) {
i... |
function cameraName( label: string ) {
let clean = label.replace( /\s*\([0-9a-f]+(:[0-9a-f]+)?\)\s*$/, '' );
return clean || label || null;
}
class MediaError extends Error {
type: string;
inner: Error;
constructor( type, inner?: Error ) {
super( inner
? `Cannot access video stream (${type}: ${inner.message... |
import {Client} from '@elastic/elasticsearch';
import painlessFields from '../index';
const client = new Client({node: process.env.ES_URL});
describe('#upsertObjectInArray', () => {
it('should insert object in array if target object exists', async () => {
await client.create({
index: 'files-alias',
... |
import { ComponentFixture, TestBed, async, inject, fakeAsync, tick } from '@angular/core/testing';
import { Router } from '@angular/router';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { JhiEventManager } from 'ng-jhipster';
import { LoginService } from '../../../../../../main/webapp/app/shared... |
import * as React from "react";
import { Observable } from "babylonjs/Misc/observable";
import { Scene } from "babylonjs/scene";
import { PropertyChangedEvent } from "../../../propertyChangedEvent";
import { Color3LineComponent } from "../../../../sharedUiComponents/lines/color3LineComponent";
import { FloatLineCompon... |
import * as React from 'react';
import { StyleSheet, View } from 'react-native';
import { RadioButtonContext, RadioButtonContextType } from './RadioButtonGroup';
import { handlePress, isChecked } from './utils';
import MaterialCommunityIcon from '../MaterialCommunityIcon';
import TouchableRipple from '../TouchableRippl... |
import { BaseFilter, BaseQuery, ParamAllocator } from '@cubejs-backend/schema-compiler';
const GRANULARITY_TO_INTERVAL: Record<string, string> = {
second: 's',
minute: 'm',
hour: 'h',
day: 'd',
month: 'M',
year: 'Y'
};
class QuestParamAllocator extends ParamAllocator {
public paramPlaceHolder(paramIndex... |
/*
* @Author: Innei
* @Date: 2020-07-23 14:40:05
* @LastEditTime: 2020-07-24 19:40:52
* @LastEditors: Innei
* @FilePath: /mx-player/src/components/controls/index.tsx
* @Coding with Love
*/
import React, { FC, memo, useCallback, useEffect, useState } from 'react'
import { PlayState } from '../..'
import { Expand... |
import Models = require("../share/models");
import Utils = require("./utils");
import _ = require("lodash");
import mongodb = require('mongodb');
import moment = require('moment');
import Config = require("./config");
import * as Promises from './promises';
export function loadDb(config: Config.ConfigProvider) {
v... |
import { MapOf, ForEvery } from "../types/base";
import {
Manager,
HumanManager,
ComputerManager,
ManagerAbilities
} from "../types/manager";
import rawManagerData, { RawManagerData } from "./data/manager-data";
import { countryFromLegacyCountry } from "./country";
import { trim, indexBy, prop, sortWith, ascend... |
import * as React from 'react'
import {observable, action, computed} from 'mobx'
import {observer} from 'mobx-react'
import Link from './Link'
import Admin from './Admin'
import EditorFAQ from './EditorFAQ'
import AdminSidebar from './AdminSidebar'
@observer
class FixedOverlay extends React.Component<{ onDismiss: () ... |
// Controllers
import Controller from '../Controller';
class FacebookAuthController extends Controller {
callBack(req, res, next) {
try {
} catch (e: any) {
next(e);
}
}
}
export default new FacebookAuthController(); |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
import { ShellModel } from '../../../shell/data-store';
export class FirebaseProfileModel extends ShellModel {
image: string;
name: string;
role: string;
description: string;
email: string;
provider: string;
phoneNumber: string;
constructor() {
super();
}
} |
import * as React from 'react';
import * as ReactRedux from 'react-redux';
import Layout from './components/templates/Layout/Layout';
import { enhancers } from './effects';
import EffectRedux from './lib/effect-redux';
import configureStore, { actionCreators } from './store';
const store = configureStore();
store.disp... |
import { AppState } from '../store';
const getConfiguration = (state: AppState) => state.configuration;
export default {
getConfiguration,
}; |
import { Alert, Button, Dropdown, Input, Layout, Menu, Modal } from "antd"
import { CSSProperties, FC, useEffect, useState } from "react"
import { useHistory } from "react-router"
import checkIsValidAddress from "../../common/utils/checkIsValidAddress"
import { DownOutlined } from '@ant-design/icons';
import local from... |
import { Transform } from "stream";
//stream startWith helper
export const endWith = (data: any) => {
return new Transform({
objectMode: true,
flush(cb) {
cb(null, data);
},
transform(item, enc, cb) {
cb(null, item)
},
})
}; |
export { authHandler as default } from '~/server/next-auth'; |
import { Component } from '@angular/core';
import { NgForm } from '@angular/forms';
import { Router } from '@angular/router';
import { UserData } from '../../providers/user-data';
import { UserOptions } from '../../interfaces/user-options';
@Component({
selector: 'page-login',
templateUrl: 'login.html',
styl... |
import { SERVER_API_URL } from '../../../app.constants';
import { createRequestOption } from 'app/shared/util/request-util';
import { RestaurantSummary } from '../../models/restaurant-summary.model';
import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { Ob... |
const { spawnSync } = require("child_process")
const npmrunpath = require("npm-run-path")
const { CI = "", GITHUB_REF = "" } = process.env
spawnSync(
"lerna",
[
"version",
"--no-push",
"--conventional-commits",
...
CI
? [ "--yes" ]
... |
import { Theme } from '../common/types';
import theme from './theme';
const primary: Theme = {
...theme,
name: 'primary',
colors: {
...theme.colors,
text: '#000',
background: '#fafaff',
primary: '#11e',
secondary: '#c0c',
highlight: '#e0e',
muted: 'hsl(10, 20%, 94%)',
modes: {
... |
/*
* 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 u... |
import React, { SFC } from 'react'
import styled from '@emotion/styled'
export type Kind = 'info' | 'positive' | 'negative' | 'warning'
export type KindMap = Record<Kind, string>
const kinds: KindMap = {
info: '#5352ED',
positive: '#2ED573',
negative: '#FF4757',
warning: '#FFA502',
}
export interface AlertPr... |
import { CronJob } from "cron";
import { fetchDiscs } from "../db/populate";
import Config from "../helpers/config";
import { RequestRepo as Manager } from "../repositories/DiscRepository";
export default class Cron {
private static EveryNightAtMidnight = "0 0 0 * * *";
private manager: Manager;
constructor(mana... |
import {Event, ipcRenderer} from 'electron'
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import * as HelperUI from '../../HelperUI'
import { TrelloTypes } from '../../TrelloInterfaces'
export default class BoardBackground extends React.Component<IBoardBackgroundProps, IBoardBackgroundState> {
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { Observable } from 'rxjs/Observable';
import { Cancellation, CancellationError } from '../../client/common/cancellation';
import {
ExecutionResult,
IProcessService,
ObservableExecutionResul... |
import { UnregisterCallback } from "history"
import { RouteComponentProps } from "react-router"
// tslint:disable-next-line no-empty
const noop = () => {}
export function getMockRouterProps<P = {}>(data: P = {} as P) {
const location = {
hash: "",
key: "",
pathname: "",
search: "",
state: {}
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.