text
stringlengths
10
953k
export {RangenavigatorSeriesDirective,RangenavigatorSeriesCollectionDirective} from './series.directive'; export { RangeNavigatorComponent} from './rangenavigator.component'; export { RangeNavigatorModule } from './rangenavigator.module'; export { RangeNavigatorAllModule, RangeTooltipService, PeriodSelectorService } fr...
import * as React from "react"; import * as ReactDOM from "react-dom"; ReactDOM.render( <div> {/* react-a11y-anchors fails in one of my private projects, but works fine in this repo */} <a href="tel:1-234-567-8900">Link with tel in href</a> <a href="/link">Link with URL in href</a> </div>, doc...
import React from 'react'; import {createUniqueIDFactory} from '@shopify/javascript-utilities/other'; import OptionList, {OptionDescriptor} from '../../../OptionList'; import ActionList from '../../../ActionList'; import Popover from '../../../Popover'; import {PreferredPosition} from '../../../PositionedOverlay'; impo...
import {Type} from 'avsc' import {toElasticMappingType} from './toElasticMappingType' import {ElasticMappingType} from '../types' export const fromAvscType = (avscType: Type): ElasticMappingType => { const elasticMappingType = toElasticMappingType(avscType) return JSON.parse(JSON.stringify(elasticMappingType))...
import test from 'tape-promise/tape'; import {getWebGLTestDevices} from '@luma.gl/test-utils'; import {getShaderLayout} from '@luma.gl/webgl'; const TEST_CASES = [ { title: 'Attributes and sampler uniform', vs: `\ attribute vec3 positions; attribute vec2 texCoords; uniform mat4 uMVP; varyi...
import { Value } from '../../../src/render/value' import { Context } from '../../../src/context/context' import { expect } from 'chai' describe('Value', function () { it('should eval number variable', async function () { const ctx = new Context({ one: 1 }) expect(new Value('one').value(ctx)).to.equal(1) })...
import * as fs from 'fs'; import * as path from 'path'; import * as os from 'os'; import { IVSCode, FileFormat } from '../models'; export const vscode: IVSCode = { env: { appName: 'Code' }, version: '1000.0.0', workspace: {}, }; export function pathUnixJoin(...paths: string[]): string { return path.posix.join...
import express from 'express'; import routes from './routes/index'; const port = 3333; const app = express(); app.use(express.json()); app.use(routes); app.listen(port, () => { console.log(`Server started on ${port} port!`); });
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Litecoin</source> <translation>Acerca de CarsiCoin</translation> ...
import { INestApplication, Injectable, Logger } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; import { isEmpty } from 'class-validator'; import { writeFileSync } from 'fs'; import { TransmitterService } from 'src/app/transmitter/...
import * as React from "react"; import { View, Animated, TextInput as NativeTextInput, StyleSheet, Text, I18nManager, StyleProp, TextInputProps, NativeSyntheticEvent, TextInputChangeEventData, ViewStyle, TextStyle, LayoutChangeEvent, ImageStyle, } from "react-native"; import { withTheme } fr...
/** * @file Component: Options * @author yumao<yuzhang.lille@gmail.com> */ import { Component } from '@angular/core'; import { BUSY_CONFIG_DEFAULTS, IBusyConfig } from 'ng-busy'; import { Observer, Observable } from 'rxjs'; import { TemplateService } from '../../service/template.service'; @Component({ selector...
import React from 'react'; import { fn } from '../utils'; type func = () => void; interface Props { visible?: boolean | func; } // Todo deprecate it export default function visibleIfHOC<P>(Component: React.ComponentType<P>) { return class WithVisibleIf extends React.Component<P & Props> { render() {...
import { createEslintRule } from '../utils' export const RULE_NAME = 'no-leading-newline' export type MessageIds = 'noLeadingNewline' export type Options = [] export default createEslintRule<Options, MessageIds>({ name: RULE_NAME, meta: { type: 'problem', docs: { description: 'Do not allow leading n...
import { NegociacoesDoDia } from '../interfaces/negociacao-do-dia.js'; import { Negociacao } from '../models/negociacao.js'; export class NegociacoesService { public obterNegociacoesDoDia(): Promise<Negociacao[]> { return fetch('http://localhost:8080/dados') .then(res => res.json()) ...
import { h, TestElement, nodeOps, render, ref, KeepAlive, serializeInner, nextTick, ComponentOptions, markRaw, inject, defineComponent, ComponentPublicInstance, Ref, cloneVNode, provide, withScopeId } from '@vue/runtime-test' import { KeepAliveProps } from '../../src/components/KeepAli...
import React, { useRef } from 'react' import type { Identifier, XYCoord } from 'dnd-core' import type { FC } from 'react' import { useDrag, useDrop } from 'react-dnd' import { useStyletron } from 'baseui' export const ItemTypes = { CARD: 'card', } export interface ICardProps { id: any text: React.ReactEle...
import { Ref } from '../types'; export default (ref: Ref, validateWithStateUpdate: Function): void => { if (!ref.removeEventListener) return; ref.removeEventListener('input', validateWithStateUpdate); ref.removeEventListener('change', validateWithStateUpdate); ref.removeEventListener('blur', validateWithStateU...
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core' import React, { createContext, Fragment, memo, ReactNode, useContext, useEffect, useMemo, useState, } from 'react' import { Helmet } from 'react-helmet' import { Theme } from '../libs/theme' import { darkTheme } from '...
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { UsersResolver } from './users.resolver'; import { UsersService } from './users.service'; import { schemaName, UsersSchema } from './schemas/users.schema'; @Module({ imports: [ MongooseModule.forFeature([{ name: s...
// Type definitions for Pixi.js 4.7 // Project: https://github.com/pixijs/pixi.js/tree/dev // Definitions by: clark-stevenson <https://github.com/pixijs/pixi-typescript> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 declare namespace PIXI { // from CONST const VE...
import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty, IsString } from 'class-validator'; export class DeleteRoleDTO { @ApiProperty() @IsNotEmpty() @IsString() id: string; }
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import React from "react"; import { Link } from "react-router-dom"; import { Home } from "@material-ui/icons"; import Breadcrumbs from "@material-ui/core/Breadcrumbs"; import "./Menu.scss"; interface IMenuBaseProps { renderElement : JSX.Element; currentUrl?: string; } export default function({ renderElement, curr...
/** * Lists all the endpoints available in xivapi. */ export enum XivapiEndpoint { Achievement = 'Achievement', AchievementCategory = 'AchievementCategory', AchievementKind = 'AchievementKind', Action = 'Action', ActionCastTimeline = 'ActionCastTimeline', ActionCastVFX = 'ActionCastVFX', A...
import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable, throwError } from 'rxjs'; import { map, distinctUntilChanged, catchError } from 'rxjs/operators'; import { ApiService } from './api.service'; import { Profile, ProfileWeight, PolarUser } from '../models'; @Injectable({ providedIn: 'root...
import { Dialog, showDialog, showErrorMessage } from '@jupyterlab/apputils'; import { ISettingRegistry } from '@jupyterlab/settingregistry'; import { CommandRegistry } from '@lumino/commands'; import { Menu } from '@lumino/widgets'; import { TranslationBundle } from '@jupyterlab/translation'; import * as React from 're...
export { AccountsChart } from './AccountsChart';
/** * The action function */ export type Action = (...args: any[]) => any /** * A recorder snapshot of an action */ export type ActionSnapshot = {name: string, args: any[]} /** * The blueprint of the app's action manager. Injectible name **actions**. */ export interface ActionManager { /** * Push an a...
import Operator from '../Operator'; import Observer from '../Observer'; import Subscriber from '../Subscriber'; import Scheduler from '../Scheduler'; import immediate from '../schedulers/immediate'; import Subscription from '../Subscription'; import isDate from '../util/isDate'; export default function timeout(due: nu...
import type { IRoomTypeConfig } from '../../../definition/IRoomTypeConfig'; import type { RoomCoordinator } from '../coordinator'; export function getPublicRoomType(coordinator: RoomCoordinator): IRoomTypeConfig { return { identifier: 'c', order: 30, icon: 'hashtag', label: 'Channels', route: { name: 'ch...
import { IsNotEmpty, IsEmail, IsString, Length, Matches, } from 'class-validator'; import { ApiProperty } from '@nestjs/swagger'; import * as dict from './users.dictionary.json'; import { getMessageAsString } from '../shared/utils'; export class UserDto { @ApiProperty() @IsEmail(this, getMessageAsString(...
import { DryOption } from '../dry-command-config'; import { DryContext } from '../dry-context'; import { DryFeature } from '../dry-feature'; import { DryLifecyclePhase } from '../dry-step'; import { Logger } from '../logger'; /** * Dry feature responsible for enabling logging. The level is provided through the target...
import React from "react"; import { Item } from "src/interfaces/inventory"; import Button from "src/components/Button"; import "./Item.scss"; interface Props { addToCart?: (item: Item) => void; index: number; item: Item; disabled?: boolean; shop?: boolean; } const ListItem = ({ index, item, shop, addToCart, ...
import * as React from 'react' import { scrollDelay } from '../styles/variables' export const useScrollPage = (pageNum: number, ref: React.RefObject<HTMLElement>): number => { const [current, setCurrent] = React.useState(0) const scrolling = React.useRef(false) React.useEffect(() => { const handler = (e: Wh...
import { AxiosError } from 'axios'; import jwt, { JwtPayload, TokenExpiredError } from 'jsonwebtoken'; import { useContext } from 'react'; import { AuthContext, IAuthContextState, IJWTProfile, } from '../contexts/auth.context'; import { AccessTokenResponse, AuthService, } from '../services/auth/auth.service';...
import { TextInput, TextField } from 'react-admin'; import { ComponentGeneratorFunc, Field, Schema } from '../../../../../types'; export const TextFieldGenerator: ComponentGeneratorFunc = (s: Schema, f: Field) => { return (props: any) => { return <TextField {...props} />; }; } export const TextInputGenerator...
import {LogEventType} from '../constants/internal'; import {testController} from '../testController'; import {log} from '../utils/log'; import type {Inner} from 'testcafe-without-typecheck'; type TakeScreenshot = ((path?: string) => Promise<void>) & ((options: Inner.TakeScreenshotOptions) => Promise<void>); /** *...
import algosdk from 'algosdk'; import { WalletMultisigMetadata } from '@algosigner/common/types'; import { Validate, ValidationResponse, ValidationStatus } from '../utils/validator'; import { logging } from '@algosigner/common/logging'; import { InvalidTransactionStructure } from '../../errors/validation'; type AssetI...
import { StyleSheet } from 'react-native'; import constants from '../../../helpers/constants'; export default StyleSheet.create({ scrollView: { width: '100%', height: '100%', backgroundColor: constants.backgroundColor, padding: 0, margin: 0, }, container: { ...
/* * 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 React, { Component, Fragment } from 'react'; import { EuiButton, ...
import { Api, JsonRpc, ApiInterfaces, RpcInterfaces } from 'eosjs'; import { WalletProvider, NetworkConfig, WalletAuth, DiscoveryOptions } from 'eos-transit'; // import { SignatureProvider } from 'eosjs/dist/eosjs-api-interfaces'; let accountPublickey: string; let scatter: any; let signatureProvider: ApiInterfaces.Sig...
import * as React from 'react'; import { render } from 'react-dom'; import { Table, } from 'reactstrap'; import { IUserInRole } from './interfaces/Interfaces'; export interface IProps { members: IUserInRole[], deleteMember: (user: IUserInRole) => void } export default class MembersInRole extends React.Compo...
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 { getEndOfWeek } from './get-end-of-week'; import { describe, test, expect } from 'vitest'; describe('@svelteuidev/dates/get-end-of-week', () => { test('returns end of the week', () => { const endOfWeek = getEndOfWeek(new Date(2021, 1, 1)); expect(endOfWeek.getDay()).toBe(0); }); test('returns end of wee...
// For Library Version: 1.78.1 declare namespace sap { /** * SAPUI5 library with controls specialized for SAP Fiori apps. */ namespace f { namespace cards { /** * @SINCE 1.62 * * Marker interface for controls suitable as a header in controls that implement the {@link sap.f.ICar...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; import {Map, MapBrowserEvent} from 'ol'; import {MapService} from './map.service'; import {MapReadyEvent} from './models'; import {AsyncSubject} from 'rxjs';...
import { FileDescriptorProto } from 'ts-proto-descriptors/google/protobuf/descriptor'; /** This type is expecting a value from the Fields constant. */ export type FieldID = number; /** * The field values here represent the proto field IDs associated with the types * (file,message,enum,service). * * For more infor...
import { RqgActorSheet } from "../rqgActorSheet"; import { RqgActor } from "../rqgActor"; import { getDomDataset, getGame, getRequiredDomDataset, localize, RqgError } from "../../system/util"; import { ContextMenuRunes } from "./contextMenuRunes"; import { RqgItem } from "../../items/rqgItem"; import { ItemTypeEnum } f...
import { Component, OnInit, Input } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; @Component({ selector: 'app-general-delete-modal', templateUrl: './general-delete-modal.component.html', styleUrls: ['./general-delete-modal.component.scss'] }) export class GeneralDeleteCompone...
import { MLKitScanBarcodesOnDeviceOptions, MLKitScanBarcodesOnDeviceResult } from "./index"; import { BarcodeFormat, MLKitBarcodeScanner as MLKitBarcodeScannerBase } from "./barcodescanning-common"; export { BarcodeFormat }; export declare class MLKitBarcodeScanner extends MLKitBarcodeScannerBase { protected create...
import React, { FunctionComponent } from 'react'; import { FlowchartComponent } from '../flowchart-element/flowchart-component'; import { FlowchartTerminal } from './flowchart-terminal'; export const FlowchartTerminalComponent: FunctionComponent<Props> = ({ element }) => ( <FlowchartComponent element={element}> ...
import { Discount } from '../entities/discount.entity'; export const discountsProvider = [ { provide: 'DISCOUNT_REPOSITORY', useValue: Discount, }, ];
/** * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge...
/* * *** MIT LICENSE *** * ------------------------------------------------------------------------- * This code may be modified and distributed under the MIT license. * See the LICENSE file for details. * ------------------------------------------------------------------------- * * @s...
<?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 Inpluscoin</source> <translation>O Inpluscoinu</translation> </m...
import * as React from "react"; import styled from "styled-components"; import { handleChanged } from "features/auth-form/model"; import { Input, Label } from "ui/atoms"; type TField = { name: string; label: string; type: string; handler: typeof handleChanged; optional?: boolean; required?: bo...
import {IJob} from "./IJob"; export class SongFetchJob implements IJob { private _url: string; private _deliverTo: string; constructor(url: string, token: string) { this._url = url; this._deliverTo = token; } getJobKey(): string { return 'SongFetchJob'; } getJobRequestState(): any { ret...
import { Component } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { Controls, NgxSubFormComponent, subformComponentProviders } from 'ngx-sub-form'; import { DroidType, MedicalDroid } from 'src/app/interfaces/droid.interface'; @Component({ selector: 'app-medical-droid', tem...
import * as React from 'react'; import { useEffect, useState } from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import SEO from '../components/seo'; import './styles/tags.scss'; import PostList from '../components/PostList'; export interface TagsPageProps { data: any; } co...
// // https://github.com/wengjq/Blog/issues/3 // /** // * 深拷贝,支持常见类型 // * @param {Any} values // */ import typeObj = require('./isType') const { isDate, isRegExp, isFunction, isArray } = typeObj function cloneDeep(values: any) { const parents: Array<any> = [] const children: Array<any> = [] function clone(va...
// create-api.ts import { createVNode, render, VNode} from 'vue' import FormModal from './form-modal.vue' import {FormSchema} from "@/types/schema"; interface ModalInstance { remove(): void; $updateProps(props: any): void; } interface Options { handleOk: (modelRef: any, state) => Promise<any>; // 点击提交表单 ...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', async () => { await page.navigateTo(); expect(await page.getTitleText()...
import React, { ComponentProps, HTMLAttributes } from 'react'; import createComponent, { Component, IFunctionProps, Merge, PropGetterFn, PropsAndRef, styled, } from '@semcore/core'; import { Box, IBoxProps } from '@semcore/flex-box'; import addonTextChildren from '@semcore/utils/lib/addonTextChildren'; impo...
import { Transaction } from '@defichain/whale-api-client/dist/api/transactions' import { formatDistanceToNow } from 'date-fns' import BigNumber from 'bignumber.js' import { MdSwapHorizontalCircle } from 'react-icons/md' import { CollapsibleSection } from '@components/commons/sections/CollapsibleSection' import React, {...
import { IconCommonSearch } from '@app/assets/icons' import { useOpenStory } from '@app/hooks' import { useStoriesSearch, useWorkspaceView } from '@app/hooks/api' import { useStoryPathParams } from '@app/hooks/useStoryPathParams' import { ThemingVariables } from '@app/styles' import { DEFAULT_TITLE } from '@app/utils' ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { UnsuccessfulWorkflowExecution } from '@angular-devkit/schematics'; import { NodeWorkflow } from '@angular-de...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from "@angular/common/http"; import { environment } from 'environments/environment'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/of'; import 'rxjs/add/operator/toPromise'; import { catchError, debounceTime, dist...
import { observer } from 'mobx-react' import { Box, Flex } from 'theme-ui' import { AuthWrapper } from 'src/components/Auth/AuthWrapper' import { Button } from 'oa-components' import Heading from 'src/components/Heading' import { Link } from 'theme-ui' import ResearchListItem from './ResearchListItem' import { useResea...
import { Button } from "@material-ui/core"; import { attributeUrl } from "@saleor/attributes/urls"; import AssignAttributeDialog from "@saleor/components/AssignAttributeDialog"; import AttributeUnassignDialog from "@saleor/components/AttributeUnassignDialog"; import BulkAttributeUnassignDialog from "@saleor/components/...
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { GameService } from './game.service'; import { HttpClientModule } from '@angular/common/http'; describe('GameService', () => { beforeEach(() => TestBed.configureTestingModule({ imports: [ Route...
import {Injectable, NotFoundException} from '@nestjs/common'; import {CreatePerformanceDto} from './dto/create-performance.dto'; import {UpdatePerformanceDto} from './dto/update-performance.dto'; import {InjectModel} from "@nestjs/mongoose"; import {Model} from "mongoose"; import {Performance, PerformanceDocument} from...
import { Injectable } from '@angular/core'; import { DatatableColumn } from '../model/datatable-column'; import { ObservationTableColumn } from '../../observation-result/model/observation-table-column'; export interface IColumnGroup<T> { header: string; fields: Array<keyof T>; } export interface IGenericColumn<G ...
import { sortBy } from "@arkecosystem/utils"; import isEqual from "lodash.isequal"; export {}; declare global { namespace jest { // tslint:disable-next-line:interface-name interface Matchers<R> { toBeValidBlock(): R; toBeValidArrayOfBlocks(): R; } } } function ...
import { UserGetters } from '@vue-storefront/core'; import type { User } from '@vue-storefront/storefrontECommerce-api'; // eslint-disable-next-line @typescript-eslint/no-unused-vars function getFirstName(user: User): string { return ''; } // eslint-disable-next-line @typescript-eslint/no-unused-vars function getLa...
import { chain, getValue, map, Mappable } from "./main"; // Given a joining function and a list of mappable, creates a list of // values by applying all mappables to the value and joins the // resulting list with the joining function export function converge<A, B, C>(join: (vals: B[]) => C, fns: Mappable<A, B>[], val...
import {Component, OnInit} from '@angular/core'; @Component({ selector: 'index-component', templateUrl: './index.component.html' }) export class IndexComponent implements OnInit { /** * 父级菜单接收 * @type {string} */ recieveParentMenu: string = ''; /** * 子级菜单接收 * @type {string} ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About samaritan</source> <translation type="unfinished"/> </message> <message> <location line...
import { YoutubeRawData } from "../common"; import { Base, PlaylistCompact, Thumbnails, VideoCompact, BaseAttributes } from "."; /** @hidden */ interface ChannelAttributes extends BaseAttributes { name: string; thumbnails?: Thumbnails; videoCount?: number; subscriberCount?: string; } /** Represents a Y...
import { State, Padding } from "../types"; import { Placement, ComputedPlacement, Boundary, RootBoundary } from "../enums"; declare type Options = { placement: Placement; padding: Padding; boundary: Boundary; rootBoundary: RootBoundary; flipVariations: boolean; allowedAutoPlacements?: Array<Plac...
import { Injectable } from '@angular/core'; import { LoaderService } from 'ngx-weui/core'; @Injectable({ providedIn: 'root' }) export class JWeiXinService { constructor(private load: LoaderService) {} /** * 懒加载jweixin.js * * @param jweixinUrl 默认://res.wx.qq.com/open/js/jweixin-1.2.0.js */ get(jweixi...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
/// <amd-module name='View/_Request/Console' /> /* tslint:disable:no-console */ /* eslint-disable no-console */ import {IConsole} from 'View/_Request/Interface/IConsole'; // @ts-ignore import { constants } from 'Env/Env'; let isAllowedLog = (allowedLevel: LogLevel, methodLevel: LogLevel) => { return allowedLevel >...
import { assert } from 'chai' import _ from 'lodash' import { decode } from '@ledhed2222/ripple-binary-codec/dist' import { AccountSet, Client, SignerListSet, SubmitMultisignedRequest, Transaction, SubmitMultisignedResponse, computeSignedTransactionHash, } from 'xrpl-local' import { convertStringToHex } ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { Routes, RouterModule } from '@angular/router'; import { InputFieldComponent } from './input-field.component'; import { ErrorLab...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Penya</source> <translation>Про Penya</translation> </message> ...
import axios, { AxiosResponse, AxiosRequestConfig } from 'axios'; import { Service } from "../types"; export class HttpClient extends Service { constructor( private readonly _apiBasePath: string, ) { super(); } async get<T = any, R = AxiosResponse<T>>(url: string, params?: AxiosRequestConfig) { ...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { User_Info } from './user_info_entity'; @Injectable() export class UserInfoService { constructor( @InjectRepository(User_Info) private readonly UserInfoRepo...
export const completion: Fig.Spec = { name: "exa", description: "a modern replacement for ls", args: { variadic: true, name: "files...", template: "filepaths", }, options: [ { description: "show list of command-line options", name: ["-?", "--help"], }, { description: ...
/** * @jest-environment jsdom */ import * as TE from 'fp-ts/TaskEither'; import {main, SDK} from '../src/main'; import {program} from '../src/program'; import * as H from './_helpers'; import * as S from './services'; declare global { interface Window { ch: SDK; } } beforeEach(() => { (window as any).ch ...
import { NewsInterface,SourceInterface } from "../interfaces/news.interface"; class Source implements SourceInterface{ id: string='' name: string='' constructor(){ } } export class News implements NewsInterface{ source: SourceInterface=new Source() author: string='' title: string='' ...
import OSMFeature, {OSMTags} from "./OSMFeature"; export default class OSMNode extends OSMFeature { public lat: number; public lon: number; constructor(id: number, lat: number, lon: number, tags: OSMTags) { super(id, tags); this.lat = lat; this.lon = lon; } }
import Component, { Container } from "./Component"; import Player from "../utils/Player"; import { createDivNode, createButtonNode, createInputNode } from "../utils/singable"; import { singablePanel, connections, rootComp, editorSingable, editorBase } from "../renderer"; import OutputSingable from "./OutputSingable"; i...
import { logger } from '@nrwl/devkit'; import type { Arguments } from 'yargs'; import { DAEMON_OUTPUT_LOG_FILE } from '../core/project-graph/daemon/tmp-dir'; export async function daemonHandler(args: Arguments) { const { startInBackground, startInCurrentProcess } = await import( '../core/project-graph/daemon/cli...
import { Component, OnInit, AfterViewInit, OnDestroy, ViewChild, ViewChildren, QueryList } from '@angular/core'; import { Animations } from 'src/app/utilities/animations'; import { ActivatedRoute, Router } from '@angular/router'; import { Observable, from, Subject, BehaviorSubject, of, merge, forkJoin, combineLatest, E...
import { ElementRef, InjectionToken } from '@angular/core'; import { _Left, _Top, _XAxis, _YAxis } from '@angular/cdk/scrolling'; export const SMOOTH_SCROLL_OPTIONS = new InjectionToken<SmoothScrollOptions>('SMOOTH_SCROLL_OPTIONS'); export type SmoothScrollElement = HTMLElement | ElementRef<HTMLElement> | string; ex...
import {curry, isNil} from 'ramda'; import {Token} from '../config'; export const buildToken = curry((data, value) => ({ value, ...data })); export const isToken = ({type, value}: Token) => !isNil(type) && !isNil(value);
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import firebase from 'firebase'; const firebaseConfig = JSON.parse(process.env.REACT_APP_FIREBASE_CONFIG || ''); firebase.initializeApp(firebaseConfig); export default firebase;
import { useState } from 'react' import '../styles/tasklist.scss' import { FiTrash, FiCheckSquare } from 'react-icons/fi' interface Task { id: number; title: string; isComplete: boolean; } export function TaskList() { const [tasks, setTasks] = useState<Task[]>([]); const [newTaskTitle, setNewTaskTitle] = ...