text stringlengths 10 953k |
|---|
import { action } from '@storybook/addon-actions'
import { UiButtonCloseModel, UiButtonClose } from '@uicr/button-close'
import { install } from '../'
export default {
title: 'UI/Tailwind/CloseButton',
component: UiButtonClose,
}
const Template = (args: UiButtonCloseModel) => ({
components: { UiButtonClose },
... |
//------------------------------------------------------------------------------
// MIT License
//
// Copyright (c) 2021 Tobias Barendt
//
// 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 w... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap';
import { NgxBootstrapDialogService } from './ngx-bootstrap-dialog.service';
import { NgxBootstrapDialogComponent } from './ngx-bootstrap-dialog/ngx-bootstrap-dialog.com... |
import { bx } from '@hertzg/bx';
import { parsePacket } from '../parsePacket';
import { serializePacket } from '../serializePacket';
import { parse, serialize } from '../parselize';
import { HEADER } from '../constants';
import { ISerializablePacket, PayloadType } from '../index';
jest.mock('../serializePacket');
jest... |
/*
* Copyright 2021 Collate
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... |
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-link',
templateUrl: './link.component.html',
})
export class LinkComponent {
@Input() href = '';
} |
import React, { PureComponent } from 'react';
import styled, { css } from 'styled-components';
import { gray300, gray500, gray900 } from '../../../core/Colors';
import { body1 } from '../../../core/TextStyles';
import RadioIcon from './RadioIcon';
export interface RadioButtonContainerProps {
stackingDirection?: 'ho... |
// *** 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 * as utilities from "../utilities";
// Export members:
export * from "./getListener";
export * from "./getListener... |
/**
* qrReader.client
*/
/* Node modules */
/* Third-party modules */
import { Vue } from 'vue-property-decorator';
/* Files */
const VueQrcodeReader = require('vue-qrcode-reader');
Vue.use(VueQrcodeReader); |
import { render } from '@testing-library/react-native'
import * as React from 'react'
import { Provider } from 'react-redux'
import { Currency } from 'src/utils/currencies'
import { createMockStore } from 'test/utils'
import { mockTestTokenAddress } from 'test/values'
import SendOrRequestBar from './SendOrRequestBar'
... |
import * as http from "http";
import * as util from "util";
import * as vscode from "vscode";
import {BvspConstants} from "../BvspConstants";
import JsonRpc from "./JsonRpc";
import JsonRpcHelper from "./JsonRpcHelper";
import RequestMessage from "./RequestMessage";
import ResponseMessage from "./ResponseMessage";
exp... |
import { json as bodyParserJson } from "body-parser";
import { v4 as uuid } from "uuid";
import {
ObjectStore,
PushTarget,
Stream,
StreamPatchPayload,
User,
} from "../schema/types";
import { DBStream } from "../store/stream-table";
import { DBWebhook } from "../store/webhook-table";
import {
TestClient,
... |
import globby from 'globby';
import { multiAdapterRunners, setupFromConfig, testConfig } from '@keystone-next/test-utils-legacy';
import { createSchema, list } from '@keystone-next/keystone/schema';
import { text } from '@keystone-next/fields';
import { BaseKeystone } from '@keystone-next/types';
const testModules = g... |
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
declare module '*.css';
declare module '*.scss';
declare module "*.glsl" {
const value: string;
export default value;
}
declare module "*.frag" {
const value: string;
export defau... |
export * from "./HomeHero";
export * from "./HomeListings";
export * from "./HomeListingsSkelton"; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Test, TestingModule } from '@nestjs/testing';
import { ClientsController } from './clients.controller';
import { ClientsService } from './clients.service';
describe('ClientsController', () => {
let controller: ClientsController;
beforeEach(async () => {
const module: TestingModule = await Test.create... |
import {
ReduxAction,
ReduxActionTypes,
ReduxActionErrorTypes,
ReduxActionWithoutPayload,
} from "constants/ReduxActionConstants";
import { PluginFormPayload } from "api/PluginApi";
import { DependencyMap } from "utils/DynamicBindingUtils";
export const fetchPlugins = (payload?: {
orgId?: string;
}): ReduxAc... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { PetFoodModel } from '../shared/model/petFood-food.model';
@Component({
selector: 'app-food',
templateUrl: './food.component.html',
styleUrls: ['./food.component.css']
})
export class FoodComponent implem... |
export * from "./Config"; |
import { DebounceSettings } from "lodash";
import debounce from "lodash/debounce";
import isEqual from "lodash/isEqual";
import * as qs from "qs";
import * as React from "react";
import RestfulReactProvider, { InjectedProps, RestfulReactConsumer, RestfulReactProviderProps } from "./Context";
import { composePath, comp... |
/**
* Copyright (c) ProductBoard, Inc.
* All rights reserved.
*/
import * as ts from 'typescript';
const DEFAULT_SELECT_NAME = 'select';
const VALID_PROPERTY_NAMES = new Set(['noMemo', 'customMemo']);
export const getSelectMetadata = (
node: ts.CallExpression,
validIdentifiers: Set<string> = new Set([DEFAULT_... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ServiceWorkerModule } from '@angular/service-worker';
import { environment } from '../environments/envir... |
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HospitalsViewComponent } from './hospitals-view.component';
describe('HospitalsViewComponent', () => {
let component: HospitalsViewComponent;
let fixture: ComponentFixture<HospitalsViewComponent>;
beforeEach(async(() => {
Te... |
import {
CONTROLLER_KEY,
getClassMetadata,
listModule,
WEB_ROUTER_KEY,
} from '@midwayjs/decorator'
import { HttpMethod } from '@midwayjs/hooks-core'
import { HooksComponent } from '../component'
import { MidwayFrameworkAdapter } from '../component/adapter'
describe('component', () => {
const framework = new... |
<TS language="uk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Клікніть правою кнопкою для редагування адреси або мітки</translation>
</message>
<message>
<source>Create a new address</source>
... |
import React from 'react';
import { useHistory } from 'react-router-dom';
import { FiArrowLeft } from 'react-icons/fi';
import mapMarkerImg from '../images/map-marker.svg';
import '../styles/components/Sidebar.css';
const Sidebar: React.FC = () => {
const { goBack } = useHistory();
return (
<aside className="... |
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { PostService } from './post.service';
import { CreatePostDto } from './dto/create-post.dto';
import { UpdatePostDto } from './dto/update-post.dto';
@Controller('post')
export class PostController {
constructor(private readonl... |
import { AccountDebited, EffectType } from 'stellar-sdk/lib/types/effects';
import { Client } from '../../../../clients';
import { Effect } from './Effect';
import { EffectTypeNames } from '.';
/**
* Structure representing a Stellar Account Debited Effect.
*/
export class AccountDebitedEffect extends Effect<EffectT... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GiAutogun: IconType; |
import { Organizations } from "../Organizations";
import { OrganizationsClient } from "../OrganizationsClient";
import {
ListTargetsForPolicyCommand,
ListTargetsForPolicyCommandInput,
ListTargetsForPolicyCommandOutput,
} from "../commands/ListTargetsForPolicyCommand";
import { OrganizationsPaginationConfiguration... |
import { Component, OnInit } from '@angular/core';
import {UserService} from '../Services/user.service';
declare interface TableData {
headerRow: string[];
dataRows: string[][];
}
@Component({
selector: 'table-cmp',
moduleId: module.id,
templateUrl: 'branches.component.html'
})
export class Bra... |
import { Joi as BaseJoi } from "celebrate";
import type { Root, StringSchema } from "joi";
import { Types } from "mongoose";
/* ------------------------- Library ------------------------- */
export const Joi: JoiI = BaseJoi.extend({
base: BaseJoi.string(),
type: "string",
messages: {
"string.objectId": "nee... |
/*
* Copyright © 2021 Atomist, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
export { auth } from './route/authorizer'
export { create } from './route/create'
export { remove } from './route/delete'
export { get } from './route/get'
export { list } from './route/list'
export { update } from './route/update' |
const fs = require('fs');
let _write = (file, data) => {
let { join } = require('path');
let dir = join(__dirname, `../../../../logs/`);
if(!fs.existsSync(dir)){
fs.mkdirSync(dir)
}
fs.appendFile(file, data, (err) => {
if (err)
{
thro... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SendingTransactionComponent } from './sending-transaction.component';
describe('SendingTransactionComponent', () => {
let component: SendingTransactionComponent;
let fixture: ComponentFixture<SendingTransactionComponent>;
before... |
export { default as ButtonDefault } from './buttons/ButtonDefault';
export { default as ButtonOutline } from './buttons/ButtonOutline';
export { default as InputText } from './inputs/InputText';
export { default as HeaderBack } from './headers/HeaderBack'; |
import React from "react";
import Twitter from "../assets/twitter-alt.svg";
import GitHub from "../assets/github-alt.svg";
import config from "../lib/config";
export function SocialList({}) {
return (
<div className="container">
<a
title="Twitter"
href={`https://twitter.com/${config.twitter... |
declare const createAttributeProxy: (caseInsensitive: boolean) => any;
declare class MockAttributeMap {
caseInsensitive: boolean;
constructor(caseInsensitive?: boolean);
get length(): number;
item(index: number): MockAttr;
setNamedItem(attr: MockAttr): void;
setNamedItemNS(attr: MockAttr): void;
getNamedI... |
/**
* @module Engine.Maps
* Maps & Coords
* @preferred
*/
import { IStateServer } from '@engine/reducers';
import { Coord, CoordEnvironmentFrontend, Direction, Plan, RawMap } from '@models';
import { List } from 'immutable';
import { Store } from 'redux';
export class MapsTools {
public static getCoordFromPosi... |
import React from 'react'
import type { IconProps } from '../../types'
const ArrowUpRightCircleFill: React.FC<IconProps> = ({ size, fill, style, className }) => {
return <svg className={className} style={style} fill={fill} xmlns="http://www.w3.org/2000/svg" height={size ?? "1em"} viewBox="0 0 56 56"><path d="M 27.9... |
// Copyright 2020-2022 OnFinality Limited authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { OnEvent } from '@nestjs/event-emitter';
import { Interval } from '@nestjs/schedule';
import dayjs from 'dayjs';
import duration from 'dayjs/plugin/duration';
import { getLogger } from '../utils/logger';
imp... |
import { Injectable } from '@angular/core';
import { DotnetService } from './dotnet.service';
import { RunnerInput } from '../models/runner-input';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class RunnerService {
constructor(private dotnet: DotnetService) { }
loadAndRun(input... |
<TS language="be_BY" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Правы клік, каб рэдагаваць адрас ці метку</translation>
</message>
<message>
<source>Create a new address</source>
<tran... |
import { Uri } from 'vscode';
import { DeepReadonly } from '../types';
import { EngineSchema } from './schema';
export function getClusterDisplayName(clusterUri: string | EngineSchema | DeepReadonly<EngineSchema>) {
let uri = '';
if (typeof clusterUri === 'string') {
uri = clusterUri;
} else {
... |
import React from 'react'
const CallMeHandLightSkinTone = ({ size, rem }: {
size: number | string,
rem?: boolean
}) => {
const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px`
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style={{ width: width }}><path fi... |
// errors
export * from "./errors/validator-error";
// validation framework core
export * from "./ivalidatable";
export * from "./validatable";
export * from "./validation-context";
export * from "./validation-decorator";
export * from "./validation-level";
export * from "./validation-message";
export * from "./valida... |
// Copyright 2020-2022 OnFinality Limited authors & contributors
// SPDX-License-Identifier: Apache-2.0
import AddAggregateTypesPlugin from '@graphile/pg-aggregates/dist/AddAggregateTypesPlugin';
import AddConnectionAggregatesPlugin from '@graphile/pg-aggregates/dist/AddConnectionAggregatesPlugin';
import AddConnectio... |
export interface ILegReturnRatePriceGrp {
LegReturnRatePriceBasis?: number;
LegReturnRatePrice?: number;
LegReturnRatePriceCurrency?: string;
LegReturnRatePriceType?: number;
} |
import request from 'supertest';
import { app } from '../../app';
import { Ticket } from '../../models/ticket';
import { natsWrapper } from '../../nats-wrapper';
it('has a route handler listening to /api/tickets for post requests', async () => {
const response = await request(app).post('/api/tickets').send({});
... |
export * from './client-plugin';
export * from './logger';
export * from './plugin';
export * from './rest-function';
export * from './rest-meta';
export * from './server-plugin'; |
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
import {
TypedMap,
Entity,
Value,
ValueKind,
store,
Address,
Bytes,
BigInt,
BigDecimal
} from "@graphprotocol/graph-ts";
export class SellOrder extends Entity {
constructor(id: string) {
super();
this.set("id", Value.fromStr... |
import { Test, TestingModule } from '@nestjs/testing';
import { ConfigModule } from './../config';
import { AppController } from './app.controller';
import { AppService } from './app.service';
describe('AppController', () => {
let app: TestingModule;
beforeAll(async () => {
app = await Test.createTestingModul... |
/** types of supported buffer read and write operations. */
export enum BufferType {
UInt8,
UInt16BE,
UInt32BE,
Function
}
/** map of BufferType to length used in byte. */
export const BufferTypeLength: number[] = [];
BufferTypeLength[BufferType.UInt8] = 1;
BufferTypeLength[BufferType.UInt16BE] = 2;
BufferType... |
import execa = require('execa')
// git checks logic is from https://github.com/sindresorhus/np/blob/master/source/git-tasks.js
export async function isGitRepo () {
try {
await execa('git', ['rev-parse', '--git-dir'])
} catch (_) {
return false
}
return true
}
export async function getCurrentBranch ()... |
import React, { useState, useEffect } from 'react'
import { Grid, CssBaseline, Toolbar } from '@material-ui/core'
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import Header from './components/Header/Header'
import YourCode from './components/YourCode/YourCode'
import Results from './comp... |
import { MockElement } from './node';
export function dataset(elm: MockElement) {
const ds: any = {};
const attributes = elm.attributes;
const attrLen = attributes.length;
for (let i = 0; i < attrLen; i++) {
const attr = attributes.item(i);
const nodeName = attr.nodeName;
if (nodeName.startsWith('... |
// module MobileApp {
// // Mobile version
// import IFeature = csComp.Services.IFeature;
// export interface IAppLocationService extends ng.ILocationService {
// $$search: { layers: string };
// }
// export interface IAppScope extends ng.IScope {
// vm: AppCtrl;
// title: ... |
import { Express, Router } from 'express'
import { readdirSync } from 'fs'
export default (app: Express): void => {
const router = Router()
app.use('/api', router)
readdirSync(`${__dirname}/../routes`).map(async file => {
if (!file.includes('.spec.')) {
(await import(`../routes/${file}`)).default(route... |
import React, { useEffect } from 'react'
import { useRouter } from 'next/router'
import { observer } from 'mobx-react-lite'
import { find } from 'lodash'
import { Typography } from '@supabase/ui'
import { API_URL } from 'lib/constants'
import { withAuth, useStore } from 'hooks'
import { post } from 'lib/common/fetch'
... |
/**
* @license
* 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 ... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="ca-AD">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About CruzAzul</source>
<translation type="unfinished"... |
/**
* Created by Dima on 27/02/2019.
*/
import DataAccess = require('../DataAccess');
import ICourseModel = require("../../model/interfaces/ICourseModel");
var mongoose = DataAccess.mongooseInstance;
var mongooseConnection = DataAccess.mongooseConnection;
class CourseSchema {
static get schema () {
va... |
import express from 'express';
import 'express-async-errors';
import cors from 'cors';
import './database/connection';
import routes from './routes';
import errorHandler from './errors/handler';
const app = express();
app.use(cors());
app.use(express.json());
app.use(routes);
app.use(errorHandler);
app.listen(3333)... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-r... |
import { ReduxApiActionGroup, ReduxApiActionGroupState, SagaFunction } from './types'
import { combineReducers, Reducer, ReducersMapObject } from 'redux'
import createReducer from './create.reducer'
import createMiddleware from './create.middleware'
import initialState from './utils/initialState'
function reducerBuild... |
import { Component, NgZone, OnInit, ChangeDetectorRef } from '@angular/core';
import { Router } from '@angular/router';
import { Board } from '../../models/board';
import { BoardService } from '../../services/board.service';
import { ActivatedRoute } from '@angular/router';
import { Card } from '../../models/card';
imp... |
/**
* @license
* Copyright (c) 2017 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io... |
import { defineNuxtConfig } from 'nuxt3'
import svgLoader from "vite-svg-loader"
export default defineNuxtConfig({
publicRuntimeConfig: {
storyblokVersion: process.env.STORYBLOK_VERSION || "draft"
},
privateRuntimeConfig: {
storyblokApiKey: process.env.STORYBLOK_API_KEY
},
vite: {
plugins: [svgLo... |
/*
* 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 { getServiceMapServiceNodeInfo } from './get_service_map_service_node_... |
<TS language="zh_TW" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>右鍵點一下來修改位址或標記</translation>
</message>
<message>
<source>Create a new address</source>
<translation>建立新的位址</translation>... |
import {Button, CircularProgress, createStyles, Typography, WithStyles, withStyles} from "@material-ui/core"
import * as React from "react"
import {WithNotifications, withNotifications} from "./Notification/NotificationUtils"
const styles = createStyles({
loadableWrapper: {
margin: "auto",
textAlig... |
import { ScullyConfig, RouteTypes, setPluginConfig } from '@scullyio/scully';
import { TocConfig, getTocPlugin } from 'scully-plugin-toc';
import { getHttp404Plugin } from '@gammastream/scully-plugin-http404';
import { getSitemapPlugin } from '@gammastream/scully-plugin-sitemap';
const Http404Plugin = getHttp404Plugin... |
import * as React from 'react';
import { NavLink } from 'react-router-dom';
import { getPrefix } from '../../static/function';
const OVERVIEWTABS = (
<NavLink to='/oview' activeClassName='selected' className='common-tabs'>
Overview
</NavLink>
);
const DETAILTABS = (
<NavLink to='/detail' activeCl... |
/*
* Copyright © Aleksey Nemiro, 2016. 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 ... |
export declare const root = "root_fdbb71e5";
export declare const measured = "measured_fdbb71e5"; |
import { findPrimes, range } from './integers';
describe('integersUtils', function() {
it('should range function work', function() {
expect(range(5, 8)).toEqual([5, 6, 7, 8]);
expect(range(5, 5)).toEqual([5]);
expect(range(-1, 5)).toEqual([-1, 0, 1, 2, 3, 4, 5]);
expect(range(5, 1)).toEqual([]);
})... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {FonosError, FonosFailedPrecondition} from "@fonos/errors";
import {UploadObjectRequest} from "../service/protos/storage_pb";
/*
* Copyright (C) 2021 by Fonoster Inc (https://fonoster.com)
* http://github.com/fonoster/fonos
*
* This file is part of Project Fonos
*
* Licensed under the MIT License (the "Li... |
import React, { FC, memo } from 'react';
import { LayoutChangeEvent, StyleSheet, View, ViewStyle } from 'react-native';
import Animated, { EasingNode } from 'react-native-reanimated';
import { WithOuterLayoutProps } from './interfaces';
const { Value, Clock, block, cond, set, startClock, timing, eq } = Animated;
type... |
import { HttpClient } from '@angular/common/http';
import { Injectable, OnDestroy } from '@angular/core';
import { Socket } from 'ngx-socket-io';
import { BehaviorSubject, Observable, Subject } from 'rxjs';
import { take, takeUntil } from 'rxjs/operators';
import { isOfType, reviveDates } from '../utils';
import { Web... |
import type { StackScreenProps } from '@react-navigation/stack'
import { CredentialRecord } from '@aries-framework/core'
import { useCredentialById } from '@aries-framework/react-hooks'
import React from 'react'
import { useTranslation } from 'react-i18next'
import { StyleSheet, Text, TouchableOpacity, View } from 're... |
import React from "react";
import type { NextPage } from "next";
import { CoCDetails } from "@jsdayie/pages";
const CodeOfConduct: NextPage = () => {
return <CoCDetails />;
};
export default CodeOfConduct; |
// Type definitions for nunjucks
// Project: http://mozilla.github.io/nunjucks/
// Definitions by: Ruben Slabbert <https://github.com/RubenSlabbert/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module nunjucks {
function render(name: string, context?: Object): string;
function re... |
import {
AfterViewInit, ChangeDetectorRef, Component, ContentChildren, HostBinding, Input, OnChanges, QueryList, Type,
} from "@angular/core";
import { FormControl } from "@angular/forms";
import { AsyncTask, Dto, ServerError, autobind } from "@batch-flask/core";
import { SanitizedError, log } from "@batch-flask/ut... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/**
* @description 插入、上传图片
* @author wangfupeng
*/
import Editor from '../../editor/index';
import { MenuActive } from '../menu-constructors/Menu';
import PanelMenu from '../menu-constructors/PanelMenu';
declare class Image extends PanelMenu implements MenuActive {
private imgPanelConfig;
constructor(editor:... |
// Copyright 2021 Vircadia contributors.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
import { store } from "quasar/wrappers";
import { InjectionKey } from "vue";
import {
ActionContext,
createStore,
Stor... |
import { AfterViewInit, Component, OnInit, ViewChild, OnDestroy, Renderer2 } from '@angular/core';
import { RoleService } from '../../../../common/services/role.service';
import { Subject } from 'rxjs';
import { DataTableDirective } from 'angular-datatables';
import { ToastrService } from 'ngx-toastr';
import { LoaderS... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'my-angular-project';
} |
import { ipcRenderer, remote } from 'electron';
import { observable, computed } from 'mobx';
import { getTheme } from '~/utils/themes';
import { ISettings } from '~/interfaces';
import { DEFAULT_SETTINGS } from '~/constants';
export declare interface DialogStore {
onVisibilityChange: (visible: boolean, ...args: any[... |
// Type definitions for serverless-mysql
import * as MySQL from "mysql";
// https://github.com/microsoft/TypeScript/issues/8335#issuecomment-215194561
declare namespace serverlessMysql {
export type Config = {
/**
* Function mysql library
*/
library?: Function;
/**
* Function promise lib... |
export const ENVS = ["production", "development"] as const;
export type ENV_TYPE = typeof ENVS[number]; |
import { SQSEventCondition } from '../interfaces/SQSEventCondition';
import { SQSRoutes } from '../SQSRoutes';
import { LoggerConfig, Logger, LoggerService } from '@mu-ts/logger';
/**
*
* @param route for this function.
*/
export function sqsListener(condition?: SQSEventCondition, priority?: number) {
return func... |
import {
OnTransitionEndFn,
OnTransitionErrorFn,
OnTransitionStartFn,
Transitions,
} from '../../common/finite-state-machine/types';
import { InjectableStrategy } from '../../common/types/injectable-strategy';
import {
PaymentState,
PaymentTransitionData,
} from '../../service/helpers/payment-st... |
import { IsNotEmpty, MaxLength } from 'class-validator';
export class CreateTodoDto {
@IsNotEmpty()
@MaxLength(15, { message: 'Max length is 15 characters.' })
title: string;
@IsNotEmpty()
description: string;
} |
import { RuleConfiguration } from '../../../support/Rule.d'
export type Options = Array<{
groups?: Array<Array<string>>
}>
type Configuration = RuleConfiguration<'simple-import-sort/imports', 'eslint-plugin-simple-import-sort', Options>
export default Configuration |
module app.models {
"use strict";
export class Constants {
public static App =
{
AppConfigModuleName: "appConfig",
AngularAppName: "app"
};
public static ControllerNames = {
Root: "rootCtrl",
Search: "searchCtrl",
Share... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.