text stringlengths 10 953k |
|---|
import { Field, InputType } from 'type-graphql';
@InputType()
export class UserInput {
@Field({ description: 'Google token id' })
public tokenId: string;
} |
import Link from "next/link";
import Image from "next/image";
import { RestaurantType } from "src/types";
import getImgUrl from "src/helpers/img-url";
import Rating from "./rating";
import OpeningStatus from "./opening-status";
type Props = {
restaurant: RestaurantType;
};
const RestaurantCard: React.FC<Props> = ... |
import { BluiAuthUIService } from './auth-ui.service';
describe('BluiAuthUIService', () => {
let service: BluiAuthUIService;
beforeEach(() => {
service = new BluiAuthUIService();
});
it('it should be a placeholder service', () => {
const serviceSpy = spyOn(service, 'warn').and.stub();
... |
export interface IConfig {
deleteEntityConfirmMessage?: string
loginUri?: string
sortable?: boolean
} |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { GearIcon } from '@modulz/radix-icons';
import { DEFAULT_THEME } from '../../theme';
import { Group } from '../Group/Group';
import { ActionIcon } from './ActionIcon';
const getThemes = (props?: any, iconProps?: any) =>
Object.keys(DEFA... |
/**
* Check whether the given Object is instantiable.
* @param Class Object.
* @returns boolean
*/
export const isInstantiable = (Class: any) : boolean => {
if (typeof Class.prototype !== 'object') {
return false
}
return typeof Reflect.get(Class.prototype, 'constructor') === 'function'
} |
export interface IRegion {
id?: number;
regionName?: string;
}
export class Region implements IRegion {
constructor(public id?: number, public regionName?: string) {}
} |
/**
* @description 菜单配置
* @author wangfupeng
*/
const SINA_PATH1 = 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal'
const SINA_PATH2 = 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal'
// 表情菜单数据结构类型
export type EmotionsContentType = {
alt: string
src: string
}
export type EmotionsT... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ProducerEditRelationsComponent } from './producer-edit-relations.component';
describe('ProducerEditRelationsComponent', () => {
let component: ProducerEditRelationsComponent;
let fixture: ComponentFixture<ProducerEditRelationsCompo... |
import Joi from "joi";
export const Register = Joi.object({
email: Joi.string().email(),
password: Joi.string().min(1),
confirmPassword: Joi.string().min(1),
});
export const Login = Joi.object({
email: Joi.string().email(),
password: Joi.string().min(1),
}); |
import { Component } from '@angular/core';
@Component({
selector: 'timesink-v20-da-rule-info-frenzy-and-roetschreck',
templateUrl: './v20-da-rule-info-frenzy-and-roetschreck.component.html',
styleUrls: ['./v20-da-rule-info-frenzy-and-roetschreck.component.scss'],
})
export class V20DaRuleInfoFrenzyAndRoetschreck... |
import { InjectionToken } from '@angular/core';
import { NgxUiLoaderConfig } from './ngx-ui-loader-config';
/**
* Injection token for ngx-ui-loader configuration
*/
export declare const NGX_UI_LOADER_CONFIG_TOKEN: InjectionToken<NgxUiLoaderConfig>; |
import React from 'react';
import {
Input,
InputProps,
} from '@kitten/ui';
type InputElement = React.ReactElement<InputProps>;
export const DisabledInput = (props?: InputProps): InputElement => {
return (
<Input
placeholder='Place your text'
disabled={true}
{...props}
/>
);
}; |
import { ref, onMounted } from '@vue/composition-api'
import semver from 'semver'
const packageData = ref<any>(null)
export function useVueVersionCheck () {
onMounted(async () => {
if (!packageData.value) {
try {
const response = await fetch('https://registry.npmjs.org/vue', {
headers: {... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { MongooseModule } from '@nestjs/mongoose';
import { LoginModule } from './login/login.module';
import { LoginController } from './login/login.controller';
import { LoginService ... |
declare enum FormStatus {
Pending = "pending",
Valid = "valid",
Invalid = "invalid",
Disabled = "disabled",
Hidden = "hidden"
}
export default FormStatus; |
import {
Channel,
Client,
Collection,
ColorResolvable,
Guild,
GuildChannel,
Message,
MessageEmbed,
Role,
RoleManager,
TextChannel,
VoiceChannel,
VoiceConnection,
} from "discord.js";
import {
IMessageIdentifier,
IRoleIdentifier,
IMinifiedEmbedMessage,
IEmoji,
IMessageEmbed,
IMessag... |
import axios, { AxiosInstance } from "axios";
import { getCurrentlyPlaying } from "@/services/spotify/getCurrentlyPlaying";
import { Track } from "@/types/common/Track";
import { CurrentlyPlaying } from "@/types/CurrentlyPlaying";
jest.mock("axios");
describe("getCurrentlyPlaying", () => {
let axiosInstance: AxiosI... |
import { Prisma } from '.prisma/client';
import { PrismaService } from 'src/prisma/prisma.service';
import { CreateGeneroDto } from './dto/create-genero.dto';
import { UpdateGeneroDto } from './dto/update-genero.dto';
export declare class GeneroService {
private readonly prisma;
constructor(prisma: PrismaServic... |
import { config } from 'dotenv';
config();
require('./app'); |
/**
* Mail Baby API
* This is an API defintion for accesssing the Mail.Baby mail service.
*
* The version of the OpenAPI document: 1.0.0
* Contact: detain@interserver.net
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit... |
import { IsDefined, IsString, ValidateNested, validateSync } from 'class-validator'
import { plainToClass, Type } from 'class-transformer'
import { IVersionDataDtm, VersionDataDtm } from './children'
export interface IVersionDtm {
version: string
data: IVersionDataDtm[]
}
export interface IVersionFlatDtm extend... |
import * as firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/firestore';
import 'firebase/functions';
import "firebase/database";
// Firebase config variable. Get this data from the Firebase Console
const config = {
apiKey: 'AIzaSyDGU_OY3L9C00MH3wzskavQrYTnTz_aQOU',
authDomain: 'dev-bigshine.... |
import { upperFirst } from 'lodash'
import ExportIcon from 'mdi-react/ExportIcon'
import GithubCircleIcon from 'mdi-react/GithubCircleIcon'
import * as React from 'react'
import { merge, of, Subject, Subscription } from 'rxjs'
import { catchError, distinctUntilChanged, map, startWith, switchMap } from 'rxjs/operators'
... |
export { LazyCover } from './LazyCover' |
import { relative } from "path";
import { WorkspaceFolder } from "vscode";
import { getTestRunner } from "../runners/TestRunnerFactory";
async function debugTest(
rootPath: WorkspaceFolder,
fileName: string,
testName: string
) {
const relativeFilename = relative(rootPath.uri.path, fileName);
const testRunne... |
export interface IQuery {
sort?: object;
filter?: any;
limit?: number;
offset?: number;
} |
import { TestBed } from '@angular/core/testing';
import { UserGithubService } from './user-github.service';
describe('UserGithubService', () => {
let service: UserGithubService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(UserGithubService);
});
it('should be crea... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { funcsService } from '../../../shared/funcs/funcs.service';
import { Observable } from 'rxjs';
import { MatTableDataSource } from '@angular/material/table';
import { MatSort } from '@angular/material/sort';
import { MatPaginator } from '@angular/mate... |
import {
DOM,
IBindingTargetObserver,
ILifecycle,
IObserverLocator,
ISubscriber,
ISubscriberCollection,
LifecycleFlags,
Priority,
subscriberCollection,
} from '@aurelia/runtime';
export interface IHtmlElement extends HTMLElement {
$mObserver: MutationObserver;
$eMObservers: Set<ElementMutationSub... |
<TS language="es_VE" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { put, call, all, fork , select, takeLatest, cancelled} from "redux-saga/effects";
import { fetchThermostatValues,updateCurrentSetPoint } from "../services/Api";
import * as actionCreators from "../actions/thermostatactions";
import * as actionTypes from "../types/actions";
import delay from '@redux-saga/delay-p... |
import { createGlobalStyle } from "styled-components";
export const GlobalStyle = createGlobalStyle`
* {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
&::-webkit-scrollbar {
width: 0;
}
}
body,
html {
margin: 0;
font-family: 'Inter', sans-serif;
font-size: 15p... |
import { task } from 'gulp';
import * as gulp from 'gulp';
const gulpClean = require('gulp-clean');
task('clean', [], (done:any) => {
return gulp.src('dist', { read: false }).pipe(gulpClean(null));
}); |
export { WatsonHealthAiStatusQueued24 as default } from "../"; |
import {argv} from "yargs"
import {join} from "path"
import {Linter, Configuration} from "tslint"
import {task, log} from "../task"
import * as paths from "../paths"
function lint(dir: string): void {
const options = {
rulesDirectory: join(paths.base_dir, "tslint", "rules"),
formatter: "stylish",
fix: ... |
import * as nbformat from '@jupyterlab/nbformat';
import {
IObservableJSON
} from '@jupyterlab/observables';
import {
JSONObject,
ReadonlyJSONObject
} from '@lumino/coreutils';
const NBGRADER_KEY = 'nbgrader';
export const NBGRADER_SCHEMA_VERSION = 3;
/**
* A namespace for conversions between {@link Nbgrader... |
import monacoType from 'monaco-editor/monaco.d.ts'
declare module '*?raw' {
const content: string
export default content
}
declare module '*.svg' {
const content: React.FC<SVGProps<SVGElement>>
export { content as ReactComponent }
}
declare const monaco: monacoType |
import * as React from 'react';
import {Button, Modal, ModalBody, ModalHeader, ModalFooter, ButtonGroup, Input, InputGroup, InputGroupAddon} from 'reactstrap';
import FaIcon from '../faicon/FaIcon';
import DataGrid from '../../datagrid/DataGrid';
import Message from '../message/Message';
export interface LookUpProp {
... |
import { Document, Model } from "mongoose";
export interface IShare {
symbol: string;
shares: number;
uId: string;
dateOfEntry?: Date;
lastUpdated?: Date;
}
export interface IShareDocument extends IShare, Document {
setLastUpdated: (this: IShareDocument) => Promise<void>;
sellShares: (this: ... |
import * as React from "react";
import { FormattedMessage, MessageValue } from "react-intl";
interface BaseProps {
id: string;
values?: { [key: string]: MessageValue | JSX.Element };
}
type RenderByTagNameProps = BaseProps & {
className?: string;
tagName?: keyof JSX.IntrinsicElements;
};
type RenderTextProps... |
export class TableBoardGame {
BoardGameId: number;
BGGId: number | null;
BoardGameName: string;
MinBoardGamePlayers: number;
MaxBoardGamePlayers: number;
ImageUrl: string;
TableId: number;
GamerId: string;
GamerNickname: string;
} |
import {altPrio, seq, Expression, optPrio} from "../combi";
import {SQLTarget} from ".";
import {IStatementRunnable} from "../statement_runnable";
export class SQLIntoTable extends Expression {
public getRunnable(): IStatementRunnable {
const into = seq(altPrio("INTO", "APPENDING"),
optPrio(... |
import { Network, SubnetMap, UtxoNetwork } from '@radar/redshift-types';
/**
* Get bitcoinjs-lib network, which includes address and message prefixes
* @param network The network
* @param subnet The network's subnet
*/
export function getBitcoinJSNetwork<N extends Network>(
network: N,
subnet: SubnetMap[N],
) ... |
import 'mocha';
import { expect } from 'chai';
import Big from 'big.js';
import Long from 'long';
import { fuzzyDescribe } from '../../../test/mocha-fuzzy/suite';
import { VoteOptions } from './MsgVote';
import { CroSDK } from '../../../core/cro';
import { Msg } from '../../../cosmos/v1beta1/types/msg';
import { Secp2... |
import {InjectionToken, Provider} from '@angular/core';
import {StateSubject} from 'dd-rxjs';
import {Observable} from 'rxjs';
import {distinctUntilChanged, map, shareReplay} from 'rxjs/operators';
import {jsonEqual} from 'src/util';
import {TracksFilter} from './di-tracks-filter';
export const DiTracksFilterPerformer... |
import { task } from 'gulp'
import { execNodeTask } from './taskHelpers'
import { initSite } from '../site'
task('site:init', done => {
initSite()
done()
})
task('site:serve', done => {
execNodeTask('lerna', 'lerna', ['run', 'start', '--stream'])(done)
})
task('site:build', done => {
execNodeTask('lerna', '... |
import gql from "graphql-tag";
import * as React from "react";
import { ChildProps, graphql } from "react-apollo";
import { ConversationList as DumbConversationList } from "../components";
import { connection } from "../connection";
import graphqTypes from "../graphql";
import { IConversation } from "../types";
import ... |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
// import { PlexusInstance } from "./interfaces"
import { PlexusInstance } from "./instance"
type EventHandler = (v: any) => void
export type PlexusEventInstance<PayloadType = any> = EventInstance<PayloadType>
interface EventStore {
_events: Map<string | number, Map<string | Number, EventHandler>>
_destroyers: Map... |
import * as React from 'react';
import { Col, message as Message, Collapse, Button, Modal } from 'antd';
import classnames from 'classnames';
const { Panel } = Collapse;
// enable history
import { withRouter } from 'react-router-dom';
// custom components
import NovelTrash from './novel-trash/NovelTrash';
import Char... |
/* eslint-disable @typescript-eslint/no-empty-function */
import Table from '../index';
import createTableCell from '../TableCellFactory';
describe('Unit test for Table showActionButtons', () => {
beforeEach(() => {
jest.spyOn(console, 'error');
// @ts-ignore
console.error.mockImplementation(() => { });
... |
import { isGreaterOrEqual } from "./isGreaterOrEqual";
import { isLessOrEqual } from "./isLessOrEqual";
/**
* @memberof Number
* @name inRange
* @description 判断某个数是否在一个闭区间内
* @param {number} num - 需要判断的数
* @param {number} low - 闭区间左值
* @param {number} high - 闭区间右值
* @returns - {number}
*/
const inRange = (num... |
export { default as Navbar } from './Navbar'
export { default as ActiveNFTItemCard } from './NFTItemCard/ActiveNFTItemCard'
export { default as ImageCard } from './ImageCard'
export { default as ImageWithActions, ActionButton } from './ImageWithActions'
export { default as QuantitySelector } from './QuantitySelector'
e... |
import { EventEmitter } from '@angular/core';
/**
* A class that contains some common functions/properties for menu handling.
Note: Any componetn that inherits from this class will need to add the following to it's component annotation:
inputs: ["isOpen"],
outputs: ["onClosed", "onOpenMainMenu"]
T... |
import { ChangeDetectionStrategy, Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { BehaviorSubject, combineLatest, Observable, Subject } from 'rxjs';
import { map } from 'rxjs/operators';
import { DataService } from '@vendure/admin-ui/core';
@Component({
selector: 'vdr-variant-p... |
/**
* Root export for package
*/ |
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { useBreakpoints } from "../hooks";
import type { Drauu, Brush } from "drauu";
const $ = (id: string) => document.getElementById(id);
const registerKeyboardShortcuts = (drauu: Drauu) => {
window.addEventListener("keydown", (evt) => {
if (evt.c... |
interface ReplicatedScene {
tick: number;
boardId: string;
gameId: string;
playerId: string;
clientId: string;
boards: { [key: string]: ReplicatedBoard };
marbles: { [key: string]: ReplicatedMarble };
avatars: { [key: string]: ReplicatedAvatar };
notepads: { [key: string]: ReplicatedNotepad };
card... |
import { GridPosition } from '../../type/NodeData';
import { UpdateGridUIBooleanValue } from '../../type/Function';
export interface CostFindingStrategy {
grid: number[][];
cost: number[][];
startPosition: GridPosition;
endPosition: GridPosition;
updateGridUIIsVisited: UpdateGridUIBooleanValue;
... |
import { log } from '@nexus/logger'
import * as GraphQL from 'graphql'
import * as HTTP from 'http'
import 'jest-extended'
import * as Lo from 'lodash'
import { inspect } from 'util'
import { setReflectionStage, unsetReflectionStage } from '../lib/reflection'
import * as App from './app'
import * as Lifecycle from './l... |
version https://git-lfs.github.com/spec/v1
oid sha256:93983b58b5307a1d7b81d54ab748389e9ea9659e59d4cc0b0411159ce521843d
size 1376160 |
import { watch, unref } from 'vue';
import { useI18n } from '@/hooks/web/useI18n';
import { useTitle as usePageTitle } from '@vueuse/core';
import { useGlobSetting } from '@/hooks/setting';
import { useRouter } from 'vue-router';
import { REDIRECT_NAME } from '@/router/constant';
export function useTitle() {
const ... |
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { ContactComponent } from './contact.component';
import { ContactService } from './contact.service';
import { ContactRoutingModule } from './contact-routing.module';
@NgModule({
imports... |
import { ActionTypes } from '../constants/action-types';
export interface IActionResult {
actionType: ActionTypes;
status?: number;
headers?: { [key: string]: string | string[] }[];
body?: any;
url?: string;
} |
/*
* The MIT License
*
* Copyright 2017 sz2.
*
* 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, me... |
// Type definitions for CodeMirror
// Project: https://github.com/marijnh/CodeMirror
// Definitions by: lf-novelt <https://github.com/lf-novelt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// See docs https://codemirror.net/doc/manual.html#addon_foldgutter
import * as CodeMirror from "codemirro... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Machinecoin</source>
<translation>در مورد Machinecoin</translation>
... |
import { utilsBr } from '../index';
import { expect } from 'chai';
describe('Utils test', () => {
it('Utils currencyToNumber Currency', () => {
const currency = utilsBr.currencyToNumber(' R$ 1.234.456,44 ');
expect(currency).to.be.equal(1234456.44);
});
it('Utils currencyToNumber Porcentagem', () => {
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CheckoutConfirmComponent } from '@app-buyer/checkout/components/checkout-confirm/checkout-confirm.component';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { BehaviorSubject, of } from 'rxjs';
import { AppStateService, AppLine... |
import { promises } from "fs";
import moment from "moment";
interface InputDataFormat {
logId: string;
weight: number;
bmi: number;
date: string;
time: string;
fat: number;
source: "API" | "Aria"
}
interface DataFormat {
date: string;
weight: number;
fatMass: number;
}
const d... |
import { create } from 'store';
import { Dispatch } from 'redux';
import { SimpleDict } from 'types/shered';
import ApiService from 'services/api.service';
import * as TYPES from './constants';
import { GitUser } from './reducer';
export const searchUsers = (userName: string) => (dispach: Dispatch) => {
dispach(crea... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About PesetaDigital</source>
<translation type="unfinished"/>
</message>
<message>
<locati... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Rpicoin</source>
<translation>A Rpicoin-ról</translation>
</message>
<message>
<locatio... |
import { Injectable } from '@angular/core';
import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import * as moment from 'moment';
@Injectable({ providedIn: 'root' })
export class AuthGuard implements CanActivate {
constructor(
private router: Router) { }
... |
import { PrismTheme } from 'prism-react-renderer'
import CodeTheme from 'prism-react-renderer/themes/nightOwl'
export const theme: PrismTheme = Object.assign({}, CodeTheme as any, {
plain: {
color: '#d6deeb',
backgroundColor: 'var(--color-black)',
},
}) |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ProMonitorComponent } from './pro-monitor.component';
describe('ProMonitorComponent', () => {
let component: ProMonitorComponent;
let fixture: ComponentFixture<ProMonitorComponent>;
beforeEach(async(() => {
TestBed.configure... |
declare type Response<T = any> = {
data: T;
status: number;
statusText: string;
headers: any;
};
export default Response; |
#!/usr/bin/env node
import minimist from 'minimist'
import { TFlags, upgrade } from './upgrade'
upgrade(process.cwd(), minimist(process.argv.slice(2)) as TFlags) |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr_FR">
<context>
<name>AboutDialog</name>
<message>
<location filename="../../src/dialogs/aboutdialog.cpp" line="45"/>
<source>About <AppName></source>
<translation>À propos de <AppName></transl... |
/**
* @packageDocumentation
* @module api.functional.receipts
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import { Fetcher, Primitive } from "nestia-fetcher";
import type { IConnection } from "nestia-fetcher";
import type ... |
import { Sequence } from 'gensequence';
import { TrieNode } from './TrieNode';
import { YieldResult } from './walker';
export { YieldResult } from './walker';
export declare function insert(text: string, node?: TrieNode): TrieNode;
export declare function isWordTerminationNode(node: TrieNode): boolean;
/**
* Sorts the... |
import { getIndex } from '../../../../common/chunk';
import { SIGHT_TRANSPARENT, blocksFlags } from '../../../blocks/blockInfo';
import {
ROW,
ROW_NESTED_CHUNK,
COLUMN,
COLUMN_NESTED_CHUNK,
SLICE,
} from '../../../../common/constants/chunk';
import {
CHUNK_STATUS_NEED_LOAD_VBO,
CHUNK_STATUS_LOADED,
} from... |
export const JWT_Secret:string = "shalom"
export const MongoDB:string = "mongodb+srv://rouven:xcJxNOjnoJkJqh7N@rouven.ngg77.mongodb.net/shopping?retryWrites=true&w=majority" |
/**
* Element helper class.
*/
export class LiveElement {
static hook(element: HTMLElement): string | null {
if (element.getAttribute === undefined) {
return null;
}
return element.getAttribute("live-hook");
}
} |
import {
RouterHistory,
RouteRecordRaw,
RouteComponent,
createWebHistory,
createWebHashHistory,
RouteRecordNormalized
} from "vue-router";
import { router } from "./index";
import { loadEnv } from "../../build";
import Layout from "/@/layout/index.vue";
import { useTimeoutFn } from "@vueuse/core";
import {... |
import { AppRepository, CommonStatusCode, CommonStatusMessage } from "@/lib";
import { CommonPromiseAPIResponseType } from "@/lib/type";
import { QueryType, SortType } from "@/models/Common/type";
import { onFailureHandler } from "@/utils";
import * as _ from "lodash";
import { Component } from "../entity";
import { Co... |
import { Component, OnInit } from '@angular/core';
import { _HttpClient } from '@delon/theme';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
})
export class DashboardComponent implements OnInit {
constructor(public http: _HttpClient) {}
ngOnInit(): void {}
}
@Component({
... |
import { APP_FILTER, NestFactory, Reflector } from '@nestjs/core';
import { ValidationPipe, ClassSerializerInterceptor } from '@nestjs/common';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create... |
import * as React from 'react'
import {
Box,
Button,
FormControl,
FormHelperText,
IconButton,
Input,
Table,
TableBody,
TableRow,
TableCell,
Typography,
} from '@material-ui/core'
import Link from '../components/link'
import Header from '../header'
import Snack, {SnackProps} from '../components/s... |
import React, {
useCallback,
useContext,
useMemo,
useState,
useEffect,
} from "react";
import cn from "classnames";
import {
Checkbox,
Label,
IconButton,
DefaultButton,
SearchBox,
Link,
Dialog,
DialogFooter,
Dropdown,
IDialogProps,
IDropdownOption,
IListProps,
List,
PrimaryButton,
... |
import React from 'react';
import { Field, Form, Formik } from 'formik';
import useSWR from 'swr';
import LoadingSpinner from '../../Common/LoadingSpinner';
import Button from '../../Common/Button';
import { defineMessages, useIntl } from 'react-intl';
import axios from 'axios';
import * as Yup from 'yup';
import { use... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import { css } from "@emotion/react"
import * as React from "react"
import Button, { BTN, SIZE } from "src/shared/Button.4"
interface Props {
text: string
href: string
}
export function HelpfulLink({ text, href }: Props) {
return (
<Button
kind={BTN.NAKED}
cssStyle={linkCSS}
text={text}
... |
import * as d3 from "d3-selection";
import { FreeFormTool } from "./Tools/FreeFormTool";
import { Tool } from "./Tools/Tool";
import { SelectTool } from "./Tools/SelectTool";
export type ToolID = string;
/** A class to create a toolbar */
export class ToolBar {
/** Current tool. */
selectedTool: Tool;
/**... |
import { EventData } from "tns-core-modules/data/observable";
import { alert } from "tns-core-modules/ui/dialogs";
import { Frame } from "tns-core-modules/ui/frame";
import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout";
import { NavigatedData, Page } from "tns-core-modules/ui/page";
import { CarDetailE... |
// *** WARNING: this file was generated by crd2pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../../types";
import * as utilities from "../../utilities";
import {ObjectMeta} fro... |
import * as React from "react";
import { CompositeItemOptions, CompositeItemHTMLProps } from "../Composite/CompositeItem";
import { TabStateReturn } from "./TabState";
export declare type TabOptions = CompositeItemOptions & Pick<Partial<TabStateReturn>, "manual"> & Pick<TabStateReturn, "panels" | "selectedId" | "select... |
import * as React from 'react';
export interface ListItemProps extends React.HTMLProps<HTMLLIElement> {
/** Anything that can be rendered inside of list item */
children: React.ReactNode;
}
export declare const ListItem: React.FunctionComponent<ListItemProps>;
//# sourceMappingURL=ListItem.d.ts.map |
import {HttpClient, HttpHeaders, HttpRequest, HttpResponse} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {serialize} from '../shared/utilities/serialize';
import {Observable} from 'rxjs';
import {catchError, filter, map, tap} from 'rxjs/operators';
export enum RequestMethod {
Get = '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.