text stringlengths 10 953k |
|---|
import { Component, OnInit } from '@angular/core';
import { Router, NavigationExtras, ActivatedRoute, ParamMap } from '@angular/router';
import { NotificationsService } from 'angular2-notifications';
import { DatabaseService } from 'app/core/services';
import { Database } from 'app/core/models';
import { DatabaseJSON... |
/**
* Created by suat on 12-May-17.
*/
import {Party} from "./party";
import {CatalogueLine} from "./catalogue-line";
export class Catalogue {
constructor(public id: string,
public uuid: string,
public providerParty: Party,
public issueDate: string,
... |
import * as core from '@actions/core'
const escapeRegExp: Function = (string: String): String => {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') // $& means the whole matched string
}
const compareLabels: Function = (labels: string[]): Function => {
const labelsSynonyms = getLabelsSynonyms()
const hasSyn... |
import * as React from 'react';
import { mount, ReactWrapper } from 'enzyme';
import ExpressionInput from './ExpressionInput';
import Downshift from 'downshift';
import { Button, InputGroup, InputGroupAddon, Input } from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSearch, ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { DescribeFleetsInput } from "../shapes/DescribeFleetsInput";
import { DescribeFleetsOutput } from "../shapes/DescribeFleetsOutput";
import { OperationModel as _Operation_ } from "@aws-sdk/types";
import { ServiceMetadata } from "../ServiceMetadata";
export const DescribeFleets: _Operation_ = {
metadata: Serv... |
import ms from 'ms'
export const msToString = (time: number): string => {
const str = ms(time, { long: true })
return (
str
.replace('days', '日')
.replace('day', '日')
.replace('minutes', '分')
.replace('minute', '分')
.replace('hours', '時間')
.replace('hour', '時間')
.repla... |
import { ParserOptions, parse as baseParse } from '@babel/parser'
import { OPTIONS as baseOptions } from './javascript'
const OPTIONS: ParserOptions = {
...baseOptions,
plugins: [...baseOptions.plugins!, 'typescript'],
}
export function parse(source: string, sourceFilename: string) {
return baseParse(source, { ... |
/**
* Database Migration API
* Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations.
* OpenAPI spec version: 20200720
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its... |
import { Injectable } from '@angular/core';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/map';
import 'rxjs/add/observable/throw';
import { User } from '../model/v1/user';
import { TypePermission } from '../model/v1/permission';
import { CacheService } from './cache.service';
import { MessageHandlerServi... |
import { renderHook } from '@testing-library/react-hooks'
import React from 'react'
import { Config } from '../constants'
import { DAppProvider } from '../providers'
import { getWaitUtils, IdentityWrapper } from './utils'
export interface RenderDAppHookOptions<Tprops> {
config?: Config
renderHook?: {
initialPr... |
/*
* 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 { pipe } from 'fp-ts/lib/pipeable';
import { left } from 'fp-ts/lib/Ei... |
import {
DatafeedConfiguration,
ErrorCallback,
GetMarksCallback,
HistoryCallback,
HistoryDepth,
IDatafeedChartApi,
IDatafeedQuotesApi,
IExternalDatafeed,
LibrarySymbolInfo,
Mark,
OnReadyCallback,
QuotesCallback,
ResolutionBackValues,
ResolutionString,
ResolveCallback,
SearchSymbolResultItem,
SearchSymb... |
import {AdminBaseParentViewIdComponent} from '@admin/components/admin-base-parent-view-id/admin-base-parent-view-id.component';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import {AdminFolderService, AppService, NotifyService} from '@core/services';
import... |
/**
* Data Flow API
* Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure.
* OpenAPI spec version: 20200129
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, Oracle and... |
import puppeteer from 'puppeteer';
import Conf from 'conf';
import fs from 'fs';
import { Parser } from 'json2csv';
// get config values
const config = new Conf({
cwd: './',
});
const username: string = config.get('username');
const password: string = config.get('password');
// prepare csv parser and write stream
c... |
export default interface IModal {
show: boolean;
total: number;
onClose: () => void;
} |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { CreateStockDto, UpdateStockDto } from 'src/finance/dtos/stock.dto';
import { StockBalanceView } from 'src/finance/entities/stock-balance.view';
import { Stock } from 'src/finance/entities/stock.entity';
import { De... |
import {Component, OnInit} from '@angular/core';
import {ProductoCatalogoService} from "../producto-catalogo.service";
import {ProductoCatalogo} from "../producto-catalogo";
import {ActivatedRoute} from "@angular/router";
@Component({
selector: 'app-producto-catalogo-update',
templateUrl: './producto-catalogo-upda... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Futurecoin</source>
<translation>عن Futurecoin</translation>
</m... |
import { TestBed } from '@angular/core/testing';
import { IntervalType } from '../constants/interval-type.enum';
import { Env, EnvMap } from '../injection-tokens/env.injection-token';
import { TimerUtilityService } from './timer-utility.service';
describe('TimerUtilityService', () => {
let service: TimerUtilitySe... |
import Link from 'next/link';
import { RocketIcon } from 'components/ui';
import { classNames } from 'lib/classNames';
import {
FiCamera,
FiCode,
FiGithub,
FiGlobe,
FiHome,
FiImage,
FiInfo,
} from 'react-icons/fi';
interface StaticSidebarProps {
currentIndex: number;
}
const StaticSidebar = ({ current... |
import { mixCubic, mixQuadratic } from "@thi.ng/vectors";
/**
* Same as thi.ng/vectors/mixCubic
*/
export const cubicPointAt = mixCubic;
/**
* Same as thi.ng/vectors/mixQuadratic
*/
export const quadraticPointAt = mixQuadratic; |
import process from 'process';
import fs from 'fs';
import { expect, assert } from 'chai';
import { Region } from '../region';
process.on('uncaughtException', (err: any, origin: any) => {
fs.writeSync(
process.stderr.fd,
`Caught exception: ${err}\n` +
`Exception origin: ${origin}`
);
... |
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormGroup, FormArray, FormControl } from '@angular/forms';
import { Status } from '..';
import { Select, SelectService, Question, QuestionType } from '../question';
import { Group, DataTable } from '../group';
import { ReactiveFor... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About nxcoin</source>
<translation>За nxcoin</translation>
</message>
... |
import * as React from 'react';
import { Header, Textfield, Menu, MenuItem, IconButton, Spacer } from '../../components';
export default function PageHeader() {
return (
<Header title="Home" className="demo-header mdl-color--grey-100 mdl-color-text--grey-600">
<Textfield
label="... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Service } from 'app/@core/base/_index';
import { Modulo } from 'app/@library/enum';
import { Perfil } from './perfil.model';
@Injectable()
export class PerfilService extends Service<Perfil> {
public getModulo(): ... |
import { Document, Schema, HookNextFunction, Model, model } from "mongoose";
import { ISupplyState } from "../../interface/SupplyState";
import { IUserModel } from "./user";
export interface ISupplyStateModel extends Document, ISupplyState {
enteredBy: IUserModel;
}
export const SupplyStateSchema: Schema = new Schem... |
import { User } from './user';
export interface LoginOptions {
timeout?: number;
}
export declare function login(username: string | {
username?: string;
password?: string;
_socialIdentity?: any;
}, password?: string, options?: LoginOptions): Promise<User>; |
import PropTypes from 'prop-types';
import React from 'react';
import { BaseGLViewProps, GLSnapshot, SnapshotOptions } from './GLView.types';
export interface GLViewProps extends BaseGLViewProps {
onContextCreate: (gl: WebGLRenderingContext) => void;
onContextRestored?: (gl?: WebGLRenderingContext) => void;
... |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class FaDollar extends React.Component<IconBaseProps, any> { } |
//
// Project home: https://github.com/jaxio/celerio-angular-quickstart
//
// Source code generated by Celerio, an Open Source code generator by Jaxio.
// Documentation: http://www.jaxio.com/documentation/celerio/
// Source code: https://github.com/jaxio/celerio/
// Follow us on twitter: @jaxiosoft
// This header can ... |
import React, { useCallback, useState } from 'react';
import { StyleSheet, Text, View, Dimensions } from 'react-native';
import MapView, { Marker, Callout, PROVIDER_GOOGLE } from 'react-native-maps';
import { Feather } from '@expo/vector-icons';
import mapMarker from '../images/map-marker.png';
import { useNavigation,... |
import React from 'react';
import SvgLoader from '@components/SvgLoader';
import { RatingWrapper } from './index.style';
const Rating = ({ rating }: { rating: number }) => {
const componentClassName = 'c-rating';
const totalRating = 5;
return (
<RatingWrapper>
{[...Array(totalRating)].map((item, inde... |
/// <amd-module name="Types/_source/provider" />
/**
* Data providers library
* @library Types/source:provider
* @includes IAbstract Types/_source/provider/IAbstract
* @includes IChannel Types/_source/provider/IChannel
* @includes INotify Types/_source/provider/INotify
* @includes SbisBusinessLogic Types/_source/... |
declare module 'hubble-ui'; |
import { NextPage } from "next";
import Head from "next/head";
import { SolanaAuthButtonFirebase } from "@crossmint/solana-auth-react-ui";
import { auth } from "../utils/firebaseClient";
const Index: NextPage = () => {
return (
<div>
<Head>
<title>Sign in with Solana</title>
<meta name="desc... |
import * as React from 'react';
import { IRenderFunction } from '../../Utilities';
import { IIconProps } from '../../Icon';
export interface ITextField {
/** Gets the current value of the input. */
value: string | undefined;
/** Sets focus to the input. */
focus: () => void;
/** Select the value of ... |
<TS version="2.1" language="ku_IQ">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation type="unfinished">کرتەی-ڕاست بکە بۆ دەسکاری کردنی ناونیشان یان پێناسە</translation>
</message>
<message>
<source>Create a new ad... |
// /src/device/gps_fixed/materialiconssharp/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgGpsFixedSharp = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M12 8c-2.21 0-4 1.79-4 4s1... |
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {LayoutComponent} from './shared/components/layout/layout.component';
import {AuthGuard} from './shared/guards/auth.guard';
import {LoginGuard} from './shared/guards/login.guard';
const routes: Routes = [
{
path:... |
/**
* Nusantara Valid: province.ts
*
* Licensed under MIT (https://github.com/agraris/nusantara-valid/blob/master/LICENSE)
**/
import { range } from '../helpers';
/**
* PROVINCE_DATA
*
* List of province data in Indonesia including BPS code, vehicle plate,
* telephone numbers, and zip code.
**/
// eslint-disa... |
import { FETCH_MOVIES } from './../../helper/query';
import { ApolloClient, useQuery } from '@apollo/client';
import { inputParser } from './../../helper/inputParser';
import { makeAutoObservable, autorun, runInAction, action } from "mobx"
import { observable } from "mobx"
import { createContext } from "react"
import ... |
/*
* 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,... |
export declare function polyfillSymbol(root: any): any;
export declare function ensureFor(Symbol: any): void;
export declare function ensureSymbol(root: any): any;
export declare function symbolForPolyfill(key: any): string;
export declare function ensureIterator(Symbol: any, root: any): void;
export declare function e... |
/// <reference path="../../../../built/pxtlib.d.ts"/>
import * as React from "react";
import * as pkg from "../../package";
import * as compiler from "../../compiler";
import * as blocklyFieldView from "../../blocklyFieldView";
import { Provider } from 'react-redux';
import store from './store/assetEditorStore'
impo... |
import { takeEvery, call, put } from 'redux-saga/effects'
import { Collection } from 'common/models/Collection'
import Status from 'common/models/Status'
import { getAccountStatus } from 'common/store/account/selectors'
import { processAndCacheCollections } from 'common/store/cache/collections/utils'
import Explore fr... |
/**
* All types of control points.
*/
export enum ControlPointType {
TimingPoint,
DifficultyPoint,
EffectPoint,
SamplePoint,
} |
import {Env} from "./Env";
import {Info} from "./Info";
import {Builder} from './Builder';
export function create(env: Env): Info {
const is = (...names: Env[]) => {
return names.includes(env);
};
const forEnv = (...names: Env[]) => {
const func: Info.ValueGetter = (value: any, defaultValue?: any) => {
if (... |
//product component.ts - Type Script file that contains code to render products to elearning application
//including the required files and services
import { Component, OnInit } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { DataService } from "../data.service";
import { Rest... |
import { Object3D } from "three";
export interface Configuration {
shouldReplaceUUIDs?: boolean;
}
export default function toJSON(object: Object3D, config?: Configuration): any; |
import { RestClientEvents } from 'detritus-client-rest';
import { GatewayRawEvents } from './rawevents';
import { ShardClient } from '../client';
import { BaseCollection } from '../collections/basecollection';
import {
Channel,
Emoji,
Guild,
Member,
Message,
Presence,
Reaction,
Relationship,
Role,
... |
import * as assert from 'assert';
import { walk } from '../../utils';
import * as api from '../../../api';
import { readFileSync } from 'fs'
describe('export', function() {
this.timeout(10000);
// hooks
before('build app', () => api.build({ cwd: __dirname }));
before('export app', () => api.export({ cwd: __dirnam... |
/// <reference types="node" />
import { StringEncoding } from '../common/Util';
import { IGetToken } from 'strtok3/lib/core';
/**
* The picture type according to the ID3v2 APIC frame
* Ref: http://id3.org/id3v2.3.0#Attached_picture
*/
export declare enum AttachedPictureType {
'Other' = 0,
"32x32 pixels 'file... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
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, modi... |
// @author : Adarsh Pastakia
// @version : 0.0.1
// @copyright : 2021
// @license : MIT
import { FC } from "react";
export const THEME = ["primary", "secondary", "muted", "info", "danger", "success", "warning"];
export const GRAYSCALE = ["empty", "lightest", "light", "medium", "dark", "darkest", "opaque"];
e... |
import { EthereumProvider } from 'web3x/providers';
import { AuthIdentity, AuthChain, EthAddress, AuthLinkType, IdentityType, AuthLink, Signature, ValidationResult } from './types';
export declare const VALID_SIGNATURE: string;
export declare class Authenticator {
/** Validate that the signature belongs to the Ethe... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { ISyncedState } from "..";
import { IFluidSchemaHandles } from "./internalInterface";
/**
* Store the schema on to the shared synced state
* @param syncedStateId - Unique ID to use for st... |
import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { User, UserSchema } from './schema/user.schema';
@Module({
imports: [
MongooseModule.forFeature([{ name: User.name, sc... |
import { PuzzlePieces } from '../types';
export default function throwOnInvalidPuzzlePieces(pieces: PuzzlePieces): void; |
import {
$,
Card,
CardToolbarItemOptions,
CardType,
EDITABLE_SELECTOR,
getComputedStyle,
isEngine,
isMobile,
NodeInterface,
Parser,
RangeInterface,
removeUnit,
Scrollbar,
SelectStyleType,
ToolbarItemOptions,
} from '@aomao/engine';
import {
ControllBarInterface,
HelperInterface,
TableCommandInterface,... |
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
import { ResourceDataService } from '../../dataservices/resource-data.service';
import { IChildElement } from '../../interfaces/htmlInterfaces';
@Component({
selector: 'resource-file-uploader',
styles: ['.upload-btn { cu... |
namespace Flame {
import f = FudgeCore;
import fAid = FudgeAid;
export class ParticleSystem extends f.Node {
private particles: f.Node[];
private normNumberOfParticles: number;
private randomNumbers: number[] = [];
private speed: number;
private a: number;
private b: number;
private c... |
import {AlertType} from './alert-type.enum';
export class Alert {
id?: string;
type?: AlertType;
message?: string;
autoClose?: boolean;
keepAfterRouteChange?: boolean;
fade?: boolean;
constructor(init?: Partial<Alert>) {
Object.assign(this, init);
}
} |
// Copyright 2017-2020 @polkadot/react-components authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import React from 'react';
import styled from 'styled-components';
import media from './media';
import { BareProps }... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AddTrainingPage } from './add-training.page';
const routes: Routes = [
{
path: '',
component: AddTrainingPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
... |
import nc from 'next-connect'
import { NextApiResponse } from 'next'
import { handler, ExtendedApiRequest } from '@middlewares/next-connect'
import { IUser, User } from '@models/index'
export default nc()
.use(handler)
.post(async (req: ExtendedApiRequest, res: NextApiResponse) => {
const signInUser: IUser = req.b... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*----------------------------------------------------------------... |
<TS language="ko_KR" 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>
<translation... |
import Unit from './Unit';
const UnitValue = {
[Unit.CHINILLA]: 1,
[Unit.VOJO]: 1 / 1e12,
[Unit.CAT]: 1 / 1e9,
};
export default UnitValue; |
import * as React from 'react';
import { select } from '@storybook/addon-knobs';
import Spinner from '../Spinner';
// CSF format story
export const all = () => {
const appearance = select(
'appearance',
['primary', 'secondary', 'white'],
undefined
);
const size = select(
'size',
['small', 'm... |
import { AdminModel, AdminSchema } from './admin'
import { TagModel, TagSchema } from './tag'
import { CategoryModel, CategorySchema } from './category'
import { CommentModel, CommentSchema } from './comment'
import * as mongoose from 'mongoose'
export interface IBlog {
/**
* 日志标题
*/
title: string,
/**
... |
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { HideField } from '@nes... |
import StyleWrapper from './utils/style.utils';
import TimePickerModule from "./components/TimePicker";
import TimePickerInputModule from "./components/TimePickerInput";
import MonthPickerModule from "./components/MonthPicker";
import DatePickerModule from "./components/DatePicker";
import DatePickerInputModule from ... |
import express from 'express';
import createRoutingFunction from './base';
import { Json, Yahoo } from '../controllers/Json';
const router = express.Router();
router
.get('/', createRoutingFunction(Json))
.get('/yahoo', createRoutingFunction(Yahoo));
router
.use((req, res) => {
res.send(res.locals.json);
... |
export interface resultCreateDto {
result: boolean,
message: string,
other?: any
} |
import cursos from './courses.json';
import estudiantes from './students.json';
export const database = {
cursos,
estudiantes
} |
import React from "react"
import * as css from "../css/footer.module.css"
import links from "../constants/links"
import { Link } from "gatsby"
import socialIcons from "../constants/socialIcons"
const Footer: React.FC = () => {
return (
<footer className={css.footer}>
<div className={css.links}>
{l... |
import {IObserver} from "./IObserver";
export interface IObservable {
RegisterObserver(Observer: IObserver);
RemoveObserver(Observer: IObserver);
NotifyObservers(eventName: string, obj: object);
} |
import { Component, OnInit } from '@angular/core';
import { IDataItem, DataService } from '../shared/data.service';
import { ListViewEventData } from 'nativescript-ui-listview';
import { ImageSource } from 'tns-core-modules/image-source/image-source';
import { RouterExtensions } from 'nativescript-angular/router';
@Co... |
import BridgeChannels from "../collections/channels/BridgeChannelsCollection";
import {IDfiAstModelAttribsBridge, IDfiAstModelOptions} from "../definitions/models";
import AST_EVENT from "../internal/asterisk/eventNames";
import AsteriskModel from "../internal/asteriskModel";
import Channel from "./ChannelModel";
cons... |
import {
InvalidJsonCharacterException,
JsonArray,
JsonObject,
JsonParseMode,
JsonValue,
experimental,
parseJson,
tags,
} from '@angular-devkit/core';
import { writeFileSync } from 'fs';
import { Command, Option } from '../models/command';
import {
getWorkspace,
getWorkspaceRaw,
migrateLegacyGloba... |
import { LoadingQuery } from './loading.query';
import { LoadingStore } from './loading.store';
describe('LoadingQuery', () => {
let query: LoadingQuery;
beforeEach(() => {
query = new LoadingQuery(new LoadingStore);
});
it('should create an instance', () => {
expect(query).toBeTruthy();
});
}); |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { FontWeight } from 'xterm';
import { CHAR_ATLAS_CELL_SPACING, ICharAtlasConfig } from './Types';
import { IColor } from '../Types';
import { isFirefox, isSafari } from '../utils/Browser';
declare const Promise: any;
expo... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
const AUTH_API = 'http://localhost:3000/api/auth';
const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
@Injectable({
providedIn: 'root... |
/// <reference path='fourslash.ts' />
// @allowJs: true
// @checkJs: true
// @noEmit: true
// @noImplicitAny: true
// @Filename: important.js
////class C {m(x) {return x;}}
////var c = new C()
////c.m(1)
verify.fileAfterCodeFix(
`
class C {/**
* @param {number} x
*/
m(x) {return x;}}
var ... |
/**
* License https://github.com/Remix-Design/RemixIcon/blob/master/License
*/
import { SVGIconDef } from './types';
const QuestionFilled: SVGIconDef = {
name: 'question',
theme: 'filled',
attrs: {
viewBox: '0 0 24 24',
},
children: '<path fill="none" d="M0 0h24v24H0z"/><path d="M12 22C6.477 22 2 17.52... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { inject, injectable } from 'inversify';
import { gte } from 'semver';
import { Uri } from 'vscode';
import { IEnvironmentActivationService } from '../../interpreter/activation/types';
import { IComponentAdapter, ICo... |
import {
UserActionTypes,
REQUEST_USER,
RECEIVE_USER,
CHANGE_PASSWORD,
UPDATE_USER,
SIGN_IN,
SIGN_OUT,
USER_REQUEST_ERROR
} from '../actions/user-actions';
import User from '../models/user/user';
export interface UserState {
user: User;
isReady: boolean;
error: string;
}
const defaultUserState: ... |
import { FactoryNode, ProductionNode, DumpRoute, RelayRoute } from "./graph"
import { isCatalyst, isGas, isOre } from "./items"
import { MAX_CONTAINER_LINKS } from "./graph"
import { findRecipe } from "./recipes"
/**
* Route a node's relay containers
* @param node Node to route
*/
export function generateRelayRoute... |
import { WithStyle } from '@medly-components/utils';
import React, { FC } from 'react';
import LoupeIconSvg from '../../assets/Image/loupe_24px_rounded.svg';
import SvgIcon, { SvgIconProps } from '../../SvgIcon';
const LoupeIcon: FC<SvgIconProps> & WithStyle = React.memo(props => {
const { size, withHoverEffect, c... |
import { LitElement, css, html } from "lit";
import { customElement, property } from "lit/decorators.js";
import "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.63/dist/components/dialog/dialog.js";
import "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.63/dist/components/button/but... |
import { lighten } from 'polished';
import styled from 'styled-components';
interface NavLinkProps {
isActive: boolean;
}
export const Container = styled.header`
width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: 4rem;
border-bottom: 1px solid ${({ theme }) => theme.backgr... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="pt_PT">
<context>
<name>DMXUSB</name>
<message>
<location filename="dmxusb.cpp" line="139"/>
<source>This plugin provides DMX output support for</source>
<translation>Este plugin fornece suporte de saída DMX... |
/**
* @file card.ts 度秘 3.0 新版引导页翻页效果
*
* 两个页面都有缩放效果,暂时没有想到合适名字
*
* @author: zhangbobell
* @email: zhangbobell@163.com
*
* @created: 2017.06.29
*/
import Render from '../render';
import { EMPTY_PAGE, OPPSITE } from '../constant';
type Sign = 0 | -1 | 1;
export default class Dumi extends Render {
doR... |
import { HookableMixin, EjsonableMixin } from '@eveble/eveble';
import { ValidableMixin } from './mixins/validable-mixin';
import { NON_ENUMERABLE_VALUE_KEY } from './constants/literal-keys';
declare const ValueString_base: import("polytype").Polytype.ClusteredConstructor<[StringConstructor, typeof EjsonableMixin, type... |
/**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import ColorPropType from '../../exports/ColorPropType';
import { number, oneOf, oneOfType, string } from 'prop-types';
const numberO... |
import React, { ReactNode } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
type Props = {
children?: ReactNode;
expanded?: boolean;
};
export default function Accordion(props: Props) {
const { expanded, children } = props;
return (
<AnimatePresence>
{expanded && (
<m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.