text stringlengths 10 953k |
|---|
import { Subjects } from '../../base/subjects'
export interface TicketUpdatedEvent {
subject: Subjects.TicketUpdated
data: {
id: string
version: number
title: string
price: number
userId: string
orderId?: string
}
} |
import 'source-map-support/register'
import { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda'
import * as middy from 'middy'
import { CreatetravelRequest } from '../../requests/CreatetravelRequest'
import { createtravel } from '../../businessLogic/travels'
import { getToken } from '../../auth/utils'
i... |
import { IViewOutput } from './view-output.interface';
export class ViewOutputImplementation<TViewModel> implements IViewOutput<TViewModel> {
private _result: TViewModel;
private _error: string;
constructor(error: string, result: TViewModel) {
this._result = result;
this._error = error;
}
public get... |
import { V1ProjectContext } from 'contexts/v1/projectContext'
import { V1UserContext } from 'contexts/v1/userContext'
import { BigNumber } from '@ethersproject/bignumber'
import { useContext } from 'react'
import { TransactorInstance } from '../../Transactor'
export function useAddToBalanceTx(): TransactorInstance<{
... |
import * as React from 'react'
import { Link } from 'react-router-dom'
import { Markdown } from '../../../../shared/src/components/Markdown'
import { ConfiguredRegistryExtension } from '../../../../shared/src/extensions/extension'
import { isErrorLike } from '../../../../shared/src/util/errors'
import { renderMarkdown ... |
import React from 'react';
const GlobeLogo = ({ color = '' }: { color?: string }): JSX.Element => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
... |
import { IClanWarClan, IClanWarParticipant } from './shared';
/**
* Current clan war interfaces
*/
export interface ICurrentClanWar {
state: string;
collectionEndTime: string;
clan: IClanWarClan;
participants: IClanWarParticipant[];
} |
import { fetchAllCategories } from '@/api'
import { Categories } from '@/models/Post.class'
import { defineStore } from 'pinia'
export const useCategoryStore = defineStore({
// id is the name of the store
// it is used in devtools and allows restoring state
id: 'categoryStore',
state: () => ({
categories: ... |
import {result} from 'underscore';
import {getAttributesMapKey} from '../utils/get-attributes-map-key';
import {IDynamicInstanceDefinition, IDynamicInstances} from '../utils/interfaces';
export function dynamicInstance(definition: IDynamicInstanceDefinition): any {
return function (target: any, propertyKey): void {
... |
/* Internal Imports */
import {
JsonRpcErrorResponse,
JsonRpcRequest,
JsonRpcResponse,
} from './transport.types'
/**
* Checks if a JSON-RPC response is an error response.
* @param response Response to check.
* @returns `true` if the response has an error, `false` otherwise.
*/
export const isJsonRpcErrorRes... |
import {Component} from '@angular/core';
import {DEMO_SNIPPETS} from './demos';
@Component({
selector: 'ngbd-typeahead',
template: `
<ngbd-component-wrapper component="Typeahead">
<ngbd-api-docs directive="NgbTypeahead"></ngbd-api-docs>
<ngbd-api-docs-class type="NgbTypeaheadSelectItemEvent"></ngbd... |
import { BigNumber } from 'bignumber.js'
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import dirtyChai from 'dirty-chai'
import { Sequelize } from 'sequelize'
import sinon, { SinonStub } from 'sinon'
import sinonChai from 'sinon-chai'
import { ZERO_ADDRESS } from '../../../../src/definitions'
i... |
import Message from "@/protocol/network/messages/Message";
export default class TeleportRequestMessage extends Message {
public teleporterType: number;
public mapId: number;
constructor(teleporterType = 0, mapId = 0) {
super();
this.teleporterType = teleporterType;
this.mapId = mapId;
}
} |
import { AxiosRequestConfig } from "axios";
import moment from "moment-timezone";
import { Parser } from "xml2js";
import {
IActivitiesAndStatus,
ICarrierResponse,
ITrackitClientOptions,
ITrackitRequestOptions,
STATUS_TYPES,
TrackitClient,
} from "../trackitClient";
interface IDhlClientOptions extends ITra... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lt" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Trance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... |
<TS language="sv" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Högerklicka för att redigera adressen eller etiketten.</translation>
</message>
<message>
<source>Create a new address</source>
... |
import React, { useState } from "react";
import { Theme, createStyles, makeStyles } from "@material-ui/core/styles";
import Avatar from "@material-ui/core/Avatar";
import Button from "@material-ui/core/Button";
import Container from "@material-ui/core/Container";
import Typography from "@material-ui/core/Typography";
i... |
import './ambient';
export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher, SvelteComponentDev as SvelteComponent } from 'svelte/internal'; |
import { defineComponent } from 'vue-demi'
import { LuckyWheel } from 'lucky-canvas'
import h, { slot } from "../utils/h-demi"
// import { name, version } from '../../package.json'
export default defineComponent({
name: 'LuckyWheel',
props: {
width: {
type: [String, Number],
default: ''
},
... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export const PortPadding = 4;
export const InputPortRadius = 10;
export const AudioParamRadius = 5;
export const LeftMarginOfText = 12;
export const Right... |
import '@element-plus/components/base/style'
import '@element-plus/theme-chalk/src/time-select.scss'
import '@element-plus/components/scrollbar/style'
import '@element-plus/components/popper/style'
import '@element-plus/components/input/style'
import '@element-plus/components/select/style'
import '@element-plus/compone... |
// Type definitions for Moment.js 2.8.0
// Project: https://github.com/timrwood/moment
// Definitions by: Michael Lakerveld <https://github.com/Lakerfield>, Aaron King <https://github.com/kingdango>, Hiroki Horiuchi <https://github.com/horiuchi>, Dick van den Brink <https://github.com/DickvdBrink>, Adi Dahiya <https://... |
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/**
* @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 {ɵgetDOM as getDOM} from '@angular/common';
import {iterateListLike} from '@angular/core/src/change_detection/... |
import { UserDto } from './dto/user.dto';
import { User } from './user.entity';
export declare class UserService {
createUser(userData: UserDto): Promise<{
status: string;
message: string;
data: User;
} | {
status: string;
message: string;
data?: undefined;
}>... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Для того, чтобы изменить адрес или метку, кликните по изменяемому объекту правой кнопкой мыши</translation>
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_AR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About superskynet</source>
<translation>Sobre superskynetcoin</translation>
</message>
<message>
... |
/* eslint-disable camelcase */
import {
Entity,
Column,
PrimaryGeneratedColumn,
CreateDateColumn,
UpdateDateColumn,
} from 'typeorm';
@Entity('users')
class User {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column()
name: string;
@Column()
email: string;
@Column()
avatar: string;
@Col... |
import { RareEnergyMemory } from "./RareEnergyMemory";
import { SourceEnergyMemory } from "./SourceEnergyMemory";
export class storedSource{
public energy:SourceEnergyMemory[];
public rareSource:RareEnergyMemory;//deposit
constructor(){
this.energy = [];
this.rareSource = new RareEnergyMem... |
export interface Node {
position: number;
value: unknown;
predicate?: JsonataASTNode[];
keepArray?: boolean;
focus?: string;
index?: string;
tuple?: true;
group?: {
lhs: UnaryTuple[];
};
}
export interface NumberNode extends Node {
type: "number";
value: number;
}
export interface StringNode... |
declare module '@realrisman/mxgraph' {
/**
* @class mxPerimeter
*
* Provides various perimeter functions to be used in a style
* as the value of {@link mxConstants.STYLE_PERIMETER}. Perimeters for
* rectangle, circle, rhombus and triangle are available.
*
* ### Example
*
* @example
* ```... |
import { Component } from '@angular/core';
import { AlertController, NavController } from 'ionic-angular';
import { LoginPage } from '../login/login';
import { SupportPage } from '../support/support';
import { UserService } from '../../providers/user-service';
import { User } from '@ionic/cloud-angular';
import { Ca... |
<?xml version="1.0" encoding="UTF-8"?>
<tileset name="icon_avatar" tilewidth="32" tileheight="32" tilecount="6" columns="2">
<image source="../racing-pack/ui_dark_blue_racing/icon_avatar.png" width="68" height="100"/>
</tileset> |
import { css } from 'lit';
import { focusVisibleSelector } from '../../internal/focus-visible';
import componentStyles from '../../styles/component.styles';
export default css`
${componentStyles}
:host {
--symbol-color: var(--sl-color-neutral-300);
--symbol-color-active: var(--sl-color-amber-500);
--s... |
type MutatorType = (state: any, next: MutatorType) => any | Promise<any>;
type SubscriberType = (entry: any) => void;
async function dispatcher(state: any, mutators: Array<MutatorType>, subscribers?: Array<SubscriberType>): Promise<any> {
const hasSubscribers = (subscribers !== undefined);
let index = 0;
... |
import * as Sentry from '@sentry/node';
import * as nodejieba from 'nodejieba';
import { Model, Connection } from 'mongoose';
import { Mindfulness } from "../interfaces/mindfulness.interface";
import { User } from "../interfaces/user.interface";
import { Account } from "../interfaces/account.interface";
import { Mindfu... |
/*
* 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... |
/**
* @module "utils/types"
*/ /** */
/**
* A function that checks if something is a valid string.
* @param value The value which will be checked.
* Returns true if value is a string.
*/
export function isString(value: any): boolean;
/**
* A function that checks if something is a valid number.
* @param value... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Renderer2} from '../render/api';
import {checkAndUpdateElementDynamic, checkAndUpdateElementInline, createE... |
import type { BufferView } from 'xxscreeps/schema';
import type { ResourceType } from 'xxscreeps/mods/resource/resource';
import * as C from 'xxscreeps/game/constants';
import { Store } from 'xxscreeps/mods/resource/store';
import { optionalResourceEnumFormat } from 'xxscreeps/mods/resource/resource';
import { compose,... |
import assert from 'power-assert';
import sinon from 'sinon';
import { fixture } from '../src/fixture';
import { Test, group, test } from './helper';
const tests: Test[] = group('fixture/', [
test('setUp (void) -> test (void) -> tearDown (void)', () => {
const setUpFn = sinon.stub();
const testFn = sinon.stu... |
import { HeroState, initialState } from '../store/state.class';
import { Action, createSelector, createFeatureSelector } from '@ngrx/store';
import { AT_HERO_CREATE, AT_HERO_UPDATE, AT_HERO_DELETE, Actions } from '../action/hero.action';
import { Hero } from '../../hero/class/hero.class';
export function heroReducer(s... |
import { EventEmitter, Provider } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { DatePickerInnerComponent } from './datepicker-inner.component';
import { DatepickerConfig } from './datepicker.config';
import * as ɵngcc0 from '@angular/core';
export declare const DATEPICKER_CONTROL... |
export * from "./vote"; |
import type { NextConfig } from 'next'
export type { NextConfig }
export type PluginOptions = {}
let devServerStarted = false
const defaultPluginOptions: PluginOptions = {}
module.exports.defaultPluginOptions = defaultPluginOptions
/**
* This function allows you to provide custom plugin options (currently there a... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
actionName = 'Go for it';
isSpecial = true;
itemClearance = true;
resetClasses = 'new-class';
canSave = true;
} |
import * as React from 'react';
const LocationOff16FilledIcon = () => {
return(
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.5815 12.2886L14.1464 14.8536C14.3417 15.0488 14.6583 15.0488 14.8536 14.8536C15.0488 14.6583 15.0488 14.3417 14.8536 14.1... |
import type { IRole, IRoom } from "@rocket.chat/core-typings";
import type { ITeam } from "@rocket.chat/core-typings";
import type { IUser } from "@rocket.chat/core-typings";
import type { PaginatedRequest } from "../../helpers/PaginatedRequest";
import type { PaginatedResult } from "../../helpers/PaginatedResult";
imp... |
import express from "express";
import * as dotenv from "dotenv";
(async () => {
await dotenv.config();
})();
import userRoutes from "./user/user.route";
import quotesRoutes from "./quotes/quotes.route";
import shuffleRoutes from "./shuffle/shuffle.route";
function init() {
const app = express();
const port = p... |
// CSS_CLASSES_CONSTANTS
export const GRID_CSS_CLASS_PREFIX = 'MuiDataGrid';
export const GRID_ROOT_CSS_CLASS_SUFFIX = 'root';
export const GRID_COLUMN_HEADER_CSS_CLASS_SUFFIX = 'columnHeader';
export const GRID_ROW_CSS_CLASS_SUFFIX = 'row';
export const GRID_CELL_CSS_CLASS_SUFFIX = 'cell';
export const GRID_COLUMN_HE... |
import { Injectable } from '@angular/core';
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { AuthenticationService } from '../_services';
@Injectable()
export class ErrorInt... |
import 'jasmine'
import { deepClone, readOnly } from '../server/util'
describe('util', () => {
describe('deepClone', () => {
it('should handle primitives', () => {
expect(deepClone(1)).toEqual(1)
expect(deepClone('a')).toEqual('a')
expect(deepClone(true)).toEqual(true)
})
it('should ha... |
import {Component, bootstrap, View, ViewEncapsulation, FORM_DIRECTIVES, CORE_DIRECTIVES } from 'angular2/angular2';
import {RouteConfig, Route, ROUTER_DIRECTIVES } from 'angular2/router';
import {FriendsListCmp} from '../friends-list/friends-list-cmp';
import {FriendFormCmp} from '../friend-form/friend-form-cmp';
imp... |
import React from 'react';
import Icon from '../../../Icon';
const SVG_S = (
<path
fillRule="evenodd"
clipRule="evenodd"
d="M12.9999 3.00005C9.99992 5.50006 4.99997 10 1 13.9993L3 16C3.43278 14.918 4.19335 13.7424 5.11956 12.5644C6.83157 13.2121 10.0297 14.0225 11.9999 12.0523C14.7921 9.26014 14.9993 1.... |
import React from 'react';
import TestRenderer from 'react-test-renderer';
import { getRenderedCSS, resetStyled } from './utils';
// Disable isStaticRules optimisation since we're not
// testing for ComponentStyle specifics here
jest.mock('../utils/isStaticRules', () => () => false);
let styled: ReturnType<typeof res... |
import Head from 'next/head';
import Layout from 'src/layout';
import style from './oslo.module.css';
const barcode = require('./barcode.png');
export default function VariantTur() {
return (
<Layout>
<div>
<Head>
<title>Verdiutvikling Variant Oslo AS</title>
</Head>
<div... |
// script: generateModule, version: 0.3
import { createRawQmlComponent } from '../../renderer';
import types from './qmltypes.json';
export * from './types';
type ModuleDenifition = {
name: string;
module: string;
defaultProperty?: string;
}
const generateQml = (type: string) => `import Qt.labs.calendar 1.0; ${... |
import { BaseError } from 'sequelize'
export default class HttpException extends BaseError {
status: number;
message: string;
constructor(status: number, message: string) {
super(message);
this.status = status;
this.message = message;
}
} |
import React from "react";
import { Platform } from "react-native";
import { MaterialIcons } from "@expo/vector-icons";
import { useTheme } from "styled-components";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { RFValue } from "react-native-responsive-fontsize";
import { Dashboard ... |
/**
* 単一のコンポーネントで画像の一覧表示、全画面表示、リアルタイム更新を担当する
*/
import * as React from 'react'
import { connect } from 'react-redux'
import actions from '../actions'
import * as c from 'classnames'
import { PhotoInfo, Caller } from '../interfaces/app'
import urls from '../helpers/urls'
import appUtil from '../helpers/app_util'
impor... |
import { HttpException } from '@nestjs/common';
import { Injectable } from '@nestjs/common';
import { UserEntity } from './user.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { JwtService } from '@nestjs/jwt';
import { CreateUserDto, LoginDto } from './user.dto... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="gl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DARK</source>
<translation>Acerca de DARK</translation>
</message>
<message>
<location ... |
import {Injectable} from "@angular/core";
import {BarcodeScanner} from "nativescript-barcodescanner";
import {Http} from "@nativescript/core";
@Injectable({
providedIn: 'root'
})
export class BarcodeLookupService {
private upcDatabaseKey = 'insert barcode token here';
private barcodeScanner = new BarcodeScanner(... |
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
import Page = require('../../../../base/Page');
import Response = require('../../../../http/response');
import V2010 = require('../../V2010');
import { SerializableClass } from '../../../../interfaces';
... |
/**
* @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
*/
/// <amd-module name="@angular/common/locales/sr-Latn" />
declare function plural(val: number): number;
declare const ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { ListenEditorComponent } from './listen-editor.component';
describe('ListenEditorComponent', () => {
let component: ListenEditorComponent;
let fixture: ComponentFixture<ListenEditorCompo... |
import { useMemo } from 'react';
import { useSetting } from '../../../../client/contexts/SettingsContext';
import { addAction } from '../../../../client/views/room/lib/Toolbox';
addAction('omnichannel-external-frame', () => {
const enabled = useSetting('Omnichannel_External_Frame_Enabled');
return useMemo(
() =>... |
/**
* The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
* http://corner.squareup.com/2012/07/smoother-signatures.html
*
* Implementation of interpolation using cubic Bézier curves is taken from:
* https://web.archive.org/web/20160323213433/http://www.benknowscode.c... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule, Routes} from '@angular/router';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
import { NgFlashMessagesModule } from 'ng-flash-messages';
im... |
import * as _ from "lodash";
import "isomorphic-fetch";
import URL = require("url");
const cheerio = require("cheerio-without-node-native");
import Item from "../models/item";
import { Type } from "../models/type";
export default abstract class BaseCrawler {
public abstract url: string = "";
public abstract type: ... |
import { Component, OnInit, Input } from '@angular/core';
import { BookService } from 'src/app/services/book.service';
import { Observable } from 'rxjs';
@Component({
selector: 'app-book-chip',
templateUrl: './book-chip.component.html',
styleUrls: ['./book-chip.component.scss'],
})
export class BookChipComponent... |
import buildSeasonList from "utils/buildSeasonList";
import { dbApiFetcher } from "lib/api-fetcher";
import {
getSplitViewFromSlugWithApiConfig,
translateLeaderViewToSlug,
} from "utils/slugHelpers";
import { useApiConfigContext } from "context/ApiConfig";
import * as React from "react";
import { useRouter } from "... |
import { NextFunction, Request, Response } from 'express';
import { signedCookie } from 'cookie-parser';
import { getRepository } from 'typeorm';
import { Session } from '../../db';
import config from '../../config';
const sessionRepository = getRepository(Session);
const discordSessionConfig = config.session.discord;... |
import styled from 'styled-components';
export const Container = styled.div`
position: relative;
span {
width: 160px;
background: #ff9000;
padding: 8px;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
color: #312e38;
opacity: 0;
transition: opacity 0.4s;
visibility: ... |
export interface IProduct {
id: number;
name: string;
price: number;
description: string;
} |
/*
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { configure, xhr, XHROptions, XHRResponse } from 'request-light';
import {
CLIE... |
/**
* Copyright© 2017, Oracle and/or its affiliates. All rights reserved.
*/
import {IMessagePayload} from "./payloads/message-payload/message-payload.interface";
import {IMessage} from "./message";
interface UserProfile {
givenName: string,
surname: string,
age: number,
email: string,
propert... |
import { atomFamily } from 'recoil';
export const activeIdAtom = atomFamily<string, string>({
key: 'activeIdAtom',
default: '',
}); |
export interface AreaItem {
name: string
code: string
children?: AreaItem[]
}
export interface AreaResult {
province?: AreaItem
city?: AreaItem
area?: AreaItem
} |
import * as React from 'react';
import { useEffect, useRef, useState } from 'react';
import { Clickable } from 'app/components/buttons';
import { FlexColumn, FlexRow } from 'app/components/flex';
import { ClrIcon } from 'app/components/icons';
import { Modal } from 'app/components/modals';
import { Scroll } from 'app/... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import ProjectEntity from './entities/project.entity';
import { ProjectsController } from './projects.controller';
import { ProjectsService } from './services/projects.service';
@Module({
imports: [TypeOrmModule.forFeature([... |
import * as events from 'events';
import * as fs from 'fs';
import * as http from 'http';
import * as mkdirp from 'mkdirp';
import * as path from 'path';
import * as apid from '../../../../../node_modules/mirakurun/api';
import DateUtil from '../../../Util/DateUtil';
import FileUtil from '../../../Util/FileUtil';
impor... |
import React, { useMemo } from "react";
import { useRouter } from "@webiny/react-router";
import { useHandlers } from "@webiny/app/hooks/useHandlers";
import { useSnackbar } from "@webiny/app-admin/hooks/useSnackbar";
import { CmsEditorContentEntry, CmsEditorContentModel } from "../../../../types";
import * as GQL from... |
import { BlitzConfig } from "blitz"
const config: BlitzConfig = {
/* Uncomment this to customize the webpack config
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
//... |
import { DayOfWeek, FirstWeekOfYear, DateRangeType } from '@uifabric/utilities/dateValues/DateValues';
import { IRefObject, IBaseProps } from '@uifabric/utilities';
export { DayOfWeek, DateRangeType, FirstWeekOfYear };
/**
* {@docCategory Calendar}
*/
export interface ICalendar {
/** Sets focus to the selected dat... |
type ReplaceInstanceType<T, TNewInstance> = T extends new (
...args: any[]
) => // eslint-disable-next-line @typescript-eslint/no-unused-vars
infer _R
? TNewInstance
: never;
type ArgumentTypesSkipOne<T> = T extends (a: any, ...args: infer U) => any
? U
: never;
type RemoveArg<T> = T extends (a: any, ...args... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Invoice-Coin</source>
<translation type="unfinished"/>
</message>
<message>
<location l... |
interface IMyResource extends ng.resource.IResource<IMyResource> { };
interface IMyResourceClass extends ng.resource.IResourceClass<IMyResource> { };
///////////////////////////////////////
// IActionDescriptor
///////////////////////////////////////
var actionDescriptor: ng.resource.IActionDescriptor;
actionDescript... |
import { CursosService } from './cursos.service';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CursosComponent } from './cursos.component';
import { CursoDetalheComponent } from './curso-detalhe/curso-detalhe.component';
@NgModule({
imports: [
CommonModule
... |
import nock from 'nock';
export function nockTracker(contents: string): void {
// Setup mock for the "tracking issue" which specifies where
// CC bot can get labels
const configPayload = require('./fixtures/config.json');
configPayload['content'] = Buffer.from(
`
tracking_issue: 6
`
).toString('base64');... |
import { dasherize } from '@angular-devkit/core/src/utils/strings';
import chalk from 'chalk';
import { execSync } from 'child_process';
import * as fs from 'fs';
import * as inquirer from 'inquirer';
import { Answers, Question } from 'inquirer';
import { join } from 'path';
import { promisify } from 'util';
import { I... |
export = ValidationException;
/**
* Exception thrown when a resource fails to model against the model
* @extends BaseException
* @see See {@link BaseException}
* @class
* @memberof module:concerto-core
* @private
*/
declare class ValidationException {
/**
* Create a ValidationException
* @param {s... |
import createTestRouter from './helpers/testRouters'
import { errorCodes } from '../'
const listeners = {
transition: (toState, fromState, done) => {
const newState = {
name: toState.name,
params: toState.params,
path: toState.path,
hitMware: true
}
... |
/* eslint-disable no-continue */
import { Circle } from 'collisions';
import {
COLLISIONS_OBJECT_TYPES,
MAP_SIZE,
PI_X2,
PROJECTILES_SPECS,
REPEL_COLLISIONS,
REPEL_DOUBLE_DAMAGE_DISTANCE_ACTIVE,
REPEL_DOUBLE_DAMAGE_RADIUS,
REPEL_PLAYER_MAX_DISTANCE,
REPEL_PLAYER_MIN_DISTANCE,
REPEL_PROJECTILE_MAX_DI... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LiveFeedComponent } from './live-feed/live-feed.component';
import { ArchiveComponent } from './archive/archive.component';
const routes: Routes = [
{
path: '',
component: LiveFeedComponent,
},
{
... |
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import Study from "./study.tabs.routes";
import Profile from "../pages/Profile";
const { Navigator, Screen } = createStackNavigator();
function AppRoutes() {
return (
<Navigator screenOptions={{ headerShown: false }}>
... |
import { WithVirtualizationConnectionSchema } from '@syndesis/api';
import { SchemaNode, SchemaNodeInfo } from '@syndesis/models';
import {
ConnectionSchemaList,
ConnectionSchemaListItem,
ConnectionSchemaListSkeleton,
SchemaNodeListItem,
} from '@syndesis/ui';
import { WithLoader } from '@syndesis/utils';
impor... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sample demonstrates how to get detailed information to visualize the outlines of
* form content and fields, which can be used for manual validation and drawing UI as part of an application.
*/
import { FormRecognizerClient, Azure... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.