text stringlengths 10 953k |
|---|
import { number } from '../../..'
export const Struct = number()
export const data = 'invalid'
export const error = {
value: 'invalid',
type: 'number',
path: [],
branch: [data],
} |
// *** 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 * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
import React from 'react';
import { useParams } from 'react-router-dom';
import { DataModelling } from 'app-shared/features';
import { connect } from 'react-redux';
import { DataModelsMetadataActions } from 'app-shared/features/dataModelling/sagas/metadata';
import { createStyles, Grid, withStyles } from '@material-ui/... |
/// <reference types="snapsvg" />
import { Rect } from "../../Core/Rect";
import { RegionData } from "../../Core/RegionData";
import { IRegionCallbacks } from "../../Interface/IRegionCallbacks";
import { DragComponent } from "../Component/DragComponent";
export declare class DragElement extends DragComponent {
cons... |
import { User } from './user';
export class Instructor extends User {
id: number;
instructorClassificationId: number;
} |
import { number, withKnobs } from '@storybook/addon-knobs'
import React from 'react'
import { storiesOf } from '@storybook/react'
import { Flex } from 'rt-components'
import { Story } from 'rt-storybook'
import AdaptiveLoader from './AdaptiveLoader'
const AdaptiveLoaderStory: React.FC = ({ children }) => (
<Story... |
import ProjectInfo from "./projectInfo";
export default interface TeamMemberInfo {
/**
* TFS Identification
*/
id: string;
/**
* Member display name
*/
displayName: string;
/**
* Unique name
*/
uniqueName: string;
/**
* Image URL
*/
imageUrl: string;
/**
* Profile URL
*/
profileUrl: s... |
import { equality, Equatable, inequality } from "./equatable";
import { NovaFlags } from "../../shared";
class Wrap implements Equatable {
readonly [NovaFlags.EQUATABLE] = true;
value: number;
constructor(value: number) {
this.value = value;
}
equality(rhs: this): boolean {
return this.value === r... |
/* eslint-disable jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions */
/* eslint-disable max-len */
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import MonthFoundation, { MonthAdapter, MonthDayInfo, MonthFoundationProps, MonthFou... |
import { EventEmitter } from 'events';
import { Http } from './libs';
import { WindowService, IpcService } from './services';
import { Context } from './types';
export class Application extends EventEmitter {
// app公用状态
public readonly context = new Context();
// app公用逻辑模块
public readonly windowService = new ... |
import { Document, model, PaginateModel, SchemaTypes } from 'mongoose';
import * as mongoosePaginate from 'mongoose-paginate';
import { IModelOptions } from './IModelOptions';
/**
* Creating a Ycs model
* @param options {IModelOptions} Model options
*/
export function db(options: IModelOptions): PaginateModel<Docum... |
import { useCurrentTime } from "store/time";
export interface ZoneProps {
tz: string;
}
export function Zone({ tz }: ZoneProps) {
return (
<div className="py-8 space-y-2 md:space-y-4">
<div className="text-lg text-neutral-500 md:text-2xl">Time in {tz}</div>
<p className="text-2xl font-bold md:text... |
// Octopus REST API v2021.2.1387
import { DeleteMachinesBehavior } from "./delete-machines-behavior";
/**
*
* @export
* @interface MachineCleanupPolicy
*/
export interface MachineCleanupPolicy {
/**
*
* @type {DeleteMachinesBehavior}
* @memberof MachineCleanupPolicy
*/
DeleteMachinesBehavior?: Del... |
export * from './implemented/students' |
import React, { ReactElement } from 'react';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import PlatformIcon, { PlatformIconTypes } from '../../Icon/PlatformIcon';
import Icon from '../../Icon/Icon';
interface Props {}
const Wrapper = styled.ul`
display: flex;
flex-direction:... |
// Constants which are used in the test specs
// Requests
export const DELETE = 'DELETE';
export const POST = 'POST';
export const GET = 'GET';
export const PUT = 'PUT';
export const PATCH = 'PATCH';
export const BASE_API = 'api/';
export const EXERCISE_BASE = BASE_API + 'exercises/';
// Authentication
export const a... |
import { Router } from 'express';
import { getCustomRepository } from 'typeorm';
import multer from 'multer';
import uploadConfig from '../config/upload';
import TransactionsRepository from '../repositories/TransactionsRepository';
import CreateTransactionService from '../services/CreateTransactionService';
import Dele... |
import { mainUniversal } from './Universal/mainUniversal';
import { errorMapper } from './modules/errorMapper'
import "./modules/超级移动优化"
// import "./modules/strategy_marketPrice"
if (Game.flags.GlennGould){
console.log(Game.time, 'GlennGould new push')
let rooms: string[] = ['W9N11']
for (let idx in rooms... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------------------------... |
import * as React from 'react';
import { Transition } from 'react-transition-group';
export type fn = () => void;
export interface BaseTransition {
/** Whether we are in a transition. */
in?: boolean;
/** Function to be called once transition finishes. */
onExited?: fn;
}
// ==========================... |
import axios from 'axios'
const basePath = 'http://localhost:1337/'
const cardsPath = basePath + 'cards'
const collectionPath = basePath + 'collection'
const decksPath = basePath + 'decks'
const getCards = async (page: number, limit: number) => {
const { data } = await axios.get(cardsPath + '?page=' + page + '&li... |
import { context, event } from 'ecstar';
export default event(() => ({
name: 'messageCreate',
run({ client }, [message]) {
if (message.author.bot) return;
if (
!message.content.startsWith(client.options.prefix) &&
!message.content.startsWith(`<@!${client.user?.id}>`)
)
return;
c... |
import {
Add,
And,
bool,
Code,
createEntityData,
DestroyParticleEffect,
Draw,
EntityInfo,
EntityMemory,
Equal,
GreaterOr,
HasParticleEffect,
If,
Lerp,
Max,
Min,
MoveParticleEffect,
Multiply,
Not,
NotEqual,
Or,
ParticleEffect,
Po... |
import * as Framework from '../../framework';
import * as ApplicationServices from '../../applicationservices';
import {CreateTableCommand} from './createTableCommand';
export class CreateTableCommandValidator extends ApplicationServices.CommandValidator{
constructor(){
super("... |
export declare class InvitationIdDto {
invitationId?: string;
} |
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'kirjs-rule3',
templateUrl: './rule3.component.html',
styleUrls: ['./rule3.component.css']
})
export class Rule3Component implements OnInit {
after: Array<Array<string | number>>;
before: Array<Array<string | number>>;
@Input... |
/**
* @preserve jquery-param (c) 2015 KNOWLEDGECODE | MIT
*/
import { ExploreUrlState } from '../types/explore';
/**
* Type to represent the value of a single query variable.
*
* @public
*/
export type UrlQueryValue = string | number | boolean | string[] | number[] | boolean[] | undefined | null;
/**
* Type t... |
import React, { ComponentType } from 'react';
import _ from 'lodash';
import { connect } from 'react-redux';
import {
compose,
pure,
setDisplayName,
withState,
} from 'recompose';
import { theme } from '@ncigdc/theme/index';
import { Row, Column } from '@ncigdc/uikit/Flex';
import Button from '@ncigdc/uikit/But... |
import { Box, Text } from 'ink';
import React from 'react';
import { useVersionCheck } from '../../hooks/useVersionCheck';
import { Code } from '../common/Code';
import { Info } from '../common/Info';
export function UpdateNotice() {
return (
<Box flexDirection="column">
<Info text="New Version" />
<... |
// https://dev.to/kryz/write-a-small-api-using-deno-1cl0
// DINOSAUR: https://dev.to/nickolasbenakis/create-a-simple-rest-api-with-deno-and-oak-framework-2fna
// CORS: https://github.com/tajpouria/cors
// DOCKER https://blog.logrocket.com/how-to-deploy-deno-applications-to-production/
// POGO https://github.com/shollad... |
export = async (req, res, scope) => {
req.session = {
user: 1
};
res.vRender({ username: "VIG" }, "h2");
}; |
<TS language="eu_ES" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klikatu eskuinean helbidea edo etiketa aldatzeko</translation>
</message>
<message>
<source>Create a new address</source>
... |
export enum ContributionRelationship {
SELF = 'Self',
SPOUSE = 'Spouse',
CHILD = 'Child',
DOMESTIC_PARTNER = 'Domestic Partner'
} |
import Vue from 'vue';
import { Service } from './Service';
import { Config } from '../../Config';
import { Guard as GuardHandler } from './ErrorHandler/Guard';
import { Guard } from '../Guard';
import { StateMachine } from './StateMachine';
impo... |
import { useEffect } from 'react';
function useListener(eventName: keyof WindowEventMap, listener: () => any, dep: any[] = []) {
useEffect(() => {
listener();
window.addEventListener(eventName, listener, true);
return () => {
window.removeEventListener(eventName, listener, true);
}
}, dep);
}... |
<TS language="cs_CZ" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Pravým klikem editujte adresu nebo popisek</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
import { PlayerIdWithPriority } from "server/typings/user.typings";
export const getRemovedPlayer = (
playersWithTooHighPriority: readonly PlayerIdWithPriority[]
): PlayerIdWithPriority => {
const randomIndex = Math.floor(
Math.random() * playersWithTooHighPriority.length
);
const removedPlayer = playersWi... |
import * as util from '../lib/util.js';
import * as Discord from 'discord.js';
Discord; // fuck you ts
export function addCommands(cs, bot: Discord.Client) {
cs.addCommand('moderating', new cs.SimpleCommand('ban', (msg) => {
const params = util.getParams(msg);
const banMember = msg.guild.members.get(util.parseUs... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LinearChartComponent } from './linear-chart.component';
describe('LinearChartComponent', () => {
let component: LinearChartComponent;
let fixture: ComponentFixture<LinearChartComponent>;
beforeEach(async(() => {
TestBed.conf... |
import './polyfills';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import {enableProdMode} from '@angular/core';
enableProdMode();
platformBrowserDynamic().bootstrapModule(AppModule); |
import {Component, Input, Output, EventEmitter} from "angular2/core";
import {BaseControl} from "../../models/ui";
import guidHelper from "../../helpers/guidHelper";
import {FormInput} from "./input";
import {ItemStatus, InputValueType} from "../../enum";
@Component({
selector: "form-currency",
template: "<form... |
export * from './amcharts';
export * from './formatted';
export * from './gcharts';
export * from './plotly'; |
export default `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g opacity="0.8">
<path d="M11.2237 13.805C11.4794 15.6396 11.5923 16.7828 11.5624 17.2854C11.5159 18.0655 10.9931 18.8865 10.0279 19.7822C9.75347 20.0369 9.30689 19.9108 9.20619 19.5502L7.87106 14.7706L7.271... |
import React, { PureComponent } from 'react';
import EditContext from './context';
import { IColProps } from '../Table';
import { Form } from 'antd';
import { COMMON_FILELDS} from '../data/fields';
const FILELDS = COMMON_FILELDS;
class EditCell extends PureComponent<IColProps> {
form: any = undefined;
firstRending ... |
import { ExpressPeerServer } from 'peer';
import http from 'http';
import express from 'express';
export function InitializePeerServer(server: http.Server, app: express.Application) {
const peerServer = ExpressPeerServer(server, {
path: '/'
});
peerServer.on('connection', (client) => {
con... |
import NewsController from './News.controller';
import NewsService from './News.service';
export { NewsController, NewsService }; |
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace chat_v1... |
import fs from 'fs';
import path from 'path';
import {topicMatcher} from '@mashroom/mashroom-utils/lib/messaging_utils';
import type {MashroomLogger, MashroomLoggerFactory} from '@mashroom/mashroom/type-definitions';
import type {MashroomSecurityRoles, MashroomSecurityUser} from '@mashroom/mashroom-security/type-defin... |
import fs from 'fs-extra'
import { getDynamicExecutable, isStatic } from '../../src/software/executable'
jest.mock('fs-extra')
describe('Executable Unit Tests', () => {
describe('isStatic', () => {
it('object with command is static', () => {
expect(
isStatic({
command: 'hello',
... |
import Datastore from 'nedb';
import path from 'path';
const os = require('os');
export enum Storage {
Checkbook,
CheckbookAccounts,
PayrollStatements
}
const getFilePath = (storage : Storage) => {
const home = os.homedir();
switch (storage) {
case Storage.CheckbookAccounts:
return path.join(home,... |
import { getCryptoLib } from './cryptoUtils'
export interface Hmac {
digest(key: Buffer, data: Buffer): Promise<Buffer>;
}
type NodeCryptoCreateHmac = typeof import('crypto').createHmac
export class NodeCryptoHmacSha256 implements Hmac {
createHmac: NodeCryptoCreateHmac
constructor(createHmac: NodeCryptoCreat... |
import React from 'react';
import { Box, Button, SimpleGrid, Text, Link, Heading } from '@chakra-ui/react';
import { Link as RRDLink } from 'react-router-dom';
import { faGithub, faSlack } from '@fortawesome/free-brands-svg-icons';
import {
faCommentAlt,
faPencilAlt,
faSearch,
} from '@fortawesome/free-solid-svg-... |
/*
* 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 React from 'react';
import {
EuiLoadingSpinner,
EuiFlexGroup,
Eu... |
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
version https://git-lfs.github.com/spec/v1
oid sha256:a7e7be59c0c04e38b982341c85882bd0c1c9061733004a457c6d65adf45c1a65
size 1504188 |
import React, { useState, useEffect } from 'react';
import { Feather as Icon } from '@expo/vector-icons';
import { StyleSheet, Text, View, TouchableOpacity, ScrollView, Image, SafeAreaView, Alert } from 'react-native';
import { useNavigation, useRoute } from '@react-navigation/native';
import MapView, { Marker } from '... |
import React, { useState, useEffect } from 'react';
import SEO from 'src/components/seo';
import Digit from './Digit';
import Separator from './Separator';
import style from './style.module.scss';
const getTimeDifference = (target: Date) => target.getTime() - Date.now();
const getDigits = (diff: number) => {
const ... |
import { InternalError } from "../error"
class Emojis {
private constructor(){}
static A = '🇦'
static B = '🇧'
static C = '🇨'
static D = '🇩'
static E = '🇪'
static I = '🇮'
static P = '🇵'
static Z = '🇿'
static zero = '0️⃣'
static one = '1️⃣'
static two = '2️⃣'
static three = '3️⃣'
static four... |
import { NextPage } from 'next';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import Link from '@material-ui/core/Link';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@... |
import { expose } from 'threads/worker';
import { CommonDecrypt } from '@/decrypt/common';
expose(CommonDecrypt); |
export interface Column {
headerText: string;
dataField: string;
sortable?: boolean;
sort?: any;
template?: boolean;
} |
import {IClone, IOptions} from '@jscpd/core';
import {IReporter} from '..';
import {generateLine} from '../utils/reports';
import {cloneFound} from '../utils/clone-found';
import {grey} from 'colors/safe';
const Table = require('cli-table3');
const TABLE_OPTIONS = {
chars: {
top: '',
'top-mid': '',
'top-left':... |
import * as React from 'react';
export const SvgFileDocumentOutline = (
props: React.SVGProps<SVGSVGElement>
) => (
<svg fill='none'
height='1em'
viewBox='0 0 16 20'
width='1em'
{...props}>
<path
d='M2 0a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V6l-6-6H2zm0 2h7v5h5v11H2V2zm2 8v2h8v-2H4zm0... |
declare module 'react-navigation';
declare module 'react-native-datawedge-intents';
declare module 'native-base';
declare module 'mock-async-storage';
declare module 'react-native-config';
declare module 'react-native-search-filter';
declare module 'react-native-fullwidth-image';
declare module 'react-navigation-materi... |
/*
The content of index.io.js could be something like
'use strict';
import { AppRegistry } from 'react-native'
import Welcome from './gen/Welcome'
AppRegistry.registerComponent('MopNative', () => Welcome);
For a list of complete Typescript examples: check https://github.com/bgrieder/RNTSExplorer
... |
import { Body, Controller, Get, Ip, Param, Patch, Post, Query } from '@nestjs/common';
import { PostingService } from './posting.service';
import { Posting } from '../entities/posting.entity';
import { randomQuestion } from '../entities/randomQuestion.entity'
import { Repository } from 'typeorm';
import { InjectReposit... |
import * as React from "react";
import Form, {FormValue} from "./form";
import {Fragment, useState} from "react";
import Validator from "./validator";
const FormExample = () => {
const [formData, setFormData] = useState<FormValue>({
name: '123',
password: ''
});
const [errors, setErrors] = useState({});
... |
import React from 'react'
import Grid from '@mui/material/Grid'
import makeStyles from '@mui/styles/makeStyles'
import { ObjectFieldTemplateProps, utils } from '@rjsf/core'
import AddButton from '../AddButton/AddButton'
const { canExpand } = utils
const useStyles = makeStyles({
root: {
marginTop: 10,
},
})... |
import type { StreamResponseData } from '../types';
import { writable } from 'svelte/store';
export const ETHTickers = writable<StreamResponseData[]>([]);
export const ETHRouter = (data: StreamResponseData) => {
ETHTickers.update((array) => [...array, data]);
}; |
export type TypedKey<T> = string & { __type: T }
export type ExtractType<T> = T extends TypedKey<infer U>
? U
: T extends string
? any
: never
export class Context {
public static background = new Context()
public static todo = new Context()
private constructor(
private readonly parent?: Context,
... |
import {EntryObject} from 'webpack';
import {AppEntry} from '@reskript/build-utils';
import {EntryConfig} from '../interface.js';
export const convertToWebpackEntry = ({file, config}: AppEntry<EntryConfig>): EntryObject[string] => {
if (config.entry) {
return {
import: file,
...conf... |
import {Structure as _Structure_} from '@aws-sdk/types';
export const AddTagsToStreamOutput: _Structure_ = {
type: 'structure',
required: [],
members: {},
}; |
import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../views/Main.vue'
import Home from '../views/Home.vue'
import Item from '../views/Item.vue'
import Vote from '../views/Vote.vue'
import About from '../views/About.vue'
import Login from '../views/Login.vue';
import Ques from '../views/Ques.vue'... |
import path from 'path'
import { encode } from 'blurhash'
import type { JSONSchema7 } from 'json-schema'
import { getOptions, interpolateName } from 'loader-utils'
import { validate } from 'schema-utils'
import sharp from 'sharp'
import { loader } from 'webpack'
import schema from './schema.json'
import type { Loader... |
import { ModuleWithProviders } from '@angular/core';
import { RouterModule } from '@angular/router';
import { AuthGuard } from '../auth.guard';
import { HomeComponent } from './home/home.component';
import { RootComponent } from './root/root.component';
import { SettingsComponent } from './settings/settings.component';... |
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { TimeUnit } from "../defs/TimeUnit";
import * as $type from "../utils/Type";
/**
* Maps time period names to their numeri... |
import classNames from 'classnames'
import * as H from 'history'
import * as React from 'react'
import { useRedesignToggle } from '@sourcegraph/shared/src/util/useRedesignToggle'
import { ConnectionNodesSummary } from './ConnectionNodesSummary'
import { Connection } from './ConnectionType'
import { hasID } from './ut... |
import { Component, OnInit } from '@angular/core';
import { CompetenceService } from '../../../services/competence.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { CompetenceEditComponent } from '../competence-edit/competence-edit.component';
import { Competence } from '../../../models/competen... |
var SEVERITY = {
DEBUG: 0,
INFO: 1,
WARN: 2,
ERROR: 3,
FATAL: 4
}
function createTestZip(): JSZip {
var zip = new JSZip();
zip.file("test.txt", "test string");
zip.file("test", null, { dir: true });
zip.file("test/test.txt", "test string");
return zip
}
function filterWithFileAsync(zip: JSZip, as: Serializa... |
/**
* @group unit/actor
*/
import { CType, Identity } from '@kiltprotocol/core'
import type { IClaim, ICType } from '@kiltprotocol/types'
import { mockChainQueryReturn } from '@kiltprotocol/chain-helpers/lib/blockchainApiConnection/__mocks__/BlockchainQuery'
import Message from '@kiltprotocol/messaging'
import { Att... |
import React from 'react';
import { render, waitFor } from '@testing-library/react';
import DatePicker from 'react-datepicker';
import { DatetimeInput } from './DatetimeInput';
describe('DatetimeInput', () => {
// Renders Without Error
it('matches snapshot', () => {
const { asFragment } = render(<DatetimeInp... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'angular-address-form';
} |
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {
CREDITS_SCREEN,
HOME_SCREEN,
QUOTES_SCREEN,
TABS_ROUTE,
} from '../globals/constants';
import {Credits, Home, Quotes} from '../screens';
import mod... |
import getUnbondedTransferRoots from 'src/theGraph/getUnbondedTransferRoots'
import { actionHandler, parseString, root } from './shared'
root
.command('unbonded-transfer-roots')
.description('Get unbonded transfer roots')
.option('--source-chain <slug>', 'Source chain', parseString)
.option('--destination-chai... |
import { ConfigService } from '@nestjs/config';
import { common } from '~blockml/barrels/common';
import { constants } from '~blockml/barrels/constants';
import { enums } from '~blockml/barrels/enums';
import { helper } from '~blockml/barrels/helper';
import { interfaces } from '~blockml/barrels/interfaces';
import { B... |
/**
* @module dynamo-easy
*/
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
import { promiseTap } from '../helper/promise-tap.function'
import { createLogger, Logger } from '../logger/logger'
import { ModelConstructor } from '../model/model-constructor'
import { DynamoApiOperations } from './dynamo-api-operatio... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
} from 'ethers'
import {
Contract,
ContractTransaction,
Overrides,
PayableOverrides,
CallOverrides,
} from '@ethersproject... |
import {
ActionConfig,
LovelaceCard,
LovelaceCardConfig,
LovelaceCardEditor
} from "custom-card-helpers";
import { HassEntity } from "home-assistant-js-websocket";
declare global {
interface HTMLElementTagNameMap {
"fan-card-editor": LovelaceCardEditor;
"hui-error-card": LovelaceCard;
}
}
// TODO ... |
export const environment = {
production: true,
GoogleClientId: "27416902506-r7o9rfmcma3m6gnuck7q5vf1939o3003.apps.googleusercontent.com",
FacebookClientId: "2205593199670245",
ResourceServer: "https://api.jpproject.net/",
AuthorityUri: "https://sso.jpproject.net",
RequireHttps: true,
Uri: "https://user.j... |
import React, { useEffect, useState } from "react";
import { AnimatePresence, AnimateSharedLayout, motion } from "framer-motion";
export class Node {
static ID = 0;
id: number;
constructor(
public key: string,
public value?: string,
public options: { type: "Set" | "Map" } = { type: "Map" }
) {
... |
import { AppAction } from '../store';
interface FormState {
formData: Array<any>;
}
const initialState: FormState = {
formData: [],
};
export default function formReducer(state = initialState, action: AppAction) {
switch (action.type) {
case 'FETCH_FORM':
return {
...state,
formData: ... |
/*
* spurtcommerce community API
* version 1.0
* Copyright (c) 2019 piccosoft ltd
* Author piccosoft ltd <support@piccosoft.com>
* Licensed under the MIT license.
*/
import {BeforeInsert, BeforeUpdate, Column, Entity, OneToMany} from 'typeorm';
import {PrimaryGeneratedColumn} from 'typeorm/index';
import {BaseMo... |
import { isUserType } from 'front-end/lib/access-control';
import router from 'front-end/lib/app/router';
import { SharedState } from 'front-end/lib/app/types';
import { PageInit, replaceRoute } from 'front-end/lib/framework';
import * as PageRequestForInformationView from 'front-end/lib/pages/request-for-information/v... |
import {
CUSTOM_EXTENSION_ENV,
UserSettings,
} from 'n8n-core';
import {
ICredentialType,
INodeType,
INodeTypeData,
} from 'n8n-workflow';
import * as config from '../config';
import {
access as fsAccess,
readdir as fsReaddir,
readFile as fsReadFile,
stat as fsStat,
} from 'fs';
import * as glob from 'glob-p... |
export interface Bill {
amount: string,
bill: string,
cles_user: string,
description: string,
ref_client: string
} |
"use strict";
const util = require("handlebars-utils");
import {helpers as object} from "./object";
import {helpers as array} from "./array";
const forEach = array.forEach;
const forOwn = object.forOwn;
export const helpers: any = {};
/**
* Inline, subexpression, or block helper that returns true (or the block)
* ... |
import { EmbeddedViewRef, EventEmitter } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GoIconModule } from '../go-icon/go-icon.module';
import { GoHeaderBarComponent } from './go-header-bar.component';
import { GoHeaderBarItem } from './go-header-bar.interface'... |
const sum = (numbers: number[]) => {
console.log(`sum, numbers.length: ${numbers.length}`);
return numbers.reduce((acc, number) => acc + number, 0);
};
export default sum; |
import { Link } from 'remix'
export default function Index() {
return (
<div style={{ fontFamily: "system-ui, sans-serif", lineHeight: "1.4" }}>
<h1>Welcome to Remix</h1>
</div>
);
} |
import { app } from "@arkecosystem/core-container";
import { Database, EventEmitter, State, TransactionPool } from "@arkecosystem/core-interfaces";
import { roundCalculator } from "@arkecosystem/core-utils";
import { Interfaces, Utils } from "@arkecosystem/crypto";
import { Interfaces as StakeInterfaces } from "@nospl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.