text
stringlengths
10
953k
import { BaseCacheOptions } from '../interface/base-cache-options'; import { normalizeCacheSettings } from './decorator.util'; describe('Decorators Util', () => { describe('Proper CacheSetting normalization, normalizeCacheSettings', () => { const key: string = 'key'; it('should make the options object alway...
import { ReactElement } from 'react' import Modal, { Props } from 'react-modal' import './dialog.scss' export interface DialogProps extends Props { readonly close$: () => void readonly content?: ReactElement } export const DialogComponent = (props: DialogProps) => { Modal.setAppElement('#root') return...
import { BaseUuidEntity } from "./sys$BaseUuidEntity"; export class CategoryAttributeEnumValue extends BaseUuidEntity { static NAME = "sys$CategoryAttributeEnumValue"; value?: string | null; localizedValues?: string | null; } export type CategoryAttributeEnumValueViewName = | "_base" | "_local" | "_minimal"...
import { LoggerService } from '../services/logger.service'; import { Type } from './type.interface'; export interface INestApplicationContext { /** * Allows navigating through the modules tree, for example, to pull out a specific instance from the selected module. * @returns {INestApplicationContext} */ s...
/* * Copyright (c) 2006-2009 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpos...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import React from 'react' import RightCircleOutlinedSvg from '@ant-design/icons-svg/lib/asn/RightCircleOutlined'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const RightCircleOutlined = ( props: AntdIconProps, ref: React.Mutabl...
import { IOAuthApps as T } from '../../../../definition/IOAuthApps'; import { BaseRaw } from './BaseRaw'; export class OAuthAppsRaw extends BaseRaw<T> { findOneAuthAppByIdOrClientId({ clientId, appId }: {clientId: string; appId: string}): ReturnType<BaseRaw<T>['findOne']> { return this.findOne({ ...appId && { _i...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About EgameX</source> <translation>Über EgameX</translation> </message> <message> <location l...
/* Copyright 2021 Better Ltd (www.better.care) * * 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 ...
// (C) 2020-2021 GoodData Corporation import { ISettings, IUserSettings } from "@gooddata/sdk-backend-spi"; /** * Tiger does not yet have endpoints for settings. All the UI-specific * settings are thus hardcoded here. */ export const DefaultUiSettings: ISettings = { activeFiltersByDefault: true, enableActiv...
/// <reference path="fourslash.ts" /> //@Filename: findAllRefsOnDefinition-import.ts ////export class Test{ //// //// constructor(){ //// //// } //// //// [|public [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}start|](){ //// return this; //// }|] //// //// public sto...
import { etherJsFetcher } from '../src' import { Wallet } from 'ethers' import { BaseProvider, JsonRpcSigner } from '@ethersproject/providers' import { Contract } from '@ethersproject/contracts' import TestABI from './test.abi.json' jest.mock('@ethersproject/providers') jest.mock('@ethersproject/contracts') // jest.mo...
/** * concat :: m a -> m a -> m a */ declare function concat(a: object, b: object): object; declare function concat(a: object): (b: object) => object; export default concat;
import React from "react"; import classNames from "classnames"; import StyledMove from "./Move.style"; import { useSelector } from "react-redux"; import { selectPlayerPseudo } from "../../../../../room/roomSlice"; export default ({ children, playerId, }: { children: JSX.Element[]; playerId: string; }) => { ...
export * from './schedule.types' export * from './schedule.service'
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors // SPDX-License-Identifier: Apache-2.0 import { hexToU8a, stringToU8a, u8aConcat, u8aToHex } from '@polkadot/util'; import { waitReady } from '@polkadot/wasm-crypto'; import { decodeAddress } from '../address'; import { signatureVerify } from '.'; c...
import { CardanoProvider } from '../../../Provider' import { AddressType, Address } from '../../../Wallet' import { SCAN_GAP } from './config' import { addressDiscoveryWithinBounds } from '../../../Utils' import { Cardano, ChainSettings } from '../../../Cardano' export function getNextAddressByType (cardano: Cardano, ...
export const codes = { draggable: { vanilla: ` import Moveable from "moveable"; /* const translate = [0, 0]; */ const draggable = new Moveable(document.body, { target: document.querySelector(".draggable"), draggable: true, throttleDrag: 0, }).on("drag", ({ target, left, top, beforeDelta }) => {...
import * as vscode from 'vscode' import { componentMap, ComponentDescriptor } from './componentMap' import { bigCamelize, kebabCase } from './utils' const DOC = 'https://varlet-varletjs.vercel.app/#/zh-CN' const DOC_VUE2 = 'https://varlet-vue2.vercel.app/#/zh-CN' const EN_DOC = 'https://varlet-varletjs.vercel.app/#/en...
import { ApiProperty } from "@nestjs/swagger"; import { IsBoolean, IsNumber, IsOptional, IsString } from "class-validator"; export class CreateProductDto { @ApiProperty() @IsNumber() categoryId: number; @ApiProperty() @IsNumber() districtId: number; @ApiProperty() @IsNumber() pric...
import { Injectable, Logger } from '@nestjs/common'; import { ConferencesClientInterface } from './conferences-client.interface'; import { ConferenceClientOptionsDto } from '../dtos/conference-client-options.dto'; import { ConferenceDto, NewConferenceDto } from '../dtos/conference.dto'; import { ConferenceProvider } fr...
import { Node } from './Node'; export namespace NodeUtils { export const elements: string[]; export function addShortcuts( proto: Node, proxy: string, list: any[] ): void; }
import webpack from 'webpack'; import merge from 'webpack-merge'; import path from 'path'; import HTMLWebpackPlugin from 'html-webpack-plugin'; import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'; import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import baseConfig from './webpack.base.confi...
import { Component, OnInit } from '@angular/core'; import { TuneBookService, TuneBook, getSystemProperties, FilterSettings } from '../business/index'; @Component({ moduleId: module.id, selector: 'etb-filter', //ACHTUNG: filter kollidiert mit svg filter element, deshalb ist etbk- wichtig! templateUrl: 'fil...
import { IncomingHttpHeaders } from 'http'; import { JaegerExporter } from '@opentelemetry/exporter-jaeger'; import { NodeTracerProvider } from '@opentelemetry/node'; import { TracerShim } from '@opentelemetry/shim-opentracing'; import { BatchSpanProcessor, SimpleSpanProcessor, } from '@opentelemetry/tracing'; imp...
import { // createDebugger, isExternalUrl, asyncReplace, cleanUrl, generateCodeFrame, isDataUrl, isObject } from '../utils' import path from 'path' import { Plugin } from '../plugin' import { ResolvedConfig } from '../config' import postcssrc from 'postcss-load-config' import merge from 'merge-source-map'...
/** * Copies a slice from one Uint8ClampedArray or number[] to another. * * @aram source An Array-like source to copy from. * @param destination An Array-like destination to copy to. * @param readloc Where to start reading from in the source. * @param writeloc Where to start writing to in the source. * @...
import { Component } from '@angular/core'; @Component({ selector: 'sky-toolbar-guidelines', templateUrl: './toolbar-guidelines.component.html' }) export class SkyToolbarGuidelinesComponent { /* tslint:disable:max-line-length */ public addButtonInfo: {label: string, value: string}[] = [ { label: 'Text', ...
/// <reference types="jest" /> import * as React from 'react'; import * as PropTypes from 'prop-types'; import * as ReactDOM from 'react-dom'; import * as renderer from 'react-test-renderer'; import { mount } from 'enzyme'; import gql from 'graphql-tag'; import ApolloClient, { ApolloError, ObservableQuery } from 'apol...
import hljs from 'highlight.js'; export default function (version: string, type = "md", name = "heart") { return (<div> <h1>Usage</h1> <p class="lead">Ionicons is a completely open-source icon set with 700+ icons crafted for web, iOS, Android, and desktop apps. Ionicons was built for <a href="https://ionicframework...
import { Component, OnInit, Input, ViewChild, ElementRef, OnChanges, AfterViewInit } from '@angular/core'; import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { ProjectService, Project } from '@app/core'; import { User, AuthService } from '@app/core'; import { Role } from '@app/core/models/role';...
import * as React from 'react'; import styled from 'styled-components'; import { Color } from '../colors'; import {fonts} from '../fonts'; export interface DropdownItemProps { /** @name Content text @default Dropdown Item */ content: string; } const StyledDropdownItem = styled.div` display: flex; padding: 17px 22p...
import React from 'react'; export class TodoListItem extends React.Component<any, any> { render() { // Pull in label and completed from props using destructuring const { label, completed } = this.props; // Set the todo's text to label and the checked prop to completed return ( <li className="t...
import { useHistory } from "react-router-dom"; import { APP_PATHS } from "../config"; type AppPath = keyof typeof APP_PATHS; /** * useNextPage * @returns goNextPage() * @example * const goNextPage = useNextPage(); * // ... * goNextPage("XX") // jump */ export const useNextPage = () => { const history = useH...
function classDeco(): ClassDecorator { return () => {}; } function methodDeco(): MethodDecorator { return () => {}; } function propDeco(): PropertyDecorator { return () => {}; } @classDeco() class Foo { @propDeco() prop1: number; static prop2: string; private readonly prop3: string; public prop4: str...
import * as vscode from 'vscode' import * as fs from 'fs' import * as path from 'path' import * as cp from 'child_process' import {SyncTexJs} from './locatorlib/synctex' import {replaceArgumentPlaceholders} from '../utils/utils' import type {Extension} from '../main' import type {ClientRequest} from '../../viewer/comp...
declare module '@tom-konda/wdtt-parser' { export const wdttParse: (wdtt: string) => wdttDefaultJSON } type fontStyle = { fontFamily: string, fontSize: number, isItalic: boolean, isBold: boolean, } type fontStyleMergedType<T> = fontStyle & T; type subtitles = fontStyleMergedType<{ texts: string[], }> typ...
/// <reference types="react" /> import React from 'react'; export interface TableBodyProps { children?: React.ReactNode; className?: string; } export declare const TableBody: React.SFC<TableBodyProps>; export default TableBody;
export const isEmptyAny = jest.fn().mockReturnValue(false); export const isAddress = jest.fn().mockReturnValue(true); export const isAddressAny = jest.fn().mockReturnValue(true); export const isAlias = jest.fn().mockReturnValue(true); export const normalizeAddress = jest.fn().mockImplementation((res) => res); expo...
import Game from '~/scenes/Game' import { Ball, BallState } from './Ball' import { DriveDirection, Side } from './teams/Team' export interface HoopConfig { position: { x: number y: number } isFlipX: boolean rimPosition: { x: number y: number } backboardPosition: { x: number y: numbe...
import { NodePath, PluginObj, PluginPass, TransformOptions, types as t } from '@babel/core'; import { declare } from '@babel/helper-plugin-utils'; import { Module } from '@linaria/babel-preset'; import { resolveStyleRulesForSlots, CSSRulesByBucket, StyleBucketName, MakeStyles } from '@fluentui/make-styles'; import { U...
/** * * * OpenAPI spec version: 20190331 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as sho...
import { getGitHubQueryGenerator } from '../src/index' import { print } from 'graphql' import * as dotenv from 'dotenv' dotenv.config() if (!process.env.GITHUB_ACCESS_TOKEN) { throw new Error('Cannot run tests without a GitHub access token.') } const gitHubAccessToken: string = process.env.GITHUB_ACCESS_TOKEN tes...
import { Observable, startWith, distinctUntilChanged, shareReplay, map, OperatorFunction, first } from 'rxjs'; /** * Operator that returns true until the first item is emitted. Then returns false. * * @returns */ export function isLoading<T>(): OperatorFunction<T, boolean> { return (source: Observable<T>) => { ...
import { MoonIcon, SunIcon } from "@chakra-ui/icons"; import { Box, Button, IconButton, Link as _Link, Stack, useColorMode, } from "@chakra-ui/react"; import { NextComponentType } from "next"; import { signIn, signOut, useSession } from "next-auth/client"; import Link from "next/link"; import React from "re...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HeaderComponent } from './header.component'; import { RouterTestingModule } from '@angular/router/testing'; describe('FPCareHeaderComponent', () => { let component: HeaderComponent; let fixture: ComponentFixture<HeaderComponent>; ...
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OnSearchPage } from './on-search.page'; describe('OnSearchPage', () => { let component: OnSearchPage; let fixture: ComponentFixture<OnSearchPage>; beforeEach(waitForA...
import { ServiceException as __ServiceException__ } from "@aws-sdk/types"; /** * <p>A sync configuration with the same name already exists.</p> */ export interface ResourceDataSyncAlreadyExistsException extends __ServiceException__<_ResourceDataSyncAlreadyExistsExceptionDetails> { name: "ResourceDataSyncAlreadyE...
import * as vscode from 'vscode'; import * as path from 'path'; import { getStore, getState } from '../store/store'; import { Track, Playlist } from '../state/state'; import { actionsCreator } from '../actions/actions'; const createTrackTreeItem = (t: Track, playlist: Playlist, trackIndex: number) => { return new Tra...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="en"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About WildersCoin</source> <translation>About WildersCoin</translation> </message> ...
import type { Config } from './schema.ts' export const example: Config = { /** 抽奖发起者的uid */ uid: 573732342, /** 至少一个或多个抽奖动态的tid(目前为18位),注意要字符串形式(因为超过了JS最大安全整数) */ tid: ['##################'], /** 选择抽奖条件,至少选择一个条件,至多全选 */ needs: { /** 点赞 */ like: false, /** 回复 */ reply: false, /** 转发 */ ...
import { Module, GetterTree, MutationTree, ActionTree } from 'vuex'; import { notifyLenght, maximumToast } from '@/options'; import { RootState } from '@/types/store/RootState'; const namespaced: boolean = true; export interface Notify { id?: string; type: string; title?: string; message: string; timeoutID...
import { MDirective } from './directive' export class Ripple extends MDirective {} export class _RippleComponent extends Ripple {}
import { NotificationsComponent } from './../components/notifications/notifications.component'; import { Component, OnInit, NgModule, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { ModalDirective } from 'ngx-bootstrap/modal'; import { Observable, Subject } from 'rxjs'; import { Not...
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
import React from 'react'; import { mount } from 'enzyme'; import ChartLegend from 'components/ChartLegend'; const data = [{ title: 'Active' }, { title: 'Recovered' }, { title: 'Deaths' }]; describe('Chart legend', () => { it('displays chart legend labels', () => { const wrapper = mount(<ChartLegend items={data...
import React from "react"; import { SignatureResult, StakeProgram, ParsedInstruction, } from "@solana/web3.js"; import { lamportsToSolString } from "utils"; import { InstructionCard } from "../InstructionCard"; import { Address } from "components/common/Address"; import { SplitInfo } from "./types"; export funct...
import React from 'react'; import { shallow } from 'enzyme'; import ButtonGroup from '../../src/components/ButtonGroup'; import Button from '../../src/components/Button'; describe('<ButtonGroup />', () => { it('renders buttons', () => { const wrapper = shallow( <ButtonGroup> <Button>One</Button> ...
/// <reference types="xrm" /> export declare class LookupOptionsMock implements Xrm.LookupOptions { allowMultiSelect?: boolean; defaultEntityType?: string; defaultViewId?: string; entityTypes: string[]; showBarcodeScanner?: boolean; viewIds?: string[]; disableMru?: boolean; filters?: Xrm...
/* GENERATED FILE */ import React, { forwardRef } from "react"; import { IconWeight, IconProps, PaintFunction, renderPathForWeight, } from "../lib"; import IconBase, { RenderFunction } from "../lib/IconBase"; const pathsByWeight = new Map<IconWeight, PaintFunction>(); pathsByWeight.set("bold", (color: string...
// tslint:disable-next-line:no-implicit-dependencies import request from 'supertest'; import { config } from 'firebase-functions'; jest.mock('firebase-functions'); const mockedConfig = <jest.Mock<any>>config; import * as webhookHandlers from '../webhookHandlers'; const issueTransferStub = jest.spyOn(webhookHandlers,...
/** * 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 os from 'os'; import path from 'path'; import electron from 'electron'; import {getInstance as getLogger} fro...
import { GraphicsProgramSymbols } from '../core/GraphicsProgramSymbols'; import { Simplex } from '../geometries/Simplex'; import { SimplexPrimitivesBuilder } from '../geometries/SimplexPrimitivesBuilder'; import { Vector3 } from '../math/Vector3'; /** * @hidden */ export class Simplex1Geometry extends SimplexPrimiti...
import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/EmptyState/empty-state'; export enum EmptyStateVariant { 'xs' = 'xs', small = 'small', large = 'large', 'xl' = 'xl', full = 'full' } export interface EmptyStateProps ex...
// modules import { NgModule } from "@angular/core"; import { FormsModule } from "@angular/forms"; import { CommonModule } from "@angular/common"; // imports import { Label } from "./label.component"; import { TextInput } from "./input.directive"; import { TextArea } from "./text-area.directive"; @NgModule({ declara...
/// <reference path="../jqwidgets.d.ts" /> import { AfterViewInit, AfterViewChecked, EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core'; export declare class jqxGridComponent implements OnChanges, AfterViewInit, AfterViewChecked { attrAltrows: boolean; attrAltstart: number; attrAltste...
import { moviesAnywhereKey } from './api-keys'; import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; @Injectable() export class MoviesAnywhereApiService { constructor(private http: Http) { } getMovieByTitle(title: string) { d...
// /src/action/logout/materialiconsround/24px.svg import { createSvgIcon } from './createSvgIcon'; export const SvgLogoutRound = createSvgIcon( `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"> <g> <path d="M0,0h24v24H0V0z" fill="none"/> ...
import styled from "@emotion/styled/macro"; import Section from "../../shared/Section"; const StyledCitations = styled.div` padding: 1rem 0; font-size: 0.8em; border-bottom: 1px solid #222; background: black; color: #777; `; export default function Citations() { return ( <StyledCitations> <Sect...
export function createOnUpdateTrigger(table: string) { return `CREATE TRIGGER ${table}_updated_at BEFORE UPDATE ON ${table} FOR EACH ROW EXECUTE PROCEDURE on_update_timestamp();`; } export function dropOnUpdateTrigger(table: string) { return `DROP TRIGGER ${table}_updated_at ON ${table};`; }
import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { Role } from '../prisma/role.enum'; @InputType() export class UserUncheckedUpdateInput { @Field(() => String, {nullable:true}) id?: string; @Field(() => Date, {nullable:true}) createdAt?: Date | string; ...
import { MetadataJson, Examples, PhoneNumber, E164Number, CountryCallingCode, CountryCode, CarrierCode, NationalNumber, Extension, ParseError, NumberFoundLegacy, NumberFound, NumberType, NumberFormat, NumberingPlan, ValidatePhoneNumberLengthResult } from '../types'; // They say this re-...
import Visibility from '@mui/icons-material/Visibility'; import VisibilityOff from '@mui/icons-material/VisibilityOff'; import { Button, IconButton, InputAdornment, Stack, TextField, } from '@mui/material'; import { useAppDispatch } from 'app/hooks'; import { AxiosResponse } from 'axios'; import { MouseEventH...
/// <reference types="@adonisjs/auth" /> import { ProviderTokenContract } from "@ioc:Adonis/Addons/Auth"; import { ProviderToken } from "@adonisjs/auth/build/src/Tokens/ProviderToken"; import AbstractDatabaseProvider from "./AbstractDatabaseProvider"; import { RefreshTokenProviderContract } from "@ioc:Adonis/Addons/Jwt...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { isTwoDimArray, ModelTypes, JointDataset, IExplanationModelMetadata, ModelExplanationUtils, FabricStyles } from "@responsible-ai/core-ui"; import { localization } from "@responsible-ai/localization"; import { IPlotlyProper...
import { OnInit, Component, OnDestroy, ViewChild } from '@angular/core'; import { IngressService } from '../../../shared/client/v1/ingress.service'; import { IngressTplService } from '../../../shared/client/v1/ingresstpl.service'; import { MessageHandlerService } from '../../../shared/message-handler/message-handler.se...
import {RouterModule, Routes} from '@angular/router'; import {RoomComponent} from './room.component'; import {ModuleWithProviders} from '@angular/core'; export const routes: Routes = [ { path: '', component: RoomComponent, data: { pageTitle: 'rooms' }, } ]; export co...
import { tw } from 'twind'; import FeatureSvg from '@/constants/svg/features.svg'; const listItems = [ { title: `Цена`, description: `Не меняется на протяжении всего ремонта, т.к. у нас нет дополнительных или скрытых расходов. К тому же, общая сумма ремонта закреплена в договоре.`, }, { title: `Специ...
// Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
import {createZealotMock} from "zealot" import {submitSearch} from "../mod" import Current from "../../../state/Current" import Search from "../../../state/Search" import SearchBar from "../../../state/SearchBar" import Spaces from "../../../state/Spaces" import Tab from "../../../state/Tab" import brim from "../../.....
import { acornParse } from "../../analysis/FileAnalysis"; import { PackageAbstraction } from "./PackageAbstraction"; import { ASTTraverse } from "../../ASTTraverse"; import { RequireStatement } from "./nodes/RequireStatement"; import * as escodegen from "escodegen"; import * as path from "path"; import { ensureFuseBoxP...
/* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ import { isBoolean, isString, isUndefined, isObject } from '../utils'; import { CompilerValidationErrors, inva...
// This is a generated file from running the "createIcons" script. This file should not be updated manually. import React, { forwardRef } from "react"; import { SVGIcon, SVGIconProps } from "@react-md/icon"; export default forwardRef<SVGSVGElement, SVGIconProps>( function HighlightSVGIcon(props, ref) { return (...
import { Dialog, Transition } from '@headlessui/react'; import React, { Fragment, ReactNode } from 'react'; interface IModal { children: ReactNode; className?: string; onClose?: () => any; show?: boolean; } interface IDefaultModal { buttonText?: string; description?: string; onClose?: () => any; show?...
import { WithId } from 'mongodb'; import { PcConfigurationDto } from '@apiDomain/configuration.domain'; import { User } from '../../frontend/dto/user.dto'; import { ShippingMethod } from '../../frontend/dto/shipping-method.dto'; export interface OrderDto { user: User; shippingMethod: ShippingMethod; orderI...
<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 { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms'; import { user } from '../user'; import { Router } from '@angular/router'; import { AuthService } from '../auth.service'; import { OverlaySpinnerService } from '../overlay-spinner.service'...
/** * File from https://github.com/slackapi/node-slack-sdk * Licensed under MIT - Copyright Slack */ import * as os from 'os'; const packageJson = require('../package.json'); // tslint:disable-line:no-require-imports no-var-requires /** * Replaces occurrences of '/' with ':' in a string, since '/' is meaningfu...
import * as runSequence from 'run-sequence'; import {notifyLiveReload} from '../../utils'; import * as gulpLoadPlugins from 'gulp-load-plugins'; import {join} from 'path'; import {APP_SRC, SCSS_DEPENDENCIES} from '../../config'; const plugins = <any>gulpLoadPlugins(); export function watch(taskname: string) { return...
/** * Types extracted from https://discord.com/developers/docs/topics/permissions */ import type { Permissions, Snowflake } from '../../globals'; /** * https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags * * These flags are exported as `BigInt`s and NOT numbers. Wrapping the...
import { createServer, Server } from 'http'; import * as io from 'socket.io'; import { SocketController } from './socketController'; export class SocketServer { public static readonly PORT: number = 2222; private socketController: SocketController; private httpConnection: Server; private socketHandler:...
/* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM mMMMMMMMMMNNNmmNNNMMNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM mmNMMNMMMMNNNN...
/** * Core Services API * Use the Core Services API to manage resources such as virtual cloud networks (VCNs), compute instances, and block storage volumes. For more information, see the console documentation for the [Networking](/iaas/Content/Network/Concepts/overview.htm), [Compute](/iaas/Content/Compute/Concepts/c...
import * as React from "react"; export default class MyComponent extends React.Component< { title: string }, { count: number } > { constructor(props) { super(props); this.state = { count: 0 }; } handleClick(event) { this.setState(prevState => ({ count: prevState.count + 1 })); } render() { ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-ruta404', templateUrl: './ruta404.component.html', styleUrls: ['./ruta404.component.scss'] }) export class Ruta404Component implements OnInit { constructor() { } ngOnInit() { } }
import { Socket } from 'socket.io'; import { Event, Client } from '@Models'; import { AccessControlService } from '@Services'; import { hasRole } from '@Services/AccessControlService/operations'; import getRoomName from './getRoomName'; export default function inviteManager(socket: Socket) { socket.on('invite manage...
import React, { useState, useContext, useRef } from 'react'; import RcUpload from 'rc-upload'; import classnames from 'classnames'; import { ConfigContext } from '../config-provider'; import { IUploadProps, ITriggerProps, ITriggerMap, IProgress, IRcFile, IUploadFile, STATUS_UPLOADING, STATUS_SUCCESS, ...
<TS language="nb" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Høyreklikk for å redigere adresse, eller beskrivelse</translation> </message> <message> <source>Create a new address</source> ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { PrjectsComponent } from './prjects.component'; describe('PrjectsComponent', () => { let component: PrjectsComponent; let fixture: ComponentFixture<PrjectsComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...