text stringlengths 10 953k |
|---|
import React from 'react';
import Head from 'next/head';
import { observer } from 'mobx-react';
import LoginButton from '../components/common/LoginButton';
import withAuth from '../lib/withAuth';
import withLayout from '../lib/withLayout';
class Login extends React.Component<{ next?: string }> {
static getInitialPr... |
export { default } from "./ContextMenu";
export type { ContextMenuProps } from "./ContextMenu"; |
import * as React from 'react';
import { DemoPage } from '../DemoPage';
import { CalloutPageProps } from '@fluentui/react-examples/lib/react/Callout/Callout.doc';
export const CalloutPage = (props: { isHeaderVisible: boolean }) => (
<DemoPage
jsonDocs={require('@uifabric/api-docs/lib/pages/react/Callout.page.js... |
import * as React from "react";
import { expect } from "chai";
import { mount } from "enzyme";
import Icon from "../../src/";
describe("Icon component", function describe() {
it("should render correctly", () => {
const wrapper = mount(<Icon name="home-3" type="line" size="3x" />);
expect(wrapper.props()).to... |
import SendIcon from '@mui/icons-material/Send';
import Button from '@mui/material/Button';
import Dialog from '@mui/material/Dialog';
import DialogContent from '@mui/material/DialogContent';
import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';
import Tex... |
import React from "react";
import clsx from "clsx";
import { CustomCellProps } from "./withCustomCell";
import { makeStyles, createStyles, Grid } from "@material-ui/core";
import MultiSelect_ from "components/MultiSelect";
import FormattedChip from "components/FormattedChip";
import { FieldType } from "constants/fiel... |
import { VNode, CreateElement } from 'vue';
import { Vue, Component, Prop } from 'vue-property-decorator';
interface Yielder {
name: string;
content?: VNode[] | null;
defaultContent: VNode[] | null;
}
interface YielderObj {
[key: string]: Yielder;
}
let yielders: YielderObj = {};
export function resetAllYie... |
import { ActionHistoryState } from './reducers/action-history-reducer';
import { AuthState } from './reducers/auth.reducer';
import { DashboardState } from './reducers/dashboard-reducer';
import { ListsState } from './reducers/list.reducer';
import { CreateNewApplicationState } from './types/create-application.types';
... |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model, Types } from 'mongoose';
import { convertToUserView, User, UserDocument, UserView } from './user.schema';
@Injectable()
export class UserService {
constructor(@InjectModel(User.name) private userModel: Model<... |
import { AfterViewInit, Component, ElementRef, Input, TemplateRef, ViewChild } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'oc-content-modal',
templateUrl: './oc-content-modal.component.html',
styleUrls: ['./oc-content-modal.component.css'],
})
... |
import { useRouter } from "next/router";
import {
createContext,
FC,
ReactNode,
useContext,
useEffect,
useReducer,
} from "react";
import { reducer } from "./reducer";
import { ContextProps, SearchProps } from "./types";
import { defaultSearchParams } from "./utils";
export const useSearchContext = () => ... |
/**
* Bungie.Net API
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* OpenAPI spec version: 2.12.1
* Contact: support@bungie.com
*
* NOTE: This class is auto genera... |
/// <reference path="../../../globals.d.ts"/>
/// <reference path="./fill.d.ts"/>
declare module 'goog:goog.graphics.SolidFill' {
import alias = goog.graphics.SolidFill;
export default alias;
}
declare namespace goog.graphics {
/**
* Creates an immutable solid color fill object.
*
* @extend... |
declare module 'react-native-paho-mqtt' {
class Client {
constructor(config: {
uri: string,
clientId: string,
storage?: any,
webSocket?: typeof WebSocket
});
on(event: string, callback: (message: any) => void): void;
connect(connectOp... |
// Initialization
import express from 'express';
// Middlewares
// Response Handlers
import { okResponse } from '@helpers/express/response-handlers/2XX-response';
// Routes
import policies from './policies';
import roles from './roles';
import endpointServer from '@helpers/express/other-handlers/endpoint-server';
/... |
/**
Copyright 2019 Forestry.io 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 in writing, softwa... |
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as data from "./data";
import * as marked from "marked";
type ISettingsProps = pxt.editor.ISettingsProps;
interface MarkedContentProps extends ISettingsProps {
markdown: string;
}
interface MarkedContentState {
}
export class Marked... |
import { ApiProperty, ApiPropertyOptional, PickType, IntersectionType } from '@nestjs/swagger'
import { IsNotEmpty, IsNumber, Min } from 'class-validator'
import { IsOptional } from '@/decorator/common.decorator'
import { Type, Transform } from 'class-transformer'
import { toArrayNumber } from '@/utils/validate'
class... |
import { Component, OnInit } from '@angular/core';
import { RouterOutlet, RouterModule, Router } from '@angular/router';
import { RequisitionItems } from "../shared/requisition-items.model";
import { InventoryBLService } from "../shared/inventory.bl.service";
import { MessageboxService } from '../../shared/messagebox/... |
import { _Labels } from "./_Labels";
import { Structure as _Structure_ } from "@aws-sdk/types";
export const DetectLabelsOutput: _Structure_ = {
type: "structure",
required: [],
members: {
Labels: {
shape: _Labels
},
OrientationCorrection: {
shape: {
type: "string"
}
},
... |
import { deepMix, each, get, isArray } from '@antv/util';
import { BBox, Coordinate, IGroup, IShape } from '../dependents';
import { LabelItem } from '../geometry/label/interface';
import { AnimateOption, GeometryLabelLayoutCfg } from '../interface';
import { doAnimate } from '../animate';
import { getGeometryLabelLay... |
import { NgModule, ModuleWithProviders, Provider } from '@angular/core';
import {
CalendarCommonModule,
CalendarModuleConfig,
CalendarEventTitleFormatter,
CalendarDateFormatter
} from './common/calendar-common.module';
import { CalendarMonthModule } from './month/calendar-month.module';
import { CalendarWeekMod... |
/*
Copyright (C) 2017 Red Hat, 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 ... |
/*
* 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 { i18n } from '@kbn/i18n';
export const i18nTexts = {
editPolicy: {... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="hr">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Desni klik za uređivanje adresa i oznaka</translation>
</message>
<message>
<s... |
// Controller common imports
import { expressTypes } from '../../types/index'
import { HttpStatusCode } from '../../utils/http-status-codes'
import { logger, errorHandler } from '../../utils'
import { responseBuilder } from '../../utils/response-builder'
// Other imports
import { JsonType } from '../../types/misc-type... |
import { Injectable } from '@angular/core';
import { HttpService } from '../../../shared/services/http.service';
import { Role } from '../../../shared/models/role';
import { RoleAction } from '../../../shared/models/role.action';
import { Observable } from 'rxjs/Observable';
@Injectable()
export class RoleService {
... |
/*
* Copyright 2021 Palantir Technologies, Inc. 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 req... |
declare namespace pc {
/**
* @name pc.VertexFormat
* @class A vertex format is a descriptor that defines the layout of vertex data inside
* a {@link pc.VertexBuffer}.
* @description Returns a new pc.VertexFormat object.
* @param {pc.GraphicsDevice} graphicsDevice The graphics device used t... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import { Component as OmiComponent, h, tag } from 'omi';
import { rmIEFP } from 'omi-tools';
import type { AntdIconProps } from '../components/types';
import '../components/AntdIcon';
const CopyrightCircleOutlinedSvg: AntdIconProps['icon'] = {"icon":{"t... |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { BrowserModule } from "@angular/platform-browser";
import { Routes, RouterModule } from "@angular/router";
import { AjoutEvalComponent } from "./components/Evaluation/ajout-eval/ajout-eval.component";
import { CoachProfilC... |
import { unapply } from "../fp";
export = unapply; |
import { MailerModule } from '@nestjs-modules/mailer';
import { Global, Module } from '@nestjs/common';
import { MailService } from './mail.service';
import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';
import { join } from 'path';
import { ConfigModule, ConfigService } from '@ne... |
import { authAxios } from '@utils/axios';
import { ProjectData } from '@store/type';
const create = async (data: ProjectData): Promise<string> => {
const result = await authAxios.post('/project', {
...data,
});
if (result.status === 201) {
return result.data.token;
}
return result.data.message;
};
ex... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import {Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { MongoRepository } from 'typeorm';
import { ObjectID } from 'mongodb';
import {Offer} from 'src/models/offer.entity';
import {Payload} from '@nes... |
import DataLoader from "dataloader";
import { ObjectId } from "mongodb";
import { ShoesModel, Shoes } from "../entities/Shoes";
export const createShoesLoader = () =>
new DataLoader<ObjectId, Shoes>(async (shoesIds) => {
try {
const shoes = await ShoesModel.find({
_id: {
$in: shoesIds as ... |
import * as $Datastream from '@auroradao/p9-datastream-types';
import WebSocket from 'uws';
export default function createDatastreamConnector(
config: $Datastream.Connection$Configuration,
callback: $Datastream.Connection$Callback,
): $Datastream.Connection$Socket {
const socket = new WebSocket(config.url);
s... |
#!/usr/bin/env node
import {MongoDBAdapter} from '@wepublish/api-db-mongodb'
import {Oauth2Server} from '@wepublish/oauth2'
import path from 'path'
async function asyncMain() {
if (!process.env.OAUTH_MONGODB_URI) {
throw new Error('No OAUTH_MONGODB_URI defined in ENV')
}
const PORT = process.env.PORT ? pa... |
import { UserResolver } from './user';
export const resolvers = [UserResolver] as const; |
/// <reference types="node"/>
import {ChildProcess} from 'child_process';
import {Stream, Readable as ReadableStream} from 'stream';
declare namespace execa {
type StdioOption =
| 'pipe'
| 'ipc'
| 'ignore'
| 'inherit'
| Stream
| number
| undefined;
interface CommonOptions<EncodingType> {
/**
Kill ... |
export * from './hanghoa.component'; |
///<reference path="../../../scripts/typings/angularjs/angular.d.ts"/>
///<reference path="../../../scripts/typings/angularjs/angular-route.d.ts"/>
///<reference path="./app.ts"/>
///<reference path="./client.ts"/>
'use strict';
module Dolphin.Controller {
export interface IArticleSourceScope extends ng.IScope {
... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.15.10
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do ... |
interface User {
id: number;
"is_bot": boolean;
"first_name": string;
"last_name"?: string;
"username"?: string;
"language_code"?: string;
}
export interface Context {
from: User | undefined;
}
export interface RedisType {
incr(key: string): Promise<number>;
pexpire(key: string, milliseconds: number... |
import { computed } from 'vue'
import buildModifiers from './build-modifiers'
import type { Ref } from 'vue'
import type { Options, Placement } from '@popperjs/core'
interface IUsePopperProps {
popperOptions: Options
arrowOffset: number
offset: number
placement: Placement
}
interface IUsePopperState {
arro... |
///<reference path='../../../../Typings/tsd.d.ts' />
module Orckestra.Composer {
'use strict';
export class GeoLocationService {
private _browserGeolocation: Geolocation = navigator.geolocation;
private _geocoder: google.maps.Geocoder;
private _currenctLocation: google.maps.LatLng;
... |
declare module '*.html' {
const template: string;
export = template;
}
declare module '*.css' {
const styles: any;
export = styles;
} |
import { Component, OnInit, ViewChild } from '@angular/core';
import {ModalDirective} from 'ngx-bootstrap/modal';
import { Router } from '@angular/router'
import { AuthService } from '../../../services/auth/auth.service';
import { UserPopulated } from '../../../models/userModel';
import { SensorTempHumService } from '... |
import './blockle-blocks.css';
import { StyleProps } from './blocks';
// bb -> blockle blocks
// useStyles({ padding: 'small', background: 'card' }); -> 'bb-padding-small bb-background-card'
export const useStyles = (styles: StyleProps) => {
const keys = Object.keys(styles) as Array<keyof StyleProps>;
const class... |
import { useEffect, useState } from 'react'
import "./childs.css"
import { Button } from 'carbon-components-react';
interface IfirstChildProps {
name: string
updateName: (arg: string) => void
}
export const FirstChild: React.FC<IfirstChildProps> = ({ name, updateName }) => {
const [firstChildName, setFirs... |
import run from "aocrunner";
import _ from "lodash";
import log from "loglevel";
import { getLines } from "../utils/index.js";
log.enableAll();
interface CoordinateSystem {
[key: string]: number;
}
const parseInput = (rawInput: string) => getLines(rawInput).map((line) => line.split(" -> ").map((coordinate) => coo... |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
import { DeleteFlowTemplateInput } from "../shapes/DeleteFlowTemplateInput";
import { DeleteFlowTemplateOutput } from "../shapes/DeleteFlowTemplateOutput";
import { InvalidRequestException } from "../shapes/InvalidRequestException";
import { ThrottlingException } from "../shapes/ThrottlingException";
import { InternalF... |
/****************************************************************************
* Copyright 2021 EPAM Systems
*
* 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... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'loading',
templateUrl: './loading.component.html',
styleUrls: ['./loading.component.css']
})
export class LoadingComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
export type Align = 'left' | 'right' | undefined;
export type DateType = 'picker' | 'range' | undefined; |
import React, { useMemo, useCallback, MouseEventHandler } from 'react'
import { createPortal } from 'react-dom'
import { useTranslation } from 'react-i18next'
import { Stack, MessageBar, MessageBarType, IconButton, Panel, PanelType, Text } from 'office-ui-fabric-react'
import {
useState as useGlobalState,
useDispat... |
import { Document } from 'mongoose';
import { AdditionalInfoDto } from '../dto/additionalInfo.dto';
export interface MaterialInfo extends Document{
readonly seqMaterialInfoId: number;
readonly materialCatType: string;
readonly materialCatDept: string;
readonly materialCatId: number;
readonly numberOfSpecs:... |
import React from 'react';
import { graphql } from 'gatsby';
import TripListTemplate from '../TripListTemplate';
type Props = {
data: {
allYaml: {
edges: Array<any>;
};
};
pageContext: any;
};
const TripsTemplate = ({
data: {
allYaml: { edges },
},
pageContext,
}: Props) => <TripListTemp... |
import Request from '@core/domain/request/Request';
import { RequestStateEnum } from '@core/domain/request/RequestStateEnum';
import RequestRepositoryPort from '../../../domain/request/port/RequestRepositoryPort';
class InMemoryRequestRepositoryAdapter implements RequestRepositoryPort {
private requests: Map<string,... |
import { Test, TestingModule } from '@nestjs/testing';
import { DealerManagementController } from './dealer-management.controller';
describe('DealerManagement Controller', () => {
let controller: DealerManagementController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule(... |
import {DriveItemCollectionResponse} from '../../../../../../../models/';
import {createDriveItemCollectionResponseFromDiscriminatorValue} from '../../../../../../../models/createDriveItemCollectionResponseFromDiscriminatorValue';
import {ODataError} from '../../../../../../../models/oDataErrors/';
import {createODataE... |
/**
* @license
* Copyright 2018 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
import {MigrationInterface, QueryRunner} from "typeorm";
export class deletedFlags1548394880903 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.query(`ALTER TABLE "tech_spec" ADD "deleted" boolean NOT NULL DEFAULT false`);
await queryRunn... |
import { MutationTree } from 'vuex'
import { UserMutations, UserMutationTypes, UserState } from './types'
const mutations: MutationTree<UserState> & UserMutations = {
[UserMutationTypes.SaveUserInfo](state, userInfo) {
state.user = userInfo
}
}
export default mutations |
import { Component, OnInit } from '@angular/core';
import { Observable } from "rxjs/Observable";
import { Store } from "@ngrx/store";
import { State, getHeros } from "../../app.reducers";
import { Hero } from "../../models/hero";
import { LoadHerosAction, RemoveHeroAction, RemoveHeroConfirmDialogOpen } from "../heros.a... |
import type { num, MaybeRep, MapOpts, LinearMap } from './shared_backend'; // =>
import type { BigNumber } from 'ethers'; // =>
// TODO better typing on these
type Ty = any
export interface TypeDefs {
T_Null: Ty
T_Bool: Ty
T_UInt: Ty
T_Bytes: Ty
T_Address: Ty
T_Contract: Ty
T_Digest: Ty
T_Token: Ty
... |
/**
* 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
*/
export default {
// Options.jsx
items_per_page: '/ page',
jump_to: 'Goto',
jump_to_confirm: 'confirm',
page: '',
// Pagination.js... |
export const absoluteTouchPosition = (e: TouchEvent) => ({
x: e.changedTouches[0].pageX - (window.scrollX || window.pageXOffset),
y: e.changedTouches[0].pageY - (window.scrollY || window.pageYOffset),
})
export const absoluteMousePosition = (e: MouseEvent) => ({
x: e.pageX - (window.scrollX || window.pageXOffset... |
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { Field, Int, ObjectType } from '@nestjs/graphql';
@ObjectType()
@Entity('course_category')
export class CourseCategoryEntity {
@Field((type) => Int)
@PrimaryGeneratedColumn()
id: number;
@Field()
@Column()
name: string;
} |
import { Flex, Text } from "@chakra-ui/react";
import { FC } from "react";
export const Navbar: FC = ({ children }) => {
return (
<Flex
as="nav"
align="center"
justify="space-between"
wrap="wrap"
padding="6"
bg="gray.800"
color="white"
>
<Text
fontFamil... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { User } from 'src/auth/user.entity';
import { CreateTaskDto } from './dto/create-task.dto';
import { GetTasksFilterDto } from './dto/get-tasks-filter.dto';
import { TaskStatus } from './task-statu... |
import { ApiProperty } from "@nestjs/swagger";
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
import { Room } from "../../room/entities/room.entity";
export class RoomTypeViewModel {
@ApiProperty()
id: number;
@ApiProperty()
roomTypeName : string
} |
import {Manifest} from '../../../packages/types';
import ghentManifest from '../../../fixtures/2-to-3-converter/manifests/ghent-university-manifest.json';
// import blManifest from '../../../fixtures/2-to-3-converter/manifests/british-library-manifest.json';
import princetonManifest from '../../../fixtures/2-to-3-conve... |
import { AppState } from '../../../reducers';
import { Store } from '@ngrx/store';
import { Observable, Subscription } from 'rxjs/Rx';
import { Post } from '../../../core/post-data/post-model';
import { Component, OnInit, Input, Output, EventEmitter, ViewChild, ElementRef, ChangeDetectorRef, NgZone, Inject } from '@ang... |
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {TypeFilterComponent} from '../../apps/type.filter';
import {FormsModule} from '@angular/forms';
import {ClarityModule} from '@clr/angular';
import {RouterTestingModule} from '@angular/router/testing';
import {BrowserAnimationsModule}... |
import { memo, ReactElement, SVGProps } from 'react';
export const Shield = memo(
(props: SVGProps<SVGSVGElement>): ReactElement<SVGElement> => {
return (
<svg
width="100%"
height="100%"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...pr... |
/*
* Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
// import { propertiesGroup } from '@cds/core/internal';
import '@cds/core/card/register.js';
import { html ... |
import React, {
useEffect,
useState,
ReactNode,
ReactElement,
useContext
} from 'react'
import { nanoid } from 'nanoid'
import rehypeReact from 'rehype-react'
import Collapsible from 'react-collapsible'
import Main from './Main'
import Link from '../../Link'
import Tooltip from './Tooltip'
import styles fro... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { EuiPageHeader, EuiPageHeaderSection, Eui... |
/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import { TdMenuProps } from './type';
import { PropType } from 'vue';
export default {
/** 是否收起菜单 */
collapsed: Boolean,
/** 子菜单展开的导航集合 */
expanded: {
type: Array as PropType<TdMenuProps['expanded']>,
default: undefined,
},
/** 子菜单... |
import * as cookieParser from 'cookie-parser';
import {randomBytes} from 'crypto';
import * as express from 'express';
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
import {create} from 'simple-oauth2';
import {ENV_CONFIG} from '../consts/env-config.const';
import {HttpStatus... |
/*
* The copyright in this software is being made available under the BSD License, included below.
*
* Copyright (c) 2022, NHK(Japan Broadcasting Corporation).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following cond... |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule, Routes} from '@angular/router';
import {HomeComponent} from './home.component';
const routes: Routes = [
{
path: 'home',
component: HomeComponent
}
];
@NgModule({
declarations: [],
... |
/*
* Copyright 2021 LABOR.digital
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import * as React from 'react';
import { useState } from 'react';
import textFieldStyles from 'Forms/fields/text/TextField.css';
import errorMessageStyles from 'Forms/ErrorMessage.css';
import { AppInterface as App } from 'AppInterface';
import { DrawingInterface as Drawing } from 'Draw/DrawingInterface';
import { Base... |
import { Sequelize } from 'sequelize'
import gql from 'graphql-tag'
import { ethers } from 'ethers'
import {
connectDatabase,
connectContracts,
createLogger,
Logger,
NetworkContracts,
parseGRT,
} from '@graphprotocol/common-ts'
import {
createIndexerManagementClient,
IndexerManagementClient,
IndexerM... |
import Image from "./Image";
import Link from "./Link";
const Card = ({ title, description, imgSrc, href }) => (
<div className="md p-4 md:w-1/2" style={{ maxWidth: "544px" }}>
<div
className={`${
imgSrc && "h-full"
} overflow-hidden rounded-md border-2 border-gray-200 border-opacity-60 dark... |
import React, { useState } from 'react';
import {
View,
Text,
Switch,
TextInput,
StyleSheet,
ScrollView,
TouchableOpacity,
StatusBar,
Alert,
Image,
} from 'react-native';
import { Feather } from '@expo/vector-icons';
import { RectButton } from 'react-native-gesture-handler';
import { useRoute, useNa... |
import type * as ts from 'typescript/lib/tsserverlibrary';
import { getStartEnd, parseBindingRanges } from './scriptSetupRanges';
import type { TextRange } from './types';
export type ScriptRanges = ReturnType<typeof parseScriptRanges>;
export function parseScriptRanges(ts: typeof import('typescript/lib/tsserverlibra... |
import * as React from 'react'
import { LoadingIcon } from './LoadingIcon'
import styles from './styles.module.css'
export const Loading: React.FC = () => (
<div className={styles.container}>
<LoadingIcon />
</div>
) |
import '@ui5/webcomponents/dist/SuggestionItem.js';
import { ListItemType, ValueState } from '../../enums';
import { CommonProps } from '../../interfaces/CommonProps';
import { Ui5DomRef } from '../../interfaces/Ui5DomRef';
import { withWebComponent } from '../../internal/withWebComponent';
interface SuggestionItemAtt... |
import React from 'react'
import Image from 'next/image'
import { LocaleCode } from '../LanguageDropdown'
interface LanguageItem {
readonly locale: string
readonly isSelected: boolean
readonly handleItemClick: () => void
}
enum Language {
EN = 'English',
TH = 'ภาษาไทย',
}
const LanguageItem = ({ locale, is... |
/**
* Notifications API
* Use the Notifications API to broadcast messages to distributed components by topic, using a publish-subscribe pattern.
For information about managing topics, subscriptions, and messages, see [Notifications Overview](/iaas/Content/Notification/Concepts/notificationoverview.htm).
* OpenAPI s... |
/// <reference types="react" />
import { SanityDocument } from '@sanity/types';
export interface DocTitleProps {
document: SanityDocument;
}
export declare function DocTitle(props: DocTitleProps): JSX.Element;
//# sourceMappingURL=DocTitle.d.ts.map |
// @flow
import path from "path";
import os from "os";
import { Configuration } from "log4js";
import { DefaultConfig, LogLevel } from "../types";
import EnvironmentHelper from "../core/helpers/EnvironmentHelper";
const log4jsConfig: Configuration = {
appenders: {
out: {
type: "stdout",
layout: { ty... |
/*
* 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 { ActionExecutor, TaskRunnerFactory } from '../lib';
import { ActionTy... |
import Link from 'next/link';
import Section from '../Section';
import { Title, Description } from '../../../styles/sections';
import { ProjectList, ShowMoreButton } from './styles';
import ProjectCard from './ProjectCard';
export interface IProject {
title: string;
projectURL: string;
imageURL: string;
techs:... |
import { assert } from '@esm-bundle/chai';
import { Cookies } from '../../../src/lib/cookies/Cookies.js';
describe('Parse cookies with base URL', () => {
let httpStr = 'rememberme=1; domain=foo.com;';
httpStr += ' path=/; ssid=Hy1t5e#oj21.876aak;';
const baseUrl = 'http://bar.com/';
it('should merge when no o... |
export const Types = {
Object: 'Object',
Int: 'Int',
Double: 'Double',
String: 'String',
Bool: 'Bool',
Void: 'Void',
Predef: 'Predef',
Null: 'Null',
Math: 'Math$',
IO: 'IO$',
};
type Type = string;
export default Type; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.