text
stringlengths
10
953k
import { Test, TestingModule } from '@nestjs/testing'; import * as request from 'supertest'; import { AppModule } from './../src/app.module'; describe('AppController (e2e)', () => { let app; beforeEach(async () => { const moduleFixture: TestingModule = await Test.createTestingModule({ imports: [AppModul...
import React from 'react'; import { Text, BoxProps } from '@blockstack/ui'; export const Title = (props: BoxProps) => ( <Text width="100%" fontWeight="medium" fontSize="24px" lineHeight="32px" display="inline-block" {...props} /> ); export const Pretitle = (props: BoxProps) => ( <Text ...
module BABYLON { /** * The Physically based material of BJS. * * This offers the main features of a standard PBR material. * For more information, please refer to the documentation : * http://doc.babylonjs.com/extensions/Physically_Based_Rendering */ export class PBRMaterial ext...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'dateCount' }) export class DateCountPipe implements PipeTransform { transform(value: any): any { let today: Date = new Date(); //get current date and time let todayWithNoTime: any = new Date(today.getFullYear(), today.getMonth(), today.ge...
export const icon: "data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 250 250\"%3E%3Cpath fill=\"%23dd0031\" d=\"M125 30L31.9 63.2l14.2 123.1L125 230l78.9-43.7 14.2-123.1z\"/%3E%3Cpath fill=\"%23c3002f\" d=\"M125 30v22.2-.1V230l78.9-43.7 14.2-123.1L125 30z\"/%3E%3Cpath d=\"M125 52.1L66.8 182....
import { forwardRef } from 'react' import cx from 'clsx' import { createStyle, getThemeCSSObject } from '../../styles' import type { ChromatinIcon } from '../types' const useStyles = createStyle((theme) => ({ root: (props: ChromatinIcon) => ({ height: props.height ?? '100%', width: props.width ?? ...
// A single message announcement. import mongoose from 'mongoose'; import uniqueValidator from 'mongoose-unique-validator'; interface Announcement extends mongoose.Document { name: string; sender: string; content: string; public: boolean; forTeachers: boolean; forStaff: boolean; forStudents: boolean; ...
import { promises as fs } from "fs"; import punycode from "punycode"; import { app } from "electron"; import { join } from "path"; import { LayoutState } from "../store/layout/types"; const Prefix = "lt-"; function pathToPath(path: string) { return join( app.getPath("userData"), Prefix + punycode.enco...
import { SingleOrArray } from "@neufund/shared-utils"; import flatMap from "lodash/flatMap"; import isObjectLike from "lodash/isObjectLike"; import { StyleProp } from "react-native"; type Style = StyleProp<unknown>; type StyleOrArrayOfStyles = Style | [unknown, SingleOrArray<Style>]; /** * A helpful react-native sty...
import { Component, Inject, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' import { PlatformInfo, PlatformInfoService } from 'src/app/cdk/platform-info' import { ORCID_REGEXP } from 'src/app/constants' import { takeUntil, tap } from 'rxjs/operators' import { RecordServ...
import { RedisCommandArguments } from '.'; type HSETObject = Record<string | number, string | number>; type HSETMap = Map<string | number, string | number>; type HSETTuples = Array<[string, string]> | Array<string>; export const FIRST_KEY_INDEX = 1; type GenericArguments = [key: string]; type SingleFieldArguments...
import Component from '@glimmer/component'; import { action } from '@ember/object'; interface Args { onResetFilters(): void; onSaveFilters(): void; } export default class SearchFilterControlBar extends Component<Args> { @action onResetFilters() { this.args.onResetFilters(); } @action onSaveFilters(...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginPageComponent } from './features/login/pages/login-page/login-page.component'; import { RegisterPageComponent } from './features/login/pages/register-page/register-page.component'; import { TaskPageComponent ...
import SleepyClient from "../index"; import { BitFieldResolvable, Guild, GuildMember, Message, MessageAttachment, MessageEmbed, PermissionString, TextChannel, User } from "discord.js"; import {CaseOptions, CommandOptions, Data, SleepyDurrResults} from '../structures/Interface'; import re...
import { trigger, transition, style,group,query,animate,animateChild } from '@angular/animations'; export const slideInAnimation = trigger('routeAnimations', [ transition('HomePage <=> office', [ style({ position: 'relative' }), query(':enter, :leave', [ style({ position: 'absolute...
<TS language="la" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Crea novam inscriptionem</translation> </message> <message> <source>Copy the currently selected address to the system clipboard</source> <t...
/* Copyright (c) 2016, Dennis Meuwissen All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions a...
import { Global, css } from '@emotion/core'; import { darken, lighten } from 'polished'; import * as React from 'react'; import Helmet from 'react-helmet'; import { colors } from '../styles/colors'; // @ts-ignore import favicon from '../../src/favicon.ico'; interface IndexProps { className?: string; } const Global...
import { SearchRepresentation } from 'app/core/ui-services/search.service'; import { HasMeeting } from 'app/management/models/view-meeting'; import { Assignment, AssignmentPhase } from 'app/shared/models/assignments/assignment'; import { ViewPoll } from 'app/shared/models/poll/view-poll'; import { Projectiondefault } f...
import styled, { css } from 'styled-components' import { ThemeProps } from 'types/theme.types' export type ProductItemImageProps = { url: string } & ThemeProps export const HeaderCss = css` font-size: 24px; font-family: 'Comfortaa', cursive; margin-bottom: 25px; ` export const ProductsHeader = styled.header` ${...
// command import { CommandPlugin } from "./CommandPlugin"; import blockquote from "./command/blockquote"; // submenu import { SubmenuPlugin } from "./SubmenuPlugin"; import align from "./submenu/align"; import font from "./submenu/font"; import fontSize from "./submenu/fontSize"; import fontColor from "./submenu/font...
// Copyright 2017-2021 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; import { isString } from '@polkadot/util'; import Spinner from '../Spinner'; interface Props { children?: React.ReactNode; className?...
import { SizingData } from './getSizingData'; import forceHiddenStyles from './forceHiddenStyles'; let hiddenTextarea: HTMLTextAreaElement | null = null; const getHeight = (node: HTMLElement, sizingData: SizingData): number => { const height = node.scrollHeight; if (sizingData.sizingStyle.boxSizing === 'border-b...
import { useTranslation } from 'onekijs'; import React from 'react'; import { Link } from 'onekijs'; interface ProductProps { product: ProductType; id: number; onClick: () => void; onNotify: () => void; } const Product: React.FC<ProductProps> = ({ product, id, onClick, onNotify }) => { const [T] = useTransl...
import { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceDiscoveryClient"; import { GetInstanceRequest, GetInstanceResponse } from "../models/models_0"; import { deserializeAws_json1_1GetInstanceCommand, serializeAws_json1_1GetInstanceCommand, } from "../protocols/Aws_j...
import { INavData } from '@coreui/angular'; export class LiveurHabilitation { static navIdata: INavData[] = [ { name: 'Accueil', url: '/accueil', icon: 'icon-home', badge: { variant: 'info', text: '' } }, //Groupe utilisation { title: true, ...
import * as core from '@actions/core' import { Client } from './client' async function run() { try { let status: string = core.getInput('status', { required: true }) status = status.toLowerCase() const success_text = core.getInput('success_text') const failure_text = core.getInput('failure_text') ...
import { Dimensions, Platform } from 'react-native'; import StaticSafeAreaInsets from 'react-native-static-safe-area-insets'; export const CONTENT_SPACING = 15; const SAFE_BOTTOM = Platform.select({ ios: StaticSafeAreaInsets.safeAreaInsetsBottom, }) ?? 0; export const SAFE_AREA_PADDING = { paddingLeft: Sta...
// *** 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 { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { ClientEntity } from './client.entity'; import { Client } from './client.interface'; import { UserAgent } from '@commons/user-agent'; import { LoginRequest } from '@modules/auth/interfaces'; import { Inject } from '@nestj...
/* This file is part of web3.js. web3.js is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. web3.js is distribute...
import { Router } from 'express'; import multer from 'multer'; import { CreateCategoryController } from '../modules/cars/useCases/CreateCategory/CreateCategoryController'; import { ImportCategoryController } from '../modules/cars/useCases/ImportCategory/ImportCategoryController'; import { ListCategoriesController } fr...
import { TestBed } from '@angular/core/testing'; import { K8sSecretVolumeSecret } from './K8sSecretVolumeSecret'; import { NameChangeEvent } from '../Events'; describe('K8sSecretVolumeSecret', () => { const flat1 = { 'type': 'k8s-secret-volume-secret', 'uid': '111', 'gid': '222', 'mode': '000', ...
import { SCALAR, MALFORMED_OUTCOME, ZERO } from "modules/common/constants"; import calculatePayoutNumeratorsValue from "utils/calculate-payout-numerators-value"; import { isEmpty } from "utils/is-populated"; import { createBigNumber } from "utils/create-big-number"; export default function( market, disputeSt...
import React from 'react'; export const DownArrow: React.FC<React.SVGProps<SVGSVGElement>> = (props) => { return ( <svg width="20" height="20" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M1 1L7 7L13 1" strok...
import * as React from 'react'; import { shallow, ShallowWrapper } from 'enzyme'; import { referenceForModel } from '@console/internal/module/k8s'; import { ResourceLink, ExternalLink } from '@console/internal/components/utils'; import { MockKnativeResources } from '../../../topology/__tests__/topology-knative-test-dat...
import { async, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { Highlig...
/*! * @license * Copyright 2018 Alfresco Software, Ltd. * * 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 la...
import { assertIsPromise } from '../internal/assert'; import { ERR_MSG_TRANSFORMER_MUST_RETURN_PROMISE } from '../internal/ErrorMessage'; import type { AsyncTransformFn } from '../internal/Function'; import { Result, isErr } from './Result'; import { unwrapFromResult } from './unwrap'; export type ResultAsyncTryTransf...
import { makeStyles } from '@material-ui/core'; const useStyles = makeStyles((theme) => ({ backdrop: { zIndex: theme.zIndex.appBar + 1, }, })); export default useStyles;
import { Module } from '@nestjs/common'; import { TodoController } from './todo.controller'; import { TodoService } from './todo.service'; import { MongooseModule } from '@nestjs/mongoose'; import { Todo } from './models/todo.model'; @Module({ imports: [MongooseModule.forFeature([{ name: Todo.modelName, schema: Todo...
/** * @module array=>any */ /** * Return the minimum of the list according the iteratee * @param iteratee The iteratee invoked per element. * @return the function to apply on the array to return its minimum * @example * ``` * minBy<{ x:number; y:number; }>(e => e.x)([ * { x:1, y:5 }, * { x:2, y:4 }, * ...
import { inject, injectable } from 'tsyringe'; import { ICarsImagesRepository } from '@modules/cars/repositories/ICarsImagesRepository'; import { IStorageProvider } from '@shared/container/providers/StorageProvider/IStorageProvider'; interface IRequest { car_id: string; images_name: string[]; } @injectable() cla...
import { TestBed, inject } from '@angular/core/testing'; import { NavBarService } from './nav-bar.service'; describe('NavBarService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [NavBarService], }); }); it('should be created', inject([NavBarService], (service: NavBarSer...
namespace ts.tscWatch { describe("unittests:: tsbuildWatch:: watchMode:: with reexport when referenced project reexports definitions from another file", () => { verifyTscWatch({ scenario: "reexport", subScenario: "Reports errors correctly", commandLineArgs: ["-b", "-w", "...
import { ElDocument } from '@/document' import { DocumentAttribute } from '@/document' import { DocumentEvent } from '@/document' export const attributes: DocumentAttribute[] = [ { name: 'target', description: 'the target to trigger scroll', type: 'string', value: '', default: '' }, { name: 'visibility-height', de...
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { UtilitiesService } from '../../../services/utilities.service'; @Component({ selector: 'qc-edit-numerical', templateUrl: './edit-numerical.component.html', styleUrls: ['./edit-numerical.component.scss'] }) export class EditNu...
const { DynamoDB } = require('aws-sdk'); const AWS = require('aws-sdk'); export { }; AWS.config.region = process.env.AWS_REGION || 'us-east-1' const eventbridge = new AWS.EventBridge() exports.handler = async (event: any) => { console.log(JSON.stringify(event, null, 2)); // Create the DynamoDB service object va...
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client.ts"; import { DescribeResourcePolicyRequest, DescribeResourcePolicyResponse } from "../models/models_0.ts"; import { deserializeAws_restJson1DescribeResourcePolicyCommand, serializeAws_restJson1DescribeResou...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import CryptApp from './CryptApp'; import reportWebVitals from './reportWebVitals'; import { Provider } from 'react-redux'; import store from './services/redux/Redux'; ReactDOM.render( <Provider store={store}> <React.StrictMode> ...
//Librerías varias import { Component } from '@angular/core'; import {Router, ActivatedRoute, Params} from '@angular/router'; import * as _ from 'underscore'; import { ToastsManager } from 'ng2-toastr/ng2-toastr'; import { ViewContainerRef } from '@angular/core'; //Servicios import {ModeloService} from '../services/mod...
/** @license * Copyright 2018 Esri * * 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 t...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * Strings used by the {@link ChatComposite} directly. * * This strings are in addition to those used by the components from the component library. * * @public */ export interface ChatCompositeStrings { /** * Chat list header text...
import { UPDATE_LOCATION } from './actions'; import { NgReduxRouterModule } from './module'; import { RouterAction, routerReducer } from './reducer'; import { NgReduxRouter } from './router'; // Warning: don't do this: // export * from './foo' // ... because it breaks rollup. See // https://github.com/rollup/rollup/w...
import * as io from 'socket.io-client' import { config } from "./config" const donationalerts = io(`${config["socket"]}:${config["socket-port"]}`); donationalerts.emit('add-user', { token: config["donation-token"], type: config["type"] }); donationalerts.on("donation", (donate) => { donate = JSON.parse(donate); ...
<TS language="it" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Double-click to edit address or label</source> <translation>Doppio click per modificare l'indirizzo o l'etichetta</translation> </message> <message> <source>Create a new address</source> ...
import { Controller, Get, Post, Body, Put, Param, Delete, ClassSerializerInterceptor, UseInterceptors, Logger, } from '@nestjs/common'; import { ApparatusesService } from './apparatuses.service'; import { CreateApparatusDto } from './dto/create-apparatus.dto'; import { UpdateApparatusDto } from './d...
// Enum with all the operators that we want to support inside our code. enum Operator { Add = "add", Subtract = "subtract", Multiply = "multiply", Divide = "divide", Modulo = "modulo" } // Type alias for a function that does a calculation on two numbers. // Such a function will take two numbers as...
export * from "./waitForCacheClusterAvailable"; export * from "./waitForCacheClusterDeleted"; export * from "./waitForReplicationGroupAvailable"; export * from "./waitForReplicationGroupDeleted";
import React from "react"; import { FormattedMessage } from "react-intl"; import { Button } from "@mui/material"; import { useSnackbar } from "notistack"; import { useFormContext } from "react-hook-form"; import TextFieldWithSwitch from "src/components/TextFieldWithSwitch"; import { updateBlocklist, setSession } from ...
namespace Utility { export namespace Fees { export function CalculateLateFee(daysLeft: number): number { return daysLeft * 0.25; } } export function MaxBooksAllowed(age: number): number { return age < 12 ? 3 : 10; } function privateFunc(): void { console...
import * as React from 'react'; import './../styles/pages_controller.scss'; interface PagesLinkProps { page: number; page_capacity: number; items: number; onChange: (page: number) => void; } export default class extends React.Component<PagesLinkProps, any> { static defaultProps = { page: 0, page_capacity: 2...
import { Directive, ElementRef, Input } from "@angular/core"; @Directive({ selector: "ion-icon[fa-name]" }) export class FontAwesomeIcon { @Input("fa-name") set faName(val: string) { this.el.nativeElement.className = "fa fa-"+val; } constructor(private el: ElementRef) { } }
// Type definitions for Backbone 1.0.0 // Project: http://backbonejs.org/ // Definitions by: Boris Yankov <https://github.com/borisyankov/>, Natan Vivo <https://github.com/nvivo/> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../jquery/jquery.d.ts" /> /// <reference path="../under...
/** * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge...
import { HardhatRuntimeEnvironment } from "hardhat/types"; import { DeployFunction } from "hardhat-deploy/types"; import { ethers } from "hardhat"; import { deployMockERC721 } from './utils/721-deploy'; import { set721MockToken } from './utils/721-cache'; const BASE_URI = process.env.ERC721_MOCK_TOKEN_BASE_URL || ''; ...
import 'dotenv/config'; import * as child_process from 'child_process'; import * as appRootPath from 'app-root-path'; import * as chokidar from 'chokidar'; const opts: child_process.ExecSyncOptions = { cwd: `${appRootPath}`, stdio: 'inherit' }; chokidar.watch('contracts').on('all', () => { child_process.execSync('...
import { ComprehensiveRelease, PackageJSON, VersionType } from "@changesets/types"; import getVersionRangeType from "@changesets/get-version-range-type"; import { Range } from "semver"; import { shouldUpdateDependencyBasedOnConfig } from "./utils"; const DEPENDENCY_TYPES = [ "dependencies", "devDependencies"...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_UY" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About REGALCOIN</source> <translation type="unfinished"/> </message> <message> <location l...
import axios from 'axios'; import { getCurrency } from './utils'; type Price = Record<string, Record<string, number>>; interface PriceResponse { prices: [number, number][]; } const client = axios.create({ baseURL: 'https://api.coingecko.com/api/v3', }); export interface Coin { id: string; name: string; s...
import * as ts from "typescript"; type KnownKeys<T> = { [K in keyof T]: string extends K ? never : number extends K ? never : K } extends { [_ in keyof T]: infer U; } ? U : never; type OmitIndexSignature<T extends Record<any, any>> = Pick<T, KnownKeys<T>>; export interface TransformerImport { transfo...
/*! * sri sri guru gaurangau jayatah */ import { abbreviateLanguages, categorizeLanguages, parseLanguages, } from '../src/languages'; describe('Languages', () => { it.each` input | languages ${'English'} | ${['English']} ${'Hindi'} | ${['Hindi']...
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { CoreModule } from './core/core.module'; import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './...
/* eslint-disable */ import { Fragment, useContext } from "react"; import clsx from "clsx"; import Grid from "@material-ui/core/Grid"; import Paper from "@material-ui/core/Paper"; import Typography from "@material-ui/core/Typography"; import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core...
/* * Copyright 2020 - MATTR Limited * 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 wr...
import { unique } from '@remax/shared'; export const alias = { id: 'id', className: 'class', style: 'style', name: 'name', min: 'min', max: 'max', step: 'step', disabled: 'disabled', value: 'value', showValue: 'show-value', activeColor: 'active-color', backgroundColor: 'background-color', tra...
import {Directive} from '@angular/core'; import {ElementRef} from '@angular/core'; import {Input} from '@angular/core'; @Directive({ selector:'[High]' }) export class highlight{ @Input() public bcolor:string; constructor( private e:ElementRef){ console.log('Highlight constructor called'); ...
import { EventEmitter } from 'eventemitter3' import { AtemState, AtemStateUtil, InvalidIdError } from './state' import { AtemSocket } from './lib/atemSocket' import { ISerializableCommand, IDeserializedCommand } from './commands/CommandBase' import * as Commands from './commands' import * as DataTransferCommands from '...
import {BeforeInsert, EntityRepository} from "typeorm"; import {UserEntity} from "../entity/user.entity"; @EntityRepository(UserEntity) export class UserRepository { }
/** * @license * Copyright 2018 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...
function reflectString(inputString: string): string { } console.log(reflectString("name"));
import { Controller, Get } from '@nestjs/common'; @Controller('costumers') export class CostumersController { @Get('') getProduct() { return `costumers`; } }
import * as THREE from 'three' import {worldRenderService} from "@/services/world-render.service"; import {pathRenderService} from "@/services/path-render.service"; class RenderService { public camera: any = null; public scene: any; public renderer: any; public raycaster = new THREE.Raycaster(); p...
import { NgModule } from '@angular/core'; import { SharedModule } from '@app/shared/shared.module'; import { WorkplacesSharedModule } from '@app/routes/workplaces/shared/shared.module'; import { PromisesComponent } from './promises.component'; @NgModule({ imports: [ SharedModule, WorkplacesSharedModule, ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'ngx-edit-course', templateUrl: './edit-course.component.html', styleUrls: ['./edit-course.component.scss'] }) export class EditCourseComponent implements OnInit { constructor() { } ngOnInit(): void { } }
import { Poll } from "shared/model/Poll"; import * as moment from 'moment' export function getLatestPopupTimeBefore(poll: Poll, beforeTime: Date) { const desiredFrequencyMin = moment.duration(poll.desiredFrequency).asMinutes() const momentBeforeTime = moment(beforeTime) const lastMinute = momentBeforeTime....
import 'react-calendar-heatmap/dist/styles.css'; import { useEffect, useState } from 'react'; import { BrowserRouter, Routes, Route } from 'react-router-dom'; import { ThemeProvider } from 'styled-components'; import GlobalStyles from './styles/GlobalStyles'; import Header from './components/Header'; import Footer f...
/* eslint-disable @typescript-eslint/no-use-before-define */ import React, { ReactElement, useEffect, useState, useRef } from 'react'; import EaseEditorSelectorInput from './EaseEditorSelectorInput'; import EaseEditorSelectorDropdown from './EaseEditorSelectorDropdown'; import { EaseEditorSelectorItemProps } from './Ea...
import { MigrationInterface, QueryRunner, Table } from 'typeorm'; export default class CreateOrdersProducts1596252924380 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.createTable( new Table({ name: 'orders_products', columns: ...
export * from './lib/tasks.module'; export * from './lib/+state/tasks.facade'; export * from './lib/models/Task';
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; import { HttpParams } from '@angular/common/http'; @Component({ selector: 'app-auth-error', templateUrl: './auth-error.component.html', styleUrls: ['./auth-error.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, }) exp...
export enum fxParamsList { EqGain01, EqGain02, EqGain03, EqGain04, EqFreq01, EqFreq02, EqFreq03, EqFreq04, EqQ01, EqQ02, EqQ03, EqQ04, DelayTime, GainTrim, CompThrs, CompRatio, CompKnee, CompMakeUp, CompAttack, CompHold, CompRelease, } ...
import { BrowserRouter, HashRouter, Route, Switch } from 'react-router-dom' import { Home } from "./pages/Home"; import { NewRoom } from "./pages/NewRoom"; import { Room } from './pages/Room'; import { AdminRoom } from './pages/AdminRoom'; import { AuthContextProvider } from './contexts/AuthContext' function App() {...
import { settingsType } from '../../modules/settings'; import { annotationModule, annotationType } from '../../modules/annotation'; import { annotationLinkHandler } from '../annotationLinkHandler'; import { autoLinker } from '../autoLink'; export { annotationHandler }; const annotationHandler = { create, createMa...
/* * Lib Bind Screen * Created by Tzingtao Chow * --- * * Lib Bind Screen 是用来绑定天津大学图书馆账号的页面。 * */ import * as React from "react" import { connect } from "react-redux" import { ActivityIndicator, DeviceEventEmitter, Keyboard, StatusBar, View } from "react-native" import { Text } from "../../components/text" imp...
import { QueryParamConfigMap, DecodedValueMap } from 'serialize-query-params'; /** * Different methods for updating the URL: * * - replaceIn: Replace just a single parameter, leaving the rest as is * - replace: Replace all parameters with just those specified * - pushIn: Push just a single parameter, leaving the r...
import { create, tsx } from "@dojo/framework/core/vdom"; import * as c from "bootstrap-classes"; import FontAwesomeIcon from "dojo-fontawesome/FontAwesomeIcon"; import Link from "@dojo/framework/routing/Link"; export interface ServerErrorProperties {} const factory = create().properties<ServerErrorProperties>(); exp...
import { ServerConstants, Types } from '@packages/common'; export function initConfig(configId = ServerConstants.configId): Types.ClientConfig { const node = document.querySelector(`#${configId}`); if (!node || !node.textContent) { throw new Error('Config node is empty'); } const serializableConfig = JSO...
/** * Returns pointer position */ export function getPointerPosition(e: MouseEvent | TouchEvent) { return ( getMouseEventPosition(e as MouseEvent) || getTouchEventPosition(e as TouchEvent) || { x: 0, y: 0, } ); } function getMouseEventPosition(e: MouseEvent) { ...
import { Component } from 'vue-property-decorator'; import { BaseRouteComponent } from '../../../../_common/route/route-component'; const templateMd: string = require('../../../../lib/terms/cookies/global.md'); @Component({ name: 'RouteLegalCookies', }) export default class RouteLegalCookies extends BaseRouteCompone...