text stringlengths 10 953k |
|---|
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { action, computed, makeObservable, observable, reaction, runInAction } from "mobx"
import { AppState, ConnectionStatistics, ConnectionStatus,... |
// node parameter should be root of the fiber node tree, can be grapped with startNode from below
// const startNode = document.getElementById('root')._reactRootContainer._internalRoot.current;
type node = {
tag: number;
key: any;
elementType: string;
child: any;
sibling: any;
actualDuration: number;
tre... |
import { Handler } from "express";
import { createProxyMiddleware } from "http-proxy-middleware";
const hasuraProxy: Handler = createProxyMiddleware({
target: process.env.HASURA_URL,
changeOrigin: true,
// ws: true,
pathRewrite: { "^/graphql": "/v1/graphql" },
// onProxyReq: function (proxyReq, req, res) {
... |
/** @jsx jsx */
import { jsx } from 'theme-ui';
import React from 'react';
import { graphql, Link } from 'gatsby';
import Layout, {
CommonFooterContent,
containerStyles,
} from '../components/Layout';
import SEO from '../components/Seo';
const CvTemplate = ({
data, // this prop will be injected by the GraphQL qu... |
import { Component, Inject, ViewEncapsulation } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
export interface NodeDialogData {
ip: string;
seconds: number;
}
@Component({
selector: 'app-network-ban-node',
templateUrl: 'network-ban-node.comp... |
import { Schema, type, MapSchema } from "@colyseus/schema";
import { State } from "./State"
import { Point } from "./Point"
var itemCount = 0;
export class BaseItem extends Schema {
@type("number")
id = (itemCount+=1);
@type("number")
index = 0;
@type("number")
x = 0;
@type("n... |
import { Component, OnInit } from '@angular/core';
import {AddpostService} from '../../services/addpost.service.client';
import {Router} from '@angular/router';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implements On... |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { CartList } from '../models/view/cart-list.model';
import { AuthenticationUtility } from '../utils/authentication.util';
@Injectable()
export class CartService {
constructor(p... |
import { Injectable } from "@angular/core";
import { BehaviorSubject, Subject } from "rxjs";
import { PanelWidgetModel } from "../panel-widget/model";
import { VesselWidgetModel, VesselStatusCollectionModel } from "./model";
@Injectable({
providedIn: "root",
})
export class PanelSeniorVesselEditService {
/**
... |
// Copyright 2020 The Kubermatic Kubernetes Platform contributors.
// 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 app... |
import { UserEntity } from '@open-gtd/api'
import { Icon, Layout, Menu } from 'antd'
import * as React from 'react'
import { connect } from 'react-redux'
import {
Redirect,
Route,
RouteComponentProps,
Switch,
withRouter
} from 'react-router'
import { Link } from 'react-router-dom'
import { AppState, DispatchP... |
import puppeteer from "puppeteer";
import { snChapterScraper } from "../src";
const testsArray: {
output: string;
url: string;
}[] = [
{
output: "第1章 牢狱之灾",
url: "https://www.69shu.com/txt/31477/22493555",
},
{
output: "完本感言",
url: "https://www.69shu.com/txt/31477/26126399",
},
{
outp... |
version https://git-lfs.github.com/spec/v1
oid sha256:83a99c320a1ab441ad480cf533b70fe350a0189e2091d8eb1095e4af8bdcfa48
size 621528 |
export interface EntityBase {
id: string;
createdAt?: Date;
modifiedAt?: Date;
} |
import {
ApplicationCommand,
ApplicationCommandData,
Client,
CommandInteraction,
GuildApplicationCommandPermissionData
} from 'discord.js';
import Command from './command';
import CorrectCommand from '../commands/correction';
import SuggestCommand from '../commands/suggest';
import StatsCommand from '../comm... |
import {
Component,
Input,
ElementRef,
ViewChild,
AfterViewInit,
ChangeDetectionStrategy,
Output,
EventEmitter,
ViewEncapsulation,
ContentChild,
TemplateRef
} from '@angular/core';
import { scaleLinear } from 'd3-scale';
import { BaseChartComponent } from '../common/base-chart.component';
import ... |
import * as path from 'path';
import * as vscode from 'vscode';
import { getNonce } from './util';
export class TrxEditorProvider implements vscode.CustomTextEditorProvider {
public static register(context: vscode.ExtensionContext): vscode.Disposable {
const provider = new TrxEditorProvider(context);
... |
/// <reference lib="dom" />
export default class Frustum {
constructor(data: any);
vertices: {
near: any[];
far: any[];
};
setFromProjectionMatrix(projectionMatrix: any, maxFar: any): {
near: any[];
far: any[];
};
split(breaks: any, target: any): void;
toSpace(cameraMatrix: any, target: an... |
const commonRoot = '//ras-backstage-service-ci.apps.devtest.onsclofo.uk/backstage-api/v1/';
export const environment = {
production: false,
endpoints: {
authentication: commonRoot,
collectionExercise: commonRoot + 'collection-exercise-service/',
collectionInstrument... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Copyright 2019-2020 @Premiurly/polkassembly authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
export default `
signup(
email: String
password: String!
username: String!
): LoginRespo... |
import path from 'path';
import { TransformOptions } from '@babel/core';
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
import type { Configuration } from 'webpack';
import { logger } from '@storybook/node-logger';
import type { Options } from '@storybook/core-common';
export async func... |
/*
* 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 { schema } from '@kbn/config-schema';
import { analysisConfigSchema, a... |
export * from './layout-grid.module';
export * from './layout-grid.component';
export * from './layout-grid-span.directive'; |
import { EngineConfigurationState } from './engine-configuration-store/engine-configuration.state';
import { ClassificationState } from './classification-store/classification.state';
import { WorkbasketState } from './workbasket-store/workbasket.state';
import { AccessItemsManagementState } from './access-items-managem... |
import { Injectable } from '@angular/core';
import { Http, Headers } from '@angular/http';
import 'rxjs/add/operator/map';
@Injectable()
export class SpotifyService {
private searchUrl: string;
private artistUrl: string;
private albumsUrl: string;
private albumUrl: string;
constructor(private _... |
import { DatabaseMigrationService } from "../DatabaseMigrationService";
import { DatabaseMigrationServiceClient } from "../DatabaseMigrationServiceClient";
import {
DescribePendingMaintenanceActionsCommand,
DescribePendingMaintenanceActionsCommandInput,
DescribePendingMaintenanceActionsCommandOutput,
} from "../c... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GSave</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3... |
/*
* This file is part of ORY Editor.
*
* ORY Editor is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ORY Editor is d... |
import { forwardRef } from 'react'
import cx from 'clsx'
import { createStyle, getThemeCSSObject } from '../../styles'
import type { ChromatinIcon } from '../types'
const useStyles = createStyle((theme) => ({
root: (props: ChromatinIcon) => ({
height: props.height ?? '100%',
width: props.width ?? ... |
import {
EventBridgeClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../EventBridgeClient";
import { CreateEventBusRequest, CreateEventBusResponse } from "../models/index";
import {
deserializeAws_json1_1CreateEventBusCommand,
serializeAws_json1_1CreateEventBusCommand
} from "../protocols/A... |
// *** 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 * as React from "react";
import * as ReactDOM from "react-dom";
import FeatureViewer from './FeatureViewer';
import * as pyc from "pycollections";
import D3SVGParallelLinesGraph from '../components/D3SVGForceParallelLines';
export interface MEEvidenceGraphProps { data: any}
export interface MEEvidenceGraphSt... |
import { IExportOptions } from './helper';
/**
* Get data from all collections
* Suggestion from jcummings2 and leningsv
* @param {Array<string>} collectionNameArray
*/
export declare const getAllCollections: <T>(collectionNameArray: string[], options?: IExportOptions) => Promise<T>;
/**
* Backup data from a speci... |
// Type definitions for simpl-schema 0.2
// Project: https://github.com/aldeed/simple-schema-js, https://github.com/aldeed/node-simple-schema
// Definitions by: Andreas Richter <https://github.com/arichter83>
// Qkramer <https://github.com/Qkramer>
// Deskoh <https://github.com/deskoh>
/... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { runTests } from "./deps.ts";
import "./test/join.ts";
import "./test/order.ts";
import "./test/query.ts";
import "./test/util.ts";
import "./test/where.ts";
runTests(); |
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { MainContainer, DataContainer } from './shared';
import { StatusTable } from './StatusTable';
import { Version } from './Version';
import { News } from './News';
import { ActivePlayers } from './ActivePlayers';
import { ... |
export * from './config-initializer/index';
export * from './config-providers';
export * from './config-tokens';
export * from './config-validator/index';
export { ConfigModule } from './config.module';
export * from './services/configuration.service';
export {
TestConfigModule,
TestConfigModuleOptions,
} from './t... |
import "react-native"
import * as React from "react"
import * as renderer from "react-test-renderer"
import Biography from "../Biography"
it("renders properly", () => {
const gene = {
description: "Watercolor painting is very nice",
}
const biography = renderer.create(<Biography gene={gene} />).toJSON()
... |
import { Component, OnInit, Inject } from '@angular/core';
import { Provider } from '../types/provider';
import { ProviderService } from '../services/provider.service';
import { AlertService } from '../../../library/modules/alerts';
import { ModalService } from '../../../library/modules/modal';
@Component({
'selector... |
version https://git-lfs.github.com/spec/v1
oid sha256:118e3ae9c10023098f4c8740053ae597b972c2b2ddec10849ccbac08c09a18c3
size 780576 |
import { promises as fs } from 'fs'
import * as path from 'path'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import type { Compiler } from 'webpack'
class HtmlWebpackEnhancementPlugin {
apply(compiler: Compiler) {
compiler.hooks.assetEmitted.tapPromise(
'HtmlWebpackEnhancementPlugin',
async (... |
import React from 'react';
interface IDescriptionListHeaderProps {
label: string;
testId?: string;
visibleLabel: boolean;
}
export const DescriptionListHeader = ({
label,
testId,
visibleLabel,
}: IDescriptionListHeaderProps): JSX.Element => {
return (
<div className="pb-2" data-test-id={testId}>
... |
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
//
// Copyright 2016-2018 Pascal ECHEMANN.
//
// 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.apac... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
title = 'neptun-reloaded';
} |
import {Store} from 'vuex'
import {Mosaic, NamespaceId, MosaicId} from 'nem2-sdk'
import {AppMosaic, AppState} from '@/core/model'
import {formatNumber} from '@/core/utils'
/**
* Transforms an array of mosaics to an inline representation,
* setting networkCurrency as the first item
* eg: nem.xem (1,000), 04d3372253... |
export * from './bounties-count.metric';
export * from './bounties-value-locked.metric'; |
import React, { VFC } from "react";
import { TableHeader } from "./TableHeader";
import { TableHead } from "./TableHead";
import { Table } from "./Table";
import { TableRow } from "./TableRow";
import { TableCell } from "./TableCell";
import { TableBody } from "./TableBody";
import { TableCaption } from "./TableCaption... |
export const c_menu_m_flyout__menu_top_offset: {
"name": "--pf-c-menu--m-flyout__menu--top-offset",
"value": "0px",
"var": "var(--pf-c-menu--m-flyout__menu--top-offset)"
};
export default c_menu_m_flyout__menu_top_offset; |
import React, { useEffect, useState } from "react";
import ReactDOM from "react-dom";
const Options = () => {
const [color, setColor] = useState<string>();
const [status, setStatus] = useState<string>();
const [like, setLike] = useState<boolean>();
useEffect(() => {
// Restores select box and checkbox sta... |
/*
*
* Copyright 2018-present NEM
*
* 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 ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { GeneratedClient } from "./generated/generatedClient";
import { Service } from "./generated/operations";
import { Table } from "./generated/operations";
import {
Entity,
ListTablesOptions,
ListEntitiesOptions,
CreateEntityOption... |
import { shrink } from '@zazuko/rdf-vocabularies'
import { GraphPointer } from 'clownface'
export function nameOf(term: GraphPointer): string {
const shrunk = shrink(term.value)
return shrunk.split(':')[1]
}
/*
export default {
mixin(term: GraphPointer) {
return `${nameOf(term)}Mixin`
},
term(term: Gr... |
import { useCallback, useEffect, useMemo, useState } from "react";
import {
AuthController,
AuthDelegate,
Authenticator,
DataSource,
Locale,
StorageSource,
User
} from "../../models";
export function useBuildAuthController<UserType>({
authDelegate,
authentication,
dateTimeFormat... |
/*
* AUTO-GENERATED, DO NOT EDIT
*/
import React from 'react'
function OverageIcon(props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement>) {
return (
<svg
data-sanity-icon="overage"
width="1em"
height="1em"
viewBox="0 0 25 25"
fill="none"
xmlns="http://www.... |
/**
* @format
* @file BytedNests byted-nests
* @author 由 fe6 自动生成
*/
import { IIconProps, IconWrapper } from '../runtime';
// 获取 SVG 的 HTML 字符串
export const getIconBytedNestsSvgHtml = (props: IIconProps) =>
`<?xml version="1.0" encoding="UTF-8"?>
<svg width="${props.size}" height="${props.size}" viewBox="0 0 48... |
/**
* @license
* Copyright Google LLC 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 cssNano from 'cssnano';
import { ProcessOptions, Result } from 'postcss';
import { Compilation, Compiler,... |
import { Command } from "../../../../../../../shared/command-bus";
export const GET_ACCESS_KEYS_COMMAND_TYPE = "tokens/GETACCESSKEYS";
export interface GetAccessKeysCommandPayload {
page: number;
limit: number;
}
export class GetAccessKeysCommand implements Command<GetAccessKeysCommandPayload> {
public type: s... |
import { Component, Input, OnInit } from '@angular/core';
import { Product } from 'src/app/model/product';
@Component({
selector: 'app-data-row',
templateUrl: './data-row.component.html',
styleUrls: ['./data-row.component.scss']
})
export class DataRowComponent implements OnInit {
@Input() prod: Product = new... |
import { PropArrayAddComponent } from "src/assets/examples/decorators/propArray/add/prop-array-add.component";
import { PropArrayServerComponent } from "src/assets/examples/decorators/propArray/bindingServerProperty/prop-array-server.component";
import { PropArrayDefaultComponent } from "src/assets/examples/decorators/... |
import express from 'express';
import next from 'next';
import { join } from 'path';
import { main } from './app';
const PORT = parseInt(process.env.PORT || '', 10) || 5000;
const app = next({ dev: false, dir: join(__dirname, '../client') });
const handle = app.getRequestHandler();
(async () => {
await app.prepare... |
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { AppState } from '../reducers';
import { select, Store } from '@ngrx/store';
import { isLoggedIn } from './auth.selectors';
impor... |
import React from 'react'
import { MouseMoveTracker } from '../util/dom/MouseMoveTracker'
export class Resizer extends React.PureComponent<Resizer.Props> {
private mouseMoveTracker: MouseMoveTracker
UNSAFE_componentWillMount() {
this.mouseMoveTracker = new MouseMoveTracker({
onMouseMove: this.onMouseMov... |
import {Route, Routes} from 'react-router-dom';
import Login from '../pages/login';
import NotFound from '../pages/not-found';
import Signup from '../pages/signup';
function LoggedOutRouter() {
return (
<Routes>
<Route path='/' element={<Login />} />
<Route path='signup' element={<Signup />} />
... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository,getRepository } from 'typeorm';
import { Usuario } from './entities/usuario.entity';
import { CreateUsuarioDto } from './dto/create-usuario-dto';
@Injectable()
export class UsuariosService {
constr... |
import React from "react";
import Container from './Container/Container';
import Svg from 'react-inlinesvg';
import styles from './loading.module.scss';
const Loading = () => {
return (
<Container
style={{maxWidth: '500px', minWidth: '500px'}}
>
<div className={styles.loadingContainer}>
<... |
import { RecurSignal } from '../../errors'
import { SpecialExpressionNode } from '../../parser/interface'
import { token } from '../../utils/assertion'
import { BuiltinSpecialExpression } from '../interface'
interface RecurSpecialExpressionNode extends SpecialExpressionNode {
name: `recur`
}
export const recurSpeci... |
import * as React from 'react';
import { getStyles } from './UnifiedPicker.styles';
import { classNamesFunction, css, SelectionMode, Selection, KeyCodes } from '../../Utilities';
import { DragDropHelper, IDragDropContext } from '@fluentui/react/lib/DragDrop';
import { IUnifiedPickerStyleProps, IUnifiedPickerStyles } fr... |
import { Controller, Get, UseGuards } from '@nestjs/common';
import { RBAcGuard } from '../../../../src/guards/rbac.guard';
import { RBAcPermissions } from '../../../../src/decorators/rbac.permissions.decorator';
import { AuthGuard } from '../guards/auth.guard';
import { RBAC_REQUEST_FILTER } from '../../../../src/cons... |
import { Project } from '@/springboot/domain/Project';
import SpringBootRepository from '@/springboot/secondary/SpringBootRepository';
import { stubAxiosHttp } from '../../http/AxiosHttpStub';
import { RestProject, toRestProject } from '@/springboot/secondary/RestProject';
import { createProject } from '../domain/Proje... |
/**
* @fileoverview Resolve infrastructure to obtain types and elements.
*
* Similar to the compiler making instructions of expressions, the resolver
* obtains metadata of expressions. As such, for each `compileX` method in
* the compiler there is one `lookupX` method in the resolver returning the
* respective IR... |
import {Injectable} from '@angular/core';
import {ApiService} from './api.service';
import {SessionService} from './session.service';
import {MessageService} from './message.service';
import {CommonService} from './common.service';
import {environment} from '../../environments/environment';
@Injectable()
export class ... |
import { Action, Entity } from '../../../../types/Authorization';
import { NextFunction, Request, Response } from 'express';
import AppAuthError from '../../../../exception/AppAuthError';
import AuthorizationService from './AuthorizationService';
import Company from '../../../../types/Company';
import { CompanyDataRes... |
/**
* @file GraphQL API Location resolver for smartcharge.dev project
* @author Fredrik Lidström
* @copyright 2020 Fredrik Lidström
* @license MIT (MIT)
*/
import { Resolver, Query, Ctx, Arg, Mutation, ID } from "type-graphql";
import { IContext, accountFilter } from "@server/gql/api";
import { UpdateLocationInpu... |
<TS language="bg" 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>
<trans... |
// import { getUserCLIToken } from "@services/cli";
import { EditionTypeEnum } from "@crusher-shared/types/common/general";
export function getEdition() {
return process.env.NEXT_PUBLIC_CRUSHER_MODE;
}
export function isWindowCrossOrigin(window: Window) {
try {
return !Boolean(window.location.href);
} catch {
... |
// *** 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";
/**
* T... |
import type { ClientApplication } from '@shopify/app-bridge';
export interface AuthorizedFetchOptions {
app: ClientApplication<any>;
callbackUri?: string;
isAuthorizationCodeRequired?: (response: Response) => boolean;
fetchOperation: (uri: RequestInfo, options?: RequestInit) => Promise<Response>;
}
expo... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComptabiliteEtatEngagementFourComponent } from './comptabilite-etat-engagement-four.component';
describe('ComptabiliteEtatEngagementFourComponent', () => {
let component: ComptabiliteEtatEngagementFourComponent;
let fixture: Compon... |
// Copyright 2017-2021 @polkadot/app-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
import BN from 'bn.js';
import React, { useState } from 'react';
import styled from 'styled-components';
import { InputAddress, InputCandyBalance, Modal, TxButton } from '@polkadot/react-components';
import { u... |
<TS language="id_ID" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik-kanan untuk mengubah alamat atau label</translation>
</message>
<message>
<source>Create a new address</source>
<tr... |
import debounce from "lodash/debounce"
import React from "react"
import styled, { css } from "styled-components"
import { Flex, FlexProps } from "../../elements/Flex"
import { color, space } from "../../helpers"
import {
BorderProps,
borders,
SizeProps,
space as styledSpace,
SpaceProps,
} from "styled-system... |
import { VirtualCanvas } from '../elements/virtual-canvas';
import { Canvas } from 'manifesto.js';
export function isVirtual(canvas: Canvas | VirtualCanvas | undefined): canvas is VirtualCanvas {
if (!canvas) {
return false;
}
return canvas instanceof VirtualCanvas;
} |
import { Module } from '@nestjs/common';
import { PrismaService } from './prisma.service';
@Module({
providers: [PrismaService]
})
export class PrismaModule {} |
import { IContainer } from '@aurelia/kernel';
import { CustomElement, IHydratedController, IHydratedParentController, ICustomElementController } from '@aurelia/runtime-html';
import { ComponentAppellation, IRouteableComponent, ReloadBehavior, RouteableComponentType, LoadInstruction } from '../interfaces';
import { IRou... |
import { renderHook } from "@testing-library/react-hooks";
import { act } from "react-dom/test-utils";
import { Column, useFilters, useSortBy } from "react-table";
import { TestWrapper } from "../../test";
import { useTable } from "./index";
const columns: Array<Column> = [
{
id: "id",
Header: "ID... |
let clientCallbacks: { [name: string]: any } = {};
type CallbackMethod = <M>() => M;
export function clientPerformCallback<T>(perform: (c: CallbackMethod) => T): T {
const callbacks = (clientCallbacks = clientCallbacks || {});
const pr: any = perform((): any => null);
Object.keys(pr).forEach(m => {
callba... |
export class FollowUser {
public userid!: string;
public remark!: string;
public description!: string;
public createtime!: number;
public get userId() {
return this.userid;
}
public set userId(id: string) {
this.userid = id;
}
public get createTime() {
return this.createtime;
}
pub... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sk">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ScryptChain</source>
<translation>O ScryptChain</translation>
</message>
<mes... |
import type { ClientEntity, DbSet, UserEntity } from '#lib/database';
import { LanguageKeys } from '#lib/i18n/languageKeys';
import { SkyraCommand } from '#lib/structures';
import { Schedules } from '#lib/types/Enums';
import { hours, seconds } from '#utils/common';
import { promptConfirmation } from '#utils/functions'... |
import React from "react";
import Layout from "../components/layout";
import SEO from "../components/seo";
import { Link } from "gatsby";
const NotFoundPage = () => (
<Layout>
<SEO title="404: Not found" />
<h1>404 NOT FOUND</h1>
<p>お探しのページは見つかりませんでした</p>
<Link to="/">トップページに戻る</Link>
</Layout>
)... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const GetBotVersionsInput: _Structure_ = {
type: "structure",
required: ["name"],
members: {
name: {
shape: {
type: "string",
min: 2
},
location: "uri",
locationName: "name"
},
nextToken: {
... |
import express from 'express';
import * as bodyParser from 'body-parser';
import wellKnownRoute from './routes/well-known';
import helmet from 'helmet';
import { userPoolCors } from './middlewares/user-pool-cors';
import { resendRoute } from './routes/resend';
import { tokenRoute } from './routes/token';
import { verif... |
import React from 'react'
import dayjs from 'dayjs'
import { Message } from '../utilities/types'
export interface Props {
messages: Message[]
messageInput: string
handleSubmitForm: (event: React.FormEvent<HTMLFormElement>) => void
handleChangeInput: (event: React.ChangeEvent<HTMLInputElement>) => void
}
expo... |
import APITable, { APIs } from '../APITable';
import { Swiper, Container } from '../build';
import Left from '../Left';
import Example from '../Example';
const apis: APIs = [
{
attributes: 'title',
type: 'React.ReactNode',
acceptedValues: '-',
description: "cell's title or the key ",
defaultValue:... |
import { getPath } from '@reduxless/core';
import type {
SelectorMappings,
ActionMappings,
Store,
RouterEnabledStore,
} from '@reduxless/core/interfaces';
import React from 'react';
import type { AllHTMLAttributes } from 'react';
const StoreContext =
React.createContext<{ store: Store | RouterEnabledStore }>... |
import { SocketEvent, SocketEventType, SocketSendReply } from '@iola/core/socket'
import { Observable } from 'rxjs'
export interface ISocketClient {
readonly store: ISocketEventStore
connect(): Promise<void>
sendData<TData>(data: TData, event?: string): Promise<SocketSendReply>
sendBytes(bytes: number[], even... |
import AccountService from './AccountService';
class AuthService {
private static ACCESS_TOKEN: string = 'accessToken';
private static REFRESH_TOKEN: string = 'refreshToken';
static isLoggedIn(): boolean {
return (
!!sessionStorage.getItem(this.ACCESS_TOKEN) &&
sessionStorage.getItem(this.ACCESS... |
import './global';
export * from './routeOptions';
export * from './route';
export * from './response';
export * from './httpMethods';
export * from './fileUpload'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.