text stringlengths 10 953k |
|---|
import * as React from 'react'
import AuthSetupView from './setup'
import AuthUnlockView from './unlock'
import AuthSplash from './splash'
import {rpc} from '../rpc/client'
import {RuntimeStatusRequest, RuntimeStatusResponse, AuthStatus} from '@keys-pub/tsclient/lib/rpc'
import {errored} from '../store'
export defau... |
import React from "react";
import ReactDOM from "react-dom";
import "./index.sass";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
// If you want to start measuring performance in y... |
import {HTMLBox, HTMLBoxView} from "../layouts/html_box"
import {Orientation} from "core/enums"
import {BoxSizing, SizingPolicy} from "core/layout"
import * as p from "core/properties"
export namespace WidgetView {
export type Options = HTMLBoxView.Options & {model: Widget}
}
export abstract class WidgetView extend... |
import React from 'react'
import { Card, useTheme } from 'components'
import { CardTypes } from 'components/utils/prop-types'
const types = ['secondary', 'success', 'warning', 'error',
'dark', 'alert', 'purple', 'violet', 'cyan', 'lite']
const Colors: React.FC<React.PropsWithChildren<{}>> = () => {
const theme = ... |
// *** 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";
/**
* A... |
import { Component, h, State, Host } from '@stencil/core';
import { BackendSection, evalBackend } from '../../util';
import { UI } from '../../../../tidal-bot-electron/types/tidal-bot-backend/types';
@Component({
tag: 'app-home',
styleUrl: 'app-home.scss',
})
export class AppHome {
@State()
query: str... |
import { ethers } from 'hardhat';
import { Contract, ContractFactory } from 'ethers';
export async function deployContract (name: string, args?: Array<any>): Promise<Contract> {
const factory: ContractFactory = await ethers.getContractFactory(name);
const ctr: Contract = await factory.deploy(...(args || []));
... |
import React, { useState } from 'react';
import toast from 'react-hot-toast';
import { EmojiButton } from '../emoji-button';
import { Code } from '../code';
const examples: Array<{
title: string;
action: () => void;
emoji: string;
snippet: string;
}> = [
{
title: 'Success',
emoji: '✅',
snippet: ... |
import fs from 'fs';
class Preprocessor {
static processFile(filePath: string): Promise<string> {
return new Promise((resolve, reject) => {
fs.readFile(filePath, { encoding: 'utf8' }, (err, data) => {
if (err) {
reject(err);
}
resolve(data);
});
});
}
stati... |
import { createGlobalStyle } from 'styled-components';
export const GlobalStyles = createGlobalStyle`
*,
*::after,
*::before {
box-sizing: border-box;
}
body {
background: ${({ theme }) => theme.colors.bg};
color: ${({ theme }) => theme.colors.text};
font-family: 'Inter', BlinkMacSystemFont,... |
import { useCallback } from "react";
import gql from "graphql-tag";
import { v4 as uuid } from "uuid";
import { useRemote } from '../../../env'
import {
NewTodo,
TodoEdge,
todosVar,
useCreateTodoMutation
} from "../../../state";
export const CREATE_TODO = gql`
mutation CreateTodo($title: String!) {
crea... |
import React from 'react';
import ReactDOM from 'react-dom';
import { App } from './components/App';
import { RecommenderContextProvider } from './context/RecommenderContext';
ReactDOM.render(
(
<RecommenderContextProvider>
<App />
</RecommenderContextProvider>
),
document.getElementById('root')
); |
import { Maybe, AuthRole, ArrayOrValue } from '@dereekb/util';
import { BehaviorSubject } from 'rxjs';
import { Directive, Input, TemplateRef, ViewContainerRef, OnDestroy } from '@angular/core';
import { authRolesSetContainsAllRolesFrom, DbxAuthService } from './service';
import { AbstractIfDirective } from '../view/if... |
export type NotificationData = {
eventType: string;
title: string;
description: string;
payload: any;
};
export interface INotifier {
readonly id: string;
notify(data: NotificationData): Promise<void>;
} |
import { Component, OnInit, ViewChild } from '@angular/core';
import { DashboardService } from '../dashboard.service';
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
export interface PeriodicElement {
name: string;
position: number;
weigh... |
import _ from "lodash-es";
_.times(3, () => console.log("whee")); |
import { existsSync, lstatSync, readFileSync, readdirSync } from 'fs';
import * as runSequence from 'run-sequence';
import * as gulp from 'gulp';
import * as util from 'gulp-util';
import * as isstream from 'isstream';
import { join } from 'path';
import * as tildify from 'tildify';
import { changeFileManager } from '... |
// Default proposal status short codes that are available
export enum ProposalStatusDefaultShortCodes {
DRAFT = 'DRAFT',
FEASIBILITY_REVIEW = 'FEASIBILITY_REVIEW',
NOT_FEASIBLE = 'NOT_FEASIBLE',
SEP_SELECTION = 'SEP_SELECTION',
SEP_REVIEW = 'SEP_REVIEW',
ALLOCATED = 'ALLOCATED',
NOT_ALLOCATED = 'NOT_ALLOC... |
import {createContext, ReactNode, useContext, useEffect, useState} from 'react'
import {ChallengesContext} from "./ChallengesContext";
interface CountdownProviderProps {
children: ReactNode;
}
interface CountdownContextData {
minutes: number;
seconds: number;
hasFinished: boolean;
countdownStarted: boolean;... |
import {Injectable} from '@angular/core';
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';
import {Observable} from 'rxjs';
import {AuthenticationService} from '@/_services';
/**
* @class JwtInterceptor
* @implements HttpInterceptor
* @param authenticationService Authentic... |
import {isReflectMetadataSupported, logError, MISSING_REFLECT_CONF_MSG, nameof} from './helpers';
import {
CustomDeserializerParams,
CustomSerializerParams,
injectMetadataInformation,
} from './metadata';
import {extractOptionBase, OptionsBase} from './options-base';
import {
ArrayTypeDescriptor,
en... |
import Observable from '../zenObservable';
describe('flatMap', () => {
it('Observable.from', () => {
let list: Array<number> = [];
return Observable.from([1, 2, 3])
.flatMap(x => {
return Observable.from([x * 1, x * 2, x * 3]);
})
.forEach(x => {
list.push(x);
})
... |
import * as React from 'react';
import { IconWrapper } from '../IconWrapper';
import { ISvgIconProps } from '../svgConfig';
export default IconWrapper(
(props: ISvgIconProps) => (
<svg
width={props.size}
height={props.size}
viewBox="0 0 48 48"
fill="none"
... |
import { paths, parseConfig, isTag, unmatchedPatterns } from "./util";
import { release, upload, GitHubReleaser } from "./github";
import { setFailed, setOutput } from "@actions/core";
import { GitHub } from "@actions/github";
import { env } from "process";
async function run() {
try {
const config = parseConfig... |
///
/// Copyright © 2016-2020 The Thingsboard 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... |
import { call, put, select, takeEvery } from 'redux-saga/effects';
import { format } from '@waldur/core/ErrorMessageFormatter';
import { Action } from '@waldur/core/reducerActions';
import { translate } from '@waldur/i18n';
import * as api from '@waldur/invoices/api';
import { closeModalDialog } from '@waldur/modal/ac... |
import { TimeSeriesBulkClient } from "../src/api/sdk";
import { decrypt, loadAuth } from "../src/api/utils";
describe("[SDK] IotTsBulkUpload", () => {
const auth = loadAuth();
it("should instantiate", async () => {
const tsBulkUpload = new TimeSeriesBulkClient({ ...auth, basicAuth: decrypt(auth, "pass... |
import * as LogFactory from 'bunyan'
const log = LogFactory.createLogger({name: 'BitDAO.Token.Contract'})
export {log} |
// svg/calendar-blank.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgCalendarBlank = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink=... |
/* This example requires Tailwind CSS v2.0+ */
const navigation = [
{
name: 'Twitter',
href: 'https://twitter.com/SlipApp',
icon: (props) => (
<svg fill="currentColor" viewBox="0 0 24 24" {...props}>
<path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 ... |
import * as React from 'react'
import { LoadingOverlay } from '../lib/loading'
import { encodePathAsUrl } from '../../lib/path'
import { Repository } from '../../models/repository'
import { MenuIDs } from '../../models/menu-ids'
import { IMenu, MenuItem } from '../../models/app-menu'
import memoizeOne from 'memoize-on... |
/*
import * as React from 'react'
import * as Sb from '../../stories/storybook'
import {Box2} from '../../common-adapters'
import {platformStyles, styleSheetCreate} from '../../styles'
import {Transaction} from '.'
import * as dateFns from 'date-fns'
const now = new Date()
const yesterday = dateFns.sub(now, {days: 1})... |
import { createCommand } from "../utils/helpers.ts";
import { deleteMessages, getMessages } from "../../deps.ts";
import { Embed } from "../utils/Embed.ts";
createCommand({
name: "purge",
aliases: ["delete"],
arguments: [
{
name: "count",
type: "number",
defaultValue: 1,
},
{
... |
import styled from "styled-components";
import Menu from "./Menu";
import Navigator from "./Navigator";
import { gap, media } from "@/styles/theme";
const Header = () => {
return (
<TopWrapper>
<Navigator />
<Menu />
</TopWrapper>
);
};
const TopWrapper = styled.div`
box-shadow: 0 0 1rem 0.2... |
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
// Import Containers
import { DefaultLayoutComponent } from "./containers";
import { P404Component } from "./views/error/404.component";
import { P500Component } from "./views/error/500.component";
import { LoginComponen... |
import areAnagrams from '../src/anagram'
describe('Anagram', () => {
it('"earth" and "heart" should be anagrams', () =>
expect(areAnagrams('earth', 'heart')).toBeTruthy())
it('"silent" and "listen" should be anagrams', () =>
expect(areAnagrams('silent', 'listen')).toBeTruthy())
it('"foo" and "bar" are ... |
interface CodeMirrorLine {
gutterMarkers: {
'CodeMirror-foldgutter': HTMLElement;
};
height: number;
order: boolean;
parent: CodeMirrorEditor;
stateAfter: any;
styles: Array<number|string>;
text: string;
}
interface CodeMirrorEditor {
children: Array<{
height: number;
lines: CodeMirrorLine;
}>;
paren... |
import React, { Component } from 'react';
import * as actions from './actions';
import { createProvider } from './reduxUtil';
import ShareGuide from './ShareGuide';
import SprayDialog from './SprayDialog';
import SprayInfo from './SprayInfo';
import TaskList from './TaskList';
import Toast from './Toast';
import './in... |
import * as React from 'react';
import * as _ from 'lodash';
import { inject } from '@console/internal/components/utils';
import { ValidationErrorType } from '@console/shared';
import { getPlaceholder, getFieldId, getFieldTitle } from '../utils/renderable-field-utils';
import { iGetIn } from '../../../utils/immutable';... |
export interface State<T> {
readonly current: T;
} |
/* eslint-disable require-jsdoc */
import { assertBuilderSetsProperty } from '@zthun/works.jest';
import { v4 } from 'uuid';
import { IZCookie, ZCookieBuilder } from './cookie';
describe('ZCookieBuilder', () => {
function createTestTarget() {
return new ZCookieBuilder();
}
describe('Properties', () => {
... |
import JSBI from 'jsbi'
import {
ChainId,
ETHER,
CurrencyAmount,
Pair,
Percent,
Route,
Token,
TokenAmount,
Trade,
TradeType,
WETH
} from '../src'
describe('Trade', () => {
const token0 = new Token(ChainId.SPARTA, '0x0000000000000000000000000000000000000001', 18, 't0')
const token1 = new Token... |
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { DB_NAME, GachaPool, getItem } from "@components/common";
import { ToggleSwitch } from "@components/common/ToggleSwitch";
import { useEffect, useState } from "react";
import { getAllfeaturedCharacters } from "../getAllfeaturedCharacters";
import { DetailChi... |
import _ from "lodash";
import * as util from "../../../util/util";
import * as test from "../../../util/test";
import chalk from "chalk";
import { log, logSolution, trace } from "../../../util/log";
import { performance } from "perf_hooks";
const YEAR = 2021;
const DAY = 16;
// solution path: C:\Users\Johannes\adven... |
export class DynamicsFormFieldOption {
value: number;
label: string;
description: string;
constructor() { }
} |
import CreateAccount from "../../../public/static/images/icon-t-acct.svg";
import DeleteAccount from "../../../public/static/images/icon-t-key-delete.svg";
import DeployContract from "../../../public/static/images/icon-t-contract.svg";
import FunctionCall from "../../../public/static/images/icon-t-call.svg";
import Tra... |
const ADD_ITEM = Symbol("ADD_ITEM");
const REMOVE_ITEM = Symbol("REMOVE_ITEM");
const SET = Symbol("SET");
const DEL = Symbol("DEL");
const ERROR = Symbol("ERROR");
export { ADD_ITEM, REMOVE_ITEM, SET, DEL, ERROR }; |
import {ButtonHTMLAttributes} from 'react'
import '../styles/button.scss'
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
export function Button(props: ButtonProps) {
return (
<button className="button" {...props}>
</button>
);
} |
import { TestBed } from '@angular/core/testing';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { BasicDataService } from './basic-data.service';
import { DataServiceError } from './interfaces';
imp... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import type {Config} from '@jest/types';
import {constants, isJSONString} from 'jest-config';
import isCI = r... |
import prettier from 'prettier';
import {
Transform,
JSCodeshift,
ExportNamedDeclaration,
ArrowFunctionExpression,
} from 'jscodeshift';
import { upperFirst, snakeCase } from 'lodash';
import {
isCallExpression,
isIdentifier,
isObjectExpression,
isObjectProperty,
isArrowFunctionExpression,
} from '@ba... |
// *** WARNING: this file was generated by pulumigen. ***
// *** 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";
/**
* CSIDriver ... |
import React, { useEffect, useState, ReactNode } from 'react';
import { Trans } from '@lingui/macro';
import {
Dialog,
DialogActions,
DialogTitle,
DialogContent,
LinearProgress,
Typography,
} from '@mui/material';
import { Button, Flex, Log } from '@chinilla/core';
import { useGetPlotQueueQuery, useThrottle... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SpecTor</source>
<translation>關于黑幣</translation>
</message>
<message>
<location line... |
import { _Target } from "./_Target";
import { _TargetLocation } from "./_TargetLocation";
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* StartAutomationExecutionInput shape
*/
export interface StartAutomationExecutionInput {
/**
*... |
export { EventListContainer } from './event-list-container'; |
/**
* Copyright © 2021 Johnson & Johnson
*
* 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... |
import test from "ava";
import { marbles } from "rxjs-marbles/ava";
import { map } from "rxjs/operators";
test(
"should support marble tests without values",
marbles((m, t) => {
t.plan(2);
const source = m.hot(" --^-a-b-c-|");
const subs = " ^-------!";
const expected = m.cold(" --b-c-... |
import styled from 'styled-components';
export const InputPhotoContainer = styled.div`
position: relative;
input {
position: absolute;
width: 100px;
height: 30px;
opacity: 0;
top: 8px;
z-index: 1;
::-webkit-file-upload-button {
cursor: pointer;
}
}
`; |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('appBlog... |
// package: rippleapi.transaction
// file: transaction.proto
/* tslint:disable */
/* eslint-disable */
import * as grpc from "grpc";
import * as transaction_pb from "./transaction_pb";
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
interface IRippleTransactionAPIService extends... |
import { Injectable } from '@angular/core';
import * as io from 'socket.io-client';
import { Observable } from 'rxjs/internal/Observable';
@Injectable({
providedIn: 'root'
})
export class ChatService {
private url = 'http://localhost:3000';
private socket;
constructor() {
const user = JSON.parse(localStora... |
import React from 'react';
import createSvgIcon from './helpers/createSvgIcon';
export default createSvgIcon(
<path d="M13 15v-3h3v-2h-3V7h-2v3H8v2h3v3zm5 0l3 3-3 3 1.5 1.5L24 18l-4.5-4.5zM8 19v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5z" />,
'QueuePlayNextTwoTone',
); |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<TS language="ar" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>انقر بالزر الايمن لتعديل العنوان</translation>
</message>
<message>
<source>Create a new address</source>
<translation>انشأ... |
import { Component, OnInit } from '@angular/core';
import {MenuController} from '@ionic/angular';
import {Router} from '@angular/router';
@Component({
selector: 'app-sign-in',
templateUrl: './sign-in.page.html',
styleUrls: ['./sign-in.page.scss'],
})
export class SignInPage implements OnInit {
constructor(
... |
import * as React from 'react';
import PropTypes from 'prop-types';
import { addMonths } from 'date-fns';
import Calendar from './Calendar';
import { ValueType } from './DateRangePicker.d';
export interface DatePickerProps {
value?: ValueType;
hoverValue?: ValueType;
calendarDate?: ValueType;
index: number;
... |
import { UnionToIntersection } from './misc'
/** Tests if N <= M */
export type Identical<T1, T2> = UnionToIntersection<T1> extends UnionToIntersection<T2>
? (UnionToIntersection<T2> extends UnionToIntersection<T1> ? true : false)
: false
/** return T and all its super interfaces/classes ascendants */
export type E... |
import {BodyParams, Req} from "@tsed/common";
import {OnInstall, OnVerify, Protocol} from "@tsed/passport";
import {Strategy} from "passport-local";
import {Forbidden} from "@tsed/exceptions";
import {UserCreation} from "../models/UserCreation";
import {UserRepository} from "../repositories/UserRepository";
@Protocol(... |
import { defMathNOp } from "./internal/codegen";
export const [mulN, mulN2, mulN3, mulN4] = defMathNOp("*"); |
import { List, ListRowRenderer } from 'react-virtualized';
import { ProductItem } from "./ProductItem";
type Product = {
id: number;
price: number;
priceFormatted: string;
title: string;
};
type SearchResultsProps = {
totalPrice: number;
results: Product[];
onAddToWishList: (id: number) => void;
};
exp... |
export declare const getCardGroupTypes: (cardGroupTypes?: any) => string[]; |
function hash(buffer: Uint8Array): number {
let o = 0;
let len = buffer.length;
let a = 0x9e3779b9;
let b = 0x9e3779b9;
let c = 0;
while (len >= 12) {
a += (buffer[o + 0] + (buffer[o + 1] << 8) + (buffer[o + 2] << 16) + (buffer[o + 3] << 24));
b += (buffer[o + 4] + (buffer[o + 5] << 8) + (buffer[o ... |
import { Document, Model } from 'mongoose'
import { UserEntity } from '@domain/qrCode/entities/user'
export interface IUserDocument extends UserEntity, Document {}
export interface IUserModel extends Model<IUserDocument> {
findByEmail: (this: IUserModel, email: string) => Promise<IUserDocument>
} |
import * as React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
import './app.global.scss';
const { configureStore, history } = require('./store/configureStore');
const store = configureStore();
render(
<AppContainer>
<R... |
// File generated from our OpenAPI spec
declare module 'stripe' {
namespace Stripe {
/**
* The CustomerBalanceTransaction object.
*/
interface CustomerBalanceTransaction {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the obj... |
import { SNSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SNSClient";
import { CreateTopicInput, CreateTopicResponse } from "../models/index";
import { deserializeAws_queryCreateTopicCommand, serializeAws_queryCreateTopicCommand } from "../protocols/Aws_query";
import { getSerdePlugin } from "@... |
import { ConfigContextMap, IConfigMessageReporter, IConfigContext, ConfigContextMapping, ConfigContextAnyNumber, ConfigContextAnyBoolean, ConfigContextAnyString } from "../../src/ConfigParser";
import { OtherTypeValues } from "../TypeValues";
import { MockedConfigMessageReporter } from "./MockedConfigMessageReporter";
... |
/**
* @author WMXPY
* @namespace Neon_Pivot
* @description Header
*/
import { Classes } from "jss";
import * as React from "react";
import { ThemedComponent, ThemeProps, withConsumer } from "../#common/consumer";
import { mergeClasses } from "../#common/style/decorator";
import { SIZE } from "../declare/index";
im... |
import { RootState } from 'common/redux/types'
import React, { Dispatch } from 'react'
import { connect } from 'react-redux'
import * as accountSelectors from 'modules/Account/Account.selectors'
import { UserInfo } from 'modules/Account/types'
import * as entityAgentSelectors from 'modules/Entities/SelectedEntity/Entit... |
import "@material/mwc-button";
import "@polymer/paper-input/paper-input";
import type { PaperInputElement } from "@polymer/paper-input/paper-input";
import {
css,
CSSResult,
html,
LitElement,
property,
TemplateResult,
} from "lit-element";
import { fireEvent } from "../../../../common/dom/fire_event";
impor... |
import { ArrayUniquePipe } from './pipes/array-unique.pipe';
import { ArrayTrimPipe } from './pipes/array-trim.pipe';
import { ArraySumPipe } from './pipes/array-sum.pipe';
import { ArraySortByPipe } from './pipes/array-sort-by.pipe';
import { ArrayShufflePipe } from './pipes/array-shuffle.pipe';
import { ArrayRtrimPip... |
export const __port__:any = process.env.PORT || 3001 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { nbformat } from '@jupyterlab/coreutils';
import type { KernelMessage } from '@jupyterlab/services';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import {
... |
// Add your test dependencies in here
export { assertEquals } from "https://deno.land/std@0.83.0/testing/asserts.ts"; |
import { Random } from 'mockjs';
import { resultSuccess, doCustomTimes } from '../_util';
const tableList = (pageSize) => {
const result: any[] = [];
doCustomTimes(pageSize, () => {
result.push({
id: '@integer(10,100)',
beginTime: '@datetime',
endTime: '@datetime',
address: '@city()',
... |
import {CommonModule} from '@angular/common';
import {
APP_INITIALIZER, ModuleWithProviders, NgModule, Provider,
} from '@angular/core';
import {contextCore} from './context/context.core';
export * from './models/context-config';
import {
CONTEXT_CORE
} from './injection-tokens';
import {ContextHandlerServi... |
import { expect } from "chai";
import * as Koa from "koa";
import { interfaces } from "../src/interfaces";
import { METADATA_KEY, PARAMETER_TYPE } from "../src/constants";
import { InversifyKoaServer } from "../src/server";
import { Container, injectable } from "inversify";
import { TYPE } from "../src/constants";
impo... |
// (C) 2021 GoodData Corporation
import { call, put, select } from "redux-saga/effects";
import { SagaIterator } from "redux-saga";
import { batchActions } from "redux-batched-actions";
import difference from "lodash/difference";
import partition from "lodash/partition";
import { RemoveAttributeFilters } from "../../.... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Inpluscoin</source>
<translation>A Inpluscoinról</translation>
<... |
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
import { ArtemisMarkdownService } from 'app/shared/markdown.service';
import { AnswerOption } from 'app/entities/quiz/answer-option.model';
import { MultipleChoiceQuestion } from 'app/entities/quiz/multiple-choice-question.model'... |
import ComponentManager from "./ComponentManager";
import IComponent from "./interfaces/IComponent";
import IComponentManager from "./interfaces/IComponentManager";
import { IdGeneratorInstance } from "./Global";
import IEntity from "./interfaces/IEntity";
import IEntityManager from "./interfaces/IEntityManager";
impor... |
import { Injectable } from '@angular/core';
import { Board } from '../models/board.model';
import { Column } from '../models/column.model';
@Injectable({
providedIn: 'root'
})
export class BoardsService {
boards: Board[] = [
new Board('Test', [
new Column(
'To Do',
[
'Add Column',
... |
// 请勿使用该组件,等内部的 hippo-xform 和 hippo3 成熟后,xform 将会重新回归开源
import React, { useContext, useState } from 'react';
import { composeState } from './common-utils';
import { FormItemGroup, FormItemView, FormLayout, FormLayoutParams } from './form-ui';
import { FormModel, IModel } from './models';
export const ModelContext = Re... |
// Copyright 2016-2018, Pulumi Corporation.
//
// 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... |
//REF: https://github.com/home-assistant/frontend/blob/dev/src/common/datetime/format_date_time.ts
import { FrontendLocaleData } from "../types";
import { useAmPm } from "./use_am_pm";
// August 9, 2021, 8:23 AM
/**
* Formatting a dateObject to date with time e.g. August 9, 2021, 8:23 AM
* @param dateObj The date t... |
import { Common, Renderer } from "@k8slens/extensions";
import { kebabCase } from "lodash";
import React, { ReactNode } from "react";
import { GitRepository } from "../../apis/source/git-repository";
import { ExternalLink } from "../external-link";
import { Link } from "react-router-dom";
export interface FluxGitRepos... |
import { StyleSheet } from "react-native";
const styles = StyleSheet.create({
container: {
padding: 40,
backgroundColor: "#8257e5",
},
topBar: {
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
},
title: {
fontFamily: "Archivo_700Bold",
color: "#FFF",
... |
import * as BabelCore from '@babel/core';
import * as BabelTypes from '@babel/types';
import { parseCommentHints, CommentHint } from './comments';
import Extractors, {
EXTRACTORS_PRIORITIES,
ExtractionError,
} from './extractors';
import { computeDerivedKeys, ExtractedKey, TranslationKey } from './keys';
import { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.