text stringlengths 10 953k |
|---|
export * from './guid'; |
import child_process = require("child_process");
import BuildImpl, { BuildProps } from "../parallelBuilder/BuildImpl";
import DeployImpl, { DeploymentMode, DeployProps, DeploymentResult } from "../deploy/DeployImpl";
import ArtifactGenerator from "@dxatscale/sfpowerscripts.core/lib/generators/ArtifactGenerator";
import... |
import { google } from 'googleapis'
const auth = new google.auth.OAuth2({
clientId: process.env.PROXY_CLIENT_ID,
clientSecret: process.env.PROXY_CLIENT_SECRET,
redirectUri: "https://developers.google.com/oauthplayground"
})
auth.setCredentials({
refresh_token: process.env.PROXY_REFRESH_TOKEN
})
google.option... |
/**
* ORY Hydra
* Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
*
* The version of the OpenAPI document: v1.7.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit ... |
import {
getServiceNamespace,
InterfaceType,
ModelTypeProperty,
NamespaceType,
OperationType,
Program,
setDecoratorNamespace,
Type,
} from "@cadl-lang/compiler";
import { reportDiagnostic } from "./diagnostics.js";
import {
getHeaderFieldName,
getOperationVerb,
getPathParamName,
getQueryParamNam... |
import styled from 'styled-components';
import { theme } from '@utils';
export const StyledSelectOptionContainer = styled.div`
// Style
background: ${theme.cvar('colorBackground')};
box-shadow: ${theme.cvar('shadowLarge')};
border-radius: ${theme.cvar('layoutRadius')};
// Layout
position: absolute;
wid... |
import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
@Component({
selector: 'pinterest-button-follow',
templateUrl: './pinterest-button-follow.component.html',
styleUrls: ['./pinterest-button-follow.component.css']
})
export class PinterestButtonFollowComponent implements OnInit {
... |
import styled from 'styled-components';
import { COLORS } from 'common';
import { TeamList } from 'screens/About/About';
import { COLOR_MAP } from 'common/colors';
export const Wrapper = styled.div`
background-color: white;
min-height: calc(100vh - 64px);
`;
export const Content = styled.div`
max-width: 900px;
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
import Card from '@material-ui/core/Card'
import CardContent from... |
import { RuleType, TokenType } from './Parser';
import IToken from './IToken';
export default class AstNode {
readonly ruleType: RuleType;
private readonly subItems;
constructor(ruleType: RuleType);
add(type: any, obj: any): void;
getSingle(ruleType: RuleType): any;
getItems(ruleType: RuleType):... |
import { Component, Input } from '@angular/core';
@Component({
selector: 'md-flat-button',
styleUrls: [
'./md-flat-button.component.scss'
],
templateUrl: './md-flat-button.component.pug'
})
export class MdFlatButtonComponent {
@Input() allowLowercase: boolean;
@Input() text: string;
@Input() isDar... |
import { Controller } from "@nestjs/common";
@Controller('/common')
export class CommonController {
/**
* 生成随机字符串
* @param length 随机字符串长度
*/
randomString(length: number): string {
return '';
}
} |
import AbTesting from './AbTesting'
import FeatureFlagging from './FeatureFlagging'
export {
AbTesting,
FeatureFlagging
} |
import { me } from 'appbit';
console.log('Application ID: ' + me.applicationId);
console.log('Build ID: ' + me.buildId);
if (!me.permissions.granted('access_heart_rate')) {
console.log("We're not allowed to read a users' heart rate!");
}
const saveSettings = () => console.log('Settings saved');
me.addEventListener(... |
import { assert, UnitTest } from '@ephox/bedrock-client';
import { Arr, FutureResult, Result } from '@ephox/katamari';
import { DataType } from 'ephox/jax/core/DataType';
import { HttpError } from 'ephox/jax/core/HttpError';
import * as HttpJwt from 'ephox/jax/core/HttpJwt';
import { JwtTokenFactory } from 'ephox/jax/c... |
import { MdiReactIconComponentType } from './dist/typings';
declare const StopCircleIcon: MdiReactIconComponentType;
export default StopCircleIcon; |
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
import { ListModelsInput, ListModelsOutput } from "../models/models_1";
import {
deserializeAws_json1_1ListModelsCommand,
serializeAws_json1_1ListModelsCommand,
} from "../protocols/Aws_json1_1";
import { getS... |
import * as React from "react"
import { InfoCircle } from "@styled-icons/bootstrap/"
export type TooltipProps = {
children: string
}
const Tooltip: React.FC<TooltipProps> = ({ children }) => {
return (
<div className="relative">
<div className="absolute mx-2 w-4 h-4 group">
<span className="fle... |
/*
* Copyright 2021 Salto Labs 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 applicable ... |
/**
* @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 {DialogModule} from '@angular/cdk/dialog';
import {OverlayModule} from '@angular/cdk/overlay';
import {PortalM... |
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import nepaldata = Authentication.nepaldata;
import hospitals = Authentication.hospitals;
@Injectable()
export class DataService {
sharedData: hospitals[];
private messageSource = new BehaviorSubject('default message');
currentMes... |
import { Output } from '../output';
export interface LoginParams {
apiUrl: string;
output: Output;
ssoUserId?: string;
}
export interface LoginData {
token: string;
securityCode: string;
} |
import { DateTime } from 'luxon'
declare global {
namespace Cypress {
interface Chainable {
/** Update form fields with the given values. */
form: typeof form
}
}
}
const clickArc = (pct: number) => (el: JQuery) => {
const height = el.height() || 0
const radius = height / 2
const angle =... |
import { ExitCode } from './exitcode'
import defineFail from './fail'
export class TranslationStatusError extends Error {}
export const fail = defineFail(TranslationStatusError, ExitCode.NotYetTranslation)
export default {
TranslationStatusError,
fail
} |
/**
* 文件上传子线程通知传输信息
* */
class UploadWorkerNoticeMessage {
/**
* 类型
*/
Type: UploadWorkerNoticeMessageType;
/**
* 文件哈希值
*/
MD5: string;
/**
* 进度信息
*/
Progress?: any;
/**
* 文件信息
*/
FileInfo?: any;
/**
* 错误信息
*/
Message?: str... |
import { MdiReactIconComponentType } from './dist/typings';
declare const FoldersImageIcon: MdiReactIconComponentType;
export default FoldersImageIcon; |
class File {
readonly filepath: string
readonly data: string
constructor(filepath: string, data: string) {
this.filepath = filepath
this.data = data
}
}
export default File |
import { NoMatch } from '../components/NoMatch';
export default function Custom404() {
return <NoMatch />
} |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { SignUpComponent } from "../signup/signup.component";
import { LoginComponent } from "./login.component";
import { HttpClientModule } from "@angular/common... |
import { Query } from '@app/core';
import { LeadNote, FindLeadNoteQuery } from '@app/crm';
export interface LeadNoteRepository {
findById: (id: string) => Promise<LeadNote>;
findOne: (query: Query) => Promise<LeadNote>;
find: (query: FindLeadNoteQuery) => Promise<any>;
count: (query: Query) => Promise<number>;... |
import * as React from 'react';
import * as CSS from 'csstype';
import { InteractiveLink } from './InteractiveLink';
import { Code, P } from './UI';
import { HoverGif } from './HoverGif';
import './style/styles.css';
const pageLinkContainerStyle: CSS.Properties = {
display: 'block',
margin: '1vh 0',
};
const Repo... |
import { _Input } from "./_Input";
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* AddApplicationInputInput shape
*/
export interface AddApplicationInputInput {
/**
* <p>The name of your existing application to which you want to add t... |
import React from 'react'
import {ActivityIndicator, StyleSheet, View} from 'react-native'
import {useQuery} from 'react-query'
import {useSelectedWallet} from '../SelectedWallet'
import {WalletInterface} from '../types'
import {StakePoolInfo} from './StakePoolInfo'
export const StakePoolInfos = () => {
const walle... |
import { Component } from '@angular/core';
import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
@Component({
selector: 'magic-bean-export',
templateUrl: './export.component.html',
styleUrls: ['./export.component.scss'],
})
export class ExportComponent {
fromDateValue: Date;
toDateValue: Date;
con... |
export declare type THeaderEncoding = 'utf-8' | 'latin1'; |
import { MockTransport } from './mock';
import { PowerSwitch } from './power';
// import * as mqtt from 'mqtt';
// let host = 'localhost';
// let client = mqtt.connect('mqtt://' + host);
let client = new MockTransport();
let power = new PowerSwitch(client);
power.on('ack', (powerSwitch, ack) => {
console.log('ACK... |
class Panel extends egret.DisplayObjectContainer{
private background:egret.Shape;
private _width:number;
private _height:number;
public constructor(x,y,width,height) {
super();
this.Init();
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.drawPanel();
}
private Init() {
... |
export class Book {
_id: string;
title: string;
description: string;
language: string;
category: string;
author: string;
quantity: number;
price: number;
imageUri: string;
highlights: string[];
pages: number;
avgRating?: number;
constructor(data: Partial<Book> = {}) {
this._id = data._id;... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as path from 'path';
import {mergeProcessCovs} from '@bcoe/v8-coverage';
import chalk = require('cha... |
export interface ICommunicationsPreferences {
load_request_responses?: boolean;
scientific_recommendations?: boolean;
brf_certified_recommendations?: boolean;
contact_email?: string;
} |
import * as React from 'react';
import { VehicleFragment } from '../../types';
import { Link } from 'react-router-dom';
class Tabs extends React.Component<{}, any> {
constructor(props: any) {
super(props);
this.state = {
active: 0
}
}
select = (i: any) => {
let _this = this;
return fu... |
/*
* 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 { FtrProviderContext } from '../../ftr_provider_context';
export func... |
import { ReactNode } from "react";
import "./styles.scss";
type QuestionProps = {
content: string;
author: {
name: string;
avatar: string;
};
children?: ReactNode;
isAnswered?: boolean;
isHighlighted?: boolean;
};
export function Question({
content,
author,
isAnswered = false,
isHighlight... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GiFastArrow: IconType; |
import { endpoint } from 'corla/config';
import createFetchAction from 'corla/action/createFetchAction';
const url = endpoint('county-asm-state');
export default createFetchAction({
failType: 'FETCH_COUNTY_ASM_STATE_FAIL',
networkFailType: 'FETCH_COUNTY_ASM_STATE_NETWORK_FAIL',
okType: 'FETCH_COUNTY_AS... |
export type JsonValue =
| boolean
| number
| string
| null
| JsonList
| JsonMap
| undefined;
export interface JsonMap {
[key: string]: JsonValue;
[index: number]: JsonValue;
}
export interface JsonList extends Array<JsonValue> {}
export type SegmentEvent =
| TrackEventType
| ScreenEventType
| I... |
export * from './edit-item.component';
export * from './dialog-overview-example/dialog-overview-example.component';
export * from './dialog-overview-example-dialog/dialog-overview-example-dialog.component'; |
import { Collection } from '../types'
import Tar from 'tar-js'
// this is a workaround type so that we are able to pass in Uint8Arrays
// as string to `tar.append`
interface StringLike {
readonly length: number
charCodeAt: (index: number) => number
}
// converts a string to utf8 Uint8Array and returns it as a str... |
export * from './Popconfirm.style'; |
//
// 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, { useState, useEffect, useRef } from 'react'
import MenuIcon from './vectors/menu-icon'
import TextIcon from './vectors/text-icon'
import ArrowRightIcon from './vectors/arrow-right-icon'
import ArrowLeftIcon from './vectors/arrow-left-icon'
import styles from './styles/mobile-nav-buttons.css'
type Props ... |
import { graphql, Link } from 'gatsby';
import * as React from 'react';
import styled from '@emotion/styled'
import { css } from 'emotion'
import SiteNavLogo from '../components/header/SiteNavLogo';
import PostCard from '../components/PostCard';
import Wrapper from '../components/Wrapper';
import IndexLayout from '../... |
import * as React from 'react';
import * as ReactGA from 'react-ga';
import { get } from 'lodash';
import { BindAll } from 'lodash-decorators';
import { Dropdown } from 'react-bootstrap';
import { Application } from 'core/application';
import { ReactInjector } from 'core/reactShims';
import { Tooltip } from 'core/pres... |
/// <reference path='../lib/node.d.ts' />
/// <reference path='../lib/es6-promise.d.ts' />
'use strict';
import fs = require("fs");
import path = require("path");
import rsvp = require('es6-promise');
var Promise = rsvp.Promise;
import fsp = require('../lib/fsp');
import Common = require('./Common');
import WSyncFile... |
import { TNativeAudioNode } from './native-audio-node';
import { TNativeContext } from './native-context';
export declare type TConnectedNativeAudioBufferSourceNodeFactory = (nativeContext: TNativeContext, nativeAudioNode: TNativeAudioNode) => () => void;
//# sourceMappingURL=connected-native-audio-buffer-source-node-f... |
import React, { FC, useContext, useCallback, useState } from 'react'
import classNames from 'classnames'
import { NativeProps } from '../../utils/native-props'
import { Field, FormInstance } from 'rc-field-form'
import type { FieldProps } from 'rc-field-form/lib/Field'
import FieldContext from 'rc-field-form/lib/FieldC... |
import { useRouter } from 'next/dist/client/router';
import CustomLink from '../../../components/CustomLink';
export default function Search(): JSX.Element {
const router = useRouter();
const code = router.query.code;
return (
<div>
<h1>routes / {code} / search</h1>
<CustomLink />
</div>
)... |
import { Component } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { accountResolvers } from "@baw-api/account/accounts.service";
import { Filters } from "@baw-api/baw-api.service";
import { BookmarksService } from "@baw-api/bookmark/bookmarks.service";
import {
theirBookmarksMenuItem... |
import faker from "@faker-js/faker";
import { HttpPostParams } from "../protocols/http";
export const mockPostRequest = (): HttpPostParams<any> => ({
url: faker.internet.url(),
body: faker.random.objectElement([""], undefined),
}); |
import { WeatherReading } from './weather-reading.models';
export interface WeatherReadingCurrent extends WeatherReading {} |
import fs from 'fs';
import { AnyObject } from '../../types/general';
/**
* helper to remove leading zero from string
* e.g. 02 -> 2
* @param {string} str
*/
export const removeLeadingZero = (str: string) =>
str[0] === '0' ? str[1] : str;
export const capitalizeFirst = (str: string) => {
const split = str.spl... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { HoodService } from '../hood.service'
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent implements OnInit {
input;
... |
import { UserInfo } from './../helpers/user';
import { Component, OnInit } from '@angular/core';
import { UserService } from '../helpers/user';
import { FirebaseService } from '../services/firebase.service';
import { ActivatedRoute } from '@angular/router';
declare var $: any;
@Component({
selector: 'app-account',
... |
import test from 'tape'
import { Project } from 'ts-morph'
import { minify, MinifyOptions } from 'uglify-js'
import { IProcessOptions, processProject } from '../src'
function createProject(): Project {
return new Project({
skipAddingFilesFromTsConfig: true,
compilerOptions: { strict: true },
useInMemoryF... |
export interface ValidWorker {
someMethod(): string;
moreMethod(): number;
}
export default {
someMethod: () => 'hello ts',
moreMethod: () => 1
} as ValidWorker |
// noinspection JSUnusedGlobalSymbols
export class MandateProductModel {
/**
* Link to sepamandate B2B doc
*/
mandateUrl?: string;
} |
import React from 'react'
import {useHistory} from "react-router-dom"
import mixpanel from "mixpanel-browser"
import {Button} from "react-bootstrap"
import './page_not_found_view.scss'
function PageNotFound() {
mixpanel.track('404')
const history = useHistory()
function onButtonClick() {
histor... |
import Language from "../Storage/Language";
import IDiagramController, { ChartType } from "./DiagramController";
import { ObservationStation } from "../../Model/ObservationStation";
import { Feature } from "../../Model/Feature";
import Timespan from "../../Model/Timespan";
import DataProvider from "../Frost/DataProvide... |
import React, { ReactNode } from 'react';
export default function CommaSeparatedList({
children,
}: {
children: ReactNode[];
}) {
return (
<>
{children.reduce((previous: ReactNode[], current, index) => {
if (index === 0) {
return [current];
}
return [...previous, index... |
import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ClrDatagridStateInterface } from '@clr/angular';
import { ConfirmationDialogService } from '../../shared/confirmation-dialog/confirmation-dialog.service';
import { ConfirmationMessage } fr... |
import { sendAsync } from "./dispatch_json.ts";
export interface BrowserOptions {
title: String;
url: String;
width: Number;
height: Number;
resizable: boolean;
debug: boolean;
}
export function close(path: Number): void {
//sendAsync("op_mkdir");
}
export async function openWebview(
options: Browser... |
import signale from 'signale'
import { join } from 'path'
import { cwd } from '@/src/core/env'
export interface IConfig {
[index: string]: any
}
export function getRawUserConfig(): IConfig {
try {
// tslint:disable-next-line: non-literal-require
const mod = require(join(cwd(), '.bootrc.ts'))
return ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About rubies</source>
<translation>عن البلاك كوين</translation>
</message>
<message>
<locatio... |
export const VALID_TIMER_CONFIG = {
vacations: ['2019-06-26' , '2019-06-27','2019-07-28', '2019-08-05', '*-09-05'],
normalWorkingHours: {
0: [
{
// Sunday
from: '08:00',
to: '14:00'
},{
from: '16:00',
to: '20:00'
}
],
1:... |
import { Links } from './Links';
import { RoleResult } from './RoleResult';
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
export class KeystoneListPermissionsResponse extends SdkResponse {
public links?: Links;
public roles?: Array<RoleResult>;
private 'total_number'?: numbe... |
import { VFC } from 'react';
import { useRouter } from 'next/router';
import { Button } from '../components/atoms/buttons/Button';
import * as gtag from '../lib/gtag';
import styles from './custom404.module.scss';
const Custom404: VFC = () => {
const router = useRouter();
const toHome = () => {
gtag.event({
... |
import { Data, Engine, Helper, Site } from "../core.ts";
import loader from "../core/loaders/module.ts";
import { merge } from "../core/utils.ts";
export interface Options {
/** The list of extensions used to load data */
dataExtensions: string[];
/** The list of extensions used to load pages */
pagesExtensio... |
import * as _ from '@antv/util';
import { registerPlotType } from '../../base/global';
import ViewLayer, { ViewConfig } from '../../base/view-layer';
import { ElementOption } from '../../interface/config';
import { extractScale } from '../../util/scale';
import { LayerConfig } from '../../base/layer';
import './geomet... |
// Following http://www.w3.org/TR/css3-selectors/#nth-child-pseudo
// [ ['-'|'+']? INTEGER? {N} [ S* ['-'|'+'] S* INTEGER ]?
const RE_NTH_ELEMENT = /^([+-]?\d*n)?\s*(?:([+-])\s*)?(?:(\d+))?$/;
/**
* Parses an expression.
*
* @throws An `Error` if parsing fails.
* @returns An array containing the integer step size... |
import { Component, Input, OnInit } from '@angular/core';
import { QuoteService } from 'src/app/services/quote.service';
import { Quote } from './../../services/quote.service'
import { Observable } from 'rxjs';
@Component({
selector: 'app-daily-quote',
templateUrl: './daily-quote.component.html',
styleUrls: ['./... |
import { Modal, TextField, withStyles } from '@kudoo/components';
import React, { useState } from 'react';
import { connect } from 'react-redux';
import { compose } from 'recompose';
import { showToast } from 'src/helpers/toast';
import { IPOResponse } from 'src/screens/inventory/PurchaseOrder/PbsPurchaseOrderTab/Creat... |
import styled from 'styled-components'
type WrapperProps = {
icon?: string
}
export const Wrapper = styled.div<WrapperProps>`
display: flex;
justify-content: space-between;
padding: 5px;
`
export const Link = styled.a<WrapperProps>`
font-size: 14px;
display: flex;
align-items: center;
text-decoration: n... |
import { castArray } from 'lodash-es';
import { App } from 'vue';
import { Binding } from './models';
import { registerDescriptors } from './helpers/bindings';
import ResolverComponent from './resolver.vue';
export const install = (app: App, bindings: Binding | Binding[]) => {
app.component(ResolverComponent.name, R... |
/**
* @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 {AttributeMarker, TAttributes, TNode, TNodeType} from '../../src/render3/interfaces/node';
import {CssSelect... |
<TS language="vi_VN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Nhấn chuột phải để sửa địa chỉ hoặc nhãn</translation>
</message>
<message>
<source>Create a new address</source>
<trans... |
export default SaveOutline;
declare function SaveOutline(props: any): any;
declare namespace SaveOutline {
namespace defaultProps {
const style: {};
const color: string;
const height: string;
const width: string;
const cssClasses: string;
const title: string;
... |
import { SynorError } from '@synor/core'
import { performance } from 'perf_hooks'
import { Client } from 'pg'
import { getQueryStore } from './queries'
import { ensureMigrationRecordTable } from './utils/ensure-migration-record-table'
import { getConfig } from './utils/get-config'
type DatabaseEngine = import('@synor/... |
import { Component, Input } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { Router } from '@angular/router';
import { DataService } from '../../../services/data.service';
import { WhatsNewService } from '../../../services/whats-new.service';
import { AboutDialogComponent } from '../... |
/*
Copyright 2016 - 2022 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... |
let clientCount = 0;
let roomCount = 0;
export const ClientCount = () => clientCount;
export const RoomCount = () => roomCount;
export const NewClient = () => clientCount++;
export const RemoveClient = () => clientCount--;
export const NewRoom = () => roomCount++;
export const RemoveRoom = () => roomCount--; |
import React, { useRef, useState } from 'react';
import { Button, Form, message } from 'antd';
import { useRouter } from 'next/router';
import { Container, Page } from '../../components/layout';
import NavBar from '../../components/navbar';
import SideBar from '../../components/sidebar';
import Suggestions from '../../... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UserComponent } from './user.component';
describe('UserProfileComponent', () => {
let component: UserComponent;
let fixture: ComponentFixture<UserComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
de... |
import { expect } from 'chai';
import {
addEventListenersToPuppeteerPage,
loadCachedTestBed,
takeScreenshot,
TestBed
} from '../../../puppeteer-tests/util';
import { Page } from 'puppeteer';
import { DiffPageSkPO } from './diff-page-sk_po';
describe('diff-page-sk', () => {
let testBed: TestBed;
before(asy... |
import { AccountsTypeorm } from '../src';
import { Connection, createConnection } from 'typeorm';
import { User } from '../src/entity/User';
import { UserEmail } from '../src/entity/UserEmail';
import { UserService } from '../src/entity/UserService';
import { UserSession } from '../src/entity/UserSession';
const datab... |
/**
* Copyright (c) 2022 大漠穷秋.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import bigZIndexNum from '../../consts/BIG_ZINDEX_NUMBER';
import ICE_EVENT_NAME_CONSTS from '../../consts/ICE_EVENT_NAME_CONSTS';
import ICEEvent from ... |
import { Component, Output, EventEmitter, ChangeDetectionStrategy, Input } from '@angular/core';
import { DatatableFooterDirective } from './footer.directive';
@Component({
selector: 'datatable-footer',
template: `
<div
class="datatable-footer-inner"
[ngClass]="{ 'selected-count': selectedMessage }"... |
import * as React from 'react';
import classNames from 'classnames';
import SearchOutlined from '@ant-design/icons/SearchOutlined';
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
import Input, { InputProps } from './Input';
import Button from '../button';
import SizeContext, { SizeType } from '../conf... |
interface JsonMessage {
message: string
} |
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { UserService, User } from '../user.service';
import { NgForm } from '@angular/forms';
import { MAT_DIALOG_DATA } from '@angular/material';
import { Router } from '@angular/router';
@Component({
selector: 'app-profile',
templateUrl: './pr... |
import { ts } from "@ts-morph/common";
import { Expression, ExpressionedNode } from "../expression";
import { IterationStatement } from "./IterationStatement";
import { VariableDeclarationList } from "../variable";
export const ForInStatementBase = ExpressionedNode(IterationStatement);
export class ForInStatement exte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.