text stringlengths 10 953k |
|---|
import assert from "node:assert";
import { readFileSync } from "node:fs";
import path from "node:path";
import { URLSearchParams } from "node:url";
import { execaCommand } from "execa";
import tmp from "tmp-promise";
import { bundleWorker } from "./bundle";
import { fetchResult } from "./cfetch";
import { createWorkerU... |
import * as React from 'react';
import {HTMLAttributes, ReactNode} from 'react';
import * as _ from 'lodash';
const openPage = (href: string): void => window.location.assign(href);
interface AProps extends HTMLAttributes<HTMLAnchorElement> {
icon?: ReactNode;
href?: string;
target?: string;
}
class A ext... |
import Decimal from 'break_infinity.js';
import { GlobalVariables } from './types/Synergism';
export const Globals: GlobalVariables = {
runediv: [1.5, 2, 3, 5, 8, 1, 1],
runeexpbase: [1, 4, 9, 16, 1000, 1e75, 1e256],
runeMaxLvl: 40000,
// this shows the logarithm of costs. ex: upgrade one will cost 1e... |
import type { TLBounds } from '@tldraw/core'
import { AlignStyle, ShapeStyles } from '~types'
import { getFontFace, getFontSize } from './shape-styles'
import { getTextAlign } from './getTextAlign'
import { LINE_HEIGHT } from '~constants'
export function getTextSvgElement(text: string, style: ShapeStyles, bounds: TLBo... |
import formatDistanceToNow from "date-fns/formatDistanceToNow";
import { CopyToClipboard } from "react-copy-to-clipboard";
import React, { FC, useState, useEffect } from "react";
import { useFormState } from "react-use-form-state";
import { Flex } from "reflexbox/styled-components";
import styled, { css } from "styled-... |
// settings not to affect production servers
process.env.IS_LOCAL = '1';
process.env.IS_OFFLINE = '1';
process.env.STAGE = 'test'; |
export interface RegisterUserParam {
firstName: string;
lastName: string;
username: string;
email: string;
password: string;
profilePicUrl: string;
role: string;
} |
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<header>
<h1>Welcome to {{title}}</h1>
</header>
<nav>
<a routerLink='/dashboard' routerLinkActive='active'>Dashboard</a>
<a routerLink='/heroes' routerLinkActive='active'>Heroes</a>
</nav>
<ro... |
// 自定义资产
import { post, get, put, del, getUri } from '@/utils/ajax'
import { download } from '@/utils/downloader'
export const enum API{
// 新增资产
addBaseCi = 'asset/baseCi/add',
// 删除资产
deleteCiType = 'asset/baseCi/delete/',
// 批量删除资产
deleteBatch = 'asset/baseCi/deleteBatch',
// 导出所有资产
exportAll = 'asset... |
import { AdLibActionCommon } from './AdLibActions'
import { registerCollection, ProtectedString } from '../lib'
import { createMongoCollection } from './lib'
import { registerIndex } from '../database'
/** A string, identifying an RundownBaselineAdLibActionId */
export type RundownBaselineAdLibActionId = ProtectedStri... |
import { Pool, PoolConfig } from 'pg';
import { GraphQLSchema } from 'graphql';
import { EventEmitter } from 'events';
import { createPostGraphileSchema, watchPostGraphileSchema } from 'postgraphile-core';
import createPostGraphileHttpRequestHandler from './http/createPostGraphileHttpRequestHandler';
import exportPostG... |
import { Options } from 'roughjs/bin/core';
declare type Params = {
[name: string]: string;
};
export declare type Point = [number, number];
export { Options };
export declare function svgNode(tagName: string, attributes?: Params): SVGElement;
export declare function line(parent: SVGElement, x1: number, y1: number,... |
import { Schema } from '../types';
import { ListLike } from './relationhsip';
export declare class ListRelationship<T extends Schema> extends ListLike<T> {
} |
import { createDescendantContext } from "@chakra-ui/descendant"
import {
useControllableState,
useIds,
useUnmountEffect,
} from "@chakra-ui/hooks"
import {
createContext,
EventKeyMap,
mergeRefs,
PropGetter,
} from "@chakra-ui/react-utils"
import {
addItem,
callAllHandlers,
focus,
isArray,
isUnde... |
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.4" tiledversion="1.4.3" name="Level2background" tilewidth="16" tileheight="16" tilecount="560" columns="40">
<image source="Level2background.png" width="654" height="234"/>
</tileset> |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: MenuItemNestedFragment
// ====================================================
export interface MenuItemNestedFragment... |
import styled from '@emotion/styled';
import { PrimaryButton } from '6-ui-features/DesignSystem';
import { useDispatch } from '4-react-ecsal';
import { updateTowns } from '1-game-code/World/Civs/CivSys';
export function NextYearButton(): JSX.Element {
const dispatch = useDispatch();
return <Button onClick={() => d... |
import React, { useState, useEffect, useRef } from 'react';
import { MemoryRouter as Router, Route, Switch } from 'react-router-dom';
import track, { useTracking } from 'react-tracking';
import { skip } from 'rxjs/operators';
import Category from './pages/category/category';
import Brand from './pages/brand/brand';
imp... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ProduitsMcComponent } from './produits-mc.component';
describe('ProduitsMcComponent', () => {
let component: ProduitsMcComponent;
let fixture: ComponentFixture<ProduitsMcComponent>;
beforeEach(async(() => {
TestBed.configure... |
import type { WeaponData } from 'pipeline'
import { input } from '../../../../Formula'
import { constant, equal, infoMut, prod, subscript } from "../../../../Formula/utils"
import { WeaponKey } from '../../../../Types/consts'
import { customDmgNode } from '../../../Characters/dataUtil'
import { cond, sgt, st, trans } f... |
/**
* @author ghostxbh
* @version 1.0.0
* @description Exception message thrown for Optional operation
*/
export class OptionalException extends Error {
constructor(msg: string = 'OptionalException') {
super(msg);
this.name = 'OptionalException';
}
} |
import { Lesson } from "./lesson.entity";
import { Repository } from "typeorm";
import { CreateLessonInput } from "./lesson.input";
export declare class LessonService {
private lessonRepository;
constructor(lessonRepository: Repository<Lesson>);
getLesson(id: string): Promise<Lesson>;
getLessons(): Prom... |
import { createUseStyles } from 'react-jss';
import { usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/dist/usePassThroughHtmlProps';
import { FlexBoxAlignItems } from '@ui5/webcomponents-react/dist/FlexBoxAlignItems';
import { FlexBoxDirection } from '@ui5/webcomponents-react/dist/FlexBoxDirection';
impor... |
import { Ionicons, AntDesign } from "@expo/vector-icons";
import React from "react";
import {
View,
FlatList,
TouchableOpacity,
Image,
Text,
StyleSheet,
} from "react-native";
import { useNavigation } from "@react-navigation/native";
export function ListBodyComponent(props) {
const navigation = useNavig... |
import { NgModule } from '@angular/core';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MatBadgeModule } from '@angular/material/badge';
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
import { MatButtonModule } from '@angular/material/button';
import { MatButt... |
/**
* 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... |
export default class BaseStore<S extends object> {
state: S;
setState: (s: Partial<S>) => void = (s) => {};
constructor() {
this.state = this.initialState();
}
initialState() {
return {} as S;
}
setStateHandler(setState: (s: Partial<S>) => void) {
this.setState = setState;
}
clear() {
... |
import * as React from 'react';
import Alert from 'react-bootstrap/lib/Alert';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-bootstrap/lib/Modal';
import Checkbox from 'react-bootstrap/lib/Checkbox';
// tslint:disable-next-line:import-name
import AceEditor from 'react-ace';
import 'brace/mo... |
import { IExpandingCardStyles } from './ExpandingCard.Props';
import { memoizeFunction } from '../../Utilities';
import {
mergeStyleSets,
before,
ITheme
} from '../../Styling';
export const getStyles = memoizeFunction((
theme: ITheme,
customStyles?: IExpandingCardStyles
): IExpandingCardStyles => {
const ... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { BaseStateComponent } from './base-state.component';
import { LayoutModule } from '../../../../../layouts/layout.module';
import { DefaultComponent } from '../../../d... |
export { DefaultCache } from './DefaultCache'
export { ICache } from './ICache'
export { RedisCache, IRedisConfig } from './RedisCache' |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as commander from "commander";
import { logErrorMessage, parseNumber } from "office-addin-cli";
import { ManifestInfo, OfficeApp, parseOfficeApp, readManifestFile } from "office-addin-manifest";
import {
ensureLo... |
import { AbstractControl, FormArray, FormGroup } from '@angular/forms'
/**
* Mark form control and all descendents as dirty and touched.
*
* @param control
*/
export const markAllAsDirtyAndTouched = (control: AbstractControl) => {
control.markAsDirty()
control.markAsTouched()
if (control instanceof FormGroup... |
/*
* 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 { resolve } from 'path';
import { i18n } from '@kbn/i18n';
// @ts-ign... |
import {
PatientIdentifier,
FormValues,
PatientIdentifierType,
AttributeValue,
PatientUuidMapType,
Patient,
CapturePhotoProps,
} from './patient-registration-types';
import {
deletePersonName,
generateIdentifier,
savePatient,
savePatientPhoto,
saveRelationship,
} from './patient-registration.res... |
import { IWidgetHandler, WidgetContext, GridHelper } from "@paperbits/common/editing";
import { EventManager, Events } from "@paperbits/common/events";
import { DragSession } from "@paperbits/common/ui/draggables";
import { IContextCommandSet, ViewManager, IHighlightConfig } from "@paperbits/common/ui";
import { Widget... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Subscription } from 'rxjs/Rx';
import { JhiEventManager } from 'ng-jhipster';
import { WorkLog } from './work-log.model';
import { WorkLogService } from './work-log.service';
@Component({
selec... |
import { Shelf } from './shelves';
export interface Library {
_id: string;
name: string;
shareable?: boolean;
creationDate?: string;
shelvesNumber?: number;
shelves: Shelf[];
}
export interface NewLibraryForm {
name: string;
shareable: boolean;
}
export interface UpdateLibraryForm extends NewLibraryF... |
import { PluginServiceHTTPClient, PluginsClient, PluginVersionsClient } from 'flex-plugins-api-client';
import deployScript, { DeployOption } from '../deploy';
describe('DeployScript', () => {
const httpClient = new PluginServiceHTTPClient('username', 'password');
const pluginsClient = new PluginsClient(httpClien... |
import * as React from 'react';
import { classes } from 'typestyle';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import ClearIcon from '@material-ui/icons/Clear';... |
import * as YAML from 'yaml';
type CodeMap = import('./CodeMap');
type SassValue = import('./SassValue');
export interface ParsedSource {
readonly path: string;
readonly source: string;
readonly ast: YAML.ast.Document;
readonly map: CodeMap;
}
export type TravelrScalar = string | number | boolean;
export int... |
export interface PriceAmountItem{
id:string;
description:string;
amount:string;
} |
// @strict: true
// @declaration: true
// Repros from #47599
declare function callIt<T>(obj: {
produce: (n: number) => T,
consume: (x: T) => void
}): void;
callIt({
produce: () => 0,
consume: n => n.toFixed()
});
callIt({
produce: _a => 0,
consume: n => n.toFixed(),
});
callIt({
produce... |
import React from 'react';
const { useState } = React;
import ReactDOM from 'react-dom';
import { Editor, EditorState } from '../src/index';
import './style.css';
function App() {
const [state, setState] = useState(EditorState.create());
function handleBeforeChange(nextState: EditorState) {
return nextState;... |
import { default as CallbackRegistryFactory, CallbackRegistry } from "callback-registry";
import { RequestContext, ServerMethodInfo, ServerSubscriptionInfo } from "../../server/types";
import ClientRepository from "../../client/repository";
import ServerRepository from "../../server/repository";
import {
AddInteres... |
#!/usr/bin/env node
import sade from 'sade';
import { build } from './command/build';
import { create } from './command/create';
import { dev } from './command/dev';
const prog = sade('quickpage');
prog.version('1.0.0');
prog
.command('create')
.describe('create a page in this multi-page project')
.example('b... |
import { ElementRef, Renderer2 } from '@angular/core';
import { StateProgramService } from './../state-program.service';
import { StateManager } from '../state-manager';
export class Sub001Control extends StateManager {
// Imprement here!
sp: StateProgramService;
private el: ElementRef;
private img: any;... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { BrowserAnimationsModule } from '@angular/platform... |
/**
* @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 {Type} from '../interface/type';
import {TypeDecorator, makeDecorator} from '../util/decorators';
import {In... |
<TS language="bg" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Десен бутон за да редактирате адрес или наименование</translation>
</message>
<message>
<source>Create a new address</source>
... |
import cloneDeep from "clone-deep";
import sourceMapSupport from "source-map-support";
import * as registerCache from "./cache";
import * as babel from "@babel/core";
import { OptionManager, DEFAULT_EXTENSIONS } from "@babel/core";
import { addHook } from "pirates";
import fs from "fs";
import path from "path";
import ... |
import API from '../../../../APICore';
import {New} from '../../../BaseInterfaces';
import GroupInvite from '../GroupInvite';
import {InviteModel} from '../GroupInviteInterfaces';
jest.mock('../../../../APICore');
const APIMock: jest.Mock<API> = API as any;
describe('groupInvite', () => {
let invite: GroupInvite... |
'use strict';
/** Imports */
import * as Express from 'express';
import * as request from 'supertest-as-promised';
import * as _ from 'lodash';
import { expect } from 'chai';
import lazy from '..';
describe('lazy()', function () {
let app: Express.Application;
beforeEach(() => {
app = Expre... |
import { NativeModules, Image } from 'react-native';
export type Results = {
path: string;
fileName: string;
localIdentifier: string;
width: number;
height: number;
mime: string;
type: string;
size: number;
bucketId?: number;
realPath?: string;
parentFolderName?: string;
thumbnail?: string;
c... |
/*
* 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 { schema } from '@kbn/config-schema';
import Boom from 'boom';
import ... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from '@app/_helpers';
import { ShioSitePageComponent } from './component/shio-site-page/shio-site-page.component';
const routes: Routes = [
{
path: ':id',
component: ShioSitePageComponent,... |
import * as React from 'react';
import { Dialog, DialogTrigger, DialogOverlay, DialogContent, DialogClose } from './Dialog';
import { css } from '../../../../stitches.config';
export default { title: 'Components/Dialog' };
export const Styled = () => (
<Dialog>
<DialogTrigger className={triggerClass}>open</Dial... |
/* eslint-disable @typescript-eslint/member-ordering */
/* eslint-disable prefer-const */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-floating-p... |
import * as functions from "firebase-functions";
require("dotenv").config();
exports.sendWelcomeEmail = functions.auth.user().onCreate((_) => {
const email = "hellocaptiancook@gmail.com";
const nodemailer = require("nodemailer");
const transporter = nodemailer.createTransport({
service: "gmail",
auth: {... |
import Deployer from './deployer/deployer';
import PrivateKeyDeployer from './deployer/private-key-deployer';
import InfuraPrivateKeyDeployer from './deployer/infura-deployer/infura-private-key-deployer';
import JSONRPCPrivateKeyDeployer from './deployer/jsonrpc-deployer/jsonrpc-private-key-deployer';
import EtherlimeG... |
/**
* @license
* Copyright 2020 Google LLC
*
* 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 ... |
import {NgModule} from '@angular/core';
import {ReportsRoutingModule} from './reports-routing.module';
import {PaymentsLogComponent} from './payments-log/payments-log.component';
import {DailySummaryReportComponent} from './daily-summary-report/daily-summary-report.component';
import {ItemsSummaryReportComponent} from ... |
import React, {useState} from 'react';
import Toggle from '../Toggle';
import {
MdDashboard,
MdArrowDownward,
MdArrowUpward,
MdExitToApp,
MdClose,
MdMenu,
} from 'react-icons/md';
import logoImg from '../../assets/dolar2.svg';
import {
Container,
Header,
LogoImg,
Title,
MenuContainer,... |
import {Directive, ElementRef, Input} from '@angular/core';
@Directive({
selector: '[hasPermission]'
})
export class HasPermissionDirective {
@Input('hasPermission') permission: string;
perms:[string] = ['ViewCompA', 'ViewCompC'];
constructor() { }
ngOnInit() {
console.log('fire');
if(this.perms.ind... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.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 requi... |
import { isObject, isUndefined, filter, map } from "lodash";
import { getPieDimensions } from "./preparePieData";
function getAxisTitle(axis: any) {
return isObject(axis.title) ? axis.title.text : null;
}
function getAxisScaleType(axis: any) {
switch (axis.type) {
case "datetime":
return "date";
cas... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { getSelectedOptionFromGroupedOptions } from './getSelectedOptionFromGroupedOptions';
const option1 = {
label: 'Option 1',
value: 'Option 1'
};
const option2 = {
label: 'Option 2',
value: 'Option 2'
};
const option3 = {
label: 'Volumes Option 1',
value: 'Volumes Option 1'
};
const option4 = {
l... |
export * from './lot';
export * from './lot-group';
export * from './extension'; |
import React, { useState, useEffect } from "react";
import styled from "styled-components";
import { useTranslation } from "react-i18next";
import { TFunction } from "i18next";
import { Button, Checkbox, Notification } from "hds-react";
import uniq from "lodash/uniq";
import trim from "lodash/trim";
import withMainMenu... |
import { VantComponent } from '../common/component';
import { commonProps, inputProps, textareaProps } from './props';
VantComponent({
field: true,
classes: ['input-class', 'right-icon-class', 'label-class'],
props: {
...commonProps,
...inputProps,
...textareaProps,
size: String,
icon: Stri... |
import { NgModule } from '@angular/core';
import { ChartCommonModule } from '../common/chart-common.module';
import { HeatMapCellComponent } from './heat-map-cell.component';
import { HeatCellSeriesComponent } from './heat-map-cell-series.component';
import { HeatMapComponent } from './heat-map.component';
export { He... |
import * as ts from 'typescript';
import { DeletedHandler } from './deleted.handler';
describe('DeletedHandler', () => {
let handler: DeletedHandler<any>;
const callback = (state: any, event: any): void => {
state.cpt++;
console.log('event.tutu : ', event.tutu);
};
beforeEach(() => {
handler = new... |
/// <reference path='fourslash.ts' />
/////** This is comment for c1*/
////class c/*1*/1 {
//// /** p1 is property of c1*/
//// public p/*2*/1: number;
//// /** sum with property*/
//// public p/*3*/2(/** number to add*/b: number) {
//// return this./*4*/p1 + /*5*/b;
//// }
//// /** getter pro... |
import {Entity} from "../../../../../../../src/decorator/entity/Entity";
import {PrimaryColumn} from "../../../../../../../src/decorator/columns/PrimaryColumn";
import {Index} from "../../../../../../../src/decorator/Index";
import {Post} from "./Post";
import {ManyToOne} from "../../../../../../../src/decorator/relati... |
import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'bu-panel-tabs',
templateUrl: './panel-tabs.component.html',
styleUrls: ['./panel-tabs.component.css'],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush
... |
import React from 'react';
import {
AboutModal,
TextContent,
Text,
TextList,
TextListItem
} from '@patternfly/react-core';
import './AboutModal.css';
import aboutPageLogo from '../../../static/managementConsoleLogo.svg';
import aboutPageBackground from '../../../static/KogitoAbout.png';
import { version } fro... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CategoryListComponent } from './pages/category-list/category-list.component';
import { CategoryNewComponent } from './pages/category-new/category-new.component';
const routes: Routes = [
{
path: '',
c... |
import { Helmet } from 'react-helmet-async';
import PageTitle from './../../../../components/PageTitle';
import PageTitleWrapper from './../../../../components/PageTitleWrapper';
import { Container, Grid, Card, CardHeader, CardContent, Divider } from '@mui/material';
import { useState, SyntheticEvent } from 'react';
i... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AuthLoginButtonComponent } from './auth-login-button.component';
describe('AuthLoginButtonComponent', () => {
let component: AuthLoginButtonComponent;
let fixture: ComponentFixture<AuthLoginButtonComponent>;
beforeEach(async(() ... |
import {Sequelize, DataTypes, Model} from 'sequelize';
import {SuperHeroRecord} from "./types";
export class SuperHeroModel extends Model {
public id: string | undefined;
public name: string | undefined;
public createdAt: Date | undefined;
public updatedAt: Date | undefined;
toPojo(): SuperHeroRecord {
... |
import * as React from 'react'
import * as Kb from '../../../../common-adapters'
import * as Styles from '../../../../styles'
import * as Container from '../../../../util/container'
import * as Chat2Types from '../../../../constants/types/chat2'
import * as RouteTreeGen from '../../../../actions/route-tree-gen'
type P... |
const num_between = (lo: number, hi: number) => lo + Math.random() * (hi - lo);
const oneOf = (vs: NonNullable<any>) =>
vs[Math.floor(Math.random() * vs.length)];
const char = () => {
const chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789";
return oneOf(chars);
};
const ntimes = (n... |
import * as t from 'io-ts';
const LegalRepresentative = t.type({
Id: t.number,
// TypeId: t.string,
RepresentativeId: t.number,
// StudentId: t.number,
// DateFrom: Option(LocalDateTimeFromString),
// DateTo: Option(LocalDateTimeFromString),
RepresentativeAfterMajority: t.boolean,
});
type LegalRepresent... |
import { arrayAttributes, componentsRegistry, propertiesRegistry } from './constants'
import ParsingError from './exceptions/parser.error'
import {
AttachmentParser,
AttendeeParser,
DateParser,
DurationParser,
GeoParser,
NumberParser,
OrganizerParser,
RRuleParser,
StringArrayParser,
TriggerParser,
} from './p... |
import Project = require('nashorn/com/intellij/openapi/project/Project');
import Runnable = require('nashorn/java/lang/Runnable');
import AnAction = require('nashorn/com/intellij/openapi/actionSystem/AnAction');
import Component = require('nashorn/java/awt/Component');
import NewErrorTreeViewPanel = require('nashorn/co... |
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
import { PostEntity } from "./post.entity";
import { UserEntity } from "./user.entity";
@Entity({ name: "comments" })
export class CommentEntity {
@PrimaryGeneratedColumn("uuid")
id: string;
@ManyToOne(() => UserEntity, (u) => u.comments)... |
export const c_page__header_tools_MarginRight: {
"name": "--pf-c-page__header-tools--MarginRight",
"value": "1rem",
"var": "var(--pf-c-page__header-tools--MarginRight)"
};
export default c_page__header_tools_MarginRight; |
import { Component, OnInit } from '@angular/core';
import {Router} from'@angular/router';
import { formatDate } from '@angular/common';
import { HealthCareEventService } from '../../service/health-care-event.service';
export class DummyHCE {
date: string;
patientID: string;
patientName: string;
insuranceID: st... |
import React from 'react';
import classNames from 'classnames';
import { COMPONENT_PREFIX } from 'LumX/core/react/constants';
import { Alignment, Orientation, Size } from 'LumX/components';
import { IGenericProps, getRootClassName } from 'LumX/core/react/utils';
import { handleBasicClasses } from 'LumX/core/utils';... |
import { Injectable } from '@angular/core';
import { HttpRequest, HttpResponse, HttpHandler, HttpEvent, HttpInterceptor, HTTP_INTERCEPTORS } from '@angular/common/http';
import { Observable, of, throwError } from 'rxjs';
import { delay, materialize, dematerialize } from 'rxjs/operators';
import { Role } from '../_mode... |
import { Rule } from 'eslint';
import orderBy from 'lodash/orderBy';
import getCategory from './get-category';
const isDeprecated = (rule: Rule.RuleModule): boolean =>
rule.meta && rule.meta.deprecated ? true : false;
function sortRules(rules: Map<string, Rule.RuleModule>) {
const results = new Map();
const t... |
declare var com: any;
const _TextDrawable = com.amulyakhare.textdrawable.TextDrawable;
const _ColorGenerator = com.amulyakhare.textdrawable.util.ColorGenerator;
import view = require('ui/core/view');
import common = require('./textdrawable.common');
import {Color} from 'color';
export class TextDrawable extends common... |
import * as vscode from 'vscode';
/**
* Reads the package.json of the extension.
*/
export class PackageInfo {
// The extension info is stored here after setting the extensionPath.
public static extension: vscode.Extension<any>;
/**
* Sets the extension path.
* Called on extension activation.
*/
public... |
import { defaultInstance } from "../../../src/apiService";
import { setDefaultCustomerShippingAddress } from "@shopware-pwa/shopware-6-client";
jest.mock("../../../src/apiService");
const mockedApiInstance = defaultInstance as jest.Mocked<
typeof defaultInstance
>;
describe("CustomerService - setDefaultCustomerShip... |
export * from './breakpoint';
export * from './breakpointValue';
export * from './createBreakpoints';
export * from './createLimina';
export * from './limina'; |
import React from "react";
import {
Container,
Condition,
Row,
HeartIcon,
DispatchTag,
PriceCard,
PriceRow,
InstallmentsInfo,
StockStatus,
MethodCard,
CheckIcon,
Actions,
Button,
Benefits,
ShieldIcon,
} from "./styles";
const ProductAction: React.FC = () => {
return (
<Container>
... |
import React from 'react';
interface Props {
title: string;
children?: React.ReactNode;
className?: string;
}
export const Sidebar: React.FC<Props> = ({ title, children, className }) => {
return (
<div
className={`w-full flex flex-col bg-gray-800 rounded-2xl py-6 px-8 ${className}`}
>
<h4 ... |
export const TOP_ATOMS = [
"ㄱ",
"ㄲ",
"ㄴ",
"ㄷ",
"ㄸ",
"ㄹ",
"ㅁ",
"ㅂ",
"ㅃ",
"ㅅ",
"ㅆ",
"ㅇ",
"ㅈ",
"ㅉ",
"ㅊ",
"ㅋ",
"ㅌ",
"ㅍ",
"ㅎ",
];
export const MID_ATOMS = [
"ㅏ",
"ㅐ",
"ㅑ",
"ㅒ",
"ㅓ",
"ㅔ",
"ㅕ",
"ㅖ",
"ㅗ",
"ㅘ",
"ㅙ",
"ㅚ",
"ㅛ",
"ㅜ",
"ㅝ",
"ㅞ",
"ㅟ",
"ㅠ",
"... |
import update from "immutability-helper";
import PropTypes from "prop-types";
import React from "react";
import Form from "semantic-ui-react/dist/commonjs/collections/Form";
interface IStates {
subject: string;
contents: string;
}
export class MailComposer extends React.Component<{}, IStates> {
protected ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.