text stringlengths 10 953k |
|---|
/** @module container */
export { SenecaPlugin } from './SenecaPlugin'; |
export function format(
diff: number,
divisor: number,
unit: string,
past: string,
future: string,
isInTheFuture: boolean
): string {
const val = Math.round(Math.abs(diff) / divisor);
if(isInTheFuture) {
return val <= 1 ? future : `in ${val} ${unit}s`;
} else {
return val <= 1 ? past : `${val}... |
import React, { useEffect, useState } from 'react';
import AsyncStorage from '@react-native-community/async-storage';
import { StatusBar } from 'react-native'
import {
useFonts,
Nunito_600SemiBold,
Nunito_700Bold,
Nunito_800ExtraBold
} from '@expo-google-fonts/nunito';
import AppStack from './src/routes/... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PastBorrowingsComponent } from './past-borrowings.component';
describe('PastBorrowingsComponent', () => {
let component: PastBorrowingsComponent;
let fixture: ComponentFixture<PastBorrowingsComponent>;
beforeEach(async () => {
awai... |
import React from 'react';
import stepsArray from '../utils/stepsArray';
import NavbarComponent from '../components/global/Navbar';
import QualificationsList from '../components/QualificationsList';
function MedicalCardInfo() {
return (
<section>
<NavbarComponent />
<div className='top'... |
import { Cmp831Component } from './cmp';
describe('Cmp831Component', () => {
it('should add', () => {
expect(new Cmp831Component().add831(1)).toBe(832);
});
}); |
export type RawRGB = [ number, number, number ]; |
class Queue<Type>{
_items:Array<Type>;
constructor(...items){
this.enqueue(...items)
this._items = new Array<Type>()
}
enqueue(...items){
items.forEach( item => this._items.push(item) )
return this._items;
}
dequeue(){
return this._items.shift();
}
... |
/**
* @license
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE
*/
import { type ComputedRef, computed, reactive, watch } from 'vue'
import { type VKey, callEmit } from '@idux/cdk/utils'
import { type Tabl... |
import { MigrationInterface, QueryRunner, Table, TableColumn } from 'typeorm';
const configureTable = (table: Table): Table => {
table.addColumn(
new TableColumn({
name: 'id',
type: 'uuid',
isGenerated: true,
generationStrategy: 'uuid',
default: 'uuid_generate_v4()',
}),
);
... |
import { Injectable } from '@angular/core';
import { environment } from '../../../environments/environment';
import * as moment from 'moment/moment';
@Injectable()
export class FirewoodAdminService {
/**
* Set start and end date on supplied form, if form has dateTimeRange
*/
setStartEndDate(forest, form) {
... |
export type PublishProvider = "github" | "bintray" | "generic"
export type Publish = string | Array<string> | PublishConfiguration | GithubOptions | BintrayOptions | GenericServerOptions | Array<PublishConfiguration> | Array<GithubOptions> | Array<GenericServerOptions> | Array<BintrayOptions> | null
/*
### `.build.pu... |
import { NodeSelection, Transaction } from 'prosemirror-state';
import { DateMeta, DateState } from './types';
export function reducer(pluginState: DateState, meta: DateMeta) {
// ED-5033, calendar control open for element in plugin state, when node-view is clicked.
// Following chanek ensures that if same node-vi... |
import React from 'react';
import { Dialog, DialogContent, DialogContentText, DialogTitle, Link } from '@material-ui/core';
interface IImprintProps {
open: boolean
onClose: any
}
export default function Imprint({ open, onClose }: IImprintProps) {
return (
<Dialog
open={open}
onClose={onClos... |
import { Component } from '@angular/core';
import { HttpService } from '@services/http/http.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-signout-confirm',
templateUrl: './signout-confirm.component.html'
})
export class SignoutConfirmComponent {
constructor(private httpService: ... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FillerfiveComponent } from './fillerfive.component';
describe('FillerfiveComponent', () => {
let component: FillerfiveComponent;
let fixture: ComponentFixture<FillerfiveComponent>;
beforeEach(async () => {
await TestBed.configureTe... |
import { IProps, IRigidElement } from "../element/rigid-element";
import { Patch } from "../patcher/patcher";
export interface IState
{
[index: string]: any;
}
export abstract class Component
{
//
protected props: IProps;
protected state: IState;
//
constructor(props?: IProps)
{
t... |
/**
* Copyright 2020 Bonitasoft S.A.
*
* 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... |
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'timeAgo',
})
export class TdTimeAgoPipe implements PipeTransform {
transform(time: any, reference?: any): string {
// Convert time to date object if not already
time = new Date(time);
let ref: Date = new Date(reference);
// If not... |
import { ActionSheetProvider, connectActionSheet } from '@expo/react-native-action-sheet';
import React from 'react';
import {
ActionSheetIOS,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
TouchableOpacityProps,
View,
} from 'react-native';
import ShowActionSheetButton from '../components/S... |
import React, { useState } from 'react'
import { NymCard } from '../../components'
import { ApiList } from './ApiList'
import { Layout } from '../../layouts'
export const InternalDocs = () => {
if (process.env.NODE_ENV == 'development') {
return (
<Layout>
<NymCard title="Docs" subheader="Internal ... |
/**
* Wrapper class for AWS APIGateway provider
*/
import DomainConfig = require("../DomainConfig");
import DomainInfo = require("../DomainInfo");
import Globals from "../Globals";
import {APIGateway, ApiGatewayV2} from "aws-sdk"; // tslint:disable-line
import {getAWSPagedResults, throttledCall} from "../utils";
cla... |
import { loadFromRealLs, saveToRealLs } from '../core/persistence/local-storage';
import {
LS_ACTION_BEFORE_LAST_ERROR_LOG,
LS_ACTION_LOG,
} from '../core/persistence/ls-keys.const';
const NUMBER_OF_ACTIONS_TO_SAVE = 30;
const getActionLog = (): string[] => {
const current = loadFromRealLs(LS_ACTION_LOG);
ret... |
export const signatureTemplate = `/**
* ---------------------
* 🚗🚦 Generated by vite-plugin-typed-pages. Do not modify !
* ---------------------
* */
`;
export const staticDeclImports = `
import type {
NavigationFailure,
RouteLocation,
RouteLocationNormalizedLoaded,
RouteLocationOptions,
RouteQu... |
import React, { PureComponent } from "react"
import Modal from "react-modal"
import { ShowFatalErrorModal } from "./types"
import "./FatalErrorModal.scss"
type props = {
error: string | null | undefined
showFatalErrorModal: ShowFatalErrorModal
handleClose: () => void
}
export default class FatalErrorModal exten... |
/**
* "Server" wraps the "ws" library providing JSON RPC 2.0 support on top.
* @module Server
*/
import { EventEmitter } from "eventemitter3";
import NodeWebSocket, { Server as WebSocketServer } from "ws";
interface INamespaceEvent {
[x: string]: {
sockets: Array<string>;
protected: boolean;
... |
import { NextPage } from 'next';
import { NextSeo } from 'next-seo';
import Image from 'next/image';
import NextLink from 'next/link';
import { useRouter } from 'next/router';
import React from 'react';
import { Controller, useForm } from 'react-hook-form';
import { AiFillEye, AiFillEyeInvisible } from 'react-icons/ai'... |
import throttle from 'lodash.throttle'
import * as React from 'react'
import { LayoutChangeEvent, StyleSheet, Text, TouchableOpacity, View } from 'react-native'
import Hoverable from 'src/shared/Hoverable'
import Responsive from 'src/shared/Responsive'
import Triangle, { Direction } from 'src/shared/Triangle'
import { ... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'dinivas-harbor',
templateUrl: './harbor.component.html',
styleUrls: ['./harbor.component.scss']
})
export class HarborComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
/**
* @module node-opcua-debug
*/
// tslint:disable:no-console
import { inspect } from "util";
export function dump(obj: any) {
console.log("\n", inspect(JSON.parse(JSON.stringify(obj)), { colors: true, depth: 10 }));
}
export function dumpIf(condition: boolean, obj: any) {
if (condition) {
dump(obj)... |
import listGifts from '../dia02';
test('listGifts', () => {
const carta = 'bici coche balón _playstation bici coche peluche';
const regalos = {
bici: 2,
coche: 2,
balón: 1,
peluche: 1,
};
expect(listGifts(carta)).toStrictEqual(regalos);
}); |
import { PATTERNS } from '../../config';
import React, { lazy, Suspense, useCallback, useRef, useEffect, useState } from 'react';
export function validateTags(tag) {
var re = PATTERNS.APP_LABEL_CHIP;
let regExp = new RegExp(re);
let result = regExp.test(String(tag));
return result;
}
export const TAG_... |
export default {
imageUrlSet: false,
imageUrl: '/default_img/sergeDefault.png',
title: 'Serge',
description: `You have arrived at the Development Centre Gaming Facility.\n
You will use this web-based application to interact with players from other forces, together with the umpires in the White Cell.\n
At an... |
import {
Module, MiddlewareConsumer, NestModule
} from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { CategoriesController } from './categories.controller';
import { CategoriesSchema } from './schemas/categories.schema';
import { LoggerMiddleware } from '../common/middlewares/logger.mid... |
export default {
okText: 'OK',
closeText: 'Close',
cancelText: 'Cancel',
loadingText: 'Loading...',
saveText: 'Save',
delText: 'Delete',
resetText: 'Reset',
searchText: 'Search',
queryText: 'Search',
inputText: 'Please enter',
chooseText: 'Please choose',
redo: 'Refresh',
back: 'Back',
li... |
import { Card } from "../../game/store/card/card";
import { GameError } from "../../game/game-error";
import { GameMessage } from "../../game/game-message";
import { TrainerCard } from "../../game/store/card/trainer-card";
import { TrainerType, EnergyType } from "../../game/store/card/card-types";
import { StoreLike } ... |
import chalk from 'next/dist/compiled/chalk'
import findUp from 'next/dist/compiled/find-up'
import {
promises,
existsSync,
exists as existsOrig,
readFileSync,
writeFileSync,
} from 'fs'
import { Worker } from '../lib/worker'
import { dirname, join, resolve, sep } from 'path'
import { promisify } from 'util'
... |
/**
* ResizeHandler.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
import { Arr, Option } from '@ephox/katamari';
import { ResizeWire } from '@ephox/snooker';
import... |
import Editor from '../../../../src/editor/index'
import menus from '../../../../src/config/menus'
// 按钮位置
const pos = menus.menus.indexOf('backColor')
describe('背景颜色', () => {
beforeEach(() => {
cy.visit('/examples/index.html')
cy.getByClass('text-container').children().first().as('Editable')
... |
import { x, currentOnly } from 'xatto'
import { default as jQuery } from 'jquery'
import 'admin-lte'
export function TodoList ({ xa, ...props }: any, children) {
return (
<div
{...props}
oncreate={onCreate}
tier={props}
>
{children}
</div>
)
}
function onCreate (context, det... |
import { GraphQLSchema } from 'graphql';
import { Request } from '../Interfaces';
import { Transform } from './transforms';
export default class ReplaceFieldWithFragment implements Transform {
private targetSchema;
private mapping;
constructor(targetSchema: GraphQLSchema, fragments: Array<{
field: s... |
import { Column } from "@/features/fields/types";
import { DataSource } from "@prisma/client";
import { ListTable } from "@/plugins/data-sources/abstract-sql-query-service/types";
import { runQuery } from "@/plugins/data-sources/serverHelpers";
import prisma from "@/prisma";
export type TableMetaData = {
name: strin... |
export * from './name-search-filter.pipe'; |
/*******************************************************************************
* Copyright © 2022-2023 VMware, 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
*... |
import * as React from "react";
import {
Box,
Flex,
Avatar,
HStack,
Button,
Text,
Link,
IconButton,
useDisclosure,
useColorModeValue,
Menu,
MenuButton,
MenuList,
MenuItem,
Stack,
Icon
} from "@chakra-ui/react";
import { NavLink as RouterNavLink } from "react-router-dom";
import { GiHambu... |
import { Item } from './Item';
import { outdent } from './outdent';
describe('outdent', () => {
test('empty', () => {
const input: Item[] = [];
expect(() => outdent(input, 0)).toThrow();
});
test('first line', () => {
const input: Item[] = [{ level: 0, value: 'one' }];
expect(outdent(input, 0)... |
export function pushLocation(params: any, abs = false) {
return {
type: 'PUSH_LOCATION',
params: {
path: params,
abs
}
};
}
export function goBack() {
return {
type: 'GO_BACK'
};
} |
import React, { useEffect } from "react";
import get from "lodash/get";
import { useApolloClient } from "@apollo/react-hooks";
import { i18n } from "@webiny/app/i18n";
import { useConfirmationDialog, useSnackbar } from "@webiny/app-admin";
import { useAdminPageBuilder } from "@webiny/app-page-builder/admin/hooks/useAdm... |
import { Type } from '@angular/core';
import { Observable } from 'rxjs/Observable';
export interface StoreDependency {
dependency : Type<any>;
resolve(dependencyInstance : any) : boolean | Observable<any>;
}; |
interface Point {
x: number;
y: number;
}
export interface GestureData {
start: Point;
end: Point;
gestureBack: boolean;
gestureForward: boolean;
deltaX: number;
isBack: boolean;
isForward: boolean;
timers: {
gestureBack: ReturnType<typeof setTimeout>;
gestureForward: ReturnType<typeof setT... |
declare module fgui {
class AsyncOperation {
callback: (obj: GObject) => void;
callbackObj: any;
private _itemList;
private _objectPool;
private _index;
constructor();
createObject(pkgName: string, resName: string): void;
createObjectFromURL(url: strin... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { SharedModule } from 'app/shared/shared.module';
import { PollsModule } from 'app/site/polls/polls.module';
import { AssignmentPollDetailComponent } from './components/assignment-poll-detail/assignment-poll-detail.compone... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { NgxsModule } from '@ngxs/store';
import { ColorToolState } from './states/color-tool.state';
import { Color... |
import { Component, OnInit } from '@angular/core';
declare var $: any;
@Component({
selector: 'app-landing',
templateUrl: './landing.component.html',
styleUrls: ['./landing.component.scss']
})
export class LandingComponent implements OnInit {
constructor() { }
ngOnInit() {
}
openLoginModal(){
con... |
import React from 'react';
import { Titles } from '../../../models/tags';
import style from './Title.module.css';
interface Props {
variant: Titles;
}
export const Title: React.FC<Props> = ({ children, variant }) => {
const mountProps = {
className: `${style.Title} ${style[variant]}`,
children,
};
sw... |
import { SearchOutlined } from '@ant-design/icons';
import { Button, Input, Space } from 'antd';
import React from 'react';
import style from './FilterDropdown.module.scss';
import FilterDropdownProps from './FilterDropdownProps';
export default function FilterDropdown(
props: FilterDropdownProps
): JSX.Element {
... |
import { NestFactory } from '@nestjs/core';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { AppModule } from './app.module';
import * as clc from 'cli-color';
import * as bodyParser from 'body-parser';
const log4js = require('log4js');
log4js.configure({
appenders: { cheese: { type: 'file',... |
import { dirname } from "path";
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import typescript from "rollup-plugin-typescript2";
import { terser } from "rollup-plugin-terser";
import postcss from "rollup-plugin-postcss";
import ignore from "rollup-plugin-ignore";
im... |
/*
* © 2021 Thoughtworks, Inc.
*/
/* istanbul ignore file */
import { exec as _exec } from 'child_process'
import fs from 'fs-extra'
import { promisify } from 'util'
import { prompt as _prompt, Question } from 'typed-prompts'
import { resolve as _resolve } from 'path'
import dotenv from 'dotenv'
export const exec =... |
import * as React from 'react'
import * as Kb from '../../common-adapters'
import * as Types from '../../constants/types/chat2'
import * as Styles from '../../styles'
import SelectableSmallTeam from '../selectable-small-team-container'
import SelectableBigTeamChannel from '../selectable-big-team-channel-container'
impo... |
// import { reverse } from 'dns/promises'
import { useState, useEffect } from 'react'
import { useLocation, Link } from 'react-router-dom'
import CircleIcon from '@mui/icons-material/Circle';
import RestartAltIcon from '@mui/icons-material/RestartAlt';
import HomeIcon from '@mui/icons-material/Home';
import Fade from '... |
import { TestBed } from '@angular/core/testing';
import { Ng7MatBreadcrumbService } from './ng7-mat-breadcrumb.service';
describe('Ng7MatBreadcrumbService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: Ng7MatBreadcrumbService = TestBed.inject(Ng... |
export {};
1;
(1 + 2);
null!;
undefined!;
NaN;
Infinity;
something;
const a = 1;
a;
let b: string | undefined;
b = "b";
b;
b = undefined;
b!;
const c = !b ? "foo" : undefined;
c!;
const obj = {
prop: c,
};
obj.prop!;
let d: string;
d!;
d = "foo";
d!;
let e: string | number;
e!;
e = 1;
e;
const f = c ? c : n... |
import { INode, IEdge } from "react-digraph";
interface Store {
coalitions?: CoalitionsGame;
mcNets?: McNetsGame;
graph?: GraphGame;
}
interface CoalitionsGame {
nrOfPlayes?: number;
coalitions?: number[][];
functionOfCoalitions?: number[];
shapleyValues?: number[];
}
interface McNetsGame {
nrOfPlayes?... |
import * as React from 'react';
import {colors} from '@workday/canvas-kit-react-core';
import {
focusRing,
GrowthBehavior,
useTheme,
Themeable,
EmotionCanvasTheme,
} from '@workday/canvas-kit-react-common';
import {CanvasSystemIcon} from '@workday/design-assets-types';
import {OutlineButtonVariant, ButtonColo... |
import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Router } from '@angular/router';
import { MusicItem } from '../shared/music-item.model';
import { MusicService } from '../shared/music.service';
import { ToastrService } from "ngx-toastr";
@Component({
sele... |
import { User } from './user.type';
/** A repository object from the GitHub API. This uses the exact field names returned by theGitHub API for simplicity, even though the convention for GraphQL is usually to camel case. */
export interface Repository {
name: string /** Just the name of the repository, e.g. GitHunt-AP... |
export enum EtackDepletesOn {
hit, // every hit removes a stack
timeout // stack depletes after an amount of time
}
export enum ETargeting {
singleTarget, // must select a target
groundArea, // must select a ground area to trigger this on
dropsFromSelf, // drops on current user location
... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as _stream from "stream";
import { CreateNetworkProfile } from "../model/operations/CreateNetworkProfile";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypes... |
export interface ChatMsgType {
msgTxt: string;
timeSent: number;
byUser: {
name: string;
profile_img: string;
};
} |
export * from "./bullet-item/bullet-item"
export * from "./button/button"
export * from "./checkbox/checkbox"
export * from "./form-row/form-row"
export * from "./header/header"
export * from "./icon/icon"
export * from "./screen/screen"
export * from "./switch/switch"
export * from "./text/text"
export * from "./text-... |
import type { Context } from '@actions/github/lib/context';
import type { components } from '@octokit/openapi-types';
import type { Octokit } from '@technote-space/github-action-helper/dist/types';
import type { Logger } from '@technote-space/github-action-log-helper';
import { setOutput, exportVariable, getInput } fro... |
// *** 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";
/*... |
import { Component } from "@angular/core";
import {Router} from '@angular/router';
@Component({
moduleId: module.id,
selector: 'profile-header',
templateUrl: 'profileheader.component.html',
styleUrls: []
})
export class ProfileHeader {
constructor(
private router: Router
) {
}
logout(): void {
window.s... |
import { YesOrNo } from '../../../app/case/definition';
import { TranslationFn } from '../../../app/controller/GetController';
import { FormContent } from '../../../app/form/Form';
import { isFieldFilledIn } from '../../../app/form/validation';
import { CommonContent } from '../../common/common.content';
const en = ({... |
import fs from 'fs'
import readline from 'readline'
type LineCbk = (line: string) => void
/**
* Map paths to read streams.
*/
function createStreams(paths: string[]): fs.ReadStream[] {
return paths.map(path => fs.createReadStream(path))
}
/**
* Issue a callback for each line of the given stream.
*/
function li... |
import React, { useEffect, useMemo } from 'react'
import * as H from 'history'
import { PageTitle } from '../components/PageTitle'
import { KeyboardShortcutsProps } from '../keyboardShortcuts/keyboardShortcuts'
import { Link } from '../../../shared/src/components/Link'
import { SettingsCascadeProps, Settings, isSetting... |
/*-----------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*---------------------------------------------------------------------... |
export interface Options {
commandsDir: string;
slashCommandsDir: string;
eventsDir: string;
searchPattern: string;
} |
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
import Page = require('../../../base/Page');
import Response = require('../../../http/response');
import V1 = require('../V1');
import { SerializableClass } from '../../../interfaces';
type CredentialPu... |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
import { Path } from './Path';
import { IFilter } from './filters';
export declare let DEFAULT_NUMBER_SEPARATOR: string;
export declare function isObject(param: any): boolean;
export declare function isEmpty(param: any): boolean;
export declare function isNotEmpty(param: any): boolean;
export declare function isString(... |
import Path from 'path-parser';
import {Configuration} from './utils/Configuration';
import {HTTPResponse} from './models/HTTPResponse';
import { Context, APIGatewayProxyResult, Callback } from 'aws-lambda';
import {IFunctions, IFunctionEvent} from "../@Types/Configuration";
import { HTTPRESPONSE } from './assets/Enums... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { G2MiniAreaComponent } from './mini-area.component';
const COMPONENTS = [G2MiniAreaComponent];
@NgModule({
imports: [CommonModule],
declarations: COMPONENTS,
exports: COMPONENTS,
})
export class G2MiniAreaModule {... |
import React, { createContext, useContext, useReducer } from "react"
import { CartItem } from "common/types"
const storageKey = "dscCart"
const maxKey = "dscMaxItems"
enum CartActionType {
ADD_TO_CART = "ADD_TO_CART",
REMOVE_FROM_CART = "REMOVE_FROM_CART",
EMPTY_CART = "EMPTY_CART",
GET_ITEMS_FROM_STORAGE = "... |
declare module "@salesforce/schema/FeedAttachment.FeedEntity" {
const FeedEntity:any;
export default FeedEntity;
}
declare module "@salesforce/schema/FeedAttachment.FeedEntityId" {
const FeedEntityId:any;
export default FeedEntityId;
}
declare module "@salesforce/schema/FeedAttachment.Id" {
const Id:any;
ex... |
import React from 'react';
import { SVGIconProps } from '../createIcon';
export declare const CcMastercardIconConfig: {
name: 'CcMastercardIcon',
height: 512,
width: 576,
yOffset: 0,
xOffset: 0,
transform: ''
};
export declare const CcMastercardIcon: React.ComponentClass<SVGIconProps>;
export default CcMast... |
import { AnimationMixer, Object3D } from 'three'
import { LoadGLTF } from '../../assets/functions/LoadGLTF'
import { AnimationManager } from '../../avatar/AnimationManager'
import cloneObject3D from '../../scene/functions/cloneObject3D'
export default class Model extends Object3D {
model: any
_src: any
_castShado... |
import { StackScreenProps } from "@react-navigation/stack"
import { ArtworkFilterNavigationStack } from "lib/Components/ArtworkFilter"
import { AggregateOption, FilterParamName } from "lib/Components/ArtworkFilter/ArtworkFilterHelpers"
import { ArtworksFiltersStore, useSelectedOptionsDisplay } from "lib/Components/Artw... |
/* eslint-disable react/destructuring-assignment */
/* eslint-disable @typescript-eslint/no-useless-constructor */
/* eslint-disable prettier/prettier */
/* eslint-disable react/prefer-stateless-function */
import React from 'react'
import { NavLink } from 'react-router-dom'
import './gamebutton.css'
interface Gamebut... |
import create from "zustand";
import produce from "immer";
interface PlayerInfo {
played: number;
playedSeconds: number;
loaded: number;
loadedSeconds: number;
};
interface Store {
state: {
playerInfo: PlayerInfo;
video: string;
playing: boolean;
users: number;
... |
import { AxisConfig, AxisPosition, AxisType } from "./typings";
const generalAxisConfig = (type: AxisType) => ({
type,
fontSize: 11,
hideAxis: false,
tickLength: 5,
titleFontSize: 12,
showTicks: true,
showLabels: true,
showRules: type === "quant",
outerPadding: 3,
rotateLabels: false,
margin: 0,
... |
import {
CallHandler,
ExecutionContext,
Injectable,
NestInterceptor
} from "@nestjs/common";
import { Observable } from "rxjs";
import { tap } from "rxjs/operators";
@Injectable()
export class LoggingInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHandler): Observable<... |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class IoAndroidArrowDown extends React.Component<IconBaseProps, any> { } |
import { RedisSubscription } from "./pubsub.ts";
import { RedisPipeline } from "./pipeline.ts";
export type Raw = Status | Integer | Bulk | ConditionalArray;
export type Status = string;
export type Integer = number;
export type Bulk = string | undefined;
export type BulkString = string;
export type BulkNil = undefine... |
import { IconDefinition } from '../types';
export declare const ExclamationCircleFill: IconDefinition; |
import { useState } from "react";
import AppTitle from "../common/components/appTitle/appTitle";
import { Account } from "../common/stores/account/types/accountType";
import { useProfile } from "../common/stores/profile/queries/useProfile";
import { checkIfParent } from "../common/stores/profile/types/profileType";
imp... |
import { AboutRoutes, default as MainRoutes } from '@lib/routes';
import {
Divider,
Drawer,
List,
ListItem,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
WithStyles,
} from '@material-ui/core';
import { MenuDrawerProps, MenuDrawerSection } from '@assets/declarations';
import React, { Fragment } f... |
import * as React from "react"
type SubTitleProps = {
title: string
}
export const SubTitle: React.FC<SubTitleProps> = ({ title }) => {
return (
<h2 className="text-center pc:text-4xl sp:text-2xl font-bold">{title}</h2>
)
} |
export * from "./inventory-items.module"; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.