text
stringlengths
10
953k
/** * @title 设置是否只能选择叶子项 * @description 单选的时候通过`canOnlySelectLeaf`属性设置是否仅叶子节点可选中;多选的时候通过`canOnlyCheckLeaf`属性设置是否仅叶子节点可勾选。 */ import * as React from 'react' import styled from 'styled-components' import { Cascader } from '@alicloudfe/components' import 'whatwg-fetch' class Demo extends React.Component { construc...
import React from 'react'; import styles from './PageTitle.module.scss'; import PropTypes from 'prop-types'; type Props = { title?: string; }; export const PageTitle: React.FC<Props> = ({ title }) => ( <div className={styles['page-title']}> <div className="container"> <h2 className={styles['page-title-t...
import { expect } from "chai"; import { validateOpenACR } from "../src/validateOpenACR"; describe("Validate OpenACR chapters", () => { const validSchema = "openacr-0.1.0.json"; const validJSON1 = { title: "Lorem Ipsum Accessibility Conformance Report", product: { name: "Lorem Ipsum", }, autho...
import { Base64 } from 'js-base64'; export * from './plugin'; /** * A link to the bundle comparison tool preloaded to pull the stats from * the provided URLs. */ export function getComparisonAddress( bundleStatUrls: string[], toolUrl: string = 'https://webpackbundlecomparison.z5.web.core.windows.net', ) { re...
import axios from "axios"; import { Dispatch } from "redux"; import { IUserInfo } from "@/data/users"; import UserAction from "@/redux/types/userAction"; import { setUserAction } from "@/redux/actionCreators/userActionsCreator"; import defaultShowError from "@/utils/defaultFunctions"; let requestSent = false; functio...
import React, { ReactElement, useEffect } from 'react'; import * as Font from 'expo-font'; import StoreProvider from './store/StoreProvider'; import AppNavigator from './AppNavigator'; /** * Entry point of application */ const App = (): ReactElement => { // Asynchronously load font on app mount useEffect((): voi...
import * as vega from 'vega'; export namespace Mode { export const Vega: 'vega' = 'vega'; export const VegaLite: 'vega-lite' = 'vega-lite'; } export type Mode = typeof Mode.Vega | typeof Mode.VegaLite; export const NAME_TO_MODE = { vega: Mode.Vega, 'vega-lite': Mode.VegaLite, }; export const NAMES = { [Mo...
import useSWR, { SWRConfiguration } from 'swr' import { useActiveWeb3React } from '../../hooks' import { getAssets } from './fetchers' export function useAssets(swrConfig: SWRConfiguration = undefined) { const { account } = useActiveWeb3React() const { data } = useSWR(account ? ['userAssets', account] : null, () =...
import {Component, OnInit, ViewChild} from '@angular/core'; import {LogWriter} from "../../log-writer"; import {AuthService} from "../../_services/auth/auth.service"; import {MatDialog, MatSnackBar} from "@angular/material"; import {AdminUsersAddDialog} from "../admin-users-add-dialog/admin-users-add.dialog"; import {A...
import { Injectable } from "@angular/core"; import { HttpClient, HttpHeaders } from "@angular/common/http"; import { User } from "../model/user.model"; import { map } from "rxjs/operators"; @Injectable({ providedIn: "root" }) export class UserLoginService { private serverUrl = ""; constructor( private http:...
import React, { Component, PureComponent, Suspense, ReactNode } from 'react' import { ControlOptions, renderInputText, renderNumberRange, renderSelect, renderDate, renderDateRange, deserializeDefaultValue, IControlBase } from './' import { FilterTypes } from './filterTypes' import { Form } from 'antd' i...
import { K8sKind } from '../../module/k8s'; import { LAST_NAMESPACE_NAME_LOCAL_STORAGE_KEY } from '@console/shared/src/constants'; import { ALL_NAMESPACES_KEY } from '@console/shared/src/constants/common'; import i18next from 'i18next'; export const getBreadcrumbPath = (match: any, customPlural?: string) => { const ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ListCartComponent } from './list-cart.component'; describe('ListCartComponent', () => { let component: ListCartComponent; let fixture: ComponentFixture<ListCartComponent>; beforeEach(async(() => { TestBed.configureTestingMod...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { SENSITIVE_STRING, SmithyException as __SmithyException } from "@aws-sdk/smithy-client"; import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types"; export interface CancelJournalKinesisStreamRequest { /** * <p>The unique ID that QLDB assigns to each QLDB journal stream.</p> */ StreamId: stri...
import { Request, Response, Router } from 'express'; import * as path from 'path'; const allowedExt = ['.js', '.ico', '.css', '.jpg', '.png']; const router: Router = Router(); router.get('/privacypolicy', (req: Request, res: Response) => { const pppath = path.join(__dirname, '../../lib/pp.html'); res.sendFile(pp...
export default { name: 'zh-tw', el: { colorpicker: { confirm: '確認', clear: '清空', }, datepicker: { now: '現在', today: '今天', cancel: '取消', clear: '清空', confirm: '確認', selectDate: '選擇日期', selectTime: '選擇時間', startDate: '開始日期', startTime: '開始時...
import {Component} from '@angular/core'; import {from} from 'rxjs'; @Component({ selector: 'pm-root', template: ` <div style="text-align:center"> <h1>{{pageTitle}}</h1> Welcome to Mila's and Tata's first components!! List: <pm-products></pm-products> </div>` })...
import { SagaIterator } from 'redux-saga'; import { fork } from 'redux-saga/effects'; import { watchUpdateConditionalRenderingConnectedIdsSaga } from './conditionalRendering/conditionalRenderingSagas'; import { watchFetchServiceConfigurationSaga, watchSaveServiceConfigurationSaga } from './manageServiceConfigurations/m...
import React from 'react' import { shallow } from 'enzyme' import SearchBar from './SearchBar' const useRouter = jest.spyOn(require('next/router'), 'useRouter') describe('SearchBar', () => { it('should render without throwing an error', function () { useRouter.mockImplementationOnce(() => ({ query: { quer...
import {NullType} from '../../src/validation'; describe('A null type', () => { test('should provide the allowed type', () => { expect(new NullType().getTypes()).toEqual(['null']); }); test.each([ [null, true], ['foo', false], [true, false], [1, false], [1.23...
/*! * Copyright Unlok, Vaughn Royko 2011-2019 * http://www.unlok.ca * * Credits & Thanks: * http://www.unlok.ca/credits-thanks/ * * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the moddin...
import * as Delir from '@delirvfx/core' import arrayBufferToBuffer = require('arraybuffer-to-buffer') import audioBufferToWave = require('audiobuffer-to-wav') import { spawn } from 'child_process' import duplexer3 from 'duplexer3' import { nativeImage } from 'electron' import fs from 'mz/fs' import path from 'path' ex...
import { PostService } from './../../services/post.service'; import { Component, OnInit } from '@angular/core'; import { Post } from 'src/app/models/Post'; @Component({ selector: 'app-post', templateUrl: './post.component.html', styleUrls: ['./post.component.css'], }) export class PostComponent implements OnInit...
import axios from 'axios' import { Router } from 'express' import { axiosRequestConfig } from '../configs/request.config' import { CONSTANTS } from '../utils/env' import { logError } from '../utils/logger' import { ERROR } from '../utils/message' import { extractUserToken } from '../utils/requestExtract' const API_END...
import * as jmespath from "jmespath"; import { iValue } from "../interfaces/ivalue"; import { wrapAsValue } from "../helpers"; import { ValuePromise } from "../value-promise"; import { iResponse } from "../interfaces/iresponse"; export class JsonDoc { public get root(): any { return this.jsonRoot; } constru...
// This file must match "ARTabType.m/h" export const BottomTabOption = { home: "home", search: "search", inbox: "inbox", sell: "sell", profile: "profile", } as const export type BottomTabType = keyof typeof BottomTabOption
export const PAGE_SIZE = 1000; export type ColumnKind = "f" | "i" | "s" | "b" | "d" | "e"; export interface Column { name?: string, kind: ColumnKind, } export interface ResultSetSchema { name: string, rows: number, columns: Column[], pagination?: PaginationInfo, } export function getResultSetSchema(res...
import type { NextPage } from "next"; import Error from "next/error"; import Head from "next/head"; import { Layout } from "src/components/layouts/Layout"; import SampleTemplate from "src/templates/SampleTemplate"; import { configPage, selectSample } from "../../utils/page-configure"; const MyFavoriteGear: NextPage =...
import { Field, ObjectType } from 'type-graphql' import { Provider } from '..' import { FieldError } from '../types/FieldError' @ObjectType() export class ProviderResponse { @Field(() => [FieldError], { nullable: true }) errors?: FieldError[] @Field(() => Provider, { nullable: true }) provider?: Provider } @...
import * as React from 'react'; import { A11yTitleType, AlignSelfType, GridAreaType, MarginType, } from '../../utils'; export interface CarouselProps { a11yTitle?: A11yTitleType; activeChild?: number; alignSelf?: AlignSelfType; controls?: boolean | 'arrows' | 'selectors'; gridArea?: GridAreaType; m...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { all } from 'redux-saga/effects'; // AnnouncementPage import { getAnnouncementsWatcher } from "./announcements/sagas"; import { addBookmarkWatcher, getBookmarksForUserWatcher, getBookmarksWatcher, removeBookmarkWatcher } from "ducks/bookmark/sagas"; // FeedbackForm import { submitFeedbackWatcher } fr...
export { default } from "./ChangeLogTable"
import { wagerr as BITCOIN_NETWORK } from '../networks'; import * as bscript from '../script'; import { Payment, PaymentOpts, Stack } from './index'; import * as lazy from './lazy'; const typef = require('typeforce'); const OPS = bscript.OPS; function stacksEqual(a: Buffer[], b: Buffer[]): boolean { if (a.length !=...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const faSortAmountUp: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const liga...
import cassandra, { Client } from "cassandra-driver"; import logger from "../util/logger"; export const cassandraClient = new cassandra.Client({ contactPoints: JSON.parse(process.env.CASSANDRA_NODES as string), localDataCenter: process.env.CASSANDRA_LOCAL_DATACENTER, keyspace: process.env.CASSANDRA_KEYSPACE?.toL...
import { Tasks } from '../@types/Task' function updateTaskComplete(id: string, tasks: Tasks): Tasks { return tasks.map((task) => { if (task.id === id) { return { ...task, isCompleted: !task.isCompleted, } } return task }) } export default updateTaskComplete
/* * 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 { Observable } from 'rxjs'; import { take } from 'rxjs/operators'; impo...
import { inject, injectable } from 'inversify' import { Shortcuts, ensure } from '@tarojs/shared' import SERVICE_IDENTIFIER from '../constants/identifiers' import { NodeType } from './node_types' import { incrementId, isComment } from '../utils' import { TaroEventTarget } from './event-target' import { hydrate } from '...
import difference from 'lodash.difference'; import every from 'lodash.every'; import isEmpty from 'lodash.isempty'; import pick from 'lodash.pick'; import values from 'lodash.values'; import flatten from 'lodash.flatten'; import uniq from 'lodash.uniq'; import { Loggy, SpinnerAction, LogType } from '../utils/Logger'; ...
export declare const resultContent = "resultContent_daad23ee"; export declare const resultItem = "resultItem_daad23ee"; export declare const peoplePickerPersona = "peoplePickerPersona_daad23ee"; export declare const peoplePicker = "peoplePicker_daad23ee"; export declare const peoplePickerPersonaContent = "peoplePickerP...
/** * Gamma Correction Shader * http://en.wikipedia.org/wiki/gamma_correction */ import { Texture } from 'three' import { TUniform, GenericShader } from 'types/shared' export interface GammaCorrectionShaderUniforms { tDiffuse: TUniform<Texture | null> } export type GammaCorrectionShaderImpl = GenericShader<Gamm...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import * as fs from 'fs'; import * as path from 'path'; import { DockerImageAsset } from '@aws-cdk/aws-ecr-assets'; import { Construct } from '@aws-cdk/core'; import { VersionQuery } from './version';...
import { NfcTags } from './../../shared/things.model'; import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { Message, SelectItem } from 'primeng/primeng'; import { GlobalService } from '...
export * from './qms-notice.service'; export * from './qms-notice-update.component'; export * from './qms-notice-delete-dialog.component'; export * from './qms-notice-detail.component'; export * from './qms-notice.component'; export * from './qms-notice.route';
<TS language="ja_JP" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>編集するためにアドレスもしくはラベルを右クリックします</translation> </message> <message> <source>Create a new address</source> <translation>新しいアドレ...
import { keyboardKey, SpacebarKey } from '@fluentui/keyboard-key'; import { IS_FOCUSABLE_ATTRIBUTE } from '../../attributes'; import { Accessibility } from '../../types'; /** * @specification * Adds attribute 'aria-checked=true' based on the property 'active'. * Adds attribute 'aria-disabled=true' based on the p...
export class Comparator { compare: Function; constructor(compareFunction?) { this.compare = compareFunction || Comparator.defaultCompareFunction; } /** * 比较方法, 0表示相等,-1表示a小于b,1表示a大于b * @param a number * @param b number * @returns number */ static defaultCompareFunction(a, b): number { ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Agetron</source> <translation>O Agetronu</translation> </message...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TranslateModule } from "@ngx-translate/core"; import { AllrestaurantRoutingModule } from './allrestaurant-routing.module'; import { AllrestaurantComponent } from './allrestaurant.component'; import { SearchbannerModule } ...
import * as express from "express" import { getLogger } from "log4js" import { userOptions } from "../../main" import { IRestRouter } from "../interface/iRestRouter" import { WalletModel } from "../model/walletModel" import { RESPONSE_CODE, Responser } from "./responser" const logger = getLogger("WalletRouter") // tsl...
import { Account } from './account'; import { Customer } from './customer'; describe('Customer Entity', () => { describe('ACCEPT', () => { it('should be able to create a new costumer valid', () => { const name = 'teste'; const phone = '+1111111111111'; const gender = 'male'; expect( ...
import React, { useState, useEffect, useCallback } from 'react' import SourceBox from './SourceBox' import TargetBox from './TargetBox' export default function Container() { const [isMounted, setIsMounted] = useState(true) const [isDragging, setIsDragging] = useState(false) useEffect( function subscribeToInterval...
import React from 'react' import type { IconProps } from '../../types' const RectangleGrid_1x2: React.FC<IconProps> = ({ size, fill, style, className }) => { return <svg className={className} style={style} fill={fill} xmlns="http://www.w3.org/2000/svg" height={size ?? "1em"} viewBox="0 0 56 56"><path d="M 8.0663 26...
/** * @description delete video menu * @author wangfupeng */ import { Transforms } from 'slate' import { IButtonMenu, IDomEditor, DomEditor, t } from '@wangeditor/core' import { TRASH_SVG } from '../../constants/svg' class DeleteVideoMenu implements IButtonMenu { readonly title = t('videoModule.delete') readon...
export const IMG_KEYWORD_LIST = [ 'animal', 'archaeology', 'attire', 'beauty', 'birds', 'building', 'architecture', 'business', 'office', 'climate', 'weather', 'communication', 'computer', 'education', 'emotions', 'feelings', 'farming', 'festival', 'celebration', 'holiday', 'fo...
import { Mode } from './mode' import { BitBuffer } from './bit-buffer' ;('use strict') /** * QRData * @author Kazuhiko Arase */ export abstract class QRData { constructor(private mode: Mode, private data: string) {} public getMode(): Mode { return this.mode } public getData(): string { return this....
import { RollupOptions } from 'rollup' import { promisify } from 'util' import { existsSync as fileExists, readFileSync as fileRead } from 'fs' import { resolve, sep as DIRECTORY_SEPARATOR } from 'path' import { exec as execCallback } from 'child_process' import rollupTypescriptDefinitions from 'rollup-plugin-dts' imp...
import { Component } from '@angular/core'; import { ViewController } from 'ionic-angular'; import { Logger } from '../../../providers/logger/logger'; import * as _ from 'lodash'; // Providers import { FeeProvider } from '../../../providers/fee/fee'; import { PopupProvider } from '../../../providers/popup/popup'; @Com...
<TS language="fr" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Cliquer à droite pour modifier l'adresse ou l'étiquette</translation> </message> <message> <source>Create a new address</source> ...
import "pepjs"; import { render, queries, RenderResult, RenderOptions, waitFor, } from "@testing-library/react"; import * as toolQueries from "./queries/toolQueries"; import { ImportedDataState } from "../data/types"; import { STORAGE_KEYS } from "../excalidraw-app/data/localStorage"; import { SceneData } ...
/* * 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 { Resou...
import {AttributeMetadata} from './../metadata/attribute-metadata'; import { DynamoEntityIndexesSchema, DynamoEntityIndexSchema, } from './../metadata/entity-metadata'; import { EntityTarget, Table, SparseIndexParseError, CONSUMED_CAPACITY_TYPE, InvalidDynamicUpdateAttributeValueError, } from '@typedorm/c...
import { iconify } from '@bone-ui/iconify' export const UserRemoveOutline = iconify({ displayName: 'UserRemoveOutline', fill: 'none', d: 'M13 7a4 4 0 11-8 0 4 4 0 018 0zM9 14a6 6 0 00-6 6v1h12v-1a6 6 0 00-6-6zM21 12h-6', }) export default UserRemoveOutline
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { Strategy } from 'passport-publickey'; import { PassportStrategy } from '@nestjs/passport'; import { AuthService } from '../auth.service'; import { lastValueFrom } from 'rxjs'; @Injectable() export class PublicKeyStrategy extends PassportStrat...
/* * @license * BSD License * * Copyright (c) 2020, UXLand * * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, this...
import { Injectable } from '@angular/core'; import * as io from 'socket.io-client'; import 'rxjs/Rx'; import { Donor } from '../model/donor.interface'; @Injectable() export class SocketService { private _socket: any = null; get socket(): any { return this._socket; } constructor() { this...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import axios from 'axios'; import * as RDF from "@rdfjs/types"; import * as n3 from "n3"; import { ns } from './namespaces'; const PREFIXCC = "https://prefix.cc/popular/all.file.json"; export default class ExistingPrefixes { prefixes: {[prefix: string]: RDF.NamedNode} = {}; constructor() { for (const [prefi...
import { Fn4 } from "@thi.ng/api"; import { IntersectionType } from "@thi.ng/geom-api"; import { maddN, ReadonlyVec } from "@thi.ng/vectors"; import { NONE } from "./api"; const min = Math.min; const max = Math.max; /** * Based on: * https://tavianator.com/fast-branchless-raybounding-box-intersections/ * * @param...
import { Injectable, MiddlewareFunction, NestMiddleware } from '@nestjs/common'; import { TOKEN_HEADER_NAME } from '../../config'; import { UserService } from '../services/user.service'; @Injectable() export class UserMiddleware implements NestMiddleware { constructor(private userService: UserService) { } resol...
export { MinesweeperWithUseReducer } from './MinesweeperWithUseReducer';
// smithy-typescript generated code export * from "./Interfaces"; export * from "./ListConnectorsPaginator"; export * from "./ListCustomPluginsPaginator"; export * from "./ListWorkerConfigurationsPaginator";
import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router" import HomeView from "../views/HomeView.vue" const routes: Array<RouteRecordRaw> = [ { path: "/", name: "home", component: HomeView }, { path: "/about", name: "about", // route level code-splitting // this...
/** * Created by jack on 16-4-21. */ import Vue from 'vue'; import Component from 'vue-class-component'; import throttle from 'lodash/throttle'; import './style.scss'; import * as DOMUtil from '@/common/util/dom'; import template from './template.html'; const DESKTOP_MODE = 'desktop'; @Component({ props: ['navLi...
import { SnackFiles, SnackDependencies, SDKVersion } from 'snack-content'; import { ProtocolOutgoingMessage, ProtocolIncomingMessage } from './Protocol'; export type SnackTransportStartMessage = { type: 'start'; }; export type SnackTransportStopMessage = { type: 'stop'; }; export type SnackTransportUpdateCodeMe...
// DB connection import mongoose from 'mongoose' import Restaurant from '../models/Restaurant.model' import Dish from '../models/Dish.model' import dotenv from 'dotenv' dotenv.config() const dbName = 'goxo' mongoose.connect(process.env.MONGODB_URI || `mongodb://localhost/${dbName}`, { useNewUrlParser: true, useU...
/* eslint-disable react/prop-types */ import { defaultGlobalEnv, getValue } from 'adaptivity/scripting'; import { EvaluationResponse, PartActivityResponse, RequestHintResponse, ResetActivityResponse, } from 'components/activities/DeliveryElement'; import { ActivityModelSchema, ActivityState, ClientEvaluat...
import { observable, set, action, computed, } from 'mobx'; // import key from "keymaster"; import { DEFAULT_STRING, DEFAULT_FUNCTION, IS_NODE } from '../../utils/constants'; // key.filter = (event: FilterEvent) => { // const { tagName = DEFAULT_STRING } = (event.target || event.srcElement || {}); // const sk...
import { getObjectClass, registerObjectClass } from "./ObjectClassMap"; import { DataStream } from "./DataStream"; import { ObjectInputStream } from "./ObjectInputStream"; import { FieldDesc, ObjectFieldDesc, PrimitiveFieldDesc, TypeCode } from "./FieldDesc"; import { decodeUtf8Buffer } from "./Utf8Decoder"; const STR...
export default class Vector3 { public static toIndex(name: string) { return Vector3.NAMES.indexOf(name) } public static toName(index: number) { return Vector3.NAMES[index] } private static readonly NAMES: string[] = ["x", "y", "z"] public x!: number public y!: number ...
import { Component, OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import { SecurityService } from '../../../core/security/security.service'; import { SideBarService } from '../../../shared/side-bar/side-bar.service'; import { SideBarStyles } from '../../../shared/side-bar/side-bar.styles';...
// #docplaster import { ComponentFixture, fakeAsync, inject, TestBed, tick, waitForAsync } from '@angular/core/testing'; import { Router } from '@angular/router'; import { ActivatedRoute, ActivatedRouteStub, asyncData, click } from '../../testing'; import { Hero } from '../model/hero'; import { HeroDetailComponent ...
import { IsAuditable } from '@app/core'; export interface LeadRefund extends IsAuditable { payday: Date; amount: number; note: string; }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // tslint:disable-next-line: no-any export type Newable<T> = new (...args: any[]) => T; export const webApiIocTypes = { azureFunctionContext: 'azureFunctionContext', };
declare class SNAPIGlideURLV3 { constructor(contextPath: string); /** * Adds a query string name-value pair to the URL. * @param name Name of the query string parameter. * @param value Query string value. */ addParam(name: string, value: string): string; /** * Get the entire context path and quer...
import cx from "classnames"; import _ from "lodash"; import React, { SFC } from "react"; import { Game } from "../../../stores/Models"; import styles from "./Expansions.module.scss"; const Expansions: SFC<{ game: Game }> = React.memo(({ game }) => { if (game.expansions) { const maxIndex = game.expansions.length - ...
// 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 { Component, Event, EventEmitter, Listen, Method, State } from '@stencil/core'; import { newSpecPage } from '@stencil/core/testing'; describe('event', () => { it('event normal ionChange event', async () => { @Component({ tag: 'cmp-a' }) class CmpA { @Event() ionChange: EventEmitter; @Stat...
import { IEventStores } from "atomservicescore"; import { createEventCursor } from "./core/createEventCursor"; import { IEventStoresConnector } from "./IEventStoresConnector"; export const createEventStores = (connector: IEventStoresConnector): IEventStores => ((Connector): IEventStores => { const stores: IEventStor...
import { Option } from '@ephox/katamari'; import { Element } from '@ephox/sugar'; import * as Behaviour from '../../api/behaviour/Behaviour'; import * as AlloyEvents from '../../api/events/AlloyEvents'; import { AlloyComponent } from '../../api/component/ComponentApi'; import { DomModification } from '../../dom/DomMod...
import { Module } from '@nestjs/common'; import { CategoriesModule } from '../products/categories/categories.module'; import { BrandsModule } from '../products/brands/brands.module'; import { ColorsModule } from '../products/colors/colors.module'; import { ProductsModule } from '../products/products.module'; import { S...
import Env from '@ioc:Adonis/Core/Env' export function buildPagination(pagination) { return { page: pagination.page || 1, perPage: pagination.perPage || 10, } } export function buildResponse( data: Record<string, any> | null = null, message = '', status = 0, detail = '' ) { return { data, ...
import { autoBindMethodsForReact } from 'class-autobind-decorator'; import React, { PureComponent } from 'react'; import { AUTOBIND_CFG } from '../../../common/constants'; import { Workspace } from '../../../models/workspace'; import { Modal } from '../base/modal'; import { ModalBody } from '../base/modal-body'; impor...
import React from 'react'; import RootStore from '../stores/RootStore'; import { Instance } from 'mobx-state-tree'; export default React.createContext<Instance<typeof RootStore>>(null as any);
import {useState} from 'react'; import {capitalize} from '@parca/functions'; import Input from '../../../Input'; import {DateTimeRange, RelativeDate, UNITS, UNIT_TYPE} from '../../utils'; import Button from '../../../Button'; import Select, {contructItemsFromArray} from '../../../Select'; const constructKeyAndLabels ...
/** * ID: 01588 * Title: Sum of All Odd Length Subarrays * Difficulty: Easy * Description: Given an array of positive integers arr, calculate the sum of all possible odd-length subarrays. * * A subarray is a contiguous subsequence of the array. * * Return the sum of all odd-length subarrays of arr. * * Exa...
import { defineConfig } from 'vite'; import path from 'path'; import config from './package.json'; import vue from '@vitejs/plugin-vue'; import dts from 'vite-plugin-dts'; const banner = `/*! * ${config.name} v${config.version} ${new Date()} * (c) 2022 @jdf2e. * Released under the MIT License. */`; let input = { ind...
import { INodeProperties, } from 'n8n-workflow'; export const postOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', type: 'options', displayOptions: { show: { resource: [ 'post', ], }, }, options: [ { name: 'Create', value: 'create', descri...