text stringlengths 10 953k |
|---|
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'infinite-scroll-ui';
} |
import { QueryClient } from '@libs/query-client';
import { cw20, terraswap, Token } from '@libs/types';
import { nativeTokenInfoQuery } from '../cw20/nativeTokenInfo';
import { cw20TokenInfoQuery } from '../cw20/tokenInfo';
export async function terraTokenInfoQuery<T extends Token>(
asset: terraswap.AssetInfo,
que... |
import React from 'react';
import {
ChartPlugin,
ChartMetadata,
ChartFormData,
DatasourceType,
ChartProps,
BuildQueryFunction,
TransformProps,
getChartMetadataRegistry,
getChartComponentRegistry,
getChartTransformPropsRegistry,
getChartBuildQueryRegistry,
} from '../../src';
describe('ChartPlugi... |
import { Component } from '@angular/core';
@Component({
templateUrl: 'root-page.html'
})
export class RootPage {
constructor() { }
} |
import { Document } from 'mongoose';
import { AgendaDocument } from './agenda.schema';
export declare type UserDocument = User & Document;
export declare class User {
name: string;
lastname: string;
age: number;
agenda: AgendaDocument[];
}
export declare const UserSchema: import("mongoose").Schema<Docum... |
export const HTTPS_SCHEME = 'https';
export const SKYPEWEB_LOCKANDKEY_APPID = 'msmsgs@msnmsgr.com';
export const SKYPEWEB_LOCKANDKEY_SECRET = 'Q1P7W2E4J9R8U3S5';
export const SKYPEWEB_CLIENTINFO_NAME = 'SkypeX';
export const SKYPEWEB_CLIENTINFO_VERSION = '1418/8.50.76.23';
export const SKYPEWEB_API_SKYPE_HOST = 'api.sk... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL query operation: PlaceholderImageQuery
// ====================================================
export interface PlaceholderImage... |
import { compiler } from './index'
import React from 'react'
import ReactDOM from 'react-dom'
import fs from 'fs'
import theredoc from 'theredoc'
const root = document.body.appendChild(
document.createElement('div')
) as HTMLDivElement
function render(jsx) {
return ReactDOM.render(jsx, root)
}
afterEach(() => Re... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { combineLatest, Subscription } from 'rxjs';
import { CLIENT_NODE_NAME } from 'src/app/models/consts';
import { BdDataColumn } from 'src/app/models/data';
import { ApplicationType, InstanceNodeConfigurationDto, OperatingSystem } from 'src/app/models/g... |
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { AuthService } from '../_services/auth.service';
import { AlertifyService } from '../_services/alertify.service';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { User } from '../_models/user';
import { Router ... |
import React from 'react';
import { _cs } from '@togglecorp/fujs';
import RawButton from '#components/RawButton';
import { getFullMonthNameList } from '#utils/common';
import languageContext from '#root/languageContext';
import styles from './styles.module.scss';
interface Props<T> {
className?: string;
value: R... |
import { EC2 } from "../EC2";
import { EC2Client } from "../EC2Client";
import {
DescribeClientVpnEndpointsCommand,
DescribeClientVpnEndpointsCommandInput,
DescribeClientVpnEndpointsCommandOutput,
} from "../commands/DescribeClientVpnEndpointsCommand";
import { EC2PaginationConfiguration } from "./Interfaces";
im... |
import {
FileState,
FileItemEvents,
AppConfig,
FileItemServer,
InternalFileItem,
} from "../types";
import { v4 as uuid } from "uuid";
import { createListener } from "./createListener";
import axios from "axios";
export const createItem = (
file: File,
server: FileItemServer,
context: FileState["contex... |
export const FOLDER_ROOT = 'gTove Virtual Gaming Tabletop';
export const FOLDER_MAP = 'Maps';
export const FOLDER_MINI = 'Minis';
export const FOLDER_SCENARIO = 'Scenarios';
export const FOLDER_TEMPLATE = 'Templates';
export const FOLDER_TABLETOP = 'Tabletops';
export const FOLDER_GM_DATA = 'GM Data';
export const FOLD... |
import { IEntry, IField } from '../../settings/field.store';
export interface ISettingsRenderRegisterRequest<T> {
entry?: IEntry;
field?: IField<any>;
}
export class SettingsRenderRegisterRequest<T> {
public static signature: string = 'SettingsRenderRegisterRequest';
public signature: string = Setting... |
import { Repository, EntityRepository } from "typeorm";
import { User } from "./user.entity";
import { AuthCredentialsDto } from './dto/auth-credentials.dto';
import { ConflictException, InternalServerErrorException } from "@nestjs/common";
import * as bcrypt from 'bcrypt';
@EntityRepository(User)
export class UserRep... |
import * as mat3 from './mat3x3';
describe('algebra/mat3x3', () => {
function compare(x: {
expected: readonly number[];
result: Readonly<mat3.mat3x3>;
}) {
const { expected, result } = x;
expect(result.length).toBe(9);
for (let i = 0; i < result.length; ++i) {
if (expected[i]) {
... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import {
expectError,
expectSuccess,
runTestsForCasting,
} from "./../util/testutils";
import { cast } from "./int";
const tests = [
{
describe: "int tests",
expectations: [
{
name: "when value can be integer, should cast to integer",
value: "50",
expected: expectSuccess(5... |
import { DebugProtocol } from '@vscode/debugprotocol';
export function luaBlockQuote(inbuff:Buffer){
const tailmatch = inbuff.toString().match(/\]=*$/);
const blockpad = "=".repeat((inbuff.toString().match(/\]=*\]/g)||[])
.map((matchstr)=>{return matchstr.length - 1;})
.reduce((prev,curr)=>{return Math.max(prev,... |
import { Component, ViewChild, OnInit, Input, EventEmitter, Output, Testability } from '@angular/core';
import { SelectionModel } from '@angular/cdk/collections';
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/m... |
// Type definitions for mixpanel-browser 2.35
// Project: https://github.com/mixpanel/mixpanel-js
// Definitions by: Carlos López <https://github.com/karlos1337>
// Ricardo Rodrigues <https://github.com/RicardoRodrigues>
// Kristian Randall <https://github.com/randak>
// Definitions: htt... |
import type { ThemeId } from "../renderer/theme.store";
import { app, remote } from 'electron';
import semver from "semver"
import { readFile } from "fs-extra"
import { action, observable, reaction, toJS } from "mobx";
import { BaseStore } from "./base-store";
import migrations from "../migrations/user-store"
import { ... |
import { AxiosInstance } from 'axios';
export interface ApiService extends AxiosInstance {}
let singletonInstance: ApiService;
/**
* Used during startup by Sprout to set the service so it is available
* via the {@link getApiService} to the rest of the application.
*
* @internal
*/
export function setApiService(... |
import { ModuleId } from './types/export'
export function isValidModuleId (moduleId?: ModuleId): boolean {
return (typeof moduleId === 'string' && moduleId !== '') || typeof moduleId === 'number'
}
export function assertModuleId (moduleId: ModuleId): void {
if (!isValidModuleId(moduleId)) {
throw new TypeErro... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router'
@Component({
selector: 'app-broker-crud',
templateUrl: './broker-crud.component.html',
styleUrls: ['./broker-crud.component.css']
})
export class BrokerCrudComponent implements OnInit {
constructor(private router: Rout... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Body, Controller, Delete, Get, Param, Patch, Post, Query } from '@nestjs/common';
import { CreateProductDto } from './dto/create-product.dto';
import { UpdateProductDto } from './dto/update-product.dto';
import { ProductsService } from './products.service';
@Controller('products')
export class ProductsControl... |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule} from "@angular/router";
import {BsDropdownModule} from "ngx-bootstrap";
import {LineTruncationLibModule} from "ngx-line-truncation";
import {ModalModule} from 'ngx-bootstrap/modal';
import {QuillModule} from 'ngx... |
import { Currency, Language } from '../../../model/misc.model';
import { SiteContextActions } from '../actions/index';
import * as fromLanguages from './languages.reducer';
describe('Languages Reducer', () => {
describe('undefined action', () => {
it('should return the default state', () => {
const { initi... |
import { WithStyle } from '@medly-components/utils';
import React, { FC } from 'react';
import Warning400LineIconSvg from '../../assets/GSDD/Warning_400_Line.svg';
import SvgIcon, { SvgIconProps } from '../../SvgIcon';
const Warning400LineIcon: FC<SvgIconProps> & WithStyle = React.memo(props => {
const { size, wit... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { DeleteVpcPeeringConnection } from "../model/operations/DeleteVpcPeeringConnection";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/... |
import ModelTraits from "./ModelTraits";
import primitiveTrait from "./primitiveTrait";
import primitiveArrayTrait from "./primitiveArrayTrait";
export default class TableTimeStyleTraits extends ModelTraits {
@primitiveTrait({
name: "Time Column",
description:
"The column that indicates the time of a s... |
// user
export const SET_AUTH = 'SET_AUTH';
export const CLEAR_AUTH = 'CLEAR_AUTH';
// admin
export const SET_ADMIN_AUTH = 'SET_ADMIN_AUTH';
export const CLEAR_ADMIN_AUTH = 'CLEAR_ADMIN_AUTH';
// category
export const SET_CATEGORIES = 'SET_CATEGORIES';
export const ADD_CATEGORY = 'ADD_CATEGORY';
// product
export const... |
import { LastActivityModule } from './last-activity.module';
describe('TablesModule', () => {
let lastActivityModule: LastActivityModule;
beforeEach(() => {
lastActivityModule = new LastActivityModule();
});
it('should create an instance', () => {
expect(lastActivityModule).toBeTruthy... |
import { renderHook, act } from '@testing-library/react-hooks';
import { interval, map, pipe } from 'wonka';
import { createClient } from '../client';
import { useQuery } from './useQuery';
import { RequestPolicy } from 'src/types';
jest.mock('../client', () => {
const d = { data: 'data', error: 'error' };
const ... |
import KioskBoard from '../index.d';
export = KioskBoard;
export as namespace KioskBoard; |
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { IconsModule } from "../icons/icons.module";
import { ProgramComponent } from "./component/program/program.component";
@NgModule({
declarations: [ProgramComponent],
imports: [CommonModule, IconsModule],
expo... |
import { Component, ShowFragment } from '@teambit/component';
import { ForkingMain } from './forking.main.runtime';
export class ForkingFragment implements ShowFragment {
constructor(private forking: ForkingMain) {}
title = 'forking';
async renderRow(component: Component) {
const forkingInfo = this.forking... |
/*
Copyright 2021 The Matrix.org Foundation C.I.C.
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 ... |
// Copyright (c) 2019 The DAML Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
import { Dispatch } from '@da/ui-core';
import { DamlLfValue } from '@da/ui-core/lib/api/DamlLfValue';
import * as LedgerWatcher from '@da/ui-core/lib/ledger-watcher';
import * as React from 'react';
import { gql, graph... |
import * as React from "react";
import { Moment } from "moment";
import {
FormControl,
Input,
InputLabel,
Checkbox,
TextField,
Button,
FormControlLabel,
Select,
MenuItem,
Theme,
withStyles
} from "@material-ui/core";
import { DatePicker } from "@material-ui/pickers";
import {... |
import { InvalidFeedback, EmailSchema, Schema, Feedback, EMAIL, OPTIONAL_EMAIL } from "../index.js";
// Tests.
test("TypeScript", () => {
const s1: Schema<string | null> = OPTIONAL_EMAIL;
const r1: string | null = s1.validate("dave@test.com");
const s2: Schema<string> = EMAIL;
const r2: string = s2.validate("dave... |
import Vue, { VNode } from 'vue';
import App from './App.vue';
import './index.css';
Vue.config.productionTip = false;
new Vue({
render: (h): VNode => h(App),
}).$mount('#app'); |
export { A } from './A' |
/**
* defines the model of workflow entity
*/
export interface Workflow {
id: string;
protocol: string;
label: string
description: string;
author: string;
nanopubs: string[];
permissions: { read: string[], update: string[], delete: string[] };
rdf: any;
created_at: Date;
update... |
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { CoreMouseService } from 'common/services/CoreMouseService';
import { MockCoreService, MockBufferService } from 'common/TestUtils.test';
import { assert } from 'chai';
import { ICoreMouseEvent, CoreMouseEventType, CoreMouse... |
// gridstack.ts 2.2.0-dev @preserve
/**
* https://gridstackjs.com/
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
* gridstack.js may be freely distributed under the MIT license.
*/
import { GridStackEngine } from './gridstack-engine';
import { obsoleteOpts, obsoleteOptsDel, obsoleteAttr, obsolete, Util... |
import { SbUserId } from '../../../common/users/user-info'
/**
* Keeps track of the user's IP address in our database. This indirection is necessary so we don't
* need database access in tests.
*
* Meant to be used with tsyringe's dependency injection system, so it can easily be mocked out in
* tests. The injecti... |
import { LoggerService } from '@plopdown/logger';
import { MessagesService } from '../messages.service';
import { Injectable } from '@angular/core';
import { Source } from '../messages.model';
import { BrowserActionCommand } from './browser-action.model';
import { PortPublisher } from '../publisher.abstract';
import { ... |
import { MessagesRepository } from "./messages.repository";
export class MessagesService {
messagesRepo: MessagesRepository
constructor() {
//Dont do this in real app
this.messagesRepo = new MessagesRepository()
}
findOne(id: string) {
return this.messagesRepo.findOne(id)
... |
/*
* Copyright 2019 NEM
*
* 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 writi... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
Typography,
Container
} from '@mui/material';
import React from 'react';
import { AddFriend } from './AddFriend';
import { FriendsList } from './PendingRequests';
export const Friends: React.FC = () => {
return (
<Container component="main">
<Typography variant="h6" component="h2">
... |
import "@material/mwc-button/mwc-button";
import { UnsubscribeFunc } from "home-assistant-js-websocket";
import {
css,
CSSResultArray,
customElement,
html,
internalProperty,
LitElement,
property,
} from "lit-element";
import { classMap } from "lit-html/directives/class-map";
import { debounce } from "../.... |
import * as Bson from "bson";
import { LocoRequestPacket, LocoResponsePacket, StatusCode } from "./loco-packet-base";
/*
* Created on Wed Oct 30 2019
*
* Copyright (c) storycraft. Licensed under the MIT Licence.
*/
export abstract class LocoBsonRequestPacket implements LocoRequestPacket {
private resolveList... |
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { Season } from '../../types/season';
import { ServerService } from '../../services/server.service';
import { SeasonsService } from '../../services/seasons.service';
import { Observable } from 'rxjs/Rx';
import { OrderBy } from... |
const CartIcon = ({
color = "currentColor",
width = "18px",
height = "18px",
className = "md:w-4 xl:w-5 md:h-4 xl:h-5",
}) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={width}
height={height}
viewBox="0 0 20 20"
className={className}
>
<path
d="M5,4H19a1,1,0,0,1,1,1V19a1,1,... |
import { Component, OnInit } from "@angular/core";
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
import { Router } from "@angular/router";
@Component({
selector: "app-heroes",
templateUrl: "./heroes.component.html",
styleUrls: ["./heroes.component.css"],
})
export class HeroesComponent imp... |
import { combineLatest as observableCombineLatest, Observable, Subject } from 'rxjs';
import { map, takeUntil } from 'rxjs/operators';
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Store } from '@ngrx/store';
import { NgrxStateAtom } fr... |
/** @jsx jsx */
import { React, AllWidgetProps, jsx } from "jimu-core";
import { IMConfig } from "../config";
import defaultMessages from "./translations/default";
import FeatureLayer = require("esri/layers/FeatureLayer");
import { JimuMapViewComponent, JimuMapView } from "jimu-arcgis";
interface IState {
jimuMapVi... |
const BadRequest = { status: 400 }
const MethodNotAllowed = { status: 405 }
export async function handleRequest(request: Request): Promise<Response> {
if (request.method != 'GET') {
return new Response('', MethodNotAllowed)
}
let params = (new URL(request.url)).searchParams
let latencyMax = parsePositiveI... |
import { Controller } from '@nestjs/common';
import { MessagePattern } from '@nestjs/microservices';
import { ThirdService } from './third.service';
@Controller()
export class ThirdController {
constructor(private readonly thirdService: ThirdService) {}
@MessagePattern('third')
getHello(param): string {
ret... |
import React from "react";
import { useMutation } from "@apollo/client";
import { css } from "@emotion/react";
import styled from "@emotion/styled";
import { uiColors } from "@leafygreen-ui/palette";
import { Subtitle, Body } from "@leafygreen-ui/typography";
import { format } from "date-fns";
import { ConditionalWrapp... |
import { Component, OnInit } from '@angular/core';
import { NotFoundService } from './not-found.service';
@Component({
selector: 'app-not-found',
templateUrl: './not-found.component.html',
styleUrls: ['./not-found.component.scss']
})
export class NotFoundComponent implements OnInit {
public status: { c... |
import { strictEqual, deepStrictEqual, deepEqual } from 'assert';
import { Style, Styles } from '../lib/styledtable/Style';
import { StyledTable, Data, TopLevelStyles } from '../lib/styledtable/StyledTable';
describe('styledtable', () => {
describe('Style', () => {
const globalStyle = { padLeft: 2, padRigh... |
/* tslint:disable */
/* eslint-disable */
/**
* Crayon Group Customer 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-generat... |
/**
* Setup test environment
* - Setup Database for testing
* - Build table that will be used during the testing
* - Setup express server
*
* Teardown test environment after test
* - Remove used table and close database connection from the express server
*
* @author Hyecheol (Jerry) Jang <hyecheol123@gmail... |
/**
* Плагин перетаскивания элементов
*
* Автор: Ерохин Максим, plarson.ru
* Дата: 19.12.2019
*/
import './Drag.scss';
import Logger from '../../Core/Logger';
import Faze from '../../Core/Faze';
/**
* Направление для проверки вхождения мышки в элемент
*
* Содержит:
* horizontal - левая и правая сторона
* ... |
/*
* Copyright 2018 The Kubeflow Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
import { memo } from 'react';
import { Star, Clock } from 'react-feather';
import '../styles/movie-card.scss';
interface MovieCardProps {
title: string;
poster: string;
rating: string;
runtime: string;
}
function MovieCardComponent(props: MovieCardProps) {
return (
<div className="movie-card">
<i... |
import { TimePrecision } from '../../types';
export const DATE_FORMATS: Record<TimePrecision, string> = {
minute: '%I:%M %p',
hour: '%I:%M %p',
day: '%e %b %y',
week: '%d %b',
month: '%b %y',
year: '%Y',
};
export const PRECISE_DATE_FORMATS: Record<TimePrecision, string> = {
minute: '%Y %b %d %I:%M %p',... |
import { Device, OnOffEnum } from '../core/device';
import { asEnum, asTime, lookupEnum, lookupEnumLang, lookupReference } from '../utils';
/**
* The state of the washer device.
*/
export enum WasherState {
ADD_DRAIN = '@WM_STATE_ADD_DRAIN_W',
COMPLETE = '@WM_STATE_COMPLETE_W',
DETECTING = '@WM_STATE_DETECTING... |
import createIcon from './../createIcon'
export default createIcon('la la-snowplow') |
import { useDraggable } from '@dnd-kit/core';
import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';
import FormatAlignLeftIcon from '@mui/icons-material/FormatAlignLeft';
import HighlightOffIcon from '@mui/icons-material/HighlightOff';
import ShuffleIcon from '@mui/icons-material/Shuffle';
import { B... |
export * from "./Graph";
export * from "./Link";
export * from "./Node"; |
import React from 'react';
import { Redirect, useParams } from 'react-router';
import { useSelector } from 'react-redux';
import { getAccounts, getTxs } from '../../store/account/selectors';
import Page, { PageLayouts } from '../../components/layout/Page/Page';
import Activity from '../../components/shared/Activity/A... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from "./App"
import './Fonts.css';
import "./index.css"
import "./Responsive.css"
ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('root')); |
/**
* Make it a number from hex string
* @param num
* @param digit
* @returns hexstring
*/
export const numberToHexString = (num : number, digit : number) : string => {
const template = Array.from(Array(digit), () => 0).join('')
const hexstring = num.toString(16).toUpperCase()
return (template + hexstr... |
import { Injectable } from '@angular/core';
import { Router, Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable, of } from 'rxjs';
import { CategoryService } from './category.service';
@Injectable({
providedIn: 'root'
})
export class CategoryResolverService implements ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class FhirQuery extends Component<any, any> {
static propTypes: { data: PropTypes.Validator<object>; url: PropTypes.Validator<string>; };
constructor(props: any) {
super(props);
this.state = {
displayed: fals... |
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
import { DomainLibraryName } from '../model/domain-library-name.enum';
import { getParsedDomain } from '../../../utils/domain';
import { formatFile } from '../../../utils/prettier';
import { readInTree } from '../../../utils/tree';
export const... |
<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</sou... |
import { readFileSync } from 'fs';
import { part1, part2 } from '.';
const input = readFileSync(`${__dirname}/input`, 'utf-8');
describe('Day 1', () => {
describe('Part 1', () => {
it('should return floor number', () => {
expect.assertions(10);
expect(part1('(())')).toStrictEqual(0);
expect(p... |
export function log(...rest: any[]) {
$.writeln(rest.join(" "));
} |
console.log('app . ts') |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import localeAr from '@angular/common/locales/ar';
import localeDe from '@angular/common/locales/de';
import localeEn ... |
import { ActionReducer, Action } from '@ngrx/store';
import { ADD_SEARCH_LIST, CLEAN_SEARCH_LIST, CLEAN_CACHE } from '../actions';
import _kebabCase from 'lodash/kebabCase';
export interface ISearchState {
[key: string]: {
page: number;
totalPages: number;
totalItems: number;
list: ... |
import { Type } from '../Type'
export const NumericType: Type<void> = {
name: 'Numeric',
label: 'Numeric',
definition: 'Numeric information that is assigned or is determined by calculation, counting, or sequencing. It does not require a unit of quantity or unit of measure.',
fields: new Map()
} |
import { SocketConfig, WAPresence, PresenceData, Chat, WAPatchCreate, WAMediaUpload, ChatMutation, WAPatchName, LTHashState, ChatModification, Contact } from "../Types";
import { BinaryNode, getBinaryNodeChild, getBinaryNodeChildren, jidNormalizedUser, S_WHATSAPP_NET, reduceBinaryNodeToDictionary } from "../WABinary";
... |
/*
* @Description: 可索引类型
* @Author: Cat
* @Date: 2021-01-18 17:37:46
* @LastEditTime: 2021-01-18 17:57:27
* @LastEditor: Cat
*/
interface stringArray {
[index: number]: string
}
let myArray: stringArray
myArray = ['Bob', 'Fred']
let myStr: string = myArray[0]
console.log(myStr);
class Animal {
name: strin... |
import {Component, OnInit} from "@angular/core";
import {PopupPositionType} from 'jigsaw/public_api';
import {routerConfig as alertConfig} from "./demo/pc/alert/demo-set.module";
import {routerConfig as autoCompleteInputConfig} from "./demo/pc/auto-complete-input/demo-set.module";
import {routerConfig as arrayCollectio... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Component, ViewChild} from '@angular/core';
import {Element, ELEMENT_DATA} from '../element-data';
import {Cd... |
interface BroccoliTree {
/**
* Contains the fs path for the input tree when the plugin takes only one input tree.
*
* For plugins that take multiple trees see the `inputPaths` property.
*
* This property is set just before the first rebuild and doesn't change afterwards.
*/
inputPath: string;
/... |
import { DynamicElementContainerDirective } from './dynamic-element-container.directive';
describe('DynamicElementContainerDirective', () => {
it('should create an instance', () => {
const directive = new DynamicElementContainerDirective(null);
expect(directive).toBeTruthy();
});
}); |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { ProductsDetailPage } from './products-detail';
import { ComponentsModule } from "../../../../components/components.module";
@NgModule({
declarations: [
ProductsDetailPage,
],
imports: [
Ionic... |
import $ from "cheerio";
import Jimp from "jimp";
import { Browser } from "puppeteer";
import commonScreenshotScript from "./screenshot-script.js.txt";
import fs from "fs";
import { basename, dirname, posix, resolve, sep } from "path";
import { promisify } from "util";
import { Example } from "../../types";
import { f... |
import * as React from 'react'
import marksy from 'marksy'
import styled from './styled-components'
import * as Prism from './prismjs.js'
export const viewport = {
isMobile: window.innerWidth <= 1024,
set() {
this.isMobile = window.innerWidth <= 1024
},
}
export const getBranch = () =>
location.host.split... |
/// <reference path="../../typings/main.d.ts" />
export type ParameterValueMap = { [parameterName: string]: any }
/**
* Exported API
*/
export interface Validate {
(parameters: Raml08Parser.NamedParameterMap): (check: ParameterValueMap ) => ValidationsResult
rule: (parameter: Raml08Parser.NamedParameter) =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.