text stringlengths 10 953k |
|---|
import { Button, ButtonGroup } from "@chakra-ui/button"
import { chakra } from "@chakra-ui/system"
import * as React from "react"
import {
Popover,
PopoverArrow,
PopoverBody,
PopoverCloseButton,
PopoverContent,
PopoverFooter,
PopoverHeader,
PopoverTrigger,
usePopover,
} from "../src"
export function ... |
import * as React from 'react'
import styled from 'styled-components'
import formik from '../images/formik.png'
import hookFrom from '../images/hookForm.png'
import reduxForm from '../images/reduxForm.png'
import reactHookFormVideo from '../images/react-hook-form-test.mp4'
import formikVideo from '../images/formik-test... |
export interface CoursesResult {
hits: Hit[];
totalHits: number;
pageSize: number;
queryExceedsMaxResultWindow: boolean;
}
export interface Hit {
cmsIntroductionTitle?: TranslatedString;
cmsFieldSummary: TranslatedString;
cmsBody?: ... |
import { PersistedState, IState } from "~state/persisted-state";
const targets= {
"copy-to-s3": {
"GuardDutyTrustedIps": {
"123123123123": {
"eu-central-1": {
"targetType": "copy-to-s3",
"logicalAccountId": "MasterAccount",
"region": "eu-central-1",
"accountI... |
import { Component, OnInit, Input } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import * as moment from 'moment';
@Component({
selector: 'app-date-field',
templateUrl: './date-field.component.html',
styleUrls: ['./date-field.component.scss']
})
export class DateFieldComponent im... |
import { SplitButton } from './SplitButton';
import { isConformant } from '../../common/isConformant';
describe('SplitButton', () => {
isConformant({
Component: SplitButton,
displayName: 'SplitButton',
});
}); |
/**
* MarkdownRenderer - Renderer to provide parser extending and token preprocessing
* Copyright (C) 2016-2048, AngryPowman. (MIT Licensed)
* https://github.com/AngryPowman/markdown-superset
*/
module MarkdownSuperset {
type TokenPreprocess = (token: string) => string;
// Token renderer types
type TokenRe... |
import * as TE from 'fp-ts/TaskEither'
import * as E from 'fp-ts/Either'
import { pipe } from 'fp-ts/lib/function'
import { OutsideRegister, register } from './register'
import { CreateUser } from '@/core/types/user'
const registerOk: OutsideRegister<string> = async (data) => {
return `Usuário ${data.username} cadas... |
import * as React from 'react';
// tslint:disable-next-line:ordered-imports
import { Svg, Path } from 'swgs';
import {
FlexSvgPropsOptional,
reflexComponent,
SvgIcon,
} from '@reflex-ui/core';
export const FormatAlignLeftIcon = reflexComponent<FlexSvgPropsOptional>({
name: 'FormatAlignLeftIcon',
})((props: Fl... |
import * as dotenv from 'dotenv';
import * as path from 'path';
import { ConfigService } from '@nestjs/config';
const CONFIG_PATH: string = path.resolve(process.cwd(), `.env`);
dotenv.config({ path: CONFIG_PATH });
const mongoFactory = async (configService: ConfigService) => ({
uri: configService.get('MONGODB_URI... |
import * as React from 'react'
import { default as PortalInner } from 'semantic-ui-react/dist/commonjs/addons/Portal/PortalInner'
export interface PortalProps extends StrictPortalProps {
[key: string]: any
}
export interface StrictPortalProps {
/** Primary content. */
children?: React.ReactNode
/** Controls ... |
/* eslint-disable max-len */
import React, {FC, Fragment} from 'react';
import styled, {createGlobalStyle} from 'styled-components';
import {Flex, Segment, Header, List, Image, QuestionCircleIcon} from '@fluentui/react-northstar';
import Predictor from '../components/Predictor';
import Training from '../components/Trai... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import { JSONSchema6 } from 'json-schema';
import {
allCommands,
allDebugTypes,
AutoAttachMode,
Commands,
Configuration,
Contr... |
import React, { useEffect, useState } from 'react';
import { StyleSheet, Text, View, Dimensions, TouchableOpacity } from 'react-native';
import MapView, { Marker, Callout, PROVIDER_GOOGLE } from 'react-native-maps';
import { useNavigation, useFocusEffect } from '@react-navigation/native';
import { Feather } from '@exp... |
import type { PlanItem } from "./plan-data";
const moment = (window as any).moment;
export default class Progress {
getProgress(current: PlanItem, next: PlanItem) {
try {
const now = new Date();
const nowMoment = moment(now);
const currentMoment = moment(current.time);
const nextMoment = ... |
/* eslint global-require: off, no-console: off */
/**
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
* through IPC.
*
* When running `yarn build` or `yarn build-main`, this file is compiled to
* `./app/main.pr... |
/*
** StandoffCase Copyright (C) 2020 sunaiclub
** Full License is in the root directory
*/
// SCSS
import "../../../assets/scss/components/switch-content.scss"
// STAFF
import { Fragment, ReactElement, useEffect, useMemo, useState } from "react";
import { classWithModifiers } from "../../../resources/utils";
import... |
import { IOkStorage } from '~/services/storage/lib/okuna-storage/IOkStorage';
// @ts-ignore
export type StorageContainer = LocalForage | Storage;
export interface IStorageService {
setStorage(storage: StorageContainer): void;
getStorage<T>(namespace: string): IOkStorage<T>;
} |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import React, { useContext } from 'react';
import { ITableProps } from '../types';
interface ITableContext {
size: NonNullable<ITableProps['size'... |
import {Component} from '@angular/core';
import {NxCalendarBodyComponent, NxCalendarCell} from './calendar-body';
import {By} from '@angular/platform-browser';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
// tslint:disable component-class-suffix
describe('NxCalendarBodyComponent',... |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Subject } from 'rxjs/Subject';
@Injectable()
export class MessageService {
private subject = new Subject<any>();
sendMessage(message: string) {
this.subject.next({ text: message });
}
clearMessage() {
this.subject... |
import { DeepPartial, DistributiveArray, UnionToIntersection } from './utils';
import { TimeUnit } from './adapters';
import { AnimationEvent } from './animation';
import { AnyObject, EmptyObject } from './basic';
import { Color } from './color';
import { Element } from './element';
import { ChartArea, Point } from '.... |
/**
* 截流
* 采用hooks的方式便携式
*/
import { DependencyList, useCallback, useEffect, useRef } from 'react';
// 优化Effect更新的规则
// 第一次初始化时,打标记为true; 设置成true后,执行
import useUpdateEffect from '../useUpdateEffect';
// 声明一个方法
type noop = (...args: any[]) => any;
export interface ReturnValue<T extends any[]> {
run: (...args: T)... |
declare module BABYLON {
enum GLTFLoaderCoordinateSystemMode {
AUTO = 0,
PASS_THROUGH = 1,
FORCE_RIGHT_HANDED = 2,
}
interface IGLTFLoaderData {
json: Object;
bin: ArrayBufferView;
}
interface IGLTFLoader {
importMeshAsync: (meshesNames: any, scene: Sc... |
export const cacheAdapter = {
retrieve: () => {
console.log('retrieve from ftp');
},
store: () => {
console.log('store from ftp');
},
}; |
import React from 'react';
import SvgIcon from './svgIcon';
type Props = React.ComponentProps<typeof SvgIcon>;
const IconPrevious = React.forwardRef(function IconPrevious(
props: Props,
ref: React.Ref<SVGSVGElement>
) {
return (
<SvgIcon {...props} ref={ref}>
<path d="M15.25,15.48a.69.69,0,0,1-.37-.1... |
const kafka = require('kafka-node');
const bp = require('body-parser');
let kafkaHost = 'kafka-pod:9092';
let kafkaTopic = 'testingtopic';
try {
const Producer = kafka.Producer;
const client = new kafka.KafkaClient({kafkaHost: kafkaHost});
const producer = new Producer(client);
let payloads = [
{
to... |
import * as React from "react";
declare const ClrControlLunSolidBadged: React.SFC;
export default ClrControlLunSolidBadged; |
/**
* Document Editor implementation
*/
export * from './print';
export * from './context-menu';
export * from './format/index';
export * from './list/index';
export * from './viewer/index';
export * from './selection/index';
export * from './search/index';
export * from './editor/index'
export * from './editor-hist... |
import { ContactsJobs, IIndustry } from 'src/interfaces';
import { FormikProps } from 'formik';
export interface ICompanyForm {
formik: FormikProps<ICompanyFormInputs>;
isEditedFullName: boolean;
onChangeFullName: Function;
onChangeIndustry: Function;
setSearchField: Function;
handleChange: Function;
han... |
import React from 'react'
import { Story } from '@storybook/react/types-6-0'
import { Shadow, Props } from '.'
export default {
component: Shadow,
title: 'Atoms/Shadow',
}
const Template: Story<Props> = (args) => (
<Shadow {...args}>
<div
style={{
height: 100,
width: 100,
bor... |
// @ts-nocheck
import React from 'react'
import { Divider, MenuList, Popover } from '@material-ui/core'
import MenuItem from '~/components/MenuItem'
type MenuAlbumProps = {
open: Boolean,
position: Object,
onClickAway: Function,
onContext: Function
}
function MenuAlbum (props: MenuAlbumProps) {
const { ope... |
export const ROUTES = [
'/',
]; |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ItemViewComponent } from './item-view/item-view.component';
const routes: Routes = [
{
path: '', component: ItemViewComponent
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
e... |
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const columnNames: Function = (): string[] => {
const columnNames = [
'ツイート日時',
'ツイートID',
'ユーザー名',
'ユーザーID',
'ツイート本文',
'キャラ1',
'キャラ2',
'キャラ3',
'票数',
'合計',
'要レビュー',
'備考',
'二次チェック済',
]
return columnNam... |
import { Component } from '@angular/core';
import {GridOptions} from 'ag-grid/main';
import { MSNService } from '../../../services/msn.service';
import {Router, ActivatedRoute } from '@angular/router';
@Component({
selector: 'editadmin',
templateUrl: 'app/core/userview/user/edituser.html',
})
export class EditUs... |
export class BarStat {
public id: number;
public shortDesc: string;
public longDesc: string;
public pollVal: number;
constructor(shortDesc1,longDesc1,pollVal1)
{
this.shortDesc = shortDesc1;
this.longDesc = longDesc1;
this.pollVal = pollVal1;
}
} |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const ExternalServiceException: _Structure_ = {
type: "structure",
required: [],
members: {
message: {
shape: {
type: "string"
}
}
},
exceptionType: "ExternalServiceException"
}; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Paxtecum</source>
<translation>Pri Paxtecum</translation>
</mess... |
import * as express from "express";
import * as http from "http";
import * as jwtConfig from "../config/middleware/jwtAuth";
import * as swaggerUi from "swagger-ui-express";
import AuthRouter from "./AuthRouter";
import UserRouter from "./UserRouter";
import TeamRouter from "./TeamRouter";
import FixtureRouter from "./... |
/**
* 根据函数对数组进行分组, 返回分组的对象信息
* @param arr
* @param fn
*/
const countBy = (arr: any, fn: any) =>
arr
.map(typeof fn === "function" ? fn : (val: { [x: string]: any }) => val[fn])
.reduce((acc: { [x: string]: any }, val: string | number) => {
acc[val] = (acc[val] || 0) + 1
return acc
}, {})
... |
<TS language="de" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtsklick zum Bearbeiten der Adresse oder der Bezeichnung</translation>
</message>
<message>
<source>Create a new address</source... |
import { ICactusPlugin } from "../i-cactus-plugin";
import { ConsensusAlgorithmFamily } from "../../generated/openapi/typescript-axios/api";
/**
* Common interface to be implemented by plugins which are implementing the connection to ledgers.
*/
export interface IPluginLedgerConnector<
DeployIn,
DeployOut,
Tra... |
<TS language="he" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>יצירת כתובת חדשה</translation>
</message>
<message>
<source>&New</source>
<translation>&חדשה</translation>
</message>
<mes... |
import { ApiModelProperty, ApiModelPropertyOptional } from '@nestjs/swagger';
import { ExternalOrgDTO } from '../external-data/external-org/external-org.dto';
export class SportDTO {
@ApiModelProperty({
maxLength: 36,
minLength: 36,
})
id: string | null;
@ApiModelProperty()
name: string;
@ApiMode... |
/* Generated from:
* eu-west-1 (https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* us-east-1 (https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* us-west-1 (https://d68hl49wbnanq.cloudfront.net/lat... |
import * as crypto from "crypto";
export type Log = Pick<Console, "info" | "error">;
export class Deferred<T> {
declare promise: Promise<T>;
declare resolve: (value: T | PromiseLike<T>) => void;
declare reject: (reason: Error) => void;
constructor() {
this.promise = new Promise((resolve, reject) => {
this.re... |
export const description = `
Unit tests for parameterization helpers.
`;
import {
ParamSpecIterable,
ParamsSpec,
TestGroup,
paramsEquals,
pcombine,
pexclude,
pfilter,
poptions,
} from '../../framework/index.js';
import { UnitTest } from './unit_test.js';
class ParamsTest extends UnitTest {
expectSp... |
import {API} from '../API';
import {APIEntity} from './APIEntity';
import {APIList} from './APIList'
import {APIResource} from './APIResource'
/**
* APIAdminResourceNotificationPlan
*
* @class
* @extends APIResource
*/
export class APIAdminResourceNotificationPlan extends APIResource {
/**
* /notification-p... |
import { Renderer } from '@reactunity/renderer';
import { Suspense } from 'react';
import { MemoryRouter, useNavigate } from 'react-router';
import styles from './index.module.scss';
import { AppRoutes } from './routes';
function App() {
const nav = useNavigate();
return <view className={styles.host}>
<scroll... |
export default {
methods: {
generateDocSearch(selector) {
// this is for algolia search and is loaded too early.
window.process = {
env: {
debug: false,
},
};
const docsearch = require("docsearch.js");
this.$nextTick(() => {
try {
docsear... |
import {
AbstractRouter,
ApiRoute,
ContextManager,
createDebug,
HooksMiddleware,
HttpTrigger,
HttpTriggerType,
isHooksMiddleware,
ResponseMetaData,
ResponseMetaType,
useContext,
validateOneOf,
} from '@midwayjs/hooks-core'
import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core'
imp... |
import React from 'react';
// Ui
import { IconUi } from '../icon.ui';
// Interfaces
import { IconProps } from '../icon.d';
const SearchIcon: React.FC<IconProps> = (props) => (
<IconUi {...props}>
<path
d="M0 0h24v24H0z"
fill="none"
/>
<path d="M15.5 14h-.79l-.28-.2... |
import assert from 'assert';
import { execSync } from 'child_process';
import { mkdtempSync, writeFileSync } from 'fs';
import { tmpdir } from 'os';
import path from 'path';
function runCLI(cmdline: string) {
// want to be able to redirect stdin, so no execFile for us
return execSync(`${require.resolve('../cli.js'... |
import postcss from 'postcss';
import { expandShorthands } from '../../expand-shorthands';
const transform = (css: TemplateStringsArray) => {
const result = postcss([expandShorthands]).process(css[0], {
from: undefined,
});
return result.css;
};
describe('place self property expander', () => {
it('should... |
import { expect, use as chaiUse } from 'chai'
import {
setupEmptyRepository,
setupFixtureRepository,
} from '../../fixture-helper'
import { Repository } from '../../../src/models/repository'
import { checkoutBranch } from '../../../src/lib/git'
import { TipState, IValidBranch } from '../../../src/models/tip'
import... |
import fetch from 'jest-fetch-mock';
fetch.enableMocks(); |
/*
* Copyright 2017-2019 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 "lic... |
export { default } from './clean';
export { default as getCmd } from './get-cmd'; |
import { Dialog, SessionDialog } from "../dialogs";
import { TransactionStateError } from "../exceptions";
import {
IncomingInviteRequest,
IncomingRequestDelegate,
IncomingRequestMessage,
OutgoingResponse,
OutgoingResponseWithSession,
ResponseOptions,
URI
} from "../messages";
import { SignalingState } fr... |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { PostListComponent } from "./posts/post-list/post-list.component";
import { PostCreateComponent } from "./posts/post-create/post-create.component";
import { LoginComponent } from "./auth/login/login.component";
im... |
import React from "react";
import {
Container,
Box,
withStyles,
WithStyles,
createStyles,
Typography,
Grid,
Theme,
} from "@material-ui/core";
import { useSelector } from "react-redux";
import TimeLine from "../../../../common/SiteDetails/Surveys/Timeline";
import { Reef } from "../../../../store/Reefs... |
export interface LocalState {} |
/**
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Expression } from '../expression';
import { MemoryInterface } from '../memory';
import { PredicateComparers } from './optimizer';
import { RelationshipType } from './r... |
import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
import { AuthService } from '../../service';
import { SignupForm } from '../../types';
@Component({
selector: 'app-password',
templateUrl: './component.html',
styleUrls: ['./component.scss']
})
export class FirstTimePassw... |
import React, { useEffect } from "react";
import TopBar from "../components/TopBar";
import Forecast from "../components/Forecast";
import Highlights from "../components/Highlights";
function Search() {
useEffect(() => {
document.title = "Search Page";
}, []);
return (
<div className="bg-gray-100 flex f... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as i18n from '../../../i18n/i18n_ast';
import * as html from '../../../ml_parser/ast';
import * as o from '.... |
'use strict';
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import * as liveServer from 'live-server';
import * as path from 'path';
// this method is called when your extension is activated... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import Action from "./Action";
declare class GuildUpdateAction extends Action {
handle(data: import("@amanda/discordtypings").GuildData): {
old: null;
updated: import("../../structures/Guild");
};
}
export = GuildUpdateAction; |
// @declaration: true
var { a: x11, b: { a: y11, b: { a: z11 }}} = { a: 1, b: { a: "hello", b: { a: true } } };
function f15() {
var a4 = "hello";
var b4 = 1;
var c4 = true;
return { a4, b4, c4 };
}
var { a4, b4, c4 } = f15();
module m {
export var { a4, b4, c4 } = f15();
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sk" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About WEIGRATE</source>
<translation>O WEIGRATE</translation>
</messag... |
import type { FormattedExecutionResult } from 'graphql';
export interface GraphiQLData {
query?: string | null;
variables?: { readonly [name: string]: unknown } | null;
operationName?: string | null;
result?: FormattedExecutionResult;
}
export interface GraphiQLOptions {
/**
* An optional GraphQL string ... |
declare function parseOrderCancellation(tx: any): Object;
export default parseOrderCancellation; |
import { LineResults } from "../LineResults";
import { CommandNames } from "../Names/CommandNames";
import { Command } from "./Command";
import { CommandMetadata } from "./Metadata/CommandMetadata";
import { RepeatingParameters } from "./Metadata/Parameters/RepeatingParameters";
import { SingleParameter } from "./Metad... |
import * as React from 'react';
import { MarqueeSelectionBasicExample } from './MarqueeSelection.Basic.Example';
import { IDocPageProps } from '@fluentui/react-internal/lib/common/DocPage.types';
const MarqueeSelectionBasicExampleCode = require('!raw-loader!@fluentui/react-examples/src/react/MarqueeSelection/Marquee... |
import classNames from 'classnames'
import { memo, ReactNode } from 'react'
import { useClassNamePrefix } from '../../auxiliary'
import { Default, NativeProps, Size } from '../../types'
import { toEnumViewClass, toStateClass } from '../../utils'
export interface LabelOwnProps {
isDisabled?: boolean
isActive?: bool... |
import { JsonRpc } from '@as2network/ethereum-types'
import { encodeMethod } from '@as2network/ethereum-abi-encoder'
import { keccak256 } from '@as2network/ethereum-crypto'
import { Dependencies, EncodableArray, TransactionReceipt } from '@as2network/recoverable-wallet-library'
export class DependenciesImpl implements... |
GOCAD TSurf 1
HEADER {
name:CRFA-CSBL-LALM-Los_Alamos_fault_steep-CFM5_500m
*visible:true
*solid*color:0.445564 0.952789 0.923694 1
}
GOCAD_ORIGINAL_COORDINATE_SYSTEM
NAME Default
AXIS_NAME "X" "Y" "Z"
AXIS_UNIT "m" "m" "m"
ZPOSITIVE Elevation
END_ORIGINAL_COORDINATE_SYSTEM
TFACE
VRTX 1 192926.96875 3847658.54688 -6018... |
import * as React from 'react';
import { compose } from 'recompose';
import Select, { Item } from 'src/components/EnhancedSelect/Select';
import clustersContainer, {
StateProps
} from 'src/containers/clusters.container';
import { formatRegion } from 'src/utilities';
interface Props {
selectedCluster: string;
onC... |
import chalk from 'chalk';
import { colors, Colors } from './colors';
import { timestamp, isFunction, isString } from './utils';
import { format } from 'util';
export interface PrintOptions {
timePrefix?: boolean;
prefix?: string | (() => string);
silent?: boolean;
}
export enum Levels {
fancy,
in... |
import { Request, Response } from 'express'
import { SettingsService } from '../services/SettingsService'
class SettingController {
async create(request: Request, response: Response) {
const { chat, username } = request.body
const settingsService = new SettingsService()
try {
const settings = awa... |
import React, { SVGProps } from 'react';
const SvgSai = (props: SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 28 28" {...props}>
<defs>
<circle id="sai_svg__a" cx={13.967} cy={13.967} r={13.5} />
</defs>
<g fill="none" fillRule="evenodd">
<circle stroke="#FEAE16" cx={13.967} cy={13.967} r={... |
import { Component, OnInit } from '@angular/core';
import { FooterService, MessageType, Message } from '../footer';
@Component({
selector: 'lc-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
constructor(private footerService: ... |
import { filter, switchMap } from 'rxjs/operators';
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import {
Observable,
EMPTY,
Subject,
BehaviorSubject,
Subscription
} from 'rxjs';
import { Actions, Action, Connector, Step } from '@synd... |
import * as React from "react";
interface Props extends React.ComponentProps<"svg"> {
size?: number;
width?: number;
height?: number;
}
const FlagIconTG = ({
size = 15,
width = 21,
height = 15,
...props
}: Props) => {
if (size !== height) {
width = width * (size / height);
height = height * (si... |
'use strict';
import * as React from 'react';
import { connect } from 'react-redux';
import { ESize } from 'chord/music/common/size';
import { getDateYear } from 'chord/base/common/time';
import { ICollectionItemViewProps } from 'chord/workbench/parts/common/props/collectionItem';
import { handlePlayCollection } fro... |
import * as path from "path";
import * as fs from 'fs'
import Fastr from '../Fastr'
import { Video, Criteria } from '../Fastr'
const indexFile = 'index.json'
describe('Fastr.ts', () => {
it("finds videos by title match", () => {
const video1 = loadVideo('-ES1wlV-8lU');
const video2 = loadVideo('6XdwHo1BWwY... |
import * as ts from 'typescript';
export interface CompilerInfo {
compilerPath: string;
compilerVersion: string;
tsImpl: typeof ts;
}
export interface LoaderConfig {
instance?: string;
compiler?: string;
configFileName?: string;
configFileContent?: string;
forceIsolatedModules?: boolean;... |
import { Column, ColumnDefinition, getColumnType, parseColumnFlags } from "./column";
import { readFieldValue, Value } from "./data";
import Database from "./Database";
import PageType, { assertPageType } from "./PageType";
import { uncompressText } from "./unicodeCompression";
import { findMapPages } from "./usage-map... |
/////////////////////////////////////////////////////////////////
// Type definitions for Symbol Fundamental information
// Project: https://safeonline.world/
// Definitions by: Rajib Chy <https://github.com/rajibchy>
// 12:04 PM 9/8/2021
// by rajib chy
/// <reference types="node"/>
///////////////////////////////////... |
import { Component, EventEmitter, Input, Output } from '@angular/core';
type ButtonType = 'submit' | 'reset' | 'button';
@Component({
selector: 'rf-button',
templateUrl: './button.component.html',
styleUrls: ['./button.component.scss'],
})
export class ButtonComponent {
@Input()
public label: string = '';
... |
import { Section } from '../@types/resume.d.ts'
const data: Resume = {
sections: [
{
title: 'Work experience',
entries: [
{
title: 'Lifeguard',
company: 'Round Hill Pool',
link: "https://roundhillclub.org/pool",
duration: {
start: 'June 2018... |
import { View } from "./view"
import { TasklistController } from "../controllers/tasklistController";
import { ApiRequester } from "../communication/apiRequester";
import { BoardHub } from "../communication/boardHub";
import { Task } from "../models/task";
import { Group } from "../models/group";
import { ToastType } f... |
export class GetCommentsByPostIdQuery {
constructor(public readonly postId: string, public readonly offset: number = 0) {}
} |
export interface QueryGoods extends Paging {
typeOneId?: number;
typeTwoId?: number;
}
export interface ShopGood {
title: string;
price: string;
mack: string;
nice: string;
supplier: string;
img_url: string;
img_list_url: string;
type_one_id: number;
type_two_id: number;
}
... |
import { Vector4 } from "babylonjs/Maths/math.vector";
import { TransformNode } from "babylonjs/Meshes/transformNode";
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
import { CreateBox } from "babylonjs/Meshes/Builders/boxBuilder";
import { Material } from "babylonjs/Materials/material";
import { Standar... |
import { Controller, Get, Post, Body, Put, Param, Delete, UseGuards } from '@nestjs/common';
import { UserService } from './user.service';
import { CreateUserDto } from './dto/create-user.dto';
import { GetListOfUsersResponse, GetUserResponse } from 'src/interfaces/user';
import { AuthGuard } from '@nestjs/passport';
i... |
import HtmlWebpackPlugin from 'html-webpack-plugin';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import { resolve } from 'path';
import * as webpack from 'webpack';
import postCssConfig from './postcss.config';
const devMode = process.env.NODE_ENV !== 'production';
const projectRoot = resolve(__dirnam... |
/**
* Copyright 2015 Google 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 required by appli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.