text
stringlengths
10
953k
import { getManager } from "typeorm" import { OAuth2 } from "../../entity/oauth2" import * as moment from 'moment' import Axios from 'axios' import * as config from 'config' import * as Debug from 'debug' const debug = Debug('cnipr.auth') class OAuth2Config { clientId: string clientSecret: string redirect...
import { TextStyle } from './text-style' export * from './text-style' export default TextStyle
import '@stencil/router'; import { LocationSegments, RouterHistory } from '@stencil/router'; import { Component, Element, Listen, State, h} from '@stencil/core'; import SiteProviderConsumer, { SiteState } from '../../global/site-provider-consumer'; import { ResponsiveContainer } from '@ionic-internal/sites-shared'; @C...
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ColorsService { public toHsl(value:string) { return `hsl(${this.valueHash(value)}, 50%, 50%)`; } public toHsla(value:string, opacity:number) { return `hsla(${this.valueHash(value)}, 50%, 50%, ${opacity}%)`; } ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { radToDeg } from "." let examples: { [key: string]: number } = {} examples[0] = 0 examples[Math.PI] = 180 examples[4 * Math.PI] = 720 describe("radToDeg", () => { test("can be imported", () => { expect(typeof radToDeg).toEqual("function") }) test("can convert rad to deg", () => { for (const rad...
import * as DOMPurify from "dompurify"; import * as React from "react"; import { useContext } from "react"; import { cleanMessage } from "./cleanMessage"; import { TranslationContext, TranslationSettingsContext, } from "./TranslationContext"; import { Jed } from "jed"; import { IDomPurifyConfig } from "./IDomPurify...
import { Component, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { Observable } from 'rxjs/Observable'; import { Router } from "@angular/router"; import { environment } from '../../../environments/environment'; declare function playAudio(): void; declare function stopAudio(): void...
import { Document } from './Document' import { Node } from './Node' export class Collection extends Node<Document[]> { constructor(collection: Document[]) { super('collection', collection) if (!Array.isArray(collection)) { throw new Error('Collection value must be an array.') } if (collection...
import { Component, OnInit } from '@angular/core'; import { UserService, User } from './user.service'; import { Observable } from 'rxjs'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], }) export class AppComponent implements OnInit { $users: Observ...
import {SourceMusicPart} from "./SourceMusicPart"; import {SourceMeasure} from "../VoiceData/SourceMeasure"; import {Fraction} from "../../Common/DataObjects/Fraction"; import {MusicSheet} from "../MusicSheet"; import {RepetitionInstruction} from "../VoiceData/Instructions/RepetitionInstruction"; import {PartListEntry}...
import styled from 'styled-components' import { ANIMATION_DURATIONS, ANIMATION_TIMING_FUNCTION, } from '../animations/animations' import { fontScale } from '../fontScale' import { theme } from '../theme' export const IconButtonContainer = styled.button` border: none; outline: none; cursor: pointer; paddin...
import { Observable, SubscribableOrPromise } from '../../Observable'; import { debounce as higherOrder } from '../../operators/debounce'; /** * Emits a value from the source Observable only after a particular time span * determined by another Observable has passed without another source emission. * * <span class="...
import { FieldSchema, ValueSchema } from '@ephox/boulder'; import { Result } from '@ephox/katamari'; export interface CheckboxApi { name: string; type: 'checkbox'; label: string; disabled?: boolean; } export interface Checkbox { name: string; type: 'checkbox'; label: string; disabled: boolean; } expo...
export * from './breadcrumb.component'; export * from './breadcrumb-item.component'; export * from './breadcrumb.module';
import { RoutingConfigService } from '../routing-config.service'; import { UrlCommands } from './url-command'; import { UrlParsingService } from './url-parsing.service'; export declare class SemanticPathService { protected routingConfigService: RoutingConfigService; protected urlParser: UrlParsingService; r...
export declare type RefreshObjectType = "File" | "Directory"; export declare type ActionType = "RefreshObjectCaches"; export declare type RequestFormat = "JSON" | "XML"; export interface BaseRequestParams { Action: ActionType; Version: string; SignatureMethod: string; SignatureVersion: string; Signa...
import { DefaultDocumentIcon } from '../document_list_edit/DocumentListEdit'; import { Attachment } from '../data/Attachment'; import { IDocumentDataService } from '../data/IDocumentDataService'; const ConfigTranslations = (pipTranslate: pip.services.ITranslateService) => { if (pipTranslate) { (pipTranslat...
<TS language="sq" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliko me të djathtën për të ndryshuar adresën ose etiketen.</translation> </message> <message> <source>Create a new address</source...
// This optional code is used to register a service worker. // register() is not called by default. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on subsequent visits to a p...
import * as React from 'react'; import {Component} from 'react'; import Select from '@atlaskit/single-select'; import Button from '@atlaskit/button'; import FieldText from '@atlaskit/field-text'; import Checkbox from '@atlaskit/checkbox'; import Cristal, { InitialPosition, CristalProps, CristalState } from '../src'; im...
import React from 'react'; import styled, { css } from 'styled-components'; import { up } from '../breakpoint/breakpoint'; import { CardProps, CardWrapper, CardTitle, CardText } from './card'; import { Link } from '../links/links'; import { GatsbyImage, GatsbyImageProps, IGatsbyImageData, } from 'gatsby-plugin-im...
import { Action } from "redux"; import { ComputationState, unloadedState } from "../states/ComputationState"; import { InitializeComputationAction, UpdateResultsAction } from "../actions/ComputationActions"; import { ComputationAction as ElectionActionEnum } from "../types/ActionTypes"; type KnownAction = InitializeC...
import * as React from 'react' import * as Types from '../../../constants/types/teams' import * as Constants from '../../../constants/teams' import * as Chat2Types from '../../../constants/types/chat2' import * as RPCChatTypes from '../../../constants/types/rpc-chat-gen' import * as Chat2Gen from '../../../actions/chat...
import styled from '@emotion/styled'; export const Row = styled.div` display: flex; flex-shrink: 0; flex-basis: 0; flex-direction: row; align-items: stretch; width: 100%; height: 100%; > * + * { margin-left: 3px; } `;
import * as Query from './Query' import * as Mutation from './Mutation' export default { Mutation, Query, }
import { createPassThroughPropsTest } from '@shared/tests/utils'; import { mount } from 'enzyme'; import { Grid } from '@ui5/webcomponents-react/lib/Grid'; import React from 'react'; import { GridPosition } from '@ui5/webcomponents-react/lib/GridPosition'; const GridContent = () => ( <> <div style={{ ...
import { mapTwoLevelRouter } from '@/utils' import { createRouter, createWebHashHistory } from 'vue-router' const Layout = () => import('@/components/Layout.vue') export const constantRoutes = [ { path: '/login', name: 'Login', hidden: true, component: () => import('@/views/login/index.vue'), }, ...
// *** 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"; /** * R...
export interface Industry { name: string; subcategories: string[]; }
import { DeepPartial } from 'ts-essentials'; export type Double<T> = { [k in keyof T]: T[k]; }; export interface DoubleState { dirty: Set<string | symbol>; } export const Doubles = new WeakMap<any, DoubleState>(); // eslint-disable-next-line @typescript-eslint/ban-types export const buildProxyHandler = <T exten...
import { ModuleWithProviders } from '@angular/core'; export { ButtonsModule, ButtonRadioDirective, ButtonCheckboxDirective, MdbBtnDirective } from './buttons/index'; export { CHECKBOX_VALUE_ACCESSOR, CheckboxComponent, CheckboxModule } from './checkbox/index'; export { CardsFreeModule, MdbCardComponent, MdbCardBodyComp...
/* * 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 { render, unmountComponentAtNode } from 're...
// *** 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 { ErrorFormatter } from 'app/components/ErrorFormatter' import { Box, Button, Form, FormField, TextInput, Text, Layer, Spinner } from 'grommet' import * as React from 'react' import { useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' import { useDispatch, useSelector } from 'react...
export interface MCCanPowerJump { [key: symbol]: never }
import { Component, OnInit, ElementRef, Input, Output, EventEmitter, HostListener, OnDestroy, ViewEncapsulation } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; @Component({ selector: 'SliderHandle, nzm-slider-handle', templateUrl: './slider-handle.component.html'...
/** * @file webgl backend * @author yueshuangyan */ import { PaddlejsBackend, env } from '@paddlejs/paddlejs-core'; import type OpExecutor from '@paddlejs/paddlejs-core/src/opFactory/opExecutor'; import { WasmMemoryType } from '@paddlejs/paddlejs-core/commons/interface'; import { RunnerConfig } from './types'; impo...
import * as prettier from 'prettier'; import * as path from 'path'; const EXTENSION_TO_PARSER: Record<string, string> = { ts: 'typescript', tsx: 'typescript', js: 'babylon', jsx: 'babylon', 'js.flow': 'flow', flow: 'flow', gql: 'graphql', graphql: 'graphql', css: 'postcss', scss: 'postcss', less:...
export type IconName = | 'add-active' | 'add' | 'alert' | 'arrow-down' | 'arrow-key-down' | 'arrow-key-down' | 'arrow-key-left' | 'arrow-key-left' | 'arrow-key-right' | 'arrow-key-right' | 'arrow-key-up' | 'arrow-key-up' | 'arrow-up' | 'atlas-zoom-in' | 'atlas-zoom-in' | 'atlas-zoom-out'...
// Definitions. import { AndroidFrame as AndroidFrameDefinition, AndroidActivityCallbacks, AndroidFragmentCallbacks, BackstackEntry, NavigationTransition } from '.'; import { TransitionState } from './frame-common'; import { Page } from '../page'; // Types. import * as application from '../../application'; import { _...
import { OutputFormatType } from '@app/models/OutputFormatType'; import { OutputFormatTypeService } from '@app/services/output-format-type/output-format-type.service'; import { Controller } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { Crud, CrudController } from '@nestjsx/crud'; @Crud({ ...
import * as React from 'react'; const People16FilledIcon = () => { return( <?xml version="1.0" encoding="UTF-8"?> <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Generator: Sketch 59.1 (86144) - https://s...
function StepsHeader() { return ( <header className="orders-steps-container"> <div className="orders-steps-content"> <h1 className="steps-title"> SIGA AS <br /> ETAPAS </h1> <ul className="steps-items"> <li>...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import {FormsModule} from '@angular/forms' import { AppComponent } from './app.component'; import { QuotesComponent } from './components/quotes/quotes.component'; import { QuoteComponent } from './components/quote/quote...
/** * External Imports */ import { Checkbox, Theme, createStyles, makeStyles, styled, } from '@material-ui/core'; import React from 'react'; export const useStyles = makeStyles((theme: Theme) => createStyles({ tableTable: { borderSpacing: 0, border: '1px solid rgba(224, 224, 224, 1)', ...
/*! * Omelox -- proto * Copyright(c) 2012 xiechengchao <xiecc@163.com> * MIT Licensed */ /** * Module dependencies. */ import * as utils from './util/utils'; import { getLogger, ILogger } from 'omelox-logger'; import { EventEmitter } from 'events'; import { AppEvents, default as events } from './util/events'; im...
import { Controller, Get } from '@nestjs/common'; import { ICategory } from 'interfaces/category'; import { CategoriesService } from './categories.service'; @Controller('categories') export class CategoriesController { constructor(private readonly categoriesService: CategoriesService) {} @Get() getCategories():...
import { Component } from '@angular/core'; /** * Renders a mail in the mailbox */ @Component({ templateUrl: './mail.component.html', styleUrls: ['./mail.component.scss'], }) export class MailComponent { nyanCat = require('../../../../assets/demo/Nyan_cat_250px_frame.jpg'); }
import { IInjector } from "../common/definitions/yok"; import { injector } from "../common/yok"; import { IErrors } from "../common/declarations"; export class LiveSyncServiceResolver implements ILiveSyncServiceResolver { constructor( private $errors: IErrors, private $injector: IInjector, private $mobileHelper...
<TS language="fr" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Cliquer à droite pour modifier l'adresse ou l'étiquette</translation> </message> <message> <source>Create a new address</source> ...
import { IsTheoreticalScalePipe } from './is-theoretical-scale.pipe'; import { aSharpPentatonicMajor, fMinorPentatonic, gFlatMinorPentatonic } from '../fret-map/fret-map.service.testConstants'; describe('IsTheoreticalScalePipe', () => { let pipe: IsTheoreticalScalePipe; beforeEach(() => { pipe = new IsT...
import { AbstractExtractor } from '../abstract-extractor'; import { join } from 'path'; import { map, switchMap } from 'rxjs/operators'; export class PatchContentExtractor extends AbstractExtractor { protected doExtract(): any { const patchContent = require(join(__dirname, '../../../../client/src/assets/data/pat...
import { Component } from '@angular/core'; @Component({ templateUrl: './welcome.component.html', }) export class WelcomeComponent { public pageTitle = 'Welcome'; }
import MinifigsList from "./MinifigsList" export default MinifigsList;
/// <reference path="../../utils/ExpirableSet.ts"/> class EffectSet extends ExpirableSet<Effect> { add(effect: Effect): void { if (this.count > 0) { let j = this.count for (let i = 0; i < j;) { let item = this.items[i] if (effect.merge(item) || effec...
import { defineConfig } from 'vite' import reactRefresh from '@vitejs/plugin-react-refresh' import { VitePWA } from 'vite-plugin-pwa' // https://vitejs.dev/config/ export default defineConfig({ plugins: [reactRefresh(), VitePWA({ manifest: { lang: 'en', name: 'web-cw-keyer', short_name: 'Keyer'...
import type { AgentMessage } from '../../../agent/AgentMessage' import type { InboundMessageContext } from '../../../agent/models/InboundMessageContext' import type { Logger } from '../../../logger' import type { LinkedAttachment } from '../../../utils/LinkedAttachment' import type { ConnectionRecord } from '../../conn...
export enum EBlueprint { BLUEPRINT = 'system/SIMOS/Blueprint', ATTRIBUTE = 'system/SIMOS/BlueprintAttribute', PACKAGE = 'system/SIMOS/Package', ENTITY = 'system/SIMOS/Entity', ENUM = 'system/SIMOS/Enum', JOB = 'WorkflowDS/Blueprints/Job', } export enum EJobStatus { CREATED = 'created', STARTING = 'star...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { DashboardComponent } from '../dashboard/dashboard.component'; const routes: Routes = []; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class LoginRoutingModule { }
import { Injectable, TemplateRef } from '@angular/core'; import {removeItemFromArray} from '../helpers'; @Injectable({ providedIn: 'root' }) export class ToastService { toasts: Array<any> = []; show(textOrTpl: string | TemplateRef<any>, options: any = {}): void { this.toasts.push({textOrTpl, ...options}); }...
import { WebAuthOptions } from './../auth0-common'; export declare class InAppBrowserViewController extends UIViewController { private navigationBar; private webView; private _userContentController; private url; private options; private redirectUri; private navigationDelegate; private _h...
import React, { useState } from 'react'; import { Slider } from 'starfall'; const BasicUsage: React.FC = () => { const [state, setState] = useState(0); const [state2, setState2] = useState(10); const [state3, setState3] = useState(101); const [state4, setState4] = useState(101); return ( <> <div st...
import { BaseController } from "./base_controller" import { Users } from "../db/users" export class ProfilesController extends BaseController { constructor() { super() } show({match }: ActionRequest) { let username = match.groups!.username // save a users profile if we just happen to be looking at ...
/** * When developing this file, you need to build because * the bin script is loaded from ./dist/bin/promise-watch.js * * If anyone knows how to get this working with typescript * (similar to main vs publishConfig.main) that would be great. */ import "ts-node/register" import { executeJobs } from "../execute";...
import { main } from "https://deno.land/x/denops_std@v0.8/mod.ts"; main(async ({ vim }) => { vim.register({ async hellow(): Promise<void> { const undoFlag = await vim.g.get("hellow_undo_enable") const undoLevels = await vim.eval("&undolevels"); if (!undoFlag) { vim.execute('set undoleve...
import * as d3 from 'd3'; import './HierarchyNavigation.scss'; import {Utils} from "./../../Utils"; import {Component} from "./../../Interfaces/Component"; import {ServerClient} from '../../../ServerClient/ServerClient'; import { ModelAutocomplete } from '../ModelAutocomplete/ModelAutocomplete'; class HierarchyNavigat...
/* NeuralNetwork section */ export interface INeuralNetworkOptions { /** * @default 0.5 */ binaryThresh?: number; /** * array of int for the sizes of the hidden layers in the network * * @default [3] */ hiddenLayers?: number[]; /** * supported activation types: ['sigmoid', 'relu', 'leak...
import { Component, OnInit } from '@angular/core'; import { AuthService } from '../../core/auth/auth.service'; import { CurrentUserService } from '../../core/auth/current-user.service'; import { CartService } from '../../core/cart/cart.service'; @Component({ selector: 'app-brand-navbar', templateUrl: './brand-navb...
import { Client } from "./client"; import { Voyage } from "./voyage"; export class Reserver{ constructor( public idreserver:number, public dateReserver:string, public nbPlace:number, public tel:number, public client:Client, public voyage:Voyage, ){ } }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Tachyon</source> <translation>Σχετικά με το Tachyon</translation>...
/* * Copyright (c) 2014 Google, Inc. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commerci...
/* eslint-disable no-undef */ import React from 'react'; import { mount, ReactWrapper } from 'enzyme'; import { fakeTableConfig } from '../../__fake__/fakeData'; import TableHeads from './TableHeads'; import { FakeDataType } from '../../__fake__/types'; describe('Test TableHeads', () => { const handleSort = jest...
export class MedFrequency{ freqid: string; freqvalue: string; frequency_int: any; }
let viewer: Autodesk.Viewing.GuiViewer3D; const options = { env: 'AutodeskProduction', api: 'derivativeV2', // for models uploaded to EMEA change this option to 'derivativeV2_EU' accessToken: '' }; Autodesk.Viewing.Initializer(options, () => { const htmlDiv = document.getElementById('forgeViewer'); ...
export type ValueOf<T> = T[keyof T]; export type MapTo<T, U> = { [P in keyof T]: U; }; function mapObject<T, U>( mappingFn: (field: ValueOf<T>, key: string) => U, obj: T ): MapTo<T, U> { let newObj = {} as MapTo<T, U>; for (let i in obj) { if (obj.hasOwnProperty(i)) { const oldValue = obj[i]; ...
import file = require('./file'); import api_error = require('./api_error'); import file_system = require('./file_system'); import file_flag = require('./file_flag'); import buffer = require('./buffer'); import node_path = require('./node_path'); import node_fs_stats = require('./node_fs_stats'); var ApiError = api_erro...
/** * Generated bundle index. Do not edit. */ export * from './index'; export { DisqusComponent as ɵb } from './module/disqus.component'; export { DisqusService as ɵa } from './module/disqus.service';
import { isDefined, tryTo, Value } from '../../types'; import moment, { Moment } from 'moment'; export type DateTimeUnit = 'years' | 'quarters' | 'months' | 'weeks' | 'days' | 'hours' | 'minutes' | 'seconds' | 'milliseconds'; export class DateTime extends Value<string | undefined> { constructor(va...
import { BlitzPage, useRouterQuery, Link, useMutation } from "blitz" import Layout from "app/core/layouts/Layout" import { LabeledTextField } from "app/core/components/LabeledTextField" import { Form, FORM_ERROR } from "app/core/components/Form" import { ResetPassword } from "app/auth/validations" import resetPassword ...
import { Mocks, ItemId } from 'src/tests'; import { StoreUtility } from './store.utility'; describe('StoreUtility', () => { describe('rankEquals', () => { it('should check lengths', () => { expect(StoreUtility.rankEquals(['a'], ['a', 'b'])).toBeFalse(); }); it('should honor order', () => { e...
import {Injectable} from '@angular/core'; import {Platform} from "ionic-angular"; import {Device} from "@ionic-native/device"; import { CryphoSecureStorageObject, CryphoSecureStorageProvider } from "./platform-storages/crypho-secure-storage-provider"; import { IntelSecureStorageObject, IntelSecureStorag...
export enum FeatureLayer { DirectlyObservedAnimalsObservation = 1, SignsOfPresenceObservation, DeadObservation, AgriculturalLandDamage, ForestDamage, InfrastructureDamage, UnlimitedHuntReport, LimitedHuntReport, } export interface Geometry { /** * Longitude */ x: numbe...
<TS language="da" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Højreklik for at rette adressen eller teksten</translation> </message> <message> <source>Create a new address</source> <tra...
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { shallow, mount } from 'enzyme' import * as React from 'react' import sinon from 'sinon' import { Icon } from '../src' describe('Icon', () => { it('onClick event prop is activated when clicked', () => { const spy = sinon.spy() const wr...
import {AsyncInterface} from "./async-interface"; import {timeOut} from "./time-out"; export class Debouncer { constructor(private asyncModule: AsyncInterface = null, private callback: Function = null, private handle: number = null) { } /** * Sets the scheduler; that is, a module with the Async interfa...
import Git from "../git/Git"; import IgnoreFiles from "../ignore/IgnoreFiles"; import ProjectConfig from "../project/ProjectConfig"; import MetadataFiles from "../metadata/MetadataFiles"; import Component from "./Component"; import * as fs from "fs-extra"; import path = require("path"); import SFPLogger, { LoggerLevel ...
import { Component, OnInit,ViewChild, Input } from '@angular/core'; import { FormGroup,FormControl} from '@angular/forms'; import * as AWS from 'aws-sdk'; @Component({ selector: 'app-fileupload', templateUrl: './fileupload.component.html', styleUrls: ['./fileupload.component.scss'] }) export class FileuploadC...
import React from 'react'; import styled from "styled-components"; import {theme} from '../../theme' import { space, layout, fontWeight, typography, color, } from 'styled-system' interface LinkProps { color?: string fontSize?: number fontWeight?: number transition?: string } const defaultProps...
import { ReferenceItem } from '../reference-base'; import { IsDefined, MinLength } from 'class-validator'; export enum ContactValueField { val = 'val', val2 = 'val2', notes = 'notes' } export enum ContactFormat { Phone = 1, Email = 2, Url = 3 } export class ContactType extends ReferenceItem { @IsDefine...
import { IOptionalPreprocessOptions, preprocess, preprocessOptions } from '@aurelia/plugin-conventions'; import { getOptions } from 'loader-utils'; import * as webpack from 'webpack'; export default function( this: webpack.loader.LoaderContext, contents: string, sourceMap?: object, // ignore existing source map ...
import { DBDriver, DBDriverFactory } from '../../src/driver/abstract' import IndexedDB from '../../src/driver/IndexedDB' import { createApi } from '../../src/methods' import { addListener, cachedObj, reactCache, reactCacheEntry } from '../../src/shared' export async function setupApi( { cache: reactCache, ...
export declare namespace Platform { type Platform = { id: number, name: string, alias: string, icon: string, console: string, controller: string, developer: string, overview?: string } type PlatformSkinny = { id: number, name: string, alias: string } type Platforms ...
import React from 'react'; import { graphql } from 'react-relay' import { usePreloadedQuery } from 'react-relay/hooks'; import { useDialogState } from 'reakit/Dialog'; import Header from '../header/Header'; import Feed from './Feed'; import PageWrapper from '../../ui/PageWrapper'; import PageContainer from '../../ui/P...
import React, { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import { IRepo, IUser } from "../../@types"; import { Tab, Tabs, TabList, TabPanel } from "react-tabs"; import "react-tabs/style/react-tabs.css"; import styles from "./styles.module.scss"; import Profile from "../../com...
import got, { Headers, Options, RequestError } from "got" import fileType from "file-type" import path from "path" import fs from "fs-extra" import { createContentDigest } from "./create-content-digest" import { getRemoteFileName, getRemoteFileExtension, createFilePath, } from "./filename-utils" import type { Inc...
import Chainable from '../chainable'; import createObserver from '../observer'; import { ObserverCandidate, PartialObserver } from '../observer/types'; import { ActionInit, ActionProps, ColdSubscription } from './types'; export class Action extends Chainable<Action> { create(props: ActionProps) { return new Acti...
/********************************************************************************** * MIT License * * * * Copyright (c) 2022 Hyperjump Technology ...
import Dexie from 'dexie' import { Trip } from './trip' import { Item } from './item' import { Food } from './food' export class GroceryDb { db: any constructor() { this.db = new Dexie('GroceryDB') this.db.version(2).stores({ trips: '++id', foods: 'id', }) ...
import { Gateway, Wallets } from 'fabric-network'; import * as path from 'path'; import * as fs from 'fs'; async function main() { try { // Create a new file system based wallet for managing identities. const walletPath = path.join(process.cwd(), 'Org1Wallet'); const wallet = await Wallets.newFileSystemW...