text
stringlengths
10
953k
import Vue from 'vue' import { Store } from 'vuex' import { ElNotification, ElNotificationComponent } from '../../node_modules/element-ui/types/notification'; import _ from "lodash" interface Notification { id: number title: string content: string [key: string]: any } export default class NotificationService {...
import { Resource } from 'cdktf'; import { EcsCluster } from '../../.gen/providers/aws'; import { Construct } from 'constructs'; export interface ApplicationECSClusterProps { prefix: string; tags?: { [key: string]: string }; } /** * Generates an Application Certificate given a domain name and zoneId */ export c...
/** * DevExtreme (viz/vector_map/projection.d.ts) * Version: 16.2.1-16294 * Build date: Thu Oct 20 2016 * * Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ import DevExtreme from '../../bundles/dx.all'; export declare let projecti...
import React from 'react'; import renderer from 'react-test-renderer'; import { MockTheme } from '@tests/utils'; import BoxDetails from '.'; // ================================== // unit tests // ================================== describe('components: BoxDetails', () => { it('matches snapshot', () => { const du...
import { Currency } from "./currency"; export interface TemplateBody { file: any[]; calcs: any[]; currency: Currency; budget: number; region: string; }
/** * It is just `{ [key: string | number | symbol]: any }` an object interface. */ export interface AnyObj { [key: string | number | symbol]: any; } export interface ApiResponse<T, M = AnyObj, E = { message: string }> { data?: T[]; /** * Backend metadata used to generate the current query on the frontend....
/* * 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 from 'react'; import { EuiPanel } from '@elastic/eui'; import { E...
import { Where, where } from './Where'; /** * Returns a predicate that negates the `test` predicate. * * @param test a predicate to negate */ export const not = <T>(test: Where<T>) => where((t: T) => !test(t), v => v.not(test));
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; import { LoggerService } from '../../../service/logger.service'; @Component({ selector: 'app-smart-dumb-concept', templateUrl: './smart.component.html', styleUrls: ['./smart.component.css'], changeDetection: ChangeDetectionStrategy.OnP...
/** * @license * Copyright 2016 Google Inc. * 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 React from 'react'; import { useHistory, useParams } from 'react-router-dom'; import { useAsync, useAsyncFn } from 'react-use'; // helpers import { FetchWithAuth } from '../../helpers/fetch'; // components import Button from '../../components/button'; import Page from '../../components/page'; import Placeholde...
/// <reference types="node" /> import express from "express"; import { xdr } from "stellar-base"; import { Transaction as SolanaTransaction } from "@solana/web3.js"; import commonpb from "@kinecosystem/agora-api/node/common/v3/model_pb"; import { PrivateKey, Environment, ReadOnlyPayment } from ".."; export declare cons...
/// <reference path="globals/chai/index.d.ts" /> /// <reference path="globals/istanbul/index.d.ts" /> /// <reference path="globals/mocha/index.d.ts" /> /// <reference path="globals/sinon/index.d.ts" />
import { AxiosError } from "axios"; import { QueryClient, useInfiniteQuery, useQuery } from "react-query"; import { ItemInDatabase, ReadItems } from "../../../types/generated"; import { BASE_PATH } from "../../common/constants"; import { axiosGetWrapper } from "../../common/query"; export const useInfiniteQueryItems =...
import React, { forwardRef, memo } from 'react'; import { StyleSheet } from 'react-native'; import Backdrop from '../Backdrop'; import { Slide } from '../Transitions'; import { FocusScope } from '@react-native-aria/focus'; import { useControllableState, usePropsResolution } from '../../../hooks'; import { AlertDialogCo...
import * as functions from 'firebase-functions'; import { FieldPath } from '@google-cloud/firestore'; import { db } from '../../../app'; import { MARKER_COLLECTION_ID, MarkerInfo, SerializableMarkerInfo } from '../../../models/markers'; /* eslint-disable max-len */ const LICENSES = { reach4help: 'This data by ...
import { ValueAsString, Value } from "./Card"; const validStrings = Object.values(ValueAsString); /** * returns the value represented by the given string, or errors if unable to * @param input */ const valueFromString = (input: string): Value => { if (!validStrings.includes(input as ValueAsString)) { throw n...
import {useDataHook} from "model-react"; import {FC, MutableRefObject, useState} from "react"; import {BezierSegmentState} from "../state/segments/BezierSegmentState"; import {CrossSectionState} from "../state/CrossSectionState"; import {StraightSegmentState} from "../state/segments/StraightSegmentState"; import {Sweep...
const chart_donut_pie_angle_Padding: {"name": "--pf-chart-donut--pie--angle--Padding"; "value": 1; "var": "var(--pf-chart-donut--pie--angle--Padding)";} export default chart_donut_pie_angle_Padding
import * as _dublinBus from './dublin-bus' import * as _irishRail from './irish-rail' import * as _luas from './luas' export default { dublinBus: _dublinBus, irishRail: _irishRail, luas: _luas } export const dublinBus = _dublinBus export const irishRail = _irishRail export const luas = _luas
import { Declaration, SignatureDeclaration, Symbol, TypeChecker } from 'typescript'; import { getDeclarationTypeText } from '../services/TsParser/getDeclarationTypeText'; import { getTypeParametersText } from '../services/TsParser/getTypeParametersText'; import { ExportDoc } from './ExportDoc'; import { ModuleDoc } fro...
#!/usr/bin/env node import {DSLAdapter} from './dsl/DSLAdapter'; import {ForceLayoutAdapter} from './layout/ForceLayoutAdapter'; import {GraphUtils} from './layout/GraphUtils'; import {AttachLayout} from './layout/AttachLayout'; let program = require('commander'); let version = require('../../package.json').version; ...
import { Plugin, InjectionKey } from "vue"; import type { ToastInterface } from "./ts/interface"; import { POSITION, TYPE } from "./ts/constants"; import { EventBusInterface, EventBus } from "./ts/eventBus"; import type { PluginOptions } from "./types"; import "./scss/index.scss"; declare function createToastInterface(...
import { Injectable } from '@nestjs/common'; import { CreateCategoryDto } from './dto/create-category.dto'; import { UpdateCategoryDto } from './dto/update-category.dto'; import { Model } from 'mongoose'; import { Category } from './category.interface'; import { InjectModel } from '@nestjs/mongoose'; @Injectable() exp...
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' import { IMenubarList } from '/@/type/store/layout' import { components } from '/@/router/asyncRouter' const Components: IObject<() => Promise<typeof import('*.vue')>> = Object.assign({}, components, { Layout: (() => import('/@/layout/in...
const packageJSON = require("../../package.json"); const logger = require("../util/logger"); const migration1 = require("./migration1"); import { getServerInfo, addServerInfo, updateServerInfo } from "../dbController/ServerInformation.ctrl"; // TODO: Use memory cache, like **memcached**. Cache system info in me...
import React from 'react'; import { Txt } from '../../Txt'; import { JsonTypes } from '../types'; import { UiOption } from './ui-options'; import { Widget, WidgetProps } from './widget-util'; import { formatTimestamp, timeSince } from './widget-util'; export const ElapsedTimeWidget: Widget = ({ value, }: Omit<Widget...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { PluginConfig } from '@bfc/extension'; import formSchema from './formSchema'; const config: PluginConfig = { formSchema, }; export default config;
import { NgModule } from '@angular/core'; import { FormModule } from './form/form.module'; import { UiModule } from './ui/ui.module'; @NgModule({ imports: [ FormModule, UiModule ], exports: [ FormModule, UiModule ] }) export class MandateModule { }
export { AggregatePostGroupArgs } from "./AggregatePostGroupArgs"; export { CreateManyPostGroupArgs } from "./CreateManyPostGroupArgs"; export { CreatePostGroupArgs } from "./CreatePostGroupArgs"; export { DeleteManyPostGroupArgs } from "./DeleteManyPostGroupArgs"; export { DeletePostGroupArgs } from "./DeletePostGroup...
// (C) 2020-2021 GoodData Corporation export * from "./DefaultDashboardInsightMenu"; export * from "./LegacyDefaultDashboardInsightMenu"; export { DashboardInsightMenuButton } from "./DashboardInsightMenuButton"; export { DashboardInsightMenu } from "./DashboardInsightMenu"; export { CustomDashboardInsightMenuButto...
import { Component, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { AuthService } from '../../core/auth.service'; import { Definition } from '../definition'; import { RequirementService } from '../requirement.service'; @Co...
import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand"; import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand"; import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "./commands/CreateE...
import { VideoDto } from '@hashtube/core/lib/video' import { Context } from '@nuxt/types' import axios from 'axios' import { Component, Vue } from 'nuxt-property-decorator' import { MetaInfo } from 'vue-meta' import { VideoDescription } from '../../components/video/video-description' import { VideoPlayer } from '../../...
import { useCallback, useEffect, useState } from 'react' import { Currency, ETHER, JSBI, TokenAmount } from '@pancakeswap/sdk' import { Button, ChevronDownIcon, Text, AddIcon, useModal } from '@pancakeswap/uikit' import styled from 'styled-components' import { useTranslation } from 'contexts/Localization' import { Next...
export enum EntityType{ User, Applicant, Project, Vacancy, Pool, MailTemplate }
import { Injectable } from '@angular/core'; import * as url from 'url'; import { TranslocoService, getBrowserCultureLang, getBrowserLang } from '@ngneat/transloco'; export type WalletStore = 'localStorage'|'none'; export type PoWSource = 'server'|'clientCPU'|'clientWebGL'|'best'|'custom'; export type LedgerConnectionT...
// // Copyright (c) 2017 Electronic Arts Inc. All Rights Reserved // import { NgModule } from '@angular/core'; import { Http, RequestOptions } from '@angular/http'; import { AuthHttp, AuthConfig } from 'angular2-jwt'; export function authHttpServiceFactory(http: Http, options: RequestOptions) { return new AuthHttp...
import { gql, useMutation, useQuery } from '@apollo/client'; import { Button, Card, Form, Input, Modal, PageHeader, Space, Table } from 'antd'; import type { ColumnsType } from 'antd/lib/table'; import React, { createContext, forwardRef, useCallback, useImperativeHandle, useRef, useState, } from...
import fc from "fast-check"; import { isPlainObject } from "../../../../../../lib/preconditions"; import { LumberjackValidationError } from "../../../../../../error"; const TheExpectedError = LumberjackValidationError; describe("isPlainObject()", () => { it(`should reject anything that isn't an object`, () => { ...
import { Toolkit } from 'actions-toolkit' import { Signale } from 'signale' import nock from 'nock' import fs from 'fs' import path from 'path' import jsYaml from 'js-yaml' import { Inputs } from '../src' export function generateToolkit() { const tools = new Toolkit<Inputs>({ logger: new Signale({ disabled: true...
import * as RMWC from '@srmwc/types'; import React from 'react'; import { classNames, useClassNames, Tag, createComponent } from '@srmwc/base'; import { withRipple } from '@srmwc/ripple'; import { Icon, IconProps } from '@srmwc/icon'; /** A ListItem component. */ export interface ListItemProps extends RMWC.WithRipple...
import { Time } from '@/mods/shared/constants/filters' import { Text } from '@/ui' import { ShowByTimeSelector } from './ShowByTimeSelector' export const LogsHeader: React.FC<{ total: number onChange: (data: Time) => void }> = ({ onChange, total }) => ( <div className="flex justify-between items-center mb-4"> ...
/** * Lists plugin spec */ import { createElement, detach, isNullOrUndefined, selectAll } from '@syncfusion/ej2-base'; import { EditorManager } from '../../../src/editor-manager/index'; function setCursorPoint(element: Element, point: number) { let range: Range = document.createRange(); let sel: Selection = ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.1"> <context> <name>GM_AddScriptDialog</name> <message> <location filename="../gm_addscriptdialog.ui" line="14"/> <source>GreaseMonkey Installation</source> <translation>GreaseMonkey Ezarpena</translation> </message> ...
import { ShallowWrapper } from 'enzyme'; import * as React from 'react'; import { ModalDialog } from '../../_shared/ModalDialog'; import ModalWrapper, { ModalWrapperProps } from '../../wrappers/ModalWrapper'; import { shallow } from '../test-utils'; describe('ModalWrapper', () => { let component: ShallowWrapper<Moda...
// Copyright 2016 The Oppia 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 ap...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'appAddTabIndex' }) export class AddTabIndexPipe implements PipeTransform { transform(value: any, args?: any): any { if (value === null || value === undefined) { return value; } let search: string; let linkReplacement = '<a tabindex="2...
import { Promise } from "./Promise"; import { IXHROptions, IXHRApi } from "./Interfaces"; import { XHRDefault } from "./XHRDefault" export class XHRFactory { static xhrHelper: IXHRApi; static get XHRApi() { if (typeof this.xhrHelper === 'undefined' || this.xhrHelper === null) { this.xhrHelper = new XHRDefault...
// *** 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 { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
import React from 'react'; import { Item, items } from '../../../__mocks__/data.mock'; import { cnDocsDecorator } from '../../../../../uiKit/components/DocsDecorator/DocsDecorator'; import { cnDocsExample } from '../../../../../uiKit/components/DocsExample/DocsExample'; import { StoryBookExample } from '../../../../.....
import { User } from './user.entity'; import { createParamDecorator, ExecutionContext } from '@nestjs/common'; export const GetUser = createParamDecorator( (_data, ctx: ExecutionContext): User => { const req = ctx.switchToHttp().getRequest(); return req.user; }, );
import fs from 'fs-extra'; import semver from 'semver'; import semverRegex from 'semver-regex'; import * as Markdown from './Markdown'; /** * Type of the objects representing single changelog entry. */ export type ChangelogEntry = { /** * The change note. */ message: string; /** * The pull request nu...
import { browser, by, element } from 'protractor'; export class AngularFastifyStarterPage { navigateTo() { return browser.get('/'); } getParagraphText() { return element(by.css('app-root h1')).getText(); } }
import 'reflect-metadata'; import dotenv from 'dotenv'; import {configureLogger, logger} from '../utils/logger'; import {OrmService} from '../modules/engine/services/orm.service'; import {Container} from 'typescript-ioc'; import passport from 'passport'; import {ConfigService} from '../modules/engine/services/config.se...
import {Component, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core'; import {ProfileService} from '@shared/services/profile.service'; import {Profile} from 'model/Profile'; import {AppConfig} from 'app/app.config'; import {LogService} from '@shared/modules/logs/services/log.service'; @Component({ sele...
import { NorwegianId } from '../src/index'; import { set, reset } from 'mockdate'; describe('test of object oriented API for ID number validation', () => { beforeEach(() => { set('06/18/2017'); }); afterEach(() => { reset(); }); test('that functions in created object returns correct', () => { co...
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * 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 a...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { APIResponse } from '../models/piwebapi.model'; import { switchMap, map, catchError } from 'rxjs/operators'; import { Observable, of, forkJoin } from 'rxjs'; @Injectable({ providedIn: 'root' }) export ...
export const Environment = { production: false, version: require('../../package.json').version, firebaseEmailAPI: 'https://us-central1-kent-ac75b.cloudfunctions.net/sendEmail', firebase: { apiKey: 'AIzaSyCUJMRYmjbzCCFKfm--Go7rX00_h9qWwfk', authDomain: 'kent-ac75b.firebaseapp.com', databaseURL: '...
// Copyright 2018-2021 Polyaxon, Inc. // // 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 agre...
import { Component } from '@stencil/core'; @Component({ tag: 'wysiwyg-editor-page', styleUrl: 'wysiwyg-editor-page.scss' }) export class WysiwygEditorPage { render() { return ( <div> <h2 class="mb-4">Wysiwyg Editor component </h2> <h3>simplest case:</h3> <cwc-wysiwyg-editor> ...
'use strict'; import * as React from 'react'; import {connect} from 'react-redux'; import {MoreProperties} from './MoreProperties'; import {Property} from './Property'; import {PrimType} from '../../constants/primTypes'; import {State} from '../../store'; interface AxisProps { primId: number, primType: PrimType, ...
import { ConsoleLogger, DefaultDeviceController, MeetingSessionConfiguration, DefaultMeetingSession, LogLevel, AudioVideoObserver, MeetingSessionStatus, VideoTileState, AudioVideoFacade, MeetingSession, Versioning, MeetingSessionStatusCode } from '../../../../src/index'; export class DemoMeetin...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { RespuestaPreguntaModalPage } from './respuesta-pregunta-modal.page'; const routes: Routes = [ { path: '', component: RespuestaPreguntaModalPage } ]; @NgModule({ imports: [RouterModule.forChild(rou...
import { Extension } from "./Extension" import { Element } from "./Element" import { CodeableConcept } from "./CodeableConcept" import { markdown } from "./markdown" /** * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { CodingKatasComponent } from './components/coding-katas.component'; export const routes: Routes = [ { path: '', component: CodingKatasComponent } ]; @NgModule({ imports: [RouterModule.forChild(route...
/* tslint:disable */ /* eslint-disable */ import { ConcreteRequest } from "relay-runtime"; export type FollowArtistInput = { artistID: string; clientMutationId?: string | null; unfollow?: boolean | null; }; export type FollowArtistPopoverRowMutationVariables = { input: FollowArtistInput; excludeArt...
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { GraphQLModule } from '@nestjs/graphql'; import { TypeOrmModule } from '@nestjs/typeorm'; import { MailerModule } from '@nestjs-modules/mailer'; import { ArticleModule } from './article/article.module'; import { AuthModule ...
const queryPartsRegExp = /(?:[^\s"]+|"[^"]*")+/g; const labelLinkRegex = /^(?:\/[^/]+){2}\/labels\/([^/]+)\/?$/; function splitQueryString(query: string): string[] { return query.match(queryPartsRegExp) ?? []; } // Remove all keywords from array except the last occurrence of one of the keywords. function deduplicate...
import React from 'react'; import userEvent from '@testing-library/user-event'; import { render, screen } from '../../utils/test-utils'; import '@testing-library/jest-dom'; import ProfileEditableView from '../../components/Profile/ProfileEditableView'; jest.mock( '../../components/Profile/ProfileEditModal', () => ...
export * from './ReactNativeSVG'; export { default } from './ReactNativeSVG';
import BluebirdPromise from "bluebird-lst" import { bold } from "chalk" import depCheck, { DepCheckResult } from "depcheck" import { readdir, readJson } from "fs-extra-p" import * as path from "path" require("v8-compile-cache") const printErrorAndExit = require("../../../packages/electron-builder-util/out/promise").p...
import { Module } from '@nestjs/common'; import { AuthService } from './auth.service'; import { AuthController } from './auth.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; import { UsersRepository } from './repositories/users.repository'; import { PassportModule } from '@nestjs/passport'; import { JwtMo...
import { Form, FormInstance } from 'antd'; import { ExplorerLink, ParsedAccount, useWallet } from '@oyster/common'; import { Governance, Realm } from '../../../../models/accounts'; import { TransactionInstruction } from '@solana/web3.js'; import React from 'react'; import { formDefaults } from '../../../../tools/forms...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { UserComponent } from './components/user/user.component'; import { UsersComponent } from './components/users/users.component'; @NgModule({ declarations: [ ...
import { appRootPath } from '@nrwl/tao/src/utils/app-root'; import { DepConstraint, findConstraintsFor, findProjectUsingImport, findSourceProject, getSourceFilePath, hasBuildExecutor, hasNoneOfTheseTags, isAbsoluteImportIntoAnotherProject, isRelativeImportIntoAnotherProject, mapProjectGraphFiles, ...
export const someHelper = () => 'return value';
import { Component, OnInit, ViewEncapsulation } from "@angular/core"; import { Title } from "@angular/platform-browser"; @Component({ selector: "hs-not-found", templateUrl: "not-found.html", styleUrls: ["not-found.scss"], encapsulation: ViewEncapsulation.None, }) export class NotFound implements OnInit { con...
import { readWorkspaceJson, readNxJson, normalizedProjectRoot } from '@nrwl/workspace/src/command-line/shared'; import { appRootPath } from '@nrwl/workspace/src/utils/app-root'; import { DepConstraint, findConstraintsFor, findProjectUsingImport, findSourceProject, getSourceFilePath, hasNoneOfTheseTags...
// Type definitions for ag-grid v5.0.6 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ceolter/> // Definitions: https://github.com/borisyankov/DefinitelyTyped import { ProcessCellForExportParams, ProcessHeaderForExportParams } from "./entities/gridOptions"; export interface CsvE...
import { Base } from './Base'; import { deepAssign } from '@dojo/core/lang'; export interface TopLeft { left: number; top: number; } export interface BottomRight { bottom: number; right: number; } export interface Size { height: number; width: number; } export interface DimensionResults { position: TopLeft &...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. /* eslint-disable max-lines */ import React from 'react'; import classNames from 'classnames'; import {FormattedMessage, injectIntl, IntlShape} from 'react-intl'; import {ModalData} from 'types/actions.js'...
import { IWithAuthProps } from "../components/types/WithAuth"; import {IResponseBodyUserVideos} from "./_api"; export namespace IIndexPage { export interface IInnerProps { videos: IResponseBodyUserVideos; } // export interface IStateFromProps { // userLoggedIn: boolean; // } // ...
import {sep as pathSep} from "path"; import {ModMapper} from "../ModMapper"; /* This name isn't quite accurate. It actually works with any mod that has one folder in the root of the zip file, then the game, characters etc in that folder. As therationalpi's mod template exports to this format, it seems like ...
import { User } from '@/lib/graphql/generated'; import Window from '@/components/common/Window'; import { css } from '@emotion/react'; import HStack from '../utility/HStack'; import { cssStat, cssStatValue, cssStatFigure, cssFlexCol } from '@/lib/emotion'; import Button from '../common/Button'; interface Props { use...
import {Component} from '@angular/core'; import {AuthorService} from './authors.service'; @Component({ selector: 'authors', template: `<h2>Authors</h2> {{title}} <ul><li *ngFor="let author of authors"> {{author}} </li> </ul> `, providers: [AuthorService], }) export c...
import { cleanWorkspace, closeEditors, createTestNote, } from '../../test/test-utils'; import { Tag, TagReference, TagsProvider } from '.'; import { bootstrap, createConfigFromFolders, Foam, FileDataStore, FoamConfig, MarkdownResourceProvider, Matcher, } from 'foam-core'; describe('Tags tree pane...
import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { Router } from '@angular/router'; import { MenuController, Slides } from '@ionic/angular'; import { Storage } from '@ionic/storage'; @Component({ selector: 'page-tutorial', templateUrl: 'tutorial.html', styleUrls: ['./tutorial.scs...
import { Component, OnInit, Input } from '@angular/core'; import { Indicator, IndicatorsService, BasketItemsService, BasketItem } from '../../core'; @Component({ selector: 'basket-items-editor', templateUrl: './basket-items-editor.component.html' }) export class BasketItemsEditorComponent implements OnInit { ...
import { Ellipse, Rotate, Scale, Translate, Value, Position, Size, Color, Opacity, TransformSet, FillColor, StrokeColor, } from "../.."; type TestState = `Test State`; describe(`elements`, () => { describe(`Ellipse`, () => { let strokeColor: Color; let fillColor: Color; let rende...
import { Injectable } from "@angular/core"; import { Kinvey } from "kinvey-nativescript-sdk"; import { Procedure } from "../../shared/models/procedure.model"; import { Estimate } from "../models/estimate.model"; @Injectable() export class EstimateService { private _estimates: Array < Estimate > ; private _estimatesP...
export class DisplayObject { public visible:boolean = true; public alpha:number = 1; public scaleX:number = 1; public scaleY:number = 1; constructor(){} public onTick(delta, accumilated){} }
import { Dispatch } from 'redux'; import { Post } from '../../models/post'; import { db } from '../db'; import { mergeId } from '../utils'; import { BlogAction, FETCH_BLOG_LIST, FETCH_BLOG_LIST_FAILURE, FETCH_BLOG_LIST_SUCCESS, } from './types'; const getPosts = async (): Promise<Post[]> => { const { docs } ...
import { round } from './round'; // return two decimal places rounded number export const ratio = ({ width, height }: any) => round(width / height, 2);
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 { Request, Response, NextFunction } from 'express' import { AsyncPost } from 'aejo' import { allowListBody, allowListResponse } from './schemas' import AllowListService from '../../../services/allow_list' import { validationErrorResponse } from '../../crud/schemas' export default AsyncPost({ tags: ['allow_lis...
import { Notification } from './notification' export interface SpotTileData { ask: number bid: number mid: number priceMovementType: string valueDate: string symbol: string notification: Notification currencyChartIsOpening: boolean isTradeExecutionInFlight: boolean priceStale: boolean hasError: b...
/* Copyright 2015 - 2021 FM Foundation 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 writing, sof...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { UserDetailPageRoutingModule } from './user-detail-routing.module'; import { UserDetailPage } from './user-detail.page'; @NgModu...