text stringlengths 10 953k |
|---|
import type { CellPlugin } from '@react-page/editor';
import { defaultSettings } from './default/settings';
import type { VideoSettings } from './types/settings';
import type { VideoState } from './types/state';
const createPlugin: (settings: VideoSettings) => CellPlugin<VideoState> = (
settings
) => {
const mer... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
export type SupportedColor = 'red' | 'green' | 'yellow' | 'lightgrey';
export class MarkdownBuilder {
private text: string = '';
append(s: string) {
this.text += s;
}
appendLine(s?: string) {
if (s) {
this.text += s + '\n';
} else {
this.text += '\n';
... |
import { Map, Record, Stack, Seq, isCollection, Collection } from 'immutable';
export interface ComponentType { new(...args: any[]); }
export type StackLike<T = {}> = T[] | Stack<T>;
export abstract class AbstractRecord<TProps extends Object = {}> implements Record<TProps> {
abstract has(key: string): key is keyof... |
<TS language="te" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>చిరునామా లేదా లేబుల్ సవరించడానికి రైట్-క్లిక్ చేయండి</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { BASE_URL, GETBOARDSTATE } from '@/constants/api'
import { jsonFetch } from '@/shared/fetch'
import type { BitflyerPair } from '@/shared/types/currency'
import type { PublicAPI } from '@/shared/types/fetch'
import type { State, Health } from '@/shared/types'
type BoardStateOptions = {
productCode: BitflyerP... |
import React, { useState, useEffect } from 'react'
import styled from 'styled-components'
import PlayButton from './PlayButton'
import Scrubber from './Scrubber'
import { IAudioState, IAudioActions } from '../types'
import { primaryColor } from '~/utils/styling'
import { usePlaylistContext } from "~/contexts/playlistCo... |
import { StackNavigationProp } from '@react-navigation/stack'
import { BottomTabNavigationProp } from '@react-navigation/bottom-tabs'
import { SendRouteType } from '../../features/wallet/send/sendTypes'
export type MainTabType = 'Hotspots' | 'Wallet' | 'Notifications' | 'More'
export type TabBarIconType = {
focused... |
export enum StatusCode {
Continue = 100,
SwitchingProtocols = 101,
Ok = 200,
Created = 201,
Accepted = 202,
NonAuthoritativeInformation = 203,
NoContent = 204,
ResetContent = 205,
PartialContent = 206,
MultipleChoices = 300,
MovedPermanently = 301,
Found = 302,
SeeOth... |
import { B2BUser, ListModel, StateUtils } from '@spartacus/core';
import {
B2BUserActions,
OrgUnitActions,
UserGroupActions,
} from '../actions/index';
export const b2bUserInitialState: B2BUser | undefined = undefined;
export const b2bUsersInitialState: ListModel | undefined = undefined;
export function b2bUser... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common';
import { AppComponent } from './app.component';
import { ListMenuModule } from '../../modules/listmenu.module';
@NgModule({
declarations: [
AppComponent
... |
import React from "react";
import Avatar from "@mui/material/Avatar";
import Box from "@mui/material/Box";
import Grid from "@mui/material/Grid";
import Tooltip from "@mui/material/Tooltip";
import Typography from "@mui/material/Typography";
import { Theme } from "@mui/material/styles";
import makeStyles from '@mui/st... |
export declare namespace Cache {
interface ExportedItemMetadata {
DeclarePrefChars: string
noopsort: boolean
packages: string[]
}
interface ExportedItem {
itemID: number
entry: string // exported entry
exportNotes: boolean
useJournalAbbreviation: boolean
DOIandURL: boolean
a... |
import BelfastClient from "../../client";
import { Database } from "xen.db";
const Endpoint = {
GuildPrefix: (guildId: string) => `Database.${guildId}.Prefix`
}
export default class GuildSettings {
database: Database;
constructor(client: BelfastClient) {
this.database = client.database;
}
... |
<TS language="uk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Double-click to edit address or label</source>
<translation>Двічі клікніть на адресу чи назву для їх зміни</translation>
</message>
<message>
<source>Create a new address</source>
<t... |
import {getReadBuckets} from './getReadBuckets'
// These tests are skipped until we can use WASM modules in Jest
describe.skip('getReadBuckets', () => {
test('handles an empty script', () => {
expect(getReadBuckets('')).toEqual([])
})
test('can find buckets read from in a Flux query', () => {
const scri... |
import { Component, Input } from '@angular/core';
@Component({
selector: 'mc-team',
templateUrl: './team.component.html',
styleUrls: ['./team.component.scss']
})
export class TeamComponent{
@Input() data: any;
} |
import { Component, Inject, OnDestroy, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { RoleId, User } from '@auth/models';
import { UtilsService } from '@core/utils';
import { UserServi... |
export interface Example {
'with-dash': string;
without: string;
} |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class Kafka exte... |
/*-----------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*---------------------------------------------------------------------... |
import {Author} from "./author";
import {Comment} from "./comment";
import {Genre} from "./genre";
export class Book {
constructor(public name: string,
public originalName?: string,
public paperback?: number,
public authors?: Array<Author>,
public genres?: Arra... |
export { default } from './ResizeNodePoolDrawer'; |
import MApplication from './Application'
import MUser from './User'
import MDeveloper from './Developer'
export {
MApplication,
MUser,
MDeveloper
} |
import { DatePipe } from '@angular/common';
import { Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { CFAppState } from '../../../../../../../cloud-foundry/src/cf-app-state';
import {
CurrentUserPermissionsService,
} from '../../../../../../../core/src/core/permissions/current-user-pe... |
import { Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { UserComponent } from './user/user.component';
import { SignUpComponent } from './user/sign-up/sign-up.component';
import { SignInComponent } from './user/sign-in/sign-in.component';
import {AuthGuard} from './auth/... |
import React, { useState } from 'react';
import FlowBuilder, {
INode,
IRegisterNode,
IDisplayComponent,
buildFlatNodes,
} from 'react-flow-builder';
import ConfigForm from './ConfigForm';
import './index.css';
const StartNodeDisplay: React.FC<IDisplayComponent> = ({ node }) => {
return <div className="start... |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ProgressBarComponent} from './progress-bar.component';
@NgModule({
declarations: [
ProgressBarComponent
],
imports: [
CommonModule
],
exports: [
ProgressBarComponent
],
prov... |
import * as chrome from 'selenium-webdriver/chrome';
import * as remote from 'selenium-webdriver/remote';
import * as webdriver from 'selenium-webdriver';
async function TestChromeDriver() {
let driver: chrome.Driver = chrome.Driver.createSession();
driver = chrome.Driver.createSession(webdriver.Capabilities.c... |
/// <reference path="../../../../../typings/react/index.d.ts" />
"use strict";
import * as React from "react";
/**
* Props for a ConfirmationDialog component.
*/
export interface IConfirmationDialogProps {
/**
* The action to execute on confirm.
*/
action: () => void;
/**
* The confirmat... |
import {apiURL} from 'api';
import {ActiveType, NewActiveTypeProps} from 'types';
const getActiveType = (id: number) => apiURL.get('/api/active_types/' + id);
const getActiveTypes = (urlParams: string) =>
apiURL.get('/api/active_types' + urlParams);
const getFilteredActiveTypes = (urlParams: string) =>
apiURL.get(... |
import React from 'react';
import { IconsMinds } from '../../../../../icons';
import { colors } from '../../../../../theme';
import { Text } from './styles';
type Props = {
text?: string;
};
const Default: React.FC<Props> = ({ text }) => {
return (
<>
<Text>{text}</Text>
<IconsMinds name="right" ... |
export type Me = {
id: string;
email: string;
name: string;
};
export type Session = {
token: string;
};
export type ActualError = {
message: string;
path: string[];
extensions?: {
code?: string;
field?: string;
};
};
export type GraphQLError = {
response: {
errors: ActualError[];
};
... |
import calculateFinalResult from '../calculateFinalResult';
import createDiceRoller from '../createDiceRoller';
import { rollDice, roll, tokenize, tallyRolls } from '../index';
import { diceRollToken } from '../tokens';
import { RollConfigOptions } from '../util/rollConfig';
const customRoller = createDiceRoller();
c... |
import { applyMiddleware, compose, createStore, Store } from 'redux';
import createSagaMiddleware from 'redux-saga';
import { rootSaga } from './sagas';
import reducers from './reducers';
export let store: Store | undefined;
export function createAppStore() {
const sagaMiddleware = createSagaMiddleware();
st... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
loadChildren: () =>
import('./layout/layout.module').then((m) => m.LayoutModule),
},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModu... |
import { MTurk } from "../MTurk";
import { MTurkClient } from "../MTurkClient";
import {
ListReviewPolicyResultsForHITCommand,
ListReviewPolicyResultsForHITCommandInput,
ListReviewPolicyResultsForHITCommandOutput,
} from "../commands/ListReviewPolicyResultsForHITCommand";
import { MTurkPaginationConfiguration } f... |
export { GobyProvider } from "./goby_provider"; |
import * as Config from '@oclif/config';
import { expect, FancyTypes } from 'fancy-test';
import { command } from './command';
import { loadConfig } from './load-config';
export declare const test: FancyTypes.Base<FancyTypes.Context, {
skip: {
output: unknown;
args: [];
};
} & {
only: {
... |
import { defaultMutations } from 'vuex-easy-access'
function initialState () {
return {
}
}
export default {
// easy firestore config
firestorePath: 'playerCharacters/{name}',
firestoreRefType: 'doc',
moduleName: 'docModeWithPathVar',
statePropName: null,
// module
state: initialState(),
mutations... |
import { Hook, addCreationInfo, addModificationInfo, logApiRequest, authenticate } from '@app/core';
import { emailTemplateConfigRepository } from '@app/crm';
const emailTemplateConfigHook: Hook = {
before: {
all: [
authenticate,
logApiRequest,
async (context: any) => {
context.params.r... |
import {Navigation, NavigationIndicator} from '@/services/data/tuples/navigation-types';
import {useEffect, useState} from 'react';
import {useNavigationEditEventBus} from '../navigation-edit-event-bus';
import {NavigationEditEventTypes} from '../navigation-edit-event-bus-types';
import {IndicatorValues} from '../types... |
import { computed } from "vue"
import axios, { AxiosError, Method } from "axios"
import { BasicException, AllException } from "./exception"
export interface HttpInstance {
/**
* 发送一个请求到server。
*/
request<R, E extends BasicException>(config: RequestConfig<R>): Promise<Response<R, E>>
/**
* 创建... |
import * as FileSystem from 'expo-file-system';
const gifDir = FileSystem.cacheDirectory + 'giphy/';
const gifFileUri = (gifId: string) => gifDir + `gif_${gifId}_200.gif`;
// see https://developers.giphy.com/docs/api/schema#image-object
const gifUrl = (gifId: string) => `https://media1.giphy.com/media/${gifId}/200.gi... |
version https://git-lfs.github.com/spec/v1
oid sha256:5b721bf664827e44bb0361f6d0a2948d8668cca23fca1c1cf82b678b055e72a1
size 523392 |
import { Component, Host, h, Prop, State } from '@stencil/core'
import { onThemeChange, Theme } from '../../globalHelpers'
/**
* @slot - The default slot is meant for the text you want to display.
*/
@Component({
tag: 'cm-text',
styleUrl: 'cm-text.scss',
shadow: true,
})
export class CmText {
@Prop({ mutable: tr... |
/**
* Copyright 2015 CANAL+ Group
*
* 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 t... |
export * from "./form";
export * from "./text";
export * from "./colors";
export * from "./errors";
export * from "./objects";
export * from "./operations";
export * from "./operators";
export * from "./rotations";
export * from "./sizes";
export * from "./PDFPageOptions";
export * from "./PDFDocumentOptions";
export *... |
/**
*
* @param {any} obj source object
* @param {string} key key of the value
* @param {any} defaultValue default value if key doesn't exist
*/
export function GetValue(obj: any, key: string, defaultValue: any) {
if (!obj) {
return defaultValue;
}
if (typeof obj === 'string' || typeof obj === 'number' |... |
/// <reference path="../../built/pxtlib.d.ts"/>
import * as core from "./core";
import * as electron from "./electron";
import * as pkg from "./package";
import * as hidbridge from "./hidbridge";
import * as webusb from "./webusb";
import * as data from "./data";
import Cloud = pxt.Cloud;
function log(msg: string) {
... |
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
/** FillOption Object */
export interface FillOption {
/** Char to fill in */
char: string;
/** Side to fill in */
side: "left" | "right";
/** If strict, output string can't be greater than strLen*/
strict?: boolean;
/** char/stri... |
/**
* returns a promise which resolves after the animationend event
*
* @example
* ```
* el.classList.add("hide");
* await waitForAnimationEnd(el, "fade-out");
* el.parentElement.removeChild(el);
* // css:
* // .hide {
* // animation: fade-out 0.5s forwards;
* // }
* ```
*
* @param {HTMLEl... |
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* 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 app... |
import {Component} from '@angular/core';
/** @title Datepicker palette colors */
@Component({
selector: 'datepicker-color-example',
templateUrl: 'datepicker-color-example.html',
styleUrls: ['datepicker-color-example.css'],
})
export class DatepickerColorExample {} |
import tasks = require('azure-pipelines-task-lib/task');
import {ToolRunner} from 'azure-pipelines-task-lib/toolrunner';
import {TerraformAuthorizationCommandInitializer} from './terraform-commands';
import {BaseTerraformCommandHandler} from './base-terraform-command-handler';
import path = require('path');
import * as... |
export class ReadFile {
public static Read (dir, file, callBack: Function) {
// read file
const fs = require('fs')
const path = require('path')
const filePath = path.join(dir, file)
fs.readFile(filePath, { encoding: 'utf-8' }, function (err, data) {
if (!err) {
const input: string[]... |
import isPlainObject from 'lodash/isPlainObject';
import classNames from 'classnames';
import React, { FC, MouseEvent, useCallback, useEffect, useState } from 'react';
import ContextMenu from '../utils/context-menu';
import * as eventKeys from '../../common/event';
import { valueToString } from '../../common/utils/conv... |
/**
* @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 {Directive, TemplateRef, ViewContainerRef} from '@angular/core';
import {isBlank} from '../facade/lang';
/... |
import { getVersionUpgrade, minVersionBump, VersionUpgrade } from '@uniswap/token-lists'
import { useCallback, useEffect } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { useActiveWeb3React } from '../../hooks'
import { useFetchListCallback } from '../../hooks/useFetchListCallback'
import u... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Cacoin</source>
<translation>बिटकोइन के संबंध में</translation>
... |
import * as assert from "assert";
import * as fs from "fs";
import * as events from "events";
import events2 = require("events");
import * as zlib from "zlib";
import * as url from "url";
import * as util from "util";
import * as crypto from "crypto";
import * as tls from "tls";
import * as http from "http";
import * a... |
//find and replace
//CrudService
//ReportsObserver
//ReportsInterface
//../interface/crud.interface
//../observables/crud.observer
// if (doc.view === "Reports") {
// _id: '_design/Reports',
// key: 'view2',
import { ReportsInterface, items } from "./Reports.interface";
// import {ReportsInterface} from "../... |
<TS language="nl" version="2.1">
<context>
<name>AddNewAddressDialog</name>
<message>
<source>Dialog</source>
<translation>Dialoog</translation>
</message>
<message>
<source>Address</source>
<translation>Adres</translation>
</message>
<message>
<source>Pus... |
import { fireEvent, render, waitFor } from '@testing-library/react';
import React from 'react';
import ExpandableList from './ExpandableList';
const getItems = (itemsNumber: number): JSX.Element[] => {
return Array.from(Array(itemsNumber), (_, i) => <span data-testid="item" key={i}>{`item ${i}`}</span>);
};
descri... |
import { container } from './container';
// eslint-disable-next-line @typescript-eslint/typedef
export const configAdapter = { container }; |
#!/usr/bin/env node
import { ArgumentParser } from "argparse";
import fs from "./fs";
import { ParserConfig, TemplateParser } from "./template-parser";
const parser = new ArgumentParser({
description: "CLI template parser",
});
parser.add_argument("file", {
help: "filepath of file to parse",
});
parser.add_argum... |
import { Component } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { MdIconRegistry } from '@angular/material';
@Component({
selector: 'qs-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
constructor(private... |
import { JWT } from 'google-auth-library'
import { SERVICE_ACCOUNT_CONFIG } from '../config/config'
// config has access to environment variables set in root scripts/deploy.sh
// authorise application using JWT
const service = SERVICE_ACCOUNT_CONFIG
export const getAccessToken = async (
accessScopes: string[],
cal... |
import {
array,
boolean,
lazy,
object,
optional,
Schema,
string,
} from '../schema';
import { V1Money, v1MoneySchema } from './v1Money';
import { V1PaymentTax, v1PaymentTaxSchema } from './v1PaymentTax';
/** V1PaymentSurcharge */
export interface V1PaymentSurcharge {
/** The name of the surcharge. */
... |
/*
* adonis-ts-boilerplate
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { CliState } from '../contracts'
export const packages: {
[K in CliState['boilerplate']]: {
[pkg: ... |
import { PERMISSION } from '@aave/contract-helpers';
import { Trans } from '@lingui/macro';
import React from 'react';
import { ModalContextType, ModalType, useModalContext } from 'src/hooks/useModal';
import { BasicModal } from '../../primitives/BasicModal';
import { ModalWrapper } from '../FlowCommons/ModalWrapper';... |
import { initRtcChat, join } from '@/lib/rtcChat';
export default function StartVoiceChat() {
const onClickStartButton = async () => {
await initRtcChat();
const channelName = `channelName`;
await join(channelName);
};
return (
<div>
<h1>通話を開始する</h1>
<button type="button" onClick={... |
import * as React from 'react';
const SidebarSearchRtl20RegularIcon = () => {
return(
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 5.5C3 4.11929 4.11929 3 5.5 3H14.5C15.8807 3 17 4.11929 17 5.5V12.5C17 11.4284 16.6254 10.4442 16 9.67133V5.5C16 4.6... |
import { Component } from '@angular/core';
import { faGithub, faLinkedin } from '@fortawesome/free-brands-svg-icons';
@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss']
})
export class FooterComponent {
faGithub = faGithub;
faLinkedin = faLink... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SHUTTLECOIN</source>
<translation type="unfinished"/>
</message>
<message>
<location... |
import {
createContext,
ReactNode,
useEffect,
useState,
useContext,
} from "react";
import { api } from "../services/api";
interface GenreResponseProps {
id: number;
name: "action" | "comedy" | "documentary" | "drama" | "horror" | "family";
title: string;
}
interface GenereContextData {
selectedGenr... |
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from "@angular/core";
import { SystemRobotAccountsComponent } from './system-robot-accounts.component';
import { RobotService } from "../../../../../ng-swagger-gen/services/robot.service";
import { HttpHeaders,... |
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
import { Scalar, serialization, Tenso... |
export type CarrierServiceId = number;
export type CarrierServiceName = string;
export type CarrierServiceCallbackUrl = string;
export type CarrierServiceServiceDiscovery = boolean;
export type CarrierServiceActive = boolean;
export type CarrierServiceType = 'api';
export type CarrierServiceFormat = 'json';
export type... |
import { IMIDIEvent } from "./IMIDIEvent";
import * as Events from './MIDIEvents';
import { createMetaEventFromBytes } from "./MIDIMetaEventCreator";
import { fromVariableLengthValue } from "../utils/variable-length-value";
import { bufferToString } from "../utils/buffer-to-string";
const createNoteOffEventFromBytes ... |
export const PORT = parseInt(process.env.PORT, 10) || 3000;
export const HOST = process.env.HOST || 'localhost';
export const SCHEME = process.env.SCHEME || 'http';
export const MAXIMUM_LIMIT = parseInt(process.env.MAXIMUM_LIMIT, 10) || 1000;
export const DEFAULT_LIMIT = parseInt(process.env.DEFAULT_LIMIT, 10) || 100;... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lt" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bencoin</source>
<translation>Apie Bencoin</translation>
</messa... |
import type {
Artifacts,
BoundExperimentalHardhatNetworkMessageTraceHook,
EIP1193Provider,
EthereumProvider,
HardhatNetworkConfig,
HDAccountsUserConfig,
HttpNetworkAccountsUserConfig,
HttpNetworkConfig,
HttpNetworkUserConfig,
NetworkConfig,
ProjectPathsConfig,
} from "../../../types";
import { HAR... |
import { headers } from './config';
export const deepClone = (obj) => {
return JSON.parse(JSON.stringify(obj));
}
export const getRequestOption = (path: string, method: string = 'GET', contentLength?: number) => {
let headerArr = deepClone(headers);
if (contentLength) {
headerArr['Content-Length'] ... |
/**
* @license
* Copyright (C) 2017 The Android Open Source Project
*
* 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 require... |
import fs from "fs";
import path from "path";
import { DiagramTestScheduler } from "./diagram-test-scheduler";
import { filter, map } from "rxjs/operators";
import { DiagramSpecification } from "@swirly/types/dist";
import { renderMarbleDiagram } from "@swirly/renderer-node/dist";
type TitledDiagram = { title: string,... |
/// <reference path='fourslash.ts'/>
//// var /*1*/dx = "Foo";
////
//// module M { export var /*2*/dx; }
//// module M {
//// var z = 100;
//// export var y = { /*3*/dx, z };
//// }
//// M.y./*4*/dx;
goTo.marker('1');
verify.referencesCountIs(1);
goTo.marker('2');
verify.referencesCountIs(2);
goTo.marker('3'... |
/*
* 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 {
LogicMounter,
mockHttpValues,
mockKibanaValues,
mockFlashMes... |
import { XmlElement, ElementPositionsOnText } from "../../src/isomorphism/xmlParser";
import { attrOf } from "../../src/isomorphism/svgParser";
import * as assert from 'assert';
import { STYLE_NULLS } from "../../src/isomorphism/constants";
describe("svgParser", () => {
describe("attrOf", () => {
function ... |
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Injectable } from '@angular/core';
/**
* @name Taptic Engine
* @description
* An Ionic plugin to use Taptic Engine API on iPhone 7, 7 Plus or newer.
*
* @usage
* ```typescript
* import { TapticEngine } from '@ionic-native/taptic-e... |
import {
Body,
Controller,
Delete,
Get,
HttpCode,
HttpStatus,
Param,
ParseIntPipe,
Patch,
Post,
UseGuards,
} from '@nestjs/common';
import { GetUser } from '../auth/decorator';
import { JwtGuard } from '../auth/guard';
import { BookmarkService } from './bookmark.service';
import { CreateBookmarkDt... |
import { DirectionCurveFilled32 } from "../../";
export = DirectionCurveFilled32; |
export default class Input {
} |
// Type definitions for insight 0.4.3
// Project: https://github.com/yeoman/insight
// Definitions by: vvakame <http://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace insight {
interface IOptions {
trackingCode:string;
trackingProvider?:strin... |
<TS language="fr_FR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Faîtes un clic droit afin de modifier l'adresse ou l'étiquette</translation>
</message>
<message>
<source>Create a new address</... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
ServerBridge,
ServerQueryRequest,
ServerQueryResponse,
UserConfig,
VERSION,
} from "@internal/core";
import {
Diagn... |
import { promisify } from '@remax/shared';
export const getAppStub = getApp;
export const addCardAuth = promisify(my.addCardAuth);
export const addPhoneContact = promisify(my.addPhoneContact);
export const alert = promisify(my.alert);
export const canIUse = my.canIUse;
export const chooseAlipayContact = promisify(my.... |
declare const withFlickingMethods: (prototype: any, flickingName: string) => void;
export default withFlickingMethods; |
import { useState } from 'react'
import '../styles/tasklist.scss'
import { FiTrash, FiCheckSquare } from 'react-icons/fi'
interface Task {
id: number;
title: string;
isComplete: boolean;
}
export function TaskList() {
const [tasks, setTasks] = useState<Task[]>([]);
const [newTaskTitle, setNewTaskTitle] =... |
import { Component } from '@angular/core';
@Component({
selector: 'looped-cms-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
constructor() {
console.log('AppComponent');
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.