text stringlengths 10 953k |
|---|
import React, { ReactNode } from 'react';
import { Trans, Plural } from '@lingui/macro';
import {
Box,
InputAdornment,
FormControl,
FormHelperText,
} from '@material-ui/core';
import { useWatch, useFormContext } from 'react-hook-form';
import TextField, { TextFieldProps } from '../TextField';
import { chia_to_m... |
import { log } from './log';
import { PiletLanguage } from '../types';
export const reactTypings = {
'@types/react': 'latest',
'@types/react-dom': 'latest',
'@types/react-router': 'latest',
'@types/react-router-dom': 'latest',
};
export function getLanguageExtension(language: PiletLanguage) {
switch (langua... |
export declare type AsnSeq = {
seq: AsnType[];
};
export declare type AsnInt = {
int: number;
};
export declare type AsnBytes = {
bytes: Uint8Array;
};
export declare type AsnIdent = {
ident: string;
};
export declare type AsnNull = {};
export declare type AsnType = AsnSeq | AsnInt | AsnBytes | AsnIdent... |
import { GetWithdrawResponse } from './get-withdraw-response.interface';
export type GetDepositsResponse = GetWithdrawResponse; |
import { Col, Row } from 'antd';
import React from 'react';
import styled from 'styled-components';
import { useMarket, useBonfidaTrades } from '../utils/markets';
import { getDecimalCount } from '../utils/utils';
import FloatingElement from './layout/FloatingElement';
import { BonfidaTrade } from '../utils/types';
co... |
import React, { useState, useEffect } from 'react';
import { View, Text, ScrollView, Image, TouchableOpacity, Modal, TextInput, ActivityIndicator, Alert} from 'react-native';
import * as ImagePicker from 'expo-image-picker';
import arrow from '../../../assets/leftArrow.png';
import { updateProduct, getProduct, getCate... |
import express from 'express';
import jwt from 'jsonwebtoken';
import { Keys } from '../../config';
import { Constructable } from '../../core/modules/decorators';
import { Token, Cookie } from '../interfaces/generator';
import { Validator } from '../interfaces/validator';
@Constructable(Validator)
export default clas... |
/* tslint:disable */
import { Injectable, Inject, Optional } from '@angular/core';
import { Http, Response } from '@angular/http';
import { SDKModels } from './SDKModels';
import { BaseLoopBackApi } from '../core/base.service';
import { LoopBackConfig } from '../../lb.config';
import { LoopBackAuth } from '../core/auth... |
namespace $ {
// type wrong_ints = $mol_type_int_plus< 'b40', '60b' >
type plus = $mol_type_assert<
$mol_type_int_plus< 40, '60' >,
100
>
type minus = $mol_type_assert<
$mol_type_int_minus< 100, '60' >,
40
>
type minus_same = $mol_type_assert<
$mol_type_int_minus< 100, '100' >,
0
>
type minus_o... |
/**
* @author Gleb Ordinsky <glebordinskijj@gmail.com>
*/
import React, { useState, useEffect } from 'react'
import { makeStyles } from '@material-ui/core/styles'
import Table from '@material-ui/core/Table'
import TableBody from '@material-ui/core/TableBody'
import TableCell from '@material-ui/core/TableCell'
import ... |
import * as React from 'react';
import { Box, Text } from 'ink';
import { Emoji, EmojiCode } from './Emoji';
export type MessageProps = {
emoji: EmojiCode;
children: React.ReactNode;
};
export function Message({ children, emoji }: MessageProps) {
return (
<Box marginX={3} marginBottom={1}>
<Emoji code... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ConsultantDashboardComponent } from './consultant-dashboard.component';
describe('ConsultantDashboardComponent', () => {
let component: ConsultantDashboardComponent;
let fixture: ComponentFixture<ConsultantDashboardComponent>;
b... |
import { GameStats } from './index';
import low from 'lowdb';
import FileSync from 'lowdb/adapters/FileSync';
import fs from 'fs';
const dbFile = './data/db.json';
if (!fs.existsSync(dbFile)) {
fs.writeFileSync(dbFile, '{}');
}
const adapter = new FileSync<Store>(dbFile)
const db = low(adapter)
interface Store ... |
import React, { FC, useCallback, useEffect, useState } from 'react';
import { Alert, Button } from 'woo-ui-react';
import Input from '@/components/Input';
import { login, register } from '@/network/users';
import { getCurrGreeting } from '@/utils';
import { IAlertProps } from 'woo-ui-react/dist/components/Alert/alert';... |
import {
Config,
Dictionary,
DockerComposeIntegrationConfig,
DockerIntegrationConfig,
IntegrationConfig
} from '@local-api-gateway/types';
import { DockerCompose } from './docker-compose';
export type IntegrationContextBase = {
type: string;
name: string;
destination: string;
docker... |
// tslint:disable: ter-max-len max-line-length
import { DistinctQuestion } from 'inquirer';
import { warning } from '../lib/colors';
import { tagPrefix } from '../lib/formatters';
const warningTag = tagPrefix(warning('WARNING'));
export interface ClearContentsAnswers {
clearContents: boolean;
clearContentsConfirm... |
import { Request } from "lambda-api"
import { BaseParameterExtractor } from "./BaseParameterExtractor"
export class RawBodyParameterExtractor extends BaseParameterExtractor {
public readonly source = "virtual"
public readonly name = "raw-body"
public constructor() {
super(RawBodyParameterExtracto... |
import { PrimitiveArray, Data } from 'billboard.js';
import { Observable } from 'rxjs';
import { IInspectorChartContainer } from './inspector-chart-container-factory';
import { makeYData, makeXData, getMaxTickValue } from './inspector-chart-util';
import { IInspectorChartData, InspectorChartDataService } from './inspe... |
import { Collection } from 'common/models/Collection'
import { FieldVisibility, Track } from 'common/models/Track'
import { User } from 'common/models/User'
const defaultFieldVisibility: FieldVisibility = {
genre: true,
mood: true,
tags: true,
share: true,
play_count: true,
remixes: true
}
export const ge... |
import { Component, OnInit } from '@angular/core';
import { Turma } from '../model/Turma';
import { TurmaService } from '../turma.service';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-turma-form',
templateUrl: './turma-form.page.html',
styleUrls: ['./turma-form.page.scss... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Nitoneum</source>
<translation>عن Nitoneum</translation>
</messa... |
const DEFAULT_NETWORK_ID = parseInt(
process.env.VUE_APP_DEFAULT_NETWORKID || '4'
)
const XCHAINID =
DEFAULT_NETWORK_ID === 115110116
? (process.env.VUE_APP_XCHAINID as string)
: (process.env.VUE_APP_TEST_XCHAINID as string)
const CCHAINID =
DEFAULT_NETWORK_ID === 115110116
? (proc... |
export class Vector4D {
public x: number;
public y: number;
public z: number;
public w: number;
constructor(x: number, y: number, z: number, w: number) {
this.x = x; this.y = y; this.z = z; this.w = w;
}
scalarMultiply(s: number): Vector4D {
this.multiplyMembers(s);
... |
export class FormalityResDto {
id: string;
name: string;
description: string;
is_buy_hire: number;
} |
import { Closure } from "@fortifico/framework/modules/Interfaces/Types";
import { Request } from "@fortifico/framework/modules/Http/Request";
export class CheckAge
{
public handle(request: Request, next: Closure)
{
}
} |
import App from './angularApp';
const AppInit = App.run([
'$rootScope',
'$state',
'$stateParams',
($rootScope: any, $state: any, $stateParams: any) => {
let stateOnLoad = window.location.hash.substring(
2,
window.location.hash.length
);
$rootScope.state = $state;
$rootScope.statePar... |
import * as React from 'react';
import { LocalizedPathConfig, PathParameterLocalizations } from 'types';
export interface I18nContext {
availableLngs: string[];
fallbackLng: string;
lng: string;
originalPath: string;
siteUrl: string;
localizedPathsConfig: LocalizedPathConfig;
pathParametersLocalizations:... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
<TS language="ru" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Клик правой кнопкой для редактирования адреса или метки</translation>
</message>
<message>
<source>Create a new address</source>
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Code for working with the VS Code cell status bar to indicate group memberships
import * as vscode from 'vscode';
import { getCellRunGroupMetadata } from './util/cellMetadataHelpers';
import { RunGroup } from './enums';
// Register our provi... |
import { useNavigation } from "@react-navigation/native";
import React from "react";
import { Alert } from "react-native";
import { Image, Text, View } from "react-native";
import illustrationImg from '../../assets/illustration.png';
import { Background } from "../../components/Background";
import { ButtonIcon } from '... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Spiffcode, Inc. All rights reserved.
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------... |
import { Inject, Injectable } from "@nestjs/common";
import { login } from "src/Models/login.entity";
import { users } from "src/Models/users.entity";
import { DeleteResult, Repository } from "typeorm";
import { methods } from "./methods";
@Injectable()
export class LoginService implements methods<login> {
constru... |
// Vendor
import Service from '@ember/service';
export default class Session extends Service {
async fetchAccessToken(): Promise<string> {
return Promise.reject(Error('[session] fetchAccessToken not implemented.'));
}
}
declare module '@ember/service' {
interface Registry {
session: Session;
}
} |
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import { webFrame } from "electron";
const webFrameInjectable = getInjectable({
id: "web-frame",
instantiate: ()... |
import { IconColorProps } from './icons.type';
export function NapariHub({
className,
alt,
color = '#009BF2',
}: IconColorProps) {
return (
<svg
className={className}
width="487"
height="512"
viewBox="0 0 487 512"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
... |
function arrayGenerator(value: any, times: number): any[] {
const array: any[] = [];
array.length = times;
array.fill(value);
return array;
}
export default arrayGenerator; |
import {InjectionToken} from '@angular/core';
import * as allIcons from '@taiga-ui/icons';
export type DemoTuiIcon = keyof typeof import('@taiga-ui/icons');
export type DemoTuiIconsList = readonly (string | DemoTuiIcon)[];
export type DemoTuiIconsTabs = Record<string, Record<string, DemoTuiIconsList>>;
export const... |
/**
* Heavily based on urql's ssr
* https://github.com/FormidableLabs/urql/blob/main/packages/next-urql/src/with-urql-client.ts
*/
import {
createReactQueryHooks,
createTRPCClient,
CreateTRPCClientOptions,
TRPCClient,
} from '@trpc/react';
import type { AnyRouter, Dict } from '@trpc/server';
import type {
... |
let shoppingList = ["catfish", "water",
"tulips", "blue paint"];
shoppingList[1] = "bottle of water"; |
export * from './ts-change';
export * from './html-change';
export * from './json-change';
export * from './content-change'; |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ColorsController } from './colors.controller';
import { ColorsRepository } from './colors.repository';
import { ColorsService } from './colors.service';
@Module({
imports: [TypeOrmModule.forFeature([ColorsRepository])]... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
import { RouterTestingModule } from '@angular/router/testing';
import { MapService } from './services/map.service';
import { QueryService } from './services/query.service'
import { PointsService ... |
/* istanbul ignore file */
let a: string = 1; |
import { AppJSONConfig, ConfigFilePaths, ExpoConfig, ExpRc, GetConfigOptions, PackageJSONConfig, ProjectConfig, ProjectTarget, WriteConfigOptions } from './Config.types';
/**
* Evaluate the config for an Expo project.
* If a function is exported from the `app.config.js` then a partial config will be passed as an argu... |
/* eslint-disable promise/param-names */
import { commonStartEffect, releaseAllEffect, ports } from '../common/initial'
import { appInstanceMap } from '../../create_app'
import microApp from '../..'
declare global {
interface HTMLElement {
src: string
href: string
}
}
describe('source index', () => {
le... |
import { clamp } from '../utils';
import { Position, Fragment, FragmentPredicate } from './interfaces';
import { TextDocument } from 'vscode-languageserver-types';
/**
* Represents a textual document.
*/
export abstract class Document implements TextDocument {
/**
* Get the text content of the document
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Language } from "../../..";
import { Lexer } from "../../../lexer";
import { DefaultTemplates } from "../../../localization";
export class Tokenizer implements TokensProvider {
constructor(private readonly lineTerminator: string) ... |
import { Breadcrumb, BreadcrumbHint } from './breadcrumb';
import { Event, EventHint } from './event';
import { Integration } from './integration';
import { LogLevel } from './loglevel';
import { CaptureContext } from './scope';
import { SdkMetadata } from './sdkmetadata';
import { SamplingContext } from './transaction... |
import {Component, Input} from "@angular/core";
import {Util} from "../../../components/shared/util";
import {NetworkSummary} from "../../../kpn/api/common/network/network-summary";
import {NetworkCacheService} from "../../../services/network-cache.service";
@Component({
selector: "kpn-network-page-header",
templa... |
import React from 'react'
import { Comment } from 'semantic-ui-react'
import * as Types from '../../backend/src/types/api'
import dayjs from './relativeTime'
import UserInList from './UserInList'
export default function SingleComment({ comment }: { comment: Types.Comment }) {
return (
<Comment>
... |
import { Component, OnInit } from "@angular/core";
import { ApiService } from '../../api.service';
@Component({
selector: "app-transaction",
templateUrl: "transaction.component.html"
})
export class TransactionComponent implements OnInit {
customerList;
transactionStatus;
transactionCustomerList: Array<any> = [... |
import { joinURL, encodePath } from 'ufo'
import defu from 'defu'
import type { ProviderGetImage } from 'src'
import { createOperationsGenerator } from '~image'
const convertHextoRGBFormat = (value: string) => value.startsWith('#') ? value.replace('#', 'rgb_') : value
const removePathExtension = (value: string) => val... |
export enum ChromeExtension {
JUST_BLACK = 'aghfnjkcakhmadgdomlmlhhaocbkloab',
DARK_READER = 'eimadpbcbfnmbkopoojfekhnkhdbieeh',
VIOLENTMONKEY = 'jinjaccalgkegednnccohejagnlnfdag',
} |
export * from "./index-common";
export * from "./plume/button";
export * from "./plume/checkbox";
export * from "./plume/menu";
export * from "./plume/menu-button";
export { setPlumeStrictMode } from "./plume/plume-utils";
export { getDataProps } from "./plume/props-utils";
export * from "./plume/select";
export * from... |
import {Component} from '@angular/core';
import {NgbPopoverConfig} from '@ng-bootstrap-ts/ng-bootstrap-ts';
@Component({
selector: 'ngbd-popover-config',
templateUrl: './popover-config.html',
providers: [NgbPopoverConfig] // add NgbPopoverConfig to the component providers
})
export class NgbdPopoverConfig {
co... |
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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 ... |
/* tslint:disable:no-unused-variable */
import { TestBed, async } from '@angular/core/testing';
import { KeysPipe } from './keys.pipe';
describe('Pipe: Keyse', () => {
it('create an instance', () => {
let pipe = new KeysPipe();
expect(pipe).toBeTruthy();
});
}); |
import { AppProps } from 'next/app';
import { Header } from '../components/Header';
import { Player } from '../components/Player';
import { PlayerProvider } from '../contexts/PlayerContext';
import '../styles/global.scss';
import styles from '../styles/app.module.scss';
function MyApp({ Component, pageProps }: AppPr... |
import { Config } from '@stencil/core';
export const config: Config = {
namespace: 'first-component',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'dist-custom-elements-bundle',
},
{
type: 'docs-readme',
},
{
type: 'www',
se... |
import { Service, PlatformAccessory } from 'homebridge';
import { BGSensor } from './BGSensor';
import { BGController, BGPointStatus } from './BGController';
import { BGSensorType, HB_BoschControlPanel_BGSeries } from './platform';
export class BGContactSensor extends BGSensor {
constructor(
protected readonly ... |
<TS language="en_GB" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit address or label</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
import { QuerySearchArgs, SearchInput, SearchResponse } from '@vendure/common/lib/generated-types';
import { Omit } from '@vendure/common/lib/omit';
import { RequestContext } from '../../../api/common/request-context';
import { SearchResolver as BaseSearchResolver } from '../../../api/resolvers/admin/search.resolver';
... |
declare namespace adone.math {
namespace I.BigNumber {
interface BufferConvertOptions {
endian?: 1 | -1 | "big" | "little";
size?: "auto" | number;
}
}
/**
* Represents a number of arbitrary precision
*/
class BigNumber {
/**
* Creates ... |
import { Table } from "antd";
export interface Item {
key: string;
name: string;
age: string;
address: string;
}
export interface EditableRowProps {
index: number;
}
export interface EditableCellProps {
title: React.ReactNode;
editable: boolean;
children: React.ReactNode;
dataIndex: keyof Item;
r... |
// import * as assert from 'assert';
// import * as textassert from './textassert';
// import * as fakes from './fakes';
// import { create as draftCreate, CheckPresentMode as DraftCheckPresentMode } from '../src/draft/draft';
// interface FakeContext {
// host?: any;
// fs?: any;
// shell?: any;
// }
//... |
import { midiToNote } from './Util'
export const githubURL = 'https://tambien.github.io/Piano/Salamander/'
export function getReleasesUrl(midi: number): string {
return `rel${midi - 20}.[mp3|ogg]`
}
export function getHarmonicsUrl(midi: number): string {
return `harmS${midiToNote(midi).replace('#', 's')}.[mp3|ogg]... |
import 'mocha';
import { assert } from 'chai';
import number from './number';
/* eslint-disable @typescript-eslint/no-explicit-any */
describe('number', () => {
it('number()', () => {
assert.equal(number(123), 123);
assert.equal(number(12.3), 12.3);
assert.equal(number(-12.3), -12.3);
assert.equal(n... |
import type { LoaderFunction } from "@remix-run/node";
import { json } from "@remix-run/node";
import { Link, useLoaderData } from "@remix-run/react";
import * as React from "react";
import { getAllTodoLists } from "~/db.server";
import type { TodoList } from "~/models";
import { requireUser } from "~/session.server";... |
import * as React from 'react'
import moment from 'moment'
import { Link } from 'react-router-dom'
import { Table } from 'antd'
import { LinkMono } from '../../../../common/components/Page'
import { TablePaginationConfig } from 'antd/es/table'
import { FORMAT_LONG } from '../../../../common/helpers/date'
type Props = ... |
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ScrollbarHelper } from './services/scrollbar-helper.service';
import { DimensionsHelper } from './services/dimensions-helper.service';
import { ColumnChangesService } from './services/column-changes.s... |
import { createGlobalStyle } from 'styled-components'
export default createGlobalStyle`
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: ${props => props.theme.colors.background};
font: 400 16px Roboto, sans-serif;
}
` |
/*
* 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 React, { useState } from 'react';
import { i18n } from '@kbn/i18n';
imp... |
import { Injectable, CanActivate, ExecutionContext } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { Observable } from 'rxjs';
@Injectable()
export class RolesGuard implements CanActivate {
constructor(private reflector: Reflector) {}
canActivate(
context: ExecutionContext,
): bool... |
export * from './DocumentPanelHeader' |
import employeeRouter from './employeeRoutes';
import eventRouter from './eventRoutes';
import blogsRouter from './blogsRoutes';
export { employeeRouter, eventRouter, blogsRouter }; |
import { Injectable } from '@nestjs/common';
import { CreateLotteryDto } from './dto/create-lottery.dto';
import { UpdateLotteryDto } from './dto/update-lottery.dto';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Lottery } from './entities/lottery.entity';
@Injectab... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
module ChainModule {
export abstract class Handler {
protected successor: Handler;
public setSuccessor(successor: Handler) {
this.successor = successor;
}
public abstract handleRequest(request: number);
}
export class ConcreteHandler1 extends Handler {
public handleRequest(request: nu... |
import os from 'os'
import fs from 'fs'
import path from 'path'
import archiver from 'archiver'
import CKB from '@nervosnetwork/ckb-sdk-core'
import { app, dialog } from 'electron'
import logger from 'utils/logger'
import { t } from 'i18next'
import { ckbDataPath } from 'services/ckb-runner'
import NetworksService from... |
import moment from 'moment-timezone'
import querystring from 'querystring'
import { History } from 'history'
import { Dispatch } from 'redux'
import { ThunkAction, ThunkDispatch } from 'redux-thunk'
import {
CLOSE_CREATE_URL_MODAL,
CloseCreateUrlModalAction,
GET_URLS_FOR_USER_SUCCESS,
GetUrlsForUserSuccessActi... |
/*
MIT License
Copyright (c) 2019 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
import React, {
forwardRef,
useState,
useContext,
useEffect,
useRef,
useImperativeHandle,
ChangeEvent,
ForwardedRef,
} from 'react';
import cs from 'classnames';
import context from './context';
export type LabelWithInputInstace = HTMLLabelElement & {
inputInstance: HTMLInputElement
}
function Inte... |
import React from 'react'
import { InputLabel, List, ListItem, ListItemButton, ListItemText, ListItemIcon, Grid, Box } from '@mui/material';
import { FormattedMessage } from 'react-intl'
import DeleteOutlineIcon from '@mui/icons-material/DeleteOutline';
import Burger from '@the-wrench-io/react-burger';
import { String... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SaleFormComponent } from './sale-form/sale-form.component';
import { PaymentComponent } from './payment/payment.component';
@NgModule({
declarations: [SaleFormComponent, PaymentComponent],
imports: [
CommonModu... |
// eslint-disable-next-line no-shadow
enum LanguageEnum {
NorskBokmal = 'NorskBokmal',
NorskNynorsk = 'NorskNynorsk',
English = 'English',
}
export default LanguageEnum; |
import React from 'react';
import { connect } from 'react-redux';
import { RouteComponentProps } from 'react-router-dom';
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { Translate, ICrudGetAction, ICrudDeleteAction } from 'react-jhipster';
import { FontAwesomeIcon } from '@fort... |
import { LocalizedText } from "node-opcua-data-model";
import { ReferenceDescription } from "node-opcua-types";
import { AddressSpace, SessionContext, UAReferenceType as UAReferenceTypePublic } from "../source";
import { BaseNode as BaseNodePublic } from "../source";
import { BaseNode } from "./base_node";
import { Ref... |
/* eslint-disable prettier/prettier */
import { MiddlewareConsumer, Module, NestModule } from "@nestjs/common";
import { Administrator } from "entities/Administrator";
import { Carpet } from "entities/Carpet";
import { CarpetReception } from "entities/CarpetReception";
import { Clients } from "entities/Clients";
import... |
import * as React from "react"
import { Li, TABLE, TD, TH, TR, Ul } from "src/fonts/Fonts"
import OpenGraph from "src/header/OpenGraph"
import { Cell, GridRow, Spans } from "src/layout/Grid2"
import SideTitledSection from "src/layout/SideTitledSection"
import Link from "src/shared/Link"
import {
fonts,
standardStyl... |
import fs from "fs";
import { join } from "path";
import chalk from "chalk";
export function createDirectory(dirName: string) {
const path = join(process.cwd(), dirName);
if (!fs.existsSync(path)) {
fs.mkdirSync(path);
} else {
console.warn(chalk.bgYellow(chalk.black(`${path} already exists`)));
}
} |
<TS language="fi" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Valitse hiiren oikealla painikkeella muokataksesi osoitetta tai nimikettä</translation>
</message>
<message>
<source>Create a new a... |
import { IStringOpts, Ihsla, Ihexa, Irgba, IInvertOpts, IHexaObjOpts } from ".";
import { HueColors } from "../enums/colors";
/**
* For the following methods, unless otherwise specified the operation is performed in RGBA space
*/
export interface IColorMaster {
/**
* The color format of a RGBA color instance
... |
import { Component, OnInit } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit
{
lstServers: Array<String>;
lstWebFramewor... |
import { getRepository } from "typeorm";
import { Category } from "../../entities/Category";
import { Video } from "../../entities/Video";
type VideoRequest = {
categoryId: number;
name: string;
description: string;
duration: string;
}
export class CreateVideoService {
async execute({
cate... |
import { ZBClient } from '../..'
import { createUniqueTaskType } from '../../lib/createUniqueTaskType'
const trace = res => {
// tslint:disable-next-line: no-console
console.log(res)
return res
}
process.env.ZEEBE_NODE_LOG_LEVEL = process.env.ZEEBE_NODE_LOG_LEVEL || 'NONE'
jest.setTimeout(60000)
describe('ZBWorker... |
import { KeyAttribute, KeyAttributeToObject } from "./key";
export type Narrow<
Item extends object,
Key extends KeyAttribute<Item, any, any>
> = Extract<Item, KeyAttributeToObject<Item, Key>>; |
export { DocsiApiReferenceWebpackPlugin } from './plugin'; |
import {
Route53RecoveryReadinessClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../Route53RecoveryReadinessClient.ts";
import { ListCrossAccountAuthorizationsRequest, ListCrossAccountAuthorizationsResponse } from "../models/models_0.ts";
import {
deserializeAws_restJson1ListCrossAccountAut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.