text stringlengths 10 953k |
|---|
import { makeAutoObservable } from 'mobx';
import { getRequest } from '../../utils/axios';
import { Score, ScoreboardState } from './types';
export class ScoreboardStore {
public state: ScoreboardState;
private static getInitialState(): ScoreboardState {
return {
scoreboard: undefined
... |
import { useState } from "react";
export function useForceUpdate() {
const [_, set_] = useState(false);
function forceUpdate() {
set_((b) => !b);
}
return { forceUpdate };
} |
import React from 'react';
import { FormikProps } from 'formik';
import { SETTINGS } from 'core/config/settings';
import { IPubsubTrigger } from 'core/domain';
import { MapEditorInput } from 'core/forms';
import { HelpField } from 'core/help';
import { FormikFormField, ReactSelectInput, useLatestPromise } from 'core/... |
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-pessoas-grid',
templateUrl: './pessoas-grid.component.html',
styleUrls: ['./pessoas-grid.component.css']
})
export class PessoasGridComponent {
// tslint:disable: typedef
@Input() pessoas: any;
first = 0;
rows = 5;
... |
import { Injectable } from '@angular/core';
import * as hljs from 'highlight.js';
@Injectable()
export class NgxHighlightService {
public highlight(code: string): string {
return hljs.highlightAuto(code, ['ts', 'html', 'scss', 'nginx']).value;
}
} |
import { Component, OnInit } from '@angular/core';
import { IssuesService } from '../issueservice.service';
import { Router, ActivatedRoute } from '@angular/router';
import { ToastrService } from 'ngx-toastr';
import { Cookie } from 'ng2-cookies/ng2-cookies';
import { ValidationService } from '../validation.service';
i... |
import { Body, Controller, Get, Param, ParseIntPipe, Patch, Post, UseGuards } from '@nestjs/common';
import { MyTokenAuthGuard } from 'src/common/guards/token.guard';
import { GetUser } from '../user/decorator/get-user.decorator';
import { User } from '../user/user.entity';
import { RoomDTO } from './dto/create-room.dt... |
<TS language="uk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Клікніть правою кнопкою для редагування адреси або мітки</translation>
</message>
<message>
<source>Create a new address</source>
... |
import classNames from 'classnames';
import { t } from 'app/i18next-t';
import React from 'react';
import { DestinyAccount } from '../accounts/destiny-account.service';
import AccountSelect from '../accounts/AccountSelect';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import Link from './Lin... |
import { Controller, Get, Param, Res } from "@nestjs/common";
import { Response } from "express";
import { badgeConfig, DENOLIB_JSON_URL } from "../common/tool";
import { DenomodService } from "../denomod/denomod_service";
@Controller("badge")
export class BadgeController {
constructor(private readonly denomodServic... |
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { FormGroup, ValidatedOptions } from '@patternfly/react-core';
import { Dropdown } from '@console/internal/components/utils';
import { PipelineTaskWorkspace, PipelineWorkspace } from '../../../../types';
import { SidebarInputWrapper ... |
/*
* 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 {
Agent,
AgentAction,
NewAgentAction,
NewAgentEvent,
AgentEv... |
import {
Component,
OnInit,
Input,
Output,
EventEmitter,
} from '@angular/core';
import {
Store,
select,
} from '@ngrx/store';
import { Observable } from 'rxjs';
import { PaymentInfo } from '@daffodil/checkout';
import { DaffAddress } from '@daffodil/core';
import {
ToggleShowPaymentForm,
HidePaymen... |
import Vue from 'vue';
import VueRouter, { Route, RouteConfig } from 'vue-router';
import AuthModule from '@/store/modules/auth';
import RoutesModule from '@/store/modules/routes';
import AccountLayout from '@/layouts/AccountLayout.vue';
import DefaultLayout from '@/layouts/DefaultLayout.vue';
import adminRoutes fro... |
import { getRealm } from '../services/Realm';
import { sub, format } from 'date-fns';
import _ from 'lodash';
import { convertEntryTS } from './convertEntryTS';
const getBalanceToDate = async (untilDays: number) => {
const realm = await getRealm();
let entries = realm.objects('Entry');
const date = sub(new Date(... |
import {IsDate, IsEmail, IsNotEmpty, IsOptional, IsString, Max, Min } from 'class-validator';
import { RoleEntity } from 'src/role/entities/role.entity';
import { Transform } from "class-transformer";
import { FavoriteEntity } from 'src/favorite/entities/favorite.entity';
export class AddUserDto{
name: string;
... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardComponent } from './dashboard/dashboard.component';
import { StatusComponent } from './status/status.component';
import { FormComponent } from './form/form.component';
import { ResponseComponent } from '.... |
// MIT © 2017 azu
import { Store } from "almin";
import { GitHubSearchStream } from "../../domain/GitHubSearchStream/GitHubSearchStream";
import { AppRepository } from "../../infra/repository/AppRepository";
import { GitHubSearchList } from "../../domain/GitHubSearchList/GitHubSearchList";
import { GitHubSearchListRepo... |
import { Component, OnInit } from '@angular/core';
import { AuthService } from '../_services/auth.service';
import { TokenStorageService } from '../_services/token-storage.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class Log... |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import {
unitTest,
createResolvable,
assert,
assertEquals,
assertNotEquals
} from "./test_util.ts";
function deferred(): {
promise: Promise<{}>;
resolve: (value?: {} | PromiseLike<{}>) => void;
// eslint-disable-next-line @types... |
/*
* Node WebUSB
* Copyright (c) 2017 Rob Moran
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to u... |
import createIcon from './../createIcon'
export default createIcon('la la-deploydog') |
import { useNavigate } from 'solid-app-router';
import { Text } from 'solid-i18n';
import { Component, createSignal, Show } from 'solid-js';
import logoNav from '../../../../assets/images/logo-nav.png';
import Image from '../../../../atoms/Image';
import { useApplicationContext } from '../../../../context/context';
imp... |
import * as url from "./url";
import * as ct from "./chromeTabs";
import * as ctg from "./chromeTabGroups";
function groupTabs() {
const sortTabs = <HTMLElement>document.getElementById("sortTabs");
const groupTabs = <HTMLElement>document.getElementById("groupTabs");
const groupTabsIgnoreSubDomain = <HTMLElement>... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, OnInit } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-add-editcharge',
templateUrl: './add-editcharge.component.html',
styleUrls: ['./add-editcharge.component.css']
})
export class AddEditchargeComponent implements OnInit {
c... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import styled from "styled-components"
import Header from "./header"
import "./layout.css"
i... |
import * as React from 'react';
import { PrometheusUtilizationItem } from '@odf/shared/dashboards/utilization-card/prometheus-utilization-item';
import { humanizeBinaryBytes } from '@odf/shared/utils';
import {
UtilizationDurationDropdown,
UtilizationBody,
} from '@openshift-console/dynamic-plugin-sdk-internal';
im... |
export { AppConfig } from './app-config'
export { DatabaseConfig } from './database-config'
export { MailConfig } from './mail-config'
export { getEnv } from './utils' |
declare module '*.svg'
declare module '*.jpg'
declare module '*.mp4' |
import { CommitViewer } from "../viewers/commitViewer";
export class ServiceHolder{
public static commitViewer?:CommitViewer;
} |
import React, { useState } from 'react';
import { Select } from 'antd';
import style from './index.less';
const { Option } = Select;
export interface Item {
value: string;
text: string;
}
export interface SearchSelectProps {
style?: object;
value: string | undefined;
option: Item[];
onCustomSelect?: (va... |
/*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
import { registerIcons, unregisterIcons, registerIconAlias, getIcon } from './icons';
import type { IIconSubset } from './icons';
const fakeIconList = ['FakeIcon1', 'FakeIcon2', 'FakeIcon3', 'FakeIcon4'];
const fakeIconSubSet: IIconSubset = {
style: {
fontStyle: 'normal',
fontWeight: 'normal',
},
fontFac... |
import React, {
Fragment,
ChangeEvent,
useCallback,
useImperativeHandle,
} from 'react';
import {Localized} from '@fluent/react';
import UpdatesIcon from 'mdi-react/CloudDownloadIcon';
import {Radio, useUniqueId} from '@condict/ui';
import {UpdatePolicy} from '../../../types';
import {useConfig} from '../../... |
export default class ClientError extends Error {
readonly response: Response;
readonly body: any;
constructor(response: Response, body: Record<string, any>);
} |
import { Modes } from "bc-minecraft-bedrock-types";
import { CompletionItemKind } from "vscode-languageserver-types";
import { SimpleContext } from "../../../Code/SimpleContext";
import { CompletionBuilder } from "../../../Completion/Builder";
import { Kinds } from "../../General/include";
import { ProvideModeCompletio... |
import ApolloClient from 'apollo-client';
import { InMemoryCache, NormalizedCacheObject } from 'apollo-cache-inmemory';
import { HttpLink } from 'apollo-link-http';
import { persistCache } from 'apollo-cache-persist';
import { initialState } from './state';
import { typeDefs } from './typeDefs';
import { resolvers } f... |
declare interface ISearchResultsWebPartStrings {
SearchQuerySettingsGroupName: string;
SearchSettingsGroupName: string;
SearchQueryKeywordsFieldLabel: string;
SearchQueryKeywordsFieldDescription: string;
QueryTemplateFieldLabel: string;
SelectedPropertiesFieldLabel: string;
SelectedPropertie... |
import {LeveledEffectAction} from "./LeveledEffectAction.js";
/**
* @description A class that provides a built in level() method that sets the level of the effect
* @extends {Actions.Effect.LeveledEffectAction}
* @memberOf Actions.Effect
* @see Visit {@link Actions.Effect|Effect} for an example
*/
class EffectAct... |
import supertest from 'supertest'
import app from '../../src/index'
import 'mocha'
import { Server } from 'http'
import { expect } from 'chai'
describe('HTTP: /app', () => {
let server: Server
let req: supertest.SuperTest<supertest.Test>
before(async () => {
server = app.listen(8888)
})
after(() => {... |
import { HttpError } from "./HttpError";
export class InsufficientStorageError<ContextType> extends HttpError<ContextType> {
public readonly name = "InsufficientStorageError";
constructor(
public readonly message: string = "Insufficient Storage",
public readonly context?: ContextType
) {
super(507, ... |
import { InputType } from './inputType';
export class Input{
public name = '';
public position = 0;
public row = 0;
public isTV = false;
public type = InputType.TV;
public exposeAsSwitch = false;
} |
import { UserCompDetails } from "../../components/framework/userComponentFactory";
import { Constants } from "../../constants/constants";
import { BeanStub } from "../../context/beanStub";
import { CellPosition } from "../../entities/cellPosition";
import { Column } from "../../entities/column";
import { ProcessRowPara... |
import { NgxLoggerLevel } from 'ngx-logger';
// The file contents for the current environment will overwrite these during
// build. The build system defaults to the dev environment which uses
// `environment.ts`, but if you do `ng build --env=prod` then
// `environment.prod.ts` will be used instead. The list of which ... |
import { AuthGuard } from '@nestjs/passport'
import { ApiOperation, ApiTags } from '@nestjs/swagger'
import { Body, Controller, Post, Request, UseGuards, Get, Req, Query } from '@nestjs/common'
import { UserEntity } from 'src/modules/user/entity/user.entity'
import { UserService } from '../../../user.service'
import ... |
export class Pipe {
public input: any;
public output: any;
public runDefault: boolean = true;
constructor() {
if (this.runDefault)
this.run();
}
run() {}
} |
// /src/notification/airline_seat_flat_angled/materialiconsround/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgAirlineSeatFlatAngledRound = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0V0z" fill="none"/>
<... |
/*
*
* Variable types
*
*/
import { Described } from './common';
import { VariableSource } from './source';
export type Variable = VariableBase;
export interface VizVariable extends VariableBase {
options: VizVariableOptions;
}
export interface VariableBase extends Described {
shortName?: string;
displayNa... |
<TS language="it" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Fare clic con il tasto destro del mouse per modificare l'indirizzo o l'etichetta</translation>
</message>
<message>
<source>Create ... |
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { AuthModule } from './auth/auth.module';
@Module({
imports: [ConfigModule.forRoot({ isGlobal: true }), AuthModule],
controllers: [],
providers: [],
})
export class AppModule {} |
import '../../jquery_augmentation';
import {
dxElement
} from '../../core/element';
import {
template
} from '../../core/templates/template';
import DataSource, {
DataSourceOptions
} from '../../data/data_source';
import {
event
} from '../../events';
import {
format
} from '../../ui/widget/ui.... |
/*
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import '@cds/core/icon/register.js';
import '@cds/core/internal-components/visual-checkbox/register.js';
imp... |
import { StyledIcon } from '@styled-icons/styled-icon';
export declare const Columns: StyledIcon;
export declare const ColumnsDimensions: {
height: number;
width: number;
}; |
import {
Directive,
ElementRef,
HostListener,
Input,
OnInit,
} from "@angular/core";
import { Toppy, OutsidePlacement, SlidePlacement, SlidePosition } from "toppy";
@Directive({
selector: "[panel]",
})
export class PanelDirective implements OnInit {
private panelPosition;
private panel;
@Input("panel... |
/**
* @packageDocumentation
* @module nordicenergy-contract
* @hidden
*/
import { isArray } from '@nordicenergy-js/utils';
import { AbiItemModel } from '../models/types';
import { AbiCoderClass } from '../abi/api';
export const methodEncoder = (
abiCoder: AbiCoderClass,
abiItemModel: AbiItemModel,
deployDat... |
import {Box, Card, Flex, Spinner, Text} from '@sanity/ui'
import React, {useEffect, useState} from 'react'
import {RouterPanes} from '../../types'
import {resolveIntent} from '../../utils/resolveIntent'
import {useUnique} from '../../utils/useUnique'
import {Delay} from '../Delay'
import {Redirect} from './Redirect'
im... |
import { Address, Algorithm, ChainId, Identity, PubkeyBytes } from "@iov/bcp";
import { Encoding } from "@iov/encoding";
import { disconnect } from "../../logic/connection";
import { aNewStore } from "../../store";
import { establishAllConnections } from "../../utils/test/connections";
import { withChainsDescribe } fr... |
import { resolveNameBank } from '../../../util';
import itemID from '../../../util/itemID';
import { Plant } from '../../types';
const fruitTrees: Plant[] = [
{
level: 27,
plantXp: 22,
checkXp: 1_199.5,
harvestXp: 8.5,
name: 'Apple tree',
aliases: ['apple tree', 'apple'],
inputItems: resolveNameBank({ '... |
// import TimelapseIcon from '@material-ui/icons/Timelapse';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
// import DialogContentText from '@material... |
import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import SvgIcon from '@material-ui/core/SvgIcon';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
button: {
margin: theme.spacing(1),
},
... |
import { Router } from 'express';
import { authenticator } from '@mw/authenticator';
import { sendCandidateCode, sendCandidateCodeVerify, sendSMS, sendSMSVerify, sendUserCode } from '../actions/sms';
import { codeChecker } from '@mw/codeChecker';
const router = Router();
// request for verification code
router.get('... |
import { Component, OnInit } from '@angular/core';
import { routerTransition } from '../../router.animations';
import { DataSource } from '@angular/cdk/collections';
import {BlueprismService} from '../../services/BlueprismService';
import { BlueprismModel } from '../../models/BlueprismModel';
import { Observable } from... |
import Knex from 'knex'
export async function up(knex: Knex) {
return knex.schema.createTable('items', table => {
table.increments('id').primary();
table.string('image').notNullable();
table.string('title').notNullable();
})
}
export async function down(knex: Knex) {
return knex.sc... |
import { SampleBatch } from "../../sample-batch/models/sample-batch";
export class FinalReport {
id?:number;
report: string;
positiveResult: boolean;
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/**
* A representation of the information needed to run a Python executable.
*
* @prop command - the executable to execute in a new OS process
* @prop args - the full list of arguments with which to invoke the command
... |
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
const { ExpressReceiver } = require('@slack/bolt');
const bootstrap = async() => {
const receiver = new ExpressReceiver({ signingSecret: process.env.SLACK_SIGNING_SECRET });
const app = await NestFactory.create(AppModule);
cons... |
import React from 'react';
import { render } from '@testing-library/react-native';
import App from '../App';
import * as appStateHook from '@app/hooks/useAppState';
import { APP_NOT_READY } from '@app/test/testIDs';
describe('App tests', () => {
beforeEach(() => {
jest.restoreAllMocks();
});
afterEach(() =... |
import {Module} from "@nestjs/common"
import { JwtModule } from "@nestjs/jwt";
import { AuthController } from "./auth.controller";
import { AuthService } from "./auth.service";
import { JwtSrategy } from "./strategy/jwt.strategy";
@Module({
imports:[JwtModule.register({})],
controllers:[AuthController],
p... |
import fetch from "jest-fetch-mock"
import hue from "../utils/hue"
import {updateResponse} from "../utils/mocks"
test("turns off multiple lights", async () => {
fetch.mockResponse(JSON.stringify(updateResponse))
const ids = ["1", "2", "3"]
hue.turnOffLights(ids)
expect(fetch).toHaveBeenCalledTimes(3... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const IoIosRadio: IconType; |
import { AppError } from '@shared/errors/AppError';
import { ICreateUserDTO } from '../../dtos/ICreateUserDTO';
import { InMemoryUsersRepository } from '../../repositories/in-memory/InMemoryUsersRepository';
import { CreateUserUseCase } from '../createUser/CreateUserUseCase';
import { AuthenticateUserUseCase } from '.... |
/* eslint-disable class-methods-use-this */
import {getPageParams} from './context/pageParams';
import {getRouteParams} from './context/routeParams';
import type {Route} from './Route';
import type {PARAMS} from './types/internal';
declare const PARAMS_KEY: PARAMS;
/**
* Abstract page with base methods.
*/
export... |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class DeviceFarm exte... |
import styled, { css, keyframes } from 'styled-components'
import { FlexBox } from '@titicaca/core-elements'
interface IndicatorProps {
loading: boolean
indicatorCount?: number
color?: string
size?: number
margin?: number
speedMultiplier?: number
}
const pulse = keyframes`
0% {transform: translateY(5px)... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { User } from 'src/db/entities/user.entity';
import { Repository, UpdateResult } from 'typeorm';
import { CreateUserDto } from '../../dto/user.dto';
@Injectable()
export class UsersService {
constructor(
@Inje... |
import { LuaInfo, TokenInfo, TokenTypes, LuaComment, LuaRange, LuaErrorEnum, LuaError, LuaInfoType } from './TokenInfo';
import { LuaParse } from "./LuaParse"
import { CompletionItem, CompletionItemKind, Uri } from "vscode"
import { LuaFiledCompletionInfo } from "./provider/LuaFiledCompletionInfo"
import { FileCompleti... |
/// <reference types="@overwolf/types" />
import React, { useEffect, useState } from "react";
import ReactDOM from "react-dom";
import * as Sentry from "@sentry/react";
import { BrowserTracing } from "@sentry/tracing";
overwolf.extensions.current.getManifest(function (app) {
Sentry.init({
dsn: "https://cd1d4d4... |
import { findCrossOriginLogs } from '../../../../support/utils'
declare global {
interface Window {
xhrGet: any
abortRequests: any
}
}
let reqQueue: XMLHttpRequest[] = []
const xhrGet = (url) => {
const xhr = new window.XMLHttpRequest()
xhr.open('GET', url)
reqQueue.push(xhr)
xhr.send()
}
const... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { interaction } from "pixi.js";
import { DButton, DButtonEvents, DButtonOptions, DThemeButton } from "./d-button";
import { DDialogSelect, DDialogSelectOptions } from "./d-dialog-select";
import { DOnOptions } from "./d-on-o... |
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import colors from '../styles/colors';
import { Welcome } from '../pages/Welcome';
import { UserIdentification } from '../pages/UserIdentification';
import { Confirmation } from '../pages/Confirmation';
import { PlantSave } fro... |
import { Injectable } from '@nestjs/common';
@Injectable()
export class PostProcessorService {
} |
import * as TypeGraphQL from "type-graphql";
import * as GraphQLScalars from "graphql-scalars";
import { Prisma } from "../../../client";
import { DecimalJSScalar } from "../../scalars";
import { PostCreateWithoutEditorInput } from "../inputs/PostCreateWithoutEditorInput";
import { PostWhereUniqueInput } from "../input... |
import { requestLimiter } from 'server/helpers/rateLimiter';
import { ContextType } from 'server/types/apiTypes';
import { appUrls } from 'server/utils/appUrls';
import { graphqlFetchWithProxy } from 'server/utils/fetch';
import { signMessage } from 'ln-service';
import { toWithError } from 'server/helpers/async';
impo... |
import * as Express from "express"
import * as GameDomain from "domains/game-domain"
import { gameService } from "server/services/game-service"
import { playerService } from "server/services/player-service"
const gamesRouter = Express.Router()
gamesRouter.post("/", (req, res, next) => {
if (!req.session || !req.sess... |
// Copyright IBM Corp. 2018. All Rights Reserved.
// Node module: oasgraph
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
/**
* Custom type definitions for GraphQL.
*/
import {
GraphQLObjectType,
GraphQLScalarType,
GraphQLInputObjectType,
Gra... |
import { Container } from "../../core/containers/Container";
import { IRIToken } from "../../tokens/IRIToken";
import { PathToken } from "../../tokens/PathToken";
import { VariableToken } from "../../tokens/VariableToken";
import { Resource } from "../triplePatterns/Resource";
import { Variable } from "../triplePatte... |
// Type definitions for react-native-canvas 0.1
// Project: https://github.com/iddan/react-native-canvas#readme
// Definitions by: hmajid2301 <https://github.com/hmajid2301>
// Kelvin Chu <https://github.com/ragebill>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Versi... |
/**
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { TokenBuilder, Tokens } from '../../mol-io/reader/common/text/tokenizer';
export function guessElementSymbolTokens(tokens: Tokens, str: string, s... |
import React, { useState, FormEvent } from 'react';
import { useHistory } from 'react-router-dom'
import PageHeader from '../../components/PageHeader';
import Input from '../../components/Input';
import Textarea from '../../components/Textarea';
import Select from '../../components/Select';
import warningIcon from '.... |
import { Component, Prop, State , Event, EventEmitter} from '@stencil/core';
@Component({
tag: 'swayam-rating',
styleUrl: 'swayam-rating-component.css',
shadow: true
})
export class SwayamRatingComponent {
@Prop({ mutable: true }) maxValue: number = 5;
@Prop({ mutable: true }) value: number = 0;
@Stat... |
import {
SSMClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../SSMClient";
import {
DescribeInstanceAssociationsStatusRequest,
DescribeInstanceAssociationsStatusResult
} from "../models/index";
import {
deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand,
serializeAws_json1... |
import { authReducer, setState, initialState, setLoggedIn } from './authSlice';
import { AuthState } from './types';
describe('authReducer', () => {
const initialTestState: AuthState = {
loggedIn: true,
privateKey: 'privateKey',
authType: 'google',
jwt: 'jwt',
pubKey: 'pubKey',
threadID: 'thre... |
export { default } from './Yoward'; |
import * as __aws_sdk_middleware_stack from '@aws-sdk/middleware-stack';
import * as __aws_sdk_types from '@aws-sdk/types';
import * as _stream from 'stream';
import {CompleteMultipartUpload} from '../model/CompleteMultipartUpload';
import {InputTypesUnion} from '../types/InputTypesUnion';
import {OutputTypesUnion} fro... |
import * as Hapi from 'hapi';
import * as Boom from '@hapi/boom';
import {isLanguageExists} from "../../repositories/langaugesRepository";
import {templatesParams, templatesResponse} from "./templatesModels";
import {getTranslatedTemplate} from "../../repositories/templatesRepository";
export const getTemplateControl... |
abstract class BaseCtrl {
abstract model: any;
// Get all
getAll = (req, res) => {
console.log('--- getAll', req.body);
this.model.find({}, (err, docs) => {
if (err) { return console.error(err); }
res.status(200).json(docs);
});
}
// Count all
count = (req, res) => {
console.l... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const biPipFill: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures... |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { expect } from 'chai';
import * as fs from 'fs-extra';
import * as path from 'pa... |
// *** 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";
/**
* Creates a Signer Signing Profile Permission. That is, a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.