text stringlengths 10 953k |
|---|
import { asm, X64Assembler } from "./assembler";
import { cgate, chakraUtil, runtimeError, StaticPointer, VoidPointer } from "./core";
declare module "./assembler"
{
interface X64Assembler
{
alloc(name?:string|null):StaticPointer;
allocs():Record<string, StaticPointer>;
}
namespace asm
... |
export * from './card';
export * from './form';
export * from './notification';
export * from './text-field-form'; |
import { Characteristic } from '@prisma/client';
import { ChangeEvent, useContext, useRef, useState } from 'react';
import Col from 'react-bootstrap/Col';
import Image from 'react-bootstrap/Image';
import Row from 'react-bootstrap/Row';
import { ErrorLogger, ShowDiceResult } from '../../contexts';
import useExtendedSta... |
export interface Task {
id: number;
title: string;
description: string;
status: TaskStatus;
}
export enum TaskStatus {
Open = 'Open',
InProgress = 'InProgress',
Done = 'Done',
} |
/* tslint:disable max-line-length */
import { ComponentFixture, TestBed, async, inject, fakeAsync, tick } from '@angular/core/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { Observable } from 'rxjs/Observable';
import { JhiEventManager } from 'ng-jhipster';
import { ArTEMiSTestModule } ... |
/** @jsx jsx */
import { jsx, css} from '@emotion/core';
import React, { FunctionComponent, useEffect, useState} from 'react';
import { Grid, Box } from '@material-ui/core';
import { useCollectionGet } from '../../hooks/useCollectionGet';
import Firebase from '../../application/Firebase';
import { ChannelsScreen } from... |
/*
* Copyright 2019 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 to in writi... |
import { get } from 'lit-translate';
import { identity, LogDetailBase } from '../../foundation.js';
import { iec6185073, iec6185081, validateChildren } from './foundation.js';
async function getChildren(
cdc: string | null | undefined,
daName: string | null | undefined
): Promise<Element[]> {
const nsd73 = await... |
import { AbstractControl, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
import { toUtc } from '@angular-ru/cdk/date';
import { orderedIntervalValidator } from '@angular-ru/cdk/validators';
describe('ordered interval validator', () => {
let form: FormGroup;
beforeEach(() => {
form = new ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*------------------------------------------------------------------... |
import * as clc from "cli-color";
import { Command } from "../command";
import * as utils from "../utils";
import * as auth from "../auth";
import { FirebaseError } from "../error";
export const command = new Command("login:use <email>")
.description("set the default account to use for this project directory")
.a... |
import React, { useEffect, useState } from "react";
import { List, ListItem, ListItemText } from "@mui/material";
import * as _ from "lodash";
import { useDispatch, useSelector } from "react-redux";
import { StoreStateInterface } from "../../../interfaces/storeStateInterface/storeStateInterface";
import { EditBlock } f... |
import React from 'react';
import styled from 'styled-components';
import {Link} from 'react-router-dom';
const Container = styled.div`
margin: 100px 200px;
`
const LinksPage : React.FC = () => {
return <Container>
<div><Link to={`/line`}>Line</Link></div>
<div><Link to={`/linertc`}>Line WebRTC</Link></d... |
declare module '@yamashiro/akashi' {
import Immutable from '@augu/immutable';
import mongoose from 'mongoose';
import Pikmin from 'pikmin';
import Eris from 'eris';
export const version: string;
export class ArgumentParser {
constructor(raw: string[]);
public args: string[];
... |
/* eslint-disable no-script-url */
import React from 'react';
import { observer } from 'mobx-react';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/TableHead';
import TableRo... |
import { IGridFieldRenderer } from "@alethio/ui/lib/control/grid/state/IGridFieldRenderer";
import { ITranslation } from "plugin-api/ITranslation";
import { ITxLiteByAccountMined } from "app/eth-extended/data/tx/lite/byAccount/mined/ITxLiteByAccountMined";
import { TxType } from "app/shared/data/tx/TxType";
export cla... |
import * as React from 'react';
import { IconWrapper } from '../IconWrapper';
import { ISvgIconProps } from '../svgConfig';
export default IconWrapper(
(props: ISvgIconProps) => (
<svg
width={props.size}
height={props.size}
viewBox="0 0 48 48"
fill="none"
... |
import React, { FunctionComponent } from 'react';
import './importIcons';
import './icon.scss';
interface Props extends React.HTMLAttributes<SVGElement> {
name: string;
}
declare const Icon: FunctionComponent<Props>;
export default Icon; |
import React from "react";
import Footer from "./components/Footer";
import { BrowserRouter, Switch, Route } from "react-router-dom";
import Home from "./pages/Home";
import CustomerAdd from "./pages/CustomerAdd";
import ProductAdd from "./pages/ProductAdd";
import Cart from "./pages/Cart";
import { AppContainer } fr... |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
export const ENABLEMENT_FLAG = "deno:lspReady";
export const EXTENSION_ID = "denoland.vscode-deno";
export const EXTENSION_NS = "deno";
export const EXTENSION_TS_PLUGIN = "typescript-deno-plugin";
export const LANGUAGE_CLIENT_ID = "deno-languag... |
export default {
'app.setting.pagestyle': '整体风格设置',
'app.setting.pagestyle.dark': '暗色菜单风格',
'app.setting.pagestyle.light': '亮色菜单风格',
'app.setting.content-width': '内容区域宽度',
'app.setting.content-width.fixed': '定宽',
'app.setting.content-width.fluid': '流式',
'app.setting.themecolor': '主题色',
'app.setting.them... |
/**
* @author: lencx
* @create_at: Jul 04, 2020
*/
import React, { StrictMode, lazy } from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import createApp from '/@core/dva';
import Router, { RouteOption } from '/@route/Router';
import models from '/@/models';
co... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PermisoComponent } from './permiso.component';
describe('PermisoComponent', () => {
let component: PermisoComponent;
let fixture: ComponentFixture<PermisoComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
const ShipSensorCluster: LangResearchProject = {
descriptionDiscovered: null,
label: '飞船集成传感器',
description: '解锁建造用于飞船的远距离传感器。',
defName: 'ShipSensorCluster'
}
export default ShipSensorCluster; |
import type { MainWindow, PartytownConfig } from '../types';
import { debug } from '../utils';
export const mainWindow: MainWindow = window.parent;
export const docImpl = document.implementation.createHTMLDocument();
export const config: PartytownConfig = mainWindow.partytown || {};
export const libPath = (config.lib... |
// @todo Renaming the imports is currently necessary to avoid collissions with the parameter names.
import {
createCancelAndHoldAutomationEvent as createCancelAndHoldAutomationEventFunction,
createCancelScheduledValuesAutomationEvent as createCancelScheduledValuesAutomationEventFunction,
createExponentialRa... |
import { convertServicePathToOpenApiPath } from "./convertServicePathToOpenApiPath.ts";
import { assertStrictEquals } from "../../deps.ts";
Deno.test("Convert jsonotron path with one parameter to oak path.", () => {
assertStrictEquals(
convertServicePathToOpenApiPath("/path/{id:uuid}"),
"/path/{id}",
);
})... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
import {
RouteLocationNormalized,
RouteRecordRaw,
RouteLocationRaw,
NavigationHookAfter,
START_LOCATION_NORMALIZED,
Lazy,
RouteLocationNormalizedLoaded,
RouteLocation,
RouteRecordName,
isRouteName,
NavigationGuardWithThis,
RouteLocationOptions,
MatcherLocationRaw,
} from './types'
import { Rou... |
import { IonicNativePlugin } from '@ionic-native/core';
/**
* @name Unique Device ID
* @description
* This plugin produces a unique, cross-install, app-specific device id.
*
* @usage
* ```typescript
* import { UniqueDeviceID } from '@ionic-native/unique-device-id';
*
* constructor(private uniqueDeviceID: Uniqu... |
import { useRef } from 'react';
import useUpdateEffect from '../../useUpdateEffect';
import type { Plugin } from '../types';
export const useAutoRunPlugin: Plugin<any, any[]> = (
fetchInstance,
{ manual, ready = true, defaultParams = [], refreshDeps = [] }
) => {
const hasRun = useRef(false);
hasRun.current =... |
export default interface PostLabel {
data: Record<string, string>
type: 'technotext2020' | 'translation' | 'sandbox' | 'recovery' | 'tutorial'
} |
import replaceSlackdownControlSequences from './controlSequences';
import replaceEmoji from './emoji';
import replaceSlackdown from './markdown';
import { IOptions } from './types';
export const escapeForSlack = (text: string, options: IOptions = {}) => {
const customEmoji = options.customEmoji || {};
const users ... |
import { Service, Inject } from 'typedi';
import config from "../../config";
import IRoleDTO from '../dto/IRoleDTO';
import { Role } from "../domain/role";
import IRoleRepo from '../services/IRepos/IRoleRepo';
import IRoleService from './IServices/IRoleService';
import { Result } from "../core/logic/Result";
import { R... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BrasilCoin</source>
<translation>關於莱特幣</translation>
</messag... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {HttpClient, HttpHeaders} from '@angular/common/http';
@NgModule({
imports: [
CommonModule
],
declarations: []
})
export class ConfigModule {
public static httpOptions = {
headers: new HttpHeaders({'Content-... |
/*
* Copyright 2021 The Kubernetes Authors
*
* 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 agr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { AuthProvider } from "../admin/authContext";
import { HeadTag } from "../components/head-tag";
import { Header } from "../components/header";
import { AnimatePresence } from "framer-motion";
import { Footer } from "../components/footer/footer";
import "../components/global-styles.scss";
function App({ Componen... |
import * as assert from 'assert';
import cheerio from 'cheerio';
import { head, last, only } from '../../common/ArrayUtils';
import { ITestFile } from '../..';
export const createSeeLinkSuite = (files: ITestFile[]) => {
suite('See Links', function() {
test('Should correctly parse and link "@see" markdown s... |
import GradientType from "openfl/display/GradientType";
import Shape from "openfl/display/Shape";
import Sprite from "openfl/display/Sprite";
import Matrix from "openfl/geom/Matrix";
class ProgressBar extends Sprite
{
private _background:Shape;
private _bar:Shape;
public constructor(width:number, height:n... |
import cp from 'child_process'
import ffmpeg from 'ffmpeg-static'
import { Segment } from 'sponsorblock-api'
import { Readable } from 'stream'
import { AudioFormat, VideoFormat } from '.'
export function trimSegmentsVideo(input: Readable, segments: Segment[] | { startTime: number; endTime: number }[], outputFormat: Vi... |
/*
* 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 { getExceptionListItemSchemaMock } from './exception_list_item_schema.... |
#!/usr/bin/env node
import * as commander from 'commander';
import * as prompt from 'prompt';
import * as colors from 'colors';
import * as process from 'process';
import * as fs from 'fs';
import {firestoreImport} from '../lib';
import {getCredentialsFromFile, getDBReferenceFromPath, getFirestoreDBReference} from '../... |
import { Component, OnInit } from '@angular/core';
import {User} from "../services/user";
import {ResetService} from "../services/reset.service";
import {ActivatedRoute, Router} from "@angular/router";
import {map} from 'rxjs/operators';
@Component({
selector: 'app-reset',
templateUrl: './reset.component.html',
... |
export declare enum HostingEnvironment {
Production = 0,
German = 1,
China = 2,
USGovernment = 3,
USDefence = 4
} |
import * as yup from 'yup';
import * as _ from 'lodash';
import { convertToBaseValue } from '@console/internal/components/utils';
import { isInteger } from '../../utils/yup-validation-util';
import { GitTypes } from './import-types';
const urlRegex = /^(((ssh|git|https?):\/\/[\w]+)|(git@[\w]+.[\w]+:))([\w\-._~/?#[\]!$... |
import * as React from 'react';
import { connect } from 'react-redux';
class Home extends React.Component<any, any> {
render() {
const { dispatch } = this.props;
return (
<div className='home'>
hello
</div>
);
}
}
function mapStateToProps(state) {
return state;
}
export default... |
import { CommonConstant } from "../../constant/CommonConstant";
import FastCarApplication from "../../FastCarApplication";
import Logger from "../../interface/Logger";
//日志实例
export default function Log(category?: string) {
return function (target: any, propertyKey: string) {
let m = category || propertyKey;
Ref... |
import { Card } from '../../../interfaces'
import Set from '../Darkness Ablaze'
const card: Card = {
name: {
en: "Aron",
fr: "Galekid",
es: "Aron",
it: "Aron",
pt: "Aron",
de: "Stollunior"
},
illustrator: "Naoyo Kimura",
rarity: "Common",
category: "Pokemon",
set: Set,
hp: 70,
types: [
"Metal",... |
import {
GraphQLInt,
GraphQLNonNull
} from 'graphql'
import websiteType from '../../types/websiteType';
import getWebsiteResolver from '../../resolvers/website/getWebsiteResolver';
export const getWebsiteMutation = {
type: websiteType,
args: {
id: { type: GraphQLNonNull(GraphQLInt) }
},
... |
import { endsWith,prop, } from "@rxweb/reactive-form-validators"
export class User {
@endsWith({value:'t' ,message:'{{0}} does not ends with `t`' })
name: string;
} |
import { VimState } from '../../state/vimState';
import { PositionDiff, sorted } from './../../common/motion/position';
import { configuration } from './../../configuration/configuration';
import { Mode } from './../../mode/mode';
import { RegisterAction, BaseCommand } from './../base';
import {
MoveAroundBacktick,
... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule, HttpClient } from '@angular/common/http';
import { TranslateModu... |
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './CREATE';
import { SchemaFieldTypes, SchemaTextFieldPhonetics, RedisSearchLanguages } from '.';
describe('CREATE', () => {
describe('transformArguments', () => {
it('simple', (... |
import { NgModule } from '@angular/core';
import { BackgroundColorDirective, ColorDirective } from './color.directive';
export { BackgroundColorDirective, ColorDirective } from './color.directive';
@NgModule({
exports: [BackgroundColorDirective, ColorDirective],
declarations: [BackgroundColorDirective, Color... |
import Popover from '../popover';
import { IPopoverTriggerProps } from '../popover/trigger/Trigger';
export type INoneTriggerProps = IPopoverTriggerProps<any>;
export default class NoneTrigger extends Popover.Trigger
.Base<INoneTriggerProps> {} |
import { compose, createSelector } from '@ngrx/store';
import {
Step,
RateType,
Entities,
Rational,
DisplayRateVal,
RationalProduct,
Product,
} from '~/models';
import {
RateUtility,
SimplexUtility,
FlowUtility,
RecipeUtility,
} from '~/utilities';
import * as Factories from '../factories';
impor... |
// This is browser code that gets transformed using Parcel/Babel
// Therefore you can now use ES6 style imports
import * as Phaser from "phaser";
interface ICoords {
[key: string]: {
x: number;
y: number;
frame: number;
}
}
const DEBUG = false; // Render debug physics entities
function uuid(
a?: an... |
import { PermissionError } from "../Errors.ts";
import { Store } from "../Store.ts";
import { Observer, Value } from "../types.ts";
import { assertEquals, assertThrows, spy } from "./test_deps.ts";
import type { Spy } from "./test_deps.ts";
import { assertDeepClone, testCalled } from "../helpers.ts";
Deno.test("[Obser... |
import { useState, useEffect } from 'react';
import { combineLatest } from 'rxjs';
import { Option } from '@polkadot/types';
import { Price } from '@open-web3/orml-types/interfaces';
import { convertToFixed18, Fixed18 } from '@acala-network/app-util';
import { tokenEq } from '@acala-dapp/react-components';
import { ... |
import { Instance } from "mobx-state-tree"
import { GustoUserModelBase } from "./GustoUserModel.base"
/* The TypeScript type of an instance of GustoUserModel */
export interface GustoUserModelType extends Instance<typeof GustoUserModel.Type> {}
/* A graphql query fragment builders for GustoUserModel */
export {
sel... |
/*
* Public API Surface of ngx-debounce-input
*/
export * from './lib/ngx-debounce-input.directive';
export * from './lib/ngx-debounce-input.module'; |
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable camelcase */
import { speckleLineVert } from './shaders/speckle-line-vert'
import { speckleLineFrag } from './shaders/speckle-line-frag'
import { UniformsUtils, ShaderLib, Vector3 } from 'thr... |
import {CustomersViewPage} from "./customers-view.page";
import {protractor, by, browser} from "protractor";
describe('Customers view', () => {
let page = new CustomersViewPage();
beforeAll(() => {
page.get();
});
it('should have `<p-dataTable>`, `<p-header>` and `<p-paginator>`', () => {
... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const WindowMaximizeDimensions: {
height: undefined;
width: undefined;
}; |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faYoast: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures: ... |
// Generated from ../CommonRegex.g4 by ANTLR 4.6-SNAPSHOT
import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
import { ParseContext } from "./CommonRegexParser";
import { AlternationContext } from "./CommonRegexParser";
import { ExprContext } from "./CommonRegexParser";
import { ElementContext } fro... |
/*!
* Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required ... |
export class PropertyStateChangedEvent
{
constructor(public property: string, public isValid: boolean, public error?: string) {}
} |
import { showModal } from '../../components/modals';
import AskModal from '../../components/modals/ask-modal';
import { WorkspaceScope, WorkspaceScopeKeys } from '../../../models/workspace';
import { ValueOf } from 'type-fest';
export const ForceToWorkspaceKeys = {
new: 'new',
current: 'current',
} as const;
expo... |
export * from './decorator'
export * from './demo' |
export * from "./posts-list"; |
const acceleratorTokenAliases = {
'command': 'cmd',
'control': 'ctrl',
'return': 'enter',
'escape': 'esc',
'cmdorctrl': (process.platform === 'darwin') ? 'cmd': 'ctrl',
'alt': (process.platform === 'darwin') ? 'option': null,
'plus': '+'
} as Record<string, string>;
acceleratorTokenAliases[... |
// import { Entity } from './entity';
// export abstract class Component {
// public name: string;
// private parent: Entity = null;
// public abstract initComponent(): void;
// public setParent(parent: Entity) {
// this.parent = parent;
// }
// public registerHandler(): void {
// ... |
import { PaginationParams } from '@common/decorators'
import { PaginationResponseDto } from '@common/dtos'
import { PaginationRequest } from '@common/interfaces'
import {
CurrentUser,
JwtAuthGuard,
PermissionsGuard,
TOKEN_NAME
} from '@modules/auths'
import { PostResponseDto } from '@modules/posts/dtos/post-res... |
import { WALLETS } from 'locale/consts';
import { Wallet, WalletFactory } from 'models/Wallet';
import React, { Fragment } from 'react';
import { Translate } from 'react-localize-redux';
import { connect } from 'react-redux';
import Col from 'reactstrap/lib/Col';
import ListGroup from 'reactstrap/lib/ListGroup';
import... |
import { valueOf } from './dict'
function wrap(name: string) {
return function() {
const func = new NativeFunction(Module.findExportByName(null, name)!, 'pointer', [])
const result = func() as NativePointer
return new ObjC.Object(result).toString()
}
}
export const NSTemporaryDirectory = wrap('NSTempo... |
// (C) Copyright 2015 Interactive Group Pvt Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
/*
* Copyright 2017 Palantir Technologies, Inc. All rights reserved.
* Licensed under the terms of the LICENSE file distributed with this project.
*/
import { expect } from "chai";
import { mount, ReactWrapper } from "enzyme";
import * as React from "react";
import { spy } from "sinon";
import { expectPropValidati... |
import { MdiReactIconComponentType } from './dist/typings';
declare const CompassOutlineIcon: MdiReactIconComponentType;
export default CompassOutlineIcon; |
export class TenderSubmission {
attentiveDocuments: string[];
quantity: number;
languages: string[];
} |
import * as React from 'react';
import { Link, Flex, Button, Txt } from '../..';
import { Meta } from '@storybook/react';
import { createTemplate, createStory } from '../../stories/utils';
import { Card, CardProps } from './';
const rows = [
<div>Lorem Ipsum dolor si amet</div>,
<Link href="www.balena.io">Link</Link... |
import 'admin-lte';
export declare function PushMenu({ xa, ...props }: any, children: any): any; |
import { Asset, AssetRuneNative } from '@xchainjs/xchain-util'
import * as FP from 'fp-ts/lib/function'
import * as O from 'fp-ts/lib/Option'
import * as RxOp from 'rxjs/operators'
import { ZERO_BASE_AMOUNT } from '../../../const'
import { isRuneNativeAsset } from '../../../helpers/assetHelper'
import { eqOAsset } fro... |
import * as React from 'react'
import { FaTwitter, FaGithub, FaLinkedin } from 'react-icons/fa'
import { IoSunnyOutline, IoMoonSharp } from 'react-icons/io5'
import * as config from 'lib/config'
import styles from './styles.module.css'
// TODO: merge the data and icons from PageSocial with the social links in Footer
... |
import { BN } from 'ethereumjs-util';
import { ExistingFeeHistoryBlock } from '../fetchBlockFeeHistory';
/**
* Given a collection of blocks, returns an indicator of whether the base fee is moving up, down, or
* holding steady, based on comparing the last base fee in the collection to the first.
*
* @param blocks -... |
import React, { Component } from 'react'
import { withRouter } from 'react-router-dom'
import { connect } from 'react-redux'
import { something } from "@some-module/anything"
import {
foo,
bar,
fooBar
} from 'foo-bar'
import { anotherThing } from '@another-module/something'
import { Controller, Get }... |
export function bindRedirectsHandler(keystone, app) {
if (Object.keys(keystone._redirects).length) {
app.use(function (req, res, next) {
if (keystone._redirects[req.path]) {
res.redirect(keystone._redirects[req.path]);
} else {
next();
}
... |
/**
* file-chooser
*/
import to from 'await-to-js';
import { merge } from 'lodash-es';
import { convertToBytesUnit } from '@fatesigner/utils';
import { compressImg } from '@fatesigner/img-compressor/img-compressor';
import { filterExtensions, getContentSize } from '@fatesigner/utils/document';
import { isImage } fr... |
import { createSlice, createAsyncThunk, PayloadAction, isPending, isFulfilled, isRejectedWithValue } from '@reduxjs/toolkit'
import api from 'api';
import { TagOrCharacNameList, MinifigsList, MinifigsFilters, MinifigsPagination, Minifig } from 'interfaces/minifigs';
import { RootState } from 'store';
import { getFilter... |
import React from "react";
import { graphql } from "gatsby";
import { css } from "@emotion/core";
import { IndexPageQuery } from "../../graphql-types";
import {
Layout,
ArticlePreview,
Portrait,
SectionHeader,
Reference,
} from "components";
import { md, sm } from "lib/css-in-js";
interface IProps {
data: ... |
import {IGroup} from "@antv/g-base";
import zpx from "zpx";
import {cttrs, ElementType} from "../lib/types";
import {Graph, INode, IShape} from "@antv/g6";
export function getGraph(e: any): Graph | void {
let target = e.currentTarget
if (!target) {
return
}
if ((target.cfg || {}).renderer == ... |
export interface IUser {
id: number;
firstname: string;
lastname: string;
email: string;
password: string;
} |
import {AccountRequest, StorageNodeClient, StorageRequest, StorageUpdate, UpdateMsg, UpdateOp, VerifierStorageClient} from '@rainblock/protocol';
import {toBufferBE} from 'bigint-buffer';
import {hashAsBigInt, HashType} from 'bigint-hash';
import * as grpc from 'grpc';
import * as path from 'path';
import {RlpDecode, R... |
import { FaCrown } from 'react-icons/fa';
import { VscGithub } from 'react-icons/vsc';
import { useLocation, useNavigate } from 'react-router-dom';
import { CATEGORY_ICONS } from '../../../data';
import { Repository, RepositoryKind, ScoreType } from '../../../types';
import ElementWithTooltip from '../../common/Elemen... |
// src/apis/AuthApi.ts
import axios from 'axios';
export default axios.create({
baseURL: 'http://localhost:8080/api/auth',
headers: {
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json',
},
}); |
/// <reference types="node" />
import { PathLike } from 'fs';
export declare type VueSlot = {
name: string;
description: string;
};
export declare type VueEventArgument = {
name: string;
type: string;
};
export declare type VueEvent = {
name: string;
description?: string;
arguments?: VueEven... |
import { CpfFormatter } from '../formatters';
import Utils from '../utils';
import { Validator } from './base.validator';
/**
* The CPF validator.
*/
class CpfValidator implements Validator {
/**
* Validator array for CPF.
*/
private readonly CPF_VALIDATORS: Array<number> = [
11,
10,
9,
8,
... |
import * as createDebug from 'debug';
import * as redis from 'redis';
const debug = createDebug('chevre:repository');
/**
* 進行アクションキーインターフェース
*/
export interface IProgressKey {
agent: { id: string };
product: { id: string };
}
/**
* 進行中のサービス登録アクションリポジトリ
*/
export class RedisRepository {
public static... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.