text stringlengths 10 953k |
|---|
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import { Router } from 'express';
import asyncHandler from 'express-async-handler';
const router: Router = Router();
import { ReposAppRequest, IAppSession, SupportedLinkType, ICorpor... |
/**
* FBP-Type language parser
* @module fbp-types/parse
* @author Paul Brachmann
* @license Copyright 2017 Unithing All Rights Reserved.
*/
import * as nearley from 'nearley';
import { ParserRules, ParserStart } from './grammar';
import { fragments } from './types';
// Create parser from grammar
const parser =... |
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
import { MovieVersionInfo, createMovieVersionInfo } from '../../+state';
import { getLabelByCode } from '../../static-model/staticModels';
@Component({
selector: '[info] movie-display-version-info',
templateUrl: './version-info.component.ht... |
import { DataExchange } from "../DataExchange.ts";
import { DataExchangeClient } from "../DataExchangeClient.ts";
import {
ListRevisionAssetsCommand,
ListRevisionAssetsCommandInput,
ListRevisionAssetsCommandOutput,
} from "../commands/ListRevisionAssetsCommand.ts";
import { DataExchangePaginationConfiguration } f... |
import { Component, OnInit } from '@angular/core';
import { AuthService } from 'src/app/services/auth.service';
@Component({
selector: 'app-auth-login',
templateUrl: './auth-login.component.html',
styleUrls: ['./auth-login.component.css']
})
export class AuthLoginComponent implements OnInit {
constructor(priv... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http'
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
imp... |
type Config = {
host: string;
i: string;
wsUrl: string;
apiUrl: string;
keywordEnabled: boolean;
reversiEnabled: boolean;
serverMonitoring: boolean;
mecab?: string;
};
const config = require('../config.json');
config.wsUrl = config.host.replace('http', 'ws');
config.apiUrl = config.host + '/api';
export defa... |
import { render } from '@ember/test-helpers';
import { setupRenderingTest } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import { module, test } from 'qunit';
module('Integration | Helper | unique-id', hooks => {
setupRenderingTest(hooks);
test('it captures ids', async function(assert) {
... |
import { faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import clsx from 'clsx';
import React, { ChangeEvent, ReactElement, useState } from 'react';
import css from '../../index.module.css';
interface IProps {
value?: string;
o... |
import { OfficialToFeaturesResolver } from 'definitions'
export const features: OfficialToFeaturesResolver = async (
root,
input,
{ viewer, dataSources: { systemService } }
) => {
const featureFlags = await systemService.getFeatureFlags()
const result = await Promise.all(
featureFlags.map(async ({ name, ... |
<TS language="nb_NO" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Høyreklikk for å redigere adresse, eller beskrivelse</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { ICardViewModel } from '@/data/models/cardViewModel'
import { RowDataPacket } from 'mysql2'
export interface ICardMysqlViewModel extends ICardViewModel, RowDataPacket {
cod: number
front: string
back: string
interval_time: number
} |
import * as React from 'react'
import People from '../People'
const PeopleColumn = () => {
return (
<div className="flex-1">
<div className="w-full h-full py-2">
<h2 className="mt-4 mr-5 mb-2 ml-7.5 font-semibold text-xs leading-4 text-header-secondary">
在线 - 1
</h2>
<Peop... |
import { fireEvent } from "../../../common/dom/fire_event";
import {
DeviceRegistryEntry,
DeviceRegistryEntryMutableParams,
} from "../../../data/device_registry";
export interface DeviceRegistryDetailDialogParams {
device: DeviceRegistryEntry;
updateEntry: (
updates: Partial<DeviceRegistryEntryMutablePara... |
import { booleafy } from 'utils/helpers';
import type { ActiveLoan } from 'types/active-loan';
import { useCacheCallWithValue } from '../useCacheCallWithValue';
import { currentNetwork } from 'utils/classifiers';
import { AppMode } from 'types';
export function useGetActiveLoans(
account: string,
from: number = 0,... |
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import './styles/reset.css';
import './styles/normalize.css';
import './styles/fonts.css';
import './styles/global.css';
import App from './App';
const rootElement = document.querySelector('#root');
rend... |
import {
AfterViewInit,
ChangeDetectionStrategy, ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
forwardRef,
HostBinding,
Input,
OnChanges,
OnInit,
Output, QueryList,
SimpleChanges,
ViewChild, ViewChildren,
ViewEncapsulation
} from '@angular/core';
import ... |
import React from 'react';
export default function ArticleCategories({ categories }) {
// TODO: add style to display category on individual article page
return <></>;
} |
import { tryTo } from 'misc-utils-of-mine-generic'
import { createScreen, debug, getContent, installExitKeys, React, Screen } from '../src'
import { waitFor } from '../src/blessed/waitFor'
import { Br, Div } from '../src/jsx-components'
import { OptionsProvider } from '../src/jsx-components/optionsProvider'
describe('... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.13.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do no... |
import * as registerSuite from 'intern!object';
import * as assert from 'intern/chai!assert';
import * as diff from '../../src/diff';
import WidgetBase from '../../src/WidgetBase';
registerSuite({
name: 'diff',
'always'() {
const foo = {};
const result = diff.always(foo, foo);
assert.equal(result.value, foo);
... |
import {Instrument} from "./ts/Instrument";
import {Type} from "./ts/Type";
import {Tone} from "./ts/Tone";
// 初始化原始音乐数据
var sentence1 = [0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 0, 0];
var sentence2 = [0, 1, 1, 1, 1, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 1, 0];
var raw_content = [sentence1, sentence2];
for (let i in raw_c... |
import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { environment } from '../../../environments/environment';
import { map } from 'rxjs/operators';
import { Observable } from 'rxjs';
import { ApiService } from '../ApiService';
import { Au... |
import { Group } from "./group.schema";
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
import { Document, Schema as MongooseSchema } from "mongoose";
export type StudentDocument = Student & Document;
@Schema()
export class Student {
@Prop({ required: true })
name: string;
@Prop({ required: true, ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { EntitySearchComponent } from './entity-search.component';
describe('EntitySearchComponent', () => {
let component: EntitySearchComponent;
let fixture: ComponentFixture<EntitySearchComponent>;
beforeEach(async(() => {
TestBed... |
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { DatabaseService } from './database.service';
import { CreateDatabaseDto } from './dto/create-database.dto';
import { UpdateDatabaseDto } from './dto/update-database.dto';
@Controller('database')
export class DatabaseController... |
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
},
heading: {
fontSize: theme.typography.pxToRem(15),
fontWeight: theme.typography.fontWeightRegular,
},
paper: {
marginTop: theme.spacing(8),
display: 'flex',
flex... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UpdateCustomerComponent as UpdateCustomerComponent } from './update-customer.component';
describe('UpdateCustomerComponent', () => {
let component: UpdateCustomerComponent;
let fixture: ComponentFixture<UpdateCustomerComponent>;
... |
import { appConfig } from "../../config/app.config"
import { RouteConfig } from "../_utils/RouteConfig"
import { Settings } from "./Settings"
export const settingsRouteConfig: RouteConfig = {
path: `${appConfig.historyBasename}/settings`,
element: () => <Settings />,
matchConfig: {
path: `${appConfig.historyBasen... |
import {
Component,
ComponentFactoryResolver,
HostBinding,
Input,
OnInit,
ReflectiveInjector,
ViewContainerRef,
ViewChild
} from "@angular/core";
import { InsertService } from "./insert.service";
// each component which will be dynamically inserted must be imported here
import { StaticComponent } from "... |
<TS language="en_US" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit address or label</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
import { ArrayValue, IArrayValue } from './array-value';
export function enum2array(enumObject: any): IArrayValue[] {
if (Object.keys(enumObject).some((value) => Number(value))) {
return Object.keys(enumObject)
.filter((value) => isNaN(Number(value)) === false)
.map((key) => new ArrayValue(enumObject... |
import React from 'react'
import {Palette} from '../../types/color'
import Button from '../common/Button'
import UserMenu from './user-menu/UserMenu'
import Toolbar from '../common/Toolbar'
import ToolbarItem from '../common/ToolbarItem'
import DocumentAdd from '../icons/DocumentAdd'
import Trash from '../icons/Tras... |
/*
* Copyright 2021 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 ... |
import { Component, h, Element, Prop, Event, EventEmitter, Watch } from '@stencil/core';
@Component({
tag: 'pro-checkbox',
styleUrl: 'pro-checkbox.scss',
shadow: true
})
export class ProCheckbox {
@Element() el!: HTMLElement;
@Prop() name!: string;
@Prop({ mutable: true }) value!: any | null;... |
/// <reference path="node.d.ts" />
/// <reference path="enforce.d.ts" />
class Validator implements enforce.IValidator {
private validator: enforce.ValidationCallback;
constructor(validate: enforce.ValidationCallback) {
this.validator = validate;
return this;
}
public validate(da... |
import { Domain } from '@linode/api-v4/lib/domains';
import { Linode } from '@linode/api-v4/lib/linodes';
import { domains, linodes } from 'src/__data__';
export default {
linodes: {
loading: false,
lastUpdated: 0,
results: [linodes.map((linode: Linode) => linode.id)],
entities: linodes,
},
volum... |
class SyncError extends Error {
originalError: Error
constructor (originalError: string | Error) {
super();
this.name = 'SyncError';
this.message = 'Sync failed: ';
if (typeof originalError === 'string') {
this.message += originalError;
} else {
this.message += originalError.message... |
import { ResendCodeComponent } from './resend-code.component';
import { RouterModule } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
de... |
import { Entity } from '@loopback/repository';
import { Todo } from './todo.model';
export declare class TodoList extends Entity {
id?: number;
title: string;
color?: string;
todos: Todo[];
constructor(data?: Partial<TodoList>);
} |
import Vue from "vue";
import {
Action,
getModule,
Module,
Mutation,
VuexModule
} from "vuex-module-decorators";
import { IProfile } from "@/services/realWorldApi/models";
import {
ProfileFollow,
ProfileGet,
ProfileUnfollow
} from "@/services/realWorldApi/RealWorldApiProfile";
import store from "../in... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TypeOrmModule } from '@nestjs/typeorm';
// dionisio.modules
// dionisio.entities
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'mysql',
host: 'localho... |
import * as React from 'react';
import {classNames} from '@shopify/react-utilities/styles';
import {Error} from '../../types';
import InlineError from '../InlineError';
import styles from './Choice.scss';
export interface Props {
/** A unique identifier for the choice */
id: string;
/** Label for the choice */... |
/** spell-checker: disable */
export interface IOmniClientInfo {
omnicoreversion_int: number;
omnicoreversion: string;
mastercoreversion: string;
bitcoincoreversion: string;
commitinfo: string;
block: number;
blocktime: number;
blocktransactions: number;
totaltransactions: number;
alerts: Array<{
... |
/*
* Copyright (c) 2021 Ville de Montreal. All rights reserved.
* Licensed under the MIT license.
* See LICENSE file in the project root for full license information.
*/
export const SERVICE_IDENTIFIER = {
/**
* You can bind your own logger.
*/
logger: Symbol('logger'),
/**
* You can bind your own s... |
/* tslint:disable */
import { ConcreteRequest } from "relay-runtime";
export type makeInstallationRecordMutationVariables = {
readonly iID: number;
};
export type makeInstallationRecordMutationResponse = {
readonly makeInstallationRecord: ({
readonly login?: string;
readonly error?: ({
... |
import { UserService } from './user.service';
import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { LocalStrategy } from './local.strategy';
import { PassportModule } from '@nestjs/passport';
import { JwtStrategy } from './jwt.strategy';
@Module({
imports: [PassportMod... |
import { createApp } from 'vue';
import App from './App.vue';
import { setupElementPlus } from './plugins/element-plus';
import { setupVant } from './plugins/vant';
import 'normalize.css';
import 'virtual:windi.css';
import 'virtual:windi-devtools';
import 'animate.css';
import router from './router/';
import { setu... |
import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';
import { PagetitleService } from '../../../core/pagetitle/pagetitle.service';
@Component({
selector: 'app-bootstrapui',
tem... |
import { supabase } from "../../infra/database/supabase"
import { Address } from "../../models"
export const getAddresses = async (userId: string) => {
return await supabase
.from<Address>('addresses')
.select()
.eq('user_id', userId)
.order('principal', {
ascending: false,
})
} |
export class CompraInput {
id: number;
pedido: number;
proveedor: number;
estado: string;
fecha: Date;
tipoBoleta: string;
nroNota: string;
tipoPago: string;
valorParcial: number;
descuento: number;
valorTotal: number;
creadoPor: number;
} |
/* eslint-disable no-unused-expressions */
// @ts-nocheck
import { expect } from 'chai'
import { P_TYPE, P_VALUE, P_ELEMENT, dataArray } from './constants'
import {
NBTTypes,
tagList,
tagByte,
tagInt,
tagCompound,
write
} from '../src'
describe('l2nbt.js - tagList', () => {
it('basic', () => {
const... |
/*
* analyzerNodeInfo.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: Eric Traut
*
* Defines objects that hang off the parse nodes in the parse tree.
* It contains information collected during the binder phase that
* can be used for later analysis steps or for language serv... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import * as path from "path";
import {
AzureSolutionSettings,
Func,
FxError,
NodeType,
PluginContext,
QTreeNode,
ReadonlyPluginConfig,
Result,
Stage,
} from "@microsoft/teamsfx-api";
import { StorageManagementClient } from "@az... |
import React, { useState, useMemo } from 'react';
import styled, { css } from 'styled-components';
import { THEME } from '../../theme/theme';
import { exportAsJson, exportAsSvg } from '../../utils/fileOptionsCallback';
import Button from '../button.component';
import Input from '../input.component';
import Modal from '... |
import Head from 'next/head'
import { projectConfig } from 'utils/config'
interface HeadProps {
longName?: string
shortName?: string
}
const NextHead: React.FC<HeadProps> = (props) => {
const {
longName = projectConfig.longName,
shortName = projectConfig.shortName
} = props
return (
<Head>
... |
// checking subtype relations for function types as it relates to contextual signature instantiation
// error cases
module Errors {
class Base { foo: string; }
class Derived extends Base { bar: string; }
class Derived2 extends Derived { baz: string; }
class OtherDerived extends Base { bing: string; }
... |
// link regex
export const IMG_REGEX = /(https?:\/\/.*\.(?:tiff?|jpe?g|gif|png|svg|ico|heic|webp))(.*)/gim
export const IPFS_REGEX = /^https?:\/\/[^/]+\/(ip[fn]s)\/([^/?#]+)/gim
export const POST_REGEX = /^https?:\/\/(.*)\/(.*)\/(@[\w.\d-]+)\/(.*)/i
export const CCC_REGEX = /^https?:\/\/(.*)\/ccc\/([\w.\d-]+)\/(.*)/i
e... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {TableauClientsComponent} from './tableau-clients.component';
describe('TableauClientsComponent', () => {
let component: TableauClientsComponent;
let fixture: ComponentFixture<TableauClientsComponent>;
beforeEach(async(() => {
T... |
// Original file: null
import type { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from '../../google/protobuf/FieldDescriptorProto';
import type { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Outp... |
import ClientStructure from "./ClientStructure";
import goToTargetIconSVG from "../icons/marker.svg";
const img = new Image();
img.src = goToTargetIconSVG;
class GoToTargetClientStructure extends ClientStructure {
public static TYPE = "GoToTargetClientStructure";
constructor(x0: number, y0: number) {
... |
import { IFloatingFilterComp, IFloatingFilterParams } from "../floatingFilter";
import { Component } from "../../../widgets/component";
import { RefSelector } from "../../../widgets/componentAnnotations";
// optional floating filter for user provided filters - instead of providing a floating filter,
// they can provid... |
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
/// <reference types="@angular/localize/init" />
import { AnimationEvent } from '@angular/animations';
import { BreakpointObserver } from '@angular/cdk/layout';
import {
CdkOverlayOrigin,
ConnectedPosition,
Overlay,
RepositionScrollStrat... |
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/rest
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {ParameterLocation} from '@loopback/openapi-v3';
import {RestHttpErrors} from '../../../';
import {test} from './utils... |
// file: src/tests/unit/http-client/HttpClient.request.post.test.ts
import axios from 'axios'
import { httpClient, HttpRequestType, HttpRequestParamsInterface } from '../../../http-client'
let mockRequestParams: HttpRequestParamsInterface<any> = {
requestType: HttpRequestType.post,
url: 'path/to/a/post/api/endpoi... |
import TwitchClient from 'twitch';
import { Stream } from 'twitch';
import showChannels from '../common/Channels';
const { TWITCH_CLIENT_ID, TWITCH_ACCESS_TOKEN } = process.env;
export default async function searchGame(
context: any,
{ match }
): Promise<void> {
const platform = context._session?.platform;
con... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NavbarDirectorComponent } from './navbar-director.component';
describe('NavbarDirectorComponent', () => {
let component: NavbarDirectorComponent;
let fixture: ComponentFixture<NavbarDirectorComponent>;
beforeEach(async () => {
awai... |
import React from 'react';
import { FEATURE_FLAGS_REFRESH_INTERVAL } from './constants';
import {
FeatureFlag,
FeatureFlagsMap,
FeatureFlagsProviderProps,
FeatureFlagsProviderState,
FeatureFlagsWidgetProps,
} from './types';
import { FeatureFlagsContext } from './context';
import { loadFeatureFlags, storeFea... |
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { switchMap, map } from 'rxjs/operators';
import { faCode, faInbox, faStar, faEnvelopeOpen, faFolderOpen, faChevronDown, faRecycle, faExclamationCircle, faTrash, faFolder, faTag, faChevronLeft, faChevronRight, faPaperclip } fro... |
import { ValidationObject } from '@console/shared/src';
export type UIStorageValidation = {
validations: {
name?: ValidationObject;
size?: ValidationObject;
url?: ValidationObject;
container?: ValidationObject;
diskInterface?: ValidationObject;
pvc?: ValidationObject;
};
isValid: boolean;... |
import { element, render } from '@mkenzo_8/puffin'
import RunningConfig from 'RunningConfig'
import ArrowIcon from '../icons/arrow'
import Explorer from '../../constructors/explorer'
import StaticConfig from 'StaticConfig'
import { css as style } from '@emotion/css'
import { ExplorerItemOptions, ExplorerItemDecorator }... |
import { Color, InitSignal, NewSignal, RangeConfig, RangeScheme, SignalRef } from 'vega';
import { Axis, AxisConfigMixins } from './axis';
import { CompositeMarkConfigMixins } from './compositemark';
import { HeaderConfigMixins } from './header';
import { LegendConfig } from './legend';
import * as mark from './mark';
... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { PathDB } from '../path-db'
import { PathService } from '../path.service'
import { FrontRepoService, FrontRepo } from '../front-repo.service'
import { Router, RouterState, ActivatedRoute }... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { CreateWorkspaces } from "../model/operations/CreateWorkspaces";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/OutputTypesUnion";
i... |
import { Beatmap, OsuDB, StarRatings, TimingPoint } from "./DatabaseTypes";
import { Reader } from "./DatabaseReader";
export class OsuDBReader extends Reader {
readStarRatings(): StarRatings {
const count = this.readInt();
const list: StarRatings = [];
for (let i = 0; i < count; i++) {
this.readBy... |
/*
Guards are classes that are decorated with the @Injectable() decorator and implement the CanActivate interface. A guard is responsible for determining if a request should be
handled by a route handler or route. Guards are executed after every middleware, but before pipes. Unlike middleware, guardshave access to the... |
// tracing: off
import type * as Tp from "../Collections/Immutable/Tuple"
import type { Either } from "../Either/core"
import { pipe } from "../Function"
import type { _A, _E, _R } from "../Utils"
import * as X from "../XPure"
export interface Sync<R, E, A> extends X.XPure<unknown, unknown, unknown, R, E, A> {}
expo... |
<TS language="es_ES" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Botón derecho para editar dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import * as fs from "fs";
import * as tsconfigPaths from "tsconfig-paths";
const tsconfig = JSON.parse(fs.readFileSync(__dirname + "/../tsconfig.json", "utf-8"));
tsconfigPaths.register(tsconfig.compilerOptions);
export default tsconfig; |
export const PAUSED_VM_MODAL_MESSAGE =
'This VM has been paused. If you wish to unpause it, please click the Unpause button below. For further details, please check with your system administrator.';
export const VIRTUAL_MACHINE_IS_NOT_RUNNING = 'Virtual Machine is not running';
export const NO_GUEST_AGENT_MESSAGE =
... |
/**
* Created by sam on 29/12/2016.
*
* Export des services
*/
export * from './storage/session-storage-service';
export * from './storage/local-storage-service';
export * from './security/authentication-service';
export * from './security/auth-guard-service';
export * from './security/http-service';
export * from... |
// TypeScript Version: 2.1
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class IoSocialTwitterOutline extends React.Component<IconBaseProps, any> { } |
import { css } from "@emotion/react";
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { ComponentProps, FC, useEffect } from "react";
import { ActionPane } from "./ActionPane";
import { QueryInfo } from "./QueryInfo";
import { COLOR_WHITE, SIZE2 } from "../../../components/styles";
import { mak... |
/* This file is generated by createIcons.js any changes will be lost. */
import { IconType } from '../createIcon';
declare const CloudShowersHeavyIcon: IconType;
export default CloudShowersHeavyIcon; |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import * as React from "react";
import { useRegisterItem, useUpdateItem } from "../context";
import { uuid } from "../util";
import { TouchBar } from "./touch-bar";
import { ItemType } from "../types";
export interface GroupProps {
/**
* For debug purposes
*/
id?: string;
children: React.ReactNode;
}
fun... |
export { default as KeyPerformance } from './key_performance'
export {
default as Notifications,
Notification,
Root as StaticNotifications,
Transaction as NotificationTransaction
} from './notifications'
export { default as TodaysActivity } from './todays_activity'
export { default as Report } from './report'
e... |
/**
* @format
* @file BytedGrinningFaceWithSquintingEyes byted-grinning-face-with-squinting-eyes
* @author 由 fe6 自动生成
*/
import { IIconProps, IconWrapper } from '../runtime';
// 获取 SVG 的 HTML 字符串
export const getIconBytedGrinningFaceWithSquintingEyesSvgHtml = (
props: IIconProps,
) =>
`<?xml version="1.0" enc... |
import { Component, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
class Contactform {
contactname: string;
contactemail: string;
contactmessage: string;
}
@Component({
selector: 'contact',
templateUrl: './app/contact/contact.component.html'
})
export class ContactComponent {
model:C... |
import React from 'react';
import styles from './Schmoe.module.scss';
export default function SchmoeJoe({ style }: { style?: React.CSSProperties }) {
return (
<div style={style} className={styles.schmoe}>
<img
className="Schmoe__character"
alt="Joe Schmoe illustration"
src="https://... |
import type { ComponentOptions } from '../../wx-qr/lib/awesome-qr';
const options: ComponentOptions = {
data: {
scale: 1,
},
}
Component({
data: {
text: 'https://gitee.com/liu_di/wx-qrhttps://gitee.com/liu_di/wx-qr',
// text: 'https://gitee.com/liu_di/wx-qr',
ComponentOptions: options
},
metho... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) savagemechanic. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------------------------------------------------------------------... |
import cider from '../index';
interface ModuleShape {
foo: string;
bar: number;
}
interface AliasedShape extends ModuleShape {
baz: string;
}
describe('dependency injection', () => {
it('injects value as expected', () => {
const injector = cider.createInjector<ModuleShape>({
foo: ({bar}) => {
... |
import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Method, Prop, Watch, h } from '@stencil/core';
import { getIonMode } from '../../global/ionic-global';
import { SwiperInterface, SwiperOptions } from './swiper/swiper-interface';
/**
* @virtualProp {"ios" | "md"} mode - The mode determines ... |
import { relative, join } from 'path';
import { buildPilet } from './build-pilet';
import { LogLevels } from '../types';
import {
postFile,
readBinary,
matchFiles,
createPiletPackage,
logDone,
fail,
setLogLevel,
progress,
log,
} from '../common';
export interface PublishPiletOptions {
source?: stri... |
//IMPORTING
import Orphanage from '../models/Orphanage';
import imageView from './images_view';
//ORPHANAGE
export default {
render (orphanage: Orphanage) {
return {
id: orphanage.id,
name: orphanage.name,
latitude: orphanage.latitude,
longitude: orphanage.longitude,
about: orphanage.about,
instru... |
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { RootState, walletBackendEndpoint, clientDomain } from "config/store";
import { accountSelector } from "ducks/account";
import { settingsSelector } from "ducks/settings";
import { getErrorMessage } from "demo-wallet-shared/build/helpers/getErrorM... |
import {Component} from '@angular/core';
@Component({
selector: 'ob-tabs',
templateUrl: './tabs.component.html'
})
export class TabsComponent {} |
import { ComponentRef } from '@angular/core';
import { ModalDialogComponent } from './modal-dialog.component';
export class ModalDialogInstanceService {
/**
* Used to make sure there is exactly one instance of Modal Dialog
*/
private componentRef: ComponentRef<ModalDialogComponent>;
/**
* Closes existi... |
import {StyleSheet} from 'react-native';
export const myContainersStyle = StyleSheet.create({
container: {
display: 'flex',
flex: 1,
},
ButtonContainer: {
paddingVertical: 15,
paddingHorizontal: 30,
shadowColor: 'black',
shadowOpacity: 1,
elevation: 1,
shadowRadius: 5,
shadowOf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.