text
stringlengths
10
953k
// calc if 2 rectangles intersect, with tolerance overlap allowed function rectIntersecting(aLeft: number, aTop: number, aRight: number, aBottom: number, bLeft: number, bTop: number, bRight: number, bBottom: number, tolerance = 0) { return !( aBottom - to...
import Action = cc.Action; import {sleepMs, sleepSeconds} from "../Foundation/StencilJs"; import AnimationState = cc.AnimationState; import Base64 from "../Math/Base64"; declare global { export module cc { export interface Action { wait(): Promise<any> } export interface Animati...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; suite('Dummy', () => { test('dummy', () => { // }); }); // /* eslint-disable @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports, no-invalid-this, @typescript-eslint/no-ex...
/* * Copyright 2021 ThoughtWorks, Inc. * * 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 agr...
import { IconDefinition } from '@ant-design/icons-angular'; export const UserDeleteOutline: IconDefinition = { name: 'user-delete', theme: 'outline', icon: '<svg viewBox="64 64 896 896" focusable="false"><path d="M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c...
import { createParamDecorator, ExecutionContext } from '@nestjs/common'; import { User } from '../entities/user.entity'; /* this decorator is used to retrieve the user object from the request the user object is only present if the request needs authentication refer to the tickets.controller.ts file to see how it is us...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { Advis...
import React, { createContext, useReducer } from "react"; const StateContext = createContext<any>({}); const StateProvider = ({ reducer, initialState, children }) => ( <StateContext.Provider value={ useReducer(reducer, initialState) }> {children} </StateContext.Provider> ); export { StateProvid...
import { Component } from '@angular/core'; import { UsersService } from './users.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], providers: [UsersService] }) export class AppComponent { }
import { FileRule } from "../lib/types.ts"; export default function ( input: string, fileRules: FileRule[], ): string { let output = input; for (const rule of fileRules) { output = rule.process(output); } return output; }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
import * as React from "react"; import { GrowingEntryStyle, ShadowBox, InputBox } from "./growing-entry-style"; import { assert } from "../common/support"; interface Props extends React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> { readonly placeholder?: string; ...
import { Target } from "../../Target"; import * as ts from "typescript"; import { BaseTarget } from "../../BaseTarget"; export interface LuaWhileStatement extends BaseTarget, Target { } export class LuaWhileStatement implements Partial<Target> { public transpileWhileStatement(node: ts.WhileStatement): string { ...
import { NgModule, ModuleWithProviders } from '@angular/core'; import { FroalaEditorDirective } from './editor.directive'; @NgModule({ declarations: [FroalaEditorDirective], exports: [FroalaEditorDirective] }) export class FroalaEditorModule { public static forRoot(): ModuleWithProviders<FroalaEditorModule> { ...
import 'babel-polyfill'; import express from 'express'; import { ApolloServer } from 'apollo-server-express'; import schema from './graphql'; import * as fs from 'fs'; import * as https from 'https'; import * as http from 'http'; type Config = { ssl: boolean; port: number; hostname: string }; const configurations: { [...
import * as React from 'react'; function SvgEgg( 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="current...
/* tslint:disable */ /* eslint-disable */ // This file was automatically generated and should not be edited. // ==================================================== // GraphQL fragment: ProductVariant // ==================================================== export interface ProductVariant_pricing_priceUndiscounted_gro...
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config'; interface Blob {} declare class ES extends Serv...
import express, {Express, Request, Response} from 'express'; import path from "path"; import {HTTPS} from "express-sslify" import {Server as ServerIO, Socket} from "socket.io"; import cookieParser from "cookie-parser"; import {Server} from "http"; import {AppUtils} from "./app.utils"; import {AppDataService} from "./ap...
import React, { memo, useContext, useState } from 'react'; import { TableComposable, TableVariant, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table'; import { useQuery } from 'react-query'; import { ClustersContext, IClusterContext, IResourceRow, emptyState } from '@kobsio/plugin-core'; import Details from '.....
// Code converted from: // https://github.com/cryptocoinjs/base-x/blob/master/src/index.js const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; const BASE_MAP = new Uint8Array(256) for (var j = 0; j < BASE_MAP.length; j++) { BASE_MAP[j] = 255 } for (var i = 0; i < ALPHABET.length; i++) { ...
import React, { Component } from 'react'; import './MainScreen.css'; import Modal from 'react-modal'; // Modal.setAppElement("#root"); interface College { fieldStudy: string, degree: string, sYear: string, eYear: string, grade: string, description: string, sName: string, option: string, } export clas...
/* * @license NewConsensus Platform v0.1 * (c) 2020-2021 KaoGeek. http://kaogeek.dev * License: MIT. https://opensource.org/licenses/MIT * Author: chalucks <chaluck.s@absolute.co.th>, shiorin <junsuda.s@absolute.co.th> */ import {Column, PrimaryColumn, Entity, BeforeUpdate, BeforeInsert} from 'typeorm'; import {B...
import { Column, CreateDateColumn, Entity, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm'; import { Exclude } from 'class-transformer'; @Entity({ name: 'user' }) export class User { @PrimaryGeneratedColumn() id: number; @Column({ name: 'username', unique: true }) username: s...
<TS language="es_VE" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click derecho para editar la dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { PathExt } from '@jupyterlab/coreutils'; import { UUID } from '@phosphor/coreutils'; import { Kernel, KernelMessage, ServerConnection, Session } from '@jupyterlab/services'; import { IterableOrArra...
import typescript from "rollup-plugin-typescript2"; import { defineConfig, splitVendorChunkPlugin } from "vite"; export default defineConfig({ base: "./", plugins: [splitVendorChunkPlugin(), { ...typescript(), apply: "build" }] });
/* * Tencent is pleased to support the open source community by making * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License. * * License ...
import {prepareApi} from "../../common"; import * as supertest from "supertest"; import {ApiCodes, Bcrypt, Const, Employee, Web} from "../../../src"; describe("GET /stuffs", () => { prepareApi(); let token: string; beforeEach(async () => { await Employee.create({ email: "admin@example.com", la...
// Copyright 2018, 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 wr...
import { BrandPipe } from './brand.pipe'; describe('BrandPipe', () => { it('create an instance', () => { const pipe = new BrandPipe(undefined); expect(pipe).toBeTruthy(); }); });
// Type definitions for phonegap-plugin-push // Project: https://github.com/phonegap/phonegap-plugin-push // Definitions by: Frederico Galvão <https://github.com/fredgalvao> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace PhonegapPluginPush { type EventResponse = RegistrationEvent...
import { Checkbox, createMuiTheme, createStyles, WithStyles, withStyles } from '@material-ui/core'; import React = require('react'); import altinnTheme from '../theme/altinnStudioTheme'; export interface IAltinnCheckBoxComponentProvidedProps extends WithStyles<typeof styles> { /** If the component is checked */ che...
import { join, dirname, resolve, sep, isAbsolute } from 'path'; import { ensureSymlinkSync, readdirSync, readlinkSync, realpathSync, lstatSync } from 'fs-extra'; import { Memoize } from 'typescript-memoize'; import { PackageCache, Package, getOrCreate } from '@embroider/core'; import { MacrosConfig } from '@embroider/m...
import { applyMiddleware, combineReducers, compose, createStore } from "redux"; import thunk from "redux-thunk"; export interface ResourcesState { } export interface ApplicationState { __resources: ResourcesState; } const __resourcesDefaultState = { }; const defaultState: ApplicationState = { __resources: __re...
import { Meta, Story } from '@storybook/react'; import React from 'react'; import TallyWizard, { TallyWizardProps } from './TallyWizard'; export default { title: 'Wizards/Tally/TallyWizard', component: TallyWizard, parameters: { layout: 'fullscreen' }, } as Meta; const Template: Story<TallyWizardProps> =...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { PostsComponent } from './posts/posts.component'; import { HomeComponent } from './home/home.component'; const routes: Routes = [ { path: "", component: HomeComponent }, { path: "posts", com...
import {pickupEquipment, returnPlayersEquipmentToSupply} from './equipment'; import {logInfo} from './logs'; import {CardState, GameStage, GameState, Team} from './models'; import { getPlayer, getPlayerOrCurrent, getPlayers, isAgent, isBoss, isKingPin, } from './utils'; /** * Causes the player to pickup a...
import React from 'react' import MarkdownElement from '../components/MarkdownElement' import docs from '../../core/docs/attributes.md' function AttributeHooks() { return <MarkdownElement docs={docs} /> } export default AttributeHooks
<TS language="pl" version="2.1"> <context> <name>AddNewAddressDialog</name> <message> <source>Dialog</source> <translation>Dialog</translation> </message> <message> <source>My Address</source> <translation>Mój adres</translation> </message> <message> <sour...
import { Test, TestingModule } from '@nestjs/testing'; import { Python3PipLicensesService } from '@app/default-scan/scanners/pip-licenses/python3-pip-licenses.service'; import * as Python3PipLicensesOutput from './python3-pip-licenses-output.mock.json'; describe('Python3PipLicensesService', () => { let service: Pyt...
import React from 'react'; import styled from 'styled-components'; import { gridSize } from '@atlaskit/theme/constants'; const ImageContainer = styled.div` margin: 0 auto ${gridSize() * 3}px; height: 80px; `; const ErrorImage: React.FunctionComponent = () => ( <ImageContainer> <svg xmlns="http://www.w...
import { useState, useRef, useEffect } from "react"; const users = [ { name: 'Sarah', age: 20 }, { name: 'Alex', age: 20 }, { name: 'Michael', age: 20 } ]; const UserSearch: React.FC = () => { const inputRef = useRef<HTMLInputElement | null>(null); // const inputRef = useRef<any>(null); const [name, setNa...
import "./Header.scss"; import React from "react"; import {HeaderTop} from "./HeaderTop/HeaderTop"; import {HeaderBottom} from "./HeaderBottom/HeaderBottom"; export const Header: React.FC = () => { return ( <div className='header__wrapper'> <HeaderTop /> <hr className='app__hr' /> <HeaderBottom...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** * **Scopes**: Custom deny * * Modifies a custom deny act...
// These tag configs are shared between compiler-dom and runtime-dom, so they // must be extracted in shared to avoid creating a dependency between the two. import { makeMap } from './makeMap.ts' // https://developer.mozilla.org/en-US/docs/Web/HTML/Element const HTML_TAGS = 'html,body,base,head,link,meta,style,title...
export enum Renderer { Main = 'main', Lyric = 'lyric', }
class _Color { a: number; r: number; g: number; b: number; } interface NamedColors { azure: _Color; "blue": _Color; "pale blue": _Color; } module Color { export var namedColors: NamedColors; } var a = Color.namedColors["azure"]; var a = Color.namedColors.blue; // Should not error var a = Color.name...
import * as fs from 'fs'; import * as path from 'path'; import {E2EEnvTemplate, IE2EContext} from './E2EEnvTemplate'; import {WdioConfigTemplate} from './WdioConfigTemplate'; export class WdioConfigGenerator { public static readonly WDIO_CONF_NAME: string = 'wdio.conf.js'; public static readonly E2E_ENV_NAME: ...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { environment } from '../../environments/environment'; import { map } from 'rxjs/operators'; @Injectable({ providedIn: 'root' }) export class LocationlistService { options: any; headers: any; cons...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Mavro</source> <translation type="unfinished"/> </message> <message> <location line="+3...
import * as assert from 'assert'; import * as sinon from 'sinon'; import appInsights from '../../../../appInsights'; import auth from '../../../../Auth'; import { Logger } from '../../../../cli'; import Command, { CommandError } from '../../../../Command'; import config from '../../../../config'; import request from '....
import { Component, Injector, OnInit, EventEmitter, Output, } from "@angular/core"; import { finalize } from "rxjs/operators"; import { AppComponentBase } from "@shared/app-component-base"; import { ProductionServiceProxy, ProductDto, CreateProductDto, } from "@shared/service-proxies/service-proxies"; i...
// This file has been automatically generated by writeMessageClasses.js import { UUID } from '../UUID'; import { MessageFlags } from '../../enums/MessageFlags'; import { MessageBase } from '../MessageBase'; import { Message } from '../../enums/Message'; export class CreateGroupRequestMessage implements MessageBase { ...
import { Component, OnInit } from '@angular/core'; import { ToastrService } from 'ngx-toastr'; import { Router } from '@angular/router'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.css'] }) export class LoginComponent implements OnInit { username: ...
import { Action, Location } from 'history'; import { AnyAction, Reducer } from 'redux'; import { LOCATION_CHANGE } from './actions'; export type RouterState = { location?: Location | null; action?: Action | null; previousLocations?: { location?: Location | null; action?: Action | null }[]; }; export const cr...
/** * 运行环境枚举 */ export enum RunEnvironment { /** * 在feng3d模式下运行 */ feng3d = 1 << 0, /** * 运行在编辑器中 */ editor = 1 << 1, /** * 在所有环境中运行 */ all = (1 << 8) - 1, }
import { Counter } from '../../src/lib/counter.js' import { ConditionalFormat } from '../../src/lib/format.js' describe('ConditionalFormat', () => { it('should get format string', () => { const counter = new Counter() const format = new ConditionalFormat() const f = [ { type: 'textDirective...
import nodePath from "path"; import { promptInput } from "./prompt"; import globby from "globby"; import * as fs from "fs-extra"; import { Item } from "./item"; import { Package } from "./package"; import { error } from "./logger"; import { promptConfirm } from "./prompt"; import { validateIncludedFiles } from "./valid...
import { IIterator } from "../intefaces/iterator.interface"; import { BaseIterator } from "../implements/baseIterator"; export class SelectClause<T> extends BaseIterator<T> implements IIterator<T> { _iterator: (item: T) => boolean; execute(source: T[]): any[]{ if (source) { return (source...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="th_TH" version="2.0"> <context> <name>listchatconfig</name> <message> <source>How many days voting widget should not be expanded after last show</source> <translation type="unfinished"/> </message> <message> <source>Use secure cookie, ...
import * as fs from './utils/fs'; import path from 'path'; import md5 from './utils/md5'; import objectHash from './utils/objectHash'; const pkg = require('../package.json'); import logger from './Logger'; import glob from 'fast-glob'; import isGlob from 'is-glob'; // These keys can affect the output, so if they diffe...
import { Request, Response, NextFunction } from 'express'; import fetch from 'node-fetch'; import { isExist, create } from '../services/user'; import { loginService } from '../services/login'; import { serviceURL, reactURL, clientID, clientSECRET, } from '../utils/constant'; const clientId = `${clientID}`; const cli...
const computeDeepDistinct = <T>(array: T[]): T[] => Array.from(new Set(array.map((element: T): string => JSON.stringify(element)))) .map((element: string): T => JSON.parse(element)) export { computeDeepDistinct, }
import * as React from 'react'; import {Text, View, StyleSheet, Image} from 'react-native'; import {getBackdropPath, getImagePath} from '../api'; import {size, mode, colorsType, datatype} from '../types/types'; import * as Animatable from 'react-native-animatable'; interface FlatListItemsProps{ cardSize?: size; th...
import { newE2EPage } from '@stencil/core/testing'; import { groupingData, d8Data } from './mocked-data'; import { rowsSelector, headerCellsSelector, expanderSelector, rowExpanderSelector, } from './data-table-selectors'; import { GroupLabelDisplayMode } from '../../../src/components/kup-data-table/k...
import assert from "assert"; import EthereumProvider from "../../../src/provider"; import getProvider from "../../helpers/getProvider"; describe("api", () => { describe("miner", () => { describe("miner_stop/eth_mining/miner_start", () => { async function testStopStartMining(provider) { const initia...
import {product_1, t_shirt, ryzen_9, sauce, novel} from "../../assests"; export const mockProducts = [ { _id: "mac-book-air-2021", name: "Mac Book Air 2021", summary: "Lorem ipsum dolor, sit amet consectetur necessitatibus voluptatibus enim, necessitatibus voluptatibus enim,adipisicing elit. Autem...
import { MARKET_TEMPLATES, MARKET_SUB_TEMPLATES, MARKET_TYPE_TEMPLATES, MarketCardTemplate, TemplateInputType, CHOICE, REQUIRED, } from 'modules/create-market/constants'; import { CategoryTemplate, Categories, Template, TemplateInput, } from 'modules/types'; import deepClone from 'utils/deep-clone...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { AppServiceRoutingModule } from './app-service-routing.module'; import { AppServiceComponent } from './app-service.component'; import { FormsModule } from '@angular/forms'; import { AppServiceListComponent } from './app-s...
import { Injectable } from "@nestjs/common" import { RedisService } from "nestjs-redis" import type { Redis } from "ioredis" import { LoggerService } from "../logger/logger.service" import { isFunction, isEmpty } from 'lodash' type DefCallback<T> = null | undefined | T | (() => Promise<T> | T) @Injectable() export cl...
import { UPDATE_NETWORKS, } from '../../constants/actions'; const initialState = []; export default function dapi(state = initialState, action) { switch (action.type) { case UPDATE_NETWORKS: return action.data; default: return state; } }
import { render, screen } from '@testing-library/react' import LinkWrapper from './index' describe('<LinkWrapper />', () => { it('should render link and children', () => { render(<LinkWrapper href="/a-link">Anything</LinkWrapper>) const children = screen.getByRole('link', { name: /anything/i }) expect(c...
import Operator from '../Operator'; import Observable from '../Observable'; import Subscriber from '../Subscriber'; import Subscription from '../Subscription'; import OuterSubscriber from '../OuterSubscriber'; export declare class ExpandOperator<T, R> implements Operator<T, R> { private project; private concurr...
declare namespace jdk { namespace nashorn { namespace api { namespace tree { interface ExpressionTree extends jdk.nashorn.api.tree.Tree { } } } } }
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { HomeModule } from './home/home.module'; import { UserModule } from './user/user.module'; @NgModule({ ...
import {models} from '../models' import { Op } from 'sequelize' import { indexBy } from 'underscore' import { sendNotification } from '../hub' import * as socket from '../utils/socket' import * as jsonUtils from '../utils/json' import * as helpers from '../helpers' import { success } from '../utils/res' import * as ti...
export const LOCALE_EVENT_NAME = 'LOCALE_ADDON_EVENT'; export const ADDON_ID = 'locale-addon'; export const LOCALES_PARAM_KEY = 'locales'; export const PARAM_KEY_DEFAULT = 'defaultLocale'; export const PARAM_LOCK_BUTTON_ENABLED = 'enableLocaleLockButton'; export const LOCALE_EVENT_SET_LOCAL = 'LOCALE_EVENT_SET_LOCAL'; ...
import { FileSaverService } from 'ngx-filesaver'; import { DOCUMENT } from '@angular/common'; import { AfterViewInit, Component, ElementRef, Inject, Input, OnDestroy, OnInit, Renderer2, SecurityContext, ViewChild, } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; im...
import { exists } from '@corioders/nodekit/fs'; import { resolve } from 'path'; import simpleGit, { SimpleGit } from 'simple-git'; import { setCoriodersAttribute } from './attribute'; import { importPathToImportVersion } from './importPath'; export async function download(importPath: string, downloadFolderPath: strin...
export class AttError extends Error { public userMessage?: string constructor (message: string, userMessage?: string) { super(message) this.userMessage = userMessage } public static New (message: string, userMessage?: string) { return new AttError(message, userMessage) } }
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient.ts"; import { NotifyWorkersRequest, NotifyWorkersResponse } from "../models/models_0.ts"; import { deserializeAws_json1_1NotifyWorkersCommand, serializeAws_json1_1NotifyWorkersCommand, } from "../protocols/Aws_json1_1.t...
import { Feature } from '../featureManager'; import { EventLoopMetricOption } from '../metrics/eventLoopMetrics'; import { NetworkTrafficConfig } from '../metrics/network'; import { HttpMetricsConfig } from '../metrics/httpMetrics'; import { V8MetricsConfig } from '../metrics/v8'; import { RuntimeMetricsOptions } from ...
import { TruckRoute } from "../truck-route"; export const TRUCK_ROUTES: TruckRoute[] = [ new TruckRoute(1, 'Hiawatha'), new TruckRoute(2, 'Marion'), new TruckRoute(3, 'SE Cedar Rapids'), new TruckRoute(4, 'NE Cedar Rapids'), new TruckRoute(5, 'NW Cedar Rapids'), new TruckRoute(6, 'SW Cedar Rapi...
/** * OpenAPI definition * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the c...
/* * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * 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 ap...
import * as React from 'react'; import { MouseEvent } from 'react'; import { connect } from 'react-redux'; import './ModalOutlet.pcss'; import HelpModal from '../HelpModal'; import StatsModal from '../StatsModal'; import UnsupportedBrowserModal from '../UnsupportedBrowserModal'; import { Node } from '../../services/wor...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sq" version="2.0"> <context> <name>MInstall</name> <message> <location filename="minstall.cpp" line="64"/> <source>%1 Installer</source> <translation type="unfinished"/> </message> <message> <location filename="minstall.cpp...
export interface BuildTimeReporterWebpackPluginOptions { // eslint-disable-next-line @typescript-eslint/no-explicit-any report: (stats: BuildTimeReporterStats) => Promise<any>; } export interface StepStats { timeStart: number; timeEnd: number; duration: number; } export type Step = 'build' | 'optimize' | 'e...
/* eslint-disable no-unused-vars */ /* * @Author: Zed.wu * @Date: 2022-02-14 17:51:11 * @LastEditors: Zed.Wu * @LastEditTime: 2022-02-15 15:37:16 */ export interface ILoginData { token: string; userId: string; userName: string; } export interface ILoginApi { login: (params) => Promise<any>; } interface R...
import { isArray } from "@vangware/utils"; import type { CronList } from "../types/CronList.js"; /** * Check if given is `CronList`. * * @category Validation * @param value Value to check. */ export const isCronList = <Value>(value: unknown): value is CronList<Value> => isArray(value);
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** @jsx jsx */ import { Button, H1 } from "@blueprintjs/core"; import { jsx, css } from "@emotion/react"; import React, { useEffect, useState } from "react"; import { StopwatchService } from "../Lib/StopwatchService"; const CONTAINER = css` display: flex; height: 100%; justify-content: center; align-items: c...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bitcoin</source> <translation>A prop de ClockWorkCoin</translation> ...
import { MatchGameMode } from '../../../matches/constants/match-game-mode.enum'; export interface MatchModeDto { readonly mode: MatchGameMode; }
import React from 'react'; import Button from '@components/button'; import Trigger from '@components/trigger'; const popup = ( <div style={{ padding: '4px 0' }}> {new Array(3).fill(1).map((_, index) => ( <div style={{ padding: '4px 16px', fontSize: 14, lineHeight: '22px' }} key={index}> Popup conte...
function reverseSeq(n: number): number[] { return Array.from({ length: n }, (_, index) => n - index); } export default reverseSeq;
export interface ArchiveSubmission { created: string; dspUuid: string; dspUrl: string; submissionUuid?: any; fileUploadPlan: any[]; errors: any[]; _links: object; }
'use strict'; import * as express from 'express'; import * as passport from 'passport'; import * as auth from '../auth.service'; import {logger} from '../../helpers/logger'; var router = express.Router(); router.post('/', function(req, res, next) { const request = passport.authenticate('local', function(err, user...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-last-added-sell', templateUrl: './last-added-sell.component.html', styleUrls: ['./last-added-sell.component.css'] }) export class LastAddedSellComponent implements OnInit { cards = [ { title: 'Card Title 1', descript...