text stringlengths 10 953k |
|---|
import {
managed,
ManagedEvent,
ManagedObject,
observe,
onPropertyEvent,
rateLimit,
} from "../../../dist";
consider("Observers", () => {
it("can observe events", t => {
class A extends ManagedObject {
@observe
static AObserver = class {
onEvent(e: ManagedEvent) {
if (e.... |
import { ChannelClient } from './client';
import { Identity } from '../../../identity';
import { ChannelProvider } from './provider';
import { EmitterBase } from '../../base';
import Transport, { Message, Payload } from '../../../transport/transport';
import { ChannelEvents } from '../../events/channel';
import { Provi... |
import { ResolveTypeFn } from '../interfaces/resolve-type-fn.interface'
import { ClassMetadata } from './class.metadata'
export interface InterfaceMetadata extends ClassMetadata {
resolveType?: ResolveTypeFn
interfaces?: Function | Function[] | (() => Function | Function[])
} |
import { MetricName, MetricType, Step } from 'types';
import { isNumber, metricNameSorter } from 'utils/data';
export const extractMetricValue = (step: Step, metricName: MetricName): number | undefined => {
if (metricName.type === MetricType.Training) {
const source = step.avgMetrics || {};
if (isNumber(sour... |
export interface MochawesomeJson {
stats: MochawesomeJsonStat
results: MochawesomeJsonResult[]
}
export interface MochawesomeJsonStat {
duration: number
}
export interface MochawesomeJsonResult {
tests: MochawesomeJsonTest[]
suites: MochawesomeJsonSuite[]
fullFile: string
title: string
}
export interfa... |
import { useState, useRef, useEffect } from 'react'
export function useRefState<S>(initialValue: S) {
const [state, setState] = useState<S>(initialValue)
const stateRef = useRefEffect(state)
return [state, stateRef, setState] as [
S,
React.MutableRefObject<S>,
React.Dispatch<React.SetStateAction<S>>... |
import { Button, Divider, Paper } from "@material-ui/core"
import React, { FC } from "react"
import { Field, InjectedFormProps, reduxForm } from "redux-form"
import { DatePicker, TextField } from "redux-form-material-ui"
import { api, messages } from "../../../../../lib"
import { CustomToggle } from "../../../../shared... |
import {
ArrayMaxSize,
IsArray,
IsNotEmpty,
IsOptional,
IsString,
MaxLength,
} from '@jovotech/output';
import { QUICK_REPLIES_MAX_SIZE, QUICK_REPLY_MAX_LENGTH } from '../../constants';
export class QuickReplies {
@IsOptional()
@IsString()
@IsNotEmpty()
title?: string;
@IsOptional()
@IsArray()... |
/*
* 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 { flags } from '@salesforce/command';
import { Messages } from '@salesforce/core';... |
import { Injectable } from '@nestjs/common';
import got from 'got';
@Injectable()
export class BinanceApiService {
async getTokenPrice(token: string): Promise<number> {
const res = await got(
`https://api1.binance.com/api/v3/avgPrice?symbol=${token}`,
).json();
return +(res as { price: string }).p... |
import nats, {Stan} from 'node-nats-streaming';
class NatsWrapper {
private _client?: Stan;
get client(){
if(!this._client){
throw new Error('Cannot access NATS client before connecting');
}
return this._client;
}
connect(clusterId: string, clientId: string, url: string) {
this._client = ... |
import { expect } from 'chai';
import { Mavsdk, System, Telemetry, Action } from "../lib/addon";
function sleep(millis: number) {
return new Promise(resolve => setTimeout(resolve, millis));
}
async function takeoff_and_hover_at_altitude(altitude_m: number) {
let mavsdk = new Mavsdk();
expect(mavsdk.add_... |
import { DateValueObject } from 'src/SharedKernel/Domain/DateValueObject';
export class TimeSlotStart extends DateValueObject {} |
import * as React from 'react'
interface Props {
/** The title of the certificate. */
title: React.ReactFragment
/** The subtitle of the certificate. */
subtitle?: React.ReactFragment | null
/** The detail text of the certificate. */
detail?: React.ReactFragment | null
/** Rendered after... |
import { Module } from '@nestjs/common';
import { AuthModule } from 'src/auth/auth.module';
import { UserModule } from 'src/user/user.module';
import { DatabaseModule } from 'src/_common/database/database.module';
import { HelperModule } from 'src/_common/utils/helper.module';
import { SchoolRepository } from './schoo... |
<TS language="pt_BR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clique com o botão direito para editar o endereço ou rótulo </translation>
</message>
<message>
<source>Create a new address</so... |
export { default as Icon } from './Icon';
export { createIcon } from './createIcon';
export type { IIconProps } from './types'; |
import { AbstractProductA } from './abstract-product-a';
export class ConcreteProductA2 extends AbstractProductA {
public methodA(): void {
console.log('This is methodA from ConcreteProductA2');
}
} |
/**
* Dasha.AI Platform API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*... |
/// <reference types="react" />
declare const Task: import("react").FC<import("../lib/Icon").IconProps>;
export default Task; |
import * as execa from 'execa';
function getEnvFromShell(shell = process.env.SHELL) {
const { stdout } = execa.sync(shell, ['-ilc', 'command env'], { encoding: 'utf8' });
const result: { [k: string]: string } = {};
if (stdout) {
for (const line of stdout.split('\n')) {
if (line.includes('=')) {
... |
/**
* StoreProvider
* 主要的作用是在Store和React的App之间建立桥梁
* 将Store初始化,切绑定到React顶层App的上下文
*/
import * as React from 'react';
import Store from './store';
type TStore = typeof Store;
type StoreOptions = {
debug?: boolean;
ctxStoreName?: string;
};
/**
* WrapperComponent
* @param AppStore
* @param opts
* @returns ... |
import { Component, OnInit, Injectable, OnDestroy } from '@angular/core';
import {interval, Subscription} from 'rxjs';
import { ITeam } from '../../shared/team';
import { TeamsService } from '../../services/teams.service';
@Injectable()
@Component({
selector: 'ngx-dashboard',
styleUrls: ['./dashboard.component.sc... |
declare module spine {
class Animation {
name: string;
timelines: Array<Timeline>;
timelineIds: Array<boolean>;
duration: number;
constructor(name: string, timelines: Array<Timeline>, duration: number);
hasTimeline(id: number): boolean;
apply(skeleton: Skeleto... |
import * as angular from 'angular';
import * as angularMeteor from 'angular-meteor';
import * as uiRouter from 'angular-ui-router';
import { Accounts } from 'meteor/accounts-base';
import template from './password.html';
class Register {
constructor($scope, $reactive, $state) {
'ngInject';
this.$state = $... |
/*
* Copyright 2013 Palantir Technologies, 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 l... |
import * as React from "react";
import { Status } from "../..";
/** DOCS:
ItineraryPartPlace is an atomic unit of the Itinerary component, shows two locations, date and time,
has warning property which changes the icon to `<AlertCircle color="warning" />`
to attract user attention about some important informati... |
import {resolve} from 'path';
import prettier from 'prettier';
import {inPageAnchors} from './utilities/markdown';
import {writeFile, readFile, pathExists, readdir} from 'fs-extra';
import {renderMarkdownExample} from './utilities/examples';
import {TableConfig, table} from './utilities/shared';
import type {FrontMatte... |
export const mutations = `
impersonate(accessToken: String!, username: String!): ImpersonateReturn
refreshTokens(accessToken: String!, refreshToken: String!): LoginResult
logout: Boolean
# Example: Login with password
# authenticate(serviceName: "password", params: {password: "<pw>", user: {email: "<email>"}... |
/** @jsx h */
import { h } from 'preact'
import { useState } from 'preact/hooks'
import { Text } from '../text/text'
import { Checkbox } from './checkbox'
export default { title: 'Checkbox' }
export const Default = function () {
const [state, setState] = useState({ foo: false })
return (
<Checkbox name="foo"... |
import { ValueCastsSetting } from './support/casting'
import { ComparatorOverride } from './support/comparators'
import { PropertyGetterConfiguration } from './support/getters'
export interface QueryStats {
/**
* The total number of conditions.
*/
numberOfConditions: number
/**
* The number of queried fields... |
/**
* Information about an parameter that can be passed to a method when called.
*/
export interface ServiceParameter {
/**
* The name of the parameter if available.
*/
name?: string;
/**
* The type identifier of the parameter if available.
*/
typeId?: string;
/**
* If the parameter represents rest p... |
import { IsMongoId, IsNotEmpty } from 'class-validator';
export class HandlerParams {
@IsMongoId()
@IsNotEmpty()
src: string;
@IsMongoId()
@IsNotEmpty()
dst: string;
} |
import { Request, Response } from 'express';
import {
getUsers,
getUserById,
createUser,
updateUserWord,
updateUserScore
} from '../models/crud';
export const getUsersCtrl = async (req: Request, res: Response) => {
try {
const users = await getUsers();
if (!users) return res.status(400).send('No Us... |
import { CONFIGS } from "./config";
CONFIGS().forEach(({ lib, rpc, setup }) => {
const Tezos = lib;
describe(`Originating a contract from wallet api using: ${rpc}`, () => {
beforeEach(async (done) => {
await setup()
done()
})
it('Simple origination scenario', async (done) => {
const ... |
import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { StoreModule } from '@ngrx/store';
import { ModalService } from '../../services/modal.service';
import { SharedModule } from '../../shared.module';
import { PermissionListComponent } from './components/list/permission-list.... |
import React, { ChangeEvent, useState } from 'react';
import { Formik } from 'formik';
import * as yup from 'yup';
import { TextField, Button, Grid, Container, Box, Card, CardContent, Divider, Typography, FormControl, InputLabel, MenuItem, OutlinedInput, Select } from '@mui/material';
import { Helmet } from 'react-helm... |
import Phaser from 'phaser'
import ObstaclesController from './ObstaclesCotroller';
import PlayerController from './PlayerController';
import SnowmanController from './SnowmanController';
export default class Game extends Phaser.Scene {
private cursors!: Phaser.Types.Input.Keyboard.CursorKeys;
private penguin... |
import { Injectable } from '@angular/core';
import { SERVERCONFIG, AuthUser } from '../_shared/model/app.constant';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { GoogleLogin, LoginUser, RegisterUser, ForgotPassword, ChangePassword, ModifyUser } from '../_shared/model/resume-builder';
import {... |
import { AxiosResponse } from 'axios'
const axiosResponse: AxiosResponse = {
data: [],
status: 200,
statusText: 'OK',
config: {},
headers: {},
};
const instance = {
create: jest.fn(function(options) {
// @ts-ignore
return this;
}),
default: {
get: jest.fn().mock... |
import {
Button,
Card,
CardContent,
CardHeader,
Container,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
FormControl,
IconButton,
List,
ListItem,
ListItemIcon,
ListItemText,
MenuItem,
Popover,
Select,
Typography,
} from "@material-ui/core"... |
const code = `\
const bus = window.__Bus__.testBus;
/**
* app-a indicate both bootstrap and activate lifecycles
* when it's activate at the first time, it should activate the lib react, and run the bootstrap callback
* when it's activate after the first time, it should run the activate callback
*/
bus.createApp('a... |
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { FileController } from './files.controller';
import { FileService } from './files.service';
@Module({
imports: [ConfigModule],
providers: [FileService],
controllers: [FileController],
exports: [FileService]
}... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { PreviewService } from '../services/preview.service';
@Component({
selector: 'app-task-details',
templateUrl: './task-details.component.html'
})
export class TaskDetailsComponent implements OnInit {
... |
/*************************************************************************
* Copyright 2021 Gravwell, Inc. All rights reserved.
* Contact: <legal@gravwell.io>
*
* This software may be modified and distributed under the terms of the
* MIT license. See the LICENSE file for details.
*********************************... |
import { validateNumberInRange } from '../../../src/utils/validate';
describe('validateNumberInRange', () => {
const min = 1; const max = 10;
it('returns false when value is a not a number', () => {
expect(validateNumberInRange(min, max)('test' as unknown as number)).toEqual(false);
});
it('ret... |
/* eslint-disable no-extend-native */
declare global {
interface Date {
addHours(hour: number): Date
}
}
export {} |
import { INestApplication } from '@nestjs/common';
import { Transport } from '@nestjs/microservices';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import * as request from 'supertest';
import { MqttController } from '../src/mqtt/mqtt.controller';
describe('MQTT transport', () => {
let serve... |
export class User{
name?: string;
login?: string;
bio?: string;
avatarUrl?: any;
followers? : Followers;
following?: Following;
starredRepositories?: StarredRepositories;
company?: string;
location?: string;
websiteUrl?: any;
email?: string;
twitterUsername?: string;
... |
import { MutableRefObject } from 'react'
import {
formatCardExpires,
formatCardNumber,
getCardType,
isAmex,
isMasterCard,
isVisa,
unformatCard,
unformatCardExpires,
validateCard,
validateCardExpires,
validateSecureCode,
} from '../card-helpers'
const mockAmexOne = '3400 000000 00000'
const mockAm... |
import { DateTime } from 'luxon'
import { actionHandler, parseBool, parseString, root } from './shared'
import { getLogGroups, getLogStreams, getLogs } from 'src/aws/cloudWatch'
root
.command('logs')
.description('CloudWatch logs')
.option('--filter <pattern>', 'CloudWatch log filter pattern', parseString)
.op... |
import React from 'react';
import { RecommendedGasPrices } from '../types';
import { GasTableRow } from './';
interface GasPriceTableProps {
sources: RecommendedGasPrices[]
}
export const GasTable = (props: GasPriceTableProps) => {
let renderTableRows = props.sources.map((member: RecommendedGasPrices, id: n... |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
declare class IoAndroidContacts extends React.Component<IconBaseProps> { }
export = IoAndroidContacts; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.1">
<context>
<name>GnomeKeyringPlugin</name>
<message>
<location filename="../gnomekeyringpasswordbackend.cpp" line="84"/>
<source>Gnome Keyring</source>
<translation>Gnome Keyring</translation>
</message>
</context>... |
/*
* 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 { mount, ReactWrapper } from 'enzyme';
import React from 'react';
impo... |
import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { Tool } from "./Tool"
import css from "./Tools.module.css"
export const Tools: React.FC = () => {
const {
allToolsJson: { nodes },
} = useStaticQuery(graphql`
query ToolsQuery {
allToolsJson {
nodes {
... |
/**
* A single record of the Datenanfragen.de supervisory authority database. It represents the
* contact information of an authority specifically for lodging complaints.
* More information and access to the whole database at:
* https://github.com/datenanfragen/companies
*/
export interface AuthorityRecord {
/... |
// Typings reference file, you can add your own global typings here
// https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html
// tslint:disable
declare const System: any;
declare const ENV: string;
// google code-prettify
declare const PR: any;
// declare const require:any;
// declare const global... |
import * as path from 'path'
import * as os from 'os'
import * as FSE from 'fs-extra'
import { GitProcess } from '@shiftkey/dugite'
import { DiffParser } from '../../src/lib/diff-parser'
import {
expandTextDiffHunk,
expandWholeTextDiff,
getTextDiffWithBottomDummyHunk,
} from '../../src/ui/diff/text-diff-expansion... |
/**
* @license
* Copyright Google Inc. 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
*/
/**
* @module
* @description
* Entry point for all public APIs of the common package.
*/
export * from './src/lo... |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
import { WebStorageStateStore } from "./WebStorageStateStore";
import type { OidcMetadata } from "./OidcMetadata";
import type { StateStore } f... |
import express = require('express');
let requestLogger: express.RequestHandler = (request: express.Request,
response: express.Response,
next: express.NextFunction) => {
console.info(`${(new Date()).toUTCString()}|${request.method}|${request.url}|${request.ip}`);
next();
};
export = requestLogger; |
import PropTypes from 'prop-types';
import { HandlerProps } from 'react-reflex';
export const FileType = PropTypes.shape({
key: PropTypes.string,
ext: PropTypes.string,
name: PropTypes.string,
contents: PropTypes.string,
head: PropTypes.string,
tail: PropTypes.string
});
export const MarkdownRemark = Prop... |
import { Component, OnInit } from '@angular/core';
import { SSBModSettings, SSBMOD_SETTINGS_DEFAULT, SSBModReport, SSBMOD_REPORT_DEFAULT } from './ssb-mod';
import { Subscription, interval } from 'rxjs';
import { ActivatedRoute } from '@angular/router';
import { ChannelDetailsService } from '../channel-details.service'... |
import { Test } from "@nestjs/testing";
import { UserRepository } from "./user.repository";
import { ConflictException, InternalServerErrorException } from "@nestjs/common";
import { User } from "./user.entity";
const mockAuthCredentialsDto = {username:"test user",password:"dsadsad!2d"};
describe('UserRepository', (... |
import { useCallback, useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useRequest } from '@umijs/hooks';
import { getCategories } from '../../api';
import type { Category } from '../../api';
import { setCategoriesAction, signInAction } from '../../common/app/actions';
import ... |
/**
*
*
* OpenAPI spec version: 20190801
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
import { isNotNill } from '@foxpage/foxpage-shared';
import { Page } from '@foxpage/foxpage-types';
import { MergeStructureNode } from './interface';
import { MergeStrategy, strategyMerge } from './strategy';
import { mergeObject } from './utils';
/**
* tree to record
* for get extend parent node easy
* @param tre... |
class ShopItem {
id?: string;
name?: string;
introduct?: string;
price?: string;
num?: number;
state?: boolean;
stateName?: string;
detail?: string;
createtime?: string;
soltnum?: string;
}
export default ShopItem |
import React, { Component } from 'react'
import { DDO, MetaData, Logger } from '@nevermined-io/nevermined-sdk-js'
import Route from '../Route'
import Spinner from '../../atoms/Spinner'
import { User } from '../../../context'
import stylesApp from '../../../App.module.scss'
import Content from '../../atoms/Content'
impo... |
/* eslint-disable */
// This file is automatically generated
import React from 'react'
import createIcon from './base/createIcon'
const svgElement = (
<svg viewBox='0 0 512 512'>
<path fill='none' strokeLinecap='square' strokeMiterlimit='10' strokeWidth='32' d='M320 120L368 168 320 216'/><path fill='none'... |
import { Directive, ElementRef, Input, OnInit, OnDestroy, EventEmitter } from '@angular/core';
import {Gesture} from 'ionic-angular/gestures/gesture';
declare var Hammer: any;
/*
Class for the SwipeVertical directive (attribute (swipe) is only horizontal).
In order to use it you must add swipe-vertical attribute ... |
import { PromiseValue } from "../common";
export function* takeWhile<T, R, N>(iterator: Iterator<T, R, N>, predicate: (value: T, index: number) => boolean): Generator<T, R | undefined, undefined> {
let index = 0;
let x = iterator.next();
while (x.done !== true) {
if (!predicate(x.value, index++)) {... |
import React from 'react';
import { Integration, Integrations } from '@agile-ts/core';
import { flatMerge } from '@agile-ts/utils';
import { AgileReactComponent } from './core';
const reactIntegration = new Integration<typeof React, AgileReactComponent>({
key: 'react',
frameworkInstance: React,
bind() {
// N... |
import React from 'react';
import { LazyQueryResult, useLazyQuery } from '@apollo/client';
import { get_default_templates, GET_DEFAULT_TEMPLATES, get_default_templates_default_templates, get_default_templates_default_templates_default_address_address, get_default_templates_default_templates_default_customs_customs, get... |
import * as React from 'react'
import { Snippet } from '!/playroom/src/types'
import { Range } from './Range'
export const snippets: Snippet[] = [
{
name: 'Basic',
code: <Range />,
},
] |
import { Component } from '@angular/core';
import * as global from '../globals';
@Component({
selector: 'app-header',
templateUrl: `app/view/html/header.html`,
styleUrls: ['app/view/css/header.css']
})
export class HeaderComponent
{
} |
import { SpriteSheet } from '@core';
const w = 16;
const h = 16;
export default new SpriteSheet('assets/images/player.png')
// Idle
.define('idle_left_0', { w, h, ox: 0, oy: 0 })
.define('idle_left_1', { w, h, ox: 32, oy: 0 })
.define('idle_right_0', { w, h, ox: 16, oy: 0 })
.define('idle_right_1', { w, h, ... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ChatViewModule } from 'chat-view';
describe('AppComponent', () => {... |
import { SelectBox } from 'components/SelectBox/SelectBox'
import React, { useCallback } from 'react'
import { useMemo, useState } from 'react'
interface Props {
value: string
items: string[]
onChange: (value: string) => void
}
export const EnumTypeInput = ({ value, items, onChange }: Props) => {
const [curre... |
import { DEFAULT_IMPL, normalizeTree, replaceChild } from "@thi.ng/hdom";
import { memoize1 } from "@thi.ng/memoize";
import { fromInterval, sync } from "@thi.ng/rstream";
import { cycle, map } from "@thi.ng/transducers";
import { updateDOM } from "@thi.ng/transducers-hdom";
// infinite cyclic sequence of colors
const... |
export class Message {
_id?: string;
timestamp: Date;
picture?: string;
messagetext?: string;
} |
import { Injectable } from '@angular/core';
import { HttpInterceptor, HttpEvent, HttpHandler, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AUTH } from 'src/environments/environment';
@Injectable()
export class AuthInterceptor implements HttpInterceptor {
intercept(req: Http... |
import React, { FC } from 'react';
import { SpeakableSpecification, WithContext } from 'schema-dts';
import { DeferSeoProps } from '../types';
import { Overrides, Speakable } from '../utils/shared-types';
import { JsonLd } from './jsonld';
/**
* The Speakable JSON LD Component props.
*/
export interface SpeakableJs... |
import { createBtn, isLogin, PageManager, isEmpty, el, Page, myRequest, print } from './util/util'
import * as vodjs from 'vod-js-sdk-v6'
import { Project } from './pages/project'
import { Router } from './route/route'
import { Login } from './pages/login'
import { Editor } from './pages/Editor'
/**
* demo 入口文件
*/
l... |
import axios, { AxiosResponse } from "axios";
import teams from "@nhl-api/teams";
import players from "@nhl-api/players";
export interface Options {
id?: number | string;
name?: string;
season?: number | string;
stats?: string;
expand?: string;
year?: string | number;
type?: string;
team?: any;
start... |
import { Locale } from '../interface';
const locale: Locale = {
locale: 'sk_SK',
today: 'Dnes',
now: 'Teraz',
backToToday: 'Späť na dnes',
ok: 'Ok',
clear: 'Vymazať',
month: 'Mesiac',
year: 'Rok',
timeSelect: 'Vybrať čas',
dateSelect: 'Vybrať dátum',
monthSelect: 'Vybrať mesiac',
yearSelect: 'V... |
import { Strings } from 'tsbase';
import { Template } from '../template';
export const SingletonSpecTemplate: Template = (args?: string[]) => {
const name = args?.[0] || Strings.Empty;
const pascalCaseName = Strings.PascalCase(name);
return `import { I${pascalCaseName}, ${pascalCaseName} } from './${Strings.Cam... |
/*
* 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 { isNumber } from 'lodash/fp';
import React from 'react';
import { Eu... |
import * as React from 'react';
import { HotKeys } from 'react-hotkeys';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actions from '../actions/audioActions';
import { log } from '../actions/logAction';
import * as actions2 from '../actions/taskActions';
import SucessPan... |
import classNames from 'classnames';
import React, { FunctionComponent, ReactNode } from 'react';
export enum TextSizes {
Small = 'small',
Medium = 'medium',
Large = 'large',
}
interface TextProps {
size?: TextSizes;
muted?: boolean;
bold?: boolean;
children: ReactNode;
}
const className = {
root: `t... |
<TS language="ca" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Feu clic dret per a editar l'adreça o l'etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
/* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with the License. You may
* obtain a copy of the Lic... |
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
import { UpdateGroupRequest } from "../models/index";
import { deserializeAws_queryUpdateGroupCommand, serializeAws_queryUpdateGroupCommand } from "../protocols/Aws_query";
import { getSerdePlugin } from "@aws-sdk/middleware-... |
import React, { FC } from 'react'
import Background from '../Background/Background'
import {
Box,
GridColumn,
GridRow,
ProfileCard,
} from '@island.is/island-ui/core'
export interface TeamListProps {
teamMembers: { title: string; name: string; image: { url: string } }[]
}
export const TeamList: FC<TeamListP... |
import React from "react";
import clsx from "clsx";
import {
makeStyles,
useTheme,
Theme,
createStyles,
} from "@material-ui/core/styles";
import Drawer from "@material-ui/core/Drawer";
import CssBaseline from "@material-ui/core/CssBaseline";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@... |
import NormalizedPath from './NormalizedPath';
import DependencyRule from './DependencyRule';
export default interface Config {
path: NormalizedPath;
tags?: string[];
exports?: {
[files: string]: string | string[];
};
dependencies?: DependencyRule[];
imports?: string[];
} |
import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { Page2Component } from "~/rpage2/page2.component";
const routes: Routes = [
{ path: "", component: Page2Component }
];
@NgModule({
imports: [Nati... |
import { Prisma } from '@prisma/client';
import { Arg, Ctx, Int, Mutation, Resolver } from 'type-graphql';
import { GQLCtx } from '../../common-types/gql';
import { prisma } from '../../prisma';
const UNIQUE_CONSTRAINT_FAILED_CODE = 'P2002';
@Resolver()
export class ChapterUserResolver {
@Mutation(() => Boolean)
... |
import ElPopper from "./src/popper";
export default ElPopper; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.