text stringlengths 10 953k |
|---|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DeepOnion</source>
<translation>About DeepOnion</translation>
</message>
<mes... |
import { G2PlotConfig } from './interface';
/**
* g2plot render function
* @public
*/
export async function g2plotRender(container: string | HTMLElement, data: any, libConfigs: G2PlotConfig) {
const { type, configs } = libConfigs;
const containerDOM = typeof container === 'string' ? document.getElementById(con... |
export { useUser } from "./use-user";
export { useSummary } from "./use-summary";
export { useProjects } from "./use-projects";
export { useLeaderBoard } from "./use-leaderboard";
export { useActivityChange } from "./use-activity-change";
export { usePrivateLeaderBoards } from "./use-private-leaderboards"; |
import {Component, Input, OnInit} from '@angular/core';
import {User} from '../../../../../models/user.model';
@Component({
selector: 'app-message',
templateUrl: './message.component.html',
styleUrls: ['./message.component.scss']
})
export class MessageComponent implements OnInit {
@Input()
userId: string;
... |
'use strict';
import {
GraphQLString,
GraphQLNonNull,
GraphQLObjectType,
} from 'graphql';
// tslint:disable-next-line:no-duplicate-imports
import { ModelsHashInterface as Models } from "sequelize";
import * as Sequelize from 'sequelize';
import * as express from 'express';
import * as graphqlHTTP from 'express-... |
/**
* @license
* Copyright Stbui All Rights Reserved.
* https://github.com/stbui/prophet
*/
const removeKey = (target, path) =>
Object.keys(target).reduce((acc, key) => {
if (key !== path) {
return Object.assign({}, acc, { [key]: target[key] });
}
return acc;
}, {});
c... |
import updateUserAvatarService from '@modules/users/services/UpdateUserAvatarService';
import { classToClass } from 'class-transformer';
import { Request, Response } from 'express';
import { container } from 'tsyringe';
export default class UsersAvatarController {
public async update(request: Request, response: Resp... |
import { render, screen } from '@testing-library/react';
import { Button } from './Button';
it('Button should render', () => {
const textContent = 'Hello button';
render(<Button>{textContent}</Button>);
const button = screen.getByRole('button');
expect(button).toHaveTextContent(textContent);
}); |
import { DeepLinker, normalizeUrl } from '../deep-linker';
import { UrlSerializer } from '../url-serializer';
import { mockApp, mockDeepLinkConfig, mockNavController, mockLocation,
mockTab, mockTabs, mockViews, mockView, noop,
MockView1, MockView2, MockView3 } from '../../util/mock-providers';
descr... |
[0].map((_): ([a: true]) => [true]); |
import React from 'react';
import ReactDOM from 'react-dom';
// styles
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring perfo... |
import { DocumentNode } from 'graphql';
import { Cache, DataProxy, ApolloCache, Transaction } from 'apollo-cache';
import {
getFragmentQueryDocument,
addTypenameToDocument,
} from 'apollo-utilities';
import { HeuristicFragmentMatcher } from './fragmentMatcher';
import {
OptimisticStoreItem,
ApolloReducerConf... |
import { NgModule } from '@angular/core';
import {
MatButtonModule,
MatIconModule,
MatToolbarModule,
MatProgressSpinnerModule,
MatDialogModule,
MatSnackBarModule,
MatSelectModule,
MatAutocompleteModule,
} from '@angular/material';
const MaterialImports = [
MatButtonModule,
MatIconModule,
MatToolb... |
import 'google-closure-library/closure/goog/i18n/datetimesymbolsext';
import alias = goog.i18n.DateTimeSymbols_id_ID;
export default alias; |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Theme} from 'types/preferences';
import {Dictionary} from 'types/utilities';
const Preferences: Dictionary<any> = {
CATEGORY_CHANNEL_OPEN_TIME: 'channel_open_time',
CATEGORY_CHANNEL_APPROXIM... |
import { NgxQRCodeModule } from '@techiediaries/ngx-qrcode';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { BackupIntroP... |
export = Strategy;
declare class Strategy {
constructor(options: Function,verify?: undefined);
_verify(username: string | Request | Strategy.I__req, password: string, done: Function | string): void;
}
declare namespace Strategy {
export interface I__options {
'usernameField'?: string;
'passwordField'?: string;... |
import EventEmitter from 'eventemitter3'
import WebSocket from 'ws'
import Queue from 'p-queue'
import { stringify } from 'qs'
import { Commands, Capabilities, BaseMessage } from '../twitch'
import createLogger, { Logger } from '../utils/logger'
import * as constants from './constants'
import baseParser from './uti... |
export interface ICreateUser {
email: string;
firstName: string;
lastName: string;
} |
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { ProductsPage } from '../products/products';
import { RegisterPage } from '../register/register';
import { ForgotPassPage } from '../forgot-pass/forgot-pass';
import {AuthService} from '../../provid... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AmChartsModule } from 'amcharts3-angular2';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { WhistleService } from './whistle/whistle.servi... |
import type { Handler } from './dispatcher';
import { Component, Property, PropertyDeclaration, Require } from '@simple-ecs/core';
import { InteractiveSystem } from './interactive.system';
/**
* Parse input events from interactive system to registered subscription
*/
@Require(InteractiveSystem)
export class Interac... |
import { AdapterRequest } from '@chainlink/types'
import { server as startServer } from '../../src'
import '@solana/web3.js'
import { mockSolanaViewFunctionResponse, mockTokenAllocationResponse } from './fixtures'
import http from 'http'
import request, { SuperTest, Test } from 'supertest'
import { AddressInfo } from '... |
import { browser, Key } from "protractor";
import { Atom } from "../../atom";
import { Animations, Helpers } from "../../helpers";
import { Camera } from "../../virtual-camera/Camera";
import { SelectV2Atom } from "./select-v2.atom";
const name: string = "Select-V2";
describe(`Visual tests: ${name}`, () => {
le... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-admindashboard',
templateUrl: './admindashboard.component.html',
styleUrls: ['./admindashboard.component.scss']
})
export class AdmindashboardComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { createStore, useStore as useVuexStore, Store } from "vuex"
import { RootState, StoreType } from "./types"
//导入子模块
import loginModule from "./login/login"
import systemModule from "./main/system/system"
import dashboardModule from "./main/analysis/dashboard"
//导入方法
import { getPageListData } from "@/network/... |
import { OrmText } from "./interfaces";
export class TypeOrmText extends OrmText {
idDecoratorName: string = "PrimaryGeneratedColumn";
normalDecoratorName: string = "Column";
m2mDecoratorName: string = "ManyToMany";
o2mDecoratorName: string = "OneToMany";
o2oDecoratorName: string = "OneToOne";
m2oDecorator... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About cruxby</source>
<translation>در مورد cruxby</translation>
</mess... |
export default (
directionScroll: number,
sizeScroll: number,
total: number,
size: number
) => {
const translateNode = Math.floor(directionScroll / size);
const startNode = Math.max(0, translateNode);
const visibleColumnCount = Math.ceil(sizeScroll / size);
const visibleNodeCount = Math... |
import { View } from '@tarojs/components'
import * as utils from '../wxs/utils'
import { RadioGroupProps } from '../../types/radio-group'
import RadioGroupContext from './context'
export function RadioGroup(props: RadioGroupProps) {
const {
value = null,
direction = 'vertical',
disabled = false,
onC... |
import { ServiceInputTypes, ServiceOutputTypes, SnowballClientResolvedConfig } from "../SnowballClient";
import { GetJobUnlockCodeRequest, GetJobUnlockCodeResult } from "../models/models_0";
import {
deserializeAws_json1_1GetJobUnlockCodeCommand,
serializeAws_json1_1GetJobUnlockCodeCommand,
} from "../protocols/Aws... |
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import { UserConfirmation } from 'components/register-page/register-form';
import getCore from 'cvat-core-wrapper';
const cvat = getCore();
export enum AuthActionTypes {
... |
<TS language="sv" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Höger klicka för att ändra adress eller beteckning</translation>
</message>
<message>
<source>Create a new address</source>
... |
export { EAlignment as EPositionerAlignment } from './alignment';
export { Positioner } from './Positioner'; |
/**
* Node settings.
*/
export interface NodeSetting extends Partial<Record<string, unknown>> {
allowModules?: string[];
resolvePaths?: string[];
tryExtensions?: string[];
}
/**
* Node settings.
*/
export interface NodeSettings {
/**
* Node settings.
*/
node?: NodeSetting;
} |
declare const _default: import("vue").DefineComponent<{
title: {
type: StringConstructor;
default: () => string;
};
content: {
type: StringConstructor;
default: string;
};
}, {
handleClick: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("v... |
export * from './Project';
export * from './Company';
export * from './Skill'; |
import { IUserView } from "../../common/IUserView";
export interface ICommentView {
content: string;
author: IUserView;
date: Date;
} |
import { MatrixRoom, RemoteRoom, MatrixUser } from "matrix-appservice-bridge";
import { IChatJoinProperties } from "../bifrost/Events";
export const MROOM_TYPE_UADMIN = "user-admin";
export const MROOM_TYPE_IM = "im";
export const MROOM_TYPE_GROUP = "group";
export const MUSER_TYPE_ACCOUNT = "account";
export const M... |
import { PrismaService } from './prisma.service'
const prisma = new PrismaService()
export default prisma |
// Type definitions for serverless 1.18
// Project: https://github.com/serverless/serverless#readme
// Definitions by: Hassan Khan <https://github.com/hassankhan>
// Jonathan M. Wilbur <https://github.com/JonathanWilbur>
// Alex Pavlenko <https://github.com/a-pavlenko>
// Definitions: ht... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { DOMWidgetView } from '@jupyter-widgets/base';
import { CoreDOMWidgetModel } from './widget_core';
export class ImageModel extends CoreDOMWidgetModel {
defaults(): Backbone.ObjectHash {
return {
... |
import * as React from 'react';
import { Image, Layout } from 'antd';
import { Link } from 'react-router-dom';
import styled, { useTheme } from 'styled-components';
import { SearchBar } from './SearchBar';
import { ManageAccount } from '../shared/ManageAccount';
import AnalyticsLink from './AnalyticsLink';
import { Au... |
import auth from '../../GraphAuth';
import config from '../../../../config';
import commands from '../../commands';
import * as request from 'request-promise-native';
import GlobalOptions from '../../../../GlobalOptions';
import {
CommandOption, CommandValidate
} from '../../../../Command';
import Utils from '../../.... |
version https://git-lfs.github.com/spec/v1
oid sha256:24ebd1118c02b0fc1671fc94889cca26a7885643eb1126cc3f4bd71f94cd59eb
size 354568 |
import { UserDocumentType } from "../../fakeDB/data/users";
import { ModelsType } from "../../models";
import { LoginWithGoogleInput } from "../../types/graphql";
export const Google = {
login: async (
token: string,
data: LoginWithGoogleInput,
models: ModelsType
): Promise<UserDocumentType> => {
c... |
declare const describe;
declare const it;
declare const expect;
import Validator from '../Validator';
import Ref from '../utils/Ref';
import Storage from '../utils/Storage';
describe('anyOf keyword', () => {
it('Some integration tests', async () => {
const validator = new Validator(
{
anyOf: [
... |
/*
* 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.
*/
/* eslint-disable @typescript-eslint/no-empty-interface */
import * as runti... |
export default function convertHourToMinutes(time: string) {
//função que transforma horas em minutos para usar no horário de inicio e término das aulas
const [hour, minutes] = time.split(':').map(Number)
const timeInMinutes = (hour * 60) + minutes
return timeInMinutes
} |
import { browser, by, element } from 'protractor';
export class ContactPage {
navigateTo() {
return browser.get('/contact');
}
async getCodeResponse() {
return await element(by.css('app-contact code')).getText();
}
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sah" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Gpu</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39... |
import React from 'react';
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
import Fade from 'react-reveal/Fade';
import BaseText from 'shared/components/Base/BaseText';
import ClaimImage from 'shared/components/Claim/ClaimImage';
import ClaimIndicators from 'shared/components/Claim/ClaimIndicator... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { UserRoutingModule } from './user-routing.module';
import { SharedModule } from '../shared/shared.module';
import { UserComponent } from './user.component';
import { UserCardComponent } from './components/user-card/user-c... |
import {Schema} from 'express-validator';
export const postValidator : Schema = {
postAppUserId: {
isUUID: {
errorMessage: 'please provide a valid postAppUserId'
}
},
postWomanId: {
isUUID: {
errorMessage: 'please provide a valid postWomanId'
}
},... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { GraphQLScalarType, Kind, GraphQLError } from 'graphql';
import { validateLocalTime } from './LocalTime';
const LOCAL_END_TIMES = ['24:00', '24:00:00', '24:00:00.000'];
function validateLocalEndTime(value: any) {
// first check if it's any of the special "end time" values
if (LOCAL_END_TIMES.indexOf(value... |
import { INSSInput } from "../models/inss-input";
import { REGRAS_INSS } from "./regras-inss";
export function calcularINSS({ salario }: INSSInput): number {
const regra = REGRAS_INSS.find(r => r.canHandle(salario));
return regra?.handle(salario) ?? 0;
} |
/*
* Copyright 2018 Balena.io
*
* 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 ... |
import React from 'react';
import { LIST_ITEM_SIZE } from '@paper/enums';
export type ListItemPropsType = {
children: React.ReactNode;
size?: LIST_ITEM_SIZE;
className?: string;
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
}; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Moderdonio</source>
<translation>Acerca de Moderdonio</translation>
... |
import React from 'react';
import { Trans } from '@lingui/macro';
import FarmCard from '../../farm/card/FarmCard';
import useWallet from '../../../hooks/useWallet';
import useCurrencyCode from '../../../hooks/useCurrencyCode';
import { mojo_to_kale_string } from '../../../util/kale';
type Props = {
wallet_id: number... |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect, Path } from "react-native-svg";
import { IconProps } from '../lib'
function ArrowLineUpLeft(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size}
fill={props.color} {...props}><Rect width={256} height={25... |
import { Logger } from '../../lib/logger/logger';
export class StringLogger extends Logger {
public string: string = '';
debug(message?: string): void {
this.string += message + '\n';
}
info(message?: string): void {
this.string += message + '\n';
}
warn(message?: string): void {
this.string... |
/*!
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import * as vscode from 'vscode'
import { getLogger, showLogOutputChannel } from '../../shared/logger'
import { localize } from '../../shared/utilities/vsCodeUtils'
import { Window } from '../../sh... |
import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
export declare const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
export declare const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
export declare const ENDPOINT_MODE_CONFIG_OPTIONS: LoadedConfigSelectors<s... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="it_IT">
<context>
<name>CueModel</name>
<message>
<location filename="../cuemodel.cpp" line="43"/>
<source>Track</source>
<translation type="unfinished"></translation>
</message>
<message>
<l... |
import { GradleTaskTreeItem } from '../views';
import { runTask } from '../tasks/taskUtil';
export const COMMAND_RUN_TASK = 'gradle.runTask';
export async function runTaskCommand(
treeItem: GradleTaskTreeItem
): Promise<void> {
if (treeItem && treeItem.task) {
await runTask(treeItem.task);
}
} |
import { register } from '~/theme/icons/sheet';
register(
`<symbol id="fa/duotone/terminal" viewBox="0 0 640 512"><path d="M640 421.34v32a24 24 0 0 1-24 24H312a24 24 0 0 1-24-24v-32a24 24 0 0 1 24-24h304a24 24 0 0 1 24 24z" class="s"/><path d="M29.7 464.66L7 442a24 24 0 0 1 0-33.9l154-154.76L7 98.6a24 24 0 0 1 0-33.9... |
export * from './HashSelector' |
import * as React from 'react';
import { DialogContentBase } from './DialogContent.base';
import { IButtonProps } from '../Button/Button.types';
import { ResponsiveMode } from '../../utilities/decorators/withResponsiveMode';
import { IStyle, ITheme } from '../../Styling';
import { IRefObject, IStyleFunctionOrObject } f... |
/** @license
* Copyright 2018 Esri
*
* 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 t... |
import React from 'react';
import { Box, Text } from 'ink';
import { Step, StepStatus } from '../types';
interface PropTypes {
steps: Step[];
}
const getColor = (status: StepStatus) => {
if (status === StepStatus.Done) {
return { bgGreen: true };
}
if (status === StepStatus.Fail) {
return { bgRed: true };
}
... |
import TextField from "@material-ui/core/TextField";
import { useEffect, useState } from "react";
import { FormElement } from "../../../../src/generated/graphql";
import { ReportStateFunction } from "./BaseFormElement";
export interface LongAnswerProps {
formElement: FormElement;
reportState?: ReportStateFunction;... |
import { RenderHqImageModule } from './render-hq-image.module';
describe('RenderHqImageModule', () => {
let renderHqImageModule: RenderHqImageModule;
beforeEach(() => {
renderHqImageModule = new RenderHqImageModule();
});
it('should create an instance', () => {
expect(renderHqImageModule).toBeTruthy(... |
import { gqlSdk } from '@/utils/gqlSDK';
import { Response } from 'express';
import {
ContainerTypes,
ValidatedRequest,
ValidatedRequestSchema,
} from 'express-joi-validation';
import { authenticator } from 'otplib';
type BodyType = {
code: string;
activeMfaType: null | 'totp'; // | 'sms';
};
interface Sche... |
import { Component, OnInit } from '@angular/core';
import { UsuarioService } from '../../shared/service/usuario.service';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import Swal from 'sweetalert2';
@Component({
selector: 'app-borrar-usuario',
templateUrl: './borrar-usuario.component.html'
... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { MatDialogModule } from '@angular/material';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FormsModule } from '@angular/forms';
import { HttpC... |
import * as path from 'path';
import { readFile } from 'fs-extra';
import { Resources } from 'core/resources';
import { BaseGenerator } from 'core/catalog/types';
import PlatformDotNet, { PlatformDotNetProps } from 'generators/platform-dotnet';
import { insertAfter, insertBefore } from 'core/template/transformers/ins... |
import {ApiService} from '../../../../core/http/api.service';
import {Injectable} from '@angular/core';
@Injectable()
export class InsuranceInsuredService {
url = 'razitenderinquery/api/Inquery/';
constructor(private service: ApiService<any>) {
}
getGridData() {
return this.service.post(this.url + 'GetAl... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr_CA" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Pinkcoin</source>
<translation>Au sujet de Pinkcoin</translation>
</message>
<message>
... |
import Stripe = require('stripe');
import { customers } from 'stripe';
const stripe = new Stripe("sk_test_BF573NobVn98OiIsPAv7A04K");
stripe.setApiVersion('2019-05-16');
stripe.setAppInfo(); // $ExpectType void
// $ExpectType void
stripe.setAppInfo({
name: 'DefinitelyTyped',
});
stripe.setTelemetryEnabled(true)... |
import { Future } from '@quenk/noni/lib/control/monad/future';
import { Path } from '@quenk/noni/lib/io/file';
import { Context } from '../project/context';
import { Project } from '../project';
import { Client, Url } from './';
/**
* AutoClient tries all the other clients in succession until one works.
*/
export dec... |
/**
* @file i18n をグローバルにセットする
*/
import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
// WIP: i18n が効いていない
export default ({ app, store }): void => {
// Set i18n instance on app
// This way we can use it in middleware and pages asyncData/fetch
app.i18n = new VueI18n({
locale: store.state... |
//------------------------------------------------------------------------------
//----- Resource ---------------------------------------------------------------
//------------------------------------------------------------------------------
//-------1---------2---------3---------4---------5---------6---------7-----... |
version https://git-lfs.github.com/spec/v1
oid sha256:f9c5c7e81481870ae23432619ca77e17786d9aad8ff7e223c8a39ee3117e3c5d
size 864048 |
import { defineRule, configure } from 'vee-validate'
import { required, email } from '@vee-validate/rules'
import { localize } from '@vee-validate/i18n'
import en from '@vee-validate/i18n/dist/locale/en.json'
import ja from '@vee-validate/i18n/dist/locale/ja.json'
import { UserModule } from '@/types'
import { messages ... |
import { Dropdown, Menu } from 'antd'
import React from 'react'
import styled from 'styled-components'
import { networks } from '../../constants/networks'
import { ChainIds, ChainId } from '../../connectors/index'
import { ChainDirection } from '../ChainBridge'
import { ChainBridgeType } from '../../pages/bridge/confir... |
import { useEffect, useState } from 'react';
import * as _ from 'lodash';
import { getFolderUriByWorkspaceId } from '@renderer/utils/ipc/workspaceIpcUtils';
export const useWorkspaceUri = (workspaceId: string) => {
const [uri, setUri] = useState(null);
useEffect(() => {
(async () => {
const response = aw... |
import React from 'react';
const cloudIcon = (fill: string, size: number) => (
<svg
aria-hidden="true"
data-testid="test-icon"
fill="none"
height={size}
viewBox="0 0 24 24"
width={size}
xmlns="http://www.w3.org/2000/svg"
>
<title>cloud icon</title>
<path
fillRule="evenodd"... |
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import * as path from "path";
import vueJsx from "@vitejs/plugin-vue-jsx";
import dts from "vite-plugin-dts";
import pkg from "./package.json";
const deps = Object.keys(pkg.dependencies);
const external = function (id: string) {
return /^vu... |
import { StackActions, NavigationActions, NavigationNavigateActionPayload } from "react-navigation";
export const clearNavigationHistory = (routeName: string, params?: any) => {
const resetAction = StackActions.reset({
index: 0,
actions: [NavigationActions.navigate({ routeName, params, } )],
})... |
import { LifecycleValue } from '../../common/enums/LifecycleValue'
import { defineQuery, getComponent } from '../../ecs/functions/ComponentFunctions'
import { InputComponent } from '../components/InputComponent'
import { LocalInputTagComponent } from '../components/LocalInputTagComponent'
import { InputType } from '../... |
import * as React from 'react';
import Icon, { IIcon } from '../Icon';
import svg from '../svg/address-card.svg';
export const AddressCard: React.FC<IIcon> = (props) => {
return <Icon src={svg} {...props} />;
};
// noinspection JSUnusedGlobalSymbols
export default AddressCard; |
import {Injectable} from '@angular/core';
/*import {EXAMPLE_COMPONENTS} from '@angular/components-examples';
export interface AdditionalApiDoc {
name: string;
path: string;
}
export interface ExampleSpecs {
prefix: string;
exclude?: string[];
}
*/
export interface DocItem {
/** Id of the doc item. Used in t... |
import React from 'react';
import Navbar from '../Navbar/Navbar';
import { ThemeProvider } from 'styled-components';
import theme from './../../globalStyles/theme';
export interface LayoutProps {}
const Layout: React.FC<LayoutProps> = ({ children }) => {
return (
<ThemeProvider theme={theme}>
<Navbar />
... |
import { PopoverConfig } from './popover.config';
export declare class PopoverContainerComponent {
placement: string;
title: string;
readonly isBs3: boolean;
constructor(config: PopoverConfig);
} |
export { default as Hero } from './hero'
export { default as OurValues } from './our-values'
export { default as Numbers } from './numbers'
export { default as ImageGallery } from './image-gallery/index'
export { default as Partners } from './partners' |
import { useState } from "react"
import { useDispatch } from "react-redux"
import { ActionGroup, Button, Form, FormGroup, TextInput } from "@patternfly/react-core"
import NotificationMethodSelect from "../../components/NotificationMethodSelect"
import Api from "../../api"
import { dispatchInfo, dispatchError } from ".... |
import {GraphRequest} from "./GraphRequest"
import {GraphRequestCallback, GraphError} from "./common"
export class ResponseHandler {
static init(err, res, callback:GraphRequestCallback):void {
if (res && res.ok) { // 2xx
callback(null, res.body, res)
} else { // not OK response
if (er... |
export function sleep(value: number): Promise<void> {
return new Promise((resolve) => {
setTimeout(resolve, value);
});
}
export function normalizeMimeType(type: string | null): string | null {
if (type) {
return type
.split(/;/)[0]
.trim()
.toLocaleLowerCase();
} else {
return ty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.