text
stringlengths
10
953k
import type NodeType from "../node-type.js"; export default interface INode { readonly type: NodeType; clone(): INode; toString(): string; }
import { formatErrorMessage, formatSuccessMessage, pluralize } from '@create-figma-plugin/utilities' import { convertComponentToFrame } from './utilities/convert-component-to-frame.js' export default async function (): Promise<void> { if (figma.currentPage.selection.length === 0) { figma.closePlugin(forma...
/*--------------------------------------------------------------------------------------------- * Copyright (c) IBAX All rights reserved. * See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ import IField from '....
import { Position } from '../types/interfaces'; import FilterizrOptions from '../FilterizrOptions'; import FilterizrElement from '../FilterizrElement'; import StyledFilterItem from './StyledFilterItem'; /** * Resembles an item in the grid of Filterizr. */ export default class FilterItem extends FilterizrElement { ...
import * as fc from 'fast-check' import isNaturalKey from './isNaturalKey' it('should exist', () => { expect(isNaturalKey).toBeDefined() }) it('should be a callable', () => { expect(typeof isNaturalKey).toBe('function') }) it('should accept 1 parameter', () => { expect(isNaturalKey).toHaveLength(1) }) it('sho...
import React from "react"; import Header from "./header"; import Footer from "./footer"; import "./../../assets/main.scss"; const Layout = ({ children }: any) => { return ( <> <Header /> <div> <main>{children}</main> {process.env.NODE_ENV === "development" ? ( <div className="fixed bottom-0 left...
import classNames from 'classnames'; import * as React from 'react'; import { ComponentClassNames } from '../shared/constants'; import { FieldClearButton } from '../Field'; import { strHasLength } from '../shared/utils'; import { SearchFieldButton } from './SearchFieldButton'; import { SearchFieldProps, Primitive } fr...
import styled, { css } from 'styled-components'; export const StyledDiv = styled.div` position: relative; min-height: 300px; `; export const StyledArticle = styled.article` @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } background-color: rgb(255, 255, 255); borde...
export type ViewpointJson = { position: string; }; export class Viewpoint { public position: string; public constructor(position: string = "0 0 0") { this.position = position; } public toJson(): ViewpointJson { return { position: this.position }; } }
import type { TypographyOptions, TypographyUtils, TypographyStyle, TypographyStyleOptions, FontStyleOptions, } from '@material-ui/core/styles/createTypography'; export type SparkVariant = | 'display-lg' | 'display-md' | 'display-sm' | 'heading-xl' | 'heading-lg' | 'heading-md' | 'heading-sm' ...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { AddServerComponent } from './add-server.component'; describe('AddServerComponent', () => { let component: AddServerComponent; let fixture: ComponentFixture<AddServerComponent>; beforeEach(waitForAsync(() => { TestBed....
export * from './data/version1'; export * from './logic'; export * from './services/version1'; export * from './build'; export * from './containers';
import { BelongsToMany, Column, DataType, Model, Table } from 'sequelize-typescript'; import { ApiProperty } from '@nestjs/swagger'; import { User } from '../users/users.model'; import { UserRoles } from './user-roles.model'; interface RoleCreationAttr { value: string description: string } @Table({tableName: 'rol...
import { SearchEndpoint } from '../../src/rest/SearchEndpoint'; import { FakeResults } from '../Fake'; import { QueryBuilder } from '../../src/ui/Base/QueryBuilder'; import { IQueryResults } from '../../src/rest/QueryResults'; import { IErrorResponse, IRequestInfo } from '../../src/rest/EndpointCaller'; import { IQuery...
export { Starting } from '~/modules/Home/MyProfile/Starting'
import './add_graphite_func'; import './func_editor'; import _ from 'lodash'; import GraphiteQuery from './graphite_query'; import { QueryCtrl } from 'app/plugins/sdk'; import appEvents from 'app/core/app_events'; const GRAPHITE_TAG_OPERATORS = ['=', '!=', '=~', '!=~']; const TAG_PREFIX = 'tag: '; export class Graph...
import { GetServerSideProps } from "next"; import { Container, Heading, AlertIcon, Alert, Button, Center, useToast, useDisclosure, } from "@chakra-ui/react"; import { NextPage } from "next"; import { FetchArticlesPayload } from "../server/articles/types"; import "react-markdown-editor-li...
import React, { useState, useImperativeHandle, useRef, forwardRef, useEffect, } from 'react'; import styles from './index.module.scss'; import Input from '../Input'; import { IFeedItemPostPayload } from '@feedfarm-shared/types'; import SubmitButton from '../SubmitButton'; import Button from '../Button'; impor...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Framework Emulator Github: // https://github.com/Microsoft/BotFramwork-Emulator // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // ...
/** * @license * 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 a...
import {OrderedItem} from "./ordered-item"; export class ShoppingBasket { constructor(params?: ShoppingBasketParams) { const { orderedItems = [] } = params || {orderedItems: []}; this.orderedItems = [...orderedItems]; } readonly orderedItems: Array<OrderedItem> = []; ...
import {_UnmarshalledAliasRoutingConfiguration} from './_AliasRoutingConfiguration'; import * as __aws_sdk_types from '@aws-sdk/types'; /** * <p>Provides configuration information about a Lambda function version alias.</p> */ export interface GetAliasOutput { /** * <p>Lambda function ARN that is qualified u...
// Copyright 2021 Touca, Inc. Subject to Apache-2.0 License. import fs from 'fs' import path from 'path' import logger from 'winston' import { config } from '@/utils/config' // Create the log directory if it does not exist const logDir = path.normalize(config.logging.directory) const logFile = path.join(logDir, conf...
import { existsSync, readFileSync, writeFileSync } from 'fs' import { LoginData } from '../types/common' import { LOGIN_DATA_PATH } from './paths' import { groupBy } from '../utils/groupBy' class LoginDataList { store: LoginData[] constructor() { this.store = [] if (existsSync(LOGIN_DATA_PATH)) { th...
import { $Component } from '../interface/async/$Component' import { $EE } from '../interface/async/$EE' import { Async } from '../interface/async/Async' import { Component_ } from '../interface/Component' import { EE } from '../interface/EE' import { W } from '../interface/W' import { proxyWrap } from '../proxyWrap' im...
import { Theme } from '@emotion/react'; export const theme: Theme = { colors: { background: '#202020', text: '#fff', gray: '#606070', textInverse: '#202020', backgroundInverse: '#fff', }, space: [0, 4, 8, 16, 32, 64, 128, 256], fonts: { body: 'Menlo, monospace', heading: '"Major Mon...
/** * 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 { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { LoginScreenComponent } from './login-screen/login-screen.component'; import { AngularFireModule } from '...
export enum MonikaExportStatus { NotExported = 0, ReadyToExport = 1, Exported = 2 }
import { ethers } from 'ethers' // export types export interface Recruit { id: number address: string wallet: ethers.Wallet ethBalance: ethers.BigNumber magicBalance: ethers.BigNumber isReady: boolean loot: Balances } export interface ArbResult { status: string message: string result: Array<Record...
import componentGenerator from './component'; import { convertNxGenerator } from '@nrwl/devkit'; export default convertNxGenerator(componentGenerator);
import {IdentityProviderBase} from '../../../models/'; import {createIdentityProviderBaseFromDiscriminatorValue} from '../../../models/createIdentityProviderBaseFromDiscriminatorValue'; import {ODataError} from '../../../models/oDataErrors/'; import {createODataErrorFromDiscriminatorValue} from '../../../models/oDataEr...
import { Serializer } from "./jsonobject"; import { HashTable, Helpers } from "./helpers"; import { Base, ISurveyImpl, IPage, IPanel, IConditionRunner, IElement, ISurveyElement, IQuestion, SurveyElement, SurveyError, ISurveyErrorOwner, } from "./base"; import { Question } from "./question"; import...
import { ConfigApiModelInterface } from '../Model/Api/ConfigApiModel'; import ViewModel from './ViewModel'; /** * MainModel */ export default class MainModel extends ViewModel { private configApiModel: ConfigApiModelInterface; constructor( configApiModel: ConfigApiModelInterface, ) { sup...
import { useCallback, useState } from "react"; import { View, Text, Button } from "@tarojs/components"; // import { useEnv, useNavigationBar, useModal, useToast } from "taro-hooks"; import styles from './index.module.scss' import './index.scss' const Index = () => { const [flag] = useState(true) return ( <> ...
// Copyright 2017 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 ...
import * as chalk from 'chalk'; import * as child_process from 'child_process'; import { satisfies } from 'semver'; import { Logger } from '../../../cli'; import { CommandError, CommandOption, CommandTypes } from '../../../Command'; import GlobalOptions from '../../../GlobalOptions'; import AnonymousCommand from '../.....
import { memo } from 'react' import { CrosshairLine } from './CrosshairLine' import { CrosshairType } from './types' interface CrosshairProps { width: number height: number type: CrosshairType x: number y: number } export const Crosshair = memo(({ width, height, type, x, y }: CrosshairProps) => { ...
/** * @license * Copyright 2021 Dynatrace 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 ag...
import { Translations } from "../../../shared/types"; // prettier-ignore const translationsDe: Translations = { // Menu (defined by macOS) "about-app": "Über {appName}", "bring-all-to-front": "Alle nach vorne bringen", "close": "Schließen", "copy": "Kopieren", "cut": "Ausschneiden", "edit": "Bearbeiten", "file...
import Head from "next/head"; import { useState, useEffect } from "react"; import { library } from "@fortawesome/fontawesome-svg-core"; import { fab } from "@fortawesome/free-brands-svg-icons"; import { fas } from "@fortawesome/free-solid-svg-icons"; import { supabase } from "../../utils/initSupabase"; import dayjs fro...
import React, { forwardRef, RefForwardingComponent } from 'react'; import Box, { Attributes, BoxProps } from '../Box/Box'; const Icon: RefForwardingComponent<SVGSVGElement, Attributes<Omit<SVGSVGElement, 'display'>, BoxProps & { size?: string; }>> = (props, ref) => { const { size = '1rem', ...rest } = pr...
const plugin: Fig.Plugin = { icon: "⭐️", name: "tmuxrepl_csurfer", displayName: "Tmuxrepl", type: "shell", description: "Stupidly simple zsh plugin to have a R-EP-L tmux session.", authors: [ { name: "csurfer", github: "csurfer", }, ], github: "csurfer/tmuxrepl", license: ["MIT"], ...
import * as grpc from "grpc"; import * as path from "path"; import { STOP_KEY } from "@sigodenjs/dee-srv"; import { createSrvLite, delay } from "@sigodenjs/dee-srv-test-utils"; import * as DeeGrpc from "../src"; const RPC_PROTO_FILE = path.resolve(__dirname, "fixtures/rpc.proto"); test("should create grpc service", a...
import { ScaleSequential } from "d3-scale"; import TreeMap from "../TreeMap"; import { IBreadcrumbItem } from "../Breadcrumb"; import { NumberOfChildrenPlacement } from "../Node"; import { TooltipPlacement } from "../Tooltip/types"; export interface ITreeMapProps<TreeMapInputData> { /** * TreeMap id, will be use ...
export declare function load(): void;
import * as React from 'react'; import { Grid, GridItem } from '@patternfly/react-core'; import { useRefWidth } from '../utils'; export const MEDIA_QUERY_LG = 992; export const DashboardGrid: React.FC<DashboardGridProps> = ({ mainCards, leftCards, rightCards }) => { const [containerRef, width] = useRefWidth(); c...
/******************************************************************************** * Copyright (C) 2017 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * Th...
import * as React from 'react'; import { TrashIcon } from '@patternfly/react-icons'; import { boundingBoxForLine, PointTuple } from '@console/topology'; import { EdgeProps } from '../topology-types'; import BaseEdge from './BaseEdge'; import SvgArrowMarker from './SvgArrowMarker'; import './ConnectsTo.scss'; type Con...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'phoneNumber' }) export class PhoneNumberPipe implements PipeTransform { transform(val: string, args?: any): any { if (!val) return val; val = val.replace('(', ''); val = val.replace(')', ''); val = val.replace('-', ''); ...
import { render } from '@testing-library/react'; import React from 'react'; import Panel from '../panel'; import { Project } from '@api'; import { noop } from '@utils'; import { MockThemeProvider } from '@mocks'; test('renders correctly', () => { const { getByText, container, rerender } = render( <MockThemeProv...
import './polyfill'; export { default as Surface } from './container/Surface'; export { default as Layer } from './container/Layer'; export { default as Legend } from './component/Legend'; export { default as Tooltip } from './component/Tooltip'; export { default as ResponsiveContainer } from './component/ResponsiveCon...
import axios from "axios" import {Collection, Message, MessageEmbed, MessageReaction, StreamDispatcher, User} from "discord.js" import fs from "fs" import path from "path" import {Command} from "../../structures/Command" import * as defaults from "./../../assets/json/defaultSongs.json" import {Audio} from "./../../stru...
import * as events from 'events'; const emitter: events.EventEmitter = new events.EventEmitter(); const event: string | symbol = ''; const listener: (...args: any[]) => void = () => {}; const any: any = 1; { let result: events.EventEmitter; result = emitter.addListener(event, listener); result = emitter....
import { View, Text, StyleSheet, Button, Animated, //select do react-native } from "react-native"; import React, { useRef, useEffect } from "react"; import { SafeAreaView } from "react-native-safe-area-context"; const Entry = () => { useEffect(() => { /* completion callback */ }, []); return ( ...
import React, { FC } from 'react'; import Head from 'next/head'; import markup from '../utils/markup'; export interface CourseJsonLdProps { courseName: string; description: string; providerName: string; providerUrl?: string; } const CourseJsonLd: FC<CourseJsonLdProps> = ({ courseName, description, prov...
class GetArcgisToken { ClientID: string = "L0vD9F1TdVIFnKp1"; ClientSecret: string = "15edb2f979e4413da365015f1fab2c75"; async getData() { try { const response = await fetch(`https://www.arcgis.com/sharing/oauth2/token?client_id=${this.ClientID}&grant_type=client_credentials&client_secret=${this.Client...
import {TestBed, ComponentFixture} from '@angular/core/testing'; import {createGenericTestComponent} from '../test/common'; import {Component} from '@angular/core'; import {NgbCollapseModule} from './collapse.module'; const createTestComponent = (html: string) => createGenericTestComponent(html, TestComponent) a...
import { Component, OnInit, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { QuestionBase } from '../classes/question-base'; import { QuestionControlService } from '../classes/question-control.service'; @Component({ selector: 'app-dynamic-form', templateUrl: './dynamic-form.compon...
import styled from 'styled-components'; const Button = styled.button` background: none; border: none; margin: 0; cursor: pointer; display: flex; align-items: center; > * + * { margin-left: 5px; } `; export default { Button };
import { AppRoutesModule } from './app-routes/app-routes.module' import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { FormComponent } from './component/form/form.compon...
import {Table, Column, Model, AllowNull} from 'sequelize-typescript'; @Table({ timestamps: false, tableName: 'TweetBuffs' }) export default class TweetBuff extends Model<TweetBuff> { @AllowNull(false) @Column tweet_id: String; @AllowNull(false) @Column date: Date; }
import { Menu, ipcMain, shell, app } from 'electron' import { ensureItemIds } from './ensure-item-ids' import { MenuEvent } from './menu-event' import { getLogDirectoryPath } from '../../lib/logging/get-log-path' import { ensureDir } from 'fs-extra' import { log } from '../log' import { openDirectorySafe } from '../sh...
import { IPlayable, PlayableUpdateReason } from "../moq"; /** * The configured setup will be applied only to the first invocation. */ export class PlayableOnce implements IPlayable { private played = false; readonly update = (reason: PlayableUpdateReason) => { if (reason === PlayableUpdateReason.Own...
/// <reference types='knockout'/> /// <reference types="knockout" /> export function map(m: object, callback?: ((param0: object) => void), array?: boolean): Array<KnockoutObservable<any>> | KnockoutObservableArray<any>;
/* tslint:disable */ import CodeBlockWriter from "code-block-writer"; export function generateFactoryCode(ts: typeof import("typescript"), initialNode: import("typescript").Node) { const writer = new CodeBlockWriter({ newLine: "\n", indentNumberOfSpaces: 2 }); const syntaxKindToName = createSyntaxKindToNameMap...
import { IPdfWrapper } from './../../interfaces/i-pdf-wrapper'; import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives'; import { PdfColor } from './../graphics/pdf-color'; import { RectangleF } from './../drawing/pdf-drawing'; import { PdfPage } from './../pages/pdf-page'; import { PdfPageBase } from './.....
import React, { useRef, Fragment } from 'react' import { createControllerBox, ISchemaVirtualFieldComponentProps, createEffectHook, useFormEffects, useFieldState } from '@formily/react-schema-renderer' import { toArr } from '@formily/shared' import { Steps } from 'antd' import { IFormStep } from '../types' en...
import assertAfterTimeout from './assertAfterTimeout'; export { default as sandbox } from './sandbox'; export { default as assertWithTimeout } from './assertWithTimeout'; export { default as withRouter } from './router'; export { default as assertAfterTimeout } from './assertAfterTimeout';
import { EndDateFilterPipe } from './end-date-filter.pipe'; describe('EndDateFilterPipe', () => { it('create an instance', () => { const pipe = new EndDateFilterPipe(); expect(pipe).toBeTruthy(); }); });
import type { FormErrors } from '../../types'; interface JoiError { path: (string | number)[]; message: string; } interface JoiResults { success: boolean; error: { details: JoiError[]; }; } interface JoiSchema { validate(values: Record<string, any>, options: { abortEarly: boolean }): JoiResults; } e...
/* * Store * 데이터 I/O를 관리하는 객체로 스토리지를 이용한다. */ export class Store { // 로컬스토리지 (세션스토리지 사용시 window.sessionStorage) private readonly $storage = window.localStorage; // 로컬스토리지 저장소 이름 private readonly storageName: string; constructor(storageName: string) { this.storageName = `todo.${storageName}`; } /*...
describe("Test", () => { it("hello world", () => { expect("hello world").toEqual("hello world"); }); });
import * as fc from '../../../../lib/fast-check'; import { context } from '../../../../src/check/arbitrary/ContextArbitrary'; import { nat } from '../../../../src/check/arbitrary/IntegerArbitrary'; import { infiniteStream } from '../../../../src/check/arbitrary/StreamArbitrary'; import { Stream } from '../../../../src...
/* * 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 { shallow } from 'enzyme'; import { getOr } from 'lodash/fp'; import R...
import React from "react"; export const ForumPage = React.lazy(() => import("./ForumPage")); export const ForumUnreadPage = React.lazy(() => import("./ForumUnreadPage")); export const ForumCategoryPage = React.lazy(() => import("./ForumCategoryPage")); export const ForumTopicPage = React.lazy(() => import("./ForumTopi...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. 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, modi...
import { container } from '../../../../src'; import { IService1, Service1, IService2, Service2, IService3, Service3, Service4, IService4 } from '~/shared'; export function containerBuilder(): void { container.addSingleton<IService1>(Service1); container.addSingleton<IService2>(Service2); container.addSingleton<I...
import { CfnOutput, Construct, Stack, StackProps } from "@aws-cdk/core"; export declare class ApiStack extends Stack { readonly urlOutput: CfnOutput; constructor(scope: Construct, id: string, props?: StackProps); }
import { deviation as d3Deviation, max as d3Max, mean as d3Mean, median as d3Median, min as d3Min, sum as d3Sum, variance as d3Variance } from "d3-array"; import { map as d3Map, nest as d3Nest } from "d3-collection"; import { csvFormatRows as d3CsvFormatRows, csvParse as d3CsvParse, tsvFormatRows as d3TsvFormatRows, ts...
import React, { memo, useCallback } from 'react'; import './styles.css'; import 'antd/dist/antd.css'; import { Form, Input, Button } from 'antd'; import { UserOutlined, LockOutlined } from '@ant-design/icons'; import { useSnackbar } from 'notistack'; const FormLogin: React.FC<{}> = memo(() => { // eslint-disable-nex...
class UnivalTree { private value: number private left: UnivalTree | null private right: UnivalTree | null constructor (value: number, left: UnivalTree | null = null, right: UnivalTree | null = null) { this.value = value this.left = left this.right = right } isUnivalTree (): b...
/* eslint-disable max-classes-per-file */ /* This file is part of Astarte. Copyright 2020 Ispirata Srl 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/licen...
import form from "../form/Form"; function Render(input: any) { const { id, onSubmit, View } = input; $(`#${id}`).html(` <div class="container" style="margin-top: 100px; max-width: 500px;"> <div id="login-form"></div> </div> `); function onSubmitInternal(input: any) { const { par...
//控制分发的入口 import $ from 'jQuery'; import * as THREE from 'three'; import * as dat from 'dat.gui'; import {tools,clone} from './common/tools'; import {UI} from './common/ui'; import {check} from './common/movement'; import {Ladder} from './common/ladder'; import {DB} from './cache'; import {Player} from './player'; im...
export interface CacheKeyDeleteBuilder<T = any[], U = any> { (args: T, context?: U): string | string[]; }
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {shallow} from 'enzyme'; import {Group} from 'mattermost-redux/types/groups'; import {Channel} from 'mattermost-redux/types/channels'; import {Team} from 'mattermost-redux/...
import Robot from './robot-name' const areSequential = (name1: string, name2: string): boolean => { const alpha1 = name1.substr(0, 2) const alpha2 = name2.substr(0, 2) const num1 = +name1.substr(2, 3) const num2 = +name2.substr(2, 3) const numDiff = num2 - num1 const alphaDiff = (alpha2.charCodeAt(0) ...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { TopheadingComponent } from './topheading/topheading.component'; import { TechnewsComponent } from './technews/technews.component'; import { BiznewsComponent } from './biznews/biznews.component'; import { DigicellC...
import { Entity, PrimaryColumn, Column, ManyToOne, OneToMany, JoinColumn } from 'typeorm'; import { BatchJobExecution } from './jobExecution.entity'; import { BatchStepExecutionContext } from './stepExecutionContext.entity'; @Entity() export class BatchStepExecution { @PrimaryColumn() stepExecutionId: number; ...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { NbMediaBreakpointsService, NbMenuService, NbSidebarService, NbThemeService } from '@nebular/theme'; import { LayoutService } from '../../../@core/utils'; import { map, takeUntil } from 'rxjs/operators'; import { Subject } from 'rxjs'; import { User...
import {Column, Entity,PrimaryGeneratedColumn} from 'typeorm' @Entity('ticket_type') export class TicketType { @PrimaryGeneratedColumn() id: number; @Column() type: string; @Column() price?: number; @Column() amount: number; @Column() minimum: number; @Column() date...
/***** License -------------- Copyright © 2020 Mojaloop Foundation The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache...
import { dxTextBoxOptions } from '../text_box'; export interface SearchBoxMixinOptions<T = SearchBoxMixin> { /** * @docid * @default {} * @prevFileNamespace DevExpress.ui * @public */ searchEditorOptions?: dxTextBoxOptions; /** * @docid * @default false * @prevFi...
import { any, resource } from '../../lib'; export const set = resource({ type: any, async resolver(arr: Array<any>, index: number, value: any) { const newArr = arr.slice(); newArr[index] = value; return newArr; }, });
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository, FindManyOptions, QueryRunner, FindOneOptions, UpdateManyOptions, UpdateResult, DeleteResult, } from 'typeorm'; import { Trip } from './trip.entity'; import { QueryDeepPartialEntity } from ...
export type ValueEqual = { type: "valueEqualTo" otherFieldName: string // eslint-disable-next-line @typescript-eslint/no-explicit-any hasValueEqualTo: any } export type ValueIn = { type: "valueInList" otherFieldName: string // eslint-disable-next-line @typescript-eslint/no-explicit-any ...
import Joi from 'joi'; import { RequestValidationSchema } from '../../utils/validator'; const idSchema = Joi.object({ id: Joi.string() .regex(/^[0-9a-fA-F]{24}$/) .required(), }); const createUserSchema = Joi.object({ name: Joi.string().required(), email: Joi.string().email().required(), password: Joi...
import { NodeEntry, Range, Element } from "slate"; import { RenderElementProps, RenderLeafProps, ReactEditor } from "slate-react"; import { CSSProperties } from "react"; import { ContextMenuContribution } from "../features/context-menu/ContextMenu"; import { PluginAction } from "./PluginAction"; import { Trigger } from...
import * as React from 'react'; import { Modal, Button, Input, Typography } from 'antd'; import styles from './index.module.less' import styled from 'styled-components' import { SessionContext } from '@/context/SessionContext'; import { WalletContext } from '@/context/WalletContext'; import { BizEnums } from '@/common/...