text
stringlengths
10
953k
/// <reference path='fourslash.ts'/> ////module M { /////*1*/var x=1; ////} var originalOptions = format.copyFormatOptions(); format.document(); goTo.marker("1"); verify.currentLineContentIs(" var x = 1;"); var copy = format.copyFormatOptions(); copy.TabSize = 2; copy.IndentSize = 2; format.setFormatOptions(co...
/* * Copyright 2018-2019 Unbounded Systems, 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 l...
import { split } from "./split"; import { rearrange } from "./rearrange"; import { addCapitals, getCapitals, removeCapitals } from "./capitals"; import { addPunctuation, getPunctuation, removePunctuation } from "./punctuation"; export function transformToPigLatin(text: string): string { const words = split(text); ...
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { RouterModule } from '@angular/router'; import {TableModule} from 'primeng/table'; import { PaginatorModule } from 'primeng/paginator'; import {ButtonModule} from 'primeng/button'; import {GrowlModule} from 'primeng/growl'; import {DropdownModule...
/* -------------------------------------------------------------------------- */ /* Product Name: ForumEngine */ /* Author: Mediasoftpro (Muhammad Irfan) */ /* Email: support@mediasoftpro.com ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { MapsComponent } from './maps.component'; import { GmapsComponent } from './gmaps/gmaps.component'; import { LeafletComponent } from './leaflet/leaflet.component'; import { BubbleMapComponent } from './bubble/bubb...
import { TableCell } from "@material-ui/core"; const InlineTableCell: React.FC = ({ children }) => { return ( <TableCell style={{ whiteSpace: "nowrap" }} align="right"> {children} </TableCell> ); }; export default InlineTableCell;
import React from "react"; import './style.css'; interface ICloseButtonProps { onClick: () => void; className?: string; title?:string; children?: any; } export default function CloseButton({ className = "", title = "Close", onClick = () => {}, children = <i className="fa fa-close"></i>, }: ICloseButton...
/*! * @license * Copyright 2016 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...
import { Instruction, InstructionDefinition, OpCode } from "./instructions"; export type RstAddress = | 0x0000 | 0x0008 | 0x0010 | 0x0018 | 0x0020 | 0x0028 | 0x0030 | 0x0038; export const RST_ADDRESSES: readonly RstAddress[] = [ 0x0000, 0x0008, 0x0010, 0x0018, 0x0020, 0x0028, 0x0030, 0...
import { Injectable, NestMiddleware, BadRequestException, NotFoundException, ForbiddenException, } from '@nestjs/common'; import { Request, Response } from 'express'; import { loginSchema } from '../auth-shemas'; import { UserService } from '../../users/services/user.service'; @Injectable() export class Log...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { ChartsModule } from 'ng2-charts'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, ChartsModule, ], providers: [], b...
// Copyright © 2015-2019 Esko Luontola // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 import "purecss/build/pure-min.css"; import "purecss/build/grids-responsive-min.css"; import "./Layout.css";
export {}; function oneway<T>(): { read: () => Promise<T>; write: (v: T) => void } { let stream: T[] = []; let waitingnow: ((v: T) => void) | undefined; return { read: () => { return new Promise(resolve => { if (stream.length > 0) { return resolve(stream.shift()); } else { waitingnow = v => {...
import { Route, NavigationGuardNext } from 'vue-router' import { isAuthenticated } from '../../services/authentication' export default async (to: Route, from: Route, next: NavigationGuardNext) => { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if (typeof to.meta === 'object' && 'private' i...
import { underscored } from "underscore.string" import { pick } from "lodash" import { analyticsHooks } from "./analyticsHooks" require("./events") const proxy = [ "user", "artwork", "inquiry", "modal", "collectorProfile", "userInterests", "state", ] export function attachInquiryAnalyticsHooks(context) ...
import * as React from 'react'; export type AllocineProps = React.ComponentPropsWithoutRef<'svg'> & { /** * Hex color or color name */ title?: string; /** * The size of the Icon. */ color?: string; /** * The title provides an accessible short text description to the SVG */ size?: string |...
import { matSelect, role } from '../support/util'; export class UserPage { static addUser(user:string[], roleOption:string[]){ cy.log('**Adding new user**'); user.forEach(key => { cy.datacy(key[0]).type(key[1]); }); role('dropDown', roleOption[0], 'addBtn'); // matSelect('dropDown', roleOpt...
import { ComponentMeta, ComponentStory } from "@storybook/react"; import { ServiceForm } from "./ServiceForm"; import { ContentCard } from "components"; import { ConnectorSpecification } from "core/domain/connector"; import { isSourceDefinitionSpecification } from "core/domain/connector/source"; const TempConnector =...
import React, { useState, useEffect } from 'react'; import { withCookies } from 'react-cookie'; import { Button } from 'antd'; import { useTranslation } from 'react-i18next'; const Disclaimer = ({ cookies }: { cookies: any; }) => { const [ack, setAck] = useState(true); useEffect(() => { const ack = c...
import crypto from 'crypto'; /** Replace all '=' regardless of position (in valid base64, = should only be present at the end) */ const urlSafeRegex = /[+/=]/g; const replaceMap: Record<string, string> = {'+': '-', '/': '_', '=': ''}; /** Use a default of 24 bytes of random data so the encoded representation is 32 ch...
import * as React from 'react'; const TextNumberFormat20FilledIcon = () => { return( <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M16.9651 2.97706C17.4877 3.23463 17.8818 3.71516 18.1434 4.4446C18.2833 4.83449 18.0806 5.26393 17.6907 5.40378C17.3008 ...
import { Table, Column, Model, DataType } from 'sequelize-typescript'; @Table export class User extends Model<User> { @Column({ defaultValue: DataType.UUIDV4, primaryKey: true, type: DataType.UUID, allowNull: false, }) id: string; @Column({ allowNull: false, type: DataType.STRING, ...
import { format, startOfHour, startOfMonth, startOfQuarter, startOfToday, startOfWeek, startOfYear, startOfYesterday, subDays, subHours, subMinutes, subMonths, subQuarters, subWeeks, subYears, } from 'date-fns'; import { DatabaseConnectorInfoType, TimeSeriesRange } from './state'; export ...
/*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ // tslint:disable:cyclomatic-complexity import { ComponentMeta, ComponentParams, StrictModDeclVal } from 'core/component'; export const PARENT = {}; /** * In...
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Document } from 'mongoose'; export interface ProductDto { //dto создание товара title: string; //название prise: number; //цена que: number; //количество category: string; //категория } //товар export type ProductDocuemnt = Product & Do...
import * as nsFeature from '../Feature' import * as nsBarNum from '../BarNum' import * as nsFooLure from '../FooLure' describe('Feature', () => { it('should expose the known literal values', () => { const knownValues: Array<nsFeature.Feature> = nsFeature.idtltFeatureKnownValues expect(knownValues).toEqual([...
import '~shared/utils/sourcemap'; import { app } from 'electron'; import { platform } from 'os'; import log from 'electron-log'; /////// /////////////////////////////////////////////////////////////////////////////////////////// import Application from './backend/Application'; // SETUP LOGGING ///////////////////////...
import {singleton} from "tsyringe"; import {controller, route, body, routeParameter} from "@pristine-ts/networking"; import {HttpMethod} from "@pristine-ts/common"; @controller("/api/1.0") @singleton() export class IbexController { constructor() { } @route(HttpMethod.Get, "/ibexs") public list() { ...
/* * @Author: sam.hongyang * @LastEditors: sam.hongyang * @Description: function description * @Date: 2020-06-08 18:30:46 * @LastEditTime: 2020-06-10 11:19:00 */ import { Controller, Post, UseInterceptors, UploadedFile, HttpException, HttpStatus } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/p...
/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-explicit-any */ import { assert } from 'chai'; import { HttpResponse, Headers, ResponseRedirect, IHttpRequest } from '../../../index.js'; import * as RequestUtils from '../../../src/runtime/http-engine/RequestUtils.js'; desc...
import React from "react"; import { Linking } from "react-native"; import { useTranslation } from "react-i18next"; import { BottomDrawer, Box, Flex, Text } from "@ledgerhq/native-ui"; import { urls } from "../../config/urls"; import ExternalLink from "../../components/ExternalLink"; type Props = { isOpen: boolean; ...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platf...
import { Injectable } from '@angular/core'; @Injectable() export class TransferService { step: 0 | 1 | 2 = 1; /** * 付款账户 */ pay_account: string; /** * 收款账户类型 */ receiver_type: 'alipay' | 'bank'; get receiver_type_str() { return this.receiver_type === 'alipay' ? '...
export type NextDeliverySlipHref = | Readonly<{ hasNext: false }> | Readonly<{ hasNext: true; href: string }> export type LoadCurrentDeliverySlipError = | Readonly<{ type: "empty" }> | Readonly<{ type: "not-found" }>
import Vue from 'vue' import VueRouter, { RouteConfig } from 'vue-router' import Home from '../views/Home.vue' //引用Main.vue import Main from '../views/Main.vue' //引用CourseList.vue import CourseList from '../views/courses/CourseList.vue' Vue.use(VueRouter) const routes:RouteConfig[] = [ { path: '/', //引用组件 ...
import {clamp} from '@shopify/javascript-utilities/math'; const VERTICAL_PADDING = 13; export function calculateDraggerY( hue: number, sliderHeight: number, draggerHeight: number, ) { const offset = offsetForHue(hue, sliderHeight, draggerHeight); return clamp(offset, 0, sliderHeight); } export function hue...
import { Injectable, Inject } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { OrderModel } from '../orders/orderModel'; import { Observable, of } from 'rxjs'; import { CustomerModel } from '../customers/CustomerModel'; @Injectable({ providedIn: 'root' }) export class MockHttpClien...
// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angul...
import {EntityForm} from './Entity.form'; export const Form = { // In D365 Form '<%= formname %>' specify Form onLoad function: <%= publisher %>.<%= namespace %>.<%= entity %>.<%= formname %>.Form.onLoad onLoad: async (executionContext: Xrm.Events.EventContext): Promise<void> => { return EntityForm.onL...
import type { ErrorInfo, ReactNode } from 'react' import { Component } from 'react' import styled from 'styled-components' interface Props { children?: ReactNode } interface State { error: Error | null info: ErrorInfo | null } class ErrorBoundary extends Component<Props, State> { state = { error: null, ...
export { default as TwoToneAnnouncement } from './Icon';
import { html, fixture, expect } from '@open-wc/testing'; import '.'; import { UUIBadgeElement } from './uui-badge.element'; describe('UuiBadge', () => { let element: UUIBadgeElement; beforeEach(async () => { element = await fixture(html` <uui-badge>Hello uui-button</uui-badge> `); }); it('renders a slot...
import * as debugLogger from "debug-logger"; import { EventEmitter } from "eventemitter3"; import { ChatClient } from "../client/client"; import { hasAllStateTags, RoomState, RoomstateMessage, } from "../message/twitch-types/roomstate"; import { ClientMixin } from "./base-mixin"; const log = debugLogger("dank-tw...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { SimilarbooksComponent } from './similarbooks.component'; describe('SimilarbooksComponent', () => { let component: SimilarbooksComponent; let fixture: ComponentFixture<SimilarbooksComponent>; beforeEach(async(() => { TestBed....
/// <reference path="jasmine.d.ts" /> /// <reference path="Mocks.ts" /> /// <reference path="TestUtils.ts" /> describe('A generic Resource', () => { var resource: ex.Resource<any>; var mocker = new Mocks.Mocker(); beforeEach(() => { resource = new ex.Resource<any>('a/path/to/a/resource.png...
import Redis, { RedisOptions } from 'ioredis' import _ from 'lodash' import { v4 as uuid } from 'uuid' import { Logger } from 'winston' import { createLogger } from './logger' import { IPayload, Message, MessageEventEmitter, PendingMessageMetadata } from './message' import { TaskPool } from './task-pool' expor...
import React, { useEffect, useState } from "react"; import { Image, View, ScrollView, Text, StyleSheet, Dimensions, Linking, } from "react-native"; import MapView, { Marker } from "react-native-maps"; import { Feather } from "@expo/vector-icons"; import { TouchableOpacity } from "react-native-gesture-handler"; i...
import { Journal } from './journal' import { NewCommander } from './journal-events' import path from 'path' describe('test events', () => { it('should emit an event', (done) => { const journal = new Journal() const ev: NewCommander = { Name: 'New Guy', Package: 'ImperialBountyHunter', event...
export enum OrderError { InvalidSignature = 'INVALID_SIGNATURE', }
import { AdminDashboardMainComponent } from './main/main.component'; export const containers: any[] = [AdminDashboardMainComponent]; export * from './main/main.component';
import * as React from 'react'; import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; import Icon from '../icon'; import classnames from 'classnames'; import { BreadcrumbProps } from '../breadcrumb'; import Divider from '../divider'; import Tag from '../tag'; import Breadcrumb from '../breadcrumb'; ...
/** * @author Echi * @desc 用于解决跨页面的数据存储在本地的问题,并设置有效期 */ class Storage { private prefixKey = "echi_vue_todo_"; constructor(strategy = "localStorage") { this["strategy"] = strategy; } /** * @param [string] key * @param [any] val * @param [number] maxAge 存储时间:s */ set(key, val, maxAge = 0) ...
import { evaluatePokerHand } from '../evaluatePokerHand'; import type { PokerCard } from '../PokerCard'; describe( 'evaluatePokerHand', () => { it( 'handles a high card', () => { const cards: PokerCard[] = [ '2h', '5c', '6c', '7s', 'Td', 'Ad', 'Kd' ]; const subject = evaluatePokerHand( cards ); expect( ...
import React from 'react'; import { mutuallyExclusiveTrueProps } from 'airbnb-prop-types'; import useStyles, { StyleSheet } from '../../hooks/useStyles'; import { styleSheetItem } from './styles'; export type ListItemProps = { /** Render with a top/bottom borders. Last item will have both. */ bordered?: boolean; ...
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { useSnackbar } from "notistack"; import React from "react"; import { useMutation, UseMutationOptions, useQuery, useQueryClient, UseQueryResult, } from "react-query"; import { BasicControlCommand, fetchCapabilities...
import React from "react" export const AngelList = () => ( <svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 21.9 31.4" > <g> <path d="M18.3,13.4c1.3,0.2,2.2,0.8,2.7,1.6c0.5,0.8,0.8,2.2,0.8,4c0,3.6-1.1,6.6-3.3,8.9c-2.2,2.3-5,3.5-8.4,3.5 c-1.3,0-2.6-...
/* * Copyright 2020 - Transmute Industries 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...
type EnumUntypedTest1 = number; let EnumUntypedTest1: any = {}; EnumUntypedTest1.XYZ = 0; EnumUntypedTest1.PI = 3.14159; EnumUntypedTest1[EnumUntypedTest1.XYZ] = "XYZ"; EnumUntypedTest1[EnumUntypedTest1.PI] = "PI"; export type EnumUntypedTest2 = number; export let EnumUntypedTest2: any = {}; EnumUntypedTest2.XYZ = 0; ...
// tslint:disable:no-console import { Component, NgModule, ViewEncapsulation } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { McButtonModule } from '@ptsecurity/mosaic/button'; import { ThemePalett...
import React from 'react' import { Tag, TagProps } from '@chakra-ui/react' interface ApprovalTagProps extends TagProps { status: boolean } const VerifiedTag: React.FC<ApprovalTagProps> = (props) => { const divProps = Object.assign({}, props) delete divProps.status const generator = React.useMemo(() => { ...
export default function throws(fn: () => any): boolean | Promise<boolean>;
import { Switch, Route } from 'react-router-dom'; import Home from '../pages/Home'; import SignIn from '../pages/SignIn'; import CharacterVehicles from '../pages/CharacterVehicles'; import RenewVehicle from '../pages/RenewVehicle'; import VehicleDetails from '../pages/VehicleDetails'; const Routes = () => ( <Switch...
/** * Test for pasting a large number of lines * * Regression test for #2414 */ import * as assert from "assert" import * as Oni from "oni-api" import { createNewFile, getElementByClassName, getTemporaryFilePath, navigateToFile, } from "./Common" export const test = async (oni: Oni.Plugin.Api) => {...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { PsImageDisclaimerNg7LibComponent } from './ps-image-disclaimer-ng7-lib.component'; describe('PsImageDisclaimerNg7LibComponent', () => { let component: PsImageDisclaimerNg7LibComponent; let fixture: ComponentFixture<PsImageDisclaime...
import { Constructor } from '@open-wc/dedupe-mixin'; import { LitElement } from '@lion/core'; export interface FormatNumberPart { type: string; value: string; } // Take the DateTimeFormat and add the missing resolved options as well as optionals export declare interface FormatDateOptions extends Intl.DateTimeForm...
import { Buffer } from "buffer"; export async function* getReadableStreamData(data: ReadableStream): AsyncGenerator<Buffer> { const reader = data.getReader(); try { while (true) { const { done, value } = await reader.read(); if (done) return; yield Buffer.from(value); } } catch (e) { ...
import * as express from 'express'; import { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3tec'; import { env } from '../env'; export const homeLoader: MicroframeworkLoader = (settings: MicroframeworkSettings | undefined) => { if (settings) { const expressApp = settings.getData('express_...
import Vue from 'vue' import App from './App.vue' import router from './router' Vue.config.productionTip = false import SemanticUiVue from 'semantic-ui-vue'; import 'semantic-ui-css/semantic.min.css'; Vue.use(SemanticUiVue); import VueCompositionApi from '@vue/composition-api'; Vue.use(VueCompositionApi); new Vue({...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
import * as FluentUI from '@fluentui/react' import { KnobDefinition, KnobGeneratorOptions, KnobGenerator } from '../../types' import * as componentGenerators from './componentGenerators' import * as propGenerators from './propGenerators' import * as typeGenerators from './typeGenerators' import * as _ from 'lodash' c...
import * as iam from '@aws-cdk/aws-iam'; import * as lambda from '@aws-cdk/aws-lambda'; import { Construct, Duration, Lazy, Stack } from '@aws-cdk/core'; import { CfnAuthorizer } from '../apigateway.generated'; import { Authorizer, IAuthorizer } from '../authorizer'; import { IRestApi } from '../restapi'; /** * Base ...
// @ts-ignore try{self['workbox:navigation-preload:6.1.5']&&_()}catch(e){}
import { TestBed } from '@angular/core/testing'; import { AddTruckService } from './add-truck.service'; describe('AddTruckService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: AddTruckService = TestBed.get(AddTruckService); expect(service)....
import Discord from 'discord.js' import {UserModel} from "../../models/user"; import Command, { ICommand } from '../command'; export default class ShowVkGroupsCommand extends Command implements ICommand { commandNames: string[] = ['show', 's']; description = 'Просмотр групп из списка' async run(msg: Discord.Mes...
import Box, { BoxProps } from 'components/Box'; import React, { FC } from 'react'; import AnimateHeight from 'react-animate-height'; export type CollapseProps = { open?: boolean; start?: number; end?: number; } & BoxProps; const Collapse: FC<CollapseProps> = ( { open, start = 0, end = 'auto', ...
import { CalculatorData } from 'data/calculate' const SAVED_DATA_KEY = 'savedEntries' const _getSavedForms = (): { [key: string]: CalculatorData } => { const saved = JSON.parse(localStorage.getItem(SAVED_DATA_KEY) || '{}') // Fix for old data stored as array if (Array.isArray(saved)) { localStorage.setItem...
export function withOptions<T, N, O>(options: T, input: (options: T, node: N) => O): (node: N) => O { return (node) => input(options, node); }
type EventCallback<Return = void> = (...data: any) => Return export default EventCallback
import { createAction, createAsyncAction } from 'typesafe-actions'; import { ConsumerGroupID, FailurePayload, TopicName, TopicsState, ConnectorName, ConnectorConfig, } from 'redux/interfaces'; import { Cluster, ClusterStats, ClusterMetrics, Broker, BrokerMetrics, ConsumerGroup, ConsumerGroupDe...
declare module 'browser-id3-writer'{ export interface ID3WriterSupportFrames{ /** * song title * @param {title} */ TIT2?: string; /** * album title * @param {string} */ TALB?: string; /** * song artists ...
import * as cxapi from '@aws-cdk/cx-api'; import * as minimatch from 'minimatch'; import { SdkProvider } from '../aws-auth'; import { StackCollection } from './cloud-assembly'; export function looksLikeGlob(environment: string) { return environment.indexOf('*') > -1; } // eslint-disable-next-line max-len export asy...
import { TestBed } from '@angular/core/testing'; import { IngredientService } from 'shared/services/ingredient.service'; describe('IngredientService', () => { let service: IngredientService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(IngredientService); }); it('s...
import { preprocess } from "glimmer-syntax"; import { TemplateVisitor } from "glimmer-compiler"; function actionsEqual(input, expectedActions) { let ast = preprocess(input); let templateVisitor = new TemplateVisitor(); templateVisitor.visit(ast); let actualActions = templateVisitor.actions; // Remove the A...
export { PblNgridPaginatorKind, PblPaginator, PblPagingPaginator, PblTokenPaginator, PblPaginatorChangeEvent } from './lib/paginator/index'; export { PblDataSourceConfigurableTriggers, PblDataSourceTriggers, PblDataSourceTriggerChange, PblDataSourceTriggerChangedEvent, PblDataSourceAdapter, PblDa...
export { WorkspaceComponent } from './workspace-component'; export { ComponentStatus } from './component-status';
declare module "*.ttf" { const content: string; export default content; }
/* * The MIT License (MIT) * * Copyright (c) 2017 NEM * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mo...
/* * 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 ...
const WSP = /[\t\n\f ]/; const ALPHA = /[A-Za-z]/; const CRLF = /\r\n?/g; export function isSpace(char: string): boolean { return WSP.test(char); } export function isAlpha(char: string): boolean { return ALPHA.test(char); } export function preprocessInput(input: string): string { return input.replace(CRLF, '\n...
export { default as TwoToneViewColumn } from './Icon';
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { PatientDetailComponent } from './patient-detail.component'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatBottomSheetModule } from '@angular/material/bottom-sheet'; import { MatButton...
import { Connection } from "typeorm" import { getFindCourseClassLiveStateByCourseClassIdBatchDataLoader } from "./findCourseClassLiveStateByCourseClassId" export type CourseClassLiveStateDataLoader = ReturnType<typeof getCourseClassLiveStateDataLoader> export function getCourseClassLiveStateDataLoader(connection: Co...
export { default as SnackContainer } from "./SnackContainer.vue"; export { default as SnackProvider } from "./SnackProvider.vue"; export * from "./store";
<TS language="eo" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Dekstre-klaku por redakti adreson aŭ etikedon</translation> </message> <message> <source>Create a new address</source> <tra...
import { Game } from '../models/Game'; import { User } from '../models/User'; import { GameStatesEnum, UserStatesEnum } from '../enums/states'; import { GameState, SelfPlayedTile } from '../models/GameState'; import { HandPointResults } from '../games/mahjong/types/MahjongTypes'; /* -----------------------------------...
import { describe, it } from "mocha" import { assert } from "chai" import { constants, utils, ethers } from "ethers" import { TxFilter } from '../src/txfilter' import { OwnershipPredicate, PredicatesManager, Segment, SignedTransaction } from '@layer2/core' describe('TxFilter', () => { const AlicePrivateKey = '0xe88...
import { Module } from '@nestjs/common'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { TypeOrmModule } from '@nestjs/typeorm'; import * as Path from 'path'; @Module({ imports: [ TypeOrmModule.forRootAsync({ imports: [ConfigModule], inject: [ConfigService], useFactory: (...
import React, { createContext, useCallback, useContext, useEffect } from 'react' import { Disclosure, Transition } from '@headlessui/react' // @ts-ignore import AccordionStyles from './Accordion.module.css' import { IconChevronUp } from '../Icon/icons/IconChevronUp' import Typography from '../Typography' type ContextV...
import { Component, OnInit } from '@angular/core'; import{HosInfoService} from '../common-services/hos-info.service' @Component({ selector: 'app-hos-info', templateUrl: './hos-info.component.html', styleUrls: ['./hos-info.component.scss'] }) export class HosInfoComponent implements OnInit { allhosinfo: any = [...