text stringlengths 10 953k |
|---|
import * as d from '../../declarations';
export declare function buildCoreContent(config: d.Config, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, coreBuild: d.BuildConditionals, coreContent: string): Promise<string>;
export declare function minifyCore(config: d.Config, compilerCtx: d.CompilerCtx, sourceTarget: d.So... |
<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</sourc... |
//import { GlobalSQLite } from '../GlobalSQLite';
import type {
capSQLiteVersionUpgrade,
JsonSQLite,
} from '../../../src/definitions';
import { ExportToJson } from './ImportExportJson/exportToJson';
import { ImportFromJson } from './ImportExportJson/importFromJson';
import { UtilsJson } from './ImportExportJson/u... |
import { Component, ViewChild } from '@angular/core';
import { IgxDialogComponent } from '@infragistics/igniteui-angular';
import { LoginService } from '../../../services/login.service';
import { UserLogin } from '../../../models/userlogin';
import { Router } from '@angular/router';
@Component({
selector: 'bg-login-... |
import { RouteProp } from '@react-navigation/native';
import { StackNavigationProp } from '@react-navigation/stack';
import { distance } from 'geokit';
import { round } from 'lodash';
import React, { useCallback, useEffect, useMemo } from 'react';
import { View, Text } from 'react-native';
import { useSelector } from '... |
/* Autogenerated by @sbb-esta/angular-icons schematics */
// tslint:disable
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
@Component({
selector: 'svg[sbbIconProductIc]',
template: `
<svg:g fill="none" fill-rule="evenodd">
<svg:rect width="59" height="20" fill="#EB0000" rx=... |
import React, { useState } from 'react';
import { Trans } from '@lingui/macro';
import { Amount, Form, AlertDialog, Back, Card, Flex, ButtonLoading } from '@littlelambocoin/core';
import {
Typography,
Button,
Box,
TextField,
Tooltip,
} from '@material-ui/core';
import {
createState,
} from '../../../modules... |
import { AudioManager } from "../audio";
import { ResourceManager, DirectoryStructure } from "../resources";
import { MisParser, MissionElementType, MissionElementScriptObject, MisFile } from "../parsing/mis_parser";
import { setupButton } from "./ui";
import { Util } from "../util";
import { homeScreenDiv } from "./ho... |
// Copyright The Linux Foundation and each contributor to CommunityBridge.
// SPDX-License-Identifier: MIT
import { Component, OnInit, ViewChild, TemplateRef, Renderer2, ElementRef } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { NgbModal, NgbModalRef } from '@ng-bo... |
import { HttpException } from '@neskjs/common';
import { HttpStatus } from '@neskjs/common';
export class ForbiddenException extends HttpException {
constructor() {
super('Forbidden', HttpStatus.FORBIDDEN);
}
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Copyright 2017-2021 @polkadot/apps, UseTech authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './styles.scss';
import type { NftCollectionInterface } from '@polkadot/react-hooks/useCollection';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import Header from 'semantic... |
import React from "react";
import styled from "@emotion/styled";
interface PropsType {
disabled: boolean;
}
const InputHeader: React.FC<PropsType> = ({ children, disabled }) => {
return (
<Wrapper disalbed={disabled}>
<p className='text'>{children}</p>
<p className='required'>*</p>
</Wrapper>
... |
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEventType } from '@angular/common/http';
import { tap } from 'rxjs/operators';
export class AuthInterceptorService implements HttpInterceptor {
intercept(req: HttpRequest<any>, next: HttpHandler) {
// console.log('request is on its way');
// c... |
import ConfirmScreen from './ConfirmScreen';
export default ConfirmScreen; |
import Brightness4 from "@mui/icons-material/Brightness4";
import Brightness7 from "@mui/icons-material/Brightness7";
import { LocalizationProvider } from "@mui/lab";
import MomentAdapter from "@mui/lab/AdapterMoment";
import { Box, createTheme, CssBaseline, IconButton, TableContainer, ThemeProvider } from "@mui/materi... |
import React, { useState, ReactElement, useContext, useMemo, useCallback } from "react";
import Web3Modal from "web3modal";
import { StaticJsonRpcProvider, JsonRpcProvider, Web3Provider } from "@ethersproject/providers";
import WalletConnectProvider from "@walletconnect/web3-provider";
import { getMainnetURI } from "./... |
import { KeyValueStore, BatchOperation } from '@cryptoeconomicslab/db'
import { Bytes } from '@cryptoeconomicslab/primitives'
import { InMemoryKeyValueStore } from '../src'
const testDbName = Bytes.fromString('root')
const testDbKey = Bytes.fromString('aaa')
const testDbValue = Bytes.fromString('value')
describe('InM... |
import { createSelector } from '@ngrx/store';
import { ExamplesState, selectExamples } from '../examples.state';
export const selectJeuxState = createSelector(
selectExamples,
(state: ExamplesState) => state.jeux
);
export const selectJeuTour = createSelector(
selectJeuxState,
state => state.entities
);
ex... |
import React, { ReactElement } from 'react';
import useLaunchState from '~/logic/state/launch';
import { WeatherState } from '~/types';
import ClockTile from './tiles/clock';
import WeatherTile from './tiles/weather';
const Tiles = (): ReactElement => {
const weather = useLaunchState(state => state.weather) as Weath... |
import { AsyncIterableX } from '../asynciterablex';
import { MonoTypeOperatorAsyncFunction } from '../../interfaces';
export class TakeLastAsyncIterable<TSource> extends AsyncIterableX<TSource> {
private _source: AsyncIterable<TSource>;
private _count: number;
constructor(source: AsyncIterable<TSource>, count: ... |
/*!
* @license
* Copyright 2019 Alfresco Software, 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 app... |
import { injectable, inject } from 'tsyringe';
import AppError from '@shared/errors/AppError';
import IUsersRepository from '../repositories/IUsersRepository';
import User from '../infra/typeorm/entities/User';
interface IRequest {
user_id: string;
}
@injectable()
class ShowProfileService {
constructor(
@inj... |
import { createContext, ReactNode, useContext, useEffect, useState } from "react";
import { ChallengesContext } from "./ChallengesContext";
interface CountdownContextData {
minutes: number;
seconds: number;
hasFinished: boolean;
isActive: boolean;
startCountdown: () => void;
resetCountdown: () ... |
import { useState } from 'react'
import '../styles/tasklist.scss'
import { FiTrash, FiCheckSquare } from 'react-icons/fi'
interface Task {
id: number;
title: string;
isComplete: boolean;
}
export function TaskList() {
const [tasks, setTasks] = useState<Task[]>([]);
const [newTaskTitle, setNewTaskTitle] = ... |
import React, {
ChangeEvent, FormEvent, useEffect, useState,
} from 'react';
import CircularProgress from '@material-ui/core/CircularProgress';
import FormControl from '@material-ui/core/FormControl';
import Select from '@material-ui/core/Select';
import InputLabel from '@material-ui/core/InputLabel';
import MenuIt... |
import { Connection, EntityManager, IDatabaseDriver } from "@mikro-orm/core";
type MyContext = {
em: EntityManager<any> & EntityManager<IDatabaseDriver<Connection>>
};
export{
MyContext
}; |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Hobby from "@components/Resume/Hobby"
import Elements from '@components/Resume/Elements'
const Hobbies = () => {
const data = useStaticQuery(graphql`
query {
hobbies: allMarkdownRemark(
filter: { frontmatter: { key: { eq: ... |
import React from 'react';
import { Link } from 'react-router-dom';
//styles
import { Image } from './Thum.styles';
//Types
type Props = {
image: string;
movieId?: number;
clickable: boolean;
}
const Thumb: React.FC<Props> = ({ image, movieId, clickable }) => (
<div>
{clickable ? (
<Link to={`/${mo... |
import type { Fn0 } from "@thi.ng/api";
import { sin } from "@thi.ng/dsp";
import { group, polyline } from "@thi.ng/geom";
import { start } from "@thi.ng/hdom";
import { canvas } from "@thi.ng/hdom-canvas";
import { mulV23 } from "@thi.ng/matrices";
import { GRAY8, imagePromise, PackedBuffer } from "@thi.ng/pixel";
imp... |
export {};
let mongoose = require('mongoose');
const playerSchema = new mongoose.Schema({
username: String,
score: Number
});
module.exports = mongoose.model('Player', playerSchema); |
import fs from 'fs';
import path from 'path';
type SaveContentToFileProps = (
outputContent: string,
contentPath: string
) => void;
export const saveContentToFile: SaveContentToFileProps = (
content,
filePath
) => {
const directory = path.parse(filePath).dir;
fs.mkdirSync(directory, { recursive: true });... |
import { fakeAsync, ComponentFixture } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import { createTestContext } from '@delon/testing';
import { configureSFTestSuite, SFPage, TestFormComponent } from '../../../spec/base.spec';
import { SFSchema } from '../../schema';
import { CheckboxWid... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.16.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
import * as tf from '@tensorflow/tfjs'
import { System } from './system'
/**
* Policy network for controlling the cart-pole system.
*
* The role of the policy network is to select an action based on the observed
* state of the system. In this case, the action is the leftward or rightward
* force and the observed... |
import { Request, Response } from "express";
import ffprobe from "../commands/ffprobe";
import { ffprobeDTO } from "../dtos/ffprobeDTO";
import { toDTO } from "../mappers/ffprobeMap";
import { validationResult } from "express-validator";
export const getMetaData = async (req: Request, res: Response) => {
try {
... |
import {DOCUMENT} from '@angular/common';
import {Inject, Injectable} from '@angular/core';
import {NavigationEnd, NavigationStart, Router} from '@angular/router';
import {BehaviorSubject, NEVER, Observable, of} from 'rxjs';
import {
catchError,
filter,
first,
map,
pluck,
shareReplay,
switchMap,
take,
... |
import {ObjectId} from 'mongodb';
import {Request} from 'express';
import {hasIn, isObject, isString} from 'lodash';
import {IRequestModel} from '../../interfaces';
import {CollectionStore} from "..";
/**
* holds the Request Parameter
*
* @export
* @class RequestModel... |
import {
getLoginController,
postLoginController,
getLogoutController,
authController,
} from "../controllers";
import * as tokenService from "../json-web-token";
import * as notifyService from "server/services/govuk-notify";
import * as userModel from "server/models/user";
import { getServer } from "server/ser... |
import { Redis } from 'ioredis';
import { ObjectID } from 'mongodb';
import { userSessionIdPrefix, redisSessionPrefix } from '../constants';
export const removeAllUserSessions = async (userId: ObjectID, redis: Redis) => {
const sessionIds = await redis.lrange(`${userSessionIdPrefix}${userId}`, 0, -1);
const promise... |
/**
* hash冲突后,开放定址法:线性探查法、平方探查法、伪随机序列法、双哈希函数法 解决冲突问
* 遇到冲突,将冲突的数据依次往后挪位置,直到挪到没有数据的地方为止
*/
export default class ArrayHash {
private keyMap: any;
private buckts: any;
private length: number;
constructor (len: number = 15) {
this.length = len;
this.keyMap = new Map();
this.buckts = new Array(len);... |
import { flow } from 'lodash';
import joi, { ValidationResult } from 'joi';
import { SchemaValidationError } from './errors';
export const middleware = (...parameters: any[]) => (root?: any, args?: any, context?: any, info?: any) => {
const resolver = parameters[parameters.length - 1];
flow([...parameters.slice(0... |
/* Copyright 2020 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... |
import { conn } from './connect';
import { Fin, Identity } from '../src/main';
import * as assert from 'assert';
import { cleanOpenRuntimes } from './multi-runtime-utils';
describe('ExternalApplication.', () => {
let testExtAppIdentity: Identity;
let fin: Fin;
before(async () => {
await cleanOpenRu... |
import { BadRequestException, Injectable, Logger } from '@nestjs/common';
import { compare } from 'bcrypt';
import { UsersMapper } from 'src/users/mapper/users.mapper';
import { User } from 'src/users/schemas/users.schema';
import { UsersService } from 'src/users/users.service';
import { IsUnregisteredEmailValidator } ... |
/**
* @license
* Copyright Google Inc. 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 ts from 'typescript';
import {getDeclaration, makeProgram} from '../../testing/in_memory_typescript';
i... |
/**
* @author X·M
* @date 2022-01-15 09:12:38
*/
import { Dependencies, Tool, Feedback, Questions } from '../'
const TOOL_NAME = 'vite'
export default class Vite extends Tool {
readonly toolName = TOOL_NAME
configFile = 'vite.config.js'
feedback: Feedback = {
enable: true,
}
dependencies: Dependenci... |
import { Component } from '@angular/core';
import { NgForm } from '@angular/forms';
import { ReCaptchaV3Service } from 'ng-recaptcha';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
constructor(private recaptchaV3Serv... |
import * as React from "react";
import cx from "classnames";
import { withFormsy } from "formsy-react";
import { Column } from "ui/Layout";
import "./style.scss";
import * as style from "./style.scss";
type StringOrBool = string | boolean;
export interface ILabel {
text?: StringOrBool;
error?: StringOrBool;
... |
import React, { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import {
formatTokenAmount,
CountdownState,
PriceFloorType,
fromLamports,
useMint,
} from '@oyster/common';
import {
AuctionView,
AuctionViewState,
useArt,
useBidsForAuction,
} from 'hooks';
import { AmountLab... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import ReactDOM from "react-dom"
import React from "react"
import { createClient, fetchExchange, Provider as UrqlProvider } from "urql"
import ReduxStore from "./redux/store"
import { Provider as ReduxProvider } from "react-redux"
import App from "./app"
import { ThemeProvider, CssBaseline } from "@material-ui/core"
i... |
import * as Matter from 'matter-js';
// This removes a constraint from the world.
export function deleteConstraint(ms: any, theConstraint: any) {
for (let x:number = ms.worldObjects.length - 1; x >= 0; x = x - 1) {
if (ms.worldObjects[x].constraint !== undefined) {
if (theConstraint.constraint.id === ms.wo... |
import { useUsername } from "./useUsername";
import { Effect, Hook, Store } from "@react-store/core";
@Store()
export class HooksStore {
// @Hook(() => useParams().id)
userId: string = "amir";
// @Param("id")
xId: string;
@Hook((st: HooksStore) => useUsername(st.userId))
username: string;
// @AutoEffe... |
import { motion } from 'framer-motion';
import {
mainPathVariant,
shapeVariations,
fadeInUp,
stagger
} from '@/lib/config/animations/svgs/svgs';
const Col2 = () => {
return (
<motion.div
className='animationParent'
initial='initial'
animate='animate'
exit={{ opacity: 0 }}
va... |
import { BoundaryComponent } from './boundary';
import { BridgesComponent } from './bridges';
import { CacheInterceptor } from './cache';
import { ClipComponent } from './clip';
import { ContoursComponent } from './contours';
import { CulvertsComponent } from './culverts';
import { DefsComponent } from './defs';
import... |
import { useState } from 'react';
import { Col, Space } from 'antd';
import { Radio, RadioGroup, RadioButton, RadioChangeEvent } from 'components/common/Radio/Radio';
import { Button } from 'components/common/buttons/Button/Button';
import { useTranslation } from 'react-i18next';
import * as S from '../UIComponentsPage... |
version https://git-lfs.github.com/spec/v1
oid sha256:f79e598a09ffb1eed013e5b1a98874acbf18724ef05ed3668237f01ebf6dc712
size 272036 |
import { PluginManifest } from './utils/types';
import ViewController from './ViewController';
import shim from 'lib/shim';
import { ViewHandle } from './utils/createViewHandle';
import { ContentScriptType } from './api/types';
import Logger from 'lib/Logger';
const EventEmitter = require('events');
interface ViewCont... |
import { IFormulaSheet } from "../../../Types/character"
import { basicDMGFormula } from "../../../Util/FormulaUtil"
export const data = {
normal: {
hitArr: [
[27.54, 29.42, 31.3, 33.8, 35.68, 37.87, 40.69, 43.51, 46.32, 49.14, 51.96, 54.78, 57.59, 60.41, 63.23],//1 hits twice
[56.94, 60.82, 64.7, 69... |
import 'angular2-meteor-polyfills';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { BrowserModule } from '@angular/platform-browser';
import { MaterialModule } from '@angular/material';
import { AppModule } from './imports/app/app.module';
import '../both/methods/parties.methods';
i... |
/* IMPORT */
import * as fs from 'fs';
import * as path from 'path';
import sanitize from 'sanitize-basename';
import {Options, Result} from './types';
import Blacklist from './blacklist';
import Utils from './utils';
/* GET UNUSED PATH */
function getUnusedPath ( options: Options ): Promise<Result> {
const maxAt... |
// *** 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! ***
// Export members:
export * from "./applicationGateway";
export * from "./applicationSecurityGroup";
export * from "./azureFirewall";
export * from "./bastionHost";... |
import React from 'react'
import { ComponentStory } from '@storybook/react'
import Rate from '.'
export default {
title: 'modern/Rate',
component: Rate,
argTypes: {
value: {
name: 'value',
type: { name: 'number', required: true }
}
}
}
const Template: ComponentStory<typeof Rate> = (args) =... |
import ChatAbstractServerMessage from "./ChatAbstractServerMessage";
export default class ChatServerMessage extends ChatAbstractServerMessage {
public senderId: number;
public senderName: string;
public senderAccountId: number;
constructor(channel = 0, content = "", timestamp = 0, fingerprint = "",
... |
import { rest } from 'msw';
export const libHandlers = [
rest.get('http://example.com/echo', (req, res, ctx) => res(ctx.json({ ...req, headers: req.headers.all() }))),
rest.post('http://example.com/echo', (req, res, ctx) => res(ctx.json({ ...req, headers: req.headers.all() }))),
rest.get('http://example.com/succ... |
import { getTimestampFromDate } from './utils';
import { statSync } from 'fs';
import { create, XMLElement } from 'xmlbuilder';
import {
ChangeFreqInvalidError,
InvalidAttr,
InvalidAttrValue,
InvalidNewsAccessValue,
InvalidNewsFormat,
InvalidVideoDescription,
InvalidVideoDuration,
InvalidVideoFormat,
... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PreviewFormComponent } from './preview-form.component';
describe('PreviewFormComponent', () => {
let component: PreviewFormComponent;
let fixture: ComponentFixture<PreviewFormComponent>;
beforeEach(async () => {
await TestBed.confi... |
export interface LogoProps {
size: string
} |
import { MarkdownPostProcessorContext, Plugin, TFile } from "obsidian";
import Processor from "./processor";
export default class MarkdownAttributes extends Plugin {
parsing: Map<MarkdownPostProcessorContext, string> = new Map();
async onload(): Promise<void> {
console.log(`Markdown Attributes v${this... |
import { Injectable } from '@nestjs/common';
@Injectable()
export class ApiService {
findNews() {
return {
success: true,
};
}
} |
export interface IRoom {
id: string;
name: string;
enterMessage: string;
description: string;
position: {
x: number;
y: number;
};
westId?: string;
northId?: string;
southId?: string;
eastId?: string;
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatButtonModule, MatIconModule, MatMenuModule } from '@angular/material';
import { FlexLayoutModule } from '@angular/flex-layout';
import { BarchartWidgetComponent } from './barchart-widget.component';
@NgModule({
imp... |
export default interface Attribute {
/**
* Идентификатор атрибута.
*/
tag: string;
/**
* Название дополнительного атрибута.
*/
name: string;
} |
export default function addClickEventHandler(
{
targetElement,
handler,
handleParentElementFirst
}: {
targetElement: Element;
handler: (...parameters: Array<unknown>) => unknown;
handleParentElementFirst: boolean;
}
): void {
targetElement.addEventListener("click", (event: Event): void ... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ListOfProjectsPage } from './list-of-projects.page';
const routes: Routes = [
{
path: '',
component: ListOfProjectsPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [Route... |
import styled from "styled-components"
export const SocialLinksWrapper = styled.nav`
margin: 2rem auto;
width: 100%;
`
export const SocialLinksList = styled.ul`
align-items: center;
display: flex;
justify-content: space-around;
list-style: none;
`
export const SocialLinksItem = styled.li``
export const ... |
import React, { forwardRef, TableHTMLAttributes } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { Colors, colorPropType } from '../Types'
export interface CTableProps extends TableHTMLAttributes<HTMLTableElement> {
/**
* Set the vertical aligment.
*/
align?: 'bot... |
import { GraphRbacManagementModels as AzureAdGraphModels } from "@azure/graph";
import * as MicrosoftGraph from "@microsoft/microsoft-graph-types";
import { htmlToText } from "html-to-text";
import nodemailer from "nodemailer";
import yargs from "yargs";
import { askQuestions } from "./cli";
import Config from "./confi... |
export enum Command {
FILL_COLOR,
RECTANGLE,
TRANSLATE,
RESET_TRANSFORM,
PIXEL,
}
export type DrawingCommand =
| [command: Command.FILL_COLOR, fillColor: string]
| [command: Command.RECTANGLE, x: number, y: number, width: number, height: number]
| [command: Command.TRANSLATE, x: number, y: number]
| [command:... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { createServer, Model } from 'miragejs';
import response from './assets/server.json';
createServer({
models: {
product: M... |
export interface XXHash<T> {
reset(seed?: number | T): void
digest(encoding: 'hex'): string
update(input: string | ArrayBuffer): XXHash<T>
} |
import { EventAction } from '@linode/api-v4';
import { RequestHandler, rest } from 'msw';
import cachedRegions from 'src/cachedData/regions.json';
import { MockData } from 'src/dev-tools/mockDataController';
import {
abuseTicketNotificationFactory,
accountFactory,
accountMaintenanceFactory,
accountTransferFacto... |
import React from 'react';
import makeStyles from '@material-ui/core/styles/makeStyles';
const useStyle = makeStyles(theme => ({
root: {
margin: '5px 0px',
display: 'flex',
'& > span': {
fontSize: '1.2rem',
color: '#1ecdfc',
marginRight: 5,
[theme.breakpoints.down('md')]: {
fontSize: '1.15rem'
... |
import { IPlugin } from 'fbl/dist/src/interfaces';
import { PDFRenderActionHandler } from './src/handlers';
const packageJson = require('../package.json');
module.exports = <IPlugin>{
name: packageJson.name,
description: packageJson.description,
tags: packageJson.keywords,
version: packageJson.version... |
export default {
icons: {
iconfont: "mdiSvg",
},
}; |
import { WindowService } from './window.service';
import { Injectable } from '@angular/core';
@Injectable()
export class MockWindowService extends WindowService {
/**
* Mocked Load Javascript function.
* @param url Name of script.
* @param implementationCode callback function.
* @param location where ... |
import { BaseLoggerItem } from "./BaseLoggerItem";
export declare class Logger {
protected static loggerItems: BaseLoggerItem[];
protected static loggerItemsCount: number;
static addLoggerItem(item: BaseLoggerItem): void;
static log(...args: any[]): void;
static error(...args: any[]): void;
stat... |
import React, { useEffect, useRef, useState } from "react";
import { useRecoilValue } from "recoil";
import { treeAtom, settingsAtom } from "../../store";
import { treeJsonToNodes } from "../../tree";
import { useStyles } from "./style";
import { Tree } from "react-organizational-chart";
import { motion } from "framer-... |
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
import { Route } from './route.entity';
@Entity(RouteCheckpoint.name)
export class RouteCheckpoint {
@PrimaryGeneratedColumn() id: number;
@ManyToOne(() => Route, (route) => route.checkpoints)
route: Route;
@Column()
lati... |
/* eslint-disable import/prefer-default-export */
import styled from 'styled-components';
export const Container = styled.div`
> div {
padding: 40px 40px 40px 12px;
display: flex;
flex-direction: column;
.row-skeleton {
height: 12px;
&:nth-child(1) {
width: 100%;
}
... |
import type { server } from 'typescript/lib/tsserverlibrary';
export interface Logger {
log: (message: string) => void;
error: (error: Error) => void;
}
export const createLogger = (info: server.PluginCreateInfo): Logger => {
const log = (message: string): void => {
info.project.projectService.logger.info(
... |
import fs from 'fs-extra';
import makeDir from 'make-dir';
import multimatch from 'multimatch';
import path from 'path';
import pMap from 'p-map';
import recursive from 'recursive-readdir';
import ts2gas from 'ts2gas';
import {parseConfigFileTextToJson} from 'typescript';
import {loadAPICredentials, script} from './au... |
'use strict';
import { WebviewExtension } from '../webview_extension';
export class ScreenshotButtonStyleExtension implements WebviewExtension {
private screenResourcePath: string;
constructor(getWebviewResourcePath: (relativePath: string) => string) {
this.screenResourcePath = getWebviewResourcePath... |
import InfluxReporter from './InfluxReporter'
import { Logger } from 'winston'
const tickerInterval = 15000
export async function startConcurrencyTicker(influxReporter: InfluxReporter, logger: Logger) {
logger.debug('ticking concurrency')
await influxReporter.sendConcurrencyPoint()
setTimeout(async () => await star... |
import * as React from "react";
import { IEmojiProps } from "../../styled";
const SvgPersonRole181 = (props: IEmojiProps) => (
<svg viewBox="0 0 72 72" width="1em" height="1em" {...props}>
<path
fill="#A57939"
d="M16.725 58.881s-2-13.5 10-13.5c3.192 2.128 5.926 3.599 9 3.592H35.6c3.074.007 5.708-2.56... |
import Benchmark = require('benchmark')
import { BenchmarksType } from './util'
import { mainnetBlocks } from './mainnetBlocks'
// Add an import and a BENCHMARKS entry to list a new benchmark
const BENCHMARKS: BenchmarksType = {
mainnetBlocks: {
function: mainnetBlocks,
},
}
const onCycle = (event: Benchmark.... |
import { Observable } from "abstract-observable";
export declare abstract class Store<T> extends Observable {
[key: string]: any;
parent: Store<any> | undefined;
constructor(parent?: Store<any>);
setParent(parent: any): void;
setField(fieldName: string, value: any): void;
}
export default Store; |
import PicoSanity from 'picosanity';
import { config } from './config';
export const sanityClient = new PicoSanity(config);
export const previewClient = new PicoSanity({
...config,
useCdn: false,
token: process.env.SANITY_API_TOKEN ?? ``,
});
export const getClient = (usePreview = false) =>
usePreview ? pre... |
interface IMailConfig {
driver: 'ethereal' | 'ses';
defaults: {
from: {
email: string;
name: string;
};
};
}
export default {
driver: process.env.MAIL_DRIVER || 'ethereal',
defaults: {
from: {
email: 'brunocesar12386@gmail.com',
name: 'bruno cesar',
},
},
} as IMai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.