text stringlengths 10 953k |
|---|
import {Token} from '@luminate/mongo-utils'
export class DeleteEvaluationCommand {
constructor(public user: Token, public id: string) {}
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SuperSellComponent } from './super-sell.component';
describe('SuperSellComponent', () => {
let component: SuperSellComponent;
let fixture: ComponentFixture<SuperSellComponent>;
beforeEach(async(() => {
TestBed.configureTesti... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { TopNewsPage } from './top-news.page';
const routes: Routes = [
{
path: '',
component: TopNewsPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export cl... |
import { RegisterRequest } from './register-request.dto';
import { LoginRequest } from './login-request.dto';
export { RegisterRequest, LoginRequest }; |
import { NextFunction } from 'express';
import { TPassTestRequest, TPassTestResponse } from 'interfaces/requests/tests/passTest';
import { CLIENT_COURSE_FIELDS, PASS_THRESHOLD } from 'config/constants';
import {
getAssessmentProvider,
getClientCourseProvider,
updateClientCourseField,
} from 'db/providers/clientC... |
import { Router } from "express";
import validateCredentialMiddleware from "../middlewares/validateCredentialMiddleware";
import sessionRoutes from "./sessionRoutes";
import userRoutes from "./userRoutes";
import albumRoutes from "./albumRoutes";
import playlistRoutes from "./playlistRoutes";
import searchRoutes from... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as assert from 'assert';
import * as fs from 'fs-extra';
import { EOL } from 'os';
import * as path from 'path';
import { ConfigurationTarget } from 'vscode';
import { IProcessService } from '../../client/common/pr... |
/**
* This file is part of OpenTSDB.
* Copyright (C) 2021 Yahoo.
*
* 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 require... |
import { EventEmitter } from "events"
import * as path from "path"
import * as mkdirp from "mkdirp"
import * as Oni from "oni-api"
import { Event, IEvent } from "oni-types"
import * as Log from "./../Log"
import * as Performance from "./../Performance"
import { EventContext } from "./EventContext"
import { addDefau... |
import {Component, OnInit} from '@angular/core';
import {User} from '../user';
import {UserRegistrationService} from '../user-registration.service';
import {FormBuilder, Validators} from '@angular/forms';
import {NzMessageService} from 'ng-zorro-antd/message';
import {NzModalService} from 'ng-zorro-antd/modal';
@Comp... |
import { Injectable } from '@angular/core';
import { IDBPDatabase } from 'idb/build/esm/entry';
import { BehaviorSubject, Observable } from 'rxjs';
import { filter, shareReplay, take } from 'rxjs/operators';
import { DBSchema, openDB } from 'idb';
import { DBAdapter } from './db-adapter.model';
const DB_NAME = 'SUP';
... |
export interface ITransactionHistoryArchiveLookupModel {
transactionID: number;
productID: number;
referenceOrderID: number;
referenceOrderLineID: number;
transactionDate: Date | string;
transactionType: string;
quantity: number;
actualCost: number;
modifiedDate: Date | string;
// Uncomment the fol... |
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* 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 app... |
import {Component, Input, OnInit} from '@angular/core';
@Component({
selector: 'app-publish-progress-bar',
templateUrl: './publish-progress-bar.component.html',
styleUrls: ['./publish-progress-bar.component.css']
})
/**
* The component shows a progress bar during publication. The type of bar depends on the stat... |
import React, { useRef } from 'react';
import { Button, InputNumber } from 'antd';
import type { TableRowEditable, ProColumns, ActionType } from '@ant-design/pro-table';
import { EditableProTable } from '@ant-design/pro-table';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import { mount, render } from... |
import FieldState from "./interfaces/field-state";
import Game from "./game";
import { AbilitiesEnum } from "./abilities/abilities.enum";
export default class Controller {
private _game: Game;
constructor(game: Game) {
this._game = game;
}
useAbility(ability: AbilitiesEnum) {
this._ga... |
/*
MIT License
Copyright (c) 2021-present, Elastic NV
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... |
import mongoose, { Schema } from 'mongoose'
import mongoosastic from '../lib/index'
import { MongoosasticDocument, MongoosasticModel, Options } from '../lib/types'
import { config } from './config'
interface IPhone extends MongoosasticDocument {
name: string,
created: Date
}
// -- Only index specific field
const ... |
import { Request, response, Response } from "express";
import { UpdateCategoryService } from "../services/UpdateCategoryService";
export class UpdateCategoryController {
async handle(req: Request, res: Response){
const { id } = req.params
const { name, description } = req.body
const servi... |
version https://git-lfs.github.com/spec/v1
oid sha256:04fa6b7a953fc6876686e8b0dea15ce7b12037416d248801e22f14ea332ec7ad
size 249100 |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { documentToReactComponents } from "@contentful/rich-text-react-renderer"
import Layout from "../components/layout"
import "./site.css"
import Img from "gatsby-image"
import Button from "@material-ui/core/Button"
import { useNavigate } f... |
/*
Copyright 2019 ETCDEV GmbH
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, software
dis... |
export interface IBaseVSIXOptions {
/**
* The base URL for links detected in Markdown files.
*/
baseContentUrl?: string;
/**
* The base URL for images detected in Markdown files.
*/
baseImagesUrl?: string;
/**
* Github branch used to publish the package. Used to automaticall... |
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './state/store';
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
Vue.config.productionTip = false;
console.log(store);
new Vue({
router,
store,
render: (h) => h(App),
}).$mount('#app'); |
import { mount } from "enzyme"
import "jest-styled-components"
import React from "react"
import renderer from "react-test-renderer"
import {
ClassicArticle,
ClassicArticleInternalChannel,
ClassicArticleManyAuthors,
} from "../../Fixtures/Articles"
import { ClassicByline } from "../ClassicByline"
describe("Classi... |
/* tslint:disable:no-unused-variable */
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('App: BoartFront', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
});
});
it('should ... |
/* tslint:disable */
import { ConcreteRequest } from "relay-runtime";
import { GeneArtworksGrid_filtered_artworks$ref } from "./GeneArtworksGrid_filtered_artworks.graphql";
export type GeneArtworksGridQueryVariables = {
readonly __id: string;
readonly count: number;
readonly cursor?: string | null;
rea... |
import { SESClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SESClient";
import { VerifyEmailAddressRequest } from "../models/index";
import {
deserializeAws_queryVerifyEmailAddressCommand,
serializeAws_queryVerifyEmailAddressCommand,
} from "../protocols/Aws_query";
import { getSerdePlugin } ... |
/**
* @file IconTray 托盘
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime';
export default IconWrapper(
'IconTray',
true,
(h: IconHelper, props: ISvgIconProps) => (
<svg
... |
import { Test, TestingModule } from '@nestjs/testing';
import { HeimAudioService } from './heim-audio.service';
describe('HeimAudioService', () => {
let service: HeimAudioService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [HeimAudioService],
}... |
import events = require('node:events');
const emitter: events = new events.EventEmitter();
declare const listener: (...args: any[]) => void;
declare const event: string | symbol;
declare const any: any;
{
let result: events.EventEmitter;
result = emitter.addListener(event, listener);
result = emitter.on(... |
import React, { FunctionComponent } from 'react';
import { MWView, MWViewPlugin } from './MWViewPlugin';
type Props = {
view: MWView
viewProps: {[key: string]: any}
width?: number
height?: number
}
const MWViewWidget: FunctionComponent<Props> = ({ view, viewProps, width, height }) => {
const p = v... |
import React, { Dispatch } from 'react'
import { Modal } from 'antd'
import QrCode from 'qrcode.react'
import { AccountProvider } from '@/models'
import { v4 as uuidv4 } from 'uuid'
interface NubankModalProps {
updateProviderAssets: (provider: { secureCode: string; providerName: string }) => void
setUpdatingProvider... |
import { ClassDeclaration, MethodDeclaration } from 'ts-morph';
import { MethodInfo } from './MethodInfo';
import { TypeExtractor } from '../common/TypeExtractor';
import { TypescriptCommentExtractor } from '../comment/TypescriptCommentExtractor';
import { DecoratorExtractor } from '../decorator/DecoratorExtractor';
im... |
import {
Dictionary,
IInsetSidebarRegistry,
InsetSidebarConfig,
InsetSidebarData,
MapBreakpoint,
SidebarProperties,
} from '../../types';
import { Breakpoint } from '@material-ui/system';
import { InsetSidebarRegistry } from '../../InsetSidebar';
import { createMultiObjBuilder } from '../../shared/BuilderCr... |
import { useClipboard } from "./hooks/useClipboard";
import { useFavorites } from "./hooks/useFavorites";
import { usePreferences } from "./hooks/usePreferences";
import PrefenceListActions from "./components/PreferenceListActions";
import TogglePreferenceAction from "./components/TogglePreferenceAction";
export { use... |
import Greater from '../../dist/boolean/greater-parameters';
it('enable console log', () => { spyOn(console, 'log').and.callThrough();});
describe(`inclusive`,function() {
it(`lower with limit`, () => {
expect(Greater(0, 1, false)).toBeFalse();
expect(Greater(0, 10, false)).toBeFalse();
});
... |
import React from "react";
import "./timer.css";
import { msToTimeString } from "../../util";
export interface TimerProps {
dark: boolean;
};
export interface TimerState {
time: number;
timeInMins: string;
interval: NodeJS.Timeout;
};
// Timer that tracks and displays time elapsed since it was create... |
// import requestContext from 'request-context';
const requestContext = require('request-context');
import { Profile } from 'src/modules/users/entity/profile.entity';
import { User } from 'src/modules/users/entity/user.entity';
export class ContextProvider {
private static readonly nameSpace = 'request';
private... |
import {
JSValue,
JSValueUndefined,
JSValueBoolean,
JSValueObjectFunction,
Undefined,
JSValueObject,
} from "@/LanguageType";
export class PropertyDescriptor {
public readonly Value: JSValue;
public readonly Get: JSValueObjectFunction | JSValueUndefined;
public readonly Set: JSValueObjectFunction | JSValueUnd... |
/**
* With `pick()` you pass an array of keys that are
* contained in the passed object. It returns accordingly a new object,
* which contains only the contents for the selected keys.
* @param {object} obj
* @param {Array} keys
*
* @example
* ```
* const object = { name: 'randy', age: 23 }
* const newObject =... |
export * from './Pagination.component' |
import React, {
HTMLAttributes,
InputHTMLAttributes,
SelectHTMLAttributes,
} from 'react';
import classNames from 'classnames';
export const FieldContainer = ({
children,
className,
...props
}: HTMLAttributes<HTMLElement>) => {
const classes = classNames('my-4', className);
return (
<div className=... |
import { Component, OnInit } from '@angular/core';
import { ConfigurationService } from '../../services/configuration/configuration.service';
import { SSOConectorService } from '@wizsolucoes/ngx-wiz-sso';
import { Util } from '../../../shared/utils/util';
@Component({
selector: 'app-nav',
templateUrl: './nav.compo... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About LiteDoge</source>
<translation type="unfinished"/>
</message>
<message>
<location line=... |
/* @license
* Copyright 2019 Google LLC. 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 a... |
import { useEffect, useState } from "react";
import cs from "classnames";
import type { BaseReactProps } from "../../types";
import * as styles from "./Modal.module.less";
export interface ModalProps extends BaseReactProps
{
show: boolean;
/**
* Occurs when the modal is visible and a key is pressed dow... |
/*
* Copyright 2022 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 ... |
/**
* Generated bundle index. Do not edit.
*/
/// <amd-module name="ng9-odometer" />
export * from './public-api'; |
import { HashCode } from 'multihashes'
import { CIDVersion } from 'cids'
import BlockService from 'ipfs-block-service'
import { Format } from 'interface-ipld-format'
import { CodecCode } from 'multicodec'
export type LoadFormatFn = (code: CodecCode) => Promise<Format<any>>
export interface Options {
blockService: B... |
import {
PaginationService, ResourceService, ConfigService, ToasterService, INoResultMessage,
ICard, ILoaderMessage, UtilService, BrowserCacheTtlService, NavigationHelperService, IPagination,
LayoutService, COLUMN_TYPE
} from '@sunbird/shared';
import { SearchService, OrgDetailsService, UserService, FormSer... |
import { Injectable, OnModuleInit, Logger } from '@nestjs/common';
import { createConnection } from 'typeorm';
import {
Restaurants,
Orders,
Tables,
Menu,
Users,
OrderItems,
} from '../entity';
@Injectable()
export class DatabaseServiceService implements OnModuleInit {
constructor() {}
async onModuleIn... |
import Knex from 'knex';
export async function up(knex: Knex){
return knex.schema.createTable('problems_schedule',table=>{
table.increments('id').primary()
table.integer('week_day').notNullable();
table.integer('from').notNullable();
table.integer('to').notNullable();
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr_CA" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Talium</source>
<translation>Au sujet de Talium</translation>
</message>
<message>
<... |
import { Component } from '@stencil/core';
import { GisViewerProps } from '../../models/api';
// import { AppBar, RaisedButton } from "material-ui";
@Component({
tag: 'dev-component',
styleUrl: 'dev-component.scss'
})
export class DevComponent {
gisViewer: HTMLGisViewerElement;
render() {
... |
import { Injectable } from '@angular/core';
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
import { AuthService } from "./services/auth.service";
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class AuthGuard implements CanActivate{... |
import React, { useState } from 'react';
import { Linking } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import heartOutlineIcon from '../../assets/images/icons/heart-outline.png';
import unfavoriteIcon from '../../assets/images/icons/unfavorite.png';
import whatsappIcon from ... |
import { PipeTransform, Pipe} from '@angular/core';
import { IProduct } from './product';
@Pipe({
name: 'productFilter'
})
export class ProductFilterPipe implements PipeTransform{
transform(value: IProduct[], filterBy: string) : IProduct[] {
filterBy = filterBy ? filterBy.toLowerCase() : null;
... |
import { ApproxStructure, Assertions, GeneralSteps, Keys, Logger, Pipeline, Step } from '@ephox/agar';
import { Fun } from '@ephox/katamari';
import { TinyActions, TinyApis, TinyLoader } from '@ephox/mcagar';
import CaretPosition from 'tinymce/core/caret/CaretPosition';
import BoundaryLocation from 'tinymce/core/keyboa... |
export interface IUserRole {
roleId: number;
permissionsName: string;
permissionsCode: string;
permissionsCodeHex: string;
};
export class UserRole {
id: number;
name: string;
mask: string;
hexmask: string;
constructor (role: IUserRole) {
this.id = role.roleId;
this.name = role.permissionsNa... |
/// <reference path="soho-textarea.d.ts" />
import {
ComponentFixture,
TestBed
} from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import {
Component,
DebugElement,
ViewChild
} from '@angular/core';
import {
FormsModule,
FormGroup,
FormBuilder
} from '@angular/forms';
im... |
// *** 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 { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import { Request, Response } from "express";
import { getCustomRepository } from "typeorm";
import { MessagesRepository } from "../repositories/MessagesRepository";
import * as yup from "yup";
import { AppErrors } from "../errors/AppErrors";
class MessagesController {
async send(request: Request, response: Response)... |
/**
* @file Global loading state
* @module composable.loading
* @author Surmon <https://github.com/surmon-china>
*/
import { App, reactive, readonly, inject, nextTick, DeepReadonly } from 'vue'
import ProgressComponent from './progress.vue'
declare global {
interface Window {
$loading: Loading
}
}
export... |
import { EvaluationActionTypes } from './models/actions';
const defaultState: Shared.EvaluationResponse = {
isCurrentOptionSelected: false,
isCurrentOptionSubmitted: false,
evaluations: [],
};
export const evaluationReducer = (
state = defaultState,
action: EvaluationActionTypes
): Shared.EvaluationResponse... |
/**
* event pubsub
*/
import { logErr, logWarn } from '../shared/logger'
type Listener = (...args) => void
type ListenerItem = {
callback: (...args: any[]) => void
}
export class EventEmitter {
private listeners: Record<string, ListenerItem[]>
constructor() {
this.listeners = {}
}
private registerLi... |
import { Injectable, Injector, EventEmitter } from '@angular/core';
import { Router } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import { Codes, IAuthService, ObservableWrapper, ServiceUtils } from '../utils';
import { OntimizeService, DialogService, PermissionsService } from '../services';
i... |
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import '@stencil/core';
declare global {
namespace JSX {
interface Element {}
export interface IntrinsicElements {}
}
namespace JSXElements {}
int... |
import { User } from "../../domain/entities/User";
import { UsersRepository } from "../../domain/repositories/UserRepository";
const firebase = require("firebase");
require("firebase/firestore");
const firebaseConfig = {
apiKey: "AIzaSyDEJD0oeL4ZWNXY86UjJQpnItYoJ-hmsms",
authDomain: "user-crud-c03f6.firebase... |
/*
* 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 { mount } from 'enzyme';
import React from 'react';
import { HookWrap... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { HttpClientModule } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import {... |
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { ShareComponent } from "./share.component";
import { SharedModule } from "../shared/shared.module";
import { CoreModule } from "../core/core.module";
describe("ShareComponent", () => {
let component: ShareComponent;
let fixture: ComponentFix... |
// tslint:disable: no-console
export interface IDisposables {
dispose(): Promise<void>;
add(toDispose: () => unknown): void;
add(message: string, toDispose: () => unknown): void;
}
export function createDisposables(): IDisposables {
const disposables: Array<() => unknown> = [];
return {
asy... |
import * as express from 'express'
import { Paths } from 'features/directions-questionnaire/paths'
import { Form } from 'forms/form'
import { FormValidator } from 'forms/validation/formValidator'
import { ErrorHandling } from 'shared/errorHandling'
import { DraftService } from 'services/draftService'
import { User } ... |
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* Taken/adapted from DensityServer (https://github.com/dsehnal/DensityServer)
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
import * as DataFormat from '../../common/data-format';
import * as Coords from '../... |
/**
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* 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 restrict... |
export * from './registery';
export * from './command'; |
import { mount } from 'enzyme';
import Dropin from './Dropin';
import AdyenCheckout from '../../core';
import ThreeDS2DeviceFingerprint from '../ThreeDS2/ThreeDS2DeviceFingerprint';
import ThreeDS2Challenge from '../ThreeDS2/ThreeDS2Challenge';
const submitMock = jest.fn();
(global as any).HTMLFormElement.prototype.su... |
<TS language="fr" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Cliquer à droite pour modifier l’adresse ou l’étiquette</translation>
</message>
<message>
<source>Create a new address</source>
... |
/// <reference types="node" />
import { Keypair } from './types';
export declare const getPrivateAndPublicKeyFromPassphrase: (passphrase: string) => Keypair;
export declare const getKeys: (passphrase: string) => Keypair;
export declare const getAddressFromPublicKey: (publicKey: Buffer) => Buffer;
export declare const g... |
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ClipboardModule } from '@angular/cdk/clipboard';
import { PlatformModule ... |
import { Component } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'my-app',
template: `
<h1>{{title}}</h1>
<nav>
<a routerLink="/dashboard" routerLinkActive="active">Dashboard</a>
<a routerLink="/heroes" routerLinkActive="active">Heroes</a>
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { buildBetaEmail } from '../controllers/utils';
import Betagouv from '../betagouv'
import knex from '../db';
const populatePrimaryEmail = async() => {
const allOvhEmails = await Betagouv.getAllEmailInfos();
for (const emailId of allOvhEmails) {
try {
await knex('users').insert({
... |
import { RefObject } from 'react';
export interface ContentRect {
width: number;
height: number;
top: number;
right: number;
left: number;
bottom: number;
}
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
export default useMeasureDirty; |
/**
* @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 {Injectable, InjectionToken, StaticProvider} from '../di';
import {MissingTranslationStrategy} from '../i18n/... |
// import JestStoreLog from 'jest-store-log';
// import { run } from '../../run';
// import { stdin } from 'mock-stdin';
// import { mockProcessExit } from 'jest-mock-process';
// import { existsSync, readFileSync, writeFileSync } from 'fs';
// import 'jest-fetch-mock';
// import { getYNAnswer } from 'suf-node';
// as... |
import React, { Component } from 'react';
import { Tabs, Tab, Link } from 'carbon-components-react';
import TutorialTile from '../TutorialTile/TutorialTile';
import ITutorialObject from '../../../interfaces/ITutorialObject';
import './TutorialTabs.scss';
import Utils from '../../../Utils';
import { ExtensionCommands } ... |
// src/__mocks__/webextension-polyfill
// Update this file to include any mocks for the `webextension-polyfill` package
// This is used to mock these values for Storybook so you can develop your components
// outside the Web Extension environment provided by a compatible browser
const browser: any = {
scripting: {
... |
import React, { PureComponent } from 'react';
import { css } from '@emotion/css';
import appEvents from '../../app_events';
import { User } from '../../services/context_srv';
import { NavModelItem } from '@grafana/data';
import { Icon, IconName, Link } from '@grafana/ui';
import { OrgSwitcher } from '../OrgSwitcher';
i... |
import { Story } from '@storybook/react/types-6-0'
import React from 'react'
import { DAI, WBTC } from '../../constants/tokens'
import Component, { DoubleCurrencyLogoProps } from './index'
export default {
title: 'DoubleCurrencyLogo',
decorators: [],
}
const Template: Story<DoubleCurrencyLogoProps> = (args) => <C... |
import mongoose from 'mongoose';
import mongoosePaginate from 'mongoose-paginate-v2';
import bcrypt from 'bcrypt';
import { z } from 'zod';
import { UserDocument, CollectionCategory } from '../types';
const collectionsDefault = () =>
Object.values(CollectionCategory).map((category) => ({
collectionName: category... |
<TS language="ms_MY" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik-kanan untuk edit alamat ataupun label</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
import { Component, OnInit, OnDestroy, AfterViewInit } from '@angular/core';
import { FormGroup, FormBuilder, FormArray, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs/Observable';
// import { Quill } from 'quill';
const Quill = require('... |
import {TS} from "./type/ts";
import {CloneNodeVisitorOptions} from "./clone-node-options";
export function cloneLabeledStatement(node: TS.LabeledStatement, options: CloneNodeVisitorOptions<TS.LabeledStatement>): TS.LabeledStatement {
return options.factory.createLabeledStatement(
options.hook("label", options.next... |
export const isValidUsername = (str: string) => ['admin', 'editor', 'visitor'].indexOf(str.trim()) >= 0
export const isExternal = (path: string) => /^(https?:|mailto:|tel:)/.test(path)
export const isArray = (arg: any) => {
if (typeof Array.isArray === 'undefined') {
return Object.prototype.toString.call(arg) =... |
import { TransformOptions } from '@babel/core';
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
import type { Configuration } from 'webpack';
import { logger } from '@storybook/node-logger';
import type { StorybookOptions } from './types';
export function babelDefault(config: TransformOpt... |
import {INormalizedModules, IModule} from 'codesandbox-import-util-types';
import {isText, isTooBig} from 'codesandbox-import-utils/lib/is-text';
import {readFileSync} from 'fs';
import {resolve} from 'path';
import CodeSandboxApi from '../../CodeSandboxApi';
import * as log from '../../log';
interface Files {
[path... |
import { Component } from '@angular/core';
import { BaseDocumentationSection } from '../../../../../components/base-documentation-section/base-documentation-section';
import { DocumentationSectionComponent } from '../../../../../decorators/documentation-section-component';
import { IPlunk } from '../../../../../interfa... |
// *** 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 { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.