text stringlengths 10 953k |
|---|
import { getLogger } from "log4js"
import * as Long from "long"
import { Address } from "../common/address"
import { userOptions } from "../main"
import * as proto from "../serialization/proto"
import { Hash } from "../util/hash"
const logger = getLogger("Tx")
export function signatureHash(tx: proto.ITx) {
const e... |
import { Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ConfirmationButtons, ConfirmationState, ConfirmationTargets, PublishType } from '../../shared/shared.const';
import { MessageHandlerService } from '../../shared/message... |
import { pingTestServer, sendTestResults } from "office-addin-test-helpers";
import { run } from "../../src/taskpane/powerpoint";
import * as testHelpers from "./test-helpers";
const port: number = 4201;
let testValues: any = [];
Office.onReady(async (info) => {
if (info.host === Office.HostType.PowerPoint) {
... |
import { useDark, useToggle } from '@vueuse/core'
export const isDark =
// @ts-expect-error when PROD is true, do not useDark
import.meta.env.DEV &&
useDark({
storageKey: 'el-theme-appearance',
})
// remove as boolean when dark mode is ok
export const toggleDark = useToggle(isDark as boolean) |
import React, { Suspense } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { App } from './App';
import { ErrorBoundary, Loading } from './components';
import { EnvProvider } from './contexts';
import reportWebVitals from './reportWebVitals';
import './... |
export {
observeForPreview,
observePaths,
prepareForPreview,
getPreviewPaths,
observeDocumentTypeFromId,
} from '../preview'
// eslint-disable-next-line camelcase
export {observePathsDocumentPair as unstable_observePathsDocumentPair} from '../preview/documentPair'
// eslint-disable-next-line camelcase
export... |
declare module 'mockjs'
declare module '*.jpeg'
interface Window {
__POWERED_BY_QIANKUN__: boolean
} |
import { Module } from "@nestjs/common";
import { PrismaService } from "../prisma.service";
import { JobResolver } from "./job.resolver";
import { JobService } from "./job.service";
@Module({
providers: [JobResolver, JobService, PrismaService],
})
export class JobModule {} |
import * as check from "../src";
test("check succeeds with string value", () => {
const checkValue = check.toString();
for (const [input, output] of [
[null, ""],
[undefined, ""],
[true, "true"],
[42, "42"],
["value", "value"],
[{ toString: () => "value" }, "value"],
]) {
const resul... |
import { memo } from 'react';
import { withAnimator } from '@arwes/animator';
import { FramePentagon as Component } from './FramePentagon.component';
const FramePentagon = withAnimator()(memo(Component));
export * from './FramePentagon.component';
export { FramePentagon }; |
export interface WindowConfig {
appTitle: string;
logoUrl: string;
logoInvertedUrl: string;
stylesheetUrl?: string;
}
export class DynamicEnvironment {
public production: boolean;
public appConfigUrl: string;
public baseUrl: string;
public pollingIntervalMillis?: number;
public config: WindowConfig =... |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... |
import execa from 'execa';
import * as assert from 'assert';
import * as fs from 'fs';
import 'mocha';
const cliPath = `${process.env.PWD}/src/cli.ts`;
describe('JSHERLOCK-CLI', () => {
it('SHOULD RETURN HELP', done => {
(async () => {
try {
const { stdout } = await execa.shell(`ts-node ${cliPath... |
import { IDocumentStore, DocumentStore, IndexFieldOptions } from 'ravendb';
import * as fs from 'fs';
import * as path from 'path';
import config from '../config';
import { Certificate } from 'crypto';
import models from './models';
import * as vars from '../../env/vars';
import { AppSettings, AppSettingsCountryList } ... |
import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
export interface HireData {
hireCompany: string;
hireCompanyEmail: string;
hireStart: Date;
hireEnd: Date;
hireMessage: string;
}
@Compone... |
export { default as Dictionary } from "./internal/dictionary.js";
export { default as KeyValuePair } from "./internal/key-value-pair.js";
export { default as LinkedList } from "./internal/linked-list.js";
export { default as List } from "./internal/list.js";
export { default as Queue } from "./intern... |
/**
* Copyright (c) 2021 OpenLens Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, p... |
import { attach, NeovimClient } from '@chemzqm/neovim'
import * as cp from 'child_process'
import { createHash } from 'crypto'
import workspace from '../workspace'
import path from 'path'
import { omit } from './lodash'
import os from 'os'
import fs from 'fs'
import { byteLength } from './string'
import { terminate } f... |
/// <amd-module name="tsickle/src/transformer_util" />
/**
* @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
*/
/// <amd-module name="tsickle/src/transformer_util" />
import ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import * as t from 'io-ts';
import { either } from 'fp-ts/lib/Either';
/**
... |
import { RequestOptions } from "http";
declare namespace ElectronLog {
type LogLevel = 'error' | 'warn' | 'info' | 'verbose' | 'debug' |
'silly';
type LevelOption = LogLevel | false;
type Levels = Array<LogLevel | string> & {
add(name: string, index?: number): void
};
type Format = (message: LogMess... |
/**
* @public
*/
const schema = require('../plugin.schema.json')
export { schema }
export { DidAuthSiopOpAuthenticator } from './agent/DidAuthSiopOpAuthenticator'
export { OpSession } from './session/OpSession'
export * from './types/IDidAuthSiopOpAuthenticator' |
import { Component, Input, TemplateRef, ViewChild, Output, OnDestroy } from '@angular/core';
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { MongooseRunNode } from 'src/app/core/models/mongoose-run-node.model';
import { MongooseSetUpService } from 'src/app/core/services/mongoose-set-up-s... |
export const AbilitiesText: {[k: string]: AbilityText} = {
noability: {
name: "No Ability",
shortDesc: "Does nothing.",
},
adaptability: {
name: "Adaptability",
desc: "This Pokemon's moves that match one of its types have a same-type attack bonus (STAB) of 2 instead of 1.5.",
shortDesc: "This Pokemon's sam... |
import { inject, injectable } from 'inversify';
import * as _ from 'lodash';
import { QueryConfig } from 'pg';
import { AppConfig } from '../../_config/app.config';
import { TYPES } from '../../_config/inversifyTypes';
import { BasePostgres } from '../base';
import { MessageExpandedModel, MessageService } from './mess... |
import {
Component,
EventEmitter,
Input,
OnChanges,
OnInit,
Output
} from '@angular/core';
import { SkyDateFormatter } from './date-formatter';
import {
SkyDatepickerDate
} from './datepicker-date';
let nextDatepickerId = 0;
@Component({
selector: 'sky-datepicker-inner',
templateUrl: './datepicker... |
export * from '@styled-icons/fa-solid/Skiing' |
/**
* ------------------------------------
* File: c:\Users\LiuQixuan\Desktop\Untitled-1.js
* Project: c:\Users\LiuQixuan\Desktop
* Created Date: 2021-02-09 13:59:05
* Author: LiuQixuan(Atliuqixuan@hotmail.com)
* -----
* Last Modified: 2021-03-03 10:16:19
* Modified By: LiuQixuan
* -----
* Copyright 2020 -... |
import * as AST from './sys/adlast$TSEXT';
export type ScopedName = AST.ScopedName;
export type ScopedDecl = AST.ScopedDecl;
export type ATypeRef<_T> = {value: AST.TypeRef};
export type ATypeExpr<_T> = {value : AST.TypeExpr};
/**
* A function to obtain details on a declared type.
*/
export interface DeclResolver {
... |
export interface ModelTema {
idTema: number;
idCurso: number;
idModulo: number;
nombreTema: string;
archivo: string|any;
link: string;
} |
import { useGetBitcoinFeesQuery } from '../../src/graphql/queries/__generated__/getBitcoinFees.generated';
type State = {
dontShow: boolean;
fast: number;
halfHour: number;
hour: number;
minimum: number;
};
const initialState: State = {
dontShow: true,
fast: 0,
halfHour: 0,
hour: 0,
minimum: 0,
};... |
import NavbarComponent from "./Navbar";
import NavbarLink from "./NavbarLink";
const Navbar = Object.assign(NavbarComponent, {
Link: NavbarLink,
});
export default Navbar; |
// (C) 2020 GoodData Corporation
import compact from "lodash/compact";
import flatMap from "lodash/flatMap";
import { DrillDefinition, ICatalogAttribute, ICatalogDateAttribute } from "@gooddata/sdk-backend-spi";
import { isLocalIdRef, isIdentifierRef, isUriRef, areObjRefsEqual } from "@gooddata/sdk-model";
import { Hea... |
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. 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... |
import styled from 'styled-components';
export const InfoBox = styled.div`
background-color: rgb(217, 237, 247);
color: rgb(49, 112, 143);
padding: 15px;
margin-bottom: 23px;
border: 1px solid rgb(188, 232, 241);
border-radius: 4px;
strong {
font-weight: 700;
}
p + p {
... |
import { LoggerInterface } from '@opengsn/common/dist/LoggerInterface'
import { AccountManager } from './AccountManager'
import { ContractInteractor } from '@opengsn/common/dist/ContractInteractor'
import { HttpClient } from '@opengsn/common/dist/HttpClient'
import { KnownRelaysManager } from './KnownRelaysManager'
im... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
/**
* Resource Manager API
* API for the Resource Manager service.
Use this API to install, configure, and manage resources via the "infrastructure-as-code" model.
For more information, see
[Overview of Resource Manager](/iaas/Content/ResourceManager/Concepts/resourcemanager.htm).
* OpenAPI spec version: 20180917
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitblocks</source>
<translation>Pri Bitblocks</translation>
</me... |
import { AxiosPromise, AxiosRequestConfig } from 'axios'
export interface CustomError {
type: string
message: string
}
export interface IHttpService {
get(uri: string, params?: object, headers?: object): AxiosPromise<any>
post(uri: string, body?: any, headers?: AxiosRequestConfig): AxiosPromise<any>
put(uri... |
import React, { FC } from "react";
import Nav from "../areas/Nav";
import SideBar from "../areas/sidebar/SideBar";
import LeftMenu from "../areas/LeftMenu";
import Main from "../areas/main/Main";
import RightMenu from "../areas/rightMenu/RightMenu";
import "./Home.css";
const Home: FC = () => {
return (
<div cla... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ScoresPageComponent } from './scores-page.component';
describe('UserPageComponent', () => {
let component: ScoresPageComponent;
let fixture: ComponentFixture<ScoresPageComponent>;
beforeEach(async(() => {
TestBed.configureTe... |
import { List as _List_ } from "@aws-sdk/types";
import { _MitigationActionIdentifier } from "./_MitigationActionIdentifier";
export const _MitigationActionIdentifierList: _List_ = {
type: "list",
member: {
shape: _MitigationActionIdentifier
}
}; |
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import type { RootState } from './store'
// Define a type for the slice state
interface CounterState {
value: number,
test: number,
}
// Define the initial state using that type
const initialState: CounterState = {
value: 0,
test : 5,... |
import {Trans} from '@lingui/react'
import {ActionLink} from 'components/ui/DbLink'
import ACTIONS from 'data/ACTIONS'
import STATUSES from 'data/STATUSES'
import {BuffEvent} from 'fflogs'
import Module, {dependency} from 'parser/core/Module'
import Checklist, {Rule, Requirement} from 'parser/core/modules/Checklist'
im... |
import { useMemo } from 'react';
import type { ITaskMonitorConfig } from '@spinnaker/core';
import { TaskMonitor } from '@spinnaker/core';
/**
* React hook that returns a TaskMonitor
*
* @param config a ITaskMonitorConfig
* @param dismissModal a function that closes the modal enclosing the task monitor
*
* Examp... |
import { RibaModule } from "@ribajs/core";
// import * as binders from './binders';
import * as components from "./components";
// import * as formatters from './formatters';
export const Bs5DropdownModule: RibaModule = {
binders: {},
components,
formatters: {},
services: {},
init() {
return this;
},
}... |
declare interface Window {
MonacoEnvironment: Object;
NOJEditor: Class;
}
declare interface NOJEditor {
editor: any;
} |
import { JSXElement, createSignal, createEffect } from 'solid-js'
import { css, cx } from '@emotion/css'
const themeButton = css`
background-color: transparent;
border: none;
font-size: 2.2rem;
`
export default function ThemeToggle(props: {
isDark: (a: boolean) => void
}): JSXElement {
const [getIsDark, set... |
/// <reference types="react" />
declare const PersonKneelingDarkSkinTone: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default PersonKneelingDarkSkinTone; |
// *** 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 { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
... |
import React from 'react'
import ComicsList from '../../Components/ComicsList';
import Header from '../../Components/Header'
import Highlights from '../../Components/Highlights';
import MarqueeAnimation from '../../Components/MarqueeAnimation';
import { useTheme } from '../../context/ThemeContext';
import './index.css'... |
import * as path from "path";
import {describe, it} from "mocha";
import {expect} from "chai";
import { KurlClient } from "./";
import { Installer } from "../installers";
import * as jwt from "jsonwebtoken";
import * as url from "url";
import * as _ from "lodash";
const kurlURL = process.env.KURL_URL || "http://local... |
import { coins, BaseCoin as CoinConfig } from '@bitgo/statics';
import { BuildTransactionError } from './coin/baseCoin/errors';
import Eddsa from './mpc/tss';
export { Eddsa };
import * as crypto from './utils/crypto';
export { crypto };
import { Ed25519KeyDeriver } from './utils/ed25519KeyDeriver';
export { Ed25519K... |
import { Logger } from './Logger';
// /**
// * Represents a type that has a `logger` property
// * containing the Logger singleton instance
// */
// // export type Loggable<T> = T & { logger: Logger };
// /**
// * Class decorator that transforms a class to Loggable<T>.
// * Regrettably works but is not properly ... |
import GroundRaysView from './ground-rays-view';
const DEG_2_RAD = Math.PI / 180;
const GROUND_FRACTION = 0.5;
const NUM_BEAMS = 8;
const RAYS_ANGLE = 90 * DEG_2_RAD;
const SKY_COLOR = '#000';
export default class extends GroundRaysView {
render() {
this.drawSky(SKY_COLOR);
this.drawGround(this.solarAngle, ... |
import chalk from 'chalk';
import * as semver from 'semver';
import { ProjectType, TreatableAilment } from '../../../definitions';
import { BUILD_SCRIPT } from '../../build';
import { Ailment, AilmentDeps } from '../../doctor';
import { SERVE_SCRIPT } from '../../serve';
import { pkgFromRegistry, pkgManagerArgs } from... |
/**
* @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 {ElementRef, OnChanges, OnDestroy, SimpleChanges} from '@angular/core';
import {Observable, Subject} from 'rxjs... |
<TS language="es_UY" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clic derecho para editar dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
import React from 'react';
import { Typography, TypographyProps } from '@material-ui/core';
export const H6: React.FC<TypographyProps> = (props) => {
return <Typography variant="h6" {...props} />;
}; |
import { Routes ,RouterModule} from '@angular/router';
import { DashboardComponent } from '../../pages/dashboard/dashboard.component';
import { IconsComponent } from '../../pages/icons/icons.component';
export const AdminLayoutRoutes: Routes = [
{ path: 'dashboard', component: DashboardComponent },
// { p... |
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type { LensExtensionId } from "../../../../extensions/lens-extension";
import type { ExtensionLoader } from "../../../../extensions/extension-loader";
interface Depe... |
import {Component, OnInit, Input} from '@angular/core';
@Component({
selector: 'app-error',
templateUrl: './error.component.html',
styleUrls: ['./error.component.css']
})
export class ErrorComponent implements OnInit {
@Input() message: string;
@Input() action = 'GOT IT';
constructor() {
}
ngOnInit(... |
/* tslint:disable */
/* eslint-disable */
// Octopus REST API v2021.2.1387
import globalAxios, { AxiosPromise, AxiosInstance } from "axios";
import { Configuration } from "../configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApi... |
import {HalResource} from 'core-app/modules/hal/resources/hal-resource';
import {AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewChild, TemplateRef, ContentChild, AfterViewInit, NgZone} from '@angular/core';
import {I18nService} from 'core-app/modules/co... |
import { Injectable } from '@angular/core';
import { catchError, map, tap } from 'rxjs/operators';
import { NotificationService } from 'patternfly-ng/notification/notification-service/notification.service';
import { Observable } from 'rxjs/Observable';
import { HttpClient } from '@angular... |
declare function logBoolean(idx: u32, b: boolean): void
declare function logFloat(idx: u32, f: f32): void
declare function logInt(idx: u32, i: i32): void
const U8 = sizeof<u8>()
const U16 = sizeof<u16>()
const U32 = sizeof<u32>()
const F32 = sizeof<f32>()
const FLOATS_IN_VECTOR = 3
const ERROR: usize = 65535
const ... |
import { Schema, Document } from "mongoose";
export {};
const mongoose = require('mongoose')
const noteSchema : Schema = new mongoose.Schema({
title: {
type: String,
required: true,
trim: true,
validate(value : String) {
if (value.length > 99) {
throw ne... |
import * as mat2d from "../mat2d"
describe("mat2d", function() {
let out, matA, matB, oldA, oldB, identity, result;
beforeEach(function() {
matA = [1, 2,
3, 4,
5, 6];
oldA = [1, 2,
3, 4,
5, 6];
matB = [7, 8,
... |
import IGlobalDefault from "./IGlobalDefault";
import ResourceNotResourceGroup from "./resourceNotResourceGroup";
export default class ApplicationInsights extends ResourceNotResourceGroup
implements IGlobalDefault {
private isGlobalDefaultProperty: boolean;
public get isGlobalDefault(): boolean {
r... |
import abiDecoder, { DecodedData } from 'abi-decoder'
import config from 'config'
import { Eth } from 'web3-eth'
import Utils from 'web3-utils'
import { EventLog } from 'web3-core'
import { RnsBaseService, RnsServices } from '.'
import { getBlockDate } from '../../blockchain/utils'
import { Logger, SupportedServices, ... |
import { expect } from "chai";
import * as nock from "nock";
import * as sinon from "sinon";
import { FirebaseError } from "../../error";
import { firebaseExtensionsRegistryOrigin } from "../../api";
import * as extensionsApi from "../../extensions/extensionsApi";
import * as extensionsHelper from "../../extensions/ex... |
import 'core-js/es6';
import 'core-js/es7/reflect';
import 'zone.js/dist/zone';
if (process.env.APP_ENV === 'production') {
// Production
} else {
// Development
Error.stackTraceLimit = Infinity;
require('zone.js/dist/long-stack-trace-zone');
} |
import axios from 'axios';
const api = axios.create({
baseURL: 'http://192.168.18.16:3333',
});
export default api; |
import * as Enzyme from 'enzyme'
import * as React from 'react'
import { act } from 'react-dom/test-utils'
import { mountWithTheme } from '~/__test__/utils'
import * as Switch from './index'
describe('Switch', () => {
let wrapper: Enzyme.ReactWrapper
let mockOnClick: jest.Mock
beforeEach(() => {
m... |
import { TimeRange } from '@grafana/data';
import { JsonDataSource } from 'datasource';
import React, { useState } from 'react';
import { JsonApiQuery } from '../types';
import { QueryEditor } from './QueryEditor';
interface VariableQueryProps {
query: JsonApiQuery;
onChange: (query: JsonApiQuery, definition: stri... |
import React, { Component } from 'react';
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { connect } from 'react-redux';
import FSNetwork from '@brandingbrand/fsnetwork';
import qs from 'qs';
import pushRoute from '../lib/push-route';
import { AppConfigType, DrawerConfig } from '../type... |
export interface VesselStats {
surveillance: number;
retrieval: number;
speed: number;
range: number;
favor: number;
} |
import type { GetStaticPropsContext } from 'next'
import { getConfig } from '@lib/middlewareAPI'
import { getAllPages } from '@lib/middlewareAPI'
import { useCart } from '@lib/hooks'
import { usePrice } from '@lib/hooks'
import { Layout } from '@components/common'
import { Button } from '@components/ui'
import { Bag, C... |
import {EventEmitter, Output, Directive, HostListener} from "@angular/core";
@Directive({
selector: '[collapse]',
exportAs: 'Collapse'
})
export class CollapseDirective {
@Output() collapse = new EventEmitter<boolean>();
skipClick:boolean;
expanded:boolean;
constructor() {}
toggle() {
... |
import { setPropertyDidChange } from '@glimmer/tracking';
import App from './main';
const app = new App();
const containerElement = document.getElementById('app');
setPropertyDidChange(() => {
app.scheduleRerender();
});
app.renderComponent('<%= component %>', containerElement, null);
app.boot(); |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export { createApplication } from './application/application';
export * from './application/tokens';
export * from './application/types';
export { createModule } from './module/module';
export * from './module/types';
export * from './module/metadata';
export * from './module/tokens';
export {
Injector,
Inject,
I... |
// Remove linting comments in real application!
// @ts-ignore
import { registerAs } from '@nestjs/config'
import { QueueModuleOptions, QueueType } from '@sclable/nestjs-queue'
// eslint-disable-next-line import/no-default-export
export default registerAs(
'queue',
(): QueueModuleOptions => ({
type: (process.e... |
import React from 'react';
import { pureVersionValidator } from '../../../utils/operatorValidators';
import { getValueError } from '../../../utils/operatorValidation';
import EditNameInChannelModal from './EditNameModal';
export interface EditVersionNameModalProps {
name: string,
allVersions: string[],
on... |
import type { ComputedRef, InjectionKey, Ref } from 'vue'
import type { ColType, FormItemProps, FormLabelAlign } from './types'
export interface FormContext {
colonless: ComputedRef<boolean>
controlCol: Ref<ColType>
hasFeedback: Ref<boolean>
labelAlign: ComputedRef<FormLabelAlign>
labelCol: Ref<ColType>
}
e... |
import * as React from 'react';
import { StandardProps } from '../@types/common';
export interface ProgressCircleProps extends StandardProps {
/** Line color */
strokeColor?: string;
/** The end of different types of open paths */
strokeLinecap?: 'butt' | 'round' | 'square';
/** Tail color */
trailColor?... |
import { getCustomRepository, Repository } from "typeorm";
import { Setting } from "../entities/Setting";
import { SettingsRepository } from "../repositories/SettingsRepository"
interface ISettingsCreate {
chat: boolean;
username: string;
}
class SettingsService {
private settingsRepository : Repository ... |
/**
* infer first element type
*/
export type First<T extends unknown[]> = T extends [infer F, ...unknown[]]
? F
: never
/**
* infer last element type
*/
export type Last<T extends unknown[]> = T extends [...unknown[], infer F]
? F
: never
/**
* infer promise instance value
*/
export type PromiseValue<P... |
export const userOutlayTags: TagItem[] = [
{ title: '餐饮', value: 'catering' },
{ title: '外卖', value: 'takeaway' },
{ title: '零食', value: 'snack' },
{ title: '小吃', value: 'refreshments' },
{ title: '酒水', value: 'drink' },
{ title: '购物', value: 'shopping' },
{ title: '日用品', value: 'commodity' },
{ title: ... |
import { SafeResourceUrl } from "@angular/platform-browser";
import { isObject } from 'util';
export class FileFullOutPut implements IFileFullOutPut{
id:number;
name: string;
type: string;
size: number;
path: string;
constructor(data?: IFileFullOutPut) {
if (data) {
for (va... |
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { UserOrderByRelevanceFieldEnum } from './user-order-by-relevance-field.enum';
import { SortOrder } from '../prisma/sort-order.enum';
@InputType()
export class UserOrderByRelevanceInput {
@Field(() => [UserOrderByRelevance... |
import NotFoundPage from 'src/components/Page/Errors/NotFound'
export default NotFoundPage |
import React from 'react';
import { QueryBuilderProps } from '../types';
import { useScopedQueryBuilderFieldProps, Input, Multiple, Row } from '../abstract';
import { ExtractionFn } from '../extractionfn';
import { FilterTuning } from '.';
export const In = (props: QueryBuilderProps) => {
const scopedProps = useScop... |
import React, {PureComponent} from 'react'
import {connect} from 'react-redux'
import _ from 'lodash'
import GraphTypeSelector from 'src/dashboards/components/GraphTypeSelector'
import GaugeOptions from 'src/dashboards/components/GaugeOptions'
import SingleStatOptions from 'src/dashboards/components/SingleStatOptions'... |
import React, { useCallback, useRef } from 'react';
import {
Image,
KeyboardAvoidingView,
Platform,
View,
ScrollView,
TextInput,
Alert,
} from 'react-native';
import { Form } from '@unform/mobile';
import { FormHandles } from '@unform/core';
import * as Yup from 'yup';
import Icon from 'react-native-vecto... |
import { Avatar, Dropdown, Menu } from 'antd';
import styles from './index.less';
import { LogoutOutlined } from '@ant-design/icons';
export default function HeaderMenu() {
const options = (
<Menu className={styles.menu}>
<Menu.Item key="center">
<LogoutOutlined /> Logout
</Menu.Item>
</M... |
import React from 'react'
import ReactDOM from 'react-dom'
import * as serviceWorker from './serviceWorker'
import AppNavbar from './containers/appNavbar'
import Container from 'react-bootstrap/Container'
import Col from 'react-bootstrap/Col'
import Row from 'react-bootstrap/Row'
import 'bootstrap/dist/css/bootstrap.mi... |
/**
* NuanceModuleConfig-Schnittstelle
*
* API-Version: 1.0
* Datum: 13.03.2019
*
* Letzte Aenderung: 13.03.2019
* Status: rot
*
* @module speech/nuance
* @author SB
*/
/** @export
* NuanceConfigData Schnittstelle fuer Konfigurationsparameter von Nuance
*/
export interface NuanceModuleConfigInterf... |
import MemberInvitation_ from './memberInvitation';
import Graph_ from './graph';
export declare namespace Detective {
const MemberInvitation: typeof MemberInvitation_;
const Graph: typeof Graph_;
type MemberInvitation = MemberInvitation_;
type Graph = Graph_;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.