text
stringlengths
10
953k
import { NgModule } from '@angular/core'; import { MatInputModule } from '@angular/material/input'; import { MatSelectModule } from '@angular/material/select'; const materials = [ MatInputModule, MatSelectModule ]; @NgModule({ imports: materials, exports: materials }) export class MaterialsModule { }
export { default } from './button.vue'; export interface LButtonConfig { activeClass: string; type: 'submit' | 'button' | 'reset'; }
export * from './accounts.service' export * from './users.service' export * from './firms.service' export * from './event-handling.service'
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sah" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Jumbucks</source> <translation type="unfinished"/> </message> <message> <location line...
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, HandlerExecutionContext, HttpHandlerOptions...
import { Component } from '@angular/core'; import { GetTeamService } from './get-team.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { user: any = []; constructor(private getTeamService: GetTeamService) { }...
import { CompletionsCommand } from '../../deps.ts'; export const completionsCmd = new CompletionsCommand();
import * as React from 'react'; import { Box as ReakitBox } from 'reakit'; import { useClassName, createComponent, createElement, createHook } from '../utils'; import { Box, BoxProps } from '../Box'; import { usePage } from './usePage'; import * as styles from './styles'; export type LocalPageWithSidebarMinimizeProp...
import React from 'react'; import { SvgIcon, SvgIconProps } from '@kukui/ui'; const SvgComponent = props => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}> <path d="M64 224h352c33.7 0 62.87-26.15 63.93-59.84 1.979-62.51-40.76-118.3-98.67-131.8-10.15-2.369-20.37 6.664-18.69 16.95C366 7...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; module('Integration | Component | bs/card/footer', function (hooks) { setupRenderingTest(hooks); test('it renders', async function (assert...
import { action, observable, computed, isObservable, toJS, reaction, comparer, IReactionDisposer, override, makeObservable, } from "mobx"; import { Field, ProcessValue, ValidationMessage, ProcessOptions, errorMessage, } from "./form"; import { AnyFormState } from "./state"; import { FormA...
import React from 'react' import { IosFaceRecognition as originIcon } from '@icon-park/svg' import { IIconProps } from '@icon-park/svg/lib/runtime' import svg64 from 'svg64' const IosFaceRecognition = (props: IIconProps) => { const base64Data = svg64(originIcon(props)) //@ts-ignore next-line return <image ...
// <auto-generated /> /// <reference path="types.ts" /> /* @internal */ namespace ts { export var Diagnostics = { Unterminated_string_literal: { code: 1002, category: DiagnosticCategory.Error, key: "Unterminated string literal." }, Identifier_expected: { code: 1003, category: DiagnosticCategory.Erro...
import { removeDuplicateFromSortedList } from './removeDuplicateFromSortedList'; describe('removeDuplicateFromSortedList function', () => { it('should work', () => { const actual1 = removeDuplicateFromSortedList([ 1, 1, 2, 3, 4, 4, 4, 4, 4, 5, 5, 6, 7, 9, ]); expect(actual1).toBe(8); const act...
import {isTopLevelDeclaration} from "../parser/tokenizer"; import {TokenType as tt} from "../parser/tokenizer/types"; import type TokenProcessor from "../TokenProcessor"; export interface DeclarationInfo { typeDeclarations: Set<string>; valueDeclarations: Set<string>; } export const EMPTY_DECLARATION_INFO: Declar...
import { Injectable } from '@angular/core'; @Injectable() export class Test31Service { logMessage() { console.log('wondeful message'); } }
/** * @license Angular v12.0.3 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ import { AfterContentInit } from '@angular/core'; import { ChangeDetectorRef } from '@angular/core'; import { Compiler } from '@angular/core'; import { ComponentFactoryResolver } from '@angular/core'; import { Componen...
import { chain, externalSchematic, noop, Rule, schematic, Tree, } from '@angular-devkit/schematics'; import { addDepsToPackageJson, formatFiles, readJsonInTree, setDefaultCollection, updateJsonInTree, updateWorkspace, Linter, } from '@nrwl/workspace'; import { angularDevkitVersion, angular...
import { NgModule } from '@angular/core'; import { ProcessModule } from '../process/process.module'; import { UserService } from './facade/index'; import { UserStoreModule } from './store/user-store.module'; @NgModule({ imports: [UserStoreModule, ProcessModule], providers: [UserService], }) export class UserModule...
import { CommonServerSideParams } from '@/app/types/CommonServerSideParams'; import Code from '@/common/components/dataDisplay/Code'; import { OnlyBrowserPageProps } from '@/layouts/core/types/OnlyBrowserPageProps'; import { SSGPageProps } from '@/layouts/core/types/SSGPageProps'; import BuiltInUtilitiesSidebar from '@...
import { Operator } from '../Operator'; import { Observable } from '../Observable'; import { Subscriber } from '../Subscriber'; export declare class FindValueOperator<T, R> implements Operator<T, R> { private predicate; private source; private yieldIndex; private thisArg; constructor(predicate: (val...
import React, { FC } from 'react'; import { Layout, Menu } from 'antd'; const { Header: HeaderLayout } = Layout; const Header: FC = () => ( <HeaderLayout className='top-header'> <div className='logo'> <img src='/logo.png' className='logo' alt='Logo' /> </div> <Menu theme='light' className='top-men...
import { LitElement, html, css, customElement } from 'lit-element'; import '@vaadin/vaadin-ordered-layout/src/vaadin-vertical-layout.js'; import '@vaadin/vaadin-text-field/src/vaadin-text-field.js'; import '@vaadin/vaadin-select/src/vaadin-select.js'; import '@vaadin/vaadin-list-box/src/vaadin-list-box.js'; import '@va...
import { CSSProperties } from 'react'; import classNames from 'classnames'; interface MergeProps { style?: CSSProperties | undefined, className?: string | undefined; [key: string]: any; } function mergeStyle(style: CSSProperties | undefined, newStyle: CSSProperties | undefined) { if (!style) { return new...
import { IDisposable } from '@lumino/disposable'; import { Poll } from '@lumino/polling'; import { ISignal } from '@lumino/signaling'; import { Builder, BuildManager } from './builder'; import { NbConvert, NbConvertManager } from './nbconvert'; import { Contents, ContentsManager } from './contents'; import { KernelSpec...
import { Role } from '../enum/role' export const user = ( username: string, password: string, firstname: string, lastname: string, phoneNumber: string, role: Role, products: Object[], histories: Object[] ) => ({ username, password, firstname, lastname, phoneNumber, role, products, histo...
import { DataType } from "@microsoft/fast-tooling"; import type { WebComponentDefinition } from "@microsoft/fast-tooling/dist/esm/data-utilities/web-component"; import { Direction } from "@microsoft/fast-web-utilities"; import { fastDesignSystemDefaults } from "../fast-design-system"; export const fastDesignSystemProv...
import React, { SelectHTMLAttributes } from 'react'; import './styles.css'; interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> { label: string; name: string; options: Array<{ value: string; label: string; }>; } const Select: React.FC<SelectProps> = ({label, name, op...
import { previewComment } from '../../src/contracts/discussion/previewComment'; it('should preview comment', async () => { const ret = await previewComment( `**foo** test <script>a</script> ` ); expect(ret).toMatchInlineSnapshot(` "<p><strong>foo</strong><br>test<br>&lt;script&gt;a&lt;/script&gt;</p> ...
import { Injectable } from '@angular/core'; import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Routes } from '@angular/router'; import { UserRouteAccessService } from '../../shared'; import { JhiPaginationUtil } from 'ng-jhipster'; import { VersionComponent } from './version.component'; import { VersionDe...
import { parse } from '@babel/parser' import type { File } from '@babel/types' import type { NodePath } from 'ast-types/lib/node-path' import { visit } from 'recast' import type { namedTypes } from 'ast-types' import Debug from 'debug' import fs from 'fs-extra' import stringify from 'stringify-object' const debug = De...
// Search for Tweets within the past seven days // https://developer.twitter.com/en/docs/twitter-api/tweets/search/quick-start/recent-search import Twitter from 'twitter-lite'; import needle from "needle"; const SECRETS = process.env.REPO_SECRETS_JSON ? JSON.parse(process.env.REPO_SECRETS_JSON) : {}; const client = ...
import React from "react"; import { Route, Switch, withRouter } from "react-router-dom"; import DamlLedger from "@daml/react"; import { useUserState } from "../../context/UserContext"; import { wsBaseUrl, httpBaseUrl } from "../../config"; import Profile from "../../pages/profile/Profile"; const FrontLayout = (props: a...
/// /// Copyright © 2016-2020 The Thingsboard 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...
// // private protected public 访问类型 // // public 允许我在类的内外被调用 // // private 允许在类内使用 // // protected 允许在类内及继承的子类使用 // // class Person { // // public name: string = ''; // // public sayHi() { // // console.log("hi"); // // } // // } // // const person = new Person(); // // person.name = 'dell'; // /...
import {Component} from "@angular/core"; import { IRepeatItemConfig, RepeatComponent } from "@nova-ui/bits"; @Component({ selector: "nui-repeat-example", templateUrl: "./repeat-docs.example.component.html", }) export class RepeatExampleComponent { getItemConfigKey(key: keyof IRepeatItemConfig): string { ...
import defaultLocale from './zh_CN' export default defaultLocale;
import { ConflictException, Injectable, NotFoundException } from '@nestjs/common'; import { UserRegisterDto } from '../dto/user-register'; import * as bcrypt from 'bcrypt'; import { Repository } from 'typeorm'; import { UserEntity } from '../entities/user.entity'; import { InjectRepository } from '@nestjs/typeorm'; imp...
/** * title: 操作栏 * desc: 通过传入 `operations` 组件数组,来展示对应的操作栏。它与tools api最直观的区别就是它位于Table的左侧,而后者在右侧。 * background: '#f0f2f5' */ import React from 'react'; import { Table, Button, Icon, message } from '@mlz/admin'; import axios from 'axios'; const columns = [ { title: 'Name', dataIndex: 'name', primary: t...
/* * 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 Boom from 'boom'; import _ from 'lodash'; import { ILegacyScopedCluste...
cy.wrap('foo').should('be.a', 'string') cy.wrap('foobar').should('have.string', 'bar') cy.wrap(6).should('be.above', 5) cy.wrap({ foo: 'bar' }).should('be.an', 'object') cy.wrap(6).should('be.at.least', 5) cy.wrap(4).should('be.below', 5) function argsTest() { cy.wrap(arguments).should('be.arguments') } cy.wra...
import { Entity, Column, PrimaryGeneratedColumn, OneToMany, ManyToOne } from 'typeorm'; import { Author } from 'src/author/entities/author.entity'; import { Book } from 'src/book/entities/book.entity'; @Entity("book_author") export class AuthorBook { @PrimaryGeneratedColumn() idbook_author: number; /* @Man...
import styled from 'styled-components'; export const StyledDiv = styled.div` position: relative; margin-top: 20px; font-weight: bold; font-size: 15px; color: rgb(142, 142, 142); span { display: block; } a { &:hover { color: rgb(173, 181, 189); } } .github-logo { font-size:...
import { existsSync } from 'fs'; export function hasNoPackageLock() { return !existsSync(`${process.cwd()}/package-lock.json`); }
/* * 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. */ import { createSpan } from "../tracing"; import "@azure/core-paging"; import { PagedAsync...
import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { Todo } from '../app/todos/todo'; import { TodoService } from '../app/todos/todo.service'; /** * A "mock" version of the `TodoService` that can be used to test components * without having to create an actual service. */ @Inje...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction, } from "ethers"; import { Contract, ContractTransaction, Overrides, CallOverrides, } from "@ethersproject/contracts"; import...
import Account from "@account"; import ScriptAction, { ScriptActionResults } from "../ScriptAction"; export default class UseLockedHouseAction extends ScriptAction { public doorCellId: number; public lockCode: string; constructor(doorCellId: number, lockCode: string) { super(); this.doorCellId = doorCel...
const builtins = require('module').builtinModules || Object.keys((process as any).binding('natives')) .filter(x => !/^_|^internal|\//.test(x)) .sort() export default builtins
import { erc20FeeProxyArtifact } from '@requestnetwork/smart-contracts'; import { AdvancedLogicTypes, ExtensionTypes, PaymentTypes, RequestLogicTypes, } from '@requestnetwork/types'; import { CurrencyDefinition, ICurrencyManager } from '@requestnetwork/currency'; import ProxyInfoRetriever from './proxy-info-ret...
import React, { useMemo } from "react"; import styled from "styled-components"; import { Button, Position } from "@blueprintjs/core"; import { IconName } from "@blueprintjs/icons"; import { ComponentProps } from "widgets/BaseComponent"; import { ThemeProp } from "components/ads/common"; import { RenderMode, Render...
import { genSaltSync, hashSync } from "bcrypt"; import { Request, Response } from "express"; import { sign } from "jsonwebtoken"; import Users from "../models/user.schema"; import Patients from "../models/patients.schema"; import { isValidPassword } from "../utils/helpers"; import { config } from "../config/config"; im...
import { TestBed } from '@angular/core/testing'; import { ClientesService } from './clientes.service'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing' import { ClientesAPI } from './models/clientes'; fdescribe('ClientesService', () => { let service: ClientesService; l...
// Copyright 2019 The Oppia Authors. All Rights Reserved. // // 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 { TestBed } from '@angular/core/testing'; import { NgSearchFilterService } from './ng-search-filter.service'; describe('NgSearchFilterService', () => { let service: NgSearchFilterService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(NgSearchFilterService); }); ...
import { Pagination } from "@saleor/types"; import { stringifyQs } from "@saleor/utils/urls"; import urlJoin from "url-join"; import { TranslationsEntitiesListFilterTab } from "./components/TranslationsEntitiesListPage"; export enum TranslatableEntities { categories = "categories", products = "products", produc...
// @ts-nocheck /* eslint-disable */ /* tslint:disable */ /* prettier-ignore-start */ /** @jsxRuntime classic */ /** @jsx createPlasmicElementProxy */ /** @jsxFrag React.Fragment */ // This class is auto-generated by Plasmic; please do not edit! // Plasmic Project: 7CKZhD2BVpe8oYNyjz4EUo // Component: JHk19r9QqJ impor...
#!/usr/bin/env ts-node import { Worker } from "../src"; /* In your projects: import { Worker } from "node-resque"; */ // //////////////////////// // SET UP THE CONNECTION // // //////////////////////// const connectionDetails = { pkg: "ioredis", host: "127.0.0.1", password: null, port: 6379, database: 0, ...
import React from 'react' import { styled, css, keyframes } from '../helpers/theme' import { menuFadeTypes } from '../helpers/types' import NodeItem from './NodeItem' import NodeBackLink from './NodeBackLink' const SlideLeftOut = keyframes` 0% { transform: translateX(0); opacity: 1; } 100% { transform: t...
export const getUid = (() => { let uid = 0; return (): string => { uid++; return 'carburetor-uid-' + uid; }; })();
import React, { useMemo, useState } from 'react'; import { PasteProps } from 'paste/pages/[id]'; import styled from 'styled-components'; const CloseIcon = require('./images/close.png'); const OpenIcon = require('./images/open.png'); interface ProfileEntry { name: string; selfTime: number; children: Profil...
import { TestBed } from '@angular/core/testing'; import { provideMockStore } from '@ngrx/store/testing'; import { of } from 'rxjs'; import { anything, capture, instance, mock, verify, when } from 'ts-mockito'; import { Customer } from 'ish-core/models/customer/customer.model'; import { ApiService } from 'ish-core/serv...
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { environment } from '../../../environments/environment'; const api = environment.BASE_URL+'project_lead'; @Injectable({ providedIn: 'root' }) export class ProjectLe...
import { AfterContentInit, Component, ContentChild, Input, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; import { IStepOption, TourHotkeyListenerComponent } from 'ngx-ui-tour-core'; import { NgxbTourService } from './ngx-bootstrap-tour.service'; import { TourStepTemplateService } from...
import {ProColumns} from '@ant-design/pro-table'; import {User} from '../../../../.openapi'; import i18next from 'i18next'; import React from 'react'; import {Link} from 'react-router-dom'; export const columns = (): ProColumns<User>[] => [ { key: 'id', title: '#', d...
/** * @module js-hierarchy */ /** */ import {Node} from './Node'; import {Direction} from './Direction'; import {ActionFunction} from './ActionFunction'; import {Walker} from './walker/Walker'; import {DownWalker} from './walker/DownWalker'; import {LeftWalker} from './walker/LeftWalker'; import {RightWalker} from '...
import { GTORAsyncQueue } from "./GTOR"; /** A queue is an abstract data-type. See the wikipedia for more info: https://en.wikipedia.org/wiki/Queue_(abstract_data_type) * Queues are what is called a First-In First-Out (FIFO) data-type. What that means is what ever is entered into the queue first * with the enqueu...
import { CfnResource } from './cfn-resource'; import { Construct } from './construct-compat'; import { Duration } from './duration'; import { Stack } from './stack'; /** * Initialization props for the `NestedStack` construct. * * @experimental */ export interface NestedStackProps { /** * The set value pair...
export * from './OtherRing';
import React from 'react' const Tag: React.FC = ({ children }) => { return ( <span className={'zzf-tag'}>{children}</span> ) } export default Tag
import { css, Global } from '@emotion/react'; export const Theme = () => { return ( <Global styles={css` * { box-sizing: border-box; } :root { --base-background: #f4f4f9; --base-foreground: rgb(32, 32, 32); --header-background: #383f51ff; ...
import 'jest'; import 'jest'; import annotate from './annotate'; import { Annotations } from '../miscellaneous/Annotated'; describe('annotate', () => { it('annotates an object if not yet anotated', () => { const target = { property: 'value', }; const annotated = annota...
import * as formatting from "file/paragraph/run/formatting"; import { RunProperties } from "file/paragraph/run/properties"; import { XmlComponent } from "file/xml-components"; import { BasedOn, Link, SemiHidden, UiPriority, UnhideWhenUsed } from "./components"; import { Style } from "./style"; export class CharacterSt...
import { DomElement } from 'domhandler'; import { Request } from 'express'; import { ESIVARIABLES } from './constants'; const esivarregex = /\$\([^)]*\)/gm; const esivarskeyregex = /\{[^}]*\}/gm; export const ParseVars = (element: DomElement, request?: Request): DomElement => { const _resolveVar = (_var) => resol...
import { memo, useState, useCallback } from 'react'; import classnames from 'classnames'; import { Target } from 'react-feather'; import { Link } from 'react-router-dom'; import { enableMpe } from 'featureFlags'; import storage from 'storage'; import { announcementKey } from 'storage/keys'; import CloseButton from 'vi...
// 引入其他的类 import Snake from "./Snake"; import Food from "./Food"; import ScorePanel from "./ScorePanel"; const mainElement = document.getElementById('main')! const hammertime = new Hammer(mainElement); hammertime.get('swipe').set({ direction: Hammer.DIRECTION_ALL }); // 游戏控制器,控制其他的所有类 class GameControl { // 蛇 ...
import { Auth, JsonFileCache } from '@expo/apple-utils'; import chalk from 'chalk'; import * as fs from 'fs-extra'; import wrapAnsi from 'wrap-ansi'; import Log, { learnMore } from '../../../log'; import { promptAsync } from '../../../prompts'; import * as Keychain from './keychain'; /** * Get the username and possi...
import { Routes, RouterModule } from '@angular/router'; import { MyList01Component } from './mylist01.component'; //import { AuthGuard } from '../../services/auth-guard.service'; const routes: Routes = [ { path: '', //canActivate: [AuthGuard], component: MyList01Component } ]; export const rou...
export type IMiddlewareFunc = (x: any) => any; export interface IMapDependency { [key: string]: any; } export type IDependencies = string[] | string | IMapDependency; export interface IBaseOptions { depends?: IDependencies; function?: boolean; } export interface IEntityMiddleware { before: any[]; ...
import { LitElement, property, TemplateResult } from "lit-element"; import { App } from "../../app/App"; export abstract class BaseElement extends LitElement { protected app?: App; protected _eventListeners: { [type: string]: EventListener[]; } = {}; dispatch( event: string, details: any = {}, ...
import mongoose, { Document, Schema, Query } from "mongoose"; import { USER_ROLES, MAX_LENGTH, MONGOOSE_MODEL_NAMES, MAX_FILE_SIZE_LIMITS, AGE_LIMIT } from "../utils/Constants"; import ResumeSchema, { Resume } from "./Resume"; import moment = require("moment"); export interface Attachment{ _id?: mongoose.T...
import { Card } from '../../../interfaces' import Set from '../Team Up' const card: Card = { name: { en: "Wondrous Labyrinth ◇", fr: "Labyrinthe Miracle ◇", es: "Laberinto Asombroso ◇", it: "Labirinto Meraviglioso ◇", pt: "Labirinto Encantado ◇", de: "Wundersames Labyrinth ◇" }, illustrator: "5ban Grap...
export const USERNAME_VALIDATOR: string = `^(?=[a-zA-Z0-9._]{8,16}$)(?!.*[_.]{2})[^_.].*[^_.]$`; export const PASSWORD_VALIDATOR: string = `^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z]).*$`; export const PASSWORD_MIN_LENGTH: number = 8; export const PASSWORD_MAX_LENGTH: number = 16; export const FIRST_NAME_VALIDATOR: string = `...
/** * Copyright 2019, SumUp 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 law or agreed to in wri...
// This file can be replaced during build by using the `fileReplacements` array. // `ng build` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. import { HttpHeaders } from "@angular/common/http"; export const environment = { production: false }; ...
import { NgModule } from "@angular/core"; import { RouterModule, Routes } from "@angular/router"; import { LoginComponent } from "./components/account/login/login.component"; import { RegisterComponent } from "./components/account/register/register.component"; import { ListComponent } from "./components/application/lis...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { MasterItem } from '../model/inventory.master.item'; import { MasterItemDTO } from '../dto/inventory.master.item.dto'; import { Repository } from 'typeorm'; @Injectable() export class MasterItemService { construc...
import connectStoreController from './connectStoreController' import createServer from './createServer' export { createServer, connectStoreController, }
/// <reference types="node" /> import express, { Request, Response, Next } from "express"; import routers from "./routers"; import compression from "compression"; import timeout from "connect-timeout"; import path from "path"; import dotenv from "dotenv"; import morgan from "morgan"; import winston from "winston"; impo...
export enum privateChatPath { HANDLE_CONNECTION = 'handleConnection', HANDLE_DISCONNECT = 'handleDisconnect', CLIENT_CONNECTED = 'client/private-chat/connected', CLIENT_ERROR = 'client/private-chat/error', CLIENT_SEND = 'client/private-chat/send', CLIENT_RECEIVE_CHAT_LOG = 'client/private-chat/r...
export type QueryAndParametersTuple = { query: string, params: any[] } export interface ModelConstructable { new(): IraModel; } export class NamedArguments { private readonly _params: NamedParams; constructor(params: NamedParams) { this._params = params; } getParams(): NamedPara...
export var __esModule: boolean; export const ActionMenu: { ({ anchorContent, renderAnchor, anchorRef: externalAnchorRef, onAction, open, setOpen, overlayProps, items, ...listProps }: { [x: string]: any; anchorContent: any; renderAnchor?: ((props: any) => any) | undefined; anchorRef: ...
import { Body, Controller, Get, Param, Post, Query } from '@nestjs/common'; import { ApiQuery, ApiTags, ApiParam } from '@nestjs/swagger'; @ApiTags('DMS') @Controller('api/workspaces/:url/dms') export class DmsController { // @Get(':id/chats') // getChat(@Query('perPage') perPage, @Query('page') page) { // con...
async function speech2text() { // Imports the Google Cloud client library const speech = require('@google-cloud/speech'); const fs = require('fs'); // Creates a client const client = new speech.SpeechClient(); // The name of the audio file to transcribe const fileName = './resources/alex1.wav'; // Re...
/*--------------------------------------------------------------------------------------------- * Copyright (c) IBAX All rights reserved. * See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ import * as React fro...
import { NodeArgs } from '../core/CommonArgs'; export interface args extends NodeArgs { } declare const Tr: (args?: args) => HTMLElement | Text; export default Tr;
export enum STREAM_FREQUENCY { SECOND = 1, MINUTE, DAILY, WEEKELY, MONTHLY, }
// Type definitions for ag-grid-community v19.0.0 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> import { Component } from "../../widgets/component"; export declare class PaginationComp extends Component { private gridOptionsWrapper; private eventService; p...
export default function undefinedToNull<BasicType>(targetValue: BasicType): Exclude<BasicType, undefined> | null { return typeof targetValue === "undefined" ? null : (targetValue as Exclude<BasicType, undefined>); }
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { FeaturesPage } from './features.page'; const routes: Routes = [ { path: '', component: FeaturesPage } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule], }) export ...