text stringlengths 10 953k |
|---|
<TS language="de" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtsklick zum Bearbeiten der Adresse oder der Bezeichnung</translation>
</message>
<message>
<source>Create a new address</source... |
/**
* Action type enumeration.
*/
/**
* Action type enumeration.
*/
/**
* Action type enumeration.
*/
/**
* Action type enumeration.
*/
export enum ActionType {
SetEthereumSenderAddress = "SetEthereumSenderAddress",
SetContractAddress = "SetContractAddress",
SetIsContractAddressValid = "SetIsContractAddressV... |
import template from './settings.html';
import { customElement, IPlatform, watch } from 'aurelia';
import { IRouter, IRouteableComponent } from 'aurelia-direct-router';
import { AuthHandler, IUserState } from '../state';
import { User } from '../api';
import { queue } from '../util';
@customElement({ name: 'settings'... |
import React from 'react';
import { capitalize, get } from 'lodash';
import { Option } from 'react-select';
import { $q } from 'ngimport';
import { IPromise } from 'angular';
import { Observable, Subject } from 'rxjs';
import { IBuild, IBuildInfo, IBuildTrigger, IPipelineCommand } from 'core/domain';
import { ITrigg... |
import React from "react";
import { formatDistanceStrict } from "date-fns";
import "react-day-picker/lib/style.css";
const baseUrl = window.sessionStorage.getItem("baseUrl");
const collection = window.sessionStorage.getItem("collection");
const token = window.sessionStorage.getItem("token");
import { TimeRangePicker... |
import { Component, OnInit, ViewChild, NgZone } from '@angular/core';
import { NgForm, FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ENTER, COMMA } from '@angular/cdk/keycodes';
import { Subject } from 'rxjs';
import { Router } from '@angular/router';
import { MatDialog } from '@angular/materia... |
export declare const cifVn: string[]; |
export const Trash2Fill = `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="currentColor" class="bi bi-trash2-fill" viewBox="0 0 16 16">
<path d="M2.037 3.225A.703.703 0 0 1 2 3c0-1.105 2.686-2 6-2s6 .895 6 2a.702.702 0 0 1-.037.225l-1.684 10.104A2 2 0 0 1 10.305 15H5.694a2 2 0 0 1-1.973-1.671... |
import { resolve } from 'pathe'
import type { ResolvedConfig as ResolvedViteConfig, UserConfig as ViteUserConfig } from 'vite'
import type { ApiConfig, ResolvedConfig, UserConfig } from '../types'
import { defaultExclude, defaultInclude, defaultPort } from '../constants'
import { resolveC8Options } from '../coverage'
... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{ path: '', loadChildren: './site/site.module#SiteModule'},
{ path: 'auth', loadChildren: './auth/auth.module#AuthModule'}
];
@NgModule({
imports: [
RouterModule.forRoot(routes)
],
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
// tslint:disable:max-func-body-length no-trailing-whitespace no-multiline-string chai-vague-errors no-unused-expression
// Disable whitespace / multiline as we use that to pass in our fake file strings
import ... |
import {AmmoPhysics, ExtendedObject3D, PhysicsLoader} from "@enable3d/ammo-physics/dist";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"
import { Scene, Color, PerspectiveCamera, WebGLRenderer, HemisphereLight, AmbientLight, DirectionalLight, BoxBufferGeometry, MeshLambertMaterial, Mesh, Sphe... |
import { toUint8Array } from './toUint8Array';
/**
* Converts the given VAPID public key to an Uint8Array.
* @param base64String your Base64 VAPID public key
*/
export default function urlBase64ToUint8Array(
base64String: string,
): Uint8Array {
return toUint8Array(base64String, atob);
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import m from 'mithril';
import { SVGAttributes } from '../svg';
declare const HelixSolid: m.Component<SVGAttributes>;
export default HelixSolid; |
import { IHomeState } from '../../../../interfaces/home';
import initialState from './initialState';
import {
IHomeActionTypes,
SET_ATTEMPTED_QUIZZES_TYPE,
SET_CREATED_QUIZZES_TYPE,
SET_ONGOING_QUIZZES_TYPE,
TOGGLE_QUIZ_TYPE
} from './types';
export default function reducer(
state = initialState,
action:... |
export class ListNode {
val: number;
next: ListNode | null;
constructor(val?: number, next?: ListNode | null) {
this.val = val === undefined ? 0 : val;
this.next = next === undefined ? null : next;
}
}
/**
* Definition for singly-linked list.
*/
export function addTwoNumbers(
l1: ListNode | null,
... |
/**
* Consolidate Services
* Description of all APIs
*
* The version of the OpenAPI document: version not set
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from '../... |
import { Rules } from "async-validator"
declare module 'egg'{
interface Context{
validate(rules:string,query:object):any;
validate(rules:object,query:object,scene:string):any;
validate(rules:Rules,query:object,scene:string):any;
}
} |
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
HostListener,
OnDestroy,
OnInit,
Renderer2,
ViewEncapsulation,
} from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { fromEvent, Subscription } from 'rxjs';
import { debounce... |
/// <reference path="../typings/tsd.d.ts" />
(():void => {
angular
.module("app", [
"ngRoute"
]);
})(); |
import { CommonModule } from '@angular/common';
import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';
import { AuthService } from '../auth/user-auth/facade/auth.service';
import { AuthHttpHeaderService } from '../auth/user-auth/services/auth-http-header.service';
import { AuthStorageService } ... |
import { createPair } from '@polkadot/keyring/pair';
import { KeyringPair$Json } from '@polkadot/keyring/types';
import { hexToU8a, isHex } from '@polkadot/util';
import { base64Decode, decodeAddress, encodeAddress } from '@polkadot/util-crypto';
import { KeypairType } from '@polkadot/util-crypto/types';
function veri... |
import { Component, Input, Output, NgZone } from '@angular/core';
import { ROUTER_DIRECTIVES, Router, ActivatedRoute } from '@angular/router';
import { Http, Response, HTTP_PROVIDERS } from '@angular/http';
import { ControlGroup, FormBuilder, Control } from '@angular/common';
import 'rxjs/Rx';
import { Observable } f... |
/*
* 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 React from 'react';
import { DateHistogramIndexPatternColumn } from '.... |
import {
it,
xit,
describe,
expect,
inject,
async,
beforeEach,
beforeEachProviders
} from '@angular/core/testing';
import {provide} from '@angular/core';
import {AuthService} from './index';
import isPromise from '../../utils/is-promise';
import {Observable} from 'rxjs/Observable';
describe('Testing ... |
import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
import { faBone } from "@fortawesome/free-solid-svg-icons";
import { TreeItemLabelComponent } from "../treeItemLabelComponent";
import { ExtensionsComponent } from "../extensionsComponent";
import * as React from "react";
import { Bone } from "ba... |
import { Operation } from 'slate'
export const input = true
export const test = value => {
return Operation.isOperation(value)
}
export const output = false |
import { useHardwareConcurrency } from '../src/HardwareConcurrency';
import { mount, createLocalVue } from '@vue/test-utils';
import { mountCompositionFunc } from './utils';
import VueCompositionAPI from '@vue/composition-api';
const localVue = createLocalVue();
localVue.use(VueCompositionAPI);
localVue.config.silent ... |
/* eslint-disable */
import Long from "long";
import _m0 from "protobufjs/minimal";
export const protobufPackage = "im.turms.proto";
export interface QueryGroupInvitationsRequest {
groupId?: string | undefined;
areSentByMe?: boolean | undefined;
lastUpdatedDate?: string | undefined;
}
function createBaseQueryG... |
export * from './ConfigPanelBox';
export * from './ConfigPanelParts';
export * from './GeneralConfigTextEditRow'; |
import { NextFunction, Request, Response } from "express";
import Url from "../db";
// - @GET - /url get all urls and alias
export let GetUrl = async (req: Request, res: Response, next: NextFunction) => {
try {
const uri: any = await Url.find().sort('-createdAt');
// res.render('page/Urls',... |
import {Component} from '@angular/core';
import {CanActivate} from '@angular/router';
import {tokenNotExpired} from 'angular2-jwt';
@Component({
moduleId: module.id,
selector: 'build-comparison',
styleUrls: ['./CohortComparisonTool.css'],
template: `
<div>
<div class="tab-comparison... |
export const chevronUp32F: string; |
import { ISizeModel, IEdgingModel, IPictureModel } from './products.models';
export interface IProductsFrontViewModel {
id: string;
src?: string;
name: string;
code: string;
size: ISizeModel;
amount: number;
edging?: IEdgingModel;
picture?: IPictureModel;
}
export interface IProductsFr... |
import React from 'react'
import classnames from 'classnames'
import * as d3 from 'd3'
import * as _ from 'lodash'
import { getSolidSegments } from '@/_private/utils/line'
import { Item, itemIsNotEmpty, NotEmptyItem, ScaleLinear } from '../../'
import css from './index.css'
type SVGPPathAttributes = Omit<React.SVG... |
import { Button, MediumButton } from '../inputs/Button'
import { connectMenu, ContextMenu, MenuItem } from '../layout/ContextMenu'
import {
ErrorMessage,
ProjectGrid,
ProjectGridContainer,
ProjectGridContent,
ProjectGridHeader,
ProjectGridHeaderRow
} from './ProjectGrid'
import templates from './templates'
... |
import { IsString } from 'class-validator';
import { Doctors } from 'src/doctors/doctors.entity';
import {
BaseEntity,
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
OneToOne,
Unique,
} from 'typeorm';
@Entity()
export class Specialty extends BaseEntity {
@PrimaryGeneratedColumn()
id: numb... |
import Document from './cookie';
import { LocalStorage, SessionStorage } from './webstorage';
declare const doc: Document;
declare const locStorage: LocalStorage;
declare const sesStorage: SessionStorage;
export { doc, locStorage, sesStorage, }; |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { FC } from 'react'
import { ColorStrip } from '../ColorStrip'
import { useThematic } from '@thematic/react'
export interface OfficePaletteProps {
colors: any
}
const mainKeys = [
'dar... |
import { RequestType, RequestHandler } from 'vscode-jsonrpc';
import { TextDocumentPositionParams } from 'vscode-languageserver';
import { SymbolLocator, FullParams, Full } from '@elastic/lsp-extension';
export namespace EDefinitionRequest {
export const type = new RequestType<TextDocumentPositionParams, SymbolLoc... |
import * as bcrypt from 'bcrypt';
import { isEmpty } from 'lodash';
import { Op, Transaction } from 'sequelize';
import { BadRequestException, Inject, Injectable } from '@nestjs/common';
import { CheckIsValueUnique, OptimisticLocking } from '../common/decorators';
import { MessageCodeError } from '../common/error/Messa... |
export * from './Page';
export { createBreadcrumb } from './PageHeader'; |
import { storiesOf } from '@storybook/html'
import { red } from '../__fixtures__/colors'
import Application from '../Application'
import Arc from './Arc'
const book = storiesOf('pie/Arc', module)
;[
{
name: '0~0',
startAngle: 0,
endAngle: 0,
},
{
name: '0~120',
startAngle: 0,
endAngle: (M... |
import React from 'react';
import { Box, Text } from 'grommet';
import ExplorerLink from 'components/ExplorerLink';
import { ETxnSteps } from 'lib/types';
export const TxnStatusBar = ({
text,
txnHash,
status,
}: {
text: string;
txnHash?: any;
status: ETxnSteps;
}) => {
const statusColor = status === ETxn... |
/* Auto generated */
export * from "./PackType"; |
import { DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBClient.ts";
import { CertificateMessage, DescribeCertificatesMessage } from "../models/models_0.ts";
import {
deserializeAws_queryDescribeCertificatesCommand,
serializeAws_queryDescribeCertificatesCommand,
} from "../protocols... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-date',
templateUrl: './date.component.html',
styleUrls: ['./date.component.less']
})
export class DateComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'
import Select from 'react-select'
import {useIntl} from 'react-intl'
import {UserWorkspace} from '../../user'
import {useAppSelector} from '../../store/hooks'
import './workspaceO... |
import React from 'react';
import { shallow } from 'enzyme';
import merge from 'lodash/merge';
import PostMedia from './PostMedia';
const setup = (overrides = {}) => {
const props = merge({ media: [] }, overrides);
const wrapper = shallow(<PostMedia {...props} />);
return {
wrapper,
props,
};
};
desc... |
import { IConnectorConfigDto } from "../../dto/ConnectorConfigDto";
export const validConfig: IConnectorConfigDto = {
"defaultValues": {
"timeZoneId": "Europe/London",
"entityTypeId": "i2.person",
"linkTypeId": "i2.associate",
"linkDirection": "NONE"
},
"schemaUrl": "/schema... |
// Generated Source
import ProfileImageInfoUri from "./ProfileImageInfoUri";
interface ProfileImageInfo {
/**
* Link to a profile image. If an image is not uploaded for an extension, only uri is returned
*/
uri?: string;
/**
* Identifier of an image
*/
etag?: string;
/**
... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const AiOutlineCheckSquare: IconType; |
import * as React from "react";
import * as ReactDOMServer from "react-dom/server";
import { Routes, Route, useLocation } from "react-router-dom";
import { StaticRouter } from "react-router-dom/server";
describe("A <StaticRouter>", () => {
describe("with a string location prop", () => {
it("parses the location i... |
import { stringifyNormalized } from "@phylopic/utils"
import { useContext, useEffect, useMemo, FC } from "react"
import Context from "~/contexts/NodeEditorContainer/Context"
import useSave from "~/contexts/NodeEditorContainer/useSave"
import styles from "./Controls.module.scss"
const Controls: FC = () => {
const [... |
import {
Injectable,
InternalServerErrorException,
UnauthorizedException,
ConflictException,
} from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { LoginDTO, RegisterDTO } from 'src/models/user.model';
import { InjectRepository } from '@nestjs/typeorm';
import { UserEntity } from 'src/entit... |
import _cpnInterface = require("../interfaces")
import { common } from "mendixmodelsdk";
export function convertGeometry(middlePoint: common.IPoint, size: common.ISize, ratio?: number): _cpnInterface.microflow.IGeometry {
let geometry: _cpnInterface.microflow.IGeometry;
if (ratio) {
geometry = {
... |
export declare function selectionSortSync(arr: number[]): any;
export declare function selectionSort(arr: number[], callback: (data: number) => void): any;
export declare function selectionSortAsync(arr: number[]): any; |
// tslint:disable:no-any
/**
* Requests the execution of a microtask and invokes the given callback within the next microtask
* @param {() => any} callback
*/
export function requestMicroTaskCallback (callback: (time: number) => void): void {
Promise.resolve(performance.now()).then(callback);
} |
// Gradients taken from: https://webgradients.com/
export default [
{
name: 'Rare Wind',
description: '#a8edea → #fed6e3',
css: 'linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)',
height: 200,
},
{
name: 'Saint Petersburg',
description: '#f5f7fa → #c3cfe2',
... |
import React from 'react'
import '../../styles/styles.css'
import BlogPage from '../../components/BlogPage'
export default () => {
return (
<BlogPage project="ftx-battle-royale" readMinutes={5}>
<p className="mb-4">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc quis
tincidu... |
import middy from '@middy/core';
import middyJsonBodyParser from '@middy/http-json-body-parser';
import middyHttpErrorHandler from '@middy/http-error-handler';
import { APIGatewayProxyEventHandler } from 'src/common/handler-types';
import { LoginInput, loginInputSchema } from 'src/models/login';
import { cognitoLoginUs... |
import { EventEmitter } from 'events';
import * as url from 'url';
import isAbsoluteUrl = require('is-absolute-url');
import { SourceMapConsumer, RawSourceMap } from 'source-map';
import { Log } from '../../util/log';
import { getUri, urlDirname } from '../../util/net';
import { DebugConnection, ISourceActorProxy, Sour... |
/* eslint global-require: off, no-console: off, promise/always-return: off */
/**
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
* through IPC.
*
* When running `npm run build` or `npm run build:main`, this fil... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { WidgetSpinnerComponent } from './widget-spinner.component';
describe('WidgetSpinnerComponent', () => {
let component: WidgetSpinnerComponent;
let fixture: ComponentFixture<WidgetSpinnerComponent>;
beforeEach(async () => {
await Tes... |
import type { IBoxProps } from 'native-base';
export declare type ITypeaheadProps = IBoxProps<ITypeaheadProps> & {
options: any[];
renderItem?: (item: any) => any;
onChange?: (value: string) => void;
toggleIcon?: any;
dropdownHeight?: number | string;
inputValue?: string;
onSelectedItemChang... |
import Cookies from 'js-cookie';
import { NextPage } from 'next';
import Link from 'next/link';
import router from 'next/router';
import { useState } from 'react';
import Password from '@/components/shared/inputs/Password/Index';
import Text from '@/components/shared/inputs/Text/Index';
import Spinner from '@/componen... |
import { Injector } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { ActivatedRoute, RouteReuseStrategy, Router } from '@angular/router';
import { filter } from 'rxjs/operators';
import { MenuService } from '@delon/theme';
import { ReuseTabService } from './reuse-tab.service';
import { ... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
import {
HttpService,
Injectable,
Logger,
NotFoundException,
} from '@nestjs/common';
import { Observable } from 'rxjs';
import { ValidationRequestDto } from './request/validation-request.dto';
const url = require('url');
@Injectable()
export class AppService {
constructor(private httpService: HttpService) {... |
import { BillService } from 'src/app/services/bill.service';
import { Component, OnInit } from '@angular/core';
import { Bill } from 'src/app/model/bill';
@Component({
selector: 'app-tenant-page-list-bills',
templateUrl: './tenant-page-list-bills.component.html',
styleUrls: ['./tenant-page-list-bills.component.c... |
import {
IRequestResponse,
IThriftClientFilterConfig,
IThriftRequest,
NextFunction,
} from '@statestitle/thrift-client'
import {
appendThriftObject,
IStructCodec,
LogFunction,
ProtocolType,
readThriftObject,
TransportType,
} from '@statestitle/thrift-server-core'
import { defaultLogger } from './lo... |
import { ApiProperty } from "@nestjs/swagger";
import { CityDto } from "./city.dto";
export class CreateFlightDto {
@ApiProperty({ type: CityDto, description: 'create your city object following City Schema' })
departure: CityDto;
@ApiProperty({ type: CityDto, description: 'create your city object following... |
// Copyright 2020 UBIO Limited
//
// 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... |
// Type definitions for babel-core 6.25
// Project: https://github.com/babel/babel/tree/master/packages/babel-core, https://babeljs.io
// Definitions by: Troy Gerwien <https://github.com/yortus>
// Marvin Hagemeister <https://github.com/marvinhagemeister>
// Definitions: https://github.com/DefinitelyTyp... |
// Copyright 2017-2020 @polkadot/react-components authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ButtonType } from './types';
import IButton from './Button';
import Content from './Content';
import Group ... |
import { getPage } from '../helpers'
import { build } from '../runners'
test('crx runs from build output', async () => {
const { browser } = await build(__dirname)
const options = await getPage(browser, 'chrome-extension')
const google = await getPage(browser, 'google')
await options.waitForSelector('.ok', {... |
/**
*
* Copyright (c) 2021 Aspose.PDF Cloud
* 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, modify, merge,... |
import { BigNumber } from 'bignumber.js';
import { RequestBuilder, GetAllRequestBuilder, GetByKeyRequestBuilder, CreateRequestBuilder } from '@sap-cloud-sdk/core';
import { ExtPersonalInfo } from './ExtPersonalInfo';
/**
* Request builder class for operations supported on the [[ExtPersonalInfo]] entity.
*/
export dec... |
import * as fs from 'fs';
import * as _ from 'lodash';
import { CommandInfo } from '../command';
import { CommandParser } from './command-parser';
/**
* Finds wildcards in npm/yarn/pnpm run commands and replaces them with all matching scripts in the
* `package.json` file of the current directory.
*/
export class Ex... |
// Copyright IBM Corp. 2017,2018. 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'
/**
* Set up... |
import { PropertyDescriptorParams, PropertyDescriptor, _default } from "./PropertyDescriptor";
export interface ElementParams<T> extends PropertyDescriptorParams<T> {
order: number;
name: string;
required?: boolean;
collectionEntryType?: any;
}
/**
* An OFX element, applied to a javabean property.
*/
expo... |
import GodfatherCommand from '@lib/GodfatherCommand';
import { TrialVoteType } from '@root/lib/mafia/managers/VoteManager';
import { ApplyOptions } from '@sapphire/decorators';
import { BucketType, CommandOptions } from '@sapphire/framework';
import { Time } from '@sapphire/time-utilities';
import type { Message } from... |
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import path from 'path';
import webpack from 'webpack';
const sourceIndex = path.resolve(__dirname, '../lib/slides-presenter.ts');
const config: webpack.Configuration = {
mode: 'development',
entry: [sourceIndex],
resolve: {
extensions: ['.ts', '.j... |
import { createSlice, nanoid, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit'
import { client } from '../util/client'
import { Segment, httpRequestState, Track, Workflow } from '../types'
import { roundToDecimalPlace } from '../util/utilityFunctions'
import { WritableDraft } from 'immer/dist/internal';
impo... |
/**
* Maps selction sample
*/
import { Maps, MapsTooltip, ISelectionEventArgs, Selection, Highlight, Legend, ILoadEventArgs, MapsTheme, MapAjax} from '../src/index';
import { electionData } from './MapData/ElectionData';
import { usa } from './MapData/USA';
import { isNullOrUndefined } from '@syncfusion/ej2-base';
M... |
import { useState, useEffect } from 'react';
import { useParams } from 'react-router-dom';
import io, { Socket } from 'socket.io-client';
import { PollData, Option } from '../../utils/interfaces';
import { SOCKET_EVENTS, URLS } from '../../utils/constants';
import { errorHandler } from '../../utils/api';
import { Histo... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Account } from '../models/account.model';
@Injectable({
providedIn: 'root'
})
export class AccountDetailService {
private accountUrl = 'http://localho... |
import { hashAndEncryptValues } from "../utils/hash";
// The repo entity
export interface RepoInterface {
repo_identifier: string,
repo_name: string,
owner_id: string,
git_branch: string,
git_tag: string
}
export class Repo implements RepoInterface {
public repo_identifier: string;
public repo_name: str... |
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HeaderComponent } from './shared/header/header.component';
import { AboutComponent } from './about/about.component';
import { LoginComponent } from './login/login.component';
import { ProtocolsCompone... |
import { Command } from '../command';
export = new Command({
run: async function (message, args, colors) {
if (!args[1]) {
message.channel.send('Please provide a command to enable / disable');
return;
}
const command = message.client.getCommand(args[1] || '');
const channel =
message.mentions.channe... |
import {ImageBase, ImageBaseView, ImageDataBase} from "./image_base"
import {Arrayable, TypedArray} from "core/types"
import {isArray} from "core/util/types"
import * as p from "core/properties"
export type ImageRGBAData = ImageDataBase
export interface ImageRGBAView extends ImageRGBAData {}
export class ImageRGBAVi... |
import { request } from './request';
import { MenuList } from '../interface/layout/menu.interface';
import { Notice } from 'interface/layout/notice.interface';
import { AxiosRequestConfig } from 'axios';
/** 获取菜单列表接口 */
export const getMenuList = (config: AxiosRequestConfig = {}) => request<MenuList>('get', '/user/men... |
export function format_date(date: Date): string {
return new Date(date).toLocaleString('default', {
year: 'numeric',
day: '2-digit',
month: 'short'
});
} |
import * as React from 'react'
import { connect } from 'react-redux'
import { withRouter, RouteComponentProps } from 'react-router-dom'
import { APIRequest, isAPISucceeded, isAPIFailed } from '@src/apis/Core'
import { Service, Application, } from '@src/apis'
import {
saveServiceDispatcher,
addNotification,
fetch... |
/*
* Copyright © 2022 SNOMED International
*
* 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 { Injectable } from '@angular/core';
@Injectable()
export class CarsService {
private cars: CarInterface[] =
[
{
id: 1,
nombre: 'SMART fortwo 0.9 66kW 90CV COUPE 3p.',
precio: 15400,
garantia: 2,
cambio: 'automatico',
img: ... |
export declare class SchematicOption {
private name;
private value;
constructor(name: string, value: boolean | string);
toCommandString(): string;
private format;
} |
import { Command } from '../../config';
import { Message } from 'discord.js';
const shrekCommand : Command = {
name: 'shrek',
aliases: ['shrekkk'],
description: 'Invia un insulto in italiano',
async run(message : Message) {
message.channel.sendTyping();
message.channel.sendTyping();
message.channel.sendTypi... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ScTestcompPComponent } from './sc-testcomp-p.component';
describe('Component: ScTestcompPComponent', () => {
let component: ScTestcompPComponent;
let fixture: ComponentFixture<ScTestcompPComponent>;
beforeEach(async(() => {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.