text stringlengths 10 953k |
|---|
// package: users
// file: users.proto
/* tslint:disable */
/* eslint-disable */
import * as jspb from "google-protobuf";
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
export class User extends jspb.Message {
getId(): number;
setId(value: number): User;
getName():... |
import { BoKeDetailComponent } from './boke/detail/boke-detail.component';
import { BoKeListComponent } from './boke/list/boke-list.component';
import { BoKeAddComponent } from './boke/add/boke-add.component';
import { HomeComponent } from './home.component';
import { FileViewComponent } from './file-view/file-view.com... |
import { BusquedaRegistroModule } from './busqueda-registro.module';
describe('BusquedaRegistroModule', () => {
let busquedaRegistroModule: BusquedaRegistroModule;
beforeEach(() => {
busquedaRegistroModule = new BusquedaRegistroModule();
});
it('should create an instance', () => {
exp... |
import { NativeScriptFormsModule } from "nativescript-angular";
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { NativeScriptUIListViewModule } from "nativescript-ui-listview/angular";
import { MuroRoutingModule } from "~/app/mu... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { UsersComponent } from './users/users.component';
const routes: Routes = [{ path: '', component: UsersComponent }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export cla... |
<TS language="zh_TW" 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>建立新的位址</translation>... |
import { TransactionTypes } from "../../../constants";
import { NFTBuilder } from "./nft";
export class NFTUpdateBuilder extends NFTBuilder {
constructor(tokenId: string) {
super(TransactionTypes.NftUpdate, tokenId);
}
public properties(properties: Array<[string, string]>) {
this.data.asse... |
import mongoose, {mongo, Schema} from 'mongoose'
const reqString = {
type: String,
required: true
}
const welcomeSchema = new Schema({
_id: reqString,
channelId: reqString,
text: reqString
})
const name = 'welcome-messages'
export default mongoose.models[name] || mongoose.model(name, welcomeSch... |
import { Spec } from '@hayspec/spec';
import { Command } from '@rawcmd/core';
import { usageTypewriter, EOL } from '../../src';
const spec = new Spec<{
command: Command;
}>();
spec.before((sta) => {
sta.set('command', new Command());
});
spec.test('builds output string', (ctx) => {
ctx.deepEqual(usageTypewrite... |
import { createContext, useContext, useMemo } from 'react';
import { PrivateListProps } from './types';
export interface ListContextProps extends PrivateListProps {
depth: number;
}
export const ListContext = createContext<ListContextProps>(
{} as ListContextProps
);
ListContext.displayName = 'ListContext';
ex... |
export interface IChangePassword {
Password: string;
OldPassword:string;
}
export interface IChangePasswordLD {
Password: string;
OldPassword:string;
}
export const defaultChangePasswordModel = {
Password: '',
OldPassword:''
}
export class ResetPasswordModel {
constructor(... |
import {TranslationCatalog} from "../interface/TranslationCatalog";
import i18next from "i18next";
import {DEFAULT_NAMESPACE} from "../defaults";
import {Translation} from "./Translation";
export function Translations(locale: string, catalog: TranslationCatalog, namespace: string = DEFAULT_NAMESPACE): any {
// ca... |
import * as React from 'react';
import { set } from 'lodash';
import { HelpField, IDeploymentStrategyAdditionalFieldsProps } from '@spinnaker/core';
import { IRedBlackCommand } from 'cloudfoundry/deploymentStrategy/strategies/redblack/redblack.strategy';
export interface IRedBlackStrategyAdditionalFieldsProps extends... |
import * as R from 'ramda';
import { offsetToCursor, READ_ENTITIES_INDICES, READ_RELATIONSHIPS_INDICES } from './utils';
import { elPaginate } from './engine';
import { buildRefRelationKey } from '../schema/general';
import type { AuthUser } from '../types/user';
import type {
BasicStoreCommon,
StoreProxyConnection... |
import { Component } from '@angular/core';
import {SearchItemsComponent} from './search-items/search-items.component';
import {PredictService} from './predict.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
titl... |
import { WithStyle } from '@medly-components/utils';
import React, { FC } from 'react';
import PinDropIconSvg from '../../assets/Maps/pin_drop_24px_rounded.svg';
import SvgIcon, { SvgIconProps } from '../../SvgIcon';
const Component: FC<SvgIconProps> = React.memo(props => {
const { size, withHoverEffect, color, ma... |
/* tslint:disable */
/* eslint-disable */
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type FairCollections_fair = {
readonly marketingCollections: ReadonlyArray<{
readonly id: string;
readonly " $fragmentRefs": FragmentRefs<"FairCollection_co... |
import dagPB from 'ipld-dag-pb'
import { DAGLink, UnixFSFile } from '../ipfs'
import { BasicLink, Link, Links, NodeMap } from './types'
import { mapObj } from '../common/util'
export const toDAGLink = (link: BasicLink): DAGLink => {
const { name, cid, size } = link
return new dagPB.DAGLink(name, size, cid)
}
ex... |
enum InteractionType {
PING = 1,
APPLICATION_COMMAND = 2,
MESSAGE_COMPONENT = 3
}
export default InteractionType; |
import {
ADD_FILES,
REMOVE_FILES,
CLEAR_FILES,
QUEUE_FILES,
CANCEL_FILES,
FilesActionTypes,
FILE_SUCCESS,
FILE_ERROR,
FILE_PROCESSING,
} from './types';
import { AppFile } from '../../../types';
export function addFiles(files: AppFile[]): FilesActionTypes {
return { type: ADD_FILES, files };
}
exp... |
import nodemailer from "nodemailer";
// async..await is not allowed in global scope, must use a wrapper
export async function sendEmail(to: string, html: string) {
// Generate test SMTP service account from ethereal.email
// Only needed if you don't have a real mail account for testing
// let testAccount = await... |
/* Imports: External */
import { BaseService, Metrics } from '@eth-optimism/common-ts'
import { LevelUp } from 'levelup'
import level from 'level'
import { Counter } from 'prom-client'
/* Imports: Internal */
import { L1IngestionService } from '../l1-ingestion/service'
import { L1TransportServer } from '../server/serv... |
import { Immutable } from 'immer'
import { List } from 'immutable'
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'
import { areEqual, FixedSizeList } from 'react-window'
import styled from 'styled-components'
import { LadderPlayer } from '../../common/ladder'
import { Matchmakin... |
import MovieCard from '../../../src/components/movieCard'
import React from 'react'
import { movies as moviesMock } from '../../../src/mocks'
import { shallow } from 'enzyme'
import 'jest-enzyme'
describe('MovieCard tests', () => {
it('should not have changed', () => {
// Given
const movie = moviesMock[0]
... |
import { List as _List_ } from "@aws-sdk/types";
export const _IpRanges: _List_ = {
type: "list",
member: {
shape: {
type: "string"
},
locationName: "item"
}
}; |
import {ConsumerOptions} from "../consumer_options/ConsumerOptions";
class Configuration {
public static readonly TYPE_PLAIN = 1;
public static readonly TYPE_FILE = 2;
constructor(
public type: number,
public consumerOptions: ConsumerOptions[]
) {
}
}
export {Configuration} |
import { Neovim } from '@chemzqm/neovim'
import fs from 'fs'
import os from 'os'
import path from 'path'
import uuid from 'uuid/v4'
import { Disposable, Emitter } from 'vscode-languageserver-protocol'
import { CreateFile, DeleteFile, Location, Position, Range, RenameFile, TextDocumentEdit, TextEdit, VersionedTextDocume... |
import { withInstall } from '../utils';
import _SidebarItem from './SidebarItem';
export const SidebarItem = withInstall(_SidebarItem);
export default SidebarItem; |
import { MigrationInterface, QueryRunner, Table } from "typeorm";
export class CreateAdoptionQuiz1628507611507 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: "reservations_quiz",
columns: [
... |
import type { AllPlatforms } from "@rnx-kit/tools-react-native/platform";
import type { PluginOptions as CyclicDetectorOptions } from "@rnx-kit/metro-plugin-cyclic-dependencies-detector";
import type { Options as DuplicateDetectorOptions } from "@rnx-kit/metro-plugin-duplicates-checker";
import type { OutputOptions } f... |
/*
* Copyright 2021 Salto Labs Ltd.
*
* 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 ... |
import * as T from "three";
import { VideoAsset } from "../assets";
import { IVector3 } from "../math/Vector3";
import { IStrip, Strip } from "./Strip";
import { PlayMode, PLAY_EVERY_FRAME } from "~/plugins/config";
import { VegaError } from "~/plugins/error";
const FPS_ERROR_TOLERANCE = 0.01;
const ASSET_SEEK_TIMEOUT... |
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import useStyles from 'src/hooks/useStyles';
import { generateShadow } from 'src/utils/helpMethods';
type SectionProps = {
children: any;
title: string;
bg?: boolean;
}
const Section: React.FC<SectionProps> = ({
children,
tit... |
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import { NextApiRequest, NextApiResponse } from "next";
import { Affidavit, Applicant } from "server/models/Applicant";
import { handlePDF } from "utils/createPdf";
import { connectDB } from "utils/db";
export default async (
req: NextApi... |
import { BettererError } from '@betterer/errors';
import { BettererLogger } from '@betterer/logger';
import dependencyCheck from 'dependency-check';
import { promises as fs } from 'fs';
import * as path from 'path';
const EXCLUDED_PACKAGES = ['docgen', 'extension', 'fixture'];
const PACKAGES_DIR = path.resolve(__dirna... |
/**
* License https://github.com/Remix-Design/RemixIcon/blob/master/License
*/
import { SVGIconDef } from './types';
const AlipayOutlined: SVGIconDef = {
name: 'alipay',
theme: 'outlined',
attrs: {
viewBox: '0 0 24 24',
},
children: '<path fill="none" d="M0 0h24v24H0z"/><path d="M18.408 16.79c-2.173-.9... |
/* tslint:disable:no-default-export */
import { Header } from '@opengov/component-library/capital';
import React from 'react';
import { ToolsTable } from '../../components';
import LayoutReference from '../../components/Layouts/LayoutReference';
import tocStyles from '../../components/Layouts/TOC.scss';
export const... |
import React, { Component } from 'react';
interface IProps {
header?: string;
}
interface IState {
header?: string;
}
/*
class App extends Component<IProps, IState> {
constructor(props: IProps) {
super(props);
this.state = {
header: '这是Header组件需要的内容',
};
}
render() {
return <HeaderWra... |
import type {ShopifyContextValue} from '../../foundation/ShopifyProvider/types';
import {getTime} from '../../utilities/timing';
import type {QueryCacheControlHeaders} from '../../utilities/log/log-cache-header';
import type {QueryTiming} from '../../utilities/log/log-query-timeline';
import type {HydrogenConfig, Prelo... |
import { Component, ChangeDetectionStrategy, ViewChild, TemplateRef, OnInit } from '@angular/core';
import {
startOfDay,
endOfDay,
subDays,
addDays,
endOfMonth,
isSameDay,
isSameMonth,
addHours
} from 'date-fns';
import { Subject } from 'rxjs';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
impo... |
import mongoose from 'mongoose'
import { OrderCreatedEvent, OrderStatus } from "@ticketlabs/common"
import OrderCreatedListener from "../order-created-listener"
import { natsWrapper } from '../../../natsWrapper'
import { Ticket } from '../../../models'
const setup = async() => {
const listener = new OrderCreatedList... |
import React from 'react'
import { Form } from 'react-bootstrap'
import ControlLabel from './ControlLabel'
import { recordCalculatorOptionSelected } from 'components/Analytics'
import { CheckBoxFormValue } from 'data/data'
export const RadioControl: React.FunctionComponent<{
id: string
setter: (value: string) => ... |
import Joi from 'joi';
import ConfigService from './config';
import {ChartcuterieConfig, RenderData} from './types';
const renderType = Joi.object({
key: Joi.string().description('The lookup key used by render requests').required(),
height: Joi.number()
.description('The height of the rendered chart, in pixe... |
export { ErrorMessageBar } from "./error-message-bar"; |
/*
GDevelop - Pathfinding Behavior Extension
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
*/
namespace gdjs {
const logger = new gdjs.Logger('Pathfinding behavior');
/**
* PathfindingRuntimeBehavior represents a behavior allowing objects to
* follow a path computed to avoid obstacles.
*... |
import { DEFAULT_PK_FACTORY, emitWarningOnce, resolveOptions } from './utils';
import { ReadPreference, ReadPreferenceLike } from './read_preference';
import {
normalizeHintField,
checkCollectionName,
MongoDBNamespace,
Callback,
getTopology
} from './utils';
import { Document, BSONSerializeOptions, resolveBSO... |
import { getStyleStr } from './';
describe('getStyleStr', () => {
it('空对象', () => {
expect(getStyleStr({})).toEqual('');
});
it('简单样式对象', () => {
const style = {
width: '100px'
}
expect(getStyleStr(style)).toEqual('width:100px;');
});
it('带有中划线的样式对象', () => {
const style = {
... |
<TS language="nl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtermuisklik om het adres of label te wijzigen</translation>
</message>
<message>
<source>Create a new address</source>
... |
import illustrationImg from "../assets/images/illustration.svg"
import logoImg from "../assets/images/logo.svg"
import googleIconImg from "../assets/images/google-icon.svg"
import "../styles/auth.scss"
//webpack (snowpack, vite ...)
export function Home() {
return (
<div id="page-auth">
<asid... |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from "@angular/router";
import {DomSanitizer, SafeResourceUrl, SafeUrl} from '@angular/platform-browser';
import { DataService } from '../services/data.service';
@Component({
selector: 'app-anime-info-page',
templateUrl: '.... |
import { Button } from "@blueprintjs/core";
import { RssGroupResponse } from "grapevine-rss-client-javascript";
import * as React from "react";
interface Props {
group: RssGroupResponse;
onClickCallback: (id: number) => void;
}
export class GroupLink extends React.Component<Props, {}> {
constructor(props: Props... |
import { AutoTableConfig } from './models';
import { Subject } from 'rxjs';
export function blankConfig<T>(): AutoTableConfig<T> {
return {
data$: new Subject<T[]>(),
searchOnlyVisibleColumns: true,
searchByColumnOption: true
};
} |
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { TableNames } from "../constant";
import { RecordDataModel } from "./record.model";
import { RestrictionType } from ".";
/**
* Entity for restrictions
*/
@Entity({ name: TableNames.Restrictions })
export class Restriction extends RecordDataMod... |
version https://git-lfs.github.com/spec/v1
oid sha256:c3ff02bde67cf96a09fd10f333db5e7c478d706adebbcb875e27e1672f5537b8
size 710640 |
import { useState } from 'react';
import type { FC } from 'react';
import sleep from 'sleep-promise';
import { AsyncPaginate } from '..';
import type {
LoadOptions,
} from '..';
const options = [];
for (let i = 0; i < 50; ++i) {
options.push({
value: i + 1,
label: `Option ${i + 1}`,
});
}
const loadOpt... |
/**
* 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.
*
* @format
*/
import React from 'react';
import {Dialog, getFlipperLib} from 'flipper-plugin';
import {getUser} from '../fb-stubs/... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="eu_ES">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitcoin</source>
<translation type="unfinished"... |
import { Parent, ResolveField, Resolver } from '@nestjs/graphql';
import { Permission } from '@vendure/common/lib/generated-types';
import { RequestContextCacheService } from '../../../cache/request-context-cache.service';
import { Translated } from '../../../common/types/locale-types';
import { assertFound } from '..... |
import styled from 'styled-components';
import { shade } from 'polished';
export const Container = styled.div`
> header {
height: 144px;
background: #28262e;
display: flex;
align-items: center;
div {
width: 100%;
max-width: 1120px;
margin: 0 auto;
}
svg {
color:... |
/* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file a... |
import { h } from 'preact'
import { Link } from 'preact-router/match'
import { linkActiveClass, linkClass } from './controls/Link'
import { routes } from '../../common/routes'
export const Header = () => (
<header role="banner">
<nav>
<Link
activeClassName={'fw7'}
class={`${linkClass} dib ... |
import React from "react";
import createSvgIcon from "../SvgIcon/utils/createSvgIcon";
export default createSvgIcon(
<path d="M10.88 21.94l5.53-5.54c.37-.37.58-.88.58-1.41V5c0-1.1-.9-2-2-2H6c-.8 0-1.52.48-1.83 1.21L.91 11.82C.06 13.8 1.51 16 3.66 16h5.65l-.95 4.58c-.1.5.05 1.01.41 1.37.59.58 1.53.58 2.11-.01zM21 3c-... |
import { graphql, Link, StaticQuery} from 'gatsby'
import * as React from 'react'
import logo from '../../static/favicon.png'
import Footer from '../components/Footer.tsx'
import NavBar from '../components/NavBar.tsx'
import * as styles from './Index.module.scss'
const IndexLayout: React.SFC = ({ children }) => (
<St... |
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { LoginService } from './login.service';
@Injectable({
providedIn: 'root',
})
export class LoginGuard implements CanActivate {
constructor(private _ls... |
import * as React from 'react';
import { Image, TouchableOpacity } from 'react-native';
import styled from 'styled-components';
import menuIcon from '../../assets/images/icons/menu.svg';
const Wrapper = styled(TouchableOpacity)`
padding: 10px;
position: fixed;
right: 50px;
top: 50px;
`;
const Icon = styled(Im... |
import Document, { Html, Head, Main, NextScript } from 'next/document'
export default class MyDocument extends Document {
render() {
return (
<Html>
<Head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
... |
import { moduleMetadata, Story, Meta } from '@storybook/angular';
import { CommonModule } from '@angular/common';
import { PureInboxScreenComponent } from './pure-inbox-screen.component';
import { TaskModule } from './task.module';
import { Store, NgxsModule } from '@ngxs/store';
import { TasksState } from '../stat... |
import { Timerange, Timeslot } from "../../service/domain";
export default function generateTimerangesFromTimeslots(
timeslots: Timeslot[]
): Timerange[] {
const hashedTimeslots = timeslots.reduce<{ [hash: string]: Timeslot[] }>(
(hashed, timeslot) => {
const hash = `${timeslot.start}-${timeslot.end}-${t... |
import {
Construct,
Fn,
Reference,
} from '@aws-cdk/core';
import {
CfnApplication,
} from '@aws-cdk/aws-sam';
interface Props {
semanticVersion: string;
logLevel?: string;
}
export default class extends Construct {
application: CfnApplication;
constructor(scope: Construct, id: string, props: Props) ... |
import React from 'react';
import makeSchemaRenderer from './SchemaRender';
import SimplePageSchema from './Page/Simple';
import ErrorPageSchema from './Page/Error';
import FormPageSchema from './Page/Form';
import ModeFormSchema from './Form/Mode';
import FieldSetFormSchema from './Form/FieldSet';
import TabsFormSche... |
import Joi from 'joi';
import _ from 'lodash';
import { ResponseData, Field, Schema, Body } from './types';
/**
* Custom Joi Error Handling
*
* @param {string} error
* @returns {string}
*/
function joiError(error = '') {
if (error) {
return error.split(': ').pop();
}
return error;
}
/**
* Template re... |
import { Application, Service, Hook } from '@feathersjs/feathers'
import { _ } from '@feathersjs/commons'
const { each } = _
import _get from 'lodash/get'
import {
GraphPopulateHook,
GraphPopulateHookMap,
GraphPopulateHooksObject
} from '../types'
export function convertHookData (obj: GraphPopulateHook|Record<s... |
import { MigrationInterface, QueryRunner } from 'typeorm';
export class todoRelationUser1626650756810 implements MigrationInterface {
name = 'todoRelationUser1626650756810';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "todo" ADD "created_by" uuid NOT ... |
import { DataProvider, FetchByKeysParameters, ContainsKeysResults, FetchByKeysResults, FetchByOffsetParameters, FetchByOffsetResults, DataMapping, FetchListResult, FetchListParameters,
FetchAttribute } from '../ojdataprovider';
declare namespace JoiningDataProvider {
interface DataProviderJoinInfo<BD, JK, JD> {
... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
/**
* <p>Describes the placement of an instance.</p>
*/
export interface _PlacementResponse {
/**
* <p>The name of the placement group the instance is in.</p>
*/
GroupName?: string;
}
export type _UnmarshalledPlacementResponse = _PlacementResponse; |
import { IConfigurationModel } from '../types'
import { objectLiteral } from '../util/is'
import { addToValueTree, removeFromValueTree, getConfigurationValue } from './util'
import { deepClone, deepFreeze } from '../util/object'
export class ConfigurationModel implements IConfigurationModel {
constructor(private _c... |
import {
Directive,
ComponentFactoryResolver,
ViewContainerRef,
Type,
ComponentRef,
Input,
OnInit,
Output,
EventEmitter,
OnChanges,
SimpleChanges,
ChangeDetectionStrategy,
OnDestroy,
} from '@angular/core';
import { CnGridInputComponent } from './cn-grid-items/cn-grid-input/cn-grid-input.compo... |
import { sortedUniqBy } from "../index";
export = sortedUniqBy; |
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.6
//
// <auto-generated>
//
// Generated from file `EndpointTypes.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
export namespace Ice
{
/**
* Determines the order in which the Ice run time uses the endpoints
... |
export * from "./back_arrow";
export * from "./blurable_input";
export * from "./center_panel";
export * from "./checkbox";
export * from "./color_picker";
export * from "./colors";
export * from "./column";
// export * from "./delete_button";
export * from "./doc_link";
export * from "./empty_state_wrapper";
export * ... |
import React from "react";
import { Element as SlateElement } from "slate";
import { RenderElementProps } from "slate-react";
import Code, { OnEditCode } from "./Code";
import Math, { OnEditMath } from "./Math";
type Element =
| {
type?:
| "paragraph"
| "block-quote"
| "bulleted-list"
... |
/*
* 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 { CompleteTimeline } from '../../objects/timeline';
export const crea... |
import { expect } from 'chai';
import { EqualityComparer, List } from '../../src/index';
describe('distinct tests', () => {
it('distinct test', () => {
const list = List.fromRest(1, 3, 2, 3, 1, 4, 2);
const distinct = list
.distinct()
.toArray();
expect(distinct).t... |
import {Shape} from "./shape";
import {Path2D} from "../path2D";
import {isPointInBBox} from "../bbox";
import {pixelSnap as _pixelSnap} from "../../canvas/canvas";
// _pixelSnap(3) compiles to Object(_canvas_canvas__WEBPACK_IMPORTED_MODULE_3__["pixelSnap"])(3)
// This has some performance hit and is not nice for read... |
import { Observable, BehaviorSubject } from 'rxjs'
declare global
{
interface IGrowthModel
{
readonly population: number
getNext(count: number): number
onPopulationChanged(): Observable<number>
update(dt: number)
}
}
export default class VirusGrowthModel implements IGrowthModel
{
private accumulatedTime ... |
import { Entity, model, property } from '@loopback/repository'
@model()
export class Branch extends Entity {
@property({
type: 'string',
id: true,
generated: false,
required: true,
})
name: string
@property({
type: 'object',
required: true,
defau... |
// @allowJs: true
// @filename: a.js
module M { } |
import { all, fork } from 'redux-saga/effects';
import artistSagaWorker from './artistSaga';
import popularTrackSaga from './popularTrackSaga';
import searchTrackSagaWorker from './searchTrackSaga';
export default function* rootSaga() {
yield all([fork(popularTrackSaga), fork(artistSagaWorker), fork(searchTrackSagaW... |
import { omit } from 'lodash'
import {
RulesetContent,
RulesetFormat,
RulesetMetaData,
RulesetProvider,
} from '../ruleset-provider'
import { RulesetType } from '../ruleset-type'
const mockRuleSets = [
{
type: RulesetType.AdBlocking,
location: 'adblock-plus/list1',
updatedAt: new Date('2020-01-0... |
/**
* Talentmaker website
*
* @license BSD-3-Clause
* @author Luke Zhang
* @copyright (C) 2020 - 2021 Luke Zhang
* https://Luke-zhang-04.github.io
* https://github.com/ethanlim04
*/
import JoinTeamComponent from "../components/pages/joinTeam"
import React from "react"
import {useParams} from "react-router-dom"... |
import InGameScene from "./InGameScene";
import IntroScene from "./IntroScene";
import LoadScene from "./LoadScene";
import Scene, { Bundle, SceneId, SceneManager } from "./Scene";
import TitleScene from "./TitleScene";
export default class SceneFactory {
/**
* Create Scene object.
* @param scene - Scene... |
import IdentifiableEntity from '../annotations/IdentifiableEntity'
import { Identifier } from '../annotations/Identifier'
// tslint:disable-next-line:variable-name
export const StandardTimeLineEventTypeNames = {
CreationTime: 'io.mitter.types.timeline.CreationTime',
messages: {
SentTime: 'mitter.mtet.S... |
import { doc, getDoc } from '@firebase/firestore';
import { flatObject } from '../util';
import { Firestore } from './Firestore';
export enum MaterialType {
SUBJECT = 'subject',
BOOK = 'book',
LECTURE = 'lecture',
APP = 'app',
APPCHILD = 'appchild',
}
export type Material = {
id: string;
nameEn: string;... |
import * as uuid from "uuid";
import { CurrentUser } from "../shared/models/CurrentUser";
const SSO_VALID_TIME = 86400000 * 7;
export class UserUtil {
// Store data in memory for test
// You can store data into database
static users: {
uid: number,
username: string,
password: stri... |
import type {
PropType,
UniNode,
} from '@uni-component/core'
import {
classNames,
computed,
Fragment,
h,
provide,
toRef,
uni2Platform,
uniComponent,
} from '@uni-component/core'
// Components
import { makeVExpansionPanelTitleProps, VExpansionPanelTitle } from './VExpansionPanelTitle'
import { VExp... |
import { WaitablePromise } from '@algolia/client-common';
import { RequestOptions } from '@algolia/transporter';
import { copyIndex, IndexOperationResponse, ScopeEnum, SearchClient } from '../..';
export const copySynonyms = (base: SearchClient) => {
return (
from: string,
to: string,
requestOptions?: R... |
import {
JSOSParserBooleanElement,
JSOSParserListElement,
JSOSParserNodeElement,
JSOSParserNullishElement,
JSOSParserNumericElement,
JSOSParserStringElement,
} from '../types';
export const createNodeElement = ({
path,
value,
parent = undefined,
}: Partial<JSOSParserNodeElement>): JSOSParserNodeEleme... |
import registerComponent, {
ComponentMeta,
} from "@plasmicapp/host/registerComponent";
import React from "react";
export interface EmbedCssProps {
css: string;
}
export default function EmbedCss({
css
}: EmbedCssProps) {
return (
<style
dangerouslySetInnerHTML={{ __html: css }}
/>
);
}
expor... |
import { IonItem, IonAvatar, IonLabel } from "@ionic/react";
import { Speakers } from "@sumilan-app/api";
import { SocialLinkType } from "../../models/types.model";
import SocialLinkComponent from "../SocialLinkComponent/SocialLinkComponent";
import avatar from '../../../assets/images/avatar.png';
interface SpeakerPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.