text
stringlengths
10
953k
export const environment = { PRODUCTION: true, GITHUB_GRAPHQL_API_ENDPOINT: 'https://api.github.com/graphql', PROTOCOL: 'http://', HOST: window.location.hostname, PORT: 3334, WS_PATH: 'subscriptions', GRAPHQL_PATH: 'graphql' };
import React from 'react'; import useMagic from 'utils/magic/useMagic'; import * as Styled from './style'; const MagicForeground = () => { const { src, alt } = useMagic({ placement: 'foreground' }); return( <Styled.MagicForeground role="img" aria-label={alt} backgroundSrc={src} /> ...
import * as application from "tns-core-modules/application"; import * as frame from "tns-core-modules/ui/frame"; import { Label } from "tns-core-modules/ui/label/"; import { Page } from "tns-core-modules/ui/page"; class ButtonHandler extends NSObject { public close(nativeButton: UIButton, nativeEvent: _UIEvent) { ...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' import {Provider as ReduxProvider} from 'react-redux' import {fireEvent, render} from '@testing-library/react' import configureStore from 'redux-mock-store' import '@testing-library...
/** * App.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Windows implementation of App API namespace. */ import { ComponentProvider } from 'react-native'; import { App as AppCommon } from '../native-common/App'; import { RootView, RootViewUsingProps } f...
import { Component } from '@angular/core'; @Component({ selector: 'sme-ng2-form-styles-button', templateUrl: './button-styles.component.html' }) export class ButtonStylesComponent { }
import React from 'react'; import { Button, Select, Progress } from 'antd'; import styled from 'styled-components'; import { DownloadOutlined } from '@ant-design/icons'; export const Container = styled.div` `; export const HeaderImage = styled.div` height: 400px; background-image: linear-gradient(rgba(0, 0...
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client"; import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p>You are not authorized to perform the action.</p> */ export interface AccessDeniedException extends __SmithyException, $Metad...
import {Component, EventEmitter, Input, OnChanges, OnDestroy, Output, SimpleChanges, ViewEncapsulation} from '@angular/core'; import {FormGroup} from '@angular/forms'; import {FormControlBase, MfForm, MfFormSection, MfFormStep} from '../../model/form-control-base'; import {FormControlService} from '../../service/form-...
import React from 'react'; import { Cascader } from 'antd'; import omit from 'rc-util/lib/omit'; function FcCascader(props) { props = omit(props, [ 'allowClear', 'bordered', 'fieldNames', 'popupPlacement', 'matchInputWidth', ]); return ( <> <Cascader {...props} /> </> ); } exp...
import { Component, Input } from '@angular/core'; import { icon } from './icon.type'; import { iconTypes } from './icon-types.const'; import { SizeDirective } from './size.directive'; @Component({ selector: 'icon[type]', templateUrl: './icon.component.html', styleUrls: ['./icon.component.scss'] }) export class I...
import axios from "axios"; import { AppError } from "../../common/error"; import { init } from "../../common/rest"; import { createSession, getConsumption } from "./ide.service"; jest.mock("axios"); beforeAll(() => { init(); }); const userData = { username: "test", password: "password", }; describe("createSes...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export type These<A, B> = { readonly type: "Left"; readonly left: A; } | { readonly type: "Right"; readonly right: B; } | { readonly type: "Both"; readonly left: A; readonly right: B; }; export function left<A>(left: A): These<A, never> { return { type: "Left", left }; } export function ri...
import React from 'react'; import styled from 'styled-components'; const SpinnerDiv = styled.div` width: 15px; height: 15px; transform: translateY(3px); margin-right: 10px; position: relative; float: left; .double-bounce1, .double-bounce2 { width: 100%; height: 100%; border-radius: 50%; ...
import ReactDOM from 'react-dom' import './App.css' import App from './App' import { BrowserRouter } from 'react-router-dom' ReactDOM.render( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById('root') )
export function isAsyncIterable<T extends AsyncIterable<unknown>>(source: T | unknown): source is T { if (source === null || source === undefined || typeof source !== "object") { return false; } return Symbol.asyncIterator in source; }
export interface IPermission { id?: string; grantedToIdentities: IPermissionIdentity[]; roles: string[]; } export interface IPermissionIdentity { application: IAzureApp } export interface ISharePointSite { displayName: string; id: string; } export interface IAzureApp { id?: string; //obje...
import axios from 'axios' const api = axios.create({ baseURL: 'http://localhost:8000/api' }) export default api
import {default as avatar} from '!!file-loader!../../../../../assets/images/avatar.jpg'; import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {Observable, of, Subject} from 'rxjs'; import {delay, filter, startWith, switchMap} from 'rxjs/operators'; import {changeDetection} from '....
/// <reference types="svelte" /> import { SvelteComponentTyped } from "svelte"; export interface Download_01Props extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["svg"]> { /** * Set a tabindex value */ tabindex?: string; /** * Set a custom SVG fill color * @default "currentColor" */ f...
import '@lixi/components/base/style/css' import '@lixi/theme-chalk/el-popconfirm.css' import '@lixi/components/popover/style/css'
import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { HttpBackendAdapter } from '../'; /** * An angular implementation of {@link HttpBackendAdapter} using {@link HttpClient} as a backend. */ export class AngularHttpBackendAdap...
/** * @description 场景interface * @author hsky */ import { DialogType } from './dialogType.enum'; export interface Scene { /** * @description 场景的id */ id: number; /** * @description 场景组 */ group: string; /** * @description 场景唯一id,用于关联使用 */ uuid: string; /** ...
import { NavigationContainer, DefaultTheme, DarkTheme, } from "@react-navigation/native"; import { createStackNavigator } from "@react-navigation/stack"; import * as React from "react"; import { ColorSchemeName } from "react-native"; import { Provider as PaperProvider } from "react-native-paper"; import NotFound...
export * from './IAmazonInstance'; export * from './IAmazonLoadBalancer'; export * from './IAmazonLoadBalancerSourceData'; export * from './IAmazonHealth'; export * from './IAmazonScalingPolicy'; export * from './IAmazonServerGroup'; export * from './IKeyPair'; export * from './IScalingPolicy'; export * from './ITarget...
import { some } from "lodash"; import { NodeSelection, TextSelection } from "prosemirror-state"; import { CellSelection } from "prosemirror-tables"; import { EditorView } from "prosemirror-view"; import * as React from "react"; import createAndInsertLink from "@shared/editor/commands/createAndInsertLink"; import { Comm...
// eslint-disable-next-line no-use-before-define import React, {useState} from 'react' import { RecorderProps } from '../types' export function RecorderUI (props: RecorderProps) { const [toggleExpander, setToggleExpander] = useState<boolean>(false) const triggerRecordButton = () => { props.storeScenario(props....
import { ICreateIncidentDTO } from '@modules/incidents/dtos/ICreateIncidentDTO'; import { IIncidentsRepository } from '@modules/incidents/repositories/IIncidentsRepository'; import { inject, injectable } from 'tsyringe'; import { AppError } from '@shared/errors/AppError'; @injectable() class CreateIncidentUseCase { ...
import defaultTheme, { commonColorsPalette } from './default'; import { GrafanaThemeType, GrafanaTheme } from '@grafana/data'; const basicColors = { ...commonColorsPalette, black: '#000000', white: '#ffffff', dark1: '#1e2028', dark2: '#41444b', dark3: '#303133', // not used in light theme dark4: '#35373f...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { PluginContext, SystemError, UserError } from "@microsoft/teamsfx-api"; import { Constants } from "./../constants"; import { GLOBAL_CONFIG, REMOTE_TEAMS_APP_ID, PluginNames, } from "../../../solution/fx-solution/constants"; expor...
import { Argv } from 'yargs'; import { Platform } from 'ern-core'; import { epilog, tryCatchWrap } from '../../lib'; export const command = 'uninstall <version>'; export const desc = 'Uninstall a given platform version'; export const builder = (argv: Argv) => { return argv.epilog(epilog(exports)); }; export const ...
import type { RGB } from './helpers-and-types'; export const getLuminance = (rgb: RGB) => (Math.max(...rgb) + Math.min(...rgb)) / 2 / 255; export function getHue([r, g, b]: RGB) { [r, g, b] = [r, g, b].map(x => x / 255); if (r === g && r === b) return 0; let h = 0; if (r >= g && g >= b) { h = (g - b) / ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// SPDX-License-Identifier: MIT // 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, publish, distribut...
import React, { useState, useEffect, useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import { Header, DataView, IdentityBadge, Button, } from '@aragon/ui'; import { useOptions } from '../../hooks' import { Comment, CheckBox, GoToUniswapButton, GoToBalancerButton } from '../common'; import ...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {CPUGadgetComponent} from './cpu/cpu-gadget.component'; import {CPUMGadgetComponent} from './cpum/cpum-gadget.component'; import {DiskGadgetComponent} from './disk/disk-gadget.component'; import {MemoryGadgetComponent} from './...
import { Context } from 'react' import { useContext } from 'react' export function useNonNullableContext<T>(context: Context<T | null>) { const store = useContext(context) if (store === null) { throw new Error('Store cannot be null, please add a context provider') } return store }
import { Injectable } from '@angular/core'; import { DayItem, MonthItem, YearItem, DecadeItem } from './calendar-item.class'; import { ALuDateAdapter } from '@lucca-front/ng/core'; @Injectable() export class LuCalendarItemFactory<D> { constructor( private _adapter: ALuDateAdapter<D>, ) {} forgeDay(d: D, format = ...
namespace ws2812b { //% shim=sendBufferAsm export function sendBuffer(buf: Buffer, pin: DigitalPin) { } }
<TS language="zh_TW" 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</source> <translation>建立新的位址</translation>...
import tap from "tap"; // import { cookieAggregator } from "./index"; tap.test("Cookie Aggregation", (t) => { t.end(); });
import { expect } from "chai"; import { GetExchangeRates } from "../../src/methods/GetExchangeRates" describe('methods', function() { it('getExchangeRates', function() { let obj = new GetExchangeRates() expect(obj.getParams()).deep.equal({}) expect(obj.getSource("https://test").toString())....
import { IOptionWatchersAware, OptionWatchersAware } from "./OptionWatchersAware"; import { ILink, OptionLinksStorage } from "./OptionLinksStorage"; import { IOptionWatcherEvent } from "./OptionWatcherEvent"; import { IOptionContextRoot } from "./OptionContextRoot"; import { IOptionContext } from "./OptionContext"; imp...
import {getModelForClass, modelOptions, prop} from '@typegoose/typegoose'; @modelOptions({options: {allowMixed: 0}}) export class Invite { /** * The invite code. */ @prop() _id: string; /** * The user who created the invite. */ @prop() createdBy: { username: string; uuid: string; }; ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SharedModule } from '../../../@shared/shared.module'; import { TextComponent } from './text.component'; import { TextFormComponent } from './form/form.component'; @NgModule({ imports: [ CommonModule, SharedMod...
import * as React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import TableRow from '../../../../react/nodes/tableRow'; describe('Renderer - React/Nodes/TableRow', () => { const tableRow = shallow(<TableRow />); it('should create a <tr>-tag', () => { expect(tableRow.name()).t...
export * from './controller/stripe-charge.controller'; export * from './service/stripe-charge.service'; export * from './repository/stripe-charge.repository'; export * from './model';
import { getPlugin, getPromise, cordovaWarn, pluginWarn } from './util'; import { checkReady } from './bootstrap'; import { CordovaOptions } from './decorators'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; checkReady(); // declare const window; // declare var Promise; expor...
import fetch from 'unfetch' import { version } from '../../generated/version' import { getVersionType } from '../../plugins/segmentio/normalize' export interface MetricsOptions { host?: string sampleRate?: number flushTimer?: number maxQueueSize?: number } type Metric = { type: 'Counter'; metric: string; valu...
import {GraphEdge, GraphNode, GraphTopic} from './__types__/GraphElements' import type {Node, PubSub} from './__types__/RosEntities' import type {TopicHelper, TopicHelperMap} from './__types__/TopicHelper' export default function toGraph(nodes: Node[], publishers: PubSub[], subscriptions: PubSub[]) { // make nodes ...
import { Component, Input, OnInit, ViewChild } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { MatDialogRef } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; import { TranslateService } from '@ngx-translate/core'; import { StatusCodes } from 'http-st...
import { Directive, ElementRef, Input, OnChanges, SimpleChanges } from "@angular/core"; @Directive({ selector: '[externalLink]' }) export class ExternalLinkDirective implements OnChanges { @Input() link: string constructor(private el: ElementRef) { } ngOnChanges(changes: SimpleChanges): void { console...
import React, { useState } from "react" import { Container, Collapse, Switch, FormControlLabel, Typography, Grid, } from "@material-ui/core" import books from "../lists/booklist" import Book from "../Book" type Books = JSX.Element[]; export default function ReadingList() { const [booksRead, toggleBooksR...
// Huge bastardization of ant design's Transfer component import React from 'react'; import { connect } from 'react-redux'; import { Form, Input, Button, Icon, Drawer, message } from 'antd'; import { updateNodeUrl, updateMacaroons } from 'modules/node/actions'; import { changePassword } from 'modules/crypto/actions'; i...
import React from 'react' const Keycap6 = ({ size, rem }: { size: number | string, rem?: boolean }) => { const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px` return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style={{ width: width }}><path fill="#3B88C3" d="...
import { M } from './protocol'; export class BeanstalkError extends Error { constructor(msg: string, readonly code: M) { super(`[${code}] ${msg}`); } } export class BeanstalkClientError extends Error { constructor(msg: string, readonly data?: { id: number }) { super(msg); } }
import Axios, { AxiosRequestConfig } from 'axios'; import { ENV } from '@waldur/configs/default'; import { get, getAll, getById, post, sendForm, getList, getFirst, patch, deleteById, getSelectData, parseResultCount, put, } from '@waldur/core/api'; import { SubmitCartRequest } from '@waldur/mark...
/** * Created by ahsanayaz on 08/11/2016. */ export class ReTree { constructor() { } public test(string: string , regex: any): any { let self = this; if (typeof regex === 'string') { regex = new RegExp(regex); } if (regex instanceof RegExp) { re...
import * as ClassNames from 'classnames'; import * as PropTypes from 'prop-types'; import * as React from 'react'; import {bulma as NavbarStyle, HTMLAllAttributes, HTMLComponent} from "../../"; export interface NavbarItemProps extends HTMLAllAttributes { isActive?: boolean; isHoverable?: boolean; hasDropdo...
import { includes } from 'lodash'; import { Address } from '../../../address'; import BillingAddress from '../../../billing/billing-address'; import { CheckoutStore, InternalCheckoutSelectors } from '../../../checkout'; import { InvalidArgumentError, MissingDataError, MissingDataErrorType, NotInitializ...
import * as React from 'react'; import { Link } from 'react-router-dom'; import { config } from '../../config'; import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { CustomTextbox } from '../../Components/CustomTextbox'; import AlertMessage from '../../Components/AlertMessage'; import {RestS...
import { $, NodeInterface, ListPlugin, CARD_KEY, SchemaBlock, isEngine, PluginEntry, PluginOptions, decodeCardValue, CARD_VALUE_KEY, } from '@aomao/engine'; import CheckboxComponent, { CheckboxValue } from './checkbox'; import './index.css'; export interface TasklistOptions extends PluginOptions { hotkey?: ...
import { element, state, render } from '@mkenzo_8/puffin' import { Button } from '@mkenzo_8/puffin-drac' import { css as style } from 'emotion' import { Terminal } from 'xterm' import { FitAddon } from 'xterm-addon-fit' import * as XtermWebfont from 'xterm-webfont' import { getProperty, ThemeProvider } from 'ThemeProvi...
import * as React from 'react'; import { StyledIconProps } from '../../StyledIconBase'; export declare const ReduxDimensions: { height: number; width: number; };
import { isEqualWith } from "./index"; export = isEqualWith;
export { EuiRadio, EuiRadioProps } from './radio'; export { EuiRadioGroup, EuiRadioGroupProps, EuiRadioGroupOption, EuiRadioGroupChangeCallback, } from './radio_group';
import { RootState } from "../../store"; import type { SelectItem } from "~/types"; const getCurrencyItems = ({ bankPartners }: RootState): SelectItem[] => bankPartners?.currencies ? bankPartners.currencies .map((currency) => ({ value: currency, text: currency, })) .sort((a: SelectItem, b: Sel...
import * as vscode from "vscode"; import * as path from "path"; const extName=require("@/../package.json") export class Constants { public static CONFIG_PREFIX = "database-client" public static CDN_VERSION = "4.2.1" public static RES_PATH = path.join(vscode.extensions.getExtension(`${extName.publisher}.${...
import * as React from 'react' import { CaseStudyPage, CaseStudyRequestDemoForm, InContentBlockquote } from '../../components/content/CaseStudyPage' import { ContentSection } from '../../components/content/ContentSection' import Layout from '../../components/Layout' export default ((props: any) => ( <Layout ...
import { NextApiRequest, NextApiResponse } from 'next' import { clearFileCache } from '../../utils/initial-props/fileCache' export default function clearCache(_req: NextApiRequest, res: NextApiResponse) { clearFileCache() res.status(200).json({ message: 'Cache flushed' }) }
import {BrowserModule} from '@angular/platform-browser'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {NgModule} from '@angular/core'; import {LocationStrategy, PathLocationStrategy} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {RouterModule} from '@...
/** * This is an autogenerated file created by the Stencil build process. * It contains typing information for all components that exist in this project * and imports for stencil collections that might be configured in your stencil.config.js file */ import { MdcButtonComponent as OMdcButton } from './components...
import { linearPolynomial } from '../polynomial'; const testCases: [number[], number[], number][] = [ [[0, 0, 0], [0, 0], 0], [[0, 0, 0], [1, 2], 0], [[1, 1, 1], [1, 2], 4], [[1, 2, 3], [4, 5], 17], [[1, 2, 3], [0, 0], 3], ]; describe('polynomial', () => { it('should calculate polynomial correctly', () =>...
module RongIMLib { export class PollingTransportation implements Transportation { empty: Function = new Function; queue: Array<any>; sendxhr: any; xhr: any; socket: Socket; url: string; connected: boolean = false; pid: string = +new Date + Math.random(...
export function helloWorld(): string { return 'No! This is hell world.'; }
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { delay, operationOptionsToRequestOptionsBase } from "@azure/core-http"; import { Poller, PollOperation } from "@azure/core-lro"; import { CanonicalCode } from "@opentelemetry/api"; import { VoidResponse } from "../../common/models"; imp...
import React, { FunctionComponent } from "react"; import styles from "./TimelineEventComponent.module.css"; interface ITimelineEventComponentProps { isLeft: boolean; cardHeading: string; } export const TimelineEventComponent: FunctionComponent<ITimelineEventComponentProps> = ( props ) => { return ( <div ...
import type { Model, ModelComposition } from '../types'; import type { OpenApi, OpenApiSchema } from '../OpenApi'; import type { getModel } from './getModel'; import { getModelProperties } from './getModelProperties'; import { getRequiredPropertiesFromComposition } from './getRequiredPropertiesFromComposition'; // Fix...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ApplicationInitStatus, CompilerOptions, Component, Directive, InjectionToken, Injector, ModuleWithComponentF...
// @ts-nocheck import Lscache from "lscache" import React, { useEffect, useState } from "react" import { text, themeSettings } from "../../lib/settings" import CheckoutStepContacts from "./stepContacts" import CheckoutStepPayment from "./stepPayment" import CheckoutStepShipping from "./stepShipping" const CheckoutForm...
const BigNumber = require('bignumber.js'); export const BIG6 = new BigNumber("1e6"); export const BIG12 = new BigNumber("1e12"); export const BIG18 = new BigNumber("1e18"); export const ONE_E18 = 10**18; // For getPastLogs export const PAST_LOGS_BATCH_SIZE = 10000; // FXS contract created in block 11465584 export co...
import {IsNotEmpty,IsBoolean,IsNumber,IsOptional} from 'class-validator' export class UpdateValueDto{ // @IsBoolean() @IsNotEmpty() is_on:boolean // @IsNumber() @IsOptional() current_value:number }
import type Logo from "./Logo" export type { Logo }
/* * Licensed to the Kassenärztliche Bundesvereinigung (KBV) (c) 2020 - 2021 under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The KBV licenses this file * to you under the Apache License, Version 2....
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { Routes, RouterModule } from '@angular/router'; import { HttpClientModule } from '@angular/common/http'; i...
import {createQuery, types, field, inlineFragment} from './src' const queryField = field( 'post', [ 'id', 'title', 'text', field('author', ['name', 'email']), inlineFragment('ExtendedPest', ['ex', 'info']) ], {id: 'postid'} ); const query = createQuery(queryField, { postid: types.id.notN...
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { AnswerModule } from './answer/answer.module'; import { QuestionModule } from './question/question.module'; import { SurveyModule } from './survey/survey.module'; @Module({ i...
import React from "react"; import { Link } from "react-router-dom"; import { cards } from "../links"; export default function App() { return ( <div className="row mt-5"> {cards.map((item: any, index: number) => { return ( <div className="col-md-4" key={index}...
import React from 'react'; import { useAsync } from 'react-use'; import { RawItem, RawProduct } from '../../../store/types'; import Fetch from '../../../service/Fetch'; import constate from 'constate'; const useDetail = ({productId})=>{ const state = useAsync(async ()=>{ const res = await Fetch.get<{ b...
/* * This is a TypeScript port of the original Java version, which was written by * Gil Tene as described in * https://github.com/HdrHistogram/HdrHistogram * and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ import ByteBuffer from "./ByteBuffer"; import { Ab...
import { AfterViewInit, ChangeDetectorRef, Component, ComponentFactoryResolver, ComponentRef, Inject, OnDestroy, ViewChild, ViewContainerRef, } from '@angular/core' import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog' import { Subscription } from 'rxjs' import { DialogSize } from '...
import { readCount } from "./read/readCount.ts";
import { NIL, OrNil } from '@flex-development/tutils' import { createParamDecorator, ExecutionContext } from '@nestjs/common' import { CsrfTokenFn } from '@sneusers/types' import { Request } from 'express' /** * @file Decorators - CsrfToken * @module sneusers/decorators/CsrfToken */ /** * Retrieves the `csrfToken...
import { ApiProperty, PickType } from "@nestjs/swagger"; import { CreateUserDto } from "./create-user.dto"; export class LoginInputUserDto extends PickType(CreateUserDto, ['username', 'password'] as const) {}
import { Component } from '@angular/core'; import { Observable } from 'rxjs'; import { OverviewProvider } from '../../core/providers/overview'; import { AchievementAndProgress } from '../../core/providers/provider-classes'; @Component({ selector: 'nextup-achmt', templateUrl: 'nextup-achmt.html' }) export class...
import { PointChromosome } from "./PointChromosome"; export class BitChromosomeConverter { private maxBitsPerProperty = 9; private getIntFromBitArray(input: number[]) { let result = 0; for (let i = 0; i < input.length; i++) { if (input[i] === 1) { result += Math.pow(2, input.length - i - 1); ...
import { Controller, Get, Put, Post, Delete, Body, Param, ParseIntPipe, } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { CategoryService } from '../services/category.service'; import { CreateCategoryDto, UpdateCategoryDto } from '../dtos/category.dtos'; @ApiTags('categories...
export const config = { app: { port: 3000, }, db: { host: 'localhost', port: 27017, name: 'cars', }, };