text stringlengths 10 953k |
|---|
require("./movie-review.css");
export * from './movie-review.directive';
export * from './movie-review.controller'; |
import { DateAdapterBase } from '@rschedule/core';
import { Rule } from '@rschedule/core/generators';
import '@rschedule/core/rules/ICAL_RULES';
import { ICAL_RULES } from '@rschedule/core/rules/ICAL_RULES';
import { MomentDateAdapter } from '@rschedule/moment-date-adapter';
declare module '@rschedule/core/DateAdapter... |
import { Component, Input, Output, OnInit, EventEmitter, OnDestroy } from '@angular/core';
import 'rxjs/add/operator/delay';
import {TranslateService} from '@ngx-translate/core';
import {AlertComponent, ErrorHandlerComponent} from 'shared/components';
import {RestService} from 'core';
import {FilterModel} from 'shared/... |
import { Bid, BidWithSeat } from "./bid";
import { Card } from "./card";
import { Contract } from "./contract";
import { Trick } from "./trick";
import * as shuffle from 'shuffle-array';
import { assert } from "console";
import { Auction } from "./auction";
import { Hand } from "./hand";
import { RandomGenerator } from... |
import React, { ReactElement } from 'react';
import {
Box,
Button,
Divider,
Flex,
HStack,
SimpleGrid,
VStack,
} from '@chakra-ui/react';
import NextLink from 'next/link';
import {
UseFormRegister,
FieldValues,
DeepMap,
FieldError,
UseFormHandleSubmit,
} from 'react-hook-form';
import { FiUser, ... |
import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { TestBed, ComponentFixtureAutoDetect, ComponentFixture } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { ActivatedRoute } from '@angular/r... |
export { Sentrei } from "./Sentrei"; |
import {Injectable, OnInit} from '@angular/core';
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
import {User} from '../model/User';
import {AuthService} from './auth.service';
import {Observable} from '../../../node_modules/rxjs';
import {AppComponent} from '../app.component';
import {Link} ... |
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{ path: '', redirectTo: 'splashscreen', pathMatch: 'full' },
{ path: 'splashscreen', loadChildren: () => import('./pages/splashscreen/splashscreen.module').then( m => m.Spla... |
import { Service, SequelizeServiceOptions } from 'feathers-sequelize'
import { Application } from '../../../declarations'
import { PartyUser as PartyUserDataType } from '@xrengine/common/src/interfaces/PartyUser'
/**
* A class for Party user service
*
* @author Vyacheslav Solovjov
*/
export class PartyUser<T = Part... |
import { injectable } from "inversify";
import { DB } from "../apiBase/db";
import { ServiceTime } from "../models";
@injectable()
export class ServiceTimeRepository {
public async save(serviceTime: ServiceTime) {
if (serviceTime.id > 0) return this.update(serviceTime); else return this.create(serviceTime... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { expect } from 'chai';
import { RestorablePool } from '@jupyterlab/coreutils';
import { signalToPromise } from '@jupyterlab/testutils';
import { IObservableDisposable } from '@lumino/disposable';
import {... |
import { patterns, capitalize } from "../framer-base";
import { ControlType, PropertyControls } from "framer";
export function patternControls(
defaultPattern: string = patterns[0],
title: boolean = true,
hidden: string | null = null
): PropertyControls {
return {
pattern: {
type: ControlType.Enum,
... |
import React, {useState} from 'react';
import Ionicons from 'react-native-vector-icons/Ionicons';
import {
addHistory,
removeCartProduct,
RootState,
saveUser,
} from '../../../../redux';
import {Txt, Btn, Container, Header, Logo, Img, HeaderBtn} from '../Elements';
import {ActivityIndicator, Switch, ToastAndroi... |
import { unlink } from 'fs';
export async function deleteFile(path: string): Promise<string> {
return new Promise((resolve, reject) => {
unlink(path, (err) => {
if (err) reject(err);
resolve('Deleted');
});
});
} |
import React from 'react';
import { Meta, Story } from '@storybook/react';
import {
Container as ContainerComponent,
ContainerProps,
Row,
Col,
} from './index';
import { Center } from '../general';
export default {
title: 'Components/Layout',
component: ContainerComponent,
argTypes: {},
parameters: {
... |
import EventEmitter from "eventemitter3";
/**
* A cancellation token loosely based on [the proposal](https://github.com/tc39/proposal-cancellation/blob/master/stage0/README.md).
*/
export declare class CancelToken extends EventEmitter<{}> {
private _isCanceled;
private _error;
get isCanceled(): boolean;
... |
import { NativeApplicationDescriptor, utils as coreUtils } from 'ern-core'
import { performCodePushPatch } from 'ern-orchestrator'
import {
epilog,
logErrorAndExitIfNotSatisfied,
askUserForCodePushDeploymentName,
askUserToChooseANapDescriptorFromCauldron,
} from '../../lib'
import inquirer from 'inquirer'
impor... |
export function a(): string {
return ''
} |
/*
* 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 { schema, TypeOf } from '@kbn/config-schema';
import {
IRouter,
Re... |
const crlf = /\r\n/g;
export function normalizeNewLine(str: string) {
if (crlf.test(str)) return str.replace(crlf, '\n');
return str;
} |
/**
* 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... |
import { Controller, } from '@nestjs/common';
@Controller()
export class AppController {} |
import { AxiosPromise, AxiosRequestConfig, AxiosResponse } from '../type'
import xhr from './xhr'
import { buildURL, combineURL, isAbsoluteURL } from '../helpers/url'
import { flattenHeaders } from '../helpers/headers'
import transform from './transform'
export default function dispatchRequest(config: AxiosRequestConf... |
import API from '../../../APICore';
import {New} from '../../BaseInterfaces';
import {ActivityOperation} from '../../Enums';
import {ScheduleModel} from '../../SecurityCache';
import Sources from '../Sources';
import SourcesFields from '../SourcesFields/SourcesFields';
import {CreateSourceModel, RawSourceConfig} from '... |
import { createSelector } from "@ngrx/store";
import * as fromFeature from "../reducers";
import * as fromReducers from "../reducers/todo.reducer";
export const getTodoState = createSelector(
fromFeature.getProductsState,
(state: fromFeature.ProductsState) => state.todos
);
export const getTodosEntities = createS... |
describe('Application Test', () => {
it('# should create testing module correctly', () => {});
}); |
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
import { State } from '@clr/angular';
import { ConfirmationMessage } from '../../../shared/confirmation-dialog/confirmation-message';
import { ConfirmationButtons, ConfirmationState, ConfirmationTargets, ResourcesActio... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faEdit: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures: ... |
import { OffsetList } from './../../shared/offset-list';
export declare const OFFSETS: OffsetList;
export * from './airport/runway';
export * from './airport/pushback';
export * from './environment/environment';
export * from './environment/weather';
export * from './position-attitude/position-attitude';
export * from ... |
import { useHistory } from 'react-router-dom';
import Routes from '../../models/Routes';
export default function useComingSoonRedirect() {
const history = useHistory();
history.replace(Routes.comingSoon);
return null;
} |
import axios from "axios";
import { YoutubeVideo, YoutubeVideoFormat } from "../structures/YoutubeVideo";
import { Util } from "../util/Util";
export async function getVideoInfo(urlOrId: string, getPlaylistFormats: boolean = false) {
const id = Util.getId(urlOrId)
const request = await axios.get<string>(`${Ut... |
import { float, formid, ubyte, uint32, ushort } from "../../types";
import { ESMBuffer } from "../../util";
import CommonSubrecordFactory from "./common/CommonSubrecordFactory";
import { Subrecord } from "./common/Subrecord";
import { Record } from "./Record";
/*
Expected fields:
EDID
FULL
MODL
MODB
ACBS
SNAM
INAM
RNA... |
import { render } from '@testing-library/react';
import * as React from 'react';
import { wrapWithTheme } from 'src/utilities/testHelpers';
import {
AuthenticationSettings,
CombinedProps,
} from './AuthenticationSettings';
const ALLOWLIST = 'allowlisting-form';
const props: CombinedProps = {
loading: false,
... |
import { GetterTree } from 'vuex';
import State from './state';
// GetterTree<[current state], [root state]>
const getters: GetterTree<State, State> = {
/*
* It's just color with new name.
* Example for using getters.
*/
colour(state: State): string {
return state.color;
}
};
export default getters; |
import * as React from 'react';
function SvgSnowFlake(
props: React.SVGProps<SVGSVGElement>,
svgRef?: React.Ref<SVGSVGElement>
) {
return (
<svg
width="1.5em"
height="1.5em"
strokeWidth={1.5}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
color="c... |
interface ResultProps {
result: string;
}
const Result: React.FC<ResultProps> = ({result}) => {
return (
<>
<h3>Step 3: Click an above choice to play against the computer with the /play endpoint</h3>
<div id="results">{result}</div>
</>
);
};
export default Result; |
// Generated from grammar/clickhouse/ClickHouseParser.g4 by ANTLR 4.9.0-SNAPSHOT
import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
import { ExistsDatabaseStmtContext } from "./ClickHouseParser";
import { ExistsTableStmtContext } from "./ClickHouseParser";
import { ColumnExprCaseContext } from "./Cli... |
import { ElastiCache } from "../ElastiCache";
import { ElastiCacheClient } from "../ElastiCacheClient";
import {
DescribeReservedCacheNodesOfferingsCommand,
DescribeReservedCacheNodesOfferingsCommandInput,
DescribeReservedCacheNodesOfferingsCommandOutput,
} from "../commands/DescribeReservedCacheNodesOfferingsCom... |
import * as React from 'react';
import { Button, Flex } from 'rebass';
import { Icon } from '@iconify/react';
import { v4 as uuidv4 } from 'uuid';
import uniqueId from 'lodash.uniqueid';
import { Tooltip } from 'react-tippy';
import diceD4Outline from '@iconify/icons-mdi/dice-d4-outline';
import diceD6Outline from '@ic... |
export declare function useTime(): import(".").MotionValue<number>; |
/**
* This file auto-generated with the `scripts/bootstrap-icons.js` script.
*/
import { Icon } from '../components/svg-icon';
// https://github.com/twbs/icons/blob/main/icons/cart-check.svg
export const cartCheck: Icon = {
name: 'cart-check',
width: 16,
height: 16,
viewBox: '0 0 16 16',
children: (
<>... |
// Shared Libraries
import { Util, Context, FSM, LogAbstract, LogClient } from '@dra2020/baseclient';
import { Storage, S3, DB, DBDynamo, Lambda } from '@dra2020/baseserver';
// Local libraries
import * as APIManager from './serversession';
import * as UM from './users';
import * as SM from './sessionmanager';
import ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Page500Component } from './page500.component';
describe('Page500Component', () => {
let component: Page500Component;
let fixture: ComponentFixture<Page500Component>;
beforeEach(async(() => {
TestBed.configureTestin... |
export { default as PlayForWork } from './utils/createThemedIcon'; |
import { expect, describe, it } from '@jest/globals';
import { HistoryDialogComponent } from './history-dialog.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { SharedModule } from 'app/modules/shared/shared.module';
import { NzModalComponent } from 'ng-zorro-antd';
im... |
/**
*
*
* OpenAPI spec version: 20190101
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
export interface IBlogPostBySlugApiResponse {
posts: IBlogPostBySlug[];
}
export interface IBlogPostBySlug {
id: string;
title: string;
subtitle: string;
description: string;
date: string;
slug: string;
unsplash: IBlogPostBySlugUnsplash;
content: string;
featured_image: IBlogPostBySlugFeaturedImage... |
export class StringHelper {
public static isNumeric(value: string): boolean {
return /^-?[\d,]+\.?\d*$/.test(value) && typeof value !== 'object';
}
public static toNumber(value: string): string {
return value.replace(/[^\d-\.]/g, '');
}
} |
import store from 'stores';
import { showNotification } from 'stores/notifications';
const handleFetchError = (err: Error): Promise<any> => {
// eslint-disable-next-line
console.error(err);
store.dispatch(
showNotification({
message: '⚠️ There was an error while fetching response.',
... |
import React from "react"
import { Constructor, Message, SendComponentFactory, ReceiveHandlerMap } from "../Runtime"
import { S31 } from "./S31"
import { S34 } from "./S34"
import { S32 } from "./S32"
import { S33 } from "./S33"
import { Roles, StateId, Labels } from "../Constants"
import { Coordinate as Point } from "... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { dbConfig } from './database/db-config';
import { HealthModule } from './health/health.module';
@Module({
imports: [TypeOrmModule.forRoot(dbConfig), HealthModule],
providers: [],
exports: [],
})
export class CoreMod... |
import {Test, TestingModule} from '@nestjs/testing';
import {PartieService} from './partie.service';
import providerPlateauMemoryTest from "../../../test/mock/plateau/PlateauMemoryTest";
import providerGuildMemoryTest from "../../../test/mock/guild/GuildMemoryTest";
import providerCaseMemoryTest from "../../../test/moc... |
/*!
* @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... |
interface StatusWithMessage {
status: boolean,
message: string
} |
/*!
* Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required ... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import * as nls from 'vscode-nls';
import Dap from './api';
import { ProtocolError } from './protocolError';
const localize = nls.loadMe... |
/* eslint-disable */
import { ATTRIBUTE } from "../InformationFramework/ATTRIBUTE.oca";
import {
userApplications /* IMPORTED_SHORT_ENUMERATION_ITEM */,
} from "../InformationFramework/AttributeUsage.ta";
import { id_not_multipleMatchingLocalities } from "../SelectedAttributeTypes/id-not-multipleMatchingLocalities.... |
import {ICommand} from 'src/Application/ICommand';
import {User} from 'src/Domain/HumanResource/User/User.entity';
import {EventType} from 'src/Domain/FairCalendar/Event.entity';
export class UpdateEventCommand implements ICommand {
constructor(
public readonly id: string,
public readonly user: User,
pub... |
import {CodeGeneratorRequest, FileDescriptorProto, FileDescriptorSet} from "@protobuf-ts/plugin-framework";
import {join, normalize} from "path";
import {existsSync, readFileSync} from "fs";
const fixtureDescriptorSetPath = normalize(join(__dirname, '../../../test-fixtures/all.descriptorset'));
let fixtureDescriptorS... |
import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';
const collectionPath = path.join(__dirname, '../collection.json');
describe('layout-lazy-m', () => {
it('works', async () => {
const runner = new SchematicTe... |
import { Options } from "yargs";
import colors from "colors";
import { ProcessStdOut, hashText, hashFile, iterateFiles } from "../../index";
export const command = "hash [text]";
export const desc = "计算hash";
type OptionType = {
text?: string
file?: string
directory?: string
algorithm?: string
}
export const ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { Body, Controller, Get, Post, Query, Headers, Patch, Param, ParseIntPipe, UsePipes} from "@nestjs/common";
import { ApiTags, ApiQuery, ApiBearerAuth, ApiResponse, ApiBody, ApiParam } from "@nestjs/swagger";
import { UserService } from './user.service'
import { User } from './class/user'
import {CusParseIntPipe}... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<TS language="es_MX" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar tu dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
*This is auto generated from the ControlManifest.Input.xml file
*/
// Define IInputs and IOutputs Type. They should match with ControlManifest.
export interface IInputs {
value: ComponentFramework.PropertyTypes.NumberProperty;
}
export interface IOutputs {
value?: number;
} |
import { Component, Inject, OnInit } from '@angular/core';
import { Meta } from '@angular/platform-browser';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { Customizations, CustomizationsMetadata } from '../../../core/customizations.types';... |
// WARNING: changing this to `export default` will break the mock and be incredibly hard to debug. Ask me how I know.
const _analytics = jest.requireActual('../analytics');
_analytics.trackSegmentEvent = jest.fn();
module.exports = _analytics; |
/**
* Get/set configuration values.
*/
export interface Schema {
/**
* Get/set the value in the global configuration (in your home directory).
*/
global?: boolean;
/**
* Shows a help message. You can pass the format as a value.
*/
help?: HelpUnion;
/**
* The path to the va... |
/*******************************************************************************
Test for utility functions
Copyright:
Copyright (c) 2020-2021 BOSAGORA Foundation
All rights reserved.
License:
MIT License. See LICENSE for details.
*************************************************... |
import { Component, OnInit } from '@angular/core';
import { UsuariosService } from './usuarios.service';
import { UsuarioModel } from './usuarios.model';
import { NgbModal, ModalDismissReasons } from '@ng-bootstrap/ng-bootstrap';
import { LayoutService } from '../layout.service';
import {Buffer} from 'buffer';
import... |
export * from './controller';
export * from './dao'; |
import React from "react";
import classnames from "classnames";
import "./scss/index.scss";
type ButtonType = "submit" | "reset" | "button";
export type ButtonProps = {
color?: "yellow" | "blue" | "white" | "black";
variant?: "outlined" | "contained";
icon?: React.ReactElement;
fixed?: boolean;
secondary?: b... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { expect } from 'chai';
import * as typemoq from 'typemoq';
import { BaseDiagnosticsService } from '../../../../client/application/diagnostics/base';
import {
InvalidMacPythonInterpreterDiagnostic,... |
import { createReceiveGameMessageReducer } from '../../store/actionHelpers';
export const Name = "splat";
export interface SplatState {
count: number,
}
export const splatReducer = createReceiveGameMessageReducer<string, SplatState>(
Name,
{ count: 0 },
(state, { payload: { payload: result } }) => ... |
import * as vscode from 'vscode' ;
import { Line } from './Line' ;
import { extendToLength } from './string-utils' ;
import * as XRegExp from 'xregexp' ;
type Range = {
range : Array<Array<number>> ;
alignSpec : string[] ;
};
export class RxgBlock {... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, Input, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
import { NgxSpinnerService } from 'ngx-spinner';
import { OcButtonType } from '../model/components-basic.model';
/**
* Special button component. Contains text and spinner.
* Can be different type {@link OcButtonType}.
*/
@Compo... |
import { observable } from 'mobx';
import { observer } from 'mobx-react';
import React from 'react';
import injectSheet from 'react-jss';
import { Button, Input } from '@meetfranz/forms';
import { classes } from 'istanbul-lib-coverage';
import { Classes } from 'jss';
import { storiesOf } from '../stores/stories';
con... |
import { createGlobalStyle, css } from 'styled-components';
import { objectKeys } from '@brix-ui/utils/functions';
const Palette = createGlobalStyle`
:root {
${({ theme }) => {
const { palette } = theme;
return objectKeys(palette).reduce((variables, key) => {
return css`
${varia... |
import React, { FC, useState } from 'react';
import { About, Splash } from 'components/Home';
import { Nav } from 'components/navigation';
import styles from 'scss/index.module.scss';
import { BaseTemplate } from 'templates';
const Index: FC = () => {
const [isActiveNav, setIsActiveNav] = useState(false);
const ... |
import { Component, NgModule } from '@angular/core'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { BrowserModule } from '@angular/platform-browser'
import { ExtAngularModernModule } from './ext-angular-modern-test/ext-angular-modern.module'
//import { ExtAngularModernModule } f... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { PopoverController, NavController } from '@ionic/angular';
import { AspirasiService } from '../../services/aspirasi.service';
import { Aspirasi } from '../../interfaces/aspirasi';
import { MenuNavbarAspirasiComp... |
export const c_toolbar__item_spacer: {
"name": "--pf-c-toolbar__item--spacer",
"value": "1rem",
"var": "var(--pf-c-toolbar__item--spacer)"
};
export default c_toolbar__item_spacer; |
export * from './Notifications';
export * from './NotificationService'; |
/**
* @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
*/
export * from './protractor-element';
export * from './protractor-harness-environment'; |
import { incrementMockedDate } from "@labelflow/dev-utils/mockdate";
import { gql } from "@apollo/client";
import { LabelCreateInput, LabelType } from "@labelflow/graphql-types";
import { probeImage } from "@labelflow/common-resolvers/src/utils/probe-image";
import { client } from "../../apollo-client/schema-client";
i... |
import { Component, OnInit, OnDestroy, ComponentFactoryResolver, Injector } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import * as moment from 'moment-timezone';
import { Actions } from 'app/shared/store';
import { WebAppSettingDataService, NewUrlStateNotificationService, AnalyticsSe... |
import { compare, genSalt, hash } from 'bcrypt';
import { Group } from '../groups/group.entity';
import { Language } from '../languages/language.entity';
import { Listing } from '../listings/listing.entity';
import {
BaseEntity,
BeforeInsert,
Column,
Entity,
JoinTable,
ManyToMany,
OneToMany,
PrimaryGene... |
import { BroadcastChannelCommunication } from './broadcast-channel-communication';
import { ChannelCommunication } from './channel-communication';
import { ChannelCommunicationFactory } from './channel-communication-factory';
import { LocalstorageChannelCommunication } from './localstorage-channel-communication';
expo... |
import { IGroup, IShape } from '@antv/g-base';
import { registerNode, Item, NodeConfig, ShapeStyle, BaseGlobal as Global } from '@antv/g6-core';
import { mix } from '@antv/util';
/**
* 基本的椭圆,可以添加文本,默认文本居中
*/
registerNode(
'ellipse',
{
// 自定义节点时的配置
options: {
size: [80, 40],
style: {
x... |
interface CmsWidgetProps {
value: string;
field: any;
forId: string;
classNameWrapper: string;
onChange: (value: string) => void;
}
export default CmsWidgetProps; |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// ... |
import React, { Fragment } from 'react';
const SEO = (props) => {
return (
<Fragment>
<h4> This is SEO </h4>
</Fragment>
);
};
export default SEO; |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'moviesshow-app';
} |
// Primitives: number, string, boolean
// More complex types: arrays, objects
// Function types, parameters
// Primitives
let age: number;
age = 12;
let userName: string | string[];
userName = 'Max';
let isInstructor: boolean;
isInstructor = true;
// More complex types
let hobbies: string [];
hobbies = ['Sports',... |
// Add images to header and footer
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import { Document, Header, Media, Packer, Paragraph } from "../build";
const doc = new Document();
const image = Media.addImage({
document: doc,
data: fs.readFileSync("./demo/images... |
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const requ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.