text
stringlengths
10
953k
import React from 'react'; import { LockedIcon, } from '@patternfly/react-icons' import { Radio, } from '@patternfly/react-core'; import { Access } from '../auth'; type AccessChoiceProps = { checkedValue: Access, onChange(access: Access): void, } export default function AccessChoice({checkedValue, onCha...
export * from './logger'; export { colors } from './colors'; export { getPath } from './getPath'; export { renderHeader } from './renderHeader'; export { traceLine } from './traceLine';
import * as React from 'react'; import { StyledIconProps } from '../../StyledIconBase'; export declare const EditLocationDimensions: { height: number; width: number; };
const apis = [ { name: 'Props', descKey: 'app.api.title.props', version: '', type: '', enum: '', defVal: '', list: [ { name: 'modelValue', descKey: 'app.api.modal.desc.value', version: '', type: 'any', enum: '', defVal: '', list...
/* * 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 may ...
import type { AchievementRow, AchievementUnlockedRow, CourseAchievementRow } from '$lib/utils/types/achievement'; import type { AssetRow, AssetUnlockedRow } from '$lib/utils/types/assets'; import type { CourseMappingRow, CourseRow } from '$lib/utils/types/course'; import type { SessionRow } from '$lib/utils/types...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import '../common/extensions'; import { inject, injectable } from 'inversify'; import { ConfigurationChangeEvent, Disposable, OutputChannel, Uri } from 'vscode'; import { LSNotSupportedDiagnosticServiceId } from '../applic...
import { Module } from '@nestjs/common'; import { UserController } from './user.controller'; import { UserService } from './user.service'; import { TypeOrmModule } from '@nestjs/typeorm'; import { User } from './entity/user.entity'; @Module({ imports: [TypeOrmModule.forFeature([User])], providers: [UserService], ...
export * from './ap' export * from './chain' export * from './combine' export * from './combineArray' export * from './fromJust' export * from './fromMaybe' export * from './isJust' export * from './isNothing' export * from './Just' export * from './map' export * from './Maybe' export * from './Nothing'
import React from 'react'; import type { AuthClient, SupportedAuthTypes, SupportedAuthClients, SupportedUserMetadata } from "./authClients"; export interface CurrentUser { roles?: Array<string>; } export interface AuthContextInterface { loading: boolean; isAuthenticated: boolean; currentUser: null | Cur...
import ts from "typescript"; import { leancode } from "../protocol"; import type GeneratorCommand from "./GeneratorCommand"; import type GeneratorQuery from "./GeneratorQuery"; import type GeneratorInternalType from "./types/GeneratorInternalType"; export default interface GeneratorContext { currentNamespace?: str...
/* tslint:disable:jsx-no-multiline-js */ import React from 'react'; import { Image, Text, Dimensions, View } from 'react-native'; import Flex from '../flex'; import Carousel from '../carousel'; import GridStyle from './style'; import { DataItem, GridProps } from './PropsType'; export default class Grid extends React.C...
import { OptTab, OptTabs } from "@optsol/react"; import { Meta, Story } from "@storybook/react/types-6-0"; import React from "react"; export default { title: "OptTabs", component: OptTabs, } as Meta; export const OptTabsExample: Story<{}> = (args) => { const [tab, setTab] = React.useState(0); const alterarTa...
import { API_ROOT } from 'src/constants'; import Request, { setData, setMethod, setURL } from 'src/request'; import { updateAccountSchema, UpdateAccountSettingsSchema } from './account.schema'; import { Account, AccountSettings, CancelAccount, CancelAccountPayload, NetworkUtilization } from './types'; /*...
import { combineReducers, applyMiddleware, createStore } from '@reduxjs/toolkit'; import thunk from 'redux-thunk'; import favouritesReducer from './favourites/reducer'; import { Favourites } from './favourites/type'; export interface GlobalState { favouritesState: Favourites; } const combinedReducer = combineReduce...
import { createStore } from 'redux' import rootReducer from './reducer' const store = createStore(rootReducer) export default store
import Point from '@mapbox/point-geometry' import { covering, Index } from '../src/labeler' import assert from 'assert' import baretest from 'baretest' let test = baretest("labeler") test('covering', async () => { let result = covering(3,1024,{minX:256,minY:256*2,maxX:256+1,maxY:256*2+1}) assert.deepEqual(res...
import * as React from 'react'; import PropTypes from 'prop-types'; import SwiperCore from 'swiper'; import { Swiper, SwiperSlide } from 'swiper/react'; import throttle from 'lodash.throttle'; import { cnCreate } from '@megafon/ui-helpers'; import './Tabs.less'; import { ITabProps } from './Tab'; import ArrowLeft from ...
import { ChangeDetectionStrategy, Component, HostBinding, } from '@angular/core'; import { faChartBar, faFileAlt, } from '@fortawesome/free-regular-svg-icons'; @Component({ selector: 'daffio-why-pwa-examples', templateUrl: './why-pwa-examples.component.html', styleUrls: ['./why-pwa-examples.component.s...
/// <reference path="../typings/tsd.d.ts" /> // model import { Tab } from "./tab" import { WidgetGroup } from "./widget_group" import { Widget } from "./widget" import { WidgetInstance } from "./widget_instance" import { SerializedWorkspace } from "../model/serialized_workspace"; // super import { frontend } from ".....
import { AfterViewInit, ViewChild } from '@angular/core'; import { Component } from '@angular/core'; import { CountdownTimerComponent } from './countdown-timer.component'; @Component({ selector: 'app-countdown-parent-vc', template: ` <h3>Countdown to Liftoff (via ViewChild)</h3> <button (click...
import { Controller, Get } from '@nestjs/common'; import { User } from './models/user.entity'; import { UserService } from './user.service'; @Controller('users') export class UserController { // Dependency Injection constructor(private userService: UserService) { } @Get() async all(): Promis...
/** * Top-level type definitions. These are processed by Rollup and rollup-plugin-dts * to make a combined .d.ts file under dist; that way, all of the type definitions * appear directly within the "chart.js" module; that matches the layout of the * distributed chart.esm.js bundle and means that users of Chart.js ca...
export async function updateSuggestionsCache<T extends string | number>(args: { added?: T removed?: T suggestionLimit?: number getCache(): Promise<T[]> setCache(suggestions: T[]): Promise<void> }) { let suggestions = await args.getCache() if (args.added != null) { const index = sugge...
import { Semaphore } from './semaphore'; const awaitTime = (ms: number): Promise<void> => new Promise(resolve => setTimeout(resolve, ms)); jest.setTimeout(20); describe('Semaphore', () => { test('new Semaphore should create non-fair semaphore', () => { const semaphore = new Semaphore(); expect(se...
// Copyright 2017-2021 @axia-js/util-crypto authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { BN } from '@axia-js/util'; import type { HexString } from '@axia-js/util/types'; import type { Prefix } from './types'; import { encodeAddress } from './encode'; import { createKeyMulti } from './ke...
import styled from "@emotion/styled"; import { fontHeaderXxs, getColors, Props } from "czifui"; import { Circle } from "src/components/Circle"; import { Status } from "../common"; export const Container = styled.div` display: flex; flex-direction: column; justify-content: center; align-items: center; width: ...
import { ShortcutProvider } from '@slimsag/react-shortcuts' import AlertCircleIcon from 'mdi-react/AlertCircleIcon' import ServerIcon from 'mdi-react/ServerIcon' import * as React from 'react' import { Route } from 'react-router' import { BrowserRouter } from 'react-router-dom' import { combineLatest, from, Subscriptio...
import { topmost, EventData } from 'tns-core-modules/ui/frame'; export const POPOVER_SHOW_EVENT_NAME = 'showPopover'; export const POPOVER_HIDE_EVENT_NAME = 'hidePopover'; export type PopoverComponentType = { path: 'shared/components/popovers/message'; name: 'message'; bindingContext: string; }; export i...
import type { IncomingHttpHeaders } from 'http' import type { I18NConfig } from '../config-shared' import { PERMANENT_REDIRECT_STATUS } from '../../shared/lib/constants' import { getCookieParser, NextApiRequestCookies } from '../api-utils' export interface BaseNextRequestConfig { basePath: string | undefined i18n...
import { INTERPOLATORS } from 'app/modules/editor/model/interpolators'; import { Layer, VectorLayer } from 'app/modules/editor/model/layers'; import { Animation, AnimationBlock } from 'app/modules/editor/model/timeline'; import { ModelUtil } from 'app/modules/editor/scripts/common'; import * as _ from 'lodash'; const ...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { ConverterAnchorAdded as ConverterAnchorAddedEvent, ConverterAnchorRemoved as ConverterAnchorRemovedEvent, ConvertibleTokenAdded as ConvertibleTokenAddedEvent, ConvertibleTokenRemoved as ConvertibleTokenRemovedEvent, LiquidityPoolAdded as LiquidityPoolAddedEvent, LiquidityPoolRemoved as...
import React from "react"; import { useToggle } from "react-use"; import { useFetchFarms } from "state/farms"; import { AppLayout } from "components/layout"; import { Button, Container, Flex, FormControl, FormLabel, Heading, HStack, Link, Spinner, Stack, StackDivider, Switch, useColorModeValu...
import { v4 as uuidv4 } from 'uuid'; import { Entity, BaseEntity, Column, PrimaryColumn, BeforeInsert, OneToOne, OneToMany, } from 'typeorm'; import Account from './Account'; import Event from './Event'; @Entity('Profile') export default class Profile extends BaseEntity { @PrimaryColumn('uuid') id: ...
import collectAnalytics from '../../hooks/collect-analytics'; import * as authentication from '@feathersjs/authentication'; import { disallow } from "feathers-hooks-common"; const { authenticate } = authentication.hooks; export default { before: { all: [authenticate('jwt'), collectAnalytics()], find: [], ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { TransactionSelectaddressPageRoutingModule } from './transaction-selectaddress-routing.module'; import { TransactionSelectaddre...
/// <reference path="model.ts" /> module KG { export interface RestrictionDefinition { expression: string; type: string; min?: string; max?: string; } export interface IRestriction { valid: (model:Model) => boolean; } export class Restriction implements IR...
import type { IFormDataState } from '../../features/form/data/formDataReducer'; import { checkIfRuleShouldRun, getRuleModelFields } from '.'; const ruleHandleFn = (obj) => { obj.a = +obj.a; obj.b = +obj.b; obj.c = +obj.c; return obj.a + obj.b + obj.c; }; describe('features/rules checkIfRuleShouldRun', () => {...
import {Component, OnInit} from '@angular/core'; @Component({ selector: 'app-privacy-policy', templateUrl: './privacy-policy.component.html', styleUrls: ['./privacy-policy.component.css'] }) export class PrivacyPolicyComponent implements OnInit { constructor() { } ngOnInit() { } }
export var Global = { url: 'https://productorescotopaxi.com/api_patronato/', }; //url: 'http://localhost/api_patronato/',
import { SurveyModel } from "../src/survey"; import { PageModel } from "../src/page"; import { QuestionFactory } from "../src/questionfactory"; import { Question } from "../src/question"; import { PanelModel } from "../src/panel"; import { QuestionTextModel } from "../src/question_text"; import { JsonObject, JsonUnknow...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const biCpuFill: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const ligatures...
/** @jsx jsx */ import { CircularProgress } from "@material-ui/core" import * as R from "ramda" import { useCallback, useState } from "react" import { useDropzone } from "react-dropzone" import { Box, Flex, jsx } from "theme-ui" /** * nginx is setup to automatically handle and rewrite the url path. */ const API_ENDPO...
/* eslint-disable react/jsx-sort-props */ import * as React from 'react'; import * as vars from '../../styles/variables'; import AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG'; /** * This is an auto-generated component and should not be edited * manually in contributor pull requests...
// Copyright Contributors to the Amundsen project. // SPDX-License-Identifier: Apache-2.0 import * as React from 'react'; import { Link } from 'react-router-dom'; import * as DocumentTitle from 'react-document-title'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { RouteComp...
import * as React from 'react'; import styled from 'styled-components'; import { px } from '../../../../utils'; import { FormWidgetProps } from '../../../unstable-typings'; const STRENGTH_TITLES = ['Very weak', 'Weak', 'Good', 'Strong', 'Very strong']; const STRENGTH_STYLES = [ { width: 0 }, { width: '25%', backgrou...
import { exception } from 'console'; export class EnsureThat { static isTrue(value: boolean, message: string) { if (value == null) throw new Error(message); } static isNotNull(value: any, message: string) { if (value == null) throw new Error(message); } }
/// <reference types="node" /> import { AccountInfo } from '@solana/web3.js'; import BN from 'bn.js'; import { AnyPublicKey, StringPublicKey } from "../../../types"; import { Account } from '../../../Account'; import { MetaplexKey } from '../MetaplexProgram'; import { Buffer } from 'buffer'; export interface BidRedempt...
import { async, ComponentFixture, TestBed } from "@angular/core/testing"; import { ExampleServicesComponent } from "./example-services.component"; describe("ExampleServicesComponent", () => { let component: ExampleServicesComponent; let fixture: ComponentFixture<ExampleServicesComponent>; beforeEach(async(() =...
import { browser, by, element } from 'protractor'; export class AppPage { navigateTo(): Promise<unknown> { return browser.get(browser.baseUrl) as Promise<unknown>; } getTitleText(): Promise<string> { return element( by.css('app-root .content span'), ).getText() as Promise<string>; } }
import React, { useState } from 'react'; import FloatingActionButton from '../components/FloatingActionButton'; import { StyleSheet, View, Text } from 'react-native'; const CounterScreen = () => { const [counter, setCounter] = useState(10); const handleOnPressMore = () => setCounter(counter + 1); const handleO...
import { Requester, Validator } from '@chainlink/ea-bootstrap' import { AdapterResponse, ExecuteWithConfig } from '@chainlink/types' import { Conflux } from 'js-conflux-sdk' import { ethers } from 'ethers' import { Config } from '../config' const sendFulfillment = async ( provider: any, account: any, to: string,...
'use strict'; import Vue from 'vue'; import App from './App.vue' import EmbedVideoPlayer from './embeds/html5'; import EmbedTwitchPlayer from './embeds/twitch'; import EmbedYouTubePlayer from './embeds/youtube'; import VODPlayer from './vodplayer'; // main hooks document.addEventListener("DOMContentLoaded", () => { ...
import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get() getHello(): string { // return this.appService.getHello(); return "Hola Cesar"; } }
import * as React from "react"; declare const ClrMediaChangerSolidAlerted: React.SFC; export default ClrMediaChangerSolidAlerted;
import { Autowired, Bean, ChangedPath, FilterManager, PostConstruct, RowNode, BeanStub } from "@ag-grid-community/core"; @Bean("filterService") export class FilterService extends BeanStub { @Autowired('filterManager') private filterManager: FilterManager; private doingTreeData: bo...
import "./non-ideal-state.scss"; export type NonIdealStateProps = { description?: string; title: string; }; export const NonIdealState = ({ description, title }: NonIdealStateProps) => { // TODO: Add icon return ( <div className="non-ideal-state"> <div className="non-ideal-state-visual"></div> ...
import React, { forwardRef } from 'react'; import type { IconBaseProps } from '../icon/IconBase'; import IconBase from '../icon/IconBase'; const ChatLeftHeart = forwardRef<HTMLSpanElement, IconBaseProps>(({ svgProps, ...restProps }, ref) => { return ( <IconBase aria-label="chat-left-heart" {...restProps} ref={re...
/* * << * Davinci * == * Copyright (C) 2016 - 2017 EDP * == * 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 b...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { showErrorMessage } from '@jupyterlab/apputils'; import { ActivityMonitor } from '@jupyterlab/coreutils'; import { ABCWidgetFactory, DocumentRegistry, DocumentWidget } from '@jupyterlab/docregistry'; im...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Property } from '../model/property'; import { ApiService } from './api.service'; @Injectable() export class PropertyService { constructor( private readonly apiService: ApiSer...
export * from './expensesDetail.component';
import React, { useMemo, memo } from 'react'; import { View, ViewStyle, StyleProp } from 'react-native'; // @ts-ignore 😞 import isEqual from 'lodash.isequal'; import BubbleTabBarItem from './item'; import RawButton from '../../components/rawButton'; import { DEFAULT_ITEM_ANIMATION_DURATION, DEFAULT_ITEM_ANIMATION_...
import * as THREE from "three" import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js" import * as dat from "dat.gui" import { getFood } from "./food" import { range } from "../utils/array" /** * Base */ // Debug const debug = { background: { color: "#335F70", }, items: { number: 5...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Component, ViewChild } from '@angular/core'; import { StepperComponent } from './stepper.component'; import { AbstractContentReplacerComponent } from '../../abstracts/abstract-content-swap/abstract-content-replacer.component'; import { ...
import { Helpers } from "./Objects/Helpers"; const {ccclass, property} = cc._decorator; @ccclass export default class MainMenu extends cc.Component { // LIFE-CYCLE CALLBACKS: onLoad () { Helpers.checkForDBUpdates(); Helpers.setUpAll(); Helpers.scheme.loadColors(this.node); ...
export type Unwatch = () => void export declare class Path<T> { set(value: T): void get(): T watch(fn: (state: T) => void): Unwatch unwatch: Unwatch batch(fn: (path: Path<T>) => void): void getPath(): string getPathFull(): string[] path<K extends keyof T>(key: K): Path<T[K]> } export declare function pa...
/** * * Every Time that a function be added here, * you need to add the type to * the types/yup.d.ts file * */ import * as yup from "yup"; export type Yup = typeof yup; export { yup };
var Finder = Application("Finder"); var selection = [].slice.call(Finder.selection()); // 選択項目を全て取得する selection.map(function(item: any) { var appName: string = item.nameExtension(); // 選択された項目の拡張子を取得する Finder.includeStandardAdditions = true; // 標準コマンドを使用可能にする Finder.displayAlert(appName); // アラートダイアログを表示する ...
import randomId from '../randomId'; describe('"randomId"', () => { it('Generates a random id of default length', () => { expect(randomId()).toMatch(/[a-z0-9]{10}/); }); it('Generates a random id of specific length', () => { expect(randomId(100)).toMatch(/[a-z0-9]{100}/); }); it('Generates an empt...
import { Localized } from "fluent-react/compat"; import React, { FunctionComponent } from "react"; import { Flex, Icon } from "coral-ui/components/v2"; import styles from "./Title.css"; const Title: FunctionComponent = () => ( <Flex className={styles.root} alignItems="center"> <Icon className={styles.icon} siz...
import { mergeStyleSets } from '@fluentui/react'; import React from 'react'; type TSizings = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; interface IFluentGridProps { spacing?: TSizings; justify?: 'start' | 'center' | 'end'; style?: React.CSSProperties; } export const FluentGrid: React.FC<IFluen...
import {ref, onMounted, onUnmounted} from 'vue' import {debounce} from 'lodash' /** * description: 获取页面宽度 */ export function useDomWidth() { const domWidth = ref(window.innerWidth) function resize() { domWidth.value = document.body.clientWidth } onMounted(() => { window.addEventLi...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { StorerequisitionsComponent } from './storerequisitions.component'; describe('StorerequisitionsComponent', () => { let component: StorerequisitionsComponent; let fixture: ComponentFixture<StorerequisitionsComponent>; beforeEach(a...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="pl"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Smcoins</source> <translation>O Smcoins</translati...
import { AdapterRequest } from '@chainlink/types' import request, { SuperTest, Test } from 'supertest' import * as process from 'process' import { server as startServer } from '../../src' import * as nock from 'nock' import { mockResponseSuccess } from './fixtures' import { AddressInfo } from 'net' describe('execute',...
import { IExecuteFunctions, } from 'n8n-core'; import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, NodeOperationError, } from 'n8n-workflow'; import { payoutFields, payoutItemFields, payoutItemOperations, payoutOperations, } from './PaymentDescription'; import { IAmount, IItem, IPaym...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' import './check.scss' export default function CheckIcon(): JSX.Element { return ( <svg xmlns='http://www.w3.org/2000/svg' className='CheckIcon ...
import { Config } from '@stencil/core'; import { sass } from '@stencil/sass'; export const config: Config = { namespace: 'mdtohtml', outputTargets:[ { type: 'dist' }, { type: 'www', serviceWorker: null } ], plugins: [ sass() ] };
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ActionState, Guid, User } from '../..'; /** * The action handler function type. */ export type ActionHandler = (user: User) => void; interface ActionHandlers { 'started'?: ActionHandler; 'stopped'?: A...
export const dictionary = { errors: { incorrectId: 'Error: incorrect ID', passwordMatchError: 'Weak password', validationError: 'Error: validation failed.', tokenError: 'Error: wrong access token.', tokenExpired: 'Error: token expired', tokenDoesntExist: "Error: user doesn't have access token....
// Copyright (c) Jan Freyberg // Distributed under the terms of the Modified BSD License. // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore // eslint-disable-next-line @typescript-eslint/no-var-requires const data = require('../package.json'); /** * The _model_module_version/_view_module_ve...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import type { nbformat } from '@jupyterlab/coreutils'; import type { Kernel } from '@jupyterlab/services'; import { inject, injectable } from 'inversify'; import * as path from 'path'; import * as uuid from '...
export const defaultStopCard = t => ({ id: 1, title: { fi: t('viewEditorName'), sv: '', en: '' }, columns: { left: { inUse: true, title: { fi: t('sideLeft'), sv: '', en: '' }, stops: [], }, right: { inUse: false, title: { fi: t('sideRight'), sv: '', en: '' }, stops:...
describe('tile component test', () => { let bindings; let columns = [{is_narrow: true}, {is_narrow: true}, {text: 'Name', col_idx: 0}, {text: 'First value', col_idx: 1}]; let rows = [ { id: 2, cells: [ {is_checkbox: true}, {image: 'some_url.jpg', icon: 'fa fa-icon'}, {text: 'first name'}...
import { IconDefinition } from '../types'; declare const StepBackwardFill: IconDefinition; export default StepBackwardFill;
import { IsOptional, IsString, IsNotEmpty } from 'class-validator'; export class CreateProjectDto { @IsString() @IsNotEmpty() readonly name: string; @IsString() @IsNotEmpty() readonly code: string; @IsString() @IsNotEmpty() readonly status: string; @IsString() @IsNotEmpty() readonly user_apr...
import { DEEZER_SET_ACCESS_TOKEN, DEEZER_SET_EXPIRESIN, DEEZER_FETCH_PROFIL_DATA, DEEZER_FETCH_PLAYLIST_DATA, } from '@actions/actions'; type DeezerState = { accessToken: string; expiresIn: string; profil: object; playlist: object; }; interface Action { type: string; payload: string | object; } c...
import { Component, Input, OnInit } from '@angular/core'; @Component( { selector: 'app-box-content-loader', templateUrl: './box-content-loader.component.html', styleUrls: [ './box-content-loader.component.scss' ], } ) export class BoxContentLoaderComponent implements OnInit { @Input() width?: string; @Input(...
import { RollCommand } from './roll-command'; import { UserError } from '../error'; const winston = require('winston'); describe('RollCommand', function () { let roll; const context = { username: 'tyros' }; const logger = winston.createLogger({ transports: [new winston.transports.Console()], }); logger....
import { Component, OnInit } from '@angular/core'; import { AuthenticationService } from '../../../authentication.service'; import { LocationService } from 'shared/services/location.service'; @Component({ selector: 'app-edit-city-loc', templateUrl: './edit-city-loc.component.html', styleUrls: ['./edit-city-loc.c...
export default class TestItem { public logText: string = ""; public async init(): Promise<any> { return 0; } public async dispose(): Promise<any> { return 0; } public log(text: string): void { if (text) { this.logText += text; } } public d...
import { CesiumService } from '../../../cesium/cesium.service'; import { EllipseGeometry } from 'cesium'; import { Injectable } from '@angular/core'; import { StaticPrimitiveDrawer } from '../static-primitive-drawer/static-primitive-drawer.service'; /** + * This drawer is responsible for drawing an ellipse over the...
// import { BaseFireStore, CompositeId, PlayerId, WorldId, AllianceId, CityId } from './db'; // import { StCity } from '@cncta/util'; // export interface TaPlayer extends BaseFireStore { // id: CompositeId<[WorldId, PlayerId]>; // allianceKey: CompositeId<[WorldId, AllianceId]>; // playerId: PlayerId; // ...
import { mkdir, track } from 'temp'; import { join } from 'path'; //track(); export function createModuleFolder(): Promise<string | any> { return new Promise((resolve, reject) => { mkdir('latex.js', (error: any, folderPath: string) => { if (error) reject(error); resolve(folderPath); }); }); } ...
import { useMemo, useState } from 'react'; import styled from 'styled-components'; import { Box, DashboardPanel } from '@components'; import Icon from '@components/Icon'; import { useUserActions } from '@services'; import { getAccountsAssets, getAllClaims, getENSRecords, getIsMyCryptoMember, getStoreAccount...
import { IValidateAndI18nKey } from '../validation/validate'; import { TranslatedValueOrKey } from './translation'; export interface IDirtyInput<T> { dirty?: boolean; onMadeDirty?: () => void; valid?: boolean; onValidChange?: (isValid: boolean) => void; onChange?: (t: T) => void; validation?: Array<IValida...
import { INode } from "../types"; export interface INeighborsOptions<TNodeMeta, TEdgeMeta> { node: INode<TNodeMeta, TEdgeMeta>; exclude?: Set<INode<TNodeMeta, TEdgeMeta>>; includeEdgeToExcludedNode?: boolean; } /** * This method gathers neighboring nodes of an input node. You can optionally exclude nodes from ...
import { TestBed } from '@angular/core/testing'; import { ISailsClientConfig } from './sails-client.config'; import { SailsClient } from './sails-client.service'; import { SailsClientModule } from './sails-client.module'; describe('SailsClientProvider', () => { it('should work with no config', () => { TestBed.c...