text stringlengths 10 953k |
|---|
import { TEtoSpecsData } from "@neufund/shared-modules";
import { etoFixtureAddressByName, shouldDownloadDocument, tid } from "../../../utils/index";
import { createAndLoginNewUser, getEto, loginFixtureAccount } from "../../../utils/userHelpers";
import { goToEtoViewById } from "./EtoViewUtils";
const asserISHADocume... |
namespace ts.projectSystem {
export import TI = server.typingsInstaller;
export import protocol = server.protocol;
export import CommandNames = server.CommandNames;
export import TestServerHost = TestFSWithWatch.TestServerHost;
export type File = TestFSWithWatch.File;
export type SymLink = Test... |
import Text from './ContentElements/Text'
import Textpic from './ContentElements/Textpic'
import Image from './ContentElements/Image'
import ImageLightbox from './ContentElements/Image'
import Div from './ContentElements/Div'
// import Textmedia from './ContentElements/Textmedia'
import Shortcut from './ContentElements... |
import { MigrationInterface, QueryRunner, Table } from "typeorm";
export class createProperties1619219154457 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(new Table({
name: 'properties',
columns: [
{
name: 'i... |
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AccountService } from 'app/core/auth/account.service';
import { JhiWebsocketService } from 'app/core/websocket/websocket.service';
import { UserSetti... |
import React from "react";
import { AutocompleteInputChangeReason, AutocompleteProps } from "@mui/material";
interface MuiAutocompleteProps<T> extends Omit<AutocompleteProps<T, boolean | undefined, boolean | undefined, boolean | undefined>, "renderInput" | "options" | "open" | "onOpen" | "onClose" | "loading" | "onInpu... |
// Copyright 2020 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 in writi... |
import { path } from "tns-core-modules/file-system";
import { _loadPage } from "tns-core-modules/ui/builder";
import { assertEqual, assertNull, assertThrows } from "../../tk-unit";
const COMPONENT_MODULE = "component-module";
const MISSING_MODULE = "missing-module";
const LABEL = "label";
const testDir = "ui/builder"... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Mentions } from 'antd';
const { Option } = Mentions;
function onChange(value) {
console.log('Change:', value);
}
function onSelect(option) {
console.log('select', option);
}
/**
*
* 基本使用。
*
*
*
* Basic usage.
*
*
*/
export con... |
import { OutgoingRequestDelegate, RequestOptions } from "../core";
/**
* Options for {@link Registerer.register}.
* @public
*/
export interface RegistererRegisterOptions {
/** See `core` API. */
requestDelegate?: OutgoingRequestDelegate;
/** See `core` API. */
requestOptions?: RequestOptions;
} |
/*
* Copyright (C) 2021 Juan Manuel González Garzón
*
* 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 applica... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {HTTP_INTERCEPTORS} from '@angular/common/http';
import {HttpClientModule} from '@angular/common/http';
import {AuthInter... |
// This file is needed because many of our hardhat tasks rely on typechain, creating a circular dependency.
import "hardhat-typechain";
import { HardhatUserConfig } from "hardhat/config";
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.7.6",
settings: {
... |
import {Chart, difficultyShorthandOrder} from "./meta"
export type LampType = "NO_PLAY" | "ASSIST_CLEAR" | "EASY_CLEAR" | "CLEAR" | "HARD_CLEAR" | "EX_HARD_CLEAR"
| "FULL_COMBO" | "FAILED"
export type ServiceType = "573" | "Arcana"
export function lampOrder(lamp: LampType): number {
const lamps: LampType[] = ... |
import { o_inputs, i_inputs } from 'inputs/internal';
export interface HelpBtn {
section_or_input: o_inputs.Section | i_inputs.Input;
} |
import { reactive, ComputedRef, effect, stop } from '@vue/reactivity';
import { Context } from './type';
import { onMount, mapStateToData, assert, isObject, isFunction } from './utils';
import { enqueueUpdate } from './enqueueUpdate';
const PROVIDE_PREFIX = '__$provide_';
type Store = Record<
string,
ComputedRef ... |
export class PatientUser {
username: string;
email: string;
password: string;
} |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
declare namespace Deno {
/** A set of error constructors that are raised by Deno APIs. */
export const errors: {
NotFound: ErrorConstructor;
PermissionDenied: E... |
import { join } from 'path'
import { PluginInfo } from '.'
import { readDir, readFile, writeFile } from './file-system'
const toCamelCase = (string: string) =>
string.charAt(0).toUpperCase() + string.slice(1)
const PACKAGES = {
PLUGIN_NAME_SEPARATOR: '-',
README: 'README',
PLUGIN_REF: 'plugin', //refers to '... |
import { assert } from "chai";
import {MetricConstants, NodeStatus$Properties} from "src/util/proto";
import * as protos from "src/js/protos";
import {
nodeDisplayNameByIDSelector,
selectCommissionedNodeStatuses,
selectStoreIDsByNodeID,
LivenessStatus,
sumNodeStats,
} from "./nodes";
import { nodesReducerOb... |
import { ReactNode, CSSProperties, SyntheticEvent } from 'react';
interface IDialogPropTypes {
className?: string;
keyboard?: boolean;
style?: CSSProperties;
mask?: boolean;
children?: any;
afterClose?: () => any;
onClose?: (e: SyntheticEvent<HTMLDivElement>) => any;
closable?: boolean;
maskClosable?... |
import { CompletionFunc } from '@pnpm/command'
import { types as allTypes } from '@pnpm/config'
import { audit } from '@pnpm/plugin-commands-audit'
import { importCommand } from '@pnpm/plugin-commands-import'
import { add, fetch, install, link, prune, remove, unlink, update } from '@pnpm/plugin-commands-installation'
i... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', ... |
/*
* Copyright 2021 Salto Labs 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 applicable ... |
import RunningConfig from 'RunningConfig'
import { element } from '@mkenzo_8/puffin'
import Core from 'Core'
const { fs } = Core
import * as path from 'path'
import LocalTerminalShell from '../../utils/local_shell'
const getShellCwd = () => {
if (RunningConfig.data.workspaceConfig.folders.length === 1) {
return Run... |
import React from 'react';
import cx from 'classnames';
import { AddSVGProps } from '../types';
export type BarRoundedProps = {
/** className to apply to path element. */
className?: string;
/** reference to path element. */
innerRef?: React.Ref<SVGPathElement>;
/** left position of the bar */
x: number;
... |
import { HelpPageBase } from '@roleypoly/design-system/molecules/help-page-base';
import { AppShell, AppShellProps } from '@roleypoly/design-system/organisms/app-shell';
import * as React from 'react';
export type HelpPageProps = AppShellProps & {
children: React.ReactNode;
};
export const HelpPageTemplate = (props... |
import ResourceType from '@secret-agent/core-interfaces/ResourceType';
export default interface IResourceFilterProperties {
url?: string | RegExp;
type?: ResourceType;
} |
export interface StateInterface {
users: []; // TODO
availableLabels: Record<string, number>;
balances: { [address: string]: number };
supportedUrlTypes: string[];
deposits: []; // TODO
withdrawals: []; // TODO
totalProfitSharing: number;
invocations: string[];
foreignCalls: ForeignCallInterface[];
}
... |
import { IQuestionnaireResponse } from '@ahryman40k/ts-fhir-types/lib/R4';
import { addCorreleationId } from './utils';
import validator from 'validator';
import isUUID = validator.isUUID;
test('it should add correlation id', async () => {
const resource: IQuestionnaireResponse = {
resourceType: 'QuestionnaireRe... |
import * as React from 'react'
import { Link } from 'react-router-dom'
import * as d3 from 'd3'
import { } from '@framework/Globals'
import * as AppContext from '@framework/AppContext'
import { API, HeavyProfilerEntry, StackTraceTS } from '../ProfilerClient'
import { RouteComponentProps } from "react-router";
import ".... |
/*
* @license
* Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
*
* Use of this source code is governed by an Apache-2.0 license that can be
* found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
*/
import { ChangeDetectionStrategy, ChangeDetectorRef... |
import {
Graph,
GraphMutation,
Node,
Edge,
GraphEdgeFlowMutation,
GraphNodeHighlightMutation,
GraphEdgeHighlightMutation
} from "../CytoscapeGraph";
import { Algorithm } from "../algorithm";
/** The Edmonds-Karp algorithm */
const EdmondsKarp: Algorithm = {
name: "Edmonds-Karp",
linearDataStructure: ... |
import {Field} from "../../Fields";
export interface FormFieldRef {
getField: () => Field | null;
} |
import * as dotenv from 'dotenv';
import { SnakeNamingStrategy } from './src/snake-naming.strategy';
if (!(<any>module).hot /* for webpack HMR */) {
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
}
dotenv.config({
path: `.${process.env.NODE_ENV}.env`,
});
// Replace \\n with \n to support mul... |
import React from 'react'
import { images } from './../config/images'
const { logo } = images
export const UserDetailsPage: React.FC = () => {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>This is user details page</p>
... |
import * as React from 'react';
import './App.css';
import Footer from './components/Footer';
import Keyboard from './containers/Keyboard';
class App extends React.Component {
public render() {
return (
<div className="App">
<h1>Thaiboard</h1>
<h3>A virtual thai ... |
import AbstractError from '../../../error/abstract-error';
export default class InvalidBitJson extends AbstractError {
path: string;
showDoctorMessage: boolean;
constructor(path: string) {
super();
this.path = path;
this.showDoctorMessage = true;
}
} |
import { tsx, create } from '@dojo/framework/core/vdom';
import { RenderResult } from '@dojo/framework/core/interfaces';
import * as css from '../theme/default/card.m.css';
import theme, { ThemeProperties } from '../middleware/theme';
export interface CardProperties extends ThemeProperties {
/** Renderer for action a... |
import { expectAssignable, expectNotAssignable, expectNotType, expectType } from 'tsd';
import { Decimal128, Document, Double, Int32, Long } from '../../src/index';
import type {
AcceptedFields,
FilterOperations,
IntegerType,
IsAny,
KeysOfAType,
KeysOfOtherType,
NotAcceptedFields,
NumericType,
OneOrM... |
import { CADLResponse } from './CADLResponse'
export { CADLResponse } |
export {default as Row} from './RowContainer'; |
// import OrganizationUserModel from '../models/organization-user-mongo-model';
// import { CqrsServiceBase } from '../../../shared/services/ioc-services';
// import {
// ORGANIZATION_ROLES,
// AddOrganizationToUserProfileInputModel,
// AddOrganizationToUserProfileOutputModel
// } from '../models/organization-use... |
import * as crypto from "crypto";
export class Block {
readonly nonce: number;
readonly hash: string;
constructor(
readonly index: number,
readonly previousHash: string,
readonly timestamp: number,
readonly data: string
) {
const { nonce, hash } = this.mine();
this.nonce = nonce;
this.hash = hash;
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as React from 'react';
import { StandardProps, PropTypes } from '..';
import { ButtonBaseProps, ButtonBaseClassKey } from '../ButtonBase';
export interface IconButtonProps extends StandardProps<ButtonBaseProps, IconButtonClassKey> {
color?: PropTypes.Color;
disabled?: boolean;
disableRipple?: boolean;
}... |
import * as cxschema from '@aws-cdk/cloud-assembly-schema';
import {
Annotations, ConcreteDependable, ContextProvider, DependableTrait, IConstruct,
IDependable, IResource, Lazy, Resource, Stack, Token, Tags, Names,
} from '@aws-cdk/core';
import * as cxapi from '@aws-cdk/cx-api';
import { Construct, Node } from 'co... |
import { getPage, getComponent, exec } from '../utils';
import { Page, JSHandle, ElementHandle } from 'puppeteer';
describe('Component Loop', () => {
let page: Page;
let instance: JSHandle<Component>;
beforeAll(async () => {
page = await getPage(browser, 'loop');
[, instance] = await getComponent<typeof... |
/**
* Get text color from given hex
* @param hex - Hex color
* @returns the black or white
*/
export const getTextColor = (hexcolor: string): string | string => {
hexcolor = hexcolor.replace('#', '')
var r = parseInt(hexcolor.substr(0, 2), 16)
var g = parseInt(hexcolor.substr(2, 2), 16)
var b = parseInt(hex... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About vTorrent</source>
<translation type="unfinished"/>
</message>
<message>
<location li... |
export * from "./user";
export * from "./server";
export * from "./register";
export * from "./register-forms-list";
export * from "./profile";
export * from "./network";
export * from "./documents";
export * from "./billings";
export * from "./subscriptions";
export * from "./properties"; |
import { Feed } from 'feed';
import BLOG from '~/blog.config';
import { Post } from '~/types';
export function generateRss(posts: Post[]) {
const year = new Date().getFullYear();
const feed = new Feed({
title: BLOG.title,
description: BLOG.description,
id: `${BLOG.link}/${BLOG.path}`,
link: `${BLOG... |
/**
* Maintained by: jbondc <https://github.com/jbondc>
*/
/// <reference types="node" />
import nopt = require("nopt");
nopt({"--foo" : String})
nopt({ "--foo": String }, { "-f": "--foo"})
nopt({ "--foo": String }, { "-f": ["--foo", "-d"] })
nopt({ "--foo": String }, { "-f": ["--foo", "-d"] }, ["test me --foo arg... |
export * from './user.model';
export * from './event.model';
export * from './repo.model'; |
import { isFirstChild } from '@udecode/plate-common';
import { SPEditor, TElement } from '@udecode/plate-core';
import { NodeEntry } from 'slate';
import { isListNested } from '../queries/isListNested';
import { moveListItemUp } from './moveListItemUp';
/**
* If list is not nested and if li is not the first child, mo... |
import React, { ReactElement } from "react";
import "./styles/banner.scss";
const Banner = (): ReactElement => {
return (
<section className="container banner__container">
<h2 id="about" className="banner__title">
VIANCH
</h2>
<div className="banner__info">
<div className="ban... |
import {TestBed, async} from '@angular/core/testing';
import {AppComponent} from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
... |
import "../../testBase";
import "jest";
import app from "../../../src/app";
import {createHeader} from "../../utils";
import request = require("supertest");
import * as randomString from "randomstring";
import container from "../../../src/inversify.config";
describe("test/integration/Users/Store.test.ts", () => {
it(... |
export * from "./DemoLazy" |
import Card from '../interfaces/Card';
/**
* Clone an object and its properties.
*
* @param {Object} o The object to clone.
*
* @returns {Object} Returns the cloned object.
*/
export declare function deepCopy(o: any): Array<Card>; |
import React from 'react';
import { useMantineTheme } from '@mantine/styles';
import { ArrowLeftIcon, ArrowRightIcon } from '@modulz/radix-icons';
import { Center } from '../Center';
import { Anchor } from '../../Anchor/Anchor';
const code = `
<Anchor href="https://mantine.dev" target="_blank">
<Center inline>
<... |
import {
Image,
KeyboardAvoidingView,
Platform,
View,
ScrollView,
TextInput,
Alert,
} from 'react-native';
import React, { useRef, useCallback } from 'react';
import Icon from 'react-native-vector-icons/Feather';
import { useNavigation } from '@react-navigation/native';
import { Form } from '@unform/mobil... |
import React from "react";
import Link from "next/link";
import Layout from "../../components/Layout";
import Table from "../../components/Table";
import useDatasetListing from "../../services/useDatasetListing";
import ErrorMessage from "../../components/ErrorMessage";
export default function DatasetListingPage() {
... |
import { Link } from "react-router-dom"
import React from "react"
import * as urls from "../../urls"
import TidbitItem from "./TidbitItem"
interface TidbitUserProps {
user?: {
id: string
slug: string
name: string
} | null
name?: string | null
}
const TidbitUser: React.FC<TidbitUserProps> = ({ user, ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict'
import { inject, injectable } from 'inversify'
import { Disposable, Event, Emitter } from 'coc.nvim'
import { traceDecorators } from '../../common/logger'
import { IDisposableRegistry } from '../../common/type... |
// Copyright 2020 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 * as ECharts from 'echarts'
import {createProps, RequiredProp} from '../component'
import {noop} from 'vtils'
export const MEChartsDefaultProps = createProps({
/**
* 获取 `ECharts` 对象的函数。
*
* 请进入 https://echarts.baidu.com/builder.html 在线定制 `ECharts`,然后引入使用:
*
* ```jsx
* const getECharts = () =... |
/*
Copyright 2020 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 writi... |
import {AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, OnDestroy, ViewChild, ViewContainerRef} from '@angular/core';
import {MatSnackBar} from '@angular/material/snack-bar';
import {ActivatedRoute, Router} from '@angular/router';
import {BehaviorSubject, combineLatest, Observable} from 'rxjs';
import {m... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validator, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { MatDialog, MatSnackBar } from '@angular/material';
import { MyProfileService } from '../my-profile.service';
import { patternValidators } ... |
import * as DJS from "discord.js";
import Bot from "structures/Bot";
import Event from "structures/Event";
export default class StarboardAlreadyStarredEvent extends Event {
constructor(bot: Bot) {
super(bot, "starboardAlreadyStarred");
}
async execute(bot: Bot, _: string, message: DJS.Message, user: DJS.Use... |
import { Component, ElementRef, HostListener, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { VgAPI } from '../../core/services/vg-api';
import { VgFullscreenAPI } from '../../core/services/vg-fullscreen-api';
import { Subscription } from 'rxjs';
// tslint:disable:component-class-suffix
// tslint... |
/*
* Copyright (C) 2005-2022 SplendidCRM Software, Inc.
* 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, including without limitation the rights to use, ... |
export interface ITask{
assignedTo: string;
createdAt: string;
date: string;
debit: number;
lastUpdatedAt: string;
num: string;
rep: string;
shopName: string;
status: string;
taskModel: string;
taskType: string;
transference: string;
company: string;
}
export cla... |
import Q from 'q'
import mongoose from 'mongoose'
const Schema = mongoose.Schema
const PlayerSchema = new Schema({
name: String,
tag: Number,
id: Number
})
export interface PlayerDocument extends mongoose.Document {
name: string
tag: number
id: number
}
const PlayerModel = mongoose.model('Player', Playe... |
// Copyright 2017-2021 @polkadot/app-crowdloan authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type BN from 'bn.js';
import React, { useState } from 'react';
import { Button, InputAddress, InputBalance, InputNumber, Modal, TxButton } from '@polkadot/react-components';
import { useAccounts, useAp... |
import { switchToClusterFromEnv } from 'src/lib/cluster'
import { failIfVmBased } from 'src/lib/env-utils'
import {
isCelotoolHelmDryRun,
resetAndUpgradeHelmChart,
upgradeHelmChart,
upgradeStaticIPs,
} from 'src/lib/helm_deploy'
import {
uploadEnvFileToGoogleStorage,
uploadGenesisBlockToGoogleStorage,
upl... |
import type { RSet } from '@rimbu/collection-types';
import type { ToJSON } from '@rimbu/common';
import { Stream, StreamSource } from '@rimbu/stream';
import type { WithGraphValues } from '../../gen-graph-custom';
import { GraphEmptyBase } from '../../gen-graph-custom';
import type { GraphBase, GraphTypesContextImpl }... |
import React from 'react'
import { Container, Row, Col } from 'react-bootstrap'
const Footer: React.FC = () => {
return (
<footer>
<Container>
<Row>
<Col className="text-center py-3">Copyright © LiteShop 2021</Col>
</Row>
</Container>
</footer>
)
}
export default Foot... |
import { repeat } from "./repeat.js";
const nextTab = (x: number, tabSize: number) =>
Math.floor((x + tabSize) / tabSize) * tabSize;
/**
* Multi-line version of {@link tabsToSpacesLine}.
*
* @example
* ```ts
* console.log(
* tabsToSpaces("0\t1\t2", 10)
* + "\n" +
* tabsToSpaces("0\t45\t890\t\t6\t0")... |
import ResourceFilterableCollection from "./Collections/ResourceFilterableCollection";
import { IClass } from "./IClass";
import { IHydraResource } from "./IHydraResource";
import { IPointingResource } from "./IPointingResource";
/**
* Describes an abstract Hydra operation.
* @interface
*/
export interface IOperati... |
import { Command } from '@oclif/command'
import { findTreeById, deleteTreeById } from '@/api/file'
import ora from 'ora'
export default class FileDeleteCommand extends Command {
static description = 'Delete file from cloudreve.'
static args = [{
name: 'remoteFile',
required: true,
}]
... |
export enum Order {
ASC,
DESC
}
export function getOrderEnumClass(enumValue: Order): any {
switch (enumValue) {
case Order.ASC:
return new ASC();
case Order.DESC:
return new DESC();
}
}
export class ASC {
public _typeName = "Order";
public _isWrapper =... |
import { tsquery } from '@phenomnomnominal/tsquery';
import { execSync, spawnSync } from 'child_process';
import { LeftHandSideExpression, Node, Project, PropertyAccessExpression, SourceFile } from 'ts-morph';
import * as ts from 'typescript';
// tslint:disable: no-console
function isTestBedConfigure(node: LeftHandSi... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AngularFireAuthModule } from 'angularfire2/auth';
import { AngularFireModule } from 'angularfire2';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './/app-routing.module';
imp... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MaterialModule } from './material.module';
@NgModule({
imports: [
CommonModule,
FormsModule,
FlexLayout... |
import { Body, Controller, Delete, Get, Param, Patch, Post, Query } from '@nestjs/common';
import { EmployeeDto } from '../dto/employee-dto';
import { EmployeeService } from '../services/employee.service';
@Controller('employee')
export class EmployeeController {
constructor(private employeeService: EmployeeService... |
import {
DinaFormSection,
FieldSpy,
filterBy,
FormikButton,
ResourceSelect,
useBulkGet,
useDinaFormContext
} from "common-ui";
import { FieldArray } from "formik";
import { PersistedResource } from "kitsu";
import { compact, get } from "lodash";
import { useRef } from "react";
import { GiMove } from "reac... |
import { ReactElement } from 'react';
import Flex from '../../../components/Flex';
export const Box = ({ children, css }: { children: ReactElement; css: any }) => {
return (
<Flex
direction="column"
css={[
{
height: 80,
borderRadius: 8,
backgroundColor: '#fcfcfd'... |
import { CanActivate, ExecutionContext, ForbiddenException, Injectable } from '@nestjs/common';
import { Observable } from 'rxjs';
import { UsersService } from 'src/modules/users/users.service';
@Injectable()
export class DoesUserExistGuard implements CanActivate {
constructor(private readonly userService: UsersServ... |
import ClassName from '../misc/class-name';
import View from './view';
interface Config {
label: string;
view: View;
}
const className = ClassName('lbl');
/**
* @hidden
*/
export default class LabeledView extends View {
public readonly label: string;
constructor(document: Document, config: Config) {
super(d... |
import React from 'react';
import { StyleSheet } from 'react-native';
import {
Avatar,
Layout,
} from '@ui-kitten/components';
export const AvatarSizeShowcase = () => (
<Layout style={styles.container}>
<Avatar style={styles.avatar} size='tiny' source={require('../../assets/icon.png')}/>
<Avatar style=... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CopyButtonComponent } from './copy-button.component';
import {MatSnackBar, MatSnackBarModule} from '@angular/material/snack-bar';
import {ClipboardModule} from '@angular/cdk/clipboard';
describe('CopyButtonComponent', () => {
let com... |
import { mount, VueWrapper } from '@vue/test-utils';
import { ComponentPublicInstance, nextTick, ref } from 'vue';
import { Tabs, Tab } from '..';
import { useNamespace } from '../../shared/hooks/use-namespace';
const dotTabNs = useNamespace('tab', true);
const dotTabsNs = useNamespace('tabs', true);
const dotTabs = ... |
import { Controller, Get, UseGuards } from '@nestjs/common';
import { AppService } from './app.service';
import { JwtAuthGuard } from './modules/auth/jwt-auth.guard';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
getHello(): string {
return this.ap... |
import { useMutation } from "react-query"
import { queryClient } from "../contexts/queryContext"
import { supabase } from "../database/supabase";
import { Order, OrderProduct } from "./useOrderQuery";
export type NewOrder = {
user_id: string;
numero_pedido: number;
cliente: string;
endereco_entrega: string... |
import React from "react";
const Fish = () => {
return <div></div>;
};
export default Fish; |
import fse from 'fs-extra'
export function loadJsonSync(file, defaultVal?) {
// eslint-disable-next-line no-sync
return fse.readJsonSync(file, {throws: false}) || defaultVal
}
export function loadJson(file, defaultVal) {
return fse.readJson(file).catch(() => defaultVal)
}
export function parseJson(json, defaul... |
import { FoundResource, ConnectorMiddleware } from '../../contracts/connector'
import { Headers, IResponse, Payload } from '../../contracts/http'
import { IValidation } from '../../contracts/validation'
import { Injectable } from '../../container'
@Injectable()
export class ValidationMiddleware implements ConnectorMi... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { style } from 'typestyle/lib';
import { centeredFlex, leftToRight, rightToLeft } from './layout';
import { textItem } from './text';
import vars from './variables';
const itemPadding = {
paddingLeft: vars.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.