text
stringlengths
10
953k
import {Component} from '@angular/core'; @Component({ selector: 'cmp-35', template: '<strong>35</strong>&nbsp;', }) export class Cmp35Component { add35(x: number) { return x + 35; } }
export class Ingredient { name: string; value: number; counter: number; constructor(name?: string, value?: number, counter?: number) { this.name = name; this.value = value; this.counter = counter; } }
import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core'; import { BehaviorSubject, combineLatest, merge, Observable, ReplaySubject, Subject } from 'rxjs'; import { Craft } from '../../../../model/garland-tools/craft'; import { debounceTime, distinctUntilChanged, filter, first, m...
import { takeEvery, put, call, all } from 'redux-saga/effects'; import { toastr } from 'react-redux-toastr'; import { getUnreadNotifications, readNotification, deleteNotification, deleteAllNotifications, readAllNotifications, getAllNotifications } from './service'; import { fetchUnreadNotificationsRoutine, read...
import SchemaHelper from './schema/SchemaHelper'; import { BasePlugin } from './plugin'; export { SchemaHelper, BasePlugin, }; export enum HttpMethod { GET = 'GET', POST = 'POST', PUT = 'PUT', DELETE = 'DELETE' } export enum ExportType { CSV = 'csv', ZIP = 'zip' } export enum LogLevel { TRACE = 0,...
import {Component, OnChanges, OnInit, SimpleChanges,TemplateRef,ViewChild } from '@angular/core'; import {animate, state, style, transition, trigger} from '@angular/animations'; import {CodemapCell, CustomCell} from '../../../@core/ui/table/cell'; import {Router} from '@angular/router'; import {TextCell} from '../../.....
//文件上传的Bucket名称 export enum TenXunBucket { image = 'image-1257846935', } //Bucket下一级的文件夹名称 export enum TenXunFileFold { user = 'user/', } //文件上传地域 export enum TenXunRegion { nanJin = 'ap-nanjing', shangHai = 'ap-shanghai', } //上传文件的进度 export interface UploadProgressType { loaded: number; //已经上传的文件部分大小,以字节(Byt...
import * as styledComponents from 'styled-components'; import { ThemedStyledComponentsModule } from 'styled-components'; import { THEME, Theme } from './theme'; const { default: styled, css, createGlobalStyle, keyframes, ThemeProvider, } = styledComponents as ThemedStyledComponentsModule<Theme>; export { c...
declare const _default: { component: ({ icon, imgSrc }: import("./ListItemIcon").ListItemIconProps) => JSX.Element; title: string; }; export default _default; export declare const all: () => JSX.Element;
interface ObjectValue { [key: string]: number; } type Items<T> = Array<T> | Array<[T, number]> | ObjectValue; class Counter<T> extends Map<T | string, number> { /** * Initialize the Counter * @param {*} items Iterable or mapping. * @return {Counter} */ constructor(items?: Items<T>) { // Array ty...
/** * @description mocks_v2:mockEventBridge.ts module is mocks for AWS-SDK V2 * * This mock module has generated from mock_generator. * Generator Version: {v0.1.0} * Author: hugtechio */ import {attachMock} from './common' export const mockEventBridge = { activateEventSource: (result:any, mock?: jest.SpyInstance): ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { LoginFormComponent } from './shared/components'; import { AuthGuardService } from './shared/services'; import { HomeComponent } from './pages/home/home.component'; import { ProfileComponent } from './pages/profile...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ...
export class Counters { public totalBytesSent = 0; public totalRequestCounter = 0; public totalResponseTimeMs = 0; public constructor() { this.reset(); } public reset(): this { this.totalBytesSent = 0; this.totalRequestCounter = 0; this.totalResponseTimeMs = 0; ...
import axios from "axios"; import * as types from "./types"; import { NoUserIdError, UnauthorizedError, HttpError, BadResponseError } from "./errors"; const BASE_PATH = "https://www.ridewithgps.com"; export class RideWithGPSClient { private authToken?: string; private authenticatedUserId?: number; con...
import { expect } from 'chai'; import { SpectronClient } from 'spectron'; import commonSetup from './common-setup'; describe('angular-electron App', function() { commonSetup.apply(this); let client: SpectronClient; beforeEach(function() { client = this.app.client; }); it('creates initial windows', a...
/*! * devextreme-angular * Version: 20.1.3 * Build date: Fri Apr 24 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://git...
// GENERATE BY ./scripts/generateIcons.js // DON NOT EDIT IT MANUALLY import React from 'react'; import InboxOutlineSvg from '@ant-design/icons-svg/lib/outline/InboxOutline'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const InboxOutlined = (props: AntdIconProps) => <AntdIcon {...props} icon={Inb...
import { QueryResolvers } from './type-defs.graphqls' import { ResolverContext } from './apollo' const Query: Required<QueryResolvers<ResolverContext>> = { viewer(_parent, _args, _context, _info) { return { id: String(1), name: 'John Smith', status: 'cached' } }, } export default { Query }
import {DefaultSortOptions} from "element-ui/types/table"; import {Dictionary} from "vue-router/types/router"; import {Entity} from "~/types/api"; type TableQuery = { page?: number, page_size?: number, order?: DefaultSortOptions, filters?: FilterList } type TableProps = { stripe: boolean, height: string, ...
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { PageTitleService } from '../../core/page-title/page-title.service'; import {fadeInAnimation} from "../../core/route-animation/route.animation"; import { single, multi } from './../charts.data'; @Component({ selector: 'ms-bar-charts', te...
export const icon = { p: `<path d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55....
/*! * @license * Copyright 2019 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 app...
import { SNSClient } from "./SNSClient"; import { AddPermissionInput } from "./types/AddPermissionInput"; import { AddPermissionOutput } from "./types/AddPermissionOutput"; import { AuthorizationErrorException } from "./types/AuthorizationErrorException"; import { CheckIfPhoneNumberIsOptedOutInput } from "./types/Check...
import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; @Component({ selector: 'pm-page-not-found', templateUrl: './page-not-found.component.html', styleUrls: ['./page-not-found.component.css'] }) export class PageNotFoundComponent implements OnInit { pageT...
import { Deserializable } from "./deserializable"; export class Comment implements Deserializable { deserialize(input: any): this { Object.assign(this, input); return this; } comment: string; date: string; }
/* * Copyright 2020, 2022 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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 re...
import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { TooltipModule } from 'ngx-bootstrap/tooltip'; import { CommonModule } from '@angular/common'; import { ModuleWithProviders, NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { NativeElementInje...
/* tslint:disable */ /* eslint-disable */ /* @relayHash b5a71f733c8c0580061a7e220ce67550 */ import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type LotsByFollowedArtistsQueryVariables = { count: number; cursor?: string | null; }; export type LotsByFollowedArti...
import React, { useCallback, useEffect, useState } from 'react'; import { StyleSheet, Text, View, Dimensions } from 'react-native'; import MapView, { PROVIDER_GOOGLE, Marker, Callout } from 'react-native-maps'; import { useNavigation, useFocusEffect } from '@react-navigation/native'; import { Feather } from '@expo/vect...
import { Injectable } from '@nestjs/common'; import { ICommandBus, IQueryBus, QueryStatement } from 'aurora-ts-core'; // @apps import { FindRoleByIdQuery } from '@apps/iam/role/application/find/find-role-by-id.query'; import { DeleteRoleByIdCommand } from '@apps/iam/role/application/delete/delete-role-by-id.command'; ...
import * as casual from 'casual'; import { User } from '../../../entity/User'; import { duplicateEmail, emailNotLongEnough, emailNotValid, passwordTooShort } from '../errorMessages'; import { Connection } from 'typeorm'; import { createTypeormConn } from '../../../utils/createTypeormConn'; import { TestClient...
import React from 'react' import ProductAggregate from '../../domain/Product' import Button from '../Button' import Table from '../Table/Table' interface Props{ data: ProductAggregate[]; } const ProductList: React.FC<Props> = ({data}) => { return <Table<ProductAggregate> columns={[ { Header: "Type...
import type { AppProps } from 'next/app'; import { useRouter } from 'next/router'; import { getActualDefaultLocale, setCookieLocale } from 'next-multilingual'; import './_app.css'; export default function MyApp({ Component, pageProps }: AppProps): JSX.Element { const router = useRouter(); const { locales, defaultL...
/** Copyright 2019 Forestry.io 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 writing, softwa...
import { Component, ChangeDetectionStrategy } from '@angular/core'; import { FieldType } from '@ngx-formly/core'; @Component({ selector: 'formly-field-primeng-radio', template: ` <p-radioButton *ngFor="let option of to.options | formlySelectOptions: field | async" [name]="field.name || id" [f...
import { BadRequestException, NotFoundException } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; import { request } from 'http'; import { TransactionController } from './controllers/transaction.controller'; import { TransactionService } from './services/transaction.service'; describe('Ap...
/* * Copyright 2018 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "...
/** * Created by Deakin on 2017/5/15 0015. */ export class CloudpayVerificationList { public charge_order_id: string; // 订单ID public sn: string; // 订单号 public mobile: string; // 用户账号 public name: string; // 用户名 public trade_mode: number; // 交易方式 public yft_account: string; // 云付通账号 public create_time: s...
// Copyright 2019-2021 @axia-js/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { ThemeProps } from '../types'; import React from 'react'; import styled from 'styled-components'; interface Props extends ThemeProps { className?: string; } function MenuDivider ({ className }: ...
import { anything as fcAnything, Arbitrary, array as fcArray, assert as fcAssert, integer as fcInteger, property as fcProperty, string as fcString } from 'fast-check'; import {filterArray} from '@utils/filterArray'; import {sortArray} from '@utils/sortArray'; import {SortedValues} from '@cu...
import { Controller, UseGuards, HttpException, HttpStatus, Body, UsePipes, Post, Delete, Put, Param, } from '@nestjs/common'; import { ApiCreatedResponse, ApiTags, ApiUnauthorizedResponse, ApiBadRequestResponse, ApiBearerAuth, } from '@nestjs/swagger'; // DTO import { CreateBlogDto, Updat...
/* eslint-disable @typescript-eslint/no-var-requires */ import { LocalStorage as LSType } from "node-localstorage"; let localStorage: LSType | Storage; if (typeof window === "undefined") { const path = require("path"); const LocalStorage: new ( location: string, quota?: number, ) => LSType = require("node-local...
export class ComicInstance { token!: number; issueNumber!: string; condition!: string; }
import { Inject, Injectable, PLATFORM_ID } from '@angular/core'; import { AngularFireAuth } from '@angular/fire/auth'; import { Observable, Subject, from, of } from 'rxjs'; import { DataStore } from '../../shell/data-store'; import { FirebaseProfileModel } from './profile/firebase-profile.model'; import { Platform } fr...
import { graphql, PageRendererProps } from 'gatsby'; import { DateTime } from 'luxon'; import React, { FunctionComponent } from 'react'; import styled from 'styled-components'; import { OriginalDate } from '../components/date'; import { Layout } from '../components/layout'; import { FadeLink } from '../components/link'...
import {useCallback, useEffect, useRef, useState} from 'react'; import {continueRender, delayRender} from 'remotion'; import {getAudioData} from './get-audio-data'; import {AudioData} from './types'; export const useAudioData = (src: string): AudioData | null => { if (!src) { throw new TypeError("useAudioMetadata r...
import { Box,Text } from '@chakra-ui/react'; import Dashboard from '../dashboard'; export default function Home(){ return ( <Dashboard> <Box display="flex" alignItems='center' justifyContent='center' height={'50%'}> <Text as='h1' fontSize='25px'>Seja bem vindo ao sistema. Utilize a nossa solução pa...
import { schemas } from '@0x/json-schemas'; import { assetDataUtils } from '@0x/order-utils'; import { APIOrder, AssetProxyId, ERC20AssetData, OrdersChannelMessageTypes, OrdersChannelSubscriptionOpts, SignedOrder, WebsocketConnectionEventType, } from '@0x/types'; import * as http from 'http'...
import * as React from "react"; import { CarbonIconProps } from "../../"; declare const SubtractAlt24: React.ForwardRefExoticComponent< CarbonIconProps & React.RefAttributes<SVGSVGElement> >; export default SubtractAlt24;
import sdk, { ScryptedDeviceBase, DeviceProvider, Settings, Setting, ScryptedDeviceType, Device, ScryptedInterface, ObjectsDetected, ObjectDetectionResult } from "@scrypted/sdk"; import { ProtectApi, ProtectApiUpdates, ProtectNvrUpdatePayloadCameraUpdate, ProtectNvrUpdatePayloadEventAdd } from "./unifi-protect"; import...
import { Component } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { provideMockActions } from '@ngrx/effects/testing'; import { Action, Store } from '@ngrx/store'; import { cold, hot...
export function threeSum(nums: number[]): number[][] { const res: number[][] = []; // 结果数组 nums.sort((a, b) => a - b); // 先对给定数组进行排序 // 循环双指针算法 for (let i = 0; i < nums.length; i++) { if (nums[i]! > 0) { return res; } // 防止基点出现重复 if (nums[i] === nums[i - 1]) { continue; } let lef...
import { Refine } from "@pankod/refine-core"; import routerProvider from "@pankod/refine-react-router-v6"; import dataProvider from "@pankod/refine-simple-rest"; import { Layout } from "components"; import { PostIcon } from "icons"; import { PostList, PostCreate, PostEdit, PostShow } from "pages/posts"; const App: Re...
import assert from "assert"; import fs from "fs"; import path from "path"; import * as types from "ast-types"; import * as recast from "../main"; const nodeMajorVersion = parseInt(process.versions.node, 10); function testFile(path: string, options: { parser?: any } = {}) { fs.readFile(path, "utf-8", function (err, ...
import 'bootstrap-css-only'; import Vue from 'vue'; import App from './App.vue'; Vue.config.productionTip = false; new Vue({ render: (h) => h(App), }).$mount('#app');
import * as process from 'process' import * as cp from 'child_process' import * as path from 'path' import fetchMock from 'jest-fetch-mock' import {validate} from '../src/main' beforeEach(() => { fetchMock.resetMocks() jest.resetModules() }) // shows how the runner will run a javascript action with env / stdout pr...
import React, { Component, useRef, useEffect } from "react"; export default class KmeansCanvas extends Component { Canvas = props => { const canvasRef = useRef(null) const draw = ctx => { ctx.fillStyle = '#000000' ctx.beginPath() ctx.arc(50, 100, 20, 0, 2*Math.PI) ctx.fill() } ...
import React, { Component } from 'react'; import { Picker, View, Text } from 'react-native'; import colors from '../../styles/base/colors.style'; import styles from '../../styles/components/Popups/DurationPicker.style'; interface IProps { onValueChange: (seconds: number) => void; initialTime: number; } inter...
'use strict' import { AstWalker } from '@remix-project/remix-astwalker' import { util } from '@remix-project/remix-lib' import { SourceLocationTracker } from '../source/sourceLocationTracker' import { EventManager } from '../eventManager' import { parseType } from './decodeInfo' import { isContractCreation, isCallInstr...
import { Textarea as SingularityTextarea } from '@singularity/core' import { useFormikContext } from 'formik' type TextareaProps = { helper?: string isDisabled?: boolean label?: string name: string placeholder?: string } export function Textarea({ helper, isDisabled = false, label, name, placeholder }: Texta...
import { CustomError } from '../custom-error'; export class CouldNotCreateChainfile extends CustomError { constructor() { super("Couldn't create a chainfile"); } }
import { EvaluationRule } from 'src/interfaces/evaluationRule'; import { UserEvaluationData } from 'src/interfaces/userEvaluationData'; import { CreditScorePointsPercentageInterval } from '../value-objects/creditScorePointsInterval'; import { ScoreRange } from '../value-objects/scoreRange'; export class CreditAmountRu...
import {Injectable} from '@angular/core'; import {FireStoreService} from './fire-store.service'; @Injectable({ providedIn: 'root' }) export class ApistatusService { constructor(private fs: FireStoreService) { } getStatus() { return this.fs.get().collection('api').doc('j087hhlFv3IHzcz89OAZ').valueChanges(...
/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { AccountSettingsXrpBlockchain } from '../models/AccountSettingsXrpBlockchain'; import type { AccountSettingsXrpBlockchainKMS } from '../models/AccountSettingsXrpBlockchainKMS'; import type { BroadcastKMS } from '../models/BroadcastKMS'; i...
import { Component, h } from '@stencil/core'; @Component({ tag: 'dom-reattach-clone-deep-slot' }) export class DomReattachCloneDeep { render() { return ( <div class='wrapper'> <span class="component-mark-up">Component mark-up</span> <div> <section> <slot></slot> ...
// Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 import { Int } from '../codec/Int'; /** * @name i128 * @description * A 128-bit signed integer */ export class i128 extends Int.with(128) { // NOTE without this, we cannot properly determine extensions public ...
import { cssProperty, rippleColorProperty, themer } from '@nativescript-community/ui-material-core'; import { getColorStateList, getEnabledColorStateList, state } from '@nativescript-community/ui-material-core/android/utils'; import { CoercibleProperty, Color, Property, View, backgroundColorProperty, backgroundInternal...
import copyImg from '../../assets/copy.svg'; import './style.scss'; type RoomCodeProps = { code: string; } export default function RoomCode(props: RoomCodeProps) { function copyRoomCodeToClipboard() { navigator.clipboard.writeText(props.code); }; return ( <button className="room-code" onClick={copyRo...
// This is needed by the wallet connect connector as of is only ready for both the browser and mobile WebSocket = require('ws') const fs = require('fs') const path = require('path') fs.readFile(path.resolve(__dirname, '../package.json'), 'utf8', (err, data) => { if (err) { console.error('There was an unexpected ...
import { stringify } from '../src'; describe('stringify', () => { it('should take an object and convert it to a string', () => { const input = { name: 'Adam', age: 25, location: 'New york', }; const result = 'name=Adam&age=25&location=New%20york'; ...
/** @jsx createElement */ import { createElement } from 'preact'; import { shallow } from 'enzyme'; import { user, anonymousUser } from '@app/testUtils/mocks/user'; import { StaticStore } from '@app/common/static_store'; import { LS_SAVED_COMMENT_VALUE } from '@app/common/constants'; import * as localStorageModule fro...
export type FunctionArguments<TProperty> = TProperty extends (...args: infer TArgs) => any ? TArgs : `Property is not a functions`[]; export interface CrossInvocation<T extends object = any, TPropertyName extends keyof T = any> { readonly refId: number; readonly propertyName: TPropertyName; readonly args: Functi...
import { Component, OnInit, OnDestroy, AfterViewInit, EventEmitter, Input, Output } from '@angular/core' import { NSContent } from '../../../../../../interface/content' import { AccessControlService } from '../../../../../../modules/shared/services/access-control.service' import { EditorContentService } from '../../../...
import { Observable, of } from 'rxjs'; import { zip } from 'rxjs/operators'; it('should support rest parameter observables', () => { const o = of(1); // $ExpectType Observable<number> const z = [of(2)]; // $ExpectType Observable<number>[] const a = o.pipe(zip(...z)); // $ExpectType Observable<{}> }); it('should...
import { MarkerObj } from './marker-types'; import { ItemForm } from './trip-types'; import * as yup from 'yup'; import { enumToArray } from '@utils/enums/enum-to-array'; export enum LineTypes { TRAIN = 'Train', BOAT = 'Boat', PLANE = 'Plane', PEDESTRIAN = 'Pedestrian', } export const lineSchema = yup.object(...
/** * Copyright 2019 Google LLC * * 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 { PartialType } from '@nestjs/mapped-types'; import { CreateStudyDocDto } from './create-study-doc.dto'; export class UpdateStudyDocDto extends PartialType(CreateStudyDocDto) {}
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import express, { Request, NextFunction } from 'express' import * as authService from './../services/auth' // models import { IBaseResponse, TypedResponse } from '../models/http/response' import { AuthResponse } from './../models/http/response' const router = express.Router() const authenticate = (req: Request, res:...
import * as Errors from '../errors'; import * as bugsModel from '../bugs/model'; export interface TargetIds { [targetType: string]: { [userId: number]: number[]; }; } export function validateTargetIds(targetIds: TargetIds): Promise<void> { let ps = []; for (let targetType in targetIds) { let m; if...
// For lerna bootstrap to work export * from './src'
import { Module } from '@nestjs/common'; import { JogadoresController } from './jogadores.controller'; @Module({ controllers: [JogadoresController], }) export class JogadoresModule {}
import test from 'ava'; import style from '../../lib/system/style'; import '../browser'; test('generate scope', t => { t.is(style.generate('app'), 'data-r-app'); }); test.serial('stylesheet', t => { const sheet = style.stylesheet(); t.true(sheet instanceof CSSStyleSheet); }); test.serial('stylesheet with ref="...
import { SnackbarProvider } from 'notistack'; import React from 'react'; import { HashRouter as Router, Route, Switch } from 'react-router-dom'; import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles'; import routes from './constants/routes'; import BookPage from './pages/BookPage'; import BooksPage fr...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Line, Path } from 'react-native-svg'; import { IconProps } from '../lib'; function SelectionInverse(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} {...p...
import * as React from 'react'; export class User extends React.Component<any, any> { render() { return ( <div style={{ padding: '1em' }}> <h1>User</h1> </div> ); } }
import { Buffer } from 'buffer'; import { Long } from './long'; const PARSE_STRING_REGEXP = /^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/; const PARSE_INF_REGEXP = /^(\+|-)?(Infinity|inf)$/i; const PARSE_NAN_REGEXP = /^(\+|-)?NaN$/i; const EXPONENT_MAX = 6111; const EXPONENT_MIN = -6176; const EXPONENT_BIAS = 6176;...
import { describe, it } from 'mocha' import { getNews } from '../src/index' describe('#reptile.js', () => { it('test', async () => { const arr = await getNews(0, 5, 'announcement') console.log(arr) // fs.writeFileSync("./res.json",arr) }) })
import React, { ReactElement } from "react"; interface Props { background: string; } export default function Loader({ background }: Props): ReactElement { React.useEffect(() => { if (document.body) document.body.classList.add("hidden"); return () => { document.body.classList.remove("hidden"); };...
///<reference path="../../../headers/common.d.ts" /> import _ from 'lodash'; export class MysqlDatasource { id: any; name: any; /** @ngInject **/ constructor(instanceSettings, private backendSrv, private $q, private templateSrv) { this.name = instanceSettings.name; this.id = instanceSettings.id; } ...
import {Injectable} from '@angular/core'; import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http'; import {Observable} from 'rxjs'; import {AuthService} from "../../auth/auth.service"; import {environment} from "../../../environments/environment"; @Injectable() export class JwtInterce...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ selector: 'interest-options', templateUrl: './interest.options.component.html', styleUrls: ['./interest.options.component.css'] }) export class InterestOptionsComponent implements OnInit { @Input() options: string[]; ...
import { TrackerItem } from "./TrackerItem"; import { useState } from "react"; import Carousel from "../Generic/Carousel/Carousel"; export const InitativeTracker = ({items}: {items: ITrackerItem[]}) => { const [Index, setIndex] = useState(0) const [RoundNum, setRoundNum] = useState(1) function updateInde...
import { CONFIRMATION_LABELS, MyCompanyConfig } from '../models/index'; import { loginAsMyCompanyAdmin } from '../my-company.utils'; export function disableTest(config: MyCompanyConfig) { describe(`${config.name} Disable`, () => { let entityId: string; const codeRow = config.rows?.find((row) => row.useInUrl ...
export declare class FoodModule { }
import {useState} from "react"; /** * Change state toogle */ export default function useToggle() { const [active, setToggle] = useState<boolean>(false); const onToggle = () => setToggle((prevState) => !prevState); return { active, onToggle, }; }
import * as nedb from "@ungate/nedb-multi"; import ILocalDB from "@ungate/plugininf/lib/db/local/ILocalDB"; import { ICacheDb } from "@ungate/plugininf/lib/IAuthController"; import IGlobalObject from "@ungate/plugininf/lib/IGlobalObject"; import { IUserDbData } from "@ungate/plugininf/lib/ISession"; import * as path fr...
import * as chai from 'chai'; import { Client, TextChannel, User } from 'discord.js'; import * as path from 'path'; import * as sinon from 'sinon'; import * as sinonChai from 'sinon-chai'; import { Message } from 'yamdbf'; import * as command from '../../src/commands/useful/gif'; import { loadFixtures } from '../helpe...
/** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge...