text stringlengths 10 953k |
|---|
import IArchive from '../interfaces/IArchive';
import IProtection from '../interfaces/IProtection';
const pickle = require('chromium-pickle-js');
export default class FileCrash implements IProtection {
private readonly target: string;
private readonly size: number;
constructor(target: string, size?: number) {
t... |
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to Github!');
});
}); |
/// <reference path="../../../Northwind/Order/OrderGrid.ts" />
namespace SimpleSence.BasicSamples {
@Serenity.Decorators.registerClass()
export class TreeGrid extends Northwind.OrderGrid {
private treeMixin: Serenity.TreeGridMixin<Northwind.OrderRow>;
constructor(container: JQuery) {
... |
import css from 'style-convert/macro'
import { PluginApi } from 'tailwindcss/plugin'
export const theme = {}
export const plugin = ({ theme, addComponents }: PluginApi) => {
const core = theme('rwCore')
const input = theme('rwInput')
addComponents(css`
.rw-listbox {
border-radius: ${input.borderRadiu... |
import {Drawer, makeStyles, useMediaQuery} from '@material-ui/core';
import React from 'react';
import {lightTheme as muiTheme} from '../material-ui/theme';
import SideBarContent from './SideBarContent';
const useStyles = makeStyles(theme => ({
drawer: {
width: 300,
[theme.breakpoints.up('lg')]: {
... |
import { Connection, createConnection, getRepository } from 'typeorm';
import { createRoles } from './CreateRoles';
import { createUsers, seedDefaultUsers } from './CreateUsers';
import { createMessages } from './CreateMessages'
import chalk from 'chalk';
import { RolesEntity } from '../../src/roles/roles.entity';
impo... |
export * from './navigator-model';
export * from './navigator-widget';
export * from './navigator-decorator-service'; |
declare module 'worker_threads' {
import { Context } from 'vm';
import EventEmitter = require('events');
import { Readable, Writable } from 'stream';
import { URL } from 'url';
import { FileHandle } from 'fs/promises';
import { EventLoopUtilityFunction } from 'perf_hooks';
const isMainThrea... |
export const theme = {
colors: {
green: "#1B873F",
pink: "#FF008E",
orange: "#FF7A29",
yellow: "#FFCD1E",
black1: "#09090A",
black2: "#121214",
black3: "#202024",
black4: "#29292E",
gray1: "#8D8D99",
gray2: "#C4C4CC",
gray3: "#E1E1E6",
white: "#FFFFFF",
},
fonts... |
/**
* Overrides and extends the Combat class to use an activation model instead of
* the standard ordered list of turns. {@link LancerCombat#activateCombatant}
* is added to the interface.
*/
export class LancerCombat extends Combat {
protected override _sortCombatants(
a: LancerCombatant,
b: LancerCombat... |
import * as React from 'react';
import { IconProps } from './types';
export const AlignTopIcon = ({ color = 'currentColor', ...props }: IconProps) => {
return (
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M1.5 0C1.22386 0 1 0.2... |
/**
* 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.
*
* @format
*/
import {Logger, Args} from '../fb-interfaces/Logger';
import StubLogger from '../utils/StubLogger';
import {Store} f... |
import { config } from '../config';
import sendmail from 'sendmail';
export interface MailAttachment {
type?: string | undefined;
filename?: string | undefined;
content?: any;
path?: string | undefined;
contentType?: string | undefined;
encoding?: string | undefined;
};
export class MailClient {
pri... |
import { Maybe, Nothing } from "../../../Data/Maybe"
import { fromDefault, makeLenses } from "../../../Data/Record"
import { RawActiveObject } from "../../Utilities/Raw/RawData"
export interface ActiveObject {
"@@name": "ActiveObject"
sid: Maybe<string | number>
sid2: Maybe<string | number>
sid3: Maybe<string ... |
class UeliCommand {
public executionArgument: string;
public name: string;
} |
import { IonicNativePlugin } from '@ionic-native/core';
export interface StripeCardTokenParams {
/**
* Card number
*/
number: string;
/**
* Expiry month
*/
expMonth: number;
/**
* Expiry year
*/
expYear: number;
/**
* CVC / CVV
*/
cvc?: string;
... |
import { LoggifyClass } from '../decorators/Loggify';
import logger from '../logger';
import { StorageService } from '../services/storage';
import { SpentHeightIndicators } from '../types/Coin';
import { BitcoinBlockType, BitcoinHeaderObj } from '../types/namespaces/Bitcoin';
import { TransformOptions } from '../types/... |
describe('Login', () => {
beforeEach(() => {
// localStorage isn't always cleaned up properly between tests
// see cypress issues #2573, #781, #5876
cy.visit('/');
cy.clearLocalStorage();
});
it('should load login page when login button clicked', () => {
cy.visit('/');
cy.title().should('... |
import { GuildMember, Role } from "discord.js";
import Bot from "structures/Bot";
import Event from "structures/Event";
export default class GuildMemberRoleRemoveEvent extends Event {
constructor(bot: Bot) {
super(bot, "guildMemberRoleRemove");
}
async execute(bot: Bot, member: GuildMember, role: Role) {
... |
/**
* This file is part of vue-boilerplate.
* @link : https://zhaiyiming.com/
* @author : Emil Zhai (root@derzh.com)
* @modifier : Emil Zhai (root@derzh.com)
* @copyright: Copyright (c) 2018 TINYMINS.
*/
import VueRouter, { Location, Route } from 'vue-router';
import { equals } from './util';
export inter... |
// Leaflet Marker-Cluster
import 'leaflet.markercluster/dist/MarkerCluster.css';
import 'leaflet.markercluster/dist/MarkerCluster.Default.css';
import 'leaflet.markercluster';
// Leaflet Heat-Map
import 'leaflet.heat';
import { GisPluginContext } from "../../pluginBase";
import { ShapeManagerInterface } from "../../sha... |
import React from 'react';
import { action } from '@storybook/addon-actions';
import { TagManager } from './tag-manager.component';
export default {
title: 'Components|Tag Manager',
parameters: {
component: TagManager,
componentSubtitle: 'Displays tag manager wizard',
},
};
export const basic = () => {... |
export class Parent {} |
import { Component, NgZone } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import {
Events,
ModalController,
NavController,
NavParams,
Platform
} from 'ionic-angular';
import * as _ from 'lodash';
import { Subscription } from 'rxjs';
// providers
import { AddressBookProvider }... |
import { MockedResponse } from '@apollo/client/testing';
import addDays from 'date-fns/addDays';
import subDays from 'date-fns/subDays';
import {
RegistrationDocument,
RegistrationFieldsFragment,
} from '../../../generated/graphql';
import {
fakeRegistration,
fakeRegistrations,
} from '../../../utils/mockDataU... |
<TS language="hi_IN" 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 React from 'react';
import { DateSelect } from '../DateSelect';
import { Nullable } from '../../typings/utility-types';
import { config } from './config';
import * as CDS from './CalendarDateShape';
import { MonthViewModel } from './MonthViewModel';
import { DayCellViewModel } from './DayCellViewModel';
import... |
import {Action, Enumerable} from "./internal"
export declare class WhereEnumerable<TSource> extends Enumerable<TSource> {
predicate: Action<TSource, boolean>
results: TSource[]
executed: boolean
constructor(soure: ArrayLike<TSource>, predicate: Action<TSource, boolean>)
asyncIterator(): AsyncGenerat... |
import {
MockERC20Instance,
MarginCalculatorInstance,
AddressBookInstance,
MockOracleInstance,
OtokenInstance,
ControllerInstance,
WhitelistInstance,
MarginPoolInstance,
OtokenFactoryInstance,
} from '../../build/types/truffle-types'
import {createTokenAmount, createValidExpiry} from '../utils'
import... |
import { IFormInput } from '../components/molecules/UserUpdateForm';
export interface IValidationErrors {
email: boolean;
firstName: boolean;
lastName: boolean;
}
const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
export function validateUserDetails(userDetails: IFormInpu... |
export const environment = {
production: true,
backednUrl: 'http://localhost:3000'
}; |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer } from "ethers";
import { Provider } from "@ethersproject/providers";
import type { ICompMint } from "../ICompMint";
export class ICompMint__factory {
static connect(
address: string,
signerO... |
/**
* Copyright 2017-2021, Voxel51, Inc.
*/
import { SELECTION_TEXT } from "../../constants";
import { BaseState } from "../../state";
import { BaseElement, Events } from "../base";
import { lookerThumbnailSelector, showSelector } from "./thumbnail.module.css";
import { makeCheckboxRow } from "./util";
export clas... |
import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {IsLoginGuard} from './guards/is-login.guard';
import {ChatComponent} from './components/chat/chat.component';
import {RoomsComponent} from './components/rooms/rooms.component';
import {NotFoundComponent} from './compon... |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect, Path } from "react-native-svg";
import { IconProps } from '../lib'
function Folder(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} {...props}><Rect width={256} height={256} fill="none" /><Path d="M2... |
/**
* @beta
*/
export interface TitleBuilder {
joinTitles(parentTitle: string, childTitle: string): string;
buildTitle(rootTitle: string, routeTitles: string[][]): string;
}
/**
* @beta
*/
export class DefaultTitleBuilder implements TitleBuilder {
public constructor(
private segmentSeparator = ... |
import {NgModule} from "@angular/core";
import {MlGrid, MlGridCell} from "./mlGrid";
@NgModule({declarations: [MlGrid, MlGridCell], exports: [MlGrid, MlGridCell]})
export class MlGridMod{} |
import 'rxjs';
import { NavigationActions } from 'react-navigation';
import { ActionsObservable } from 'redux-observable';
import { getRequestAction, actionTypes } from '../../src/framework';
import { routes } from '../../src/navigation';
import { navigate } from '../../src/epics/navigation';
function testNavigationAc... |
import { assert } from '../../../../../common/util/util.js';
import { GPUTest } from '../../../../gpu_test.js';
import { virtualMipSize } from '../../../../util/texture/base.js';
import { CheckContents } from '../texture_zero.spec.js';
function makeFullscreenVertexModule(device: GPUDevice) {
return device.createShad... |
import { LineAwesomeIcon } from './line-awesome-icon';
export declare const lasAlignCenter: LineAwesomeIcon; |
import React, { /*useCallback, useEffect, */useMemo, useState } from 'react';
import Page from '../../components/Page';
import PitImage from '../../assets/img/pit.png';
import { createGlobalStyle } from 'styled-components';
import { Route, Switch, useRouteMatch } from 'react-router-dom';
import { useWallet } from 'use-... |
import { SvelteComponentTyped } from 'svelte';
export type RadioGroupProps = {
selected?: number | null;
name?: string;
};
export default class RadioGroup extends SvelteComponentTyped<
RadioGroupProps,
{ change: CustomEvent<{ selected: number | null }> }
> {} |
/**
* Copyright 2016 Google Inc. 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 appli... |
/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* updated at 2021-12-12 16:59:59
* */
import { TdDatePickerProps } from './type';
import { PropType } from 'vue';
export default {
/** 是否允许输入日期 */
allowInput: Boolean,
/** 是否显示清楚按钮 */
clearable: Boolean,
/** 是否禁用组件 */
disabled: Boolean,
/** ... |
import { R4_CodeableConcept } from './R4_CodeableConcept'
import { R4_DeviceUseRequestPriorityEnum } from './R4_DeviceUseRequestPriorityEnum'
import { R4_DeviceUseRequestStatusEnum } from './R4_DeviceUseRequestStatusEnum'
import { R4_DomainResource } from './R4_DomainResource'
import { R4_Identifier } from './R4_Identi... |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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 { Expression, tabs } from ".";
export class DeleteExpression extends Expression {
type: string = "DeleteExpression"
constructor(readonly expr: Expression) {
super()
}
emit(indent: number) {
if (this.expr.isPropertyAccess()) {
return `${tabs(indent)}(setf ${this.expr.emitLeft()} (map-delete ${this.... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { expect, use } from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as getFreePort from 'get-port';
import * as net from 'net';
import * as path from 'path';
import { DebugClient } from 'vscode-... |
import React from "react";
import { UIElement, UIElementConfig, UiElementRenderProps } from "~/ui/UIElement";
import { Accordion, AccordionItem } from "@webiny/ui/Accordion";
interface GetterWithProps<TProps, T> {
(props: TProps): T;
}
interface Item<TProps = any> extends UIElementConfig {
id: string;
tit... |
/*
* Copyright 2020 InfAI (CC SES)
*
* 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 ... |
import Axios, { AxiosResponse } from "axios";
import * as jwt from "jsonwebtoken";
import { Auth } from "./Auth";
import { SupportedThemes } from "./Config";
describe("Auth", () => {
beforeEach(() => {
Axios.get = jest.fn();
});
afterEach(() => {
jest.resetAllMocks();
});
it("should get an URL with t... |
import type {Loader} from '@loaders.gl/loader-utils';
// __VERSION__ is injected by babel-plugin-version-inline
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
export const FlatGeobufLoader = {
id: 'flatgeobuf',
name: 'FlatGeobuf',... |
import React from 'dom-chef';
import select from 'select-dom';
import delegate from 'delegate-it';
import cache from 'webext-storage-cache';
import CheckIcon from 'octicon/check.svg';
import features from '../libs/features';
import * as pageDetect from 'github-page-detection';
import * as api from '../libs/api';
import... |
import { Expose } from 'class-transformer';
import { defaultMetadataStorage } from 'class-transformer/storage';
import { Length } from 'class-validator';
import { Server as HttpServer } from 'http';
import HttpStatusCodes from 'http-status-codes';
import qs from 'qs';
import { Get } from '../../src/decorator/Get';
impo... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import {
render,
settled,
click,
triggerKeyEvent,
find
} from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | Overlay', function (hooks) {
setupRenderingTest(hooks)... |
import { Injectable } from "@angular/core";
import { AppVersion } from "@ionic-native/app-version";
@Injectable()
export class MyEnv {
constructor(private appVersion: AppVersion) {}
getAppVersion() {
return this.appVersion.getVersionCode();
}
} |
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID,
appId: process.env.REACT_APP_APP_ID,
... |
import { InternalID, NSDatabase } from '@sqltools/types';
import Config from '@sqltools/util/config-manager';
import { getNameFromId } from '@sqltools/util/connection';
import { DISPLAY_NAME } from '@sqltools/util/constants';
import WebviewProvider from '@sqltools/vscode/webview-provider';
import vscode from 'vscode';
... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faListUl: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures... |
/**
* 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 {
Diagnostic,
DiagnosticAdvice,
DiagnosticLanguage,
DiagnosticSourceType,
Diagnostics,
DiagnosticsProcessor,
... |
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
import { AccountService } from 'app/core/auth/account.service';
/**
* @whatItDoes Conditionally includes an HTML element if current user has any
* of the authorities passed as the `expression`.
*
* @howToUse
* ```
* <some-elemen... |
export declare const DI_CLASS_ID: symbol;
export declare type DepMap = [string, string[], IDependency];
export declare const DI_MAP: DepMap[];
export interface IInjectable {
destruct(): void;
}
export interface IDependency {
instance: IInjectable;
clazz: any;
dependencies: any[];
count: number;
... |
import Chalk from 'chalk';
function prepareMessage(msg: unknown): string {
if (typeof msg === 'string') {
return msg;
}
if (msg instanceof Error) {
return `${msg.stack || ''}`;
}
return JSON.stringify(msg, null, '\t');
}
export function l(msg: string): void {
// eslint-disable-next-line no-console... |
<TS language="sk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Pravým tlačidlom myši upravte adresu alebo štítok</translation>
</message>
<message>
<source>Create a new address</source>
... |
export const xOctagon24F: string; |
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.7.7
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)... |
import Page from '@atlaskit/webdriver-runner/wd-wrapper';
import { getExampleUrl } from '@atlaskit/visual-regression/helper';
import { Props } from '../../ui/Renderer';
import { selectors } from './page-objects/_renderer';
// AFP-2532 TODO: Fix automatic suppressions below
// eslint-disable-next-line @atlassian/tangeri... |
import { Ctx } from "blitz"
export default async function logout(_: any, { session }: Ctx) {
return await session.$revoke()
} |
import db from '../data/configDB';
interface AdminProps {
name?: string;
email: string;
password: string;
}
async function add(admin: AdminProps) {
const [adminId] = await db('admin').insert(admin, 'id');
return findById(adminId);
};
function getBy(filter: any) {
return db('admin').where(filter);
}... |
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|--------------------------------------------------... |
import {Issue} from "@abaplint/core";
export interface IFormatter {
output(issues: Issue[], fileCount: number): string;
} |
import * as React from 'react';
import * as renderer from 'react-test-renderer';
import { mount } from 'enzyme';
import { resetIds } from '../../Utilities';
import { Pivot, PivotItem, IPivot } from './index';
describe('Pivot', () => {
beforeEach(() => {
// Resetting ids to create predictability in generated ids.... |
import React from 'react';
import createSvgIcon from './helpers/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 19h9.23L7 9.77z" opacity=".3" /><path d="M3.79 3.74L2.38 5.15l2.74 2.74-.12.12V19c0 1.1.9 2 2 2h10c.35 0 .68-.1.97-.26l1.88 1.88 1.41-1.41L3.79 3.74zM7 19V9.77L16.23 19H7z" /><pat... |
import {Entity, PrimaryGeneratedColumn, Column, CreateDateColumn} from 'typeorm';
@Entity("Playlist")
export class Playlist {
@PrimaryGeneratedColumn()
id: number;
@Column()
userId: string;
@Column()
name: string;
@Column()
genre: string;
@Column()
link: string;
@Column()
@CreateDateColumn... |
interface ab_end {
(err_object?: Object): void
}
const ab_end: ab_end = (err_object?: Object): void => {
process.on("exit", (): void => {
if (err_object.toString().indexOf('not found') != -1) {
console.error(err_object.toString().replace('Error: ', ''));
process.exit(1);
... |
import { animate, keyframes, style, transition, trigger } from '@angular/animations';
import { AfterViewInit, Component, Input, ViewChild, ViewEncapsulation } from '@angular/core';
import { PopoverDirective } from 'ngx-smart-popover';
import * as moment from 'moment';
import { setCookie, getCookie, hasCookie } from '.... |
import { Injectable, Input } from '@angular/core';
import { UUID } from 'angular2-uuid';
import { Http } from '@angular/http';
import { Employment, EmploymentState } from './employment';
import { CommandsService } from '../commands/commands.service';
import { NotificationsService } from 'angular2-notifications';
import... |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ReportRoutes} from './report-routing.module';
import {ReportComponent} from './report.component';
import {TripsService} from '@shared/services/trips.service';
import {TranslateModule} from '@ngx-translate/core';
import {Share... |
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient.ts";
import { ListSecurityProfilesForTargetRequest, ListSecurityProfilesForTargetResponse } from "../models/models_1.ts";
import {
deserializeAws_restJson1ListSecurityProfilesForTargetCommand,
serializeAws_restJson1ListSecu... |
export = {
extends: require.resolve('./base'),
rules: {
'vue-pug-sfc/no-deprecated-dollar-scopedslots-api': 'error',
'vue-pug-sfc/no-deprecated-filter': 'error',
'vue-pug-sfc/no-dupe-v-else-if': 'error',
'vue-pug-sfc/no-duplicate-attributes': 'error',
'vue-pug-sfc/no-template-key': 'error',
... |
import type { VNode } from "preact";
export interface DOMElementViewStyler {
readonly isDOMElementViewStyler: true;
connectedCallback(shadow: ShadowRoot): void;
render(): null | VNode<any>;
} |
import { Injectable } from '@nestjs/common';
import { CreateUserDto } from './dto/create-user.dto';
import User from './user.model';
@Injectable()
export class UserService {
async getUserByEmail(email: string): Promise<User> {
const user = User.query().findOne({
email,
});
return user;
}
asyn... |
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { TranslateService } from '@ngx-translate/core';
import { take } from 'rxjs/operators';
import { GrpcAuthService } from 'src/app/services/grpc-auth.service';
import { ToastService } from '... |
// SQL for kara management
export const selectAllMedias = `
SELECT mediafile,
mediasize,
pk_kid AS kid
FROM kara
WHERE repository != 'Staging'
`;
export const getAllKaras = (filterClauses: string[], orderClauses: string, limitClause: string, offsetClause: string, selectClause: string, joinClause: string, groupCl... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { CoursesService } from './courses.service';
import { Course } from './course';
@Component({
selector: 'courses',
styleUrls: ['./courses.component.css'],
templateUrl: './courses.component.html'
})
export c... |
import React, { useContext } from "react";
import VirtualList from "react-tiny-virtual-list";
import Text, { TEXT_SMALL } from "../../../ui/Text";
import { Endpoint } from "../../../types";
import { SearchContext } from "../../../providers/SearchProvider";
import "./styles.scss";
interface Props {
endpoints: Endpoin... |
//main entry point
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule); |
// Description: Rename Script
import { exists, selectScript } from "../core/utils.js"
let { command, filePath } = await selectScript(
`Which script do you want to rename?`
)
let newCommand = await arg({
placeholder: `Enter the new script name:`,
selected: filePath,
validate: exists,
})
let lenientCommand = ... |
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import {... |
import { Command, CompletionsCommand, HelpCommand } from "../../mod.ts";
import { EnumType } from "../../types/enum.ts";
const cmd = new Command()
.version("1.0.0")
.name("completions-test")
.description(`
Completions test.
Completions test.
Completions test.
`)
.meta("meta1", "value1")
... |
/**
* @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 {inspect} from 'util';
import {tsSourceMapBug29300Fixed} from '../../src/ngtsc/util/src/ts_source_map_bug_29... |
import {
defaults, find, isArray, isEmpty, isFunction, isNumber, intersection,
get, clone, upperFirst, isNull, keys, values, isString, filter, merge, isPlainObject,
concat, kebabCase, has, snakeCase, isRegExp, orderBy, remove, first, set, assign,
capitalize, isUndefined
} from 'lodash';
import {Component, OnIni... |
/**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* OpenAPI spec version: 1.1.1
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually... |
import { format } from "date-fns";
import { base32Encode } from "../utils";
export enum ReadableIdPrefix {
BSD = "BSD", // Bordereau de suivi des déchets dangereux "générique" (CERFA n° 12571*01)
DASRI = "DASRI", // Bordereau de suivi des déchets d'activités de soins à risque infectieux
HFC = "HFC", // Bordereau ... |
export interface CourseMetadata {
complete: boolean;
} |
import { Action } from '../unlockTypes'
import { IframePostOfficeWindow } from '../utils/postOffice'
import {
PostOfficeEvents,
PostOfficeService,
} from '../services/postOfficeService'
import { setError } from '../actions/error'
import { KEY_PURCHASE_INITIATED } from '../actions/user'
import { PostOffice } from '.... |
import { BaseSource } from "../BaseSource.js";
import { FormatQualifier } from "../../format/FormatQualifier.js";
import { ITransformationFromJson } from "../../../internal/models/IHasFromJson.js";
import { IFetchSourceModel } from "../../../internal/models/IFetchSourceModel.js";
/**
* @memberOf Qualifiers.Source
* @... |
import {WXHandler, TextWXMessage, WXRouter} from "../src";
import * as Express from "express";
import * as Path from "path";
let staticExample = WXHandler((req, res, next) => {
if (req.wx instanceof TextWXMessage && req.wx.text === "testStatic") res.wxText("resultStatic")
else next()
})
staticExample.priority =... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EventSubscribeComponent } from './event-subscribe.component';
describe('EventSubscribeComponent', () => {
let component: EventSubscribeComponent;
let fixture: ComponentFixture<EventSubscribeComponent>;
beforeEach(async () => {
awai... |
import React from "react"
import { useTranslation } from "react-i18next"
import Typography from "@material-ui/core/Typography"
import { Withdrawal } from "@satoshipay/stellar-transfer"
import { RefStateObject } from "~Generic/hooks/userinterface"
import { ActionButton, DialogActionsBox } from "~Generic/components/Dialo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.