text stringlengths 10 953k |
|---|
import Badge from './Badge.vue'
import { CodeGroup } from './CodeGroup'
import CodeGroupItem from './CodeGroupItem.vue'
export { Badge, CodeGroup, CodeGroupItem } |
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { compare, hash } from 'bcrypt';
import { SecurityConfig } from 'src/config/config.types';
@Injectable()
export class CryptService {
get bcryptSaltRounds(): string | number {
const securityConfig = this.configServ... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { NzModalRef, NzMessageService } from 'ng-zorro-antd';
import { _HttpClient } from '@delon/theme';
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
import { CacheService } from '@delon/cache';
import { zip } from 'rxjs';
@Component({
... |
export const environment = {
firebase: {
projectId: 'aopa-list',
appId: '1:831428521535:web:4da6ab2f09bf0f6b3e128a',
storageBucket: 'aopa-list.appspot.com',
apiKey: 'AIzaSyDQJ9OYHEfJ4VcxXwNyZnk7OpKYmk9HFm4',
authDomain: 'aopa-list.firebaseapp.com',
messagingSenderId: '831428521535',
measur... |
/**
* @license
* Copyright Google LLC 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 * as html from '../ml_parser/ast';
import { InterpolationConfig } from '../ml_parser/interpolation_config';
imp... |
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import ReactMarkdown from 'react-markdown';
import { Table, Button, Label } from 'semantic-ui-react';
import { History } from 'history';
import BN from 'bn.js';
import { Category, Thread, ThreadId, Post, PostId } from '@joystr... |
import { Box } from '@material-ui/core';
import { Link } from 'react-router-dom';
export default function DevNav() {
return (
<Box p={3} display="flex" flexDirection="column" alignItems="center">
<h1>You're in DevNav</h1>
{/* With react-router-dom it's not a good practive do don't use
<Link... |
/* eslint-disable react/prop-types, react/forbid-prop-types, react/jsx-filename-extension */
import React, { useState } from 'react';
import TextField, { TextFieldProps } from '@material-ui/core/TextField';
export type FormTextFieldProps = TextFieldProps & {
onPressEnter?: React.KeyboardEventHandler<HTMLDivElement> ... |
/**
* @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
*/
// Must be loaded before zone loads, so that zone can detect WTF.
import './wtf_mock';
import './test_fake_polyfill'... |
import React, { Component } from 'react';
import InputBox from './InputBox';
interface Props {
template: string;
value: string;
inputRegExp: RegExp;
password: boolean;
inputProps?: object;
handleOutputString: (output) => any;
}
interface State {
characterArray: string[];
}
class SingleInputGroup extend... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
export enum PARSE_EVENTS {
START = 'PARSE_START',
PARSED = 'PARSE_PARSED'
} |
/**
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 { SuperCli } from './cli';
import consola from 'consola';
export async function runCLI(
args: string[]
) {
try {
const cli = new SuperCli();
await cli.run(args);
} catch (err: any) {
consola.error(err);
process.exit(err.code || err.message);
}
} |
import {
EngineType,
IacFileData,
IacFileParsed,
} from '../../../../src/cli/commands/test/iac/local-execution/types';
import { IacProjectType } from '../../../../src/lib/iac/constants';
const kubernetesYamlFileContent = `
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
spec:
containers:
- name: whate... |
export const NUMBER_0 = 48
export const NUMBER_1 = 49
export const NUMBER_2 = 50
export const NUMBER_3 = 51
export const NUMBER_4 = 52
export const NUMBER_5 = 53
export const NUMBER_6 = 54
export const NUMBER_7 = 55
export const NUMBER_8 = 56
export const NUMBER_9 = 57
export const A = 65
export const B = 66
export con... |
import React from 'react';
import {
Switch,
Route,
Redirect,
BrowserRouter as Router,
} from 'react-router-dom';
import { Container } from '@chakra-ui/react';
import {
ApolloClient,
ApolloProvider,
InMemoryCache,
HttpLink,
} from '@apollo/client';
import DevelopersLoading from 'features/Developers/Deve... |
// Copyright 2022 The Kubermatic Kubernetes Platform contributors.
//
// 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 requir... |
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable @typescript-eslint/ban-types */
import React from 'react';
import styles from './treeTableHeader.css';
import { Column } from '../types';
export interface TreeTableHeaderProps<R> {
columns: Array<Column<R>>,
scrollPadding: number,
}
functio... |
import * as React from 'react';
export default class Hair13 extends React.Component {
static optionValue: string;
private mask1;
private mask2;
private mask3;
private mask4;
private path1;
private path2;
private path3;
private path4;
render(): JSX.Element;
} |
/**
* Returns an array of HTML elements located under the point specified by x, y.
* If the native elementsFromPoint function does not exist, a polyfill will be used.
*
* @param {number} x : X position
* @param {number} y : Y position
* @return {array} : Array of the elements under the point (x, y)
*/
export f... |
type HelloProps = {
message?: string,
};
const Hello: React.SFC<HelloProps> = ({ message }) => {
return <div>hello {message}</div>;
};
Hello.propTypes = {
message: React.PropTypes.string,
}; |
import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-dashboard',
templateUrl: 'register.component.html'
})
export class RegisterComponent {
constructor(private router: Router) { }
goLogin() {
this.router.navigate(['login']);
}
goDashboard() ... |
import { Component, OnInit, OnDestroy } from "@angular/core";
import { FormBuilder, FormGroup } from '@angular/forms';
import { CompanyReducers } from "@app/core/store/reducers/company.reducer";
import { DataStore } from "@app/core/store/app.store";
import { ChartOptions, ChartType, ChartDataSets } from "chart.js";
imp... |
/********************************************************************************
* Copyright (C) 2017 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* T... |
import { ComponentType, ReactNode } from 'react';
declare namespace PostPendingStatusCheck {
interface Props {
children: ReactNode;
}
}
declare const PostPendingStatusCheck: ComponentType<PostPendingStatusCheck.Props>;
export default PostPendingStatusCheck; |
import { Component, OnInit } from "@angular/core";
import { DataService } from "../../services/data.service";
import { Repos } from "../../repos";
@Component({
selector: "app-repo-card-details",
templateUrl: "./repo-card-details.component.html",
styleUrls: ["./repo-card-details.component.scss"]
})
export class ... |
export { default as DeviceIconName } from './DeviceIconName';
export { default as DeviceInfoCard } from './DeviceInfoCard';
export * from './StatusSelect';
export { default as StatusSelect } from './StatusSelect'; |
/** Version of the package */
export const VERSION = "0.0.0";
export const LICENSE = "MIT"; |
import { rAF, cAF } from '@tw-element/utils'
import { isFF } from '../utils'
import type { ComputedRef } from 'vue'
interface GridWheelState {
atXStartEdge: ComputedRef<boolean>
atXEndEdge: ComputedRef<boolean>
atYStartEdge: ComputedRef<boolean>
atYEndEdge: ComputedRef<boolean>
}
type GridWheelHandler = (x: ... |
import { camelCasify } from "../../../utils/string-manipulation";
export const getEntitySnippet: (name: string) => string = (name) => `
import { Column, Entity } from "typeorm";
import { Base } from "../../../../common/entities/base.entity";
@Entity()
export class ${name} extends Base {
id!: string & { __brand: "${... |
import { Router } from 'express';
import { AppUtil } from '../../utils';
import { router as FileRouter } from './file';
import { router as InfoRouter } from './info';
import { router as LogRouter } from './log';
import { router as TreeRouter } from './tree';
/** The Client router. */
const router = Router()
.use(... |
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import * as React from 'react'
type State = { imageData: ImageData, width: number, height: number }
function getExtend(aspectRatio: number, maxWidth: number,... |
import React from 'react';
import ReactMarkdown from 'react-markdown';
import { InlineCode } from '~/components/base/code';
import { UL, LI } from '~/components/base/list';
import { B, P } from '~/components/base/paragraph';
import { H2, H3Code, H4 } from '~/components/plugins/Headings';
import {
PropData,
TypeDec... |
import { AppState } from 'reducers';
const getSwap = (state: AppState) => state.swap;
export const getOrigin = (state: AppState) => getSwap(state).origin;
export const getPaymentAddress = (state: AppState) => getSwap(state).paymentAddress;
export const shouldDisplayLiteSend = (state: AppState) => getSwap(state).showLi... |
/*
* Copyright 2021 The Backstage Authors
*
* 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 ... |
export const appRoomsOtherIcon = {
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M25.142 2.74c.492.071.858.497.858 1v24.52c0 .503-.366.929-.858 1l-12 1.73a1.003 1.003 0 01-1.142-1V28H7.052A1.055 1.055 0 016 26.949V5.052c0-.58.473-1.053 1.052-1.053H12V2.01c0-.614.539-1.086 1.142-.999l12 1.... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
// /src/action/subject/materialiconstwotone/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgSubjectTwotone = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M14 17H4v2h10v-2zm6-8H4v2... |
type QueryParamValue = string | number | boolean;
/**
* A key value mapping for params, that should be appended to the url on a new connection.
*/
export interface QueryParams {
[key: string]: QueryParamValue;
}
/**
* Formats query params for the url.
*
* @param queryParams
* @returns the formatted query pa... |
import routes from './cities.routes';
import container from './cities.container';
export const citiesModule = {
routes,
container
}; |
// This exception filter should be used for every resolver
// e.g:
// @UseFilters(GqlResolverExceptionsFilter)
// export class AuthResolver {
// It logs the exception with context information like IP, Host, UserId
// It uses Winston directly to log the error
import { Catch, ArgumentsHost, Inject, HttpException } from ... |
export * from "./help";
export * from "./version"; |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import type { IControlType, IDictionary, IJodit } from '../../../types';
import { Config } from '.... |
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { TodoService } from 'src/app/services/todo-service';
import { Store } from '@ngrx/store';
import { User } from 'src/app/store/models/user.model';
import { GetUser } from 'src/app/store/actions/user.actions';
import { ToastService } from '... |
import { Subscription } from "rxjs/Subscription";
import { RxStore } from "./store";
export interface Stores {
[name: string]: RxStore<any>;
}
// tslint:disable-next-line:ban-types
const patch = (target: any, fnName: string, fn: Function) => {
const originalFn = target[fnName];
target[fnName] = function() {
... |
import styles from 'ansi-styles'
export function logTotalDeleted(outputDeletes, outputStales): string {
const totalDeleted = `${styles.bold.open}${styles.blueBright.open}Stale Branches Deleted${styles.blueBright.close}: [${styles.redBright.open}${outputDeletes}${styles.redBright.close}/${styles.yellowBright.open}${o... |
export function nullObj() {
const x = {};
(x as any).__proto__ = null;
(x as any).prototype = null;
return x;
} |
import { expect, haveResource } from '@aws-cdk/assert';
import ec2 = require('@aws-cdk/aws-ec2');
import events = require('@aws-cdk/aws-events');
import cdk = require('@aws-cdk/cdk');
import { Test } from 'nodeunit';
import ecs = require('../../lib');
export = {
"Can use EC2 taskdef as EventRule target"(test: Test) ... |
//
// DomainListRequest.ts
//
// Created by David Rowe on 28 Jul 2021.
// Copyright 2021 Vircadia contributors.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
import PacketType from "../udt/PacketHeaders";
import ... |
import { Injectable } from '@nestjs/common';
import { AuthyCreateUserResponseInterface } from './models/authy-create-user-response.interface';
import { AuthyVerifyOtpResponseInterface } from './models/authy-verify-otp-response.interface';
import { AuthyRequestOTPResponseInterface } from './models/authy-request-otp-res... |
/**
* Copyright 2018 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft Corporation.
*
* 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.or... |
import * as aws from 'aws-sdk';
import { Account } from '@aws-accelerator/common-outputs/src/accounts';
import { DynamoDB } from '@aws-accelerator/common/src/aws/dynamodb';
import { loadAccounts } from './utils/load-accounts';
interface AddRoleToKmsKeyInput {
roleName: string;
kmsKeyId: string;
parametersTableNa... |
import { FilierEntity } from "./../model/filiere.entity";
import { profile } from "node:console";
import { getRepository, getConnection } from "typeorm";
import { ProfilEntity } from "./../model/profil.entity";
import { ProfilDto } from "./../dto/profil.dto";
import { ProfilDao } from "./../dao/profil.dao";
import { Ht... |
// svg/account-arrow-right.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgAccountArrowRight = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xml... |
import Alert from "components/js/Alert";
import * as React from "react";
export interface IErrorBoundaryProps {
error?: Error;
children: React.ReactChildren | React.ReactNode | string;
}
interface IErrorBoundaryState {
error: Error | null;
errorInfo: React.ErrorInfo | null;
}
// TODO(andresmgot): This compon... |
'use strict'
import { Collection } from './collection'
import Queue from '@supercharge/queue-datastructure'
interface QueueItem {
/**
* Stores the parameter data for the collection method.
*/
data?: any
/**
* Identifies the collection method.
*/
method: string
/**
* Stores the user-land cal... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Unitedemiratecoin</source>
<translation>در مورد بیتکویین</transla... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { RouterModule } from '@angular/router';
import { HomeComponen... |
import React from 'react';
declare type NavItemProps = {
href: string;
id?: string;
className?: string;
external?: boolean;
children: React.ReactNode;
};
declare const NavItem: ({ id, href, children, className, external }: NavItemProps) => JSX.Element;
export default NavItem;
//# sourceMappingURL=Na... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export * from './create-host.dto';
export * from './update-host.dto'; |
import { Component, ViewChild, ElementRef } from '@angular/core';
import { jqxListBoxComponent } from '../../../../../jqwidgets-ts/angular_jqxlistbox';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
@ViewChild('selectionlog') selectionlog: ElementRe... |
/**
* @jest-environment jsdom
*/
import "../../__mocks__/game";
import "../../__mocks__/form-application";
import "../../__mocks__/application";
import "../../__mocks__/handlebars";
import "../../__mocks__/event";
import "../../__mocks__/crypto";
import "../../__mocks__/dialog";
import "../../__mocks__/hooks";
import... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
export * from "./resourcesFactory"; |
import { readPackageJson } from 'just-scripts-utils';
import path from 'path';
export function getAvailableStacks(rootPath: string) {
const packageJson = readPackageJson(rootPath);
if (!packageJson) {
throw new Error(`not able to read package.json from ${rootPath}`);
}
const stackDeps: { [key: string]: s... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
import { transformFunnel } from './funnel';
import { transformSingular } from './singular';
import { transformExtraction } from './extraction';
import { transformNominal } from './nominal';
import { transformChronologicalNominal } from './chronological-nominal';
import { transformChronological } from './chronological';... |
/*
* Copyright 2021 EPAM Systems
*
* 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 ... |
/**
* 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... |
import { TransactionService } from './../../../api/transaction-service';
import { TransactionFilter } from './../../../api/transaction-filter';
import { CryptocurrencyService, ETHEREUM } from './../../index';
import { HttpClient } from '@angular/common/http';
import { Transaction } from './../../../api/transaction';
c... |
export { AcrylicBlockCard } from 'tuya-panel-style-block-card';
export { AcrylicButton } from 'tuya-panel-style-button';
export { AcrylicDepictCard, AcrylicDepictIconCard } from 'tuya-panel-style-depict-card';
export { AcrylicDisplayCard } from 'tuya-panel-style-display-card';
export { DataItem, AcrylicEnumButtonGroup ... |
import { Component, OnInit } from '@angular/core';
import { first } from 'rxjs/operators';
import { User } from '../_models';
import { UserService } from '../_services';
@Component({ templateUrl: 'admin.component.html' })
export class AdminComponent implements OnInit {
users: User[] = [];
constructor(privat... |
import Grid from '@material-ui/core/Grid';
import React from 'react';
import ActivityContainer from '../Activity/Container';
import ApplicationsList from '../Applications/List';
function MainLayout() {
return (
<Grid container spacing={2} justify="center" alignItems="flex-start">
<Grid item xs={8}>
... |
/**
* @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
*/
export * from './testing/e2e_util'; |
import "@material/mwc-button";
import "@polymer/iron-icon/iron-icon";
import "@polymer/paper-card/paper-card";
import "@polymer/paper-tooltip/paper-tooltip";
import {
css,
CSSResult,
customElement,
html,
LitElement,
property,
TemplateResult,
} from "lit-element";
import { classMap } from "lit-html/directi... |
import React from 'react';
import type { Size, PrivateModalState, InitModalState, ActionTypes } from './interface';
export interface ModalsState {
modals: Record<string, PrivateModalState>;
maxZIndex: number;
minWidth: number;
minHeight: number;
windowSize: Size;
initialModalState: InitModalState;
}
expor... |
import {
getBroadcastable,
getUserProgram,
getSocialGroupProgram,
postEnqueteResult,
postEnquete,
deleteEnquete,
getExtension,
postExtension,
getOnairs,
putOperatorComment,
deleteOperatorComment,
getProgramSchedules,
getPrograminfo,
getProgramsCategories,
getProgramsSsng,
postProgramsSsn... |
import React, { useCallback } from 'react'
import Grid from '@material-ui/core/Grid'
import Button from '@material-ui/core/Button'
import TextField from '@material-ui/core/TextField'
import ButtonGroup from '@material-ui/core/ButtonGroup'
import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown'
import ClickAwa... |
import { useState } from "react";
/* import axios from "axios";
import qs from "qs";
import { CancelScheduleSend } from "@material-ui/icons"; */
import { useDispatch } from 'react-redux';
import { updateUser } from '../../../../store/action-creators/usercall'
export const useFormControls = (firstname:string, lastna... |
import * as inquirer from 'inquirer';
import * as fs from 'fs-extra';
import { checkAliInternal } from 'ice-npm-utils';
import { downloadAndGenerateProject, checkEmpty } from '@iceworks/generate-project';
// eslint-disable-next-line
const chalk = require('chalk');
interface ITemplate {
npmName: string;
descriptio... |
/*
Copyright 2017 Geoloep
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, software
distrib... |
import { handleActions, Action } from "redux-actions";
import {
FormModel,
FormPayload,
FormState,
} from "@models/form.model";
import {
ADD_NEW_INPUT_FIELD,
CREATE_NEW_FORM,
CLEAR_FORM,
ONBLUR_INPUT_FIELD,
ONCHANGE_INPUT_FIELD,
SUBMIT_FORM
} from "@store/types";
// UTILS
import addFormInput from "@re... |
import clipper from 'clipper-lib';
import { AccessTypes } from '../../../data/AccessTypes';
import { DataAccess } from '../../../data/DataAccess';
import { DataTree } from '../../../data/DataTree';
import { DataTypes } from '../../../data/DataTypes';
import { InputManager } from '../../../io/InputManager';
import { Out... |
import { Component } from '@angular/core';
import { MenuItem } from '@core/modelo/menu-item';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'app-base';
public companies: MenuItem[] = [
{ url: '/home', no... |
import { Rect } from '@shopify/javascript-utilities/geometry';
export type PreferredPosition = 'above' | 'below' | 'belowRight' | 'belowLeft' | 'left' | 'right' | 'mostSpace';
export type PreferredAlignment = 'left' | 'center' | 'right';
export interface Margins {
activator: number;
container: number;
horizonta... |
import { TypedUseSelectorHook, useSelector } from "react-redux";
import ReduxStateType from "./reduxState";
export const useTypedSelector: TypedUseSelectorHook<ReduxStateType> = useSelector; |
import { FastifyInstance, FastifyPluginOptions } from 'fastify'
import deleteTransactionRoute from './delete-transaction'
import getTransactionRoute from './get-transaction'
import postTransactionRoute from './post-transaction'
import postTransferTransactionRoute from './post-transfer-transaction'
export default asyn... |
import { TransactionInstruction } from "@solana/web3.js";
export const PROGRAM_IDS: string[] = [
"6RWe1TGwvojnbAynyWrHzm3GgHf7AmX7kLQTJG7vHCfb", // mainnet / testnet / devnet
"2n2dsFSgmPcZ8jkmBZLGUM2nzuFqcBGQ3JEEj6RJJcEg", // testnet - legacy
"9tdctNJuFsYZ6VrKfKEuwwbPp4SFdFw3jYBZU8QUtzeX", // testnet - legacy
... |
import {Canvas} from "./Canvas";
import QualityType from "../../visual/enum/QualityType";
import {Rectangle} from "../../data/Rectangle";
/**
* Creates a Canvas element of the given size.
*
* @class CanvasBuffer
* @param width {number} the width for the newly created canvas
* @param height {number} the height for... |
import type { Readable } from "stream";
import type { MoveOp, NewOp, Processor, RemoveOp } from "tree-diff";
export type TreeNode = BaseNode & (FileNode | FolderNode);
interface BaseNode {
type: string;
name: string;
}
interface FileNode {
type: "file";
sha1: string;
content: () => Promise<Readable>;
}
interface... |
import { Record } from './RecordWithLocation.model';
export class Consent extends Record {
public understoodSheet = true;
public questionsOpportunity = true;
public questionsAnswered = true;
public understandWithdrawal = true;
public understandCoding = true;
public secondary = {
agreeArchiving: true,
... |
import { IPayloadMessage } from '..';
export interface IStatusBarData extends IPayloadMessage {
uri?: string;
timeout?: number;
}; |
import {
IconButton,
ListItem,
ListItemAvatar,
ListItemSecondaryAction,
ListItemText,
} from '@material-ui/core';
import { Delete, DeleteForever } from '@material-ui/icons';
import { useRouter } from 'next/router';
import { FunctionComponent, MouseEventHandler } from 'react';
import { Link } from 'react-demo/... |
import { Request } from "./common";
export interface RemoteRequest extends Request {
application: string;
token: string;
args: any[];
} |
import { Component } from '@angular/core';
import { Day, CardService } from '../../card.service';
import { formatDate } from '@angular/common';
import { LocalDataSource } from 'ng2-smart-table';
import { CurrencyIndex } from '@angular/common/src/i18n/locale_data';
@Component({
selector: 'ngx-smart-table',
template... |
/**
* @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 {R3InjectorMetadataFacade, getCompilerFacade} from '../../compiler/compiler_facade';
import {resolveForwardRe... |
import { Pipe, PipeTransform } from '@angular/core';
import { timeAgo } from '../helpers';
@Pipe({
name: 'timeAgo'
})
export class TimeAgoPipe implements PipeTransform {
transform(value, args?): any {
let dateValue: Date;
if (typeof value === 'string') {
dateValue = new Date(Date.parse(value));
}... |
import Vue from 'vue';
import Vuex, {Module, StoreOptions} from 'vuex';
import createLogger from 'vuex/dist/logger';
import {auth, AuthState} from './modules/auth'
import {app} from "./modules/app/app";
import {dashboard} from "./modules/dashboard/dashboard";
Vue.use(Vuex);
export interface RootState {
version: stri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.