text stringlengths 10 953k |
|---|
export class ExchangeRate {
currency_code: string;
currency_name: string;
buy: string;
transfer: string;
sell: string;
constructor(partial: Partial<ExchangeRate>) {
Object.assign(this, partial)
}
} |
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
import { createIcon } from '../create-icon'
export const IconCornerRadius32 = createIcon(
'M21 13h-4c-2.2091 0-4 1.7909-4 4v4h-1v-4c0-2.7614 2.2386-5 5-5h4v1z',
{ height: 32, width: 32 }
) |
import { declareAction, declareAtom, getState, map, combine } from '../src/index'
describe('diamond problem (declareAtom)', () => {
test('display name', () => {
/*
Short description: `displayName = isFirstNameShort ? fullName : firstName`
`isFirstNameShort` and `fullName` depends by `firstName`
... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="ro_RO">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About TurboStake</source>
<translation type="unfinishe... |
# CMAKE generated file: DO NOT EDIT!
# Timestamp file for compiler generated dependencies management for pysh. |
import { WizardSessionObject } from '../models/wizard';
export declare class SessionService {
constructor();
/**
* Get a session object for a transaction ID.
* @summary This will return a wizard_session object.
* @param {string} transactionId To query this, you can use the transaction-id, which i... |
export interface Project {
id: number;
nameLabel: string;
descriptionLabel: string;
url: string;
image: string;
techs: Tech[];
repositories?: Repository;
reverse: boolean;
}
interface Tech {
title: string;
img: string;
alt: string;
}
interface Repository {
frontend?: string;
backend?: string... |
import React, { useEffect, useState } from "react";
import { render } from "react-dom";
import { ITimeEntry, TimeHeatMap } from "react-time-heatmap";
import { getTimeEntries } from "./example";
const App = () => {
const [entries, setEntries] = useState<ITimeEntry[]>([]);
useEffect(() => {
setInterval(() => {
... |
export { parse, SyntaxError, ParseError } from './parse/index'
export { uriEncode, uriDecode, toSvg } from './codegen'
export { DataStore } from './DataStore'
export { Exporter, formats } from './exporter'
export { toDot } from './dot-writer' |
import JSBI from 'jsbi'
import { SolidityType } from '../constants'
import { validateSolidityTypeInstance } from '../utils'
/**
* A currency is any fungible financial instrument on Ethereum, including Ether and all ERC20 tokens.
*
* The only instance of the base class `Currency` is Ether.
*/
export class Currency... |
import { CollisionPlane } from "@libgamemodel/physics4/collisionplane";
export class ArenaWallCollisionComponent {
constructor(public CollisionPlane: CollisionPlane) {}
} |
import {
BotAction,
pipe,
$$,
forAll,
click,
errors,
map
} from '@botmation/core'
import { switchPipe } from '@botmation/core'
import { pipeCase, emptyPipe } from '@botmation/core'
import { abort } from '@botmation/core'
import { feedPostsSelector, feedPostAuthorSelector } from '../selectors'
import { lo... |
import { Platform, TextStyle } from 'react-native';
import _ from 'lodash';
import { constants as Constants } from '../helpers/Constants';
export const WEIGHT_TYPES: { [key: string]: TextStyle['fontWeight'] } = {
THIN: '200' as '200',
LIGHT: '300' as '300',
REGULAR: '400' as '400',
MEDIUM:
parseFloat(Platf... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { user } from '../models/user.model';
import { environment } from '../../../environments/environment';
import { AuthService } from '../../@core/data/auth.service';
import { map } from 'rxjs/operators';
... |
import { NowRequest, NowResponse } from '@vercel/node'
import SharedContent from '@models/shared-content';
export default async function (req: NowRequest, res: NowResponse): Promise<void> {
if(req.method === 'POST') {
const { id, name, filename } = req.body;
res.status(201).json(await createObject({ id, name... |
import { Social, SpotifyLink } from './socials';
export interface BuildUrl {
(username: string, socialType: Exclude<Social, 'spotify'>): string;
(username: string, socialType: 'spotify', linkType: SpotifyLink): string;
}
export interface ExtractUser {
(url: string, singleOperation?: boolean): string;
}
e... |
import { DB } from "../apiBase/db";
import { Asset } from "../models";
import { UniqueIdHelper } from "../helpers";
import { ArrayHelper } from "../apiBase";
import { ConfigurationServicePlaceholders } from "aws-sdk/lib/config_service_placeholders";
export class AssetRepository {
public save(asset: Asset) {
if ... |
import React from 'react';
import { Flex, Heading, Text } from '@chakra-ui/react';
import { CreateCollectionButton } from '../../common/CreateCollection';
import { State, Action, Collection } from '../reducer';
interface CollectionTabProps extends Collection {
selected: boolean;
dispatch: React.Dispatch<Action>;
}... |
import { SmithyException as __SmithyException } from "../../smithy-client/mod.ts";
import { MetadataBearer as $MetadataBearer } from "../../types/mod.ts";
export interface AssociateEntityToThingRequest {
/**
* <p>The name of the thing to which the entity is to be associated.</p>
*/
thingName: string | undefi... |
import * as diff from '../diff/diff';
import * as assert from 'assert';
/**
* Test for diff function
*/
describe('Diff', () => {
it('Array should not modified by function', () => {
const a: number[] = [1, 2, 3],
b: number[] = [2, 3, 4];
diff.diff(a, b);
assert.deepStrictEqual(a, [1, 2, 3], 'input... |
import * as React from 'react'
import { FindOptions } from '@framework/FindOptions'
import * as Finder from '@framework/Finder'
import { getQueryNiceName, getTypeInfos } from '@framework/Reflection'
import { Entity, Lite, is, JavascriptMessage } from '@framework/Signum.Entities'
import { SearchControl, ValueSearchContr... |
/**
* Data Integration API
* Use the Data Integration API to organize your data integration projects, create data flows, pipelines and tasks, and then publish, schedule, and run tasks that extract, transform, and load data. For more information, see [Data Integration](https://docs.oracle.com/iaas/data-integration/hom... |
#include "buf.h"
#test clear_noop
float *a = 0;
buf_clear(a);
ck_assert_msg(buf_size(a) == 0, "clear empty");
ck_assert_msg(a == 0, "clear no-op"); |
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx, Stack, useTheme } from "@keystone-ui/core";
import {
Checkbox,
FieldContainer,
FieldLabel,
TextArea,
TextInput,
} from "@keystone-ui/fields";
import { useState } from "react";
import {
CardValueComponent,
CellComponent,
FieldController,
FieldCon... |
import { ERC20BridgeSource } from '@0x/asset-swapper';
import { expect } from '@0x/contracts-test-utils';
// tslint:disable-next-line:no-implicit-dependencies
import 'mocha';
import { ZERO } from '../src/constants';
import { serviceUtils } from '../src/utils/service_utils';
import { AFFILIATE_DATA_SELECTOR, MAX_INT }... |
import {
switchTo,
openTab,
closeTab,
reload,
goto,
overridePermissions,
setLocation,
evaluate,
emulateDevice,
goBack,
goForward,
getCookies,
emulateTimezone,
currentURL,
} from 'taiko';
import { Step } from 'gauge-ts';
const assert = require('assert');
const cwd = process.cwd();
export def... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="hu">
<context>
<name>Account</name>
<message>
<location filename="../pages/Account.qml" line="53"/>
<source>Set the label of the selected account:</source>
<translation>Címke beállítása a választott fiókhoz:... |
import * as React from 'react';
import styled from '../styled-components';
const ErrorWrapper = styled.div`
padding: 20px;
color: red;
`;
export class ErrorBoundary extends React.Component<
React.PropsWithChildren<unknown>,
{ error?: Error }
> {
constructor(props) {
super(props);
this.state = { erro... |
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe(' Mutation Api (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleFixture: Testin... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { MediaItemComponent } from './components/media-item/media-item.component';
import { MediaItemListComponent } ... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'projeto-jogo-velha';
} |
import mongoose, {Schema} from "mongoose";
import {Item} from "../../models/item.model";
import {Label} from "../../models/label.model";
import {Position} from "../../models/position.model";
import {Room} from "../../models/room.model";
import {Shelf} from "../../models/shelf.model";
import {User} from "../../models/u... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-login-title',
templateUrl: './login-title.component.html',
styleUrls: ['./login-title.component.css']
})
export class LoginTitleComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
#!/usr/bin/env node
'use strict';
// UNUSED:
type FastifyRouteType = {
method: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH';
url?: string;
preValidation?: () => void;
handler: () => Promise<void>;
};
export default FastifyRouteType; |
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/example-log-extension
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import * as chalk from 'chalk';
import {LOG_LEVEL} from '../';
export class InMemoryLog {
private entries... |
import { IConfiguration } from "../i-configuration";
export interface IComponentsApiExternal {
configuration: IConfiguration;
}; |
import { WebElement } from 'selenium-webdriver';
import { ElementCondition } from './conditions';
import { Configuration } from './configuration';
import { Element } from './element';
import { Locator } from './locators/locator';
import { Assertable, Entity, Matchable } from './entity';
export declare class Collection ... |
export { default as PaymentAddStackScreen } from "./PaymentAdd";
export { default as PaymentSelectStackScreen } from "./PaymentSelect"; |
import { ColorModeScript } from "@chakra-ui/react"
import * as React from "react"
import ReactDOM from "react-dom"
import { App } from "./App"
import reportWebVitals from "./reportWebVitals"
import "./Css/index.css";
ReactDOM.render(
<React.StrictMode>
<ColorModeScript />
<App />
</React.StrictMode>,
doc... |
import { ComponentJson } from '@xrengine/common/src/interfaces/SceneInterface'
import { ComponentDeserializeFunction, ComponentSerializeFunction } from '../../../common/constants/PrefabFunctionType'
import { Engine } from '../../../ecs/classes/Engine'
import { Entity } from '../../../ecs/classes/Entity'
import { addCom... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatFormFieldModule } from '@angular/material/form-field';
import { SharedUiModule } from '@biosimulations/shared/ui';
import { SimulationRunsVizModule } ... |
import { Injectable } from '@angular/core';
@Injectable()
export class LoginService {
constructor() { }
/* Login Universal Data
==============================*/
getDataForLoginFlat = () => {
let data = {
"logo": "assets/images/csform-logo.png",
"btnLogin": "Login",
... |
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// [START maps_places_placeid_finder]
// This sample uses the Place Autocomplete widget to allow the user to search
// for and select a place. The sample then displays an info window containing
// the place ID... |
'use strict';
import { RequestHandler } from 'express';
import { Operation } from 'express-openapi';
import { SYSTEM_ROLE } from '../../../../../../../constants/roles';
import { getDBConnection } from '../../../../../../../database/db';
import { HTTP400 } from '../../../../../../../errors/CustomError';
import { getLog... |
export const icon = { p: `<path d="M329.2 268.6c-3.8 35.2-35.4 60.6-70.6 56.8-35.2-3.8-60.6-35.4-56.8-70.6 3.8-35.2 35.4-60.6 70.6-56.8 35.1 3.8 60.6 35.4 56.8 70.6zm-85.8 235.1C96.7 496-8.2 365.5 10.1 224.3c11.2-86.6 65.8-156.9 139.1-192 161-77.1 349.7 37.4 354.7 216.6 4.1 147-118.4 262.2-260.5 254.8zm179.9-180c27.9-1... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Genstake</source>
<translation>Tentang Genstake</translation>
</message>
<message>
<... |
import { Module } from '@nestjs/common';
import { ConfigService } from './config.service';
@Module({
imports: [],
providers: [ConfigService],
})
export class ConfigModule {} |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DraggableCardsComponent } from './draggable-cards.component';
const routes: Routes = [
{
path: '',
component: DraggableCardsComponent,
data: {
title: 'Draggable Cards'
}
}
];
@NgModule... |
import { Logger } from 'nano-errors';
import * as path from 'path';
import { KubeConfigTemplate } from '../../lib';
interface KubeSimpleData {
env: string;
exampleEnv: string;
exampleFile: string;
}
const logger = Logger.initialize();
const config = KubeConfigTemplate.environment<KubeSimpleData>({
kind: 'Sec... |
import { setLimit } from './functions.ts';
import { Data } from './interfaces.ts';
const defaultData: Data = {
minInputId: 'ts-slider__min-input',
maxInputId: 'ts-slider__max-input',
isArray: false,
array: [],
step: 1,
minValue: 0,
maxValue: 100,
minToggleValue: 25,
maxToggleValue: 75,
isRange: tru... |
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { OAuthModule, OAuthStorage } from 'angular-oauth2-oidc';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from ... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CategoryModule } from '../category/category.module';
import { CarwashController } from './controllers/carwash/carwash.controller';
import { CarwashEntity } from './models/carwash.entity';
import { CarwashService } from '.... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
Ser... |
export { toArbitrary } from './arbitrary' |
import { Component, ContentChild, OnDestroy, OnInit, TemplateRef } from '@angular/core';
import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
import { CourseManagementService } from 'app/course/manage/course-management.service';
import { ActivatedRoute } from '@angular/router';
import { Subscription ... |
import React from "react";
import * as GQL from "src/core/generated-graphql";
import { GalleryList } from "src/components/Galleries/GalleryList";
import { studioFilterHook } from "src/core/studios";
interface IStudioGalleriesPanel {
studio: GQL.StudioDataFragment;
}
export const StudioGalleriesPanel: React.FC<IStud... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
import { WelcomeComponent } from './home/welcome.component';
import { ProductM... |
import * as config from 'config';
import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Strategy } from 'passport-google-oauth20';
import { UsersService } from './users.service';
const googleConfig = config.get('google');
const url = config.get('url');
@Injectable... |
import React from 'react';
import styled from 'styled-components';
import { ColorProps } from '@heathmont/moon-themes';
import { themed } from '@heathmont/moon-utils';
const Svg = (props: React.SVGProps<SVGSVGElement>) => (
<svg
width="1em"
height="1em"
viewBox="0 0 32 32"
fill="none"
xmlns="http... |
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { BlockNumber } from '@polkadot/types/interfaces';
import type { Observable } from '@polkadot/x-rxjs';
import { combineLatest } from '@polkad... |
import * as vscode from "vscode";
import { createAnswer } from "../service";
import { getDayId } from "../utils/getDayId";
export function postAnswer(document: vscode.TextDocument, content: string) {
const { fileName } = document;
const dayId = getDayId(fileName);
if (!+dayId) {
vscode.window.showErrorMessag... |
/**
* LUSID API
*
* The version of the OpenAPI document: 0.11.3822
* Contact: info@finbourne.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import ht... |
import { createElement } from 'react';
import { Page } from './Pages';
import { FC } from 'react';
import { SFSelect } from 'react-stateful-form';
import NextButton from './NextButton';
import PreviousButton from './PreviousButton';
import Logger from './Logger';
const PageTwo: FC = () => {
return (
<Page>
... |
// Here types are inherited from actual DB Modal Types
// created [here](types/models.d.ts)
// This is re
import { ISponsor } from 'types/models';
export type ISponsorResponse = Omit<ISponsor, 'createdAt' | 'updatedAt'>; |
import { Router } from 'express';
import {
appointmentsRouter,
providersRouter
} from '~/modules/appointments/infra/http';
import {
authRouter,
meRouter,
passwordRouter,
usersRouter
} from '~/modules/users/infra/http';
import { convertEmptyStringsToNull } from '../middlewares';
export const routes = Rout... |
/**
* https://demo.thi.ng/umbrella/hiccup-carbon-icons/#DEW_POINT_FILLED
*/
// prettier-ignore
export const DEW_POINT_FILLED: any[] =
["svg", { viewBox: "0 0 32 32" },
["path", { d: "M24 10a4 4 0 114-4 4.005 4.005 0 01-4 4zm0-6a2 2 0 102 2 2.002 2.002 0 00-2-2zM14.5 30A5.496 5.496 0 019 24.52c0-3.443 4.34... |
/**
* Shows SEO-info about the page in pages with the given `path` and redirects the user to the page at TIHLDE.org
*/
import { GetServerSideProps } from 'next';
import API from 'fetch/api';
import SEO from 'components/Seo';
import { Page } from 'types/Types';
import Redirect from 'components/Redirect';
// https://p... |
require("./location-editor.component.css");
import { CanActivate, ChangeDetectionStrategy, Component } from "../core";
@Component({
templateUrl: "wwwroot/location/location-editor.component.html",
styleUrls: ["wwwroot/location/location-editor.component.css"],
selector: "location-editor",
inputs: ['entity'... |
class DrapoDebugger {
//Field
private _application: DrapoApplication;
private _visible: boolean = false;
private _active: boolean = false;
private _sector: string = '__debugger';
private SESSION_STORAGE_KEY: string = 'drapoDebugger';
//Properties
get Application(): DrapoApplication {
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { inject, injectable, named } from 'inversify';
import * as vscode from 'vscode';
import { IExtensionSyncActivationService } from '../../activation/types';
import { IVSCodeNotebook } from '../../common/... |
import { AncestorParse } from '.';
import { FilterTransform } from '../../transform';
import { Dict, StringSet } from '../../util';
import { VgFormulaTransform } from '../../vega.schema';
import { Model } from '../model';
import { DataFlowNode } from './dataflow';
export declare class ParseNode extends DataFlowNode {
... |
import { Component, OnInit } from '@angular/core';
// 引入 FormControl 和 FormGroup 对象
import { FormControl, FormGroup, ValidatorFn, ValidationErrors } from '@angular/forms';
// 引入 FormBuilder 构建表单控件
import { FormBuilder } from '@angular/forms';
// 引入 Validators 验证器
import { Validators } from '@angular/forms';
/**
* ... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PhysiciandashboardComponent } from './physiciandashboard.component';
describe('PhysiciandashboardComponent', () => {
let component: PhysiciandashboardComponent;
let fixture: ComponentFixture<PhysiciandashboardComponent>;
beforeEach(asy... |
import { Observable } from 'rxjs/Observable';
import { ObjectState, DefinedState, ErroredState, ObjectStatus, AuthService, NotFoundState } from './types';
import { Store } from './store';
import { StateWatch } from './stateWatcher';
import { F1 } from './utils';
import { GasPayload } from '@findable/analytics-gas-types... |
import React from "react";
import {shallow} from "enzyme";
import Calculator from "./Calculator";
test('should render without crashing', () => {
let wrapper = shallow(<Calculator/>);
const calculator = wrapper.instance() as Calculator;
}); |
import * as React from "react";
import { Text, TextProps } from "react-native";
import { FormattedMessage } from "@oursky/react-messageformat";
export const AppText: React.SFC<TextProps> = props => (
<Text allowFontScaling={false} {...props} />
);
interface LocalizedTextProps extends TextProps {
messageID: string... |
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents a request to delete an existing custom verification email template.</p>
*/
export interface DeleteCustomVerificationEmailTemplateInput {
/**
* <p>The name of the custom ver... |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { getBSONType, compareBSONValues } from './bson';
import { BSONType } from './types';
describe('getBSONType', () => {
it('should work', () => {
expect(getBSONType(1)).to.be.equals(BSONType.Double);
expect(getBSONType('xyz')).to.be.equals... |
'use strict';
// import './scss/style.scss';
// import './pug/index.pug';
import { Calculator } from './ts/index';
const calculator = new Calculator();
calculator.init(); |
import * as React from "react";
import DotflowGraph from "./graph";
import {normalizeLog} from "../../../util/data";
import LinearInterpolatedObservable from "../../../../data/observable/linearInterpolatedObservable";
import AppliedObservable from "../../../../data/observable/appliedObservable";
import NetworkInterface... |
import {
Component,
OnInit,
Input,
ViewChild,
ChangeDetectionStrategy
} from "@angular/core";
import { FormControl } from "@angular/forms";
import { zip } from "rxjs/operators";
import { MatTable } from "@angular/material";
import { ExchangeHistoryRate } from "src/app/_shared/models/exchange-rate.model";
imp... |
import { loaderReducer } from '../loader/loader.reducer';
import { EntityScopedLoaderAction } from '../../../cloudinaryconfig/store/actions/cloudinaryconfig.action';
import { ScopedLoaderState } from './scoped-loader.state';
import { Action } from '@ngrx/store';
export const initialScopedLoaderState: ScopedLoaderState... |
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import type GameHistory from 'doctor-who-ai/services/history';
import type Game from 'doctor-who-ai/services/game';
export default class Stats extends Component {
@service history!: GameHistory;
@service game!: Game;
... |
import { API } from '@spinnaker/core';
import { IKeyPair } from 'amazon/domain';
export class KeyPairsReader {
public static listKeyPairs(): PromiseLike<IKeyPair[]> {
return API.all('keyPairs')
.useCache()
.getList()
.then((keyPairs: IKeyPair[]) => keyPairs.sort((a, b) => a.keyName.localeCompa... |
import { getStore } from "./index"
import convertHrtime from "convert-hrtime"
import { Actions, ActivityTypes, ActivityStatuses } from "../constants"
import { ActionsUnion, IActivity } from "./types"
import signalExit from "signal-exit"
export const getGlobalStatus = (
id: string,
status: ActivityStatuses
): Activ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {getOptions} from 'loader-utils';
import {loader} from 'webpack';
import linkify from './linkify';
export = function(fileS... |
import { ValidationPipe } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ConfigOptions } from './config/config';
import generateTypeormConfigFile from './scripts/generate-typeormconfig-file';
import se... |
import { Client } from 'pg'
import { ClaimTypes, IdentityMetadataWrapper } from '@celo/contractkit/lib/identity'
import {
verifyDomainRecord,
verifyAccountClaim,
} from '@celo/contractkit/lib/identity/claims/verify'
import { normalizeAddress } from '@celo/utils/lib/address'
import { ClaimPayload, serializeClaim } f... |
import {Match} from '../Any/_Internal'
import {Number} from '../Number/Number'
import {UnionOf} from '../Object/UnionOf'
import {Next} from '../Iteration/Next'
import {Key} from '../Iteration/Key'
import {Prev} from '../Iteration/Prev'
import {Iteration} from '../Iteration/Iteration'
import {IterationOf} from '../Itera... |
import { danger } from "danger"
import { IssueComment } from "github-webhook-event-types"
export default async (webhook: IssueComment) => {
const issue = webhook.issue
const api = danger.github.api
const org = webhook.repository.owner.login
const repo = webhook.repository
const username = webhook.comment.us... |
import RenameTransform from './../src/index';
import { buildSchema, GraphQLObjectType, printSchema } from 'graphql';
import InMemoryLRUCache from '@graphql-mesh/cache-inmemory-lru';
import { MeshPubSub } from '@graphql-mesh/types';
import { PubSub } from '@graphql-mesh/utils';
import { wrapSchema } from '@graphql-tools... |
import {Component, Output, EventEmitter, Inject, ElementRef} from "@angular/core";
import {REACT_NATIVE_WRAPPER} from "../../renderer/renderer";
import {Node} from "../../renderer/node";
import {ReactNativeWrapper, isAndroid} from "../../wrapper/wrapper";
import {HighLevelComponent, GENERIC_INPUTS, GENERIC_BINDINGS} fr... |
// If you don't want to use TypeScript you can delete this file!
import React from "react"
import { PageProps, Link, graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
type DataProps = {
site: {
buildTime: string
}
}
const UsingTypescript: React.FC<PageProps... |
/*!
* Copyright 2011-2021 Unlok
* https://www.unlok.ca
*
* Credits & Thanks:
* https://www.unlok.ca/credits-thanks/
*
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
* ... |
/**
*
* @license
* Copyright 2017 SAP Ariba
*
* 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 { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { HeroBirthday1Component } from './hero-birthday1.component';
import { Po... |
/**
* Copyright 2018-present MongoDB, 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 a... |
import React from 'react';
import { getMembers } from './api/api';
import { Member } from './api/api.model';
export const FacebookMembersListContainer: React.FC = () => {
const [members, setMembers] = React.useState<Member[]>([]);
React.useEffect(() => {
getMembers().then(setMembers);
}, []);
return (
... |
import { onChangePayload, onLoadDocumentPayload } from "@hocuspocus/server";
import { debounce } from "lodash";
import * as Y from "yjs";
import Logger from "@server/logging/logger";
import { Document } from "@server/models";
import documentUpdater from "../commands/documentUpdater";
import markdownToYDoc from "./utils... |
import { TextField, FormControlLabel, Switch } from "@mui/material";
export default function Settings({ config, handleChange }) {
return (
<>
<TextField
label="Webservice Url"
name="url"
value={config.url}
fullWidth
onChange={(e) => {
handleChange("url")(e.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.