text stringlengths 10 953k |
|---|
import {Container, FrameworkConfiguration} from 'aurelia-framework';
import {IHttpClient} from '@essential-projects/http_contracts';
import {SolutionExplorerFileSystemRepository} from '@process-engine/solutionexplorer.repository.filesystem';
import {SolutionExplorerManagementApiRepository} from '@process-engine/soluti... |
import { Component } from '@angular/core';
import { Router,
NavigationExtras } from '@angular/router';
import { AuthService } from './shared/auth.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginCom... |
export interface GreaterEqualsValueCriterion {
op: ">=";
value: number | string;
}
export module GreaterEqualsValueCriterion {
export function create<V extends GreaterEqualsValueCriterion["value"]>(value: V): GreaterEqualsValueCriterion {
return { op: ">=", value: value };
}
} |
import { useLoaderData, Link, useCatch } from "remix";
import type { Joke } from "@prisma/client";
import { db } from "~/utils/db.server";
type LoaderData = { randomJoke: Joke };
export const loader = async () => {
const count = await db.joke.count();
const randomRowNumber = Math.floor(Math.random() * count);
... |
import { MongoHelper } from '@/infra/db'
import {
SaveAddressRepository,
LoadAddressRepository
} from '@/data/protocols'
import { ObjectId } from 'mongodb'
import { SaveAddress } from '@/domain/usecases'
export class AddressMongoRepository implements
SaveAddressRepository,
LoadAddressRepository {
async save ... |
import { USBDevice } from './usbDevice'
import { ChipReader } from './chipReader'
import { TypedEvent, Listener, Disposable } from './typedEvent'
import { WebUSBDevice } from '../types/w3c-web-usb'
const CHIP_READER_VENDOR_ID = 0x04FA
const CHIP_READER_PRODUCT_ID = 0x2490
export class ChipReaderWatcher extends USBDev... |
export type ProviderType = 'BUILT_IN_OAUTH' | 'EXTERNAL_OAUTH' | 'SSO'; |
/**
* Cooksmart
* Recipe management platform, realised as a pre-project for our SWT EnPro
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslin... |
/**
* Represent some entity that can be rendered as an HTML element.
*/
export abstract class Widget {
private $element: HTMLElement | undefined;
protected constructor(protected className?: string) {}
/**
* Highlights `View` temporarily and scrolls it into view, if supported.
*/
public foc... |
import * as Filesystem from "./filesystem";
import * as MappingEntry from "./mapping-entry";
/**
* Function that can match a path
*/
export interface MatchPath {
(requestedModule: string, readJson?: Filesystem.ReadJsonSync, fileExists?: (name: string) => boolean, extensions?: ReadonlyArray<string>): string | unde... |
import { JsonSourceMap } from 'json-source-map';
// Returns a function that allows you to determine the position of a JSON pointer, based on the result by the
// `json-source-map` module, which is passed to the factory.
const locatorFactory =
(pointers: Record<string, JsonSourceMap>) =>
(
json_pointer:... |
export interface GraphQLPubSub {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
publish(triggerName: string, payload: any): Promise<void>;
// eslint-disable-next-line @typescript-eslint/ban-types
subscribe(triggerName: string, onMessage: Function, options: Object): Promise<number>;
// eslint-d... |
import { Repository, getRepository, Raw } from 'typeorm';
import IAppointmentsRepository from '@modules/appointments/repositories/IAppointmentsRepository';
import ICreateAppointmentDTO from '@modules/appointments/dtos/ICreateAppointmentDTO';
import IFindAllInMonthForProviderDTO from '@modules/appointments/dtos/IFindAl... |
type StringDict = { [index: string]: number[] };
export interface NewsroomRoles extends StringDict {
owners: number[];
managers: number[];
editors: number[];
viewers: number[];
}
export type NewsroomSocketStatus = 'connected' | 'disconnected' | 'connecting';
export interface Newsroom {
eventId: number;
c... |
import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../../service/';
import { MenuItem } from 'primeng/components/common/menuitem';
import { error } from 'selenium-webdriver';
@Component({
selector: 'app-view-orders',
templateUrl: './view-orders.component.html',
styleUrls: ['./view-o... |
import { Column } from 'react-table';
export interface ColumnProps {
id: string;
client: string;
date: any;
phone: number | string;
resume: string;
status: string;
userId: string;
}
export const COLUMNS: Column<ColumnProps>[] = [
{
Header: 'Client',
accessor: 'client',
},
{
Header: 'Dat... |
import { Directive, Input, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { Observable } from 'rxjs';
import { AccountService } from 'src/app/modules/account/account.service';
import { IUser } from 'src/app/shared/models/IUser';
@Directive({
selector: '[appHasRole]'
})
export class HasRoleDirec... |
const colors = {
black: "#000000",
blue09: "#0094da",
primaryPurple: "#4d4dff",
purpleShadow: "#c9c9ff",
white: "#FFFFFF",
// Functionality
inputBorderGray: "#E2E2E2",
checkMarkGreen: "green",
};
export { colors }; |
export const EmployeeType =
{
POLITICAL: "Political",
CAREER: "Career"
}; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Entity, Column, PrimaryGeneratedColumn, BaseEntity } from 'typeorm';
@Entity()
export class Carro extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@Column()
nome: string;
@Column({ nullable: true })
descricao: string;
@Column({ nullable: true })
url_foto: string;
@Column({ null... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sa... |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
//@ts-ignore
module.exports = {
presets: [ '@vue/cli-plugin-babel/preset' ],
} |
import React from 'react';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
... |
"use strict";
/**
Portions adapted from https://github.com/eamodio/vscode-gitlens/blob/12a93fe5f609f0bb154dca1a8d09ac3e980b9b3b/src/logger.ts which carries this notice:
The MIT License (MIT)
Copyright (c) 2016-2021 Eric Amodio
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... |
import Nano, { Component } from '../../lib/index.js'
import { wait } from './helpers.js'
const spy = jest.spyOn(global.console, 'error')
test('should render without errors', async () => {
class RenderChildComponent extends Component {
render() {
// @ts-ignore
return this.props.children
}
}
... |
export enum Status{
ACTIVE = 'Activo',
INACTIVE = 'Inactivo'
} |
import { IQService } from 'angular';
import IdentityService from './identity.service';
import { EnrollService } from '@digitalpersona/services';
import { EnrollmentContext } from '@digitalpersona/enrollment';
routes.$inject = ["$routeProvider"];
export default function routes(
$routeProvider: ng.route.IRouteProvid... |
import {remoteData as r} from '../RemoteData';
describe('RemoteData', () => {
describe('startLoading', () => {
test('without data available', () => {
expect(r.startLoading(r.notLoaded())).toEqual(r.loading());
expect(r.startLoading(r.loading())).toEqual(r.loading());
ex... |
import { applyMiddleware, createStore } from 'redux';
import { composeWithDevTools } from 'remote-redux-devtools';
import {
connectRouter,
routerMiddleware as createRouterMiddleware,
} from 'connected-react-router';
import createHistory from 'history/createMemoryHistory';
import reduxThunk from 'redux-thunk';
// i... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { ServerRoute } from "@hapi/hapi";
import Joi from "@hapi/joi";
import {
listComments,
createComment,
getComment
} from "../lib/comment/comments-service";
import { AuthorizedRequest } from "../core/authorized-request";
import { BigIntValidation } from... |
export type TileMapConfig = {
mapPath?: string;
mapKeys: string[];
setsPath?: string;
}; |
import Web3 from "web3";
import { AbiItem } from "web3-utils";
import daiABI from "../abi/dai";
import erc20 from "../abi/usdc.json";
const PROVIDER =
process.env.PROVIDER ||
"https://mainnet.infura.io/v3/4b63b3897126482e8987b0f25ab9f1a4";
const web3 = new Web3(new Web3.providers.HttpProvider(PROVIDER));
const d... |
import {Component, Injector} from '@angular/core';
import {AbstractNavigableList} from '../../shared/components/AbstractNavigableList';
import {MaterialComponent} from '../material/material.component';
import {MaterialService} from '../services/material.service';
@Component({
selector: 'app-materials',
templat... |
namespace ts {
const minimumDate = new Date(-8640000000000000);
const maximumDate = new Date(8640000000000000);
export interface BuildOptions {
dry?: boolean;
force?: boolean;
verbose?: boolean;
/*@internal*/ clean?: boolean;
/*@internal*/ watch?: boolean;
/... |
import {
Keypair,
Commitment,
Connection,
RpcResponseAndContext,
SignatureStatus,
SimulatedTransactionResponse,
Transaction,
TransactionInstruction,
TransactionSignature,
Blockhash,
FeeCalculator,
} from '@solana/web3.js';
import { WalletNotConnectedError } from '@sola... |
import { Tutor } from "./../entities/Tutor";
import { CategoryInput } from "./inputs/index";
import { getConnection } from "typeorm";
import { Category } from "./../entities/Category";
import {
Arg,
Field,
Mutation,
ObjectType,
Query,
Resolver,
} from "type-graphql";
import { FieldError } from "... |
// Theme switching based on https://grensesnittet.computas.com/dynamic-themes-in-angular-material/
import { Injectable } from '@angular/core';
import { BehaviorSubject, Subject } from 'rxjs';
@Injectable({ providedIn: 'root' })
export class ThemeService {
private darkTheme: Subject<boolean> = new BehaviorSubject<boo... |
import { Observable } from 'rxjs/internal/Observable'
import { errorHandler, ErrorHandler } from '../middlewares/error/ErrorHandler'
import { ErrorType } from '../middlewares/error/ErrorType'
type PromiseResolve<T> = (value: IteratorResult<T>) => void
function observableToIterator<T>(
$: Observable<T>,
handleErr... |
/** @jsx jsx */
import { css, jsx } from "@emotion/core";
import styled from "@emotion/styled";
import { Link } from "gatsby";
import BaseImage from "./BaseImage";
export type PositionOptions = "bottom" | "center" | "top" | "left" | "right";
export type FitOptions = "contain" | "cover";
interface Props {
src: stri... |
import { Component, ViewChild } from '@angular/core';
import { Events, MenuController, Nav, Platform } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Storage } from '@ionic/storage';
import { AboutPage } from '../pages/about/about';
import { AccountPage } from '../pages/ac... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule, Router } from '@angular/router';
// Import Containers
import { DefaultLayoutComponent } from './containers';
import { P404Component } from './views/error/404.component';
import { P500Component } from './views/error/500.component';
import { Login... |
import { t, Selector } from 'testcafe';
export class OptionStringField {
constructor(public element: Selector) {}
public async setValue(value: string) {
await t.click(this.element.find('gtx-select'));
await t.click(Selector('.select-options li').withText(value));
}
} |
import type * as webpack from "webpack";
import {
disableSourceMap,
replaceBabelLoader,
removeProgressPlugin,
useESBuildAsMinifier,
} from "./transformers";
import type { PresetOptions, Transformer } from "./types";
function compose(...fns: Transformer[]): Transformer {
return function (config, options) {
... |
import React from "react";
import GroupList from "../../organisms/group/GroupList";
import ControlPanelTemplate from "../../templates/ControlPanelTemplate";
import { Pages } from "../../../pages";
import { getUserGroupList } from "../../../api/api";
import { useAuth } from "../../../contexts/AuthContext";
import Linear... |
import { Observable, throwError, Subject } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { catchError, tap } from 'rxjs/operators';
import { Injectable } from '@angular/core';
import { Api } from '../models/base/api.model';
import {Producer, ProducerCreate, ProducerSingle} from '../models/clien... |
namespace $ {
export function $mol_build_start(
this: $,
paths : string[],
) {
var build = $mol_build.relative( '.' )
if( paths.length > 0 ) {
try {
paths.forEach(
( path : string )=> {
path = build.root().resolve( path ).path()
return build.bundleAll( { path } )
}
)
pro... |
import React from 'react'
import TextField from '@material-ui/core/TextField'
import Button from '@material-ui/core/Button'
import Dialog from '@material-ui/core/Dialog'
import DialogActions from '@material-ui/core/DialogActions'
import DialogContent from '@material-ui/core/DialogContent'
import DialogTitle from '@mate... |
import LandingDeployDesc from "./LandingDeployDesc";
export default LandingDeployDesc; |
import { WebComponentDefinition } from "@microsoft/fast-tooling/dist/esm/data-utilities/web-component";
import { DataType } from "@microsoft/fast-tooling";
export const fastSwitchDefinition: WebComponentDefinition = {
version: 1,
tags: [
{
name: "fast-switch",
title: "Switch",
... |
/// <reference types="react" />
import * as React from 'react';
export declare class ChoiceGroupCustomExample extends React.Component {
render(): JSX.Element;
private _onChange;
} |
/* tslint:disable:no-unused-variable */
import * as React from 'react';
/* tslint:enable:no-unused-variable */
import {
Breadcrumb, IBreadcrumbItem
} from 'office-ui-fabric-react/lib/Breadcrumb';
import { Icon } from 'office-ui-fabric-react/lib/Icon';
import { Link } from 'office-ui-fabric-react/lib/Link';
export c... |
import proxyquire = require('proxyquire');
class Foo {}
var mock = {};
var myModule = proxyquire('myModule', mock);
var fooModule: Foo = proxyquire<Foo>('foo', mock);
myModule = proxyquire.noCallThru()
.load('myModule', mock);
fooModule = proxyquire.callThru()
.load<Foo>('... |
export interface IMailer {
to: string,
type: string,
}
export function getDefaultMailer () {
return {
to: "",
type: "Test"
}
} |
import { Injectable } from '@angular/core';
@Injectable()
export class MainService {
private environments = {
test: 'test',
live: 'live'
};
private environment = this.environments.live;
private mainURL: String = 'http://localhost:4200/rest/';
constructor() { }
public getMainURL() {
return ... |
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { LayoutModule } from '@angular/cdk/layout';
import { AppRoutingModule } from './app-routing.module';
import { HomeModule } from ... |
export const translations: { [key: string]: any } = {
CREATE_PROFILE: "Create Profile",
IMPORT: {
ERROR_STEP: {
DESCRIPTION:
"An error occurred while importing the profile, try importing again. Select Retry to re-import the profile. If the error occurs again, you can contact our support team.",
},
FORM_S... |
import { ModuleWithProviders, NgModule } from "@angular/core";
import { CookiesOptions } from "../cookies-options";
import {
CookiesOptionsService,
COOKIES_OPTIONS
} from "../cookies-options.service";
import { CookiesService } from "../cookies.service";
import { BrowserCookiesService } from "./browser-cookies.servi... |
import { bucketsSelector, storesSelector } from 'app/inventory/selectors';
import { emptyArray } from 'app/utils/empty';
import { itemCanBeInLoadout } from 'app/utils/item-utils';
import clsx from 'clsx';
import React from 'react';
import { useDrop } from 'react-dnd';
import { useSelector } from 'react-redux';
import {... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { ApiService } from './../../core/api.service';
import { UtilsService } from './../../core/utils.service';
import { FilterSortService } from './../../core/filter-sort.service';
import { Subscription }... |
// *** WARNING: this file was generated by pulumigen. ***
// *** 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";
/**
* ClusterRol... |
export interface Subscription {
unsubscribe(): void
}
export interface Subscriber<A> {
next(a: A): void
error(e: Error): void
complete(): void
}
export module Signal {
function of<A>(...as: A[]): Signal<A>
function empty<A>(): Signal<A>
function from<A>(iterable: Iterable<A> | ArrayLike<A>): Signal<A>
... |
import {readFileSync} from 'fs';
import {argv} from 'yargs';
// --------------
// Configuration.
export const ENV = argv['env'] || 'dev';
export const DEBUG = argv['debug'] || false;
export const PORT = argv['port'] || 5555;
export const LIVE_RELOAD... |
import { List, ListItem } from '@material-ui/core'
import Link from '@material-ui/core/Link'
import { observer } from 'mobx-react-lite'
import * as React from 'react'
import { md2react } from './md2react'
import { usePromise } from './usePromise'
const markdownContent = `
- [Celldemo](http://devinacker.github.io/celld... |
export function any<T>(arr: T[], func: Function) {
if (func === undefined) {
return true
}
for (let i: number = 0; i < arr.length; i++) {
if (func(arr[i])) {
return true
}
}
return false
} |
import { ESLintRule } from "../../../../ESLintRule";
import { RuleSet } from "../../../Debugging/RuleSet";
import { ScriptKind } from "../../../Debugging/ScriptKind";
import { RuleSuite } from "../../../Debugging/Suites/RuleSuite";
/**
* Provides tests for the {@link ESLintRule.NoOctalEscape `NoOctalEscape`} rule.
*... |
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class Customers extends BaseSchema {
protected tableName = 'customers'
public async up() {
this.schema.alterTable(this.tableName, (table) => {
table.boolean('is_corporate').defaultTo(false)
table.boolean('corporate_has_rep').defaultT... |
import { Actor } from "../bds/actor";
import { BlockSource } from "../bds/block";
import { Vec3 } from "../bds/blockpos";
import { Level } from "../bds/level";
import { procHacker } from "../bds/proc";
import { CANCEL } from "../common";
import { events } from "../event";
import { bool_t, float32_t, int32_t, void_t } f... |
const MAX = -1 >>> 0;
/**
* @class Random
* @see https://sbfl.net/blog/2017/06/01/javascript-reproducible-random/
*/
export class Random {
private x!: number;
private y!: number;
private z!: number;
private w!: number;
constructor(seed: number = Date.now()) {
this.resetSeed(seed);
}
/**
* 初期化... |
import { Component, OnInit } from '@angular/core';
import { AuthService } from '@auth0/auth0-angular';
@Component({
selector: 'app-new-component',
templateUrl: './new-component.component.html',
styleUrls: ['./new-component.component.css']
})
export class NewComponentComponent implements OnInit {
constructor(... |
import {
Component,
AfterViewInit,
ContentChildren,
QueryList,
ViewChildren,
ElementRef,
HostListener,
AfterContentInit
} from '@angular/core';
import { TabComponent } from './tab/tab.component';
@Component({
selector: 'rob-tabs',
templateUrl: './tabs.component.html',
styleUrls: ['./tabs.componen... |
import React from 'react';
import { BottomTabBar, BottomTabBarOptions, BottomTabBarProps } from '@react-navigation/bottom-tabs';
import { StyleSheet, View } from 'react-native';
import { COLORS } from '../../constants';
import { isIphoneX } from 'react-native-iphone-x-helper';
export const CustomTabBar = (props: Botto... |
export default {
moduleName: "roll-stats",
sadnessModuleName: 'sadness-chan',
dieTypes: ["d4", "d6", "d8", "d10", "d12", "d20", "d100"]
}; |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
AnsiHighlightOptions,
highlightCode,
} from "@internal/markup-syntax-highlight";
import {nonASCIIwhitespace} from "@int... |
import { Form } from "grommet";
import styled from "styled-components";
import { COLORS } from "../../ui-constants/colors";
import { FONT_SIZES, SPACES } from "../../ui-constants/sizes";
export const LoginTitle = styled.div`
font-size: ${FONT_SIZES.px30};
font-weight: bold;
color: ${COLORS.text};
margin-bottom... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_CL" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About blackdiamondcoin</source>
<translation>Sobre blackdiamondcoin</tr... |
import { all } from 'redux-saga/effects';
export default function* saga() {
yield all([]);
} |
import fileType from 'file-type'
import { createReadStream } from 'fs'
import { Adapter, assertProperty, Bot, camelCase, Dict, Logger, Quester, renameProperty, Schema, segment, snakeCase } from 'koishi'
import * as Telegram from './types'
import { AdapterConfig } from './utils'
const logger = new Logger('telegram')
c... |
import styled from "styled-components"
import { themeGet } from "styled-system"
import NewsletterBG from "../../images/newsletter-bg.png"
export const NewsletterWrapper = styled.div`
margin: 0 auto;
padding: 30px;
background-color: #f3f3f3;
background-image: url(${NewsletterBG});
background-size: cover;
ba... |
import { defaultErrorMessages } from '../../src/defaults';
import { disallowedExtensions } from '../../src/validators';
import { getFakeUploadedFile } from '../../src/utils';
describe('disallowedExtensions validator', () => {
it('should be with error message', () => {
expect(
disallowedExtensions(['mkv', '... |
import * as fs from 'fs'
import { GraphQLServer } from 'graphql-yoga'
import * as multer from 'multer'
import 'graphql-import-node'
import * as Schema from './schema.graphql'
import { Prisma as PrismaClient } from './generated/prisma-client'
import { Prisma as PrismaBinding } from './generated/prisma-binding'
import ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
namespace JustinCredible.SampleApp.Services {
/**
* Provides mock responses for HTTP requests.
*
* This can be useful for unit testing or demoing or developing applications
* without a live internet connection or access to the HTTP APIs.
*/
export class MockHttpApis {
//#regi... |
<TS language="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>
<trans... |
import { RestXmlProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestXmlProtocolClient";
import { XmlAttributesInputOutput } from "../models/models_0";
import {
deserializeAws_restXmlXmlAttributesCommand,
serializeAws_restXmlXmlAttributesCommand,
} from "../protocols/Aws_restXml";
impo... |
import type { Web3Provider } from '@ethersproject/providers';
import { useWeb3React } from '@web3-react/core';
import { useEffect, useState } from 'react';
export default function useENSName(address: string) {
const { library, chainId } = useWeb3React<Web3Provider>();
const [ENSName, setENSName] = useState('');
... |
// Pages exports
export { InsightsPage } from './pages/dashboard/InsightsPage'
// Core insights exports
export { InsightsApiContext } from './core/backend/api-provider'
export * from './core/analytics'
// Public Insights components
export { InsightsViewGrid } from './components'
export { InsightsRouter } from './Insi... |
// Type definitions for universal-hot-reload 2.0.2
// Project: https://github.com/yusinto/universal-hot-reload
// Definitions by: Yusinto Ngadiman <https://reactjunkie.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2.2
import { Configuration } from 'webpack';
/**
* G... |
import {RedisStorage} from './storages/RedisStorage';
import {FsJsonStorage} from './storages/FsJsonStorage';
import {MemoryStorage} from './storages/MemoryStorage';
import {ExpirationStrategy} from './strategies/ExpirationStrategy';
import {Cache} from './CacheDecorator';
export {Cache, ExpirationStrategy, MemoryStor... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { NameTranslationInput, LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: UpdateAttributeValueTran... |
import React, { useState, memo, useEffect } from 'react';
import { Table, Dialog, Button } from 'tdesign-react';
import { useAppDispatch, useAppSelector } from 'modules/store';
import { selectListSelect, getList, clearPageState } from 'modules/list/select';
import PageBox from 'components/PageBox';
import SearchForm fr... |
import { get, has } from 'lodash';
import React from 'react';
import type { Option } from 'react-select';
import type { IExecution, IPipeline, IPipelineTrigger } from '../../../../domain';
import { ExecutionBuildTitle } from '../../../executionBuild/ExecutionBuildTitle';
import type { ITriggerTemplateComponentProps } ... |
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { Component, DebugElement, ViewChild } from '@angular/core';
import { ComponentFixture, discardPeriodicTasks, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { NoopAnimationsMod... |
import { useSetState } from '../src/hooks/useSetState';
import { act, renderHook } from '@testing-library/react-hooks';
import { sleep } from './utils';
describe('useSetState', () => {
it('must receive an object as state, and can update state always use latest state like this.setState', function () {
const data ... |
// Copyright 2017-2022 @polkadot/app-staking authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveStakingAccount } from '@polkadot/api-derive/types';
import type { AccountId32 } from '@polkadot/types/interfaces';
import type { ListNode } from './types';
import { createNamedHook, useApi, u... |
import {BigNumber} from 'ethers';
import {expect} from '../../chai-setup';
import {setupPolygonSandClaim} from './fixtures';
import {waitFor} from '../../utils';
import {ethers} from 'hardhat';
describe('PolygonSandClaim', function () {
it('fetches the given amount of fake sand from user and transfers the same amoun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.