text stringlengths 10 953k |
|---|
import { Component, ComponentInterface, h, Host, JSX, Prop } from '@stencil/core';
import { Mode } from '../../../shared/types';
import { getModeClass } from '../../../utils/classes';
@Component({
tag: 'p6-hint',
styleUrl: 'p6-hint.scss',
shadow: true,
})
export class P6Hint implements ComponentInterface {
/**... |
import { GPGPUProgram } from './gpgpu_math';
export declare class MatMulPackedProgram implements GPGPUProgram {
variableNames: string[];
usesPackedTextures: boolean;
outputShape: number[];
userCode: string;
constructor(aShape: [number, number], bShape: [number, number], outputShape: [number, number]... |
import React from 'react';
import { ThemeContext } from '@teambit/documenter.theme.theme-context';
import { MDXLayout } from '@teambit/mdx.ui.mdx-layout';
import { Preview } from './index';
export const PreviewDocs = () => (
<ThemeContext>
<MDXLayout>
<Preview />
</MDXLayout>
</ThemeContext>
); |
import React from 'react'
import {NextPage} from 'next'
import {useRouter} from 'next/router'
import {Button as AntButton} from 'antd'
import {getLayout} from './lib/layout'
import Button from '../../_atoms/Button'
type ExtendedNextPage<P> = NextPage<P> & (NextPage<P> & {getLayout?(page: React.ReactNode): any})
type... |
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { defineMessages, intlShape } from 'react-intl';
import { get, map } from 'lodash';
import StakingEpochsNoData from './StakingEpochsNoData';
import StakingEpochsDataTable from './StakingEpochsDataTable';
import {
getTableHeadersFo... |
/**
* @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 { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-comp-3848',
templateUrl: './comp... |
import Card from "@material-ui/core/Card";
import { makeStyles } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
import TableRow from "@material-ui/core/TableRow";
import Typography fr... |
export class ServerEvent {
public static readonly connected = 'connection'
public static readonly disconnected = 'disconnect'
public static readonly lobyInit = 'loby:init:server'
public static readonly lobyEnd = 'loby:end:server'
public static readonly lobyStart = 'loby:start:server'
public stat... |
import circlet from './Item_Tiara_of_Frost.png'
import { IArtifactSheet } from '../../../Types/artifact'
const artifact: IArtifactSheet = {
name: "Prayers to Springtime", rarity: [3, 4],
icons: {
circlet
},
setEffects: {
1: {
stats: {}//TODO element affect reduction stat
}
}
}
export default... |
/**
* @license Angular v12.2.16
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
import { HashLocationStrategy } from '@angular/common';
import { InjectionToken } from '@angular/core';
import { Location as Location_2 } from '@angular/common';
import { LocationStrategy } from '@angular/common';
imp... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { StudentAddComponent } from './studentAdd.component';
const routes: Routes = [
{
path: '',
component: StudentAddComponent
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
... |
import {
Box,
Flex,
Grid,
Heading,
IconButton,
Modal,
ModalContent,
ModalOverlay,
Spacer,
useDisclosure,
Text,
} from "@chakra-ui/react";
import React from "react";
import { BsFillPlusCircleFill } from "react-icons/bs";
import { IoCloseCircleSharp } from "react-icons/io5";
import MotionBox from "... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NavbarComponent } from '... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { catchError, map, tap } from 'rxjs/operators';
import { Employees } from './employees.model';
const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'app... |
export default {
backgroundSF: require('./background-sf.png'),
balloon: require('./balloon.png'),
cats: {
chibiNeko01: require('./chibiNeko01-scaled.png'),
chibiNeko02: require('./chibiNeko02-scaled.png'),
chibiNeko03: require('./chibiNeko03-scaled.png'),
chibiNeko04: require('./chibiNeko04-scaled... |
let model;
let input;
let output;
let nounList;
//hacky way to get around node's exports
var exports:any = {};
//these are the types transpiled for node modules, not system.js modules
importScripts("./tokenizer.js");
importScripts("./statsGenerate.js");
importScripts("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs/dist... |
import { body } from "@pnp/odata";
import { jsS, assign } from "@pnp/common";
import { SharePointQueryableCollection, _SharePointQueryableInstance, SharePointQueryableInstance } from "../sharepointqueryable";
import { extractWebUrl } from "../utils/extractweburl";
import { Web, _Web } from "../webs/types";
import { _Fi... |
import connection from './connection';
export async function updateStudentsClass(studentId: string, missionId: string): Promise<void> {
await connection.raw(`
UPDATE LS_Student
SET mission_id = '${missionId}'
WHERE id = '${studentId}';
`)
} |
/* Imports: External */
import { DeployFunction, DeploymentSubmission } from 'hardhat-deploy/dist/types'
import { Contract, ContractFactory, ethers } from 'ethers'
import { getContractFactory } from '@eth-optimism/contracts'
import { registerHabtorAddress } from './000-Messenger.deploy'
import ProxyJson from '../artif... |
import './DefaultLayout.sass';
import { Vue, Component } from 'vue-property-decorator';
import { Color } from '@/lib';
import { exampleCollections } from '@/docs/pages';
import {
Shell,
ShellHeader,
App,
AppMain,
AppNavigation,
SideNav,
SideNavList,
SideNavGroup,
SideNavGroupTitle,
... |
import React from 'react';
import { getByAltText, render } from '@testing-library/react';
import { Provider } from 'react-redux';
import { store } from './app/store';
import { App } from './App';
test('renders the title Beans and Coke', () => {
const { getByAltText, getByText } = render(
<Provider store={ store ... |
///<reference path="../node_modules/@types/jquery/index.d.ts"/>
///<reference path="../node_modules/moment/moment.d.ts"/>
///<reference path="../node_modules/@types/moment-timezone/index.d.ts"/>
///<reference path="../node_modules/@types/bootstrap/index.d.ts"/>
///<reference path="../node_modules/@types/toastr/index.d... |
import { Directive, Input } from '@angular/core';
import { NG_VALIDATORS, Validator, AbstractControl } from '@angular/forms';
import { customControlRegexValidator } from './customControlRegexValidator';
@Directive({
selector: '[appMinUppercase]',
providers: [{ provide: NG_VALIDATORS, useExisting: MinUppercaseVali... |
/**
* Container Engine for Kubernetes API
* API for the Container Engine for Kubernetes service. Use this API to build, deploy,
and manage cloud-native applications. For more information, see
[Overview of Container Engine for Kubernetes](/iaas/Content/ContEng/Concepts/contengoverview.htm).
* OpenAPI spec version: 2... |
//== BASICS ==//
/**
* (1) x is a string, b/c we’ve initialized it
*/
let x = "hello world";
/**
* (2) reassignment is fine
*/
x = "hello mars";
/**
* (3) but if we try to change type
*/
x = "42"; // 🚨 ERROR
/**
* (4) let's look at const. The type is literally 'hello world'
*/
const y = 42;
/**
* This is... |
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { ReactElement, ReactNode } from 'react';
import { withTheme } from 'emotion-theming';
import { Theme } from '@status-board/theme-manager/lib/types';
interface Props {
children: ReactNode;
theme: Theme;
}
const css = {
...((props: Props) => ({
... |
/**
* Datart
*
* Copyright 2021
*
* 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 t... |
// Copyright 2020 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.
import * as FrontendHelpers from '../../../test/unittests/front_end/helpers/EnvironmentHelpers.js';
import * as ComponentHelpers from '../../component_hel... |
/**
* @file Libra 天秤座
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import React from 'react';
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper(
'libra',
false,
(props: ISvgIconProps) => (
<svg
... |
import * as React from "react"
import { StaticImage } from "gatsby-plugin-image"
export default () => (
<div id="project">
<section className="content">
<div className="block-content">
<div className="project-title">
<h2>Computer Supported Collaboration Research</h2>
<p classNam... |
import React, { useEffect } from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Image from "../components/atoms/image"
import ShareSNS from '../components/molecules/shareSNS'
import ProfileBox from '../components/molecules/profileBox'
impor... |
import { h } from "preact";
import FormField from "preact-material-components/FormField";
import Radio from "preact-material-components/Radio";
// components
import { HIValue } from "../../lib/onchange";
import { IDefProps, IDefState } from "../../iface";
import * as API from "../../api/main";
// components
import B... |
import { Subscription } from 'rxjs'
import {
StreamState,
RunningStateLike,
StreamStateSubject,
SubscriptionSet,
} from '@ceramicnetwork/common'
import { StreamID } from '@ceramicnetwork/streamid'
import CID from 'cids'
export class RunningState extends StreamStateSubject implements RunningStateLike {
readon... |
import {
Uri,
ViewColumn,
WebviewPanel,
window,
workspace,
} from "vscode";
export class PreviewPanel {
private pickedReport: string;
private previewPanel: WebviewPanel;
constructor(pickedReport: string) {
this.pickedReport = pickedReport;
}
public async createWebView(... |
import getDefaultModule from './getDefaultModule'
interface Schema {
name: string
get(typeName: string): any
getTypeNames(): string[]
}
interface SchemaField {
name: string
type: SchemaType
}
interface PreviewFields {
media?: string
}
interface PreviewPreparer {
(selection: {}): PreviewFields
}
type ... |
import { Component, OnInit } from "@angular/core";
import { ContractService } from "app/services/contract.service";
import { AssetsService } from "app/services/assets.service";
import { ToastrService } from "ngx-toastr";
@Component({
selector: "app-contract-list",
templateUrl: "./contract-list.component.html",
s... |
/* This file is generated for code completion purposes */
const temp = {
quotes: true,
'karma-tracking': true,
'username-colors.enabled': true,
'username-colors.saturation': 40,
'username-colors.lightness': 35,
};
export type HackerNewsSavedConfig = typeof temp; |
import * as t from 'io-ts';
import {RTTI_Extension, IExtension} from './RTTI_Extension';
import {RTTI_canonical} from '../Scalar/RTTI_canonical';
import {
RTTI_TerminologyCapabilities_Version,
ITerminologyCapabilities_Version,
} from './RTTI_TerminologyCapabilities_Version';
import {RTTI_Element, IElement} from './... |
import { Component, OnInit } from '@angular/core';
import {
NavController,
AlertController,
MenuController,
ToastController,
PopoverController,
LoadingController,
ModalController } from '@ionic/angular';
import { RestApiService } from './../../rest-api.service';
// Camera
import { Camera, CameraOptio... |
import { useContextSelector, useHasParentContext } from '@fluentui/react-context-selector';
import { ListboxContextValues, ListboxState } from '../components/Listbox/Listbox.types';
import { ComboboxContext } from './ComboboxContext';
export function useListboxContextValues(state: ListboxState): ListboxContextValues {... |
import { Injectable } from '@angular/core';
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
import { ContactDialogComponent } from 'src/app/modules/contact-dialog/contact-dialog.component';
@Injectable({
providedIn: 'root'
})
export class ContactDialogService {
constructor(public dialog: MatDi... |
import Vue from "vue";
import RepoLink from "@theme/components/Navbar/RepoLink.vue";
import SidebarDropdownLink from "@theme/components/Sidebar/SidebarDropdownLink.vue";
import NavLink from "@theme/components/Navbar/NavLink.vue";
import { getNavLinkItem } from "@theme/util/navbar";
import type { NavBarConfigItem } fro... |
import Vue from 'vue';
import Router from 'vue-router';
import LandingPage from '@/components/LandingPage.vue';
import Home from '../views/Home.vue';
import About from '../views/About.vue';
Vue.use(Router);
export default new Router({
routes: [
{
path: '/l',
name: 'landing-page',
component: Lan... |
import {
IDialogContentStyleProps,
IDialogContentStyles,
IDialogFooterStyleProps,
IDialogFooterStyles
} from 'office-ui-fabric-react/lib/Dialog';
import { FontWeights } from '@uifabric/styling';
import { FontSizes } from '../FluentType';
export const DialogContentStyles = (props: IDialogContentStyleProps): Par... |
import Undefined from "../../../dist/assert/undefined";
it("enable console log", () => { spyOn(console, 'log').and.callThrough();});
it(`true`, () => {
try {
Undefined(true);
fail('exception should thrown');
} catch (e) {
expect(e).toBeInstanceOf(Error);
}
});
it(`false`, () =... |
import React from "react";
export default class Landing extends React.Component {
render() {
return (
<div>
<div>
<h1>Landing</h1>
</div>
</div>
)
}
} |
import { Injectable } from '@angular/core';
import { Cmyk, Rgba, Hsla, Hsva } from '../clases/formats';
import { ColorPickerComponent } from '../components/color-picker/color-picker.component';
import { ColorFormats } from '../enums/formats';
@Injectable()
export class ConverterService {
// private active: ColorPi... |
import express from 'express';
const endpoint = express.Router();
endpoint.get('/', (req, res) => {
res.send({ msg: 'Storekeeper API is running!' });
});
endpoint.post('/', (req, res) => {
res.send({ header: req.headers, body: req.body });
});
export default endpoint; |
import { createSelector } from 'reselect'
import { isLoadingType } from 'decentraland-dapps/dist/modules/loading/selectors'
import { LoadingState } from 'decentraland-dapps/dist/modules/loading/reducer'
import { getAddress } from 'decentraland-dapps/dist/modules/wallet/selectors'
import { RootState, Vector3 } from 'mo... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
i... |
export interface ICanvasParam {
element: HTMLCanvasElement;
width: number;
height: number;
pxratio?: number;
ctx?: CanvasRenderingContext2D;
}
export enum ShapeType {
CIRCLE = "circle",
EDGE = "edge",
TRIANGLE = "triangle",
POLYGON = "polygon",
STAR = "star",
IMAGE = "image",
IMAGES = "images"
}
export en... |
// *** 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 * as inputs from "./types/input";
import * as outputs from "./types/output";
import * as utilities ... |
export interface Icon {
[libraryName: string]: string;
} |
import { HttpException, Injectable, NotFoundException } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { isMongoId } from 'class-validator';
import { cPostCreate, replyCreate, editCPost, editCReply, FilterType } from './community.dto';
import { CommunityP... |
module x {
interface c {
}
}
declare export import a = x.c;
var b: a; |
/**
* Copyright 2016 Sven Loesekann
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... |
import { PullRequestProcessor } from '@core/processing/pull-requests/pull-request-processor';
import { PullRequestsStatisticsService } from '@core/statistics/pull-requests-statistics.service';
import { AbstractGithubApiCommentsService } from '@github/api/comments/abstract-github-api-comments.service';
export class Git... |
import styled from 'styled-components';
import { darken, transparentize } from 'polished'
export const Container = styled.form`
h2 {
color: var(--text-title);
font-size: 1.5rem;
margin-bottom: 2rem;
}
input {
width: 100%;
padding: 0 1.5rem;
height: 4rem;
border-radius: 0.25rem;
... |
import { css, ElementStyles } from '@microsoft/fast-element';
import {
disabledCursor,
display,
ElementDefinitionContext,
FlipperOptions,
focusVisible,
forcedColorsStylesheetBehavior,
} from '@microsoft/fast-foundation';
import { SystemColors } from '@microsoft/fast-web-utilities';
import { heightNumber } f... |
import UserContext, { ctxWeakMapMemoize } from "./UserContext";
import { TweetRow } from "../types";
import DataLoader from "dataloader";
import { knex } from "../db";
import { TWEET_SNOWFLAKE_REGEX } from "../utils";
import SkinModel from "./SkinModel";
export type TweetDebugData = {
row: TweetRow;
};
export defau... |
import { Component } from '@angular/core';
@Component({
selector: 'fd-popover-body',
templateUrl: './popover-body.component.html'
})
export class PopoverBodyComponent {} |
import {FunctionalComponent, h} from '@stencil/core';
export const IconAlignCenter: FunctionalComponent = () => (
<svg
width="100%"
height="100%"
viewBox="0 0 512 512"
style={{
fillRule: 'evenodd',
clipRule: 'evenodd',
strokeLinecap: 'round',
strokeLinejoin: 'round'
}}>
... |
export interface AppWindow extends Window {
webkitSpeechRecognition: any;
} |
import Chunk from "./core/chunk";
import { STATUS } from './constants/status';
import Service, { FileProps, UploadedFileInfo, AdapterType } from './service';
export { STATUS, TASK_STATUS_INFO, UPLOADING_STATUS } from './constants/status';
export { AdapterType, UplaodConfig, FileProps, BPutResponse, CreateFileResInfo,... |
import tw from 'tailwind.macro'
import styled from 'styled-components'
const Description = styled('div')<{ long?: boolean }>`
${tw`text-sm sm:text-base md:text-lg max-w-lg text-grey-lighter`};
span {
${tw`text-orange`};
}
a {
${tw`no-underline text-orange hover:text-orange-light`};
}
pre {
${tw... |
import { expect, haveResource, haveResourceLike, ABSENT } from '@aws-cdk/assert-internal';
import * as appscaling from '@aws-cdk/aws-applicationautoscaling';
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
impo... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome... |
declare module '*.jpg';
declare module '*.webp';
declare module '*.png';
declare module '*.otf'; |
import {MiraServiceStack, MiraApp} from 'mira'
import {Core} from './core'
import {EcsNlb} from './ecs-nlb'
import {ApiGatewayNlb} from './api-gw-nlb'
import {WebApp} from './web-app'
export class MainStack extends MiraServiceStack {
constructor(parent: MiraApp, env: string) {
super(parent, env, MainStack.name... |
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';
import { IsEmailOrEmpty } from 'src/Infrastructure/Common/Validator/IsEmailOrEmpty';
import { IsPhoneNumberOrEmpty } from 'src/Infrastructure/Common/Validator/IsPhoneNumberOrEmpty';
export class ContactDTO {
@ApiProp... |
import { getFirebase, IHasContext } from "./init";
import { Mode } from "./Types";
/**
* Helper function which merges data into the source
* and returns the new object.
*
* @param {Object} data - JSON data
* @param {Object} fields - JSON data that supports field-paths
* @return {Object} Result
*/
export functio... |
/*BSD 3-Clause License
Copyright (c) 2020, Blockception Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of con... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Amaz... |
import { Profiler } from "@aurelia/kernel";
import { Aurelia, CustomElement } from "@aurelia/runtime";
import { TestContext, writeProfilerReport, assert } from "@aurelia/testing";
describe("generated.template-compiler.static", function () {
// eslint-disable-next-line mocha/no-hooks
before(function () {
... |
/*
* 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 React from 'react';
import { FormattedMessage } from '@kbn/i18n/react'... |
import { forwardRef, Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { MembersModule } from '../models/members/members.module';
import { PassportModule } from '@nestjs/passport';
import { AuthController } from './auth.controller';
import { JwtModule } from '@nestjs/jwt';
import { Jw... |
import { useEffect, useCallback } from "react";
import CheckBox from "~/_common/Checkbox";
import { Viewer, Worker } from "@react-pdf-viewer/core";
import { defaultLayoutPlugin } from "@react-pdf-viewer/default-layout";
import pdfViewerCore from "@react-pdf-viewer/core/lib/styles/index.css";
import pdfViewerLayout from... |
import { Inject, Injectable } from "@decorators/di";
import { Request, Response, NextFunction } from 'express';
import { Request as Req, Response as Res, Next, Controller, Get } from '@decorators/express';
import ApiController from '../../../lib/controller';
import { Logger, StdLogger } from "../../../lib/loggers";
im... |
export { ContribuyenteList as default } from "./contribuyente-list"; |
import React from "react";
import iframePhone from "iframe-phone";
import { Embeddable } from "./embeddable";
import { mount } from "enzyme";
import { EmbeddableType, IEmbeddablePlugin, IManagedInteractive } from "../../types";
import { DefaultManagedInteractive, DefaultXhtmlComponent, DefaultTEWindowshadeComponent, De... |
import { Inject, Injectable } from '@angular/core';
import { environment } from '../../environments/environment';
import { Storage } from '@ionic/storage';
import { FIRESTORE_SERVICE, TOAST_SERVICE } from './injection-tokens';
import { IFirestoreService } from './firestore.service.interface';
import { ISettingsService... |
import { Injectable, EventEmitter } from '@angular/core';
import { Subscription, BehaviorSubject } from 'rxjs';
import {
createStep,
createConnectionStep,
DataShape,
Integration,
Step,
IntegrationSupportService,
ActionDescriptor,
Flow,
Flows,
StepOrConnection
} from '@syndesis/ui/platform';
import ... |
import {Apollo} from 'apollo-angular';
import {Injectable} from '@angular/core';
import {Validators} from '@angular/forms';
import {formatIsoDateTime, FormValidators, Literal, NaturalAbstractModelService} from '@ecodev/natural';
import {
Accounts_accounts_items,
CreateTransaction,
CreateTransactionVariables... |
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import * as vscode from 'vscode';
import { ClientMapper } from '../clientMapper';
import { provideCompletion } from '../languageServices/completi... |
/*
* @adonisjs/validator
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { SyncValidation } from '@ioc:Adonis/Core/Validator'
import { exists, getFieldValue, wrapCompile } from '..... |
export type Dict<T = any> = { [key: string]: T } |
import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {environment} from '../../environments/environment';
import { Observable } from 'rxjs';
import {IArticle} from './../article';
interface Article {
title: string;
desc:string;
content:string;
}
@Injectable()
expor... |
import CostScoreEngineService from './cost-score.engine.service';
describe('CostScoreEngineService', () => {
let service: any;
beforeEach(() => {
service = (<any>new CostScoreEngineService).__proto__.constructor;
});
it('.get', () => {
expect(service.get).toBeDefined();
})... |
import { Month, Week, sameDay } from './../util';
import { CalendarItem, CalendarItemState } from './../CalendarItem';
import { Component, Prop, Base } from '@/core';
interface Props {
dayNames: string[];
month: Month;
selectionEnd: Date | null;
selectionStart: Date | null;
displayedMonth: number;
disabled... |
import { useEffect, useLayoutEffect } from 'react';
export function useLockBodyScroll() {
// @ts-ignore
useLayoutEffect(() => {
const originalStyle = window.getComputedStyle(document.body).overflow;
document.body.style.overflow = 'hidden';
return () => (document.body.style.overflow = originalStyle);
... |
export const LayersSvg =
'M110.933333 352l384 192c4.266667 2.133333 10.666667 4.266667 17.066667 4.266667s10.666667-2.133333 17.066667-4.266667l384-192c12.8-6.4 19.2-19.2 19.2-32s-8.533333-25.6-19.2-32l-384-192c-10.666667-4.266667-21.333333-4.266667-32 0l-384 192c-12.8 6.4-19.2 19.2-19.2 32s6.4 25.6 17.066666 32zM512... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ListMeasurementUnitComponent } from './list-measurement-unit.component';
describe('ListMeasurementUnitComponent', () => {
let component: ListMeasurementUnitComponent;
let fixture: ComponentFixture<ListMeasurementUnitComponent>;
... |
import React, { useState, useEffect, ChangeEvent, MouseEvent } from 'react';
import { Header, Table, Modal } from '../../component/Component';
import { INITIAL_VALUES_PAGINATION, INITIAL_VALUES } from './utils/INITIAL_VALUES';
import { Action, ACTION_EDIT, ACTION_DELETE, ACTION_VIEW } from '../../component/table/interf... |
export type RussianDateFormat = string;
export interface DateTimeRange {
lowerBound: Nullable<Date>;
upperBound: Nullable<Date>;
}
export interface ICanBeValidated {
focus: () => void;
}
export type DateTimeRangeChange = (e: React.SyntheticEvent<any>, value: DateTimeRange) => void; |
import { Injectable } from '@angular/core';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { map, catchError } from 'rxjs/operators';
import { ICustomer, IOrder, IState, IPagedResults, IApiResponse } from '../../shared/interfaces';
import { UtilitiesSer... |
// imports
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// @NgModule decorator with its metadata
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
providers: [],
bootstrap: [AppComponent]
... |
import { createSlice } from '@reduxjs/toolkit';
import { getAppConfigUnit } from './service';
import { SettingsState, TimeoutLockEnum } from './types';
export const initialState: SettingsState = {
isFetching: false,
settingsError: 'Unsupported language.',
appConfig: {
language: '',
unit: getAppConfigUnit... |
/*
* The AnVIL
* https://www.anvilproject.org
*
* The AnVIL section latest updates component.
*/
// Core dependencies
import React, { FC } from "react";
// App dependencies
import ButtonSize from "../../button/button-size";
import ButtonTheme from "../../button/button-theme";
import ButtonCta from "../../button-... |
// Regular import.
import { runCommand, binToString, SafeIds } from '..'
import { DatabaseUtil } from './DatabaseUtil'
import { Document } from './Document'
// Type imports.
import type { Schema } from './Schema'
/**
* Safe document id generator. No overlaps across instances.
*/
const documentIds = new SafeIds(1, 1... |
import { Injectable } from '@angular/core';
import { Observable, BehaviorSubject, Subscriber } from 'rxjs';
import { Website } from '../../interfaces/website.interface';
import { SupportedWebsites } from '../../enums/supported-websites';
import { WebsiteStatus } from '../../enums/website-status.enum';
import { BbCodePa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.