text stringlengths 10 953k |
|---|
import i18n from 'i18next'
import BooleanInput from '../inputs/BooleanInput'
import InputGroup from '../inputs/InputGroup'
import SelectInput from '../inputs/SelectInput'
import StringInput from '../inputs/StringInput'
import InteractableGroup from '../inputs/InteractableGroup'
import NodeEditor from './NodeEditor'
imp... |
import BaseRepository from 'node-crud-kit/lib/bases/base.repository'
import IStat from '../interfaces/stat.interface'
import { Op } from 'sequelize'
import IDatabase from '../interfaces/db.interface'
export default class StatRepository extends BaseRepository<IStat> {
db: any
public constructor(db: any) {
supe... |
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { CacheService } from '@delon/cache';
import { SettingsService, User } from '@delon/theme';
@Component({
selector: 'layout-sidebar',
templateUrl: './sidebar.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
expor... |
import { AnimatedModalDialog } from "modal";
import { useState } from "react";
import { Landmark } from "../../../types/types";
export function LandmarkModal({ displayName, onClose }: Props) {
const [hide, setHide] = useState(false);
function handleExternalTap() {
setHide(true);
}
function handleHidden()... |
import { Component } from '@angular/core';
import { NgxSmartLoaderService } from '../../ngx-smart-loader/src/ngx-smart-loader';
@Component({
selector: 'app-multi',
templateUrl: './multi.component.html',
styleUrls: ['./multi.component.scss']
})
export class MultiComponent {
public code = {
one: null,
t... |
import { VcComponentPublicInstance, VcReadyObject } from '@vue-cesium/utils/types'
import { mount, config } from '@vue/test-utils'
import VcViewer from '@vue-cesium/components/viewer'
import {
VcCompass,
VcCompassSm,
VcZoomControl,
VcZoomControlSm,
VcPrint,
VcMyLocation,
VcStatusBar,
VcDistanceLegend,
... |
/*
* Copyright 2020 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, Input } from '@angular/core';
import { Page } from './page';
@Component({
selector: 'app-page',
templateUrl: './page.component.html',
styleUrls: ['./page.component.scss']
})
export class PageComponent extends Page {
@Input() loaded = false;
@Input() error: string | undefined;
@Input() ... |
// *** 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";
/*... |
export const environment = {
production: false,
apiUrl: 'https://3000code.wbrawner.com'
}; |
/**
* Copyright 2020 City of Los Angeles
*
* 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 a... |
import Header from "../components/header";
import Footer from "../components/footer";
import { CSSProperties } from "react";
/**
* Includes the header and the footer
* @param user should include an 'mail' attribute to be shown
* @param children react components which will be included inside the layout
* @construct... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sk" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Litecoin</source>
<translation>O Litecoin</translation>
</messag... |
import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
import { ToastrService } from 'ngx-toastr';
import { ServerIdentityService } from '../../services/serverIdentity';
import { RootStore } from '../../store/root.store';
@Component({
selector: 'app-server-identity',
templateUrl: './serverIdenti... |
import { IsEmail, IsNotEmpty, IsOptional } from 'class-validator';
export class CreateClientDto {
@IsNotEmpty({ message: 'First name is a required.' })
firstName: string;
@IsNotEmpty({ message: 'Last name is a required field.' })
lastName: string;
@IsNotEmpty({ message: 'Email is a required field.' })
@I... |
import './index.css';
import makeMessageExample from "./messageExample";
makeMessageExample(); |
// Type definitions for react-modal 3.10
// Project: https://github.com/reactjs/react-modal
// Definitions by: Rajab Shakirov <https://github.com/radziksh>,
// Drew Noakes <https://github.com/drewnoakes>,
// Thomas B Homburg <https://github.com/homburg>,
// Tatu Tamminen ... |
export default {
'menu.welcome': '欢迎',
'menu.more-blocks': '更多区块',
'menu.home': '首页',
'menu.admin': '管理页',
'menu.admin.sub-page': '二级管理页',
'menu.login': '登录',
'menu.register': '注册',
'menu.register.result': '注册结果',
'menu.dashboard': 'Dashboard',
'menu.dashboard.analysis': '分析页',
'menu.dashboard.mon... |
/**
* @overview Flag type: String.
*/
import FlagTypeBase, { IFlagTypeBaseOptions } from "@/flags/types/base";
/**
* Interface for the string flag type options.
*/
export interface IFlagTypeStringOptions extends IFlagTypeBaseOptions {}
export default class FlagTypeString extends FlagTypeBase<string, IFlagTypeStr... |
import {CSSObject} from 'styled-components'
import {ThemeProps} from '../types'
import {responsiveFont} from './responsiveFont'
import {ResponsiveFontStyleProps} from './types'
/**
* Get responsive CSS for the `label` font style.
* @internal
*/
export function responsiveLabelFont(props: ResponsiveFontStyleProps & T... |
// eslint-disable-next-line max-len
// modeled after https://github.com/angular/angular/blob/cee2318110eeea115e5f6fc5bfc814cbaa7d90d8/modules/Angular/test/common/directives/ng_for_spec.ts
import { TestBed } from '@angular/core/testing';
import { Component, ViewChild } from '@angular/core';
import * as Infragistics from... |
import { AnyAction } from 'redux';
import Coin from '../../models/Coin';
import {ADD_WATCHLIST_COINS, SET_WATCHLIST_DATA} from '../actions/watchlist';
export interface WatchlistState {
watchlistData: Coin[];
watchlistCoins: any;
}
const initialState: WatchlistState = {
watchlistData: [],
watchlistCoins: ['BTC... |
declare namespace codeExcerpt {
interface Options {
/**
* Number of surrounding lines to extract.
*
* @default 3
*/
readonly around?: number;
}
interface ExcerptLine {
/**
* Line number
*/
readonly line: number;
/**
* Line itself
*/
readonly value: string;
}
}
/**
* Extract c... |
/*
* 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 React from 'react'
// eslint-disable-next-line no-unused-vars
import { ISvgIconProps, IconWrapper } from '../runtime'
export default IconWrapper('home', true, (props: ISvgIconProps) => (
<svg viewBox="0 0 1024 1024" width={props.size} height={props.size}>
<path
d="M505.664 0C736.704 0 931.296 156.92... |
import {PrimaryKey, Column, CreatedAt, Model, Table, UpdatedAt, ForeignKey} from "sequelize-typescript";
import {Consumers} from "./Consumers";
@Table
export class Keys extends Model<Keys> {
@PrimaryKey
@Column
id!: string;
@Column
keyHash!: string;
@Column
keyPrefix!: string;
@Colu... |
import React, { useEffect, useState } from 'react';
import { FiClock, FiInfo } from 'react-icons/fi';
import { Map, Marker, TileLayer } from 'react-leaflet';
import Sidebar from '../components/Sidebar';
import { useParams } from 'react-router-dom';
import api from '../services/api';
import '../styles/pages/orphanage... |
/*
* 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 React, { useEffect, useState } from 'react';
import { View, FlatList, Text } from 'react-native';
import { Divider } from '../../components/Divider';
import { Loading } from '../../components/Loading';
import { Guild, GuildProps } from '../../components/Guild';
import { styles } from './styles';
import { api }... |
import {Session} from '../../../auth/session';
import {Context} from '../../../context';
import {ApiVersion} from '../../../base-types';
import {PaymentGateway} from '../../2021-07';
describe('PaymentGateway resource', () => {
const domain = 'test-shop.myshopify.io';
const headers = {'X-Shopify-Access-Token': 'th... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MyDialogComponent } from './my-dialog.component';
describe('MyDialogComponent', () => {
let component: MyDialogComponent;
let fixture: ComponentFixture<MyDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingMod... |
import React from "react";
import { FlatList, Text } from "react-native";
import CalendarStrip from "react-native-calendar-strip";
import { useNavigation } from "@react-navigation/native";
import { FAB } from "react-native-elements";
import { Feather } from "@expo/vector-icons";
import moment from "moment";
import { u... |
// Copyright 2015-2021 Swim.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 law or agreed to i... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.21.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { AddressService, DivisionService, TownshipService } from 'projects/api-client/src/public-api';
import { } from 'rxjs';
declare let $: any
@Component({
selector: 'app-root',
templateUrl: './app.compo... |
import { Component } from "@angular/core";
@Component({
selector: 'my-app',
template: `
<h3>Ladda Preloader Wrapper Demo</h3>
<div ladda-preloader [operation]="click()" label="click me"></div>
`
})
export class AppComponent {
click() {
return new Promise((resolve, rejec... |
import { LoadingSpinner } from '@sourcegraph/react-loading-spinner'
import CheckCircleIcon from 'mdi-react/CheckCircleIcon'
import prettyBytes from 'pretty-bytes'
import * as React from 'react'
import { RouteComponentProps } from 'react-router'
import { Link } from 'react-router-dom'
import { Observable, Subject, Subsc... |
import { Controller } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { Episode } from '@libs/db/models/episode.model';
import { InjectModel } from 'nestjs-typegoose';
import { Crud } from 'nestjs-mongoose-crud';
@Crud({
model: Episode
})
@Controller('episodes')
@ApiTags('课时')
export class E... |
import * as yup from "yup"
yup.setLocale({
string:{
max:({path,max})=>`${path} length must be lesser than ${max}`,
min:({path,min})=>`${path} length must be greater than ${min}`
}
})
const email=yup.string().required().trim().lowercase().email("please enter a valid email")
export const createU... |
export const meshVertices = [
8,
0.026850972324609756,
-16,
-8,
0.026850972324609756,
-16,
-8,
0.08100249618291855,
-16,
8,
0.026850972324609756,
-16,
-8,
0.08100249618291855,
-16,
8,
0.08100249618291855,
-16,
-8,
0.08100249618291855,
-16,
-8,
0.08100249618291855,
0,
8,... |
export { IotMunich as default } from "../../"; |
/* eslint-disable @typescript-eslint/naming-convention */
import { Coin } from "../coins";
import { LcdClient } from "./lcdclient";
export enum GovParametersType {
Deposit = "deposit",
Tallying = "tallying",
Voting = "voting",
}
export interface GovParametersDepositResponse {
readonly height: string;
readon... |
import '../../styles/picker.less';
import * as React from 'react';
import * as THREE from 'three';
// @ts-ignore
import { OrbitControls } from '../../plugins/OrbitControls';
// import OrbitControls from 'three-orbitcontrols';
import {
createContext,
} from '../../utils/viz';
export interface PageProps {}
export int... |
import axios from 'axios';
import {always, concat, times} from 'ramda'
const randomPort = '' + (1000 + Math.round(Math.random() * 9000));
process.env.PORT = randomPort;
axios.defaults.baseURL = `http://127.0.0.1:${randomPort}`;
describe('http bowling game calculator', () => {
let server;
beforeAll(async () => {... |
import { FrequenciesRepositoryInMemory } from "@modules/frequencies/repositories/in-memory/FrequenciesRepositoryInMemory";
import { ListFrequenciesUseCase } from "../listFrequencies/ListFrequenciesUseCase";
let frequenciesRepositoryInMemory: FrequenciesRepositoryInMemory;
let listFrequenciesUseCase: ListFrequenciesUse... |
import * as assert from 'assert';
import * as xjs from 'extrajs';
import type {
EBNFObject,
} from '../../src/types.d';
import {ParseNode} from '../../src/parser/ParseNode';
import {
PARSER as PARSER_SAMPLE,
} from '../sample/';
describe('ParseNode', () => {
describe('.fromJSON', () => {
it('returns a string r... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import React, { ComponentProps } from 'react';
import { SelectProps } from 'antd/lib/select';
import { useField } from 'formik';
import { CFC } from '@/typings/components';
/**
* Transforms Select component to its instance that can be used as formik field.
* @... |
export type FieldType =
| 'color'
| 'datetime-local'
| 'datetime'
| 'month'
| 'week'
| 'date'
| 'time'
| 'email'
| 'tel'
| 'number'
| 'url'
| 'password'
| 'file'
| 'image'
| 'text';
export interface FieldConstraints {
javaType: string;
types: FieldType[];
required: boolean | null;
... |
import { browserFunctions, StylableProjectRunner } from '@stylable/e2e-test-kit';
import { expect } from 'chai';
import { dirname } from 'path';
const project = 'st-border';
const projectDir = dirname(
require.resolve(`@stylable/custom-value/test/projects/${project}/webpack.config`)
);
describe(`(${project})`, ()... |
import {
Body,
Controller,
Get,
Param,
Post
} from '@nestjs/common';
import { ItemDTO } from './dto/item.dto';
import { ItemsService } from './items.service';
import { Item } from './interfaces/item.interface';
@Controller('items')
export class ItemsController {
constructor(private readonly itemsService: I... |
import {CompoundStructures} from './compound-structures';
export interface MoleculeDictionary {
max_phase: number;
molecule_type: string;
withdrawn_flag: number;
dosed_ingredient: number;
usan_stem: string;
withdrawn_reason: string;
parenteral: number;
chebi_par_id: number;
withdrawn_country: string... |
import { Component, OnInit, Input, Output, EventEmitter, ViewContainerRef, ViewChild, NgZone } from '@angular/core';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { Router } from '@angular/router';
import { TreeModule, TreeNode } from 'primeng/primeng';
import { DoTreeService } from 'app/shared/do-servi... |
import chalk from 'chalk';
import * as yargs from 'yargs';
import { Arguments } from 'yargs';
// from https://gist.github.com/pguillory/729616
const old_write = process.stdout.write;
function hook_stdout(callback: Function) {
process.stdout.write = (function(write) {
return function(string: string, encoding: st... |
import React from 'react';
import { RendererProps } from '@jsonforms/core';
/**
* Convenience wrapper around React's Component for constraining props.
*
* @template P type of any renderer props
* @template S state of the Renderer
*/
export declare class RendererComponent<P extends RendererProps, S = {}> extends Re... |
import { Component, ReactChild, ReactNode, createElement } from "react";
import * as classNames from "classnames";
import * as mendixLang from "mendix/lang";
import { Alert } from "../../Shared/components/Alert";
import { DataSourceHelper, DataSourceHelperListView } from "../../Shared/DataSourceHelper/DataSourceHelper... |
import { AxiosTransformer} from '../types'
export default function transform(data: any, headers: any, fns?: AxiosTransformer | (AxiosTransformer[])): any {
if (!fns) {
return data;
}
if (!Array.isArray(fns)) {
fns = [fns]
}
fns.forEach(fn => {
data = fn(data, headers)
})
return data
} |
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'd2c-bungie-icon',
template: `
<img class="bungie-icon" [ngClass]="iconClass" [src]="iconUrl">
`
})
export class BungieIconComponent {
@Input() iconClass = 'i... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginPageComponent } from '../auth/containers';
const routes: Routes = [
{ path: 'login', component: LoginPageComponent, data: { title: 'Login' } },
];
@NgModule({
imports: [RouterModule.forChild(routes)],
... |
import React from 'react';
import ReactDOM from 'react-dom';
import { DraggableArea, DropTarget, useDraggable, useDropMap } from '../src';
interface MyDraggableProps {
dropTarget: number | string;
disabled?: boolean;
onDrop: (id: number | string) => void;
}
function MyDraggable({ dropTarget, disabled }: MyDragg... |
import type { Ref } from 'vue';
import { computed, ref, reactive, unref, watch } from 'vue';
import { message } from 'ant-design-vue';
import { cloneDeep } from 'lodash-es';
import { useLocalization } from '/@/hooks/abp/useLocalization';
import { useValidation } from '/@/hooks/abp/useValidation';
import { get, create... |
/*
* Copyright (C) 2019 Sylvain Afchain
*
* 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 ag... |
import * as React from 'react';
import TextField from '@material-ui/core/TextField';
import StaticDateRangePicker from '@material-ui/lab/StaticDateRangePicker';
import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
import Box from '@mater... |
import {Label} from "../Label";
import {TextAlignmentAndPlacement} from "../../Common/Enums/TextAlignment";
import {Clickable} from "./Clickable";
import {BoundingBox} from "./BoundingBox";
import {EngravingRules} from "./EngravingRules";
import {MusicSheetCalculator} from "./MusicSheetCalculator";
/**
* The graphica... |
import React from 'react'
import UIHero, {
HeroContent,
HeroImage,
HeroLink,
} from 'src/components/ui/Hero'
import Image from 'src/components/ui/Image/Image'
import { LinkButton } from 'src/components/ui/Button'
import Icon from 'src/components/ui/Icon'
import Section from '../Section'
type Variant = 'default'... |
import { html } from "lit";
export const codeIcon = html`
<svg
version="1.1"
viewBox="0 0 24 24"
preserveAspectRatio="xMidYMid meet"
x="0"
y="0"
>
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/>
</svg>
`; |
/**
* @title 前后缀
* @description Select 增加前后缀
*/
import * as React from 'react'
import styled from 'styled-components'
import { Select } from '@alicloudfe/components'
const dataSource = [
{ label: '1', value: 1 },
{ label: '10', value: 10 },
{ label: '50', value: 50 },
{ label: '100', value: 100 }
]
const... |
<TS language="it_IT" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click destro per modificare indirizzo o etichetta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { Component, OnInit } from '@angular/core';
import { GlobalService } from '../../services/global.service';
/**
* Component Class
*/
@Component({
selector: 'app-get-involved',
templateUrl: './get-involved.component.html',
styleUrls: ['./get-involved.component.scss']
})
export class GetInvolvedComponent i... |
import * as React from "react";
import { RouteComponentProps } from "react-router-dom";
import { FormikActions } from "formik";
import { withCreateListing, WithCreateListing } from "@abb/controller";
import { ListingFormValues, ListingForm } from "../shared/ListingForm";
class C extends React.PureComponent<
RouteCom... |
import { Injectable } from '@angular/core';
import { environment } from './../../environments/environment';
import { Observable } from 'rxjs';
import { Producto } from 'app/models/producto';
import { HttpClient } from '@angular/common/http';
import { Venta } from 'app/models/venta';
@Injectable({
providedIn: 'root'
... |
import { SceneJson } from '@xrengine/common/src/interfaces/SceneInterface'
import { SystemModuleType } from '@xrengine/engine/src/ecs/functions/SystemFunctions'
import { SystemUpdateType } from '@xrengine/engine/src/ecs/functions/SystemUpdateType'
interface SystemProps {
filePath: string
systemUpdateType: keyof ty... |
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import classNames from 'classnames/bind';
import styles from './CardDescription.module.scss';
import commonStyles from './commonStyles.module.scss';
const cx = classNames.bind(styles);
interface CardDescriptionProps {
readonly ... |
<TS language="af" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Regsklik om adres of etiket te verander</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
import React, { Component } from "react";
import { config } from "config";
import fetch from "isomorphic-fetch";
import getDateString from "helpers/getDateString";
import defined from "helpers/defined";
import Spinner from "Components/Common/Spinner";
import { ParsedDistribution } from "helpers/record";
import "./Dat... |
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
module BABYLON.GUI {
export class StackPanel extends Container {
private _isVertical = true;
private _manualWidth = false;
private _manualHeight = false;
private _doNotTrackManualChanges = false;
private _tem... |
import React, { FC } from 'react';
import {
Container,
Layout,
PageTitle,
PageBody,
Seo,
} from '@components/shared';
import { useSiteMetadata } from '@hooks';
/** Displays the Sponsors page for the website. */
const SponsorPage: FC = () => {
const siteMetadata = useSiteMetadata();
return (
<Layout>... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from '../auth/auth.module';
import { QuestionController } from './question.controller';
import { QuestionsRepository } from './question.repository';
import { QuestionService } from './question.service';
@Mod... |
import { PersonNameModel } from '@/components/person-name-model'
describe('person-name-model.ts', (): void => {
it('has empty names for default constructor', (): void => {
const person = new PersonNameModel()
expect(person.first).not.toBeDefined()
expect(person.middle).not.toBeDefined()
expect(perso... |
import { Node as ProsemirrorNode, DOMOutputSpecArray } from 'prosemirror-model';
import { setBlockType } from 'prosemirror-commands';
import NodeSchema from '@/spec/node';
import { getCustomAttrs, getDefaultCustomAttrs } from '@/wysiwyg/helper/node';
import { EditorCommand } from '@t/spec';
export class Heading exte... |
import { action, IReactionDisposer, makeObservable, reaction } from 'mobx';
import { AbstractControl, ControlsCollection, ValidatorsFunction } from './abstract-control';
import { FormAbstractGroup } from './form-abstract-group';
import { ControlTypes, ValidationEvent } from './types';
export interface IOptionsFormGrou... |
import * as React from "react";
import { warning } from "reakit-utils/warning";
import { createComponent } from "reakit-system/createComponent";
import { useCreateElement } from "reakit-system/useCreateElement";
import { createHook } from "reakit-system/createHook";
import { mergeRefs } from "reakit-utils/mergeRefs";
i... |
import { Injectable } from '@nestjs/common';
import { Message } from './message.entity';
@Injectable()
export class MessageService {
public getAll = async (): Promise<Message[]> => {
return Message.find();
};
public createMessage = async (
sender: string,
message: string,
): Promise<Message> => {... |
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
import { JsonExpr } from "./Expr";
import { InterpolatedPropertyDefinition } from "./InterpolatedPropertyDefs";
/**
* The style type of the line caps.
*/
export type Li... |
import * as mongoose from 'mongoose';
interface IModel extends mongoose.Document {}
export default IModel; |
declare var google: any;
import {
Component,
ElementRef,
ChangeDetectionStrategy,
OnChanges,
Input,
Output,
SimpleChanges,
EventEmitter
} from '@angular/core';
import { GoogleChartsLoaderService } from '../google-charts-loader.service';
import { GoogleChartInterface, GoogleChartComponentInterface } fr... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
import { HOST_API } from '../app.config';
import { IDimRecords } from '../models/dimensions';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class DimensionsService {
private ... |
export const getGraphiQlView = () => {
const GRAPHIQL__VERSION = '0.12.0';
return `
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 100%;
margin: 0;
width: 100%;
overflow: hidden;
}
#graphiql {
height: 1... |
import React from 'react'
import styled from 'styled-components'
import FeatureAddedWhitelistCollections from './components/FeatureAddedWhitelistCollections'
import AllWhitelistCollections from './components/AllWhitelistCollections'
import { useValuationOverviewData } from '@/hooks/data/useValuationOverviewData'
import... |
import Vue, { Component, PluginFunction, PluginObject } from 'vue'
// Plugin Config Options
export type BvConfigComponentOptionValue =
| string
| string[]
| number
| number[]
| boolean
| object
| null
export type BvConfigBreakpointsValue = string[]
export interface BvConfigComponentOptions {
[key: stri... |
import {
_variant as getVariantStyles,
VariantProps,
sx,
Theme,
css,
SerializedStyles,
styled,
} from 'kodiak-ui'
import { tableRoot } from './Table'
export type TableBodyProps = React.HTMLAttributes<HTMLElement> & VariantProps
export function base({ theme }: { theme: Theme }): SerializedStyles {
retu... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '../auth-guard.service';
import { AuthService } from '../auth.service';
import { LoginComponent } from './login.component';
const loginRoutes: Routes = [
{ ... |
export enum UbiBeneficiaryRegistryType {
add,
remove,
lock,
unlock,
}
export interface UbiBeneficiaryRegistry {
id: number;
address: string;
from: string;
communityId: number;
activity: UbiBeneficiaryRegistryType;
tx: string;
txAt: Date;
}
export interface UbiBeneficiaryRegi... |
import * as React from 'react'
import { sendNonFatalException } from '../lib/helpers/non-fatal-exception'
import {
Dialog,
DialogContent,
DialogFooter,
OkCancelButtonGroup,
} from './dialog'
import { Dispatcher } from './dispatcher'
import { Checkbox, CheckboxValue } from './lib/checkbox'
import { withTranslati... |
import * as mongoose from 'mongoose';
'use strict';
/**
* Module dependencies.
*/
var Schema = mongoose.Schema;
/**
* Collection Schema
*/
var TertiaryCategorySchema = new Schema({
name: {
type: String
},
categories: {
type: Schema.Types.Mixed
}
});
module.exports = mongoose.model('TertiaryCategory', Ter... |
import {Node, Parent} from './nodes';
import {Test, test} from './test';
import {CONTINUE, EXIT, visit} from './visit';
/**
* Return the first node that matches test, or undefined if no node matches.
*
* @param {Node} tree - Node(s) to search
* @param [tst] - 'is-compatible' test (such as a type).
*/
export funct... |
import WriteConcern from './write-concern';
import BaseOptions from './base-options';
export default interface CommandOptions extends BaseOptions {
writeConcern?: WriteConcern;
} |
import {Component} from '@angular/core';
@Component({
templateUrl: 'app/Help/help.component.html',
styleUrls: ['app/Help/chartstyle.css'],
})
export class HelpComponent {
public login(event: any, cname: string, pw: string)
{
}
public saveCharacter(cn: string)
{
localStorage.setItem('charact... |
/*
* 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 { Injectable } from '@angular/core';
import { INode } from '@models/node';
import { _parameterTypes } from '@assets/core/_parameterTypes';
import { WebWorkerService } from 'ngx-web-worker';
import { GIMetaData } from '@assets/libs/geo-info/GIMetaData';
import { GIModel } from '@assets/libs/geo-info/GIModel';
@I... |
export type ElButtonType = 'text' | 'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
export type ElButtonNativeType = 'button' | 'submit' | 'reset'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.