text stringlengths 10 953k |
|---|
export interface IComment {
_id: string;
body: {
username: string;
content: string;
};
likes: string[];
postId: string;
created_at: string;
} |
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
import type { CollectionItemId, File, LocId, LocLink, MetadataItem, PeerId } from '../interfaces/default';
import type { ApiTypes } from '@polkadot/api-base/types';
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u16, u... |
import { Component } from "@angular/core";
import { Router } from "@angular/router";
import { AuthenticationService } from "../../shared/services/authentication.service";
import { navItems } from "../../_nav";
@Component({
selector: "app-dashboard",
templateUrl: "./default-layout.component.html",
})
export class D... |
import { flags } from '@oclif/command'
import { NewWorkflow } from '../api'
import { getTimestampFarFuture, getTimestampNextHour } from '../datetime'
export type TimerOptions = {
timezone?: string,
start_time?: string,
until?: string,
frequency?: string,
count?: number,
interval?: number,
byweekday?: nu... |
import { BaseEntity, Column, Entity, PrimaryColumn } from 'typeorm';
@Entity({ name: 'result_type' })
export class ResultType extends BaseEntity {
@PrimaryColumn()
code: string;
@Column()
order: number;
@Column({ name: 'name_th' })
name_th: string;
@Column({ name: 'name_en' })
name_en: string;
@Colum... |
import { render } from "react-dom";
import { Root } from "vscode-bugsnag-stepthrough-components";
import { BugsnagProvider } from "./providers/bugsnag";
import { VSCodeProvider } from "./providers/vscode";
function Extension() {
return (
<VSCodeProvider>
<BugsnagProvider>
<Root />
</BugsnagP... |
import { SortOrder } from "../../util/SortOrder";
export type EventOrderByInput = {
createdAt?: SortOrder;
eventDate?: SortOrder;
id?: SortOrder;
title?: SortOrder;
type?: SortOrder;
updatedAt?: SortOrder;
}; |
import List from './List';
import Stack from './Stack';
export { List, Stack }; |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import { CommandDefinition } from './CommandDefinition.js'
import { IotDpsClient } from '@azure/arm-deviceprovisioningservices'
import { promises as fs } from 'fs'
import { CARootFileLocations } from '../iot/caFileLocations.js'
import { newline, next, setting, success } from '../logging.js'
export const proofCARootPos... |
class TwoFer {
static twoFer(name: string = 'you') {
return `One for ${name}, one for me.`
}
}
export default TwoFer |
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action } from 'redux';
export enum HubRuntimeStatusType {
Idle = 'idle',
Loading = 'loading',
Loaded = 'loaded',
Running = 'running',
Error = 'error',
}
export enum HubMessageActionType {
/**
* The hub ha... |
import { useLayoutEffect, useState } from "react"
import { getViewportDimensions } from "v2/Utils/viewport"
export const useWindowSize = () => {
const [size, setSize] = useState({ width: 0, height: 0 })
useLayoutEffect(() => {
function resize() {
const { width, height } = getViewportDimensions()
... |
import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
@Component({
selector: 'app-page-not-found',
templateUrl: 'pagenotfound.component.html',
styleUrls: ['pagenotfound.component.css']
})
export class PageNotFoundComponent implements OnInit {
constructor(... |
/*
* File: careers.d.ts
* Created Date: 03/10-21
* Last Modified: 22/10-21 by Tom-Lennart Sætran
*
* Copyright (c) 2021 Tom's Data AS https://www.tomsdata.no
*/
interface ICareersRegisterPayload {
content: string
title: string
author: string
image: string
salary: number
}... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { HttpOperationResponse } from "@azure/core-http";
import {
AtomXmlSerializer,
deserializeAtomXmlResponse,
serializeToAtomXmlRequest
} from "../util/atomXmlHelper";
import { getInteger, getString, getDate } from "../util/utils";
/... |
import React from "react";
import { useTokenName } from "./../../hooks";
import {
calculateBorrowAPY,
calculateDepositAPY,
calculateUtilizationRatio,
LendingReserve,
} from "../../models/lending";
import { TokenIcon } from "../../components/TokenIcon";
import { formatNumber, formatPct, fromLamports } from "../.... |
export class organizationCreateModel {
"id":number;
"orgName":string = "";
"locationId":number;
"shortCode":string = "";
"orgTyp":string = "";
"hierarchyId":number=-1;
} |
// Type definitions for uniqid 4.1
// Project: http://github.com/adamhalasz/uniqid
// Definitions by: idchlife <https://github.com/idchlife>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniqid
// Commmon function signature
declare function f(prefix?: string): string;
// let x -... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** 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";
/**
* Single item in List or Get Alias(Disaster Recovery configuration) op... |
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import React from 'react';
import renderer from 'react-test-renderer';
import InstallTabs from '../../src/components/installTabs';
describe('Tests for InstallTabs component', () => {
it('renders correctly', () => {
const tree = renderer.create... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
/**
* @fileoverview Helper functions to work with typeid strings
*/
import { TemplateSchema as templateSchemaJson, NativeTypes } from "../templateSchema";
// @ts-ignore
import { constants } from "... |
export default {
roles: {
addAttributeText: "Add an attribute",
deleteAttributeText: "Delete an attribute",
associatedRolesText: "Associated roles",
addAssociatedRolesText: "Add associated roles",
addAssociatedRolesSuccess: "Associated roles have been added",
addAssociatedRolesError: "Could no... |
import { ReactNode } from 'react'
interface Props {
children: ReactNode
}
export default function PageTitle({ children }: Props) {
return (
<h1 className="text-4xl font-extrabold leading-10 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-5xl md:leading-14">
{children}
... |
/**
* @author Nelson Herbin <nelson@herbin.info>
* @copyright 2018. MIT Licence
*
*/
import { AmdtDerouleurInterface } from '../interfaces/AmdtDerouleur.interface';
export const amdtDerouleurFixture: Array<AmdtDerouleurInterface> = [{
place: "Article PREMIER",
sort: "Rejeté",
numero: "1029",
parentNumero: ""... |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
fun... |
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction } from "./../../types/globalTypes";
// ====================================================... |
/**
* Turn CloudFormation intrinsics into strings
*
* ------
*
* This stringification is not intended to be mechanically reversible! It's intended
* to be understood by humans!
*
* ------
*
* Turns Fn::GetAtt and Fn::Ref objects into the same strings that can be
* parsed by Fn::Sub, but without the surroundi... |
import { ConnectOptions } from 'twilio-video';
const options: ConnectOptions = {
audio: true,
video: false,
};
export default options; |
// Common options
export const ID_SHORT = 'i';
export const ID_LONG = 'id';
export const CURRENT_CHANNEL_LONG = 'current';
export const CURRENT_CHANNEL_SHORT = 'u';
export const CHANNEL_SHORT = 'o';
export const CHANNEL_LONG = 'on';
export const CONFIG_CHANNEL_LONG = 'channel';
export const CONFIG_CHANNEL_SHORT = 'c... |
import { Component, OnInit } from '@angular/core';
import { FormGroup,Validators } from "@angular/forms"
import { Location } from './location.model';
@Component({
selector: 'app-upperCase-add-template-driven-validation-directives',
templateUrl: './upper-case-add.component.html'
})
export class UpperCaseAddTemp... |
import { SwitchArgv } from 'src/cmds/deploy/switch'
import { getReleaseName, switchIngressService } from 'src/lib/blockscout'
import { switchToClusterFromEnv } from 'src/lib/cluster'
import yargs from 'yargs'
export const command = 'blockscout'
export const describe = 'switch the active environment for main service dn... |
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// structs need to be in order
/* eslint-disable sort-keys */
import * as edgewareDefinitions from 'edgeware-node-types/d... |
import { Component, Element, Event, EventEmitter, Listen, Method, Prop } from '@stencil/core';
import { ActionSheetButton, Animation, AnimationBuilder, Color, Config, CssClassMap, Mode } from '../../interface';
import { BACKDROP, OverlayEventDetail, OverlayInterface, dismiss, eventMethod, isCancel, present } from '../.... |
// Type definitions for Luigi Client
export as namespace LuigiClient;
export declare interface AuthData {
accessToken?: string;
accessTokenExpirationDate?: number;
idToken?: string;
[key: string]: any;
}
export declare interface ConfirmationModalSettings {
type?: string;
header?: string;
body?: string;... |
import * as vscode from 'vscode';
import { FoamFeature } from '../types';
import { URI } from '../core/model/uri';
import {
fromVsCodeUri,
toVsCodePosition,
toVsCodeRange,
toVsCodeUri,
} from '../utils/vsc-utils';
import { NoteFactory } from '../services/templates';
import { Foam } from '../core/model/foam';
im... |
import { ReactComponent as ArrowIcon } from 'assets/images/arrow.svg';
import ReactPaginate from 'react-paginate';
import './styles.css';
type Props = {
forcePage?: number;
pageCount: number;
range: number;
onChange?: (pageNumber: number) => void;
}
const Pagination = ( { forcePage, pageCount, range, onChang... |
import { providers, utils } from 'ethers';
import { ColonyEvents } from '../../../src';
import type { ColonyEvent } from '../../../src';
const provider = new providers.JsonRpcProvider('https://xdai.colony.io/rpc2/');
const { isAddress } = utils;
// This event listener will only list for the `DomainAdded` event in th... |
import { RequiredFieldValidation } from './required-field-validation'
import { RequiredFieldError } from '@/validation/errors'
import faker from 'faker'
const makeSut = (field: string): RequiredFieldValidation => new RequiredFieldValidation(field)
describe('RequiredFieldValidation', () => {
test('Should return erro... |
import { ComponentFactoryResolver, EventEmitter, Injector, OnInit } from '@angular/core';
import { FormControl, ValidatorFn } from '@angular/forms';
import { SnackBarService } from '../../../../../services/snackbar.service';
import { OTranslateService } from '../../../../../services/translate/o-translate.service';
impo... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { environment } from './../../../environments/environment';
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class InterceptorService implements... |
// Type definitions for eslint 6.1
// Project: https://eslint.org
// Definitions by: Pierre-Marie Dartus <https://github.com/pmdartus>
// Jed Fox <https://github.com/j-f1>
// Saad Quadri <https://github.com/saadq>
// Jason Kwok <https://github.com/JasonHK>
// Definitions:... |
import type { ICoordinates } from "../Core/Interfaces/ICoordinates";
import type { Particle } from "../Core/Particle";
export declare class Point {
readonly position: ICoordinates;
readonly particle: Particle;
constructor(position: ICoordinates, particle: Particle);
} |
import { observer } from "mobx-react-lite";
import React, { useContext } from "react";
import { RootStoreContext } from "../app/stores/rootStore";
import { ISortingAlgorithm } from "../app/models/sortingAlgorithm";
import { makeStyles, createStyles, Theme } from "@material-ui/core";
import { customColors } from "../app... |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" {...props}>
<path d="M219.3 123.5c-6.8-7.3-16.8-12.4-27.3-12.4s-20.5 5.1-27.5 12.6L42.28 256.5c-10.34 11-13.15 27-7.22 40.8 6 13.78 19.53 22.... |
import { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client";
import { DeleteTrafficPolicyRequest, DeleteTrafficPolicyResponse } from "../models/models_0";
import {
deserializeAws_restXmlDeleteTrafficPolicyCommand,
serializeAws_restXmlDeleteTrafficPolicyCommand,
} from "../p... |
import { DpLocalStorageService } from './../../../facade/dp-local-storage.service';
import { DP_CARD_REGISTRATION_STATUS } from '../../../../utils/dp-constants';
import { ActivatedRoute } from '@angular/router';
import { GlobalMessageService, GlobalMessageType } from '@spartacus/core';
import { DpCheckoutPaymentService... |
import { NgModule } from '@angular/core';
import { MatToolbarModule, MatIconModule, MatMenuModule, MatSidenavModule, MatCardModule, MatBadgeModule, MatButtonModule, MatExpansionModule, MatDialogModule, MatListModule, MatSlideToggleModule, MatRadioModule, MatCheckboxModule, MatBottomSheetModule, MatTooltipModule, MatPro... |
import FieldAdapter from './FieldAdapter';
import { Multivector } from './Multivector';
export default function multivectorGT<T>(lhs: Multivector<T>, rhs: Multivector<T>, field: FieldAdapter<T>): boolean; |
import { getCLIPath, nspawn as spawn } from '..';
import { AmplifyFrontend, AmplifyFrontendConfig, ExecutionContext, DEFAULT_JS_CONFIG } from '../utils';
export function amplifyPull(
cwd: string,
settings: {
override?: boolean;
emptyDir?: boolean;
appId?: string;
withRestore?: boolean;
frontend... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as fs from "fs";
import * as util from "util";
import { isNode } from "@azure/core-http";
/**
* Reads a readable stream into buffer. Fill the buffer from offset to end.
*
* @export
* @param {NodeJS.ReadableStr... |
export interface GetNameOptions {
select: 'all' | 'official' | 'alias';
}
export type CountryName<T extends GetNameOptions> = T extends { select: 'all' } ? string[] : string
export type LocalizedCountryNames<T extends GetNameOptions> = {
[alpha2Key: string]: CountryName<T>
};
export type LocaleData = {
locale:... |
import { V2Page } from './app.po';
describe('v2 App', function() {
let page: V2Page;
beforeEach(() => {
page = new V2Page();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
});
}); |
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { HttpModule } from '@angular/http';
import { FicheproduitPage } from "../pages/fi... |
import Block, {BlockOptionsType, BlockOptionType, IBlockOptions} from '@/models/block';
import {computed} from 'vue';
import {ClassBinding} from '@/types/vue/attribute-bindings';
// interface CondTuple<T extends Block, K extends keyof T['options']> {
// class: string,
// value: T['options'][K],
// default:... |
import {BaseListAPIRequest, IBaseListAPIRequest} from 'src/models/lib/api_requests/base_list_api_request';
import {BaseRecordAudit, IBaseRecordAudit} from 'src/models/lib/base_record_audit';
import {Address, IAddress} from 'src/models/lib/address';
import {APIError, IAPIError} from 'src/models/lib/api_error';
import {A... |
import { HeaderModule } from '../header.module';
import { FilterNavigationModule } from './filter-navigation.module';
import { ProductListModule } from './product-list.module';
export class SearchResultPage {
readonly tag = 'ish-search-result';
readonly header = new HeaderModule();
readonly filterNavigation =... |
import { IReport } from '../interfaces/jira';
import { writeSeparator } from '../functions/exec';
import { Bar, Presets } from 'cli-progress';
import { bgBlue } from 'colors';
import * as JiraApi from 'jira-client';
import { ConfigManager } from './config-manager';
const JiraClient: any = JiraApi;
export class JiraMa... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Spacecoin</source>
<translation>Sobre o Spacecoin</translation>
... |
import express = require("express");
import adminCtrl = require("./admin");
import * as passport from "passport";
export namespace Routes {
export function index(): express.Router {
const router = express.Router();
router.route("/")
.get(adminCtrl.index);
return router;
}
} |
import { useApolloClient } from "@apollo/client";
import { StackNavigationProp } from '@react-navigation/stack';
import * as React from "react";
import { BalanceHeader } from "../../components/balance-header";
import { PriceGraphDataInjected } from "../../components/price-graph";
import { Screen } from "../../component... |
import PackageBuilder from "../PackageBuilder";
import SubjectService from "../SubjectService";
import ProfileRepository from "../ProfileRepository";
import * as localforage from 'localforage';
import { MessageHandler } from "../Shared/MessageHandler";
import { StorageClient } from "../Shared/StorageClient";
import { T... |
/**
* @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
*/
import { TestBed, inject } from '@angular/core/testing';
import { Service837Service } from './service-837.service';... |
import { Container } from './Container';
import { RealNumber } from '../../common';
import { PatternRef } from '../../gears/color';
export interface MarginContainer extends Container {
margins: RealNumber;
color: PatternRef;
left: RealNumber;
right: RealNumber;
top: RealNumber;
bottom: RealNumber;
} |
import { FDate, Text } from '../index';
type AType = {
x: number,
y: number,
z: {
x: number,
y: number,
atype: AType,
d:Date
},
d:Date
};
let xxx : AType = {} as AType;
const x = () => {
return <>
<Text name="get" />
<Text<typeof xxx> name="z.atype... |
import { isSameMonth } from './is-same-month';
import { describe, test, expect } from 'vitest';
describe('@svelteuidev/dates/is-same-month', () => {
test('detects same month', () => {
expect(isSameMonth(new Date(2021, 2, 1), new Date(2021, 2, 2))).toBe(true);
expect(isSameMonth(new Date(2021, 3, 1), new Date(2021... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import {IHWKeyState} from "./types";
import {LedgerApp} from "@emeraldpay/emerald-vault-core";
import {IState} from "../types";
import {BlockchainCode, ledgerByBlockchain} from "@emeraldwallet/core";
export function isWatching(state: IHWKeyState): boolean {
return state.watch
}
export function getLedgerApp(state: I... |
import parsePropType from './parsePropType';
import type { Props } from 'svelte-docster/types/extractProps';
function comment({ description, value, valueType }) {
const noDescription = !description;
const noValue = !value || valueType === 'Identifier';
if (noDescription && noValue) return '';
const output = ... |
/* tslint:disable quotemark */
import {assert} from 'chai';
import * as selection from '../../../src/compile/selection/selection';
import nearest from '../../../src/compile/selection/transforms/nearest';
import {parseUnitModel} from '../../util';
function getModel(markType: any) {
const model = parseUnitModel({
... |
import { Region, Skill } from "@atlasacademy/api-connector";
import { useEffect, useState } from "react";
import { Button, OverlayTrigger, Popover } from "react-bootstrap";
import Api from "../Api";
import EffectBreakdown from "../Breakdown/EffectBreakdown";
import SkillDescriptor from "./SkillDescriptor";
import Manag... |
import {NgModule} from "@angular/core";
import {CommonModule} from "@angular/common";
import {JigsawTileSelectModule} from "jigsaw/pc-components/list-and-tile/tile";
import {JigsawButtonModule} from "jigsaw/pc-components/button/button";
import {JigsawComboSelectModule} from "jigsaw/pc-components/combo-select/index";
im... |
import { Extension, extensions } from "vscode";
import { COBAPIConstants, COBOLPreprocessor } from "./cobapi";
import { CobApiHandle } from "./cobapiimpl";
import { COBOLPreprocessorHelper } from "./cobolsourcescanner";
import { VSLogger } from "./vslogger";
import { ICOBOLSettings } from "./iconfiguration";
import { V... |
export { default as compose } from './compose'
export { default as curry } from './curry'
export { default as curry2 } from './curry2'
export { default as map } from './map'
export { default as filter } from './filter'
export { default as memoize } from './memoize'
// export { default as curry } from './curry'
// expor... |
<TS language="is" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Smelltu á hægri músatakka til að breyta færslugildi eða merkingu</translation>
</message>
<message>
<source>Create a new address</s... |
import './Deffered'
import { Deffered } from './Deffered'
test('Resolve calls resolved', async () => {
const sut = new Deffered()
const resolved = jest.fn()
const rejected = jest.fn()
sut.promise.then(resolved, rejected)
sut.resolve(0)
await sut.promise
expect(resolved).toBeCalledWith(0)
expect(rejec... |
import {ItemType} from './item-type';
import {Publisher} from './publisher';
import {Team} from './team';
export class Item {
id: any;
title: string;
eps_no_list: number[];
type: ItemType;
team?: Team;
timestampe: Date;
uri?: string;
publisher: Publisher;
torrent_url?: string;
m... |
import { _UnmarshalledSimulationJob } from "./_SimulationJob";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* BatchDescribeSimulationJobOutput shape
*/
export interface BatchDescribeSimulationJobOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>A list of simulation jobs.</p>
*/
jobs?: Ar... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardComponent } from './dashboard.component';
const routes: Routes = [
{
path: '',
component: DashboardComponent,
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [Router... |
// Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import React, { useState, useContext, FormEvent } from 'react';
import {
Modal,
ModalBody,
ModalHeader,
} from 'amazon-chime-sdk-component-library-react';
import Card from '../../components/Card';
i... |
import { Box, Text, Center } from "@chakra-ui/react";
import React from "react";
type DayjsBoxProps = {
header: string;
children: React.ReactNode;
};
export const DayjsBox = ({ header, children }: DayjsBoxProps) => {
return (
<Box bgColor="purple.600" m={2} borderRadius={3} p={2} color={"white"} w={"100%"}>... |
export { useGraphQuery } from './use-graph-query';
export { useGraph } from './use-graph';
export { GraphModel } from './graph-model';
export { EdgeModel } from './edge-model';
export { NodeModel } from './node-model'; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Harambecoin</source>
<translation type="unfinished"/>
</message>... |
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { getFileContent } from '@schematics/angular/utility/test';
import { join } from 'path';
import { setupProject } from '../utils/test-utils';
import { getPackageJson } from '../utils/utils';
const schematicCollectionPath = j... |
export default 'foo.cjs' |
import { JSONObject, parseJSONObject, JSONArray, parseJSONArray, JSONValue } from "parse-json-object";
import reduceFirst from "reduce-first";
function extract<T extends JSONValue>(
text: string,
startBracket: string,
endBracket: string,
parser: (input: string) => T | undefined
): T | undefined {
return redu... |
/**
* @license
* Copyright 2020 Google LLC. 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 a... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { FrontEndTestModule } from '../../../../test.module';
import { BarragemDetailComponent } from 'app/entities/ApiMonitoramentoBarragens/barragem/barragem-detail.componen... |
import validator from 'validator'
interface IRepository<T>{
find: () => T
list: () => T[]
save: (data: T) => {}
delete: (data: T) => boolean
}
interface IValidator{
isEmail: (email: string) => boolean
}
class ValidatorValidatorAdapter implements IValidator {
isEmail (email: string): boolean {
return va... |
/*
* Digital twin for the Crickit HAT
*
* @author Charles Xie
*/
import {Hat} from "./Hat";
import {Rectangle} from "../math/Rectangle";
import {contextMenus} from "../Main";
// @ts-ignore
import crickitHatImage from "../img/crickit-hat.png";
export class CrickitHat extends Hat {
private mouseOverObject: any;... |
import CookieApi from 'cookie-api-handler';
import { DateTime } from 'luxon';
import { parseUrl } from 'query-string';
import { ApiResponseType, DefaultResponseProcessor } from 'rest-api-handler';
import { ENDOMONDO_URL } from '../constants';
import { EndomondoApiException, EndomondoException } from '../exceptions';
im... |
import { BreakpointObserver } from '@angular/cdk/layout';
import { OverlayContainer } from '@angular/cdk/overlay';
import { DOCUMENT, isPlatformServer } from '@angular/common';
import { Inject, Injectable, PLATFORM_ID, RendererFactory2 } from '@angular/core';
import { CookieService } from 'ngx-cookie-service';
import {... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Pyrite</source>
<translation type="unfinished"/>
</message>
<message>
<location line... |
/*************************************************************
*
* Copyright (c) 2019 The MathJax Consortium
*
* 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.ap... |
const Electricity: DataResearchProject = {
techLevel: TechLevel.Industrial,
baseCost: 1200,
prerequisites: null,
requiredByThis: null,
requiredResearchBuilding: null,
requiredResearchFacilities: null,
tags: ['ClassicStart'],
researchViewX: 3,
researchViewY: 2.5,
defName: 'Electricity'
}
export defa... |
import { Component, OnInit } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { dataServices } from '../../../services';
import { Enums } from './../../../../../shared/utils/enums';
import { comservices } from '../../../../../shared/services';
import { Router, ActivationEnd, ActivatedRoute... |
import {
Component,
ViewChild,
} from '@angular/core';
import { SohoWizardComponent } from 'ids-enterprise-ng';
@Component({
selector: 'demo-wizard-demo',
templateUrl: 'wizard.demo.html',
})
export class WizardDemoComponent {
@ViewChild(SohoWizardComponent, { static: true }) wizard!: SohoWizardComponent;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.