text
stringlengths
10
953k
import { Injectable, EventEmitter } from '@angular/core' import { MenuConsts } from './menu.consts'; import { SegurancaService } from '../seguranca/seguranca.service'; import { MenuItem } from '../../layout/menu-lateral/menu-item.model'; @Injectable({providedIn: 'root'}) export class AplicacaoService { menuConsts =...
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { TranslateModule } from '@ngx-translate/core'; import { MockComponent } from 'ng-mocks'; import { User } from 'ish-core/models/user/user.model'; import { BasketMockData } from 'ish-core/utils/dev/basket-mock-data'; import { ContentInclud...
<TS language="bg_BG" 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</so...
import i18n from "i18n-js"; const en = { welcome: "Hello", name: "Charlie", home: { name: "Home", recently: { title: "New Release!", subtitle: "Read the lasted comic recommendation!" }, categories: { title: "Categories", subtitle: "Find more here!", items: ["Top comi...
/* tslint:disable max-line-length */ import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { ArTEMiSTestModule } from '../../../test.module'; import { ResultDetailComponent } from '../../../../...
import * as React from "react"; import { ISheetDefinition } from "../lib/Sheet"; export interface ISheetProps { data: ISheetDefinition; } export default class Sheet extends React.Component<ISheetProps, any> { public render() { // const { data } = this.props; return ( <div> ...
export { ReflectHorizontal20 as default } from "../";
import { Tree } from '@angular-devkit/schematics'; import { createEmptyWorkspace } from '@nrwl/workspace/testing'; import { getProjectConfig, ProjectType, readJsonInTree } from '@nrwl/workspace'; import { STYLE_PLUGIN_DEPENDENCIES } from '../../utils/typings'; import { fileListForAppType, runSchematic } from '../../uti...
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {ErrorService} from './error.service'; import {Observable} from 'rxjs'; import {webSocket} from 'rxjs/webSocket'; import {map, mergeAll, mergeMap, tap} from 'rxjs/operators'; import {getHost} from './url'; @Injectable({pr...
export function getRandomColor() { const letters = '0123456789ABCDEF'; let color = '#'; for (let i = 0; i < 6; i++) { color += letters[Math.floor(Math.random() * 16)]; } return color; }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import * as Axe from 'axe-core'; import * as Sarif from 'sarif'; import { formatSarifResultMessage } from './sarif-result-message-formatter'; describe('sarif-result-message-formatter formatSarifResultMessage', () => { c...
import path from "path"; import { OutputChunk } from "rollup"; import { SourceMapConsumer } from "source-map"; interface SourceMapModuleRenderInfo { id: string; renderedLength: number; } const getBytesPerFileUsingSourceMap = (bundleId: string, code: string, map: SourceMapConsumer, dir: string) => { const module...
import { Component, HostListener, OnInit, ViewChild } from '@angular/core' import { EdgeDefinition, NodeDefinition, Stylesheet } from 'cytoscape' import dagre from 'cytoscape-dagre' import { CyNodeService } from './cy-node.service' import { CoseLayoutOptionsImpl, CytoscapeGraphComponent } from 'cytoscape-angular' impor...
import { Period, User } from '@prisma/client'; import request from 'supertest'; import { encodeToken } from '~/app/utils/auth'; import App from '~/App'; interface GeneratePeriodParams { name?: string; } interface CreatePeriodParams extends GeneratePeriodParams { adminUser: User; } export function generatePerio...
import { ITeachingBubbleStyleProps, ITeachingBubbleStyles } from './TeachingBubble.types'; import { AnimationVariables, FontWeights, getGlobalClassNames, GlobalClassNames, IStyle, keyframes } from '../../Styling'; const globalClassNames = { root: 'ms-TeachingBubble', body: 'ms-TeachingBubble-body', bodyContent: ...
/* eslint-disable react/jsx-props-no-spreading */ /** * @todo: remove this comment below when ready * ref: https://github.com/vercel/next.js/issues/13712#issuecomment-910409023 * */ import createEmotionServer from "@emotion/server/create-instance"; // eslint-disable-next-line @next/next/no-document-import-in-page im...
import React from 'react'; import * as yup from "yup"; import {reqString} from "../../data/validations"; import {FormikActions} from "formik"; import Grid from "@material-ui/core/Grid"; import XForm from "../../components/forms/XForm"; import XTextInput from "../../components/inputs/XTextInput"; import {remoteRoutes} ...
import { mockRequest } from '../../../test/unit/utils/mockRequest'; import { mockResponse } from '../../../test/unit/utils/mockResponse'; import { State } from '../../app/case/definition'; import { // APPLICATION_SUBMITTED, // CHECK_ANSWERS_URL, USER_ROLE, // CONFIRM_JOINT_APPLICATION, // HUB_PAGE, // PAY_Y...
import { DockerOptions } from "../docker"; import * as dockerFile from "../docker-file"; import { DynamicAnalysis } from "./types"; export declare function analyze(targetImage: string, dockerfileAnalysis?: dockerFile.DockerFileAnalysis, options?: DockerOptions): Promise<DynamicAnalysis>;
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; const basic = { beforeCodeTitle: 'Basic progressbar-spinner', htmlCode: `<mat-spinner></mat-spinner>`, tsCode: `import {Component} from '@angular/core';\n\n /** * @title Basic progress-spinner */ @Component({ selector: 'progress-spinner-o...
/* * 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, { FC } from 'react'; import { EuiLoadingSpinner, EuiPanel } fro...
import { ColorInt, XYZ } from '../colorUtils'; import { clamp } from '../helpers'; // For converting XYZ to sRGB const srgbForwardMatrix = [ [3.2406, -1.5372, -0.4986], [-0.9689, 1.8758, 0.0415], [0.0557, -0.204, 1.057], ]; // Forward gamma adjust const srgbForwardTransform = (C: number): number => (C <= 0.0031...
import { WIcon } from './wicon.model'; export declare const wiconCpu: WIcon;
/** * @license Copyright © 2013 onwards, Andrew Whewell * All rights reserved. * * Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
const myvariable = { hello: "APP1" }; const container = document.createElement("div"); container.setAttribute("id", "hello"); container.innerText = `[ENTRIES EXPORT] Value is ${JSON.stringify(myvariable)}`; document.body.appendChild(container); export {};
import React from 'react' import {Image, View} from 'react-native' import {styles} from './styles'; import DiscordSvg from '../../assets/discord.svg' const {CDN_IMAGE} = process.env; type Props = { guildId: string; iconId: string | null; } export function GuildIcon({guildId, iconId }:Props) { const uri =...
/* * 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 { DemoSharedBase } from '../utils'; import { Blur } from '@nstudio/nativescript-blur'; import { ImageSource, isAndroid, Page } from '@nativescript/core'; export class DemoSharedNativescriptBlur extends DemoSharedBase { private blur: Blur; constructor(private page: Page) { super(); this.blur = new Blur();...
import type {ApiCurrency, ApiBot, ApiGetManyDto, ApiTransaction} from '../types/api'; import type {Currency, Bot} from '../types/discoin'; /** * Convert an API currency to a regular currency. * @param currency - API currency to convert * @returns The parsed currency * @internal */ export function apiCurrencyToCur...
export type Coords = Pick<Coordinates, 'latitude' | 'longitude'>;
import { QAModePreviewIndex } from './'; export interface QAMode { token?: string; listedActivitiesOnly?: boolean; evaluateAsTrueAudienceIds?: Array<number>; evaluateAsFalseAudienceIds?: Array<number>; previewIndexes?: Array<QAModePreviewIndex>; } export declare function QAModeFromJSON(json: any): Q...
import { Component, ViewChild, NgModule } from '@angular/core'; import { IonicApp, IonicModule, MenuController, NavController, AlertController, Nav } from '../../../..'; @Component({ templateUrl: 'page1.html' }) export class Page1 { constructor(public navCtrl: NavController, public alertCtrl: AlertController) {} ...
import { mount, render } from 'enzyme'; import React from 'react'; import BasicLayout from 'infrad-pro-layout'; import { act } from 'react-dom/test-utils'; import defaultProps from './defaultProps'; import { waitForComponentToPaint } from '../util'; describe('mobile BasicLayout', () => { beforeAll(() => { proc...
import { BuildContext, DeepLinkConfigEntry } from '../util/interfaces'; export declare class IonicEnvironmentPlugin { private context; constructor(context: BuildContext); apply(compiler: any): void; private initializeWebpackFileSystemCaches(webpackFileSystem); } export declare function convertDeepLinkCo...
export default interface Character { id: number; name: string; status: string; species: string; type: string; gender: string; origin: { name: string; url: string; }; location: { name: string; url: string; }; image: string; episode: string[]; url: string; created: Date; }
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides, } from "ethers"; import { BytesLike } from "@ethersproject/byte...
import { Icon } from '@makerdao/dai-ui-icons' import { Box, Flex, Text } from '@theme-ui/components' import BigNumber from 'bignumber.js' import { Tooltip, useTooltip } from 'components/Tooltip' import { useTranslation } from 'next-i18next' import React, { ReactNode } from 'react' import { SxStyleProp } from 'theme-ui'...
import Column from './Column'; import Html from '../helpers/Html'; import Model from '../base/Model'; /** * RadioButtonColumn displays a column of radio buttons in a grid view. * * To add a RadioButtonColumn to the [[GridView]], add it to the [[GridView.columns|columns]] configuration as follows: * * ```js * { *...
import { DimItem } from 'app/inventory/item-types'; import { AppIcon, faClock } from 'app/shell/icons'; import { DestinyItemTooltipNotification } from 'bungie-api-ts/destiny2'; import clsx from 'clsx'; import React from 'react'; import RichDestinyText from './RichDestinyText'; export function DestinyTooltipText({ item...
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ /// <reference path="jqwidgets.d.ts" /> import { Component, Input, Output, EventEmitter, ElementRef, forwardRef, OnChanges, SimpleChanges } from '@angular/core'; declare let $: any; @Component({ selector: 'j...
import * as React from "react"; // @ts-ignore import * as mxGraphJs from "mxgraph-js"; const { mxGraphSelectionModel } = mxGraphJs; import { IMxGraphContext, MxGraphContext, } from "../context/MxGraphContext"; import { ImxCell, IMxGraph, } from "../types/mxGraph"; import { IPanelContext, PanelContext, } f...
import { useColorMode, IconButton } from '@chakra-ui/react'; import { FaSun, FaMoon } from 'react-icons/fa'; export default function ToggleColorMode() { const { colorMode, toggleColorMode } = useColorMode(); return ( <IconButton onClick={toggleColorMode} pos="absolute" top="1rem" right...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export ...
// *** 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 utilities from "../../utilities"; /** * An Azure Cosmos DB Role Assignment */ export class SqlResourceSqlRo...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const faUniversalAccess: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const ...
import { bySport, isSport, PHASE, unwrapGameAttribute } from "../../../common"; import { team } from ".."; import { idb } from "../../db"; import { defaultGameAttributes, g, helpers } from "../../util"; import type { GameResults } from "../../../common/types"; import { getActualAttendance, getAdjustedTicketPrice, ge...
import { TourDataType } from '@console/app/src/components/tour'; import i18n from '@console/internal/i18n'; import { perspectiveSwitcherTourText, searchTourText, finishTourText, devPerspectiveTourText, } from './GuidedTourText'; const getSelector = (id: string): string => `[data-tour-id="${id}"]`; export cons...
import { User } from '../../src/user/entities/user.entity'; import { ConnectionOptions } from 'typeorm/connection/ConnectionOptions'; const { env } = process; require('dotenv').config({path:'.env'}); require('dotenv').config({path:`.env${env.NODE_ENV?`.${env.NODE_ENV}`:''}`}); const ormConfig: ConnectionOptions = { ...
import React from "react"; import debounce from "lodash.debounce"; import Image from "../Assets.tsx/assets"; import { TimelineEventComponent } from "./TimelineEventComponent"; import { TimelineDetailInfoComponent } from "./TimelineDetailInfoComponent"; import { TimelineDotEventComponent } from "./TimelineDotEventCompon...
import { SkyraCommand, SkyraCommandOptions } from '@lib/structures/SkyraCommand'; import { ApplyOptions } from '@skyra/decorators'; import { assetsFolder } from '@utils/constants'; import { fetchAvatar, radians } from '@utils/util'; import { Image } from 'canvas'; import { Canvas } from 'canvas-constructor'; import { r...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { DbService, LoaderService, ToastMessageService, NetworkService } from '../core'; import { environment } from 'src/environments/environment'; import { File } from "@ionic-native/file/ngx"; import { Platform } fro...
import { createStandardAction } from 'typesafe-actions'; export const queueMessage = createStandardAction('messages/QUEUE')<string>(); export const dismissMessage = createStandardAction('messages/DISMISS')<void>();
import React, { useEffect, FunctionComponent, useReducer, useContext, ReactNode, } from 'react' import lineItemReducer, { lineItemInitialState, updateLineItem, deleteLineItem, getLineItems, } from '#reducers/LineItemReducer' import OrderContext from '#context/OrderContext' import LineItemContext, { Li...
import {Component} from 'react'; import {SizeSensor, ISizeSensorProps, ISizeSensorState} from '../SizeSensor'; import {noop, h} from '../util'; import faccToHoc, {divWrapper} from '../util/faccToHoc'; export interface IWidthSensorProps extends ISizeSensorProps { onWidth?: (size: ISizeSensorState) => void; } export ...
import * as TypeGraphQL from "type-graphql"; import GraphQLJSON from "graphql-type-json"; import { JsonValue, InputJsonValue } from "@prisma/client"; @TypeGraphQL.ObjectType({ isAbstract: true, description: undefined, }) export class AggregateImagen { @TypeGraphQL.Field(_type => TypeGraphQL.Int, { nullable: ...
declare namespace Page { interface Constructor {} } declare namespace Component { interface Constructor {} } declare namespace meduxCore { type Props = {[key: string]: any}; interface ComponentConfig { properties?: {[prop: string]: any}; data?: Props; lifetimes?: { created?(): void; atta...
import { Controller, Get, Post, Body, Put, Param, Delete, } from '@nestjs/common'; import { FormService } from './form.service'; import { CreateFormDto } from './dto/create-form.dto'; import { UpdateFormDto } from './dto/update-form.dto'; import { Response } from './response/response'; @Controller('form'...
import { RefObject } from "react"; import { AnyAction, combineReducers } from "redux"; import { SET_CHAR, SET_WORD, TIMER_DECREMENT, TIMERID_SET, TIMER_SET, APPEND_TYPED_HISTORY, PREV_WORD, SET_WORDLIST, SET_THEME, SET_TIME, SET_REF, SET_CARET_REF, SET_TYPE, } from "./actions"; export interface State { p...
import { Pipe, PipeTransform } from '@angular/core'; import { FormatterService } from '../core/formatter.service'; @Pipe({ name: 'eventLocation' }) export class EventLocationPipe implements PipeTransform { constructor (public formatter: FormatterService) { } transform(event: any, precision?: number): string {...
/* eslint-disable @typescript-eslint/no-unused-vars */ /*** AUTOGENERATED FILE: you can only modify parts of the file within <keep-*> tags ***/ import { Field, ID, InputType } from 'type-graphql'; import { EntityId, EntityIdScalar } from '../../shared/EntityId'; import { PostNestedInput } from '../../post/inputs/Post...
import * as React from 'react'; import { StyledIconProps } from '../../StyledIconBase'; export declare const ItcDimensions: { height: number; width: number; };
import { runCommandGit, RunCommandOptions } from "lib/run-command"; export interface StashOptions extends RunCommandOptions { action?: "push" | "pop" | "drop"; paths?: string[]; } export const stash = (options: StashOptions = {}) => { const args = createArgs(options); return runCommandGit("stash", args, optio...
import { Plugin } from 'webpack'; import * as WebpackNotifierPlugin from 'webpack-notifier'; const optionsArray: WebpackNotifierPlugin.Options[] = [ { title: 'Webpack', contentImage: 'logo.png', excludeWarnings: true, alwaysNotify: true, skipFirstNotification: true, }, ]; const plugins: Plugin[] = options...
import {fireEvent, render, screen} from "@testing-library/react"; import '@testing-library/jest-dom/extend-expect' import {_RegionProvider} from "../../components/common/context/RegionContext"; import {RegionalJustificationDialog} from "../../components/Dialog/RegionalJustification/RegionalJustificationDialog"; jest.d...
// Copyright 2015-2021 Swim 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 agreed to ...
import { Component, OnInit, Inject, OnDestroy, Renderer2 } from '@angular/core'; import { Router } from '@angular/router'; import { DOCUMENT } from '@angular/common'; @Component({ selector: 'app-desktop-search-result', templateUrl: './desktop-search-result.component.html', styleUrls: ['./desktop-search-result.co...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ export const environment = { production: true, firebase: { apiKey: "AIzaSyD4xYr0JKJFQ-F6IyrDa83x18iL_X5-kzc", authDomain: "announcements-212320.fireba...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { BasicElementsComponent } from './basic-elements/basic-elements.component'; import { RouterModule, Routes } from '@angular/router'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; const routes: Routes = [ { path...
import {IMemoryStats} from "dyna-memory-stats"; export const enum EInstanceType { APP = "APP", STANDALONE_SERVICE = "STANDALONE_SERVICE", MASTER_SERVICE = "MASTER_SERVICE", WORKER_SERVICE = "WORKER_SERVICE", } export interface IInstanceStats { id: string; time: number; // Date serviceType: EInstanceType...
import React from "react"; import Editor from "./Editor"; import { AppContextProvider } from "./lib/AppContext"; import Parsed from "./Parsed"; import Rendered from "./Rendered"; export default function App() { return ( <AppContextProvider> <Editor /> <div id="output"> <Rendered /> <P...
import * as Container from '../../../../../util/container' import * as Constants from '../../../../../constants/wallets' import * as Types from '../../../../../constants/types/wallets' import * as RouteTreeGen from '../../../../../actions/route-tree-gen' import RemoveAccountPopup from '.' type OwnProps = Container.Rou...
import "jest"; import * as React from "react"; import * as enzyme from "enzyme"; import StartDetail from "../StartDetail"; describe("StartDetail", () => { it("Should have mdc-list-item__start-detail classname", () => { const wrapper = enzyme.mount(<StartDetail />); expect(wrapper.hasClass("mdc-l...
import React from 'react' import './character.css' import { CharacterDTO, TalentDTO, SpellDTO } from '../models/character.dto' import { Statistic } from './statistic.component' import { Language } from './language.component' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import ...
/** Copyright 2021 Forestry.io Holdings, 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 agreed to in writ...
import 'source-map-support/register' import * as WebSocket from 'ws' import {log} from "./log" export interface Worker { (options: any): Promise<any> } export interface WorkerManagerOptions { server: string } interface WorkPackage { name: string options: any nonce: string } export class WorkerMa...
import { ChangeEvent, useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { Link } from "react-router-dom"; import { ContactGroupDAO } from "../lib/ContactGroup"; import { createGroupsLoadingStatus, createSelectGroup } from "../redux/phonebook/actions"; import { AppDispatch, RootSta...
import {storiesOf} from '@storybook/react'; import * as React from 'react'; import {useMap} from '..'; import ShowDocs from '../util/ShowDocs'; const Demo = () => { const [map, {set, reset}] = useMap({ hello: 'there', }); return ( <div> <pre>{JSON.stringify(map, null, 2)}</pre> <button onCli...
import {expect} from 'chai'; import TokenService from '../../../src/services/TokenService'; import {MockToken} from '@universal-login/commons/test'; import {deployContract, getWallets, createMockProvider} from 'ethereum-waffle'; import {Contract} from 'ethers'; import {ETHER_NATIVE_TOKEN} from '@universal-login/commons...
import { Entity, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, OneToOne, JoinColumn, OneToMany, Column, } from 'typeorm'; import Customer from '@modules/customers/infra/typeorm/entities/Customer'; import OrdersProducts from '@modules/orders/infra/typeorm/entities/OrdersProducts'; @Entity...
import { Asset, AssetType } from "stellar-base"; import { Omit } from "utility-types"; import { Horizon } from "./horizon_api"; /* tslint:disable-next-line: no-namespace */ export namespace ServerApi { export interface CollectionPage< T extends Horizon.BaseResponse = Horizon.BaseResponse > { records: T[]; ...
import React, { useState, useEffect, FormEvent } from 'react'; import styled, { css, keyframes } from 'styled-components'; import palette from '../../lib/styles/palette'; import OutsideClickHandler from 'react-outside-click-handler'; import Button from '../common/Button'; import useInputs from '../../lib/hooks/useInput...
import React, { SyntheticEvent } from "react"; import DocumentationSearch from "components/designSystems/appsmith/help/DocumentationSearch"; import { getHelpModalOpen } from "selectors/helpSelectors"; import { setHelpDefaultRefinement, setHelpModalVisibility, } from "actions/helpActions"; import styled from "styled...
import { Action } from '@ngrx/store'; export class LogsProviderMock { sendLogs = jasmine.createSpy('sendLogs'); dispatchLog = jasmine.createSpy('dispatchLog'); } export class MockStore<T> { constructor() {} dispatch(action: Action) { return []; } }
import { Component } from '@angular/core'; import { HubConnection } from "@aspnet/signalr-client"; @Component({ selector: 'counter', templateUrl: './counter.component.html' }) export class CounterComponent { public currentCount = 0; private notificationsHub: HubConnection; public constructor() { ...
import { Component, Input, OnChanges } from '@angular/core'; @Component({ selector: 'gt-card', templateUrl: './card.component.html', styleUrls: ['./card.component.scss'] }) export class CardComponent implements OnChanges { cardImage: string; private readonly reverseCardUrl = "assets/cards/reverse_card.jpg"; @In...
import { NgModule } from '@angular/core'; import { IonicPageModule } from 'ionic-angular'; import { CityService } from '../../services/domain/city.service'; import { StateService } from '../../services/domain/state.service'; import { SignupPage } from './signup'; @NgModule({ declarations: [ SignupPage, ], im...
export class Spotify { public static accessToken: string = null; public static getAuthUrl(): string { const parameters = { response_type: "token", client_id: process.env.SPOTIFY_CLIENT_ID, scope: "user-library-read", state: "", redirect_uri: "saberfy://auth/", }; const url = new URL("https://ac...
import {Column, Entity, PrimaryGeneratedColumn} from 'typeorm'; /** * 商品 */ @Entity('goods', {schema: 'itemall'}) export class Goods { @PrimaryGeneratedColumn({type: 'int', name: 'id'}) id: number; @Column('varchar', {name: 'cfav', nullable: true, length: 255}) cfav: string | null; @Column('var...
import Wrapper from './shared/Wrapper'; import Renderer from '../Renderer'; import Block from '../Block'; import FragmentWrapper from './Fragment'; import { b, x } from 'code-red'; import { Identifier } from 'estree'; import DynamicElement from '../../nodes/DynamicElement'; import ElementWrapper from './Element/index';...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* eslint-disable @typescript-eslint/no-unused-vars */ describe('Users', () => { describe('GET /users', () => { it('should throw an 403 if the current user is not allowed to read users', async () => { const result = await app.get('/users').set({ Authorization: `Bearer ${credentials.restrictedUserTok...
import { createConnection } from 'typeorm'; import { Item } from '../items/item.entity'; export const databaseProviders = [ { provide: 'DATABASE_CONNECTION', useFactory: async () => await createConnection({ type: 'mysql', host: 'localhost', port: 3306, username: 'root', ...
import { Component, HostBinding, ViewChild, Input, OnInit, ElementRef, AfterViewInit, } from '@angular/core'; @Component({ selector: 'header-search', template: ` <nz-input-group nzAddOnBeforeIcon="anticon anticon-search"> <input nz-input [(ngModel)]="q" (focus)="qFocus()" (blur)="qBlur()" [plac...
import { h, Fragment } from 'preact'; import { useEffect, useState } from 'preact/hooks'; import { Guest, JoinQueueResult } from '../virtual-queue'; import FloatingButton from './FloatingButton'; import GuestList from './GuestList'; const DONE_BTN_HIDDEN_MS = { success: 5000, failure: 1000, }; export default fun...
import { BadRequestError } from "@tusksui/shared" import app from "./app" import { database } from "./services/db" import { natsService } from "./services/nats" import { AccountUpdatedListener, AccountDeletedListener, } from "./events/listeners" class Server { private loadEnvVariables() { const { NATS...
import { StoreModule } from "../../types/store/store"; declare const heatmapSeriesData: StoreModule; export default heatmapSeriesData;
// @ts-ignore import createDebug from 'debug'; // @ts-ignore import { CookieJar } from 'tough-cookie'; // @ts-ignore // @ts-ignore import { // @ts-ignore fetch, // @ts-ignore // @ts-ignore RequestInfo, // @ts-ignore RequestInit, // @ts-ignore Response // @ts-ignore } from './fetch'; // @ts-ignore // @ts-ignore e...
// Generated Source import ShippingMethod from "./ShippingMethod"; interface ShippingOptionResource { /** * */ uri?: string; /** * */ method?: ShippingMethod; /** * */ quantity?: number; /** * */ price?: number; } export default ShippingO...
import React from "react"; import { render } from "@testing-library/react"; import Circles from "../Circles"; test("has no violations", () => ( expect(<Circles />).toHaveNoViolations() )); test("passes on className", () => { const { container } = render(<Circles className="circles" />); expect(container.query...
/* * 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 { ThemeProvider } from 'styled-components';...