text stringlengths 10 953k |
|---|
import { Component } from '@angular/core';
import { map } from 'rxjs/operators';
import { Breakpoints, BreakpointObserver } from '@angular/cdk/layout';
import { Observable } from 'rxjs';
// Services
import { WindowService } from './services/window/window.service';
@Component({
selector: 'app-root',
templateUrl: '... |
import {
DragObjectWithType,
DropTargetMonitor,
DropTargetHookSpec,
} from '../../interfaces'
import { useEffect, useMemo, MutableRefObject } from 'react'
import { DropTarget } from 'dnd-core'
import { registerTarget } from '../../common/registration'
import { useDragDropManager } from './useDragDropManager'
import ... |
export enum Side {
left = 0,
top = 1,
right = 2,
bottom = 3,
};
export enum Direction {
left = 0,
up = 1,
right = 2,
down = 3
};
export enum Facing {
left = 0,
right = 1
}
export enum Axis {
x = 0, y = 1
}
export const SIDE_MASK = {
left: 1,
top: 2,
right: 4,
bottom: 8
};
export class... |
import { CadastrarAvisosComponent } from './cadastrar-avisos/cadastrar-avisos.component';
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
impo... |
import { id } from "./id"
import { Meta } from "./Meta"
import { uri } from "./uri"
import { Element } from "./Element"
import { code } from "./code"
import { Narrative } from "./Narrative"
import { ResourceList } from "./ResourceList"
import { Extension } from "./Extension"
import { Identifier } from "./Identifier"
im... |
import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable";
import {
css,
CSSResult,
html,
LitElement,
property,
TemplateResult,
} from "lit-element";
import "../../../components/dialog/ha-paper-dialog";
import {
domainToName,
fetchIntegrationManifest,
integrationIssuesUrl,
IntegrationManifes... |
import { parse } from "path";
import computeCRC from "./crc";
/*
BR Code Generation Manual Available at:
https://www.bcb.gov.br/content/estabilidadefinanceira/forumpireunioes/AnexoI-PadroesParaIniciacaodoPix.pdf
*/
function addLeftZero(value: number): string | number {
return value < 10 ? `0${value}` : value;
}
fu... |
import React from "react"
import styles from "./style.module.scss"
const Icons: React.FC<{ name: keyof typeof styles }> = props => {
return <i className={`${styles[props.name]} ${styles.icon}`}></i>
}
export type IconNames = Exclude<keyof typeof styles, "icon">
export default Icons |
import React, { ReactElement, useEffect, useState } from 'react'
import { ChartData, ChartOptions } from 'chart.js'
import { Bar, Line } from 'react-chartjs-2'
import Loader from '@shared/atoms/Loader'
import { useUserPreferences } from '@context/UserPreferences'
import useDarkMode from 'use-dark-mode'
import { darkMod... |
import { Component } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'home',
templateUrl: './home.component.html',
styleUrls: ['./../../app.component.css']
})
export class HomeComponent {} |
import React, { memo, ComponentType, useCallback, useState, useMemo } from 'react';
import cc from 'classcat';
import shallow from 'zustand/shallow';
import { useStore, useStoreApi } from '../../store';
import { Edge, EdgeProps, WrapEdgeProps, ReactFlowState, Connection } from '../../types';
import { onMouseDown } fro... |
export * from './ACellTableSection';
export { default as MultiTableRowRenderer } from './MultiTableRowRenderer';
export * from './MultiTableRowRenderer'; |
class EffectLayerErase extends Effect {
private onComPlete: boolean = false;
public constructor(x: number, y: number, color: number) {
super();
this.endCnt = 40;
this.x = x;
this.y = y;
this.color = color;
this.drawBorderRect(0, 0, 120, 120, 10, this.color);
this.x = x + (this.width >> 1);
this.y = y ... |
var passiveEventsResult: boolean | undefined // eslint-disable-line no-var
export function passiveEvents(): boolean {
if (passiveEventsResult !== undefined) {
return passiveEventsResult
}
passiveEventsResult = false
try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const opt... |
import { PropsWithChildren, useEffect } from 'react'
import styled, { css } from 'styled-components'
import { MarginPadding } from '../../commons'
import { paddingMixin, layeringMixin, LayeringMixinProps } from '../../mixins'
import { useImageState } from './context'
type OverlayType = 'gradient' | 'dark'
const Ove... |
import React from "react";
import { Tooltip, TooltipPosition, Button } from "@patternfly/react-core";
import {
SearchPlusIcon,
SearchIcon,
HandPaperIcon,
AdjustIcon,
BurnIcon,
RedoIcon,
BarsIcon,
EditIcon,
InfoCircleIcon,
} from "@patternfly/react-icons";
import "./DcmHeader.scss";
interface DicomHe... |
import { Application, NextFunction, Request, Response } from 'express';
import Log from '../utils/log';
import Output, { Status } from './output';
export default class Exception {
public static load(application: Application): void {
application.use((req: Request, res: Response) => {
res.status(404);
... |
/* import {GetData_Options} from 'vwebapp-framework';
import { ViewedNodeSet } from './userViewedNodes/@ViewedNodeSet';
export function GetUserViewedNodes(userID: string, options?: GetData_Options) {
if (userID == null) return null;
return GetData(options, 'userViewedNodes', userID) as ViewedNodeSet;
} */ |
import fs = require('fs');
import os = require('os');
import assert = require('assert');
import path = require('path');
import * as ttm from 'azure-pipelines-task-lib/mock-test';
const isWin = os.type().match(/^Win/);
describe('GruntV0 Suite', function () {
this.timeout(parseInt(process.env.TASK_TEST_TIMEOUT) || ... |
import { useState } from 'react';
import '../styles/tasklist.scss';
import { FiTrash, FiCheckSquare } from 'react-icons/fi';
interface Task {
id: number;
title: string;
isComplete: boolean;
}
export function TaskList() {
const [tasks, setTasks] = useState<Task[]>([]);
const [newTaskTitle, setNewTaskTitle]... |
version https://git-lfs.github.com/spec/v1
oid sha256:4af6a662acfc5ac4d83b4174e6c45e9cfe2db079eaf5e2f4f80e9c56d168f556
size 335392 |
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* 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, inclu... |
import {
Context,
} from '@vue-storefront/core';
import { Category } from '@vue-storefront/magento-api';
import { UseCategorySearchFactory, useCategorySearchFactory } from '../../factories/useCategorySearchFactory';
import { UseCategorySearch } from '../../types/composables';
const factoryParams: UseCategorySearchFa... |
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, ReactiveFormsModule],
providers: [],
boo... |
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
import { GetApnsSandboxChannelRequest, GetApnsSandboxChannelResponse } from "../models/index";
import {
deserializeAws_restJson1GetApnsSandboxChannelCommand,
serializeAws_restJson1GetApnsSandboxChannelCommand,
}... |
/* eslint-disable */
import { ObjectIdentifier as _OID, OBJECT_IDENTIFIER } from "asn1-ts";
import { ecdsa_with_Specified } from "../ANSI-X9-62/ecdsa-with-Specified.va";
export { ecdsa_with_Specified } from "../ANSI-X9-62/ecdsa-with-Specified.va";
/* START_OF_SYMBOL_DEFINITION ecdsa_with_Sha512 */
/**
* @summary ecds... |
import { Tag } from './hierarkiAvTags';
export const visningsnavnForRegistrering: Partial<Record<Tag, string>> = {
[Tag.TilretteleggingArbeidstid]: 'arbeidstid',
[Tag.TilretteleggingFysisk]: 'fysisk tilrettelegging',
[Tag.TilretteleggingArbeidshverdagen]: 'arbeidshverdagen',
[Tag.TilretteleggingGrunnle... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { Subscription } from 'rxjs';
import { NgbModal, ModalDismissReasons } from '@ng-bootstrap/ng-bootstrap';
import { Router } from '@angular/router';
import { viewAttached } from '@angular/core/src/render3/instructions';
import { ToastrService } from 'n... |
import { Event, StateValue, ActionType, Action, EventObject, StateInterface, PropertyMapper, Mapper, EventType, HistoryValue, OmniEventObject, AssignAction, ActionObject } from './types';
import { State } from './State';
export declare function keys<T extends object>(value: T): Array<keyof T & string>;
export declare f... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
*
* SmartAngular
* Template Angular Project
* Licensed under: see LICENSE
*
* Copyright (c) 2022 Alessio Saltarin
*
*/
import { TestBed } from '@angular/core/testing';
import { WeatherService } from './weather.service';
import { HttpClientModule } from '@angular/common/http';
describe('WeatherServ... |
import * as crypto from 'crypto';
import { Block } from './Block';
import { Transaction } from './Transaction';
// The blockchain
class PrivateChain {
chain: Block[] = [];
// Most recent block
get lastBlock() {
return this.chain[this.chain.length - 1];
}
// Proof of work system
mine(nonce: number) {
... |
import {WindowsAutopilotDeviceIdentity} from './index';
import {ParseNode} from '@microsoft/kiota-abstractions';
export function createWindowsAutopilotDeviceIdentityFromDiscriminatorValue(parseNode: ParseNode | undefined) : WindowsAutopilotDeviceIdentity {
if(!parseNode) throw new Error("parseNode cannot be undefi... |
import { FormEvent, useState } from 'react'
import Modal from 'react-modal'
import { useTransactions } from '../../hooks/useTransactions'
import incomeImg from '../../assets/income.svg'
import outcomeImg from '../../assets/outcome.svg'
import closeImg from '../../assets/close.svg'
import { Container, RadioBox, Trans... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'app-with-appshell';
} |
import { TypeOfYTS, YupTS } from "@neufund/shared-modules";
export type TRefundAdditionalData = {
etoId: string;
tokenName: string;
tokenSymbol: string;
amountEth: string;
amountEurUlps: string;
costUlps: string;
costEur: string;
companyName: string;
tokenDecimals: number;
};
export const InvestorRef... |
// Copyright 2019 The Oppia Authors. 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
import React from 'react';
import { ButtonGroup, Button } from '@contentful/f36-components';
export default function ButtonGroupSpacedExample() {
return (
<ButtonGroup variant="spaced" spacing="spacingM">
<Button variant="secondary" size="small">
Duplicate
</Button>
<Button variant="sec... |
import jwt from 'jsonwebtoken';
import phin from 'phin';
import uid from 'uid';
import User from './types/user';
import APIError from './errors/api';
import Guild from './types/guild';
import Connection from './types/connection';
import Collection from '@discordjs/collection';
export type Scope = 'bot' | 'connections'... |
import { DataProvider } from '../ojdataprovider';
import { JetElement, JetSettableProperties, JetElementCustomEvent, JetSetPropertyType } from '..';
export interface ojMenuSelectMany extends JetElement<ojMenuSelectManySettableProperties> {
disabled: boolean;
options: ojMenuSelectMany.Option[] | DataProvider<any... |
interface IClear {
clear(): void;
readonly isValid: boolean;
}
class ClearBase implements IClear {
public constructor() {
this.initializeClearValues();
}
private initializeClearValues(): void {
this._valid = true;
}
public clear(): void {
if (!this._valid) {
throw new Error("Call clear on an invalid ... |
import Option from './option';
import Rule from './rule';
/** 规则类型 */
declare type RuleType = 'required' | 'string' | 'number' | 'phone';
/**
* 生成规则
*
* @param ruleType 规则类型
* @param option 校验项
*/
export default function generate(ruleType: RuleType, option: Option): Rule[];
export {};
//# sourceMappingURL=generate... |
export function useComponent(importFrom: string): (props: any) => any {
return new Component(importFrom) as any;
}
export class Component {
constructor(public readonly importFrom: string) {
}
} |
import { SortableSpec } from '@ng-dnd/sortable';
import { Card } from 'ptcg-server';
export const HandCardType = 'HAND_CARD';
export interface HandItem {
card: Card;
index: number;
scanUrl: string;
spec?: SortableSpec<HandItem, any>;
} |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {Provider} from 'react-redux';
import configureStore from 'redux-mock-store';
import {mountWithIntl} from 'tests/helpers/intl-test-helper';
import InviteMembersButton fro... |
import Home from './views/Home.vue';
import Detail from './views/Detail.vue';
import Signin from './views/Signin.vue';
import Signup from './views/Signup.vue';
import Writer from './views/Writer.vue';
import User from './views/User.vue';
export {
Home,
Detail,
Signin,
Signup,
Writer,
User,
}; |
import * as React from 'react';
import TestRenderer from 'react-test-renderer';
import Input from '../../hostComponents/Input';
describe('Input', () => {
it('render correctly', () => {
const tree = TestRenderer.create(<Input value="" type="text" />).toJSON();
expect(tree).toMatchSnapshot();
});
}); |
import { createAction } from "redux-starter-kit";
import { Access } from "vsls";
import {
IActiveSession,
IMember,
IMemberStatus,
ISession,
ISpace,
SessionType
} from "./model";
export const ACTION_JOIN_SPACE = "JOIN_SPACE";
export const ACTION_JOIN_SPACE_COMPLETED = "JOIN_SPACE_COMPLETED";
export const AC... |
import { EventFormat, registerRemoteEventNames, ScriptRemoteType, TaskType } from "app/types";
import { BrowserWindow, App, Dialog } from "electron";
const { ipcRenderer } = require("electron");
const uuid = require("uuid");
const randomUUID = () => uuid.v4().replace(/-/g, "");
/**
* 注册渲染进程远程通信
* @param eventName
*... |
import Argument from './argument';
export interface IContestObject {
id: number;
name: string;
description: string;
max_players: number;
min_players: number;
params: {
[key: string]: any;
};
}
export default class Contest {
public id: number;
public name: string;
public description: string;
... |
import { Component } from "../component";
import { GalleryItem } from "./gallery-item";
/**
* Possible values for gallery component role fields
*/
export type GalleryComponentRole
= "gallery"
| "mosaic";
/**
* Signature/interface for a base gallery component
*/
export interface GalleryComponent extends Compon... |
/**
* @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 { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-comp-3575',
templateUrl: './comp... |
export type FileType = 'png' | 'jpeg';
export type Theme = 'light' | 'dark';
export interface ParsedRequest {
fileType: FileType;
title: string;
companyName: string;
logoUrl: string;
city: string;
salary: string;
} |
import {Column, Entity} from "../../../src/index";
import {ObjectIdColumn} from "../../../src/decorator/columns/ObjectIdColumn";
import {ObjectID} from "mongodb";
@Entity("sample34_post")
export class Post {
@ObjectIdColumn()
id: ObjectID;
@Column()
title: string;
@Column()
text: string;
... |
import React from "react";
const LinkedInIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={24}
height={24}
{...props}
>
<path fill="none" d="M0 0h24v24H0z" />
<path d="M18.335 18.339H15.67v-4.177c0-.996-.02-2.278-1.39-2... |
import React, { useState } from "react";
import { Route } from "react-router-dom";
import { Todo } from "./todo.model";
import { NewTodo } from "./components/NewTodo";
import { TodoList } from "./components/TodoList";
const App: React.FC = () => {
const [todos, setTodos] = useState<Todo[]>([]);
const addTodo = (n... |
import { installPackage } from '../../utils/packages';
import { ng } from '../../utils/process';
import { updateJsonFile } from '../../utils/project';
import { expectFileToMatch } from '../../utils/fs';
import { oneLineTrim } from 'common-tags';
export default function () {
// TODO(architect): Delete this test. It i... |
import { FormGroup, List, ListItem, TextInput } from '@patternfly/react-core';
import React from 'react';
const jsonToHTML = (data, level) => {
level = level + 1;
return (
<List className="root-list">
{Object.keys(data).map(key => {
if (typeof data[key] == 'object' && data[key] !== null) {
... |
//https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2/HTML/link/ifcoccupanttypeenum.htm
export enum IfcOccupantTypeEnum {ASSIGNEE=".ASSIGNEE.",ASSIGNOR=".ASSIGNOR.",LESSEE=".LESSEE.",LESSOR=".LESSOR.",LETTINGAGENT=".LETTINGAGENT.",OWNER=".OWNER.",TENANT=".TENANT.",USERDEFINED=".USERDEFINED.",NOTDEFINED=".NOTDEFIN... |
export * from './portada.service';
export * from './portada-update.component';
export * from './portada-delete-dialog.component';
export * from './portada-detail.component';
export * from './portada.component';
export * from './portada.route'; |
// external
import { h, JSX } from 'preact';
// main
import { LanguageKey } from '@transcend-io/internationalization';
// global
import { sortSupportedLanguagesByPreference, useEmotion } from '../hooks';
import { selectableLanguages } from '../translations';
import type { HandleSetViewState } from '../types';
// loc... |
import WritableTrackingBuffer from './tracking-buffer/writable-tracking-buffer';
import * as crypto from 'crypto';
import JSBI from 'jsbi';
type Options = {
domain: string,
userName: string,
password: string,
ntlmpacket: {
target: Buffer,
nonce: Buffer
}
};
class NTLMResponsePayload {
data: Buffer... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { SimpleSceneComponent } from './components/simple-scene/simple-scene.component';
@NgModule({
declarations: [
AppComponent,
SimpleSceneComponent
],
... |
import {
Document, model, Schema, Types,
} from 'mongoose';
const PoemSchema = new Schema({
user: { type: Schema.Types.ObjectId, ref: 'User', required: true },
name: { type: String, required: false },
author: { type: String, required: true },
text: { type: String, required: true },
targetTimeSec: { type: N... |
export class TimeTableCtrl {
navModel: any;
activeTabIndex = 0;
logoSrc: any = '/public/img/logo-placeholder.png';
bgSrc: any = '/public/img/dashboard.png';
$scope;
/** @ngInject */
constructor($scope) {
this.activeTabIndex = 0;
this.$scope = $scope;
$scope.getFile = this.getFile.bind(this);
... |
import * as Yup from 'yup'
import { formFields } from './form-fields'
import errorMessages from '../../../constants/error-messages'
const { name, officeIds } = formFields
export const validationSchema = Yup.object().shape({
[name.name]: Yup.string()
.trim()
.required(errorMessages.FIELD_REQUIRED),
[office... |
import { storiesOf } from "@storybook/react";
import React from "react";
import { AddToWishlistButton } from ".";
storiesOf("@components/molecules/AddToWishlistButton", module)
.add("default", () => (
<AddToWishlistButton added={false} onClick={() => null} />
))
.add("added", () => (
<AddToWishlistButton... |
import type { AppRouteModule } from '/@/router/types'
import { LAYOUT } from '/@/router/constant'
import { t } from '/@/hooks/web/useI18n'
const dashboard: AppRouteModule = {
path: '/dashboard',
name: 'Dashboard',
component: LAYOUT,
redirect: '/dashboard/analysis',
meta: {
orderNo: 10,
icon: 'ion:gr... |
import {bootstrap} from '@angular/platform-browser-dynamic';
import {AppComponent} from './app.component';
import {HTTP_PROVIDERS} from '@angular/http';
import 'rxjs/add/operator/map';
bootstrap(AppComponent, [HTTP_PROVIDERS]); |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_TW">
<context>
<name>MainUI</name>
<message>
<location filename="../mainUI.ui" line="14"/>
<source>Image Viewer</source>
<translation type="unfinished"></translation>
</message>
<message>
... |
import { Component } from "react";
import "./Content.css";
class Content extends Component {
render() {
return <div className="Content">{this.props.children}</div>;
}
}
export default Content; |
import { ChangeDetectionStrategy, Component, HostListener, Inject, Input } from '@angular/core';
import { Header, SBB_HEADER } from '../header/header';
@Component({
selector: 'sbb-app-chooser-section',
templateUrl: './app-chooser-section.component.html',
styleUrls: ['./app-chooser-section.component.scss'],
ch... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {ClientError} from '../../logic/errors/clientError';
import {ErrorCodes} from '../../logic/errors/errorCodes';
import {ServerError} from '../../logic/errors/serverError';
/*
* A class to handle extracting information and creating errors
*/
export class ErrorFactory {
/*
* Ensure that all errors used... |
import * as React from 'react'
class Tab extends React.PureComponent<any, any> {
constructor(props) {
super(props)
this.state = {
active: this.props.initialTab
}
}
componentWillReceiveProps(nextProps) {
if (nextProps.forceValue && nextProps.forceValue != this.props.forceValue) {
thi... |
import { BIND_QUERY_PARAMS_OPTIONS, BindQueryParamsFactory } from '@ngneat/bind-query-params';
import { FormControl, FormGroup } from '@angular/forms';
import { createComponentFactory, Spectator } from '@ngneat/spectator';
import { Component } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/route... |
/// <reference path="typings/tsd.d.ts" />
import {GameContext} from "./src/GameContext";
import {BootState} from "./src/states/BootState";
import {LoadState} from "./src/states/LoadState";
import {MainState} from "./src/states/MainState";
import {FightState} from "./src/states/FightState";
export class Game {
con... |
/**
* @license
* Copyright 2022 Dynatrace 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 ag... |
export const getScalingProps = (width: number, height = width) => {
const viewBox = `0 0 ${width} ${height}`;
const ratio = width / height;
if (ratio !== 1) {
const widthRatioEm = `${width / height}em`;
const style = { width: widthRatioEm };
return { viewBox, style };
}
return { viewBox };
}; |
import { TestBed, inject } from '@angular/core/testing';
import { CompanyDataService } from './company-data.service';
describe('CompanyDataService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [CompanyDataService]
});
});
it('should be created', inject([CompanyDataServi... |
import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
/**
* @name Keyboard
* @description
* @usage
* ```typescript
* import { Keyboard } from '@ionic-native/keyboard';
*
* constructor(private keyboard: ... |
import {Book, ChatBubble, ExpandMore, Image, Person} from "@material-ui/icons"
import {
Card,
CardContent,
ExpansionPanel,
ExpansionPanelDetails,
ExpansionPanelSummary,
List,
ListSubheader,
Typography,
} from "@material-ui/core"
import {ESCore, IHit} from "@react-discovery/core"
import {
FieldLabel,
... |
import crypto from 'crypto'
import { promises as fs } from 'fs'
import path from 'path'
import PnpmError from '@pnpm/error'
import logger from '@pnpm/logger'
import gfs from '@pnpm/graceful-fs'
import { VersionSelectors } from '@pnpm/resolver-base'
import { PackageManifest } from '@pnpm/types'
import getRegistryName fr... |
import { Middleware } from '@koa/router';
import * as E from 'fp-ts/Either';
import * as O from 'fp-ts/Option';
import * as T from 'fp-ts/Task';
import * as TE from 'fp-ts/TaskEither';
import { flow, pipe } from 'fp-ts/function';
import { StatusCodes } from 'http-status-codes';
import { renderErrorPage } from './render... |
export enum Status {
NONE,
LOADING,
REFRESHING,
PARTIALLY_LOADED,
LOADED
}
export enum Section {
NONE = 'none',
ASSET_MOVEMENT = 'asset_movement',
TRADES = 'trades',
TX = 'tx',
DEFI_COMPOUND_BALANCES = 'defi_compound_balances',
DEFI_COMPOUND_HISTORY = 'defi_compound_history',
DEFI_OVERVIEW = 'd... |
/**
* Created by azu on 2015/04/03.
*/
class Person {
private static _lastCreated:Person;
constructor(public firstName:string, public lastName:string, public age:number) {
}
static createPerson(firstName:string, lastName:string, age:number) {
// `new this` が可能
this._lastCreated = new... |
/**
* @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 {FocusKeyManager, FocusOrigin} from '@angular/cdk/a11y';
import {Direction} from '@angular/cdk/bidi';
import {... |
import { makeAuthDb } from './db'
describe('AuthDb', () => {
let collection: any
describe('findById', () => {
test('call db and return it', async (done) => {
collection = {
findOne: jest.fn(() => 'fake found')
}
const authDb = makeAuthDb(collection)
expect(await authDb.findById(... |
// @Libs
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { Col, Form, Input, Modal, Row, Select, Switch, Tooltip } from 'antd';
import debounce from 'lodash/debounce';
import get from 'lodash/get';
import set from 'lodash/set';
import cn from 'classnames';
// @Components
import ... |
import * as React from 'react';
import { Fragment, Node } from 'prosemirror-model';
import ApplicationCard, { AppCardViewProps } from './applicationCard';
import Blockquote from './blockquote';
import BodiedExtension, {
Props as BodiedExtensionProps,
} from './bodiedExtension';
import BulletList from './bulletList';... |
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Sort } from '@angular/material/sort';
import { NotebookService } from '../../services/notebook/notebook.service';
import { DialogService } from '../../services/dialog/dialog.service';
import { ErrorServ... |
import { DeserializeHtml } from '@udecode/core';
import { getElementDeserializer } from '../../common/utils/getElementDeserializer';
import { IMAGE, ImageDeserializeOptions } from './types';
export const deserializeImage = ({
typeImg = IMAGE,
}: ImageDeserializeOptions = {}): DeserializeHtml => ({
element: getElem... |
import debugFactory from 'debug'
import { CeloContract } from './base'
import { newAccounts } from './generated/Accounts'
import { newAttestations } from './generated/Attestations'
import { newBlockchainParameters } from './generated/BlockchainParameters'
import { newDoubleSigningSlasher } from './generated/DoubleSigni... |
declare const buildType: string;
declare const supportPlat: any;
declare const keys: {
[props: string]: string;
};
declare const getSubpackage: any; |
import {Injectable} from '@angular/core';
import {Store} from '@ngrx/store';
import {DeleteUserPlayerDataAction, SaveUserDataAction, SaveUserPlayerDataAction} from '../store/actions/auth-actions';
import {Subscription} from 'rxjs/Subscription';
import {Router} from '@angular/router';
import {MdSnackBar} from '@angula... |
/*
* Copyright 2019 gRPC 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 agreed t... |
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#8257E5',
justifyContent: 'center',
padding: 40,
},
banner: {
width: '100%',
resizeMode: 'contain',
},
title: {
fontFamily... |
import CustomError from './CustomError';
/**
* Thrown whenever you try accessing a subscription-related resource
* (for example {@ChannelAPI#getChannelSubscriptions})
* and the given channel does not have a subscription program.
*/
export default class NoSubscriptionProgramError extends CustomError {
constructo... |
import { Injectable } from '@angular/core';
import { hasOwn } from '../shared/utility.functions';
import { AddReferenceComponent } from './add-reference.component';
import { OneOfComponent } from './one-of.component';
import { ButtonComponent } from './button.component';
import { CheckboxComponent } from './checkbox.... |
import { List as _List_ } from "@aws-sdk/types";
import { _InstanceMonitoring } from "./_InstanceMonitoring";
export const _InstanceMonitoringList: _List_ = {
type: "list",
member: {
shape: _InstanceMonitoring,
locationName: "item"
}
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.