text
stringlengths
10
953k
/* * Copyright 2017 Simon Edwards <simon@simonzone.com> * * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. */ import * as fs from 'fs'; import * as path from 'path'; export interface ScriptText { type: 'text'; text: string; } export interface ScriptWait { type:...
import React from "react"; import {Form,Choice,Category,Text} from "./schema.ts"; export default function FormBody(form: Form): Array<object> { if (!form || !form.categories) return []; let fieldSets = form.categories.map( (cat, i): Array<object> => { switch(cat) { case Category.Choice: return _...
import {F1Parser} from '../F1Parser'; export class TyreStintHistoryDataParser extends F1Parser { constructor() { super(); this.uint8('m_endLap') .uint8('m_tyreActualCompound') .uint8('m_tyreVisualCompound'); } }
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptUISideDrawerModule } from "nativescript-ui-sidedrawer/angular"; import { AppRoutingModule } from "./app-routing.module"; import { AppComponent } from "./app.co...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MediaFolderExplorerComponent } from './media-folder-explorer.component'; describe('MediaFolderExplorerComponent', () => { let component: MediaFolderExplorerComponent; let fixture: ComponentFixture<MediaFolderExplorerComponent>; ...
import {Define, FrameElement} from '@framejs/core'; import './code-examples/typescript-example'; import './elements/label/label'; import './elements/button/button'; import './elements/logo/logo'; @Define({ tag: 'frjs-app', style: require('./app.scss').toString() }) class App extends FrameElement { render()...
export class GatewayEvents { static readonly Game: { Create : string, List : string, Play : string, JoinPlayer: string, Leave : string, EnterValue: string, } = { Create : 'game:create', List : 'game:list', Play : 'game:play', JoinPlayer: 'game:j...
import { ScaledRenderer } from './scaled-renderer'; export interface WatermarkRendererLineData { text: string; font: string; lineHeight: number; vertOffset: number; zoom: number; } export type HorzAlign = 'left' | 'center' | 'right'; export type VertAlign = 'top' | 'center' | 'bottom'; export interface Watermar...
/* * 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 { APMDoc } from './APMDoc'; import { Container } from './fields/Contai...
// -- copyright // OpenProject is an open source project management software. // Copyright (C) 2012-2020 the OpenProject GmbH // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License version 3. // // OpenProject is a fork of ChiliProject, which i...
/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
import {Injectable, Inject, Injector} from "@angular/core"; import {Http} from "@angular/http"; import {Observable} from "rxjs/Observable"; import { WiContrib, WiServiceHandlerContribution, ActionResult, IActionResult, IFieldDefinition, WiContribModelService, WiContributionUtils, IConnec...
import { AbstractControl, ValidationErrors } from '@angular/forms'; import { Author } from '../../shared/shared.module'; export class AuthorsValidator { static atLeastOne(control: AbstractControl): ValidationErrors | null { if (!control.value) { return; } const value: Author[] = control.value; if (valu...
<TS language="zh_TW" 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>產生一個新位址</translation...
import ChatClient, { PrivateMessage } from 'twitch-chat-client'; export default class BotCommandContext { readonly user: string; readonly channel: string; /** @private **/ constructor(private _client: ChatClient, public readonly msg: PrivateMessage) { this.user = msg.userInfo.userName; this.channel = msg.para...
import * as models from 'powerbi-models'; import { IFilterable } from './ifilterable'; import { IPageNode, Page } from './page'; /** * A Visual node within a report hierarchy * * @export * @interface IVisualNode */ export interface IVisualNode { name: string; title: string; type: string; layout: models.IV...
import * as assert from 'assert'; import * as child from 'child_process'; import * as path from 'path'; import ActivitySettings from '.'; describe(ActivitySettings.name, () => { it('should enable allowUsersToRelateMultipleContactsToTasksAndEvents', function() { this.timeout(1000 * 90); this.slow(1000 * 30); ...
import { promises as fs } from 'fs'; import * as os from 'os'; import * as path from 'path'; import { execAndCaptureError, execAndWaitForOutputToMatch } from '../../utils/process'; export default async function () { // Windows Cmd and Powershell do not support autocompletion. Run a different set of tests to // con...
import styled from 'styled-components'; export const Wrapper = styled.div` width: fit-content; height: fit-content; `;
import { SimpleChange } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MockComponent } from 'ng2-mock-component'; import { MapComponent } from './map.component'; import { FormatterService } from '@core/formatter.service'; import { GeoService } from '@shared/ge...
/* * 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 { Component, OnInit, Input } from '@angular/core'; import { IRadnik } from '../../../../shared/modeli/radnik'; @Component({ moduleId: module.id, selector: 'profil', templateUrl: 'profil.component.html', providers:[] }) export class ProfilComponent implements OnInit { constructor() { ...
/* eslint-disable */ /** * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ import { TNode, TElement, SizeEnum } from '../common'; import { MouseEvent } from 'react'; export interface TdButtonProps { /** * 是否为块级元素 * @default false */ block?: boolean; /** * 按钮内容,同 content */ children?: TNode; /** * ...
import { InjectQueue } from '@nestjs/bull'; import { Injectable } from '@nestjs/common'; import { Queue } from 'bull'; import { UserDTO } from 'src/user/dto/user.dto'; import { PreopenUser } from 'src/user/entities/preopen-user.entity'; import { User } from 'src/user/entities/user.entity'; import { UserService } from '...
import { Injectable } from '@angular/core'; import {MetaMenu} from '../../../domain/meta.menu'; import {HttpClient} from '@angular/common/http'; import {tap} from 'rxjs'; import {environment} from '../../../../environments/environment'; @Injectable({ providedIn: 'root' }) export class MetaMenuService { menu: Meta...
/* --- STATE --- */ export interface CreateWalletState { mnemonic: string[] checkbox: boolean }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
import { Test, TestingModule } from '@nestjs/testing'; import { InteractionController } from './interaction.controller'; describe('Interaction Controller', () => { let controller: InteractionController; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: ...
import chalk from "chalk"; import {Job} from "./job"; import {assert} from "./asserts"; import {Argv} from "./argv"; import {ExitError} from "./types/exit-error"; export class JobExecutor { static async runLoop(argv: Argv, jobs: ReadonlyArray<Job>, stages: readonly string[], potentialStarters: Job[]) { le...
import type { TestRunner } from "atom" //@ts-ignore import type * as Jasmine from "jasmine" export interface SpecHelpers { /** * This will spy on `atom.menu.sendToBrowserProcess` and add default config options: * * ```js * atom.config.set("core.destroyEmptyPanes", false) * atom.config.set("editor.fontFamily...
import { Injectable } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http'; import { Observable } from 'rxjs'; import { environment } from '@env/environment'; /** * Prefixes all requests with `environment.serverUrl`. */ @Injectable() export class ApiPrefi...
import {Observable} from '../../Observable'; import {mergeMap, MergeMapSignature} from '../../operator/mergeMap'; Observable.prototype.mergeMap = <any>mergeMap; Observable.prototype.flatMap = <any>mergeMap; declare module '../../Observable' { interface Observable<T> { flatMap: MergeMapSignature<T>; mergeMap...
// Type definitions for Sequelize 3.30.4 // Project: http://sequelizejs.com, https://github.com/sequelize/sequelize // Definitions by: samuelneff <https://github.com/samuelneff> // Peter Harris <https://github.com/codeanimal> // Ivan Drinchev <https://github.com/drinchev> // ...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as utilities from ".....
import MouseTrail, { MouseTrailProps } from "@pjsalita/react-mouse-trail"; import { useState } from "react"; const boxColors = [ "#ffc09f", "#ffee93", "#fcf5c7", "#a0ced9", "#adf7b6", "#ffffff", ]; const App: React.FC = () => { const [color, setColor] = useState<string>("#000000"); const [idleAnimatio...
import { MDCRipple } from '@material/ripple'; export function init(elem): void { MDCRipple.attachTo(elem); }
export const hasToken = () => { if (typeof window !== "undefined") { if (window.localStorage.getItem("shoof-token")) { return true; } else return false; } };
import * as _ from 'lodash'; import { Component, OnInit, ViewEncapsulation, ViewChild, ViewContainerRef } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { Accordion } from 'ngx-accordion'; import { FlashMessageService } from '../../../services/flash-message'; import { RestClien...
import { Account, Cluster, clusterApiUrl, Connection, PublicKey, sendAndConfirmTransaction, Transaction, TransactionInstruction, Context, SignatureResult, SYSVAR_RECENT_BLOCKHASHES_PUBKEY, } from "@solana/web3.js"; import { initAccount, SwitchboardAccountType, createOwnedStateAccount, SWIT...
import { App } from '@aws-cdk/core'; import { EmailTestApiAppLayeredLambdas } from '../resources/lambdas'; import { CoreStack } from '../stacks/core'; export class EmailTestApiApp extends App { constructor( stackName: string, domainName: string, sourceCodeBucketName: string, baseLay...
import { $ } from 'protractor'; export const guaranteedPolicyCheckbox = $('.pf-c-check__label'); export const noGuaranteedPolicyText = 'No Dedicated resources applied'; export const guaranteedPolicyText = 'Workload scheduled with dedicated resources (guaranteed policy)';
import { Request, Response } from 'express'; import { getCustomRepository } from 'typeorm'; import { AppError } from '../errors/AppError'; import { SurveysUsersRepository } from '../repositories/SurveysUsersRepository'; class AnswerController { async execute(request: Request, response: Response) { const { value ...
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { DatabaseModule } from 'src/database/database.module'; import { MessageModule } from 'src/message/message.module'; import { ConfigModule } from '@nestjs/config'; import { WinstonModule } from 'nest-winston'; import { Deb...
import { getConfig } from "./loader"; import chalk from "chalk"; type ConfigToValidate = ReturnType<typeof getConfig>; export const validate = (config: ConfigToValidate): void => { if (!config.token) { panicLog( "Discord token is missing. Add token property to configuration file. Exiting application." ...
import { ComponentFactoryResolver, EventEmitter, QueryList, Type, ViewContainerRef } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { DynamicFormArrayGroupModel, DynamicFormControlContainerComponent, DynamicFormControlEvent, DynamicFormControlModel, DynamicFormLayout, DynamicFormLayoutService,...
import { configure } from '@storybook/react'; function loadStories() { require('./stories.tsx'); } configure(loadStories, module);
import React from 'react' const Shamrock = ({ size, rem }: { size: number | string, rem?: boolean }) => { const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px` return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style={{ width: width }}><path fill="#77B255" d=...
export * from './change-droplet-kernel/change-droplet-kernel'; export * from './create-droplet/create-droplet'; export * from './create-droplets/create-droplets'; export * from './delete-droplet/delete-droplet'; export * from './delete-droplets-by-tag/delete-droplets-by-tag'; export * from './disable-droplet-backups/di...
import { DoCheck, NgModule, Directive, ElementRef, Renderer2, OnDestroy, Input, Output, OnInit, OnChanges, EventEmitter, HostListener } from '@angular/core'; import { DragScrollOption } from './interface/drag-scroll-option'; @Directive({ selector: '[dragScroll]' }) export class DragScrollDire...
import React, { useState } from 'react'; import { Nav, INavLinkGroup, INavLink } from '@fluentui/react'; import UrlParserExample from "./examples/url-parser.json"; import SyntaxExample from "./examples/syntax.json"; import DiffExample from "./examples/645-medium-diff.json"; import StringToUnionExample from "./examples/...
import { EventEmitter, OnInit } from '@angular/core'; import { AmplifyService } from '../../../providers/amplify.service'; export declare class S3AlbumComponentCore implements OnInit { protected amplifyService: AmplifyService; list: Array<Object>; _path: string; _options: any; protected logger: any;...
/** * Copyright 2017-2020 the original author or authors from the JHipster Online project. * * This file is part of the JHipster Online project, see https://github.com/jhipster/jhipster-online * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...
/** * @file ToTop 去顶部 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime'; export default IconWrapper( 'to-top', true, (h: IconHelper, props: ISvgIconProps) => ( <svg ...
import { Capacidad } from 'app/shared/models/capacidad'; export interface Subcategoria { id?: string; nombre: string; descripcion: string; peso: number; idCategoria: any; capacidades?: Capacidad[]; }
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import PreviewTransform from "./PreviewTransform"; export default PreviewTransform;
import { fastTreeItem } from '@microsoft/fast-components'; export const getTreeItem = () => fastTreeItem();
/** * defines a group generated * from an Array-reduce operation * * @export */ export interface ReducedGroup { /** * the grouping key * */ key: any; /** * the grouping values * */ values: any[]; }
/* * Copyright © 2022 SNOMED International * * 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 ...
import * as dotenv from "dotenv"; dotenv.config(); import { MetricsAdvisorKeyCredential, MetricsAdvisorAdministrationClient, EmailNotificationHook, WebNotificationHook, EmailNotificationHookPatch } from "@azure/ai-metrics-advisor"; export async function main() { // You will need to set these environment va...
import {RouterModule, Routes} from "@angular/router"; import {NgModule} from "@angular/core"; import {SettingsComponent} from "./settings/settings.component"; const routes: Routes = [ { path: 'settings', component: SettingsComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [...
/// <reference path="constants.ts" /> module ag.grid { var DEFAULT_ROW_HEIGHT = 25; var constants = Constants; function isTrue(value: any) { return value === true || value === 'true'; } export class GridOptionsWrapper { private gridOptions: GridOptions; private groupHea...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-radio', templateUrl: './radio.component.html', styleUrls: ['./radio.component.css'] }) export class RadioComponent implements OnInit { isChecked = true; constructor() { } ngOnInit() { } }
export default state => { return state.jobRuns.currentJobRunsCount }
import { Avatar, makeStyles } from "@material-ui/core"; import React, { FC } from "react"; interface HighlightAvatarProps { color: string; } const useStyles = makeStyles({ root: (props: HighlightAvatarProps) => ({ backgroundColor: props.color }) }); const HighlightAvatar: FC<HighlightAvatarProps> = (props)...
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Result } from '../result'; import { IndexedDBConfig } from './indexedDB-config'; import { IndexedDBConfigRules } from './indexedDB-config-rules'; import { StorageConfig } from './storage-config'; @Injectable({ providedIn: 'root' }...
import { Component, OnInit, Input, ViewContainerRef, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { Overlay, overlayConfigFactory } from 'angular2-modal'; import { Modal, BSModalContext } from 'angular2-modal/plugins/bootstrap'; import { InputBase } from '../../models/input/input-...
/* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable import/no-unresolved */ import AccountPlusPaths from "./paths/AccountPlus"; // @ts-ignore import createSvgIcon from "@sonnat/ui/utils/createSvgIcon"; const AccountPlus = createSvgIcon(Account...
import React from 'react'; import { useRef } from 'react'; export const CustomComp = ({ handleFileSelection = () => {} }) => { const inputRef = useRef<HTMLInputElement>(null); const handleClick = () => { inputRef.current?.click(); }; return ( <> <input className="d-none" onChange={handleFileSel...
import { useRouter } from 'next/router' import NavigationLink from '../Navigation/NavigationLink' import { FOOTER_LINKS } from '../../../constants/links' function FooterNavigation() { const router = useRouter() return ( <> {FOOTER_LINKS.map((link, index) => ( <div className="px-4 lg:w-1...
import React from "react"; import { styled } from "@mui/system"; import MainPageButton from "./MainPageButton"; const MainContainer = styled("div")({ width: "72px", height: "100%", display: "flex", flexDirection: "column", alignItems: "center", backgroundColor: "#202225", // eslint-disable...
// -- copyright // OpenProject is a project management system. // Copyright (C) 2012-2015 the OpenProject Foundation (OPF) // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License version 3. // // OpenProject is a fork of ChiliProject, which is a...
import { InjectionToken } from '@angular/core'; export interface IWindowRefService { nativeWindow: Window | object; } export const WINDOW_REF_SERVICE = new InjectionToken<IWindowRefService>('WINDOW_REF_SERVICE');
import {IToolBarItem} from "./IToolBarItem"; import * as React from "react"; import {Ace, edit} from "ace-builds"; import {execute, formatDate, guid, range, repeat} from "hefang-js"; import {DialogOperater, Icon} from "hefang-ui-react"; import * as pkg from "../package.json" import {Icons} from "./icons"; import {Markd...
import { types, Instance } from 'mobx-state-tree'; import { AmmoType } from 'src/types/entity'; const ParamsBase = types.model({ x: types.number, y: types.number, angle: 0, }); export const InfiniteParams = types.compose(ParamsBase, types.model({ infiniteAmmo: types.enumeration(Object.values(AmmoType)), }), )...
import { render } from '@shared/tests'; import { createPassThroughPropsTest } from '@shared/tests/utils'; import { Avatar } from '@ui5/webcomponents-react/dist/Avatar'; import { Bar } from '@ui5/webcomponents-react/dist/Bar'; import { BarDesign } from '@ui5/webcomponents-react/dist/BarDesign'; import { DynamicPageHeade...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
import { User } from 'user/interfaces/user.interface'; import { Document } from 'mongoose'; export interface Comment extends Document { author: User; content: string; post: string; isAnswer: Boolean; answers: Comment[]; }
import { ethers } from 'ethers' import { Requester, Validator } from '@chainlink/external-adapter' import { ExecuteWithConfig, Config } from '@chainlink/types' import * as faunadb from 'faunadb' import { config } from 'dotenv' config() //import { NAME as AdapterName } from '../config' export const NAME = 'getstatehas...
function clamp(value: number, min: number, max: number) { return Math.min(Math.max(value, min), max); } export class CurvedScale { step: number = 1; domain: number[] = [0, 1]; range: number[] = [0, 1]; getRange() { return this.range; } getDomain() { return this.domain; } setDomain = (val: n...
import * as yargs from "yargs"; import { auth, logout } from "./api/auth"; import { getEmbeddedCardDashboard, queryCard } from "./api/card"; yargs .command({ command: "query-card", describe: "Query a card", builder: { cardId: { describe: "Card ID to be queried", demandOption: true, ...
import { Action, ActionPanel, Clipboard, Color, confirmAlert, getPreferenceValues, Icon, List, LocalStorage, openExtensionPreferences, showHUD, showToast, Toast, useNavigation, } from "@raycast/api"; import { useEffect, useState } from "react"; import { fetchItemInput } from "./util/input"; ...
import * as Fun from 'ephox/katamari/api/Fun'; import * as Contracts from 'ephox/katamari/api/Contracts'; import { UnitTest, assert } from '@ephox/bedrock'; UnitTest.test('ContractsTest', function() { const a = Fun.constant('element'); const b = Fun.constant('destroy'); const c = Fun.constant('events'); const...
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { RouterModule } from '@angular/router'; import { BarfitterSharedModule } from '../../../shared/shared.module'; import { DailyOrdersReportService, DailyOrdersReportPopupService, DailyOrdersReportComponent, // DailyOrdersReportDetailCom...
import { install } from "../install"; import Pagination from "./pagination.vue" export { install, Pagination }
import { TeleportController } from './portalBeam' import { createEventsVerticalMenu, fillEventsMenu, updateEventsMenu, createCrowdVerticalMenu, fillCrowdsMenu, createClassicsVerticalMenu, fillClassicsMenu, updateCrowdsMenu} from './menuMainFunctions' import {lobbyCenter, lobbyHeight, lobby...
//===----------------------------------------------------------------------===// // // This source file is part of the VSCode Swift open source project // // Copyright (c) 2021 the VSCode Swift project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt fo...
import { renderFullscreen } from "../render"; import { Color, Component, TimingBelt } from "parsegraph-window"; import { Direction, NodePalette, PreferredAxis } from "parsegraph-direction"; import World from "../World"; import BlockTreeNode from "../treenode/BlockTreeNode"; import DefaultNodePalette from "../DefaultNod...
import { Querier } from '../orbiter'; /** * ==================================== * 🧪🔬 TEST OF OLDF WORKER🩺🧫 * ==================================== */ describe('🟡 Testing Querier.filterSimpleArray() ...', () => { it('should filter an array of objects with one level-depth', () => { const products = [ ...
import type { ICalendarYearStyleProps, ICalendarYearStyles } from './CalendarYear.types'; export declare const getStyles: (props: ICalendarYearStyleProps) => ICalendarYearStyles;
import AppLayout from './app-layout' export * from './app-layout' export default AppLayout
export interface ISignOptions { /** Raw string of arguments (simple-signtool won't provide flags) */ rawString?: string; /** * Selects the best signing certificate automatically. If this option is not present, SignTool expects to find only one valid signing certificate. */ auto?: boolean; ...
import { Card } from '../../../interfaces' import Set from '../Celestial Storm' const card: Card = { name: { en: "Energy Switch", fr: "Échange d’Énergie", es: "Interruptor de Energía", it: "Scambio di Energia", pt: "Substituição de Energia", de: "Energie-Umschalter" }, illustrator: "Ken Ikuji", rarity:...
import { Component, h, State, Host } from '@stencil/core'; import { RESOURCES } from './resources-data'; import { ResponsiveContainer } from '@ionic-internal/sites-shared'; @Component({ tag: 'resources-page', styleUrl: 'resources-page.css', }) export class ResourcesPage { @State() searchTerm: string = ''; @Sta...
import { IRouteConfig } from "./interfaces"; export function allObjectKeys(obj: any): PropertyKey[] { const names = Object.getOwnPropertyNames(obj) as PropertyKey[]; const symbols = Object.getOwnPropertySymbols(obj) as PropertyKey[]; return names.concat(symbols); } export function ensureArray<T>(value: T | nul...
import React from 'react' import { Link } from '@chakra-ui/core' export const getLink = (name: string, link: string) => { return ( <Link href={link} isExternal> {name} </Link> ) }
namespace FlightFinder.Web.Api { class ClientBase { public transformOptions(options: RequestInit) { options.credentials = "same-origin"; return Promise.resolve(options); } } /* tslint:disable */ //---------------------- // <auto-generated> // Generated...
/** * The components managing the seo of the pages * @module components/Seo */ import React from 'react' import { Helmet } from 'react-helmet' type SeoProps = { title: string, description: string } /** * @function Seo * Create the component Seo * @return {Object} Return the dom of the Seo page */ const Se...
import { Sequelize } from 'sequelize-typescript' import config from '../config' // import MigrateService from '../service/migrate' const chalk = require('chalk') const now = () => new Date().toISOString().replace(/T/, ' ').replace(/Z/, '') const logging = process.env.NODE_ENV === 'development' ? (sql: string) => { ...
module Core.UI{ export class UIBase extends Laya.View{ } }
import ProcessPacket, { ProcessPacketType } from './ProcessPacket' import { Document } from 'mongoose'; import { continuingGiveawayMetric, continuingSurveyMetric } from '../telemetry/metrics/NumericMetric'; export type TransferableModelTypes = 'Raffle' | 'Survey' interface IModelTransferPacket<S extends Document>{ ...