text stringlengths 10 953k |
|---|
import { Meta, Story } from "@storybook/react";
import React from "react";
import { RoomListEmpty, RoomListEmptyProps } from ".";
const storyMeta: Meta = {
title: "HomePage/RoomListEmpty",
component: RoomListEmpty,
parameters: {
backgrounds: {
default: "Homepage Background",
},
... |
/* tslint:disable quotemark */
import {nonPosition} from '../../../src/compile/mark/mixins';
import {expression} from '../../../src/compile/predicate';
import * as selection from '../../../src/compile/selection/selection';
import {parseUnitModel} from '../../util';
const predicate = selection.selectionPredicate;
des... |
export { default as ImgAmbilight } from "./ImgAmbilight"; |
import { createBodyParser, JsonBodyParser } from "../mod.ts";
import {
assertEquals,
assertThrowsAsync,
} from "https://deno.land/std/testing/asserts.ts";
import { createReq } from "./helpers.ts";
import { JsonStrictError } from "../src/errors/jsonStrict.ts";
import { OverLimitError } from "../src/errors/overLimit.... |
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
/* tslint:disable */
const KEY_CODES = /^(F24|F23|F22|F21|F20|F19|F18|F17|F16|F15|F14|F13|F12|F11|F10|F9|F8|F7|F6|F5|F4|F3|F2|F1|[0-9A-Z])$/;
/* tslint:enable */
@Component({
selector: 'app-accelerator',
templateUrl: ... |
import { Component, OnInit } from '@angular/core';
import { AuthService } from './../../services/auth.service';
import { FlashMessagesService } from 'angular2-flash-messages';
import { Router } from '@angular/router';
import { ValidateService } from './../../services/validate.service';
@Component({
selector: 'app-r... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
export const nodePropertiesBySyntaxKind = new Map([
["Identifier", new Set(["kind","escapedText","originalKeywordKind","isInJSDocNamespace","text","flags","decorators","modifiers","parent","getSourceFile","getChildCount","getChildAt","getChildren","getStart","getFullStart","getEnd","getWidth","getFullWidth","getLea... |
export const root: string;
export const inputWrapper: string;
export const checked: string;
export const label: string;
export const thumb: string;
export const track: string;
export const underlay: string;
export const nativeControl: string;
export const offLabel: string;
export const onLabel: string;
export const dis... |
import { useContext } from "react";
import { useQueryClient, useMutation, UseMutationResult } from "react-query";
import pluralize from "pluralize";
import { DataContext } from "@contexts/data";
import {
DeleteManyResponse,
IDataContext,
HttpError,
BaseRecord,
MutationMode,
ContextQuery,
Qu... |
/*
* 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 { IEsSearchResponse } from '../../../../../../../src/plugins/data/comm... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-internal',
templateUrl: './internal.component.html',
styleUrls: ['./internal.component.css']
})
export class InternalComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
/** @module queues */
export { KafkaMessageQueue } from './KafkaMessageQueue'; |
/*
* 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 Boom from 'boom';
import { ByteSizeValue } from '@kbn/config-schema';
... |
import {
SENDER,
} from './constants';
import {
EVENTS,
BaseState,
EventPayload,
InternalStore,
MutationEventData,
INTERNAL,
} from '@harlem/core';
import {
omit,
} from '@harlem/utilities';
import type {
Options,
} from './types';
export * from './types';
export default functio... |
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import {
NativeScriptCommonModule,
NativeScriptRouterModule
} from '@nativescript/angular';
import { MaterialModule } from '../material.module';
import { CommentSkeletonComponent } from './comment-skeleton/comment-skeleton.component';
import { CommunityCar... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
*/
export const pkgName = "@fluidframework/request-handler";
export const pkgVersion = "0.43.0"; |
export class LoginRouterMock {
getCurrentNavigation() {
return {
extras: {
state: {
hasLoggedOut: true,
},
},
};
}
} |
import React, { Fragment, FunctionComponent } from 'react';
import { styled, Global } from '@storybook/theming';
import { OverlayScrollbarsComponent } from './OverlayScrollbarsComponent';
import { getScrollAreaStyles } from './ScrollAreaStyles';
export interface ScrollProps {
horizontal?: boolean;
vertical?: bool... |
// *** 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 React from "react";
import Router from "next/router";
import {
Button,
Form,
Row,
Col,
InputGroup,
FormControl,
FormGroup,
FormLabel,
} from "react-bootstrap";
interface ModifyingProductFormProps {
updateProduct;
categories: string[];
errors: Map<string, string>;
}
const ModifyingProductF... |
import { TestBed } from '@angular/core/testing';
import { LocaleNotDefinedGuard } from './locale-not-defined.guard';
describe('LocaleNotDefinedGuard', () => {
let guard: LocaleNotDefinedGuard;
beforeEach(() => {
TestBed.configureTestingModule({});
guard = TestBed.inject(LocaleNotDefinedGuard);
});
i... |
import { Exception } from "@bluelibs/core";
export class InvalidPasswordException extends Exception {
getMessage() {
return "Username or password are invalid.";
}
getCode() {
return "INVALID_PASSWORD";
}
} |
/*!
* @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 { firestore } from 'firebase-admin';
import { createTraverser } from '@firecode/admin';
const usersCollection = firestore().collection('users');
const traverser = createTraverser(usersCollection);
const { batchCount, docCount } = await traverser.traverse(async (batchDocs, batchIndex) => {
const batchSize = b... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DefaultModule } from './layouts/default/default.module';
import { DefaultComponent } from './layouts/default/default.component';
import { DashboardComponent } from './modules/dashboard/dashboard.component';
import... |
import { useDesigner } from '../hooks'
import { WorkspaceSymbol } from '../context'
import { defineComponent, provide, ref, unref, computed } from 'vue-demi'
import {
FragmentComponent,
h as CreateElment,
VueComponent,
} from '@formily/vue'
export interface IWorkspaceProps {
id?: string
title?: string
descr... |
import { Injectable, Logger, Inject, Optional } from "@jsmon/core";
import { MailConfig, MAIL_CONFIG } from "./config";
import { createTransport } from "nodemailer";
import Mail, { Attachment } from "nodemailer/lib/mailer";
import { MailOptions } from "nodemailer/lib/sendmail-transport";
import { ConfigService } from "... |
export interface GetTranslationRequest {
source: string;
target: string;
word: string;
} |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import fs from 'fs';
import cp from 'child_process';
import path from 'path';
import { ChildProcess } from 'child_process';
import * as component from '../common/component';
import { getLogger, Logger } from '../common/log';
import { getTunerP... |
import { useEffect, useState } from "react";
const useDynamicLoad = (importPromise: Promise<any>) => {
const [loaded, setLoaded] = useState(false);
const [module, setModule] = useState(null);
useEffect(() => {
importPromise.then((mod) => {
setModule(mod);
setLoaded(true);
});
}, [importProm... |
import { Entity, Column, PrimaryColumn, OneToOne, JoinColumn } from "typeorm"
@Entity()
export class FulfillmentProvider {
@PrimaryColumn()
id: string
@Column({ default: true })
is_installed: boolean
}
/**
* @schema fulfillment_provider
* title: "Fulfillment Provider"
* description: "Represents a fulfillm... |
import * as React from 'react';
const DismissCircle24RegularIcon = () => {
return(
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 59.1 (86144) - h... |
import { Injectable, NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
export interface Response<T> {
data: T;
}
@Injectable()
export class TransformInterceptor<T> implements NestInterceptor<T, Response<T>> {
intercept(... |
export * from './connectors/index';
export * from './facade/index';
export * from './store/actions/index';
export * from './store/selectors/index';
export * from './store/user-state';
export * from './user.module';
export * from './user-transitional.module';
export * from './user-transitional-tokens'; |
declare module "*.html";
declare module "*.md"; |
import svg2wxss from "../lib/svg2wxss"
import path from "path";
svg2wxss({
path:path.resolve("test/svgs"),
out:{
path:path.resolve("test/dist")
}
}).then(_=>{
console.log("ok");
}); |
export enum ErrorCode {
INVALID_ATTRIBUTES,
INCORRECT_CREDENTIALS,
INVALID_PASSWORD,
LOCKED,
UNKNOWN_ERROR,
USER_ALREADY_EXISTS,
WEAK_PASSWORD,
}
export interface ApplicationError {
code: ErrorCode;
message: string;
} |
export { SingleImageUpload } from "./SingleImageUpload";
export { MultiImageUpload } from "./MultiImageUpload";
export { default as Image } from "./Image";
export { default as ImageEditorDialog } from "./ImageEditorDialog"; |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-auth',
template: `
<p>
auth works!
</p>
`,
styles: [],
})
export class AuthComponent implements OnInit {
constructor() {}
ngOnInit(): void {}
} |
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {Article} from '../shared/article.model';
@Component({
selector: 'app-adviser',
templateUrl: 'adviser.component.html',
styleUrls: ['adviser.component.css'],
})
export class AdviserComponent implements OnInit{
@Input() articles... |
import React from 'react'
import Switch from './switch'
import type {Props} from './checkbox'
import * as Styles from '../styles'
const Checkbox = (props: Props) => (
<Switch
align="left"
color="blue"
disabled={props.disabled}
label={props.labelComponent || props.label || ''}
on={props.checked}
... |
import styled, { keyframes } from "styled-components"
import colors from "./colors"
import breakpoints from "./breakpoints"
const commonStyle = `
border-radius: 4px;
transition: 0.3s all;
cursor: pointer;
color: white;
font-size: 16px;
font-weight: 300;
margin: 20px 0;
-webkit-appearance: none;
line-... |
import Pie from './Pie';
import Base from '../base/Base';
export default function Factory(
config?: Base.IConfig
): Pie; |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EventListViewComponent } from './components/event-list-view/event-list-view.component';
import { LoginViewComponent } from "src/app/components/login-view/login-view.component";
import { NewGroupTripComponent } fro... |
import { Time } from "@angular/common";
export class timeSlots{
id: string;
date: Date;
time: Time;
} |
/* eslint-disable @typescript-eslint/camelcase */
// SauceNao output of https://owo.whats-th.is/6MtFNmm.png (upload of image.png)
export const normalData = {
header: {
user_id: "14555",
account_type: "1",
short_limit: "6",
long_limit: "200",
long_remaining: 196,
short_remaining: 5,
status... |
import fetch from 'node-fetch'
let itemdata: { [key: string]: any } = {}
async function fetchItems (): Promise<void> {
try {
if (process.env.LOOTCORD_BOT_API_URL && process.env.LOOTCORD_BOT_API_AUTH) {
const res = await fetch(`${process.env.LOOTCORD_BOT_API_URL}/api/items`, {
method: 'POST',
headers: {
... |
import { HLSCallback } from 'hls-download';
import type { FunimationSearch } from './funiSearch';
import type { AvailableMuxer } from '../modules/module.args';
import { LanguageItem } from '../modules/module.langsData';
export interface MessageHandler {
auth: (data: AuthData) => Promise<AuthResponse>;
checkToken: ... |
import Controller from '@ember/controller';
export default class Home extends Controller.extend({
// anything which *must* be merged to prototype here
}) {
// normal class body definition here
}
// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.
declare module '@ember/controller' {
... |
/*
* Angular 2 decorators and services
*/
import {
Component,
OnInit,
ViewEncapsulation,
AfterViewInit
} from '@angular/core';
import { AppState } from './app.service';
// import * as App from '../assets/public/oneui/assets/js/app.js';
// import * as Scroll from '../public/oneui/assets/js/core/jquery.slimscro... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { delay, RequestOptionsBase } from "@azure/core-http";
import { Poller } from "@azure/core-lro";
import { KeyVaultClient } from "../../generated/keyVaultClient";
import {
RestoreOperationState,
RestorePollOperationState,
makeRestor... |
/***********************************************************
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License
**********************************************************/
import express = require('express');
import { generateDataPlaneRequestBody, API_VERSION, processDataPla... |
export declare class authDto {
email: string;
password: string;
} |
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as os from 'os';
const OPENOCD_VALID_RTOS: string[] = ['eCos', 'ThreadX', 'FreeRTOS', 'ChibiOS', 'embKernel', 'mqx', 'uCOS-III', 'auto'];
const JLINK_VALID_RTOS: string[] = ['FreeRTOS', 'embOS'];
export class ModuleDebugConfigurationProvider impleme... |
import { Id as BaseId } from './Id'
import { Record } from './Record'
export type Proof<Id = BaseId> = {
theorems: Id[]
properties: Id[]
}
export type Trait<Id = BaseId> = Record & {
space: Id
property: Id
value: boolean
proof?: Proof<Id>
} |
import React, { useContext } from 'react'
import styled, { ThemeContext } from 'styled-components'
export interface SpacerProps {
size?: 'sm' | 'md' | 'lg'
}
const Spacer: React.FC<SpacerProps> = ({ size = 'md' }) => {
const { spacing } = useContext(ThemeContext)
let s: number
switch (size) {
case 'lg'... |
<TS language="pt_BR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clique com o botão direito para editar o endereço ou rótulo</translation>
</message>
<message>
<source>Create a new address</sou... |
import { DayjsDateProvider } from '../../../../shared/container/provider/DateProvider/implementations/DayjsDateProvider';
import { MailProviderInMemory } from '../../../../shared/container/provider/MailProvider/inmemory/MailProviderInMemory';
import { AppError } from '../../../../shared/errors/AppError';
import { Users... |
import styles from './header.module.scss'
import React, { useEffect, useState } from 'react'
import Link from 'next/link'
import { DBConnection, Project, User } from '../../data/models'
import { useAppSelector } from '../../redux/hooks'
import { useRouter } from 'next/router'
import { selectCurrentUser } from '../../re... |
import { BaseData } from "novadatainterface/BaseData";
import { BaseParse } from "./BaseParse";
import { BaseResource } from "../resourceParsers/NovaResourceBase";
import { TargetCornersData, DefaultTargetCornersData } from "novadatainterface/TargetCornersData";
async function TargetCornersParse(_base: BaseResource, ... |
import { createRef } from 'react';
import { mount } from 'enzyme';
import { DataGridViewWrapper, viewFunction } from '../data_grid_view_wrapper';
import $ from '../../../../core/renderer';
describe('DataGridViews', () => {
describe('View', () => {
it('default render', () => {
const widgetRef = createRef();... |
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { SearchComponent } from './search.component';
describe('Sea... |
import { FieldArrayField, UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer";
import { ReactNode } from "react";
import { ButtonProps, FormGroupProps as CarbonFormGroupProps } from "carbon-components-react";
import { FormGroupProps } from '../form-group';
export interface FieldArrayButtonLabel... |
import React, { forwardRef } from 'react';
import type { IconBaseProps } from '../icon/IconBase';
import IconBase from '../icon/IconBase';
const Hospital = forwardRef<HTMLSpanElement, IconBaseProps>(({ svgProps, ...restProps }, ref) => {
return (
<IconBase aria-label="hospital" {...restProps} ref={ref}>
<s... |
import { searchResources } from "./common/SoApi";
import { useStore } from "./common/store";
import { View } from "./common/View";
export default function MyView() {
const store = useStore(["results"], (_, q) => searchResources(q as string));
const sectionNames = ["Search Results"];
return (
<View
sect... |
import { SerializationHelper } from "../Misc/decorators";
import { Nullable } from "../types";
import { Scene } from "../scene";
import { Matrix, Vector3, Vector2, Vector4 } from "../Maths/math.vector";
import { AbstractMesh } from "../Meshes/abstractMesh";
import { Mesh } from "../Meshes/mesh";
import { SubMesh } from... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
enum MutexLockStatus {
LOCKED,
UNLOCKED
}
type Callback = (...args: any[]) => any;
/**
* An async mutex lock.
*
* @export
* @class Mutex
*/
export class Mutex {
/**
* Lock for a specific key. If the lock has been acquired by ano... |
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {App, AppStatus} from "../../components/appicon-widget/app";
import {DomSanitizer} from "@angular/platform-browser";
import {HttpDataProvider} from "../../providers/http-data/http-data";
import {Subscripti... |
export * from './password-reset'; |
export { default as Select } from './Select';
export { default as SelectOption } from './SelectOption'; |
/*
* Copyright (c) 2019-present Sonatype, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
import React, { useCallback, useMemo } from 'react';
import Icon from 'react-native-vector-icons/Feather';
import { format } from 'date-fns';
import ptBR from 'date-fns/locale/pt-BR';
import { useNavigation, useRoute } from '@react-navigation/native';
import {
Container,
Title,
Description,
OkButton,
OkButto... |
import { MultiplyExpressionTree } from '@xon/ast';
import { getExpressionTranslator } from '../expression-helper';
import { ExpressionTranslator } from '../expression.translator';
export class MultiplyExpressionTranslator extends ExpressionTranslator {
constructor(public tree: MultiplyExpressionTree) {
sup... |
/*
* Copyright 2017 OICR
*
* 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... |
import { Observable } from 'rxjs/Rx';
import { Injectable } from '@angular/core';
import { Http, Response, Headers, URLSearchParams } from '@angular/http';
import { AppSettingsService } from '../app-settings';
import { DataCacheService } from '../shared/services/data-cache.service';
@Injectable()
export class DataEntry... |
import { TestBed, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
... |
import LocationDropDownItem from "../components/location-drop-down-picker/LocationDropDownItem";
import Ionicons from "react-native-vector-icons/Ionicons";
import { DEFAULT_LOCATION_ICON_ID } from "./AddressConstants";
import React from "react";
export const MAX_LOCATION_NAME_LENGTH = 30;
export const MAX_ADDRESS_NAME... |
import * as React from 'react';
import { ProgressProps } from '../progress';
export declare type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed';
export interface HttpRequestHeader {
[key: string]: string;
}
export interface RcFile extends File {
uid: string;
readonly lastModifiedD... |
import parse from 'date-fns/parse';
import {Bounty, BountyDict, RawBounty} from 'types/github';
import bounties from 'data/bounties.json';
export const getBounties = (): BountyDict => {
const results: any = {};
Object.entries(bounties).forEach(([githubUsername, bountyList]) => {
results[githubUsername] = (bo... |
// Copyright 2017-2019 @polkadot/api 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 { ProviderInterface } from '@polkadot/rpc-provider/types';
import { AnyFunction } from '@polkadot/types/types';
import { Ap... |
import { CommandResponse, ICommand } from ".";
import { ITaskContext } from "../context";
import { ILogger } from "../logger";
import { ITerraformProvider } from "../providers";
import AzureRMProvider from "../providers/azurerm";
import { IRunner, RunnerOptions, RunnerResult } from "../runners";
import { RunWithTerrafo... |
import { Injectable } from '@angular/core';
import { CanActivate, CanActivateChild, CanLoad, Route, Router, UrlSegment, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { AuthService } from './auth.service';
@Injectable({
providedIn: 'root'
})
... |
import { NgModule } from '@angular/core';
import { CommonModule } from "@angular/common";
import { MeetingsPageComponent } from './meetings-page.component';
import { MeetingService } from "./meeting.service";
import { MeetingRouterModule } from "./meeting.routes";
const declarables = [MeetingsPageComponent];
const p... |
/**
* 分词器接口
*
* @author 老雷<leizongmin@gmail.com>
*/
'use strict';
import path from 'path';
import { searchFirstSync, searchGlobSync } from './fs/get';
import TableDictBlacklist from './table/blacklist';
import AbstractTableDictCore from './table/core';
import { IOptions as IOptionsTableDict, TableDict } from './t... |
import React, { useState } from "react";
import { ToDo } from "../UserDashboard";
import "./ListOfItems.css";
interface ListProps {
toDos: ToDo[];
setToDos: React.Dispatch<React.SetStateAction<ToDo[]>>;
saveToDos: (data: ToDo[]) => void;
}
export default function ListOfItems(props: ListProps) {
const [fuse, s... |
import { IsString } from 'class-validator';
export class CategoryDto {
@IsString()
readonly name: string;
@IsString()
readonly slug: string;
readonly description: string;
} |
import koaSession from 'koa-session';
export type AjaxMethod =
| 'get'
| 'GET'
| 'delete'
| 'DELETE'
| 'head'
| 'HEAD'
| 'options'
| 'OPTIONS'
| 'post'
| 'POST'
| 'put'
| 'PUT'
| 'patch'
| 'PATCH'; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Ref, unref, computed } from 'vue'
import { useI18n } from '/@/hooks/web/useI18n'
const { t } = useI18n()
export function useUploadType({
acceptRef,
helpTextRef,
maxNumberRef,
maxSizeRef
}: {
acceptRef: Ref<string[]>
helpTextRef: Ref<string>
maxNumberRef: Ref<number>
maxSizeRef: Ref<number>
}) {... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import * as React from 'react'
import { Dialog, DialogContent, DialogFooter } from '../dialog'
import { LinkButton } from '../lib/link-button'
import { getGlobalConfigPath } from '../../lib/git'
import { shell } from '../../lib/app-shell'
import { OkCancelButtonGroup } from '../dialog/ok-cancel-button-group'
interface... |
import type { GetStaticProps, NextPage } from 'next'
import Head from 'next/head'
import Link from 'next/link'
import { ParsedUrlQuery } from 'node:querystring'
import Footer from '../components/Footer'
import Header from '../components/Header'
import styles from './index.module.scss'
import { client } from '../lib/mic... |
import * as React from 'react';
import { ICalendar, ICalendarProps, ICalendarStrings, ICalendarIconStrings, ICalendarFormatDateCallbacks } from './Calendar.types';
import { DayOfWeek, FirstWeekOfYear, DateRangeType } from '../../utilities/dateValues/DateValues';
import { CalendarDay, ICalendarDay } from './CalendarDay'... |
import { MdiReactIconComponentType } from './dist/typings';
declare const DeathStarIcon: MdiReactIconComponentType;
export default DeathStarIcon; |
/*
* 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 './datapanel.scss';
import { uniq, keyBy, groupBy, throttle } from 'lo... |
import {rmdir} from 'fs/promises';
import tape from 'tape';
import * as u from '../users';
const partialGithubProfile = {
provider: 'github',
profileUrl: '',
_raw: '',
_json: {},
displayName: '',
username: 'Testor'
} as const;
tape('create github with * allowlist', async t => {
// setup: initialize `u`... |
import * as THREE from 'three'
import * as React from 'react'
import { useRef, useEffect, useState, useMemo } from 'react'
import useMeasure, { RectReadOnly } from 'react-use-measure'
import ResizeObserver from '@juggle/resize-observer'
import { useCanvas, CanvasProps, PointerEvents } from '../../canvas'
const IsReady... |
import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { VirementExterneComponent } from "./virementExterne.component";
const routes: Routes = [
{ path: "", component: VirementExterneComponent }
];
@NgModule... |
import { Routes } from '@angular/router';
import { NotFoundComponent } from './core/components/not-found/not-found.component';
export const routes: Routes = [
{
path: '404',
component: NotFoundComponent
},
{ path: '', loadChildren: () => import('./blog/blog.module').then(m => m.BlogModule) },
]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.