text
stringlengths
10
953k
import {task} from "../src/functional/core/Task"; const {assign} = Object; let taskA = task({a: 'a', b: 'b'}); let innerTask = taskA.resolve(data => { console.log(data); }); let taskB = task((data:Object) => assign(data, {c: 'c'})); let taskC = taskA.through(taskB); let dataA = taskC.unsafeRun() .then(_=...
// Copyright 2020 The Oppia 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 ap...
import VerifyPhone from '@celo/react-components/icons/VerifyPhone' import { render } from '@testing-library/react-native' import * as React from 'react' import { SendCallToAction } from 'src/send/SendCallToAction' describe('SendCallToAction', () => { it('renders correctly', () => { const { toJSON } = render( ...
import {Entity} from "../../../../../../src/index.ts"; import {PrimaryColumn} from "../../../../../../src/index.ts"; import {Column} from "../../../../../../src/index.ts"; @Entity() export class Post { @PrimaryColumn({ type: Number }) id!: number; @Column("varchar", { length: 50 }) varcha...
import { BitError } from 'bit-bin/dist/error/bit-error'; export class ConfigDirNotDefined extends BitError { constructor() { super(generateMessage()); } report() { return this.message; } } function generateMessage() { return `error: the config directory is not defined`; }
/// <reference types="mocha" /> import { assert } from 'chai'; describe('PropertyBagDisplayWebPart', () => { it('should do something', () => { assert.ok(true); }); });
import React from 'react'; import { MintDistribution } from '~/utils/types'; import Loading from '~/cross-app-components/Loading'; import withChainData, { ChainData } from '../../common/withChainData'; import { getCurrentValue, getSlotsPerYear, rewardDistributionLabels, toRewardDistributionValue, } from...
export default `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path opacity="0.8" fill-rule="evenodd" clip-rule="evenodd" d="M12.5 5.02242C15.3033 5.27504 17.5 7.63098 17.5 10.5V13.4254C18.4211 13.9472 19 14.9279 19 16C19 17.1046 18.1046 18 17 18H13.5C13.5 19.1046 12.60...
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { ITask, ITaskTypeOption } from '../../../interface/task'; import { TaskService } from '../../service/task.service'; @Component({ te...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http'; import { environment } from './../../../environments/environment'; import { catchError } from 'rxjs/operators'; import { throwError } from 'rxjs'; import { RequestManager } from '../../managers...
/* * Copyright 2018- The Pixie Authors. * * 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 ag...
// #docregion import {bootstrap} from 'angular2/angular2'; import {AppComponent} from './app.component'; // #docregion import-hero-service import {HeroService} from './hero.service'; // #enddocregion import-hero-service bootstrap(AppComponent, [HeroService]); // #enddocregion // #docregion import-router import {Router...
import { assert } from './auxiliaries'; import { Context } from './context'; import { WEBGL1_EXTENSIONS, WEBGL2_EXTENSIONS } from './extensions'; export class ExtensionsHash { protected static readonly WEBGL_BACKENDS: Array<string> = ['webgl1', 'webgl2']; protected static readonly WEBGL_EXTENSIONS_BY_BACKEN...
import remark from 'remark' import html from 'remark-html' import basepath from 'remark-basepath' // @ts-expect-error import highlight from 'remark-highlight.js' export async function markdownToHtml( markdown: string, basePathOption: Parameters<typeof basepath>[0] ) { const result = await remark() .use(basepa...
import path from 'path'; import { exec, ExecException } from 'child_process'; function runCLI (args: string[] = []): Promise<{ code: number; error: ExecException | null; stdout: string; stderr: string; }> { return new Promise(resolve => { exec( `node ${path.resolve(__dirname + '../../../bin/vue-i1...
/* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices'; import { util, configure } from 'protobufjs/minimal'; import Long from 'long'; import { Observable } from 'rxjs'; import { Metadata } from '@grpc/grpc-js'; export const protobufPackage = 'ultimate_backend.srv.billing'; export e...
import { useAppSetting } from '@/hooks/setting/useAppSetting' import { breakpointsTailwind } from '@vueuse/core' import type { EChartsOption } from 'echarts' import type { Ref } from 'vue' import { computed, nextTick, ref, unref, watch, onActivated } from 'vue' import echarts from './echarts' export function useEChart...
import {Component} from "@angular/core"; import {ContextMenuComponent} from "./context-menu.component"; @Component({ selector: 'wu-hamburger-menu', templateUrl: './hamburger-menu.component.html', styleUrls: ['./hamburger-menu.component.scss'] }) export class HamburgerMenuComponent extends ContextMenuCompon...
import React, { forwardRef } from 'react'; import type { IconBaseProps } from '../icon/IconBase'; import IconBase from '../icon/IconBase'; const CalendarEventFill = forwardRef<HTMLSpanElement, IconBaseProps>(({ svgProps, ...restProps }, ref) => { return ( <IconBase aria-label="calendar-event-fill" {...restProps}...
import React from 'react'; import { cx } from './Utils'; import { AttributeField } from '@veupathdb/wdk-client/lib/Utils/WdkModel'; import { renderAttributeValue } from '@veupathdb/wdk-client/lib/Utils/ComponentUtils'; import { Tooltip } from '@veupathdb/wdk-client/lib/Components'; import { StudyRecord, StudyRecordCla...
import { World, Entity } from 'ecsy'; import { CPosition } from './../component/cposition'; import { CPlayer } from './../component/cplayer'; import { IVec2 } from './../../math/vector'; import { CNetworkEntity } from '../component/cnetwork_entity'; import { CCameraFollow } from '../../../client/game/camera/ccamera_fol...
import React, { useCallback } from 'react'; import { PressableProps, Pressable, ViewStyle } from 'react-native'; export interface PressableOpacityProps extends PressableProps { disabledOpacity?: number; activeOpacity?: number; } export const PressableOpacity = ({ style, disabled = false, disabledOpacity = 1...
import { Typography } from 'antd'; import React from 'react'; import { useTranslation } from 'react-i18next'; import styled from 'styled-components'; import logo from '../../assets/logo.png'; import FacebookLoginButton from '../FacebookLoginButton/FacebookLoginButton'; import TitleWithAddon from '../TitleWithAddon/Tit...
export { addClass , removeClass , hasClass } from './classHelpers';
import { Location } from "@alehuo/clubhouse-shared"; import moment from "moment"; import knex from "../Database"; import { dtFormat } from "../utils/DtFormat"; import Dao from "./Dao"; const TABLE_NAME = "locations"; class LocationDao implements Dao<Location> { public findAll(): PromiseLike<Location[]> { return...
import React from 'react'; import {manager, State} from './base.stories'; import {useManager} from '../src/useManager'; export const App = () => { const [{counter, short}, {changeCounter, changeShort}] = useManager<State>(manager) return ( <div> <h1>{counter}</h1> <h1>{`${short}`}</h1>...
import fs from 'fs'; import path from 'path'; import { HexValue, RGBValue, RGBAValue, FileDescriptor } from './types'; // converts an rgb string 'rgb(15,24,128)' to a hex value '#0819A9' export const rgbToHex = (r: number, g: number, b: number): HexValue => { const hex = ((1 << 24) + (r << 16) + (g << 8) + b).toStri...
import type { Options, Value, Value_v0 } from '@react-page/editor'; import Editor from '@react-page/editor'; import React, { useState } from 'react'; import PageLayout from '../../components/PageLayout'; import { cellPlugins } from '../../plugins/cellPlugins'; import contents from '../../sampleContents/v0'; const LANG...
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction import type { NextApiRequest, NextApiResponse } from 'next' type Data = { name: string } export default function handler( req: NextApiRequest, res: NextApiResponse<Data> ) { res.status(200).json({ name: 'Welcome from the tax 🍟' }) ...
// Type definitions for nightwatch 0.9 // Project: http://nightwatchjs.org/api // Definitions by: Rahul Kavalapara <https://github.com/rkavalap> // Connor Schlesiger <https://github.com/schlesiger> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* tslint:disable:max-line-length */ ...
/* eslint-disable */ import { ObjectIdentifier as _OID, OBJECT_IDENTIFIER } from "asn1-ts"; import { id_at } from "../UsefulDefinitions/id-at.va"; export { id_at } from "../UsefulDefinitions/id-at.va"; /* START_OF_SYMBOL_DEFINITION id_at_protPrivPolicy */ /** * @summary id_at_protPrivPolicy * @description * * ### ...
import { Component, OnInit } from '@angular/core'; import { SurveyServiceService } from '../../../services/survey-service.service'; import * as firebase from 'firebase/app'; import { ToastController } from '@ionic/angular'; import {Router, NavigationExtras} from '@angular/router'; require('firebase/auth'); @Component...
/* eslint-disable @typescript-eslint/no-misused-promises */ import { EventEmitter } from "events"; import { ITask } from "../models/database/Task"; import { ITaskDataStructures } from "./DataStructureFactory"; export enum TaskEvent { Scheduled = "scheduled", Started = "started", Suspended = "suspended", Failed...
import React, { useState, useEffect } from 'react'; import CopyToClipboard from "react-copy-to-clipboard"; import { message } from 'antd'; import MiniButton from './MiniButton'; import host from '../../api/host'; import api from '../../api'; import { useUser } from '../../hooks'; import { match } from 'react-route...
import { BodyParserConfig } from '@ioc:Adonis/Core/BodyParser' const bodyParserConfig: BodyParserConfig = { whitelistedMethods: ['POST', 'PUT', 'PATCH', 'DELETE'], json: { encoding: 'utf-8', limit: '1mb', strict: true, types: [ 'application/json', 'application/json-patch+json', 'a...
/// /// Copyright © 2016-2020 The Thingsboard Authors /// /// 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...
import { Component, OnInit } from '@angular/core'; import { ProfileService } from './profile.service'; import { ProfileInfo } from './profile-info.model'; @Component({ selector: 'jhi-page-ribbon', template: `<div class="ribbon" *ngIf="ribbonEnv"><a href="" jhiTranslate="global.ribbon.{{ribbonEnv}}">{{ribbonEnv...
// *** 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! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.0"> <context> <name>SBI_ImagesIcon</name> <message> <location filename="../sbi_imagesicon.cpp" line="32"/> <source>Modify images loading settings per-site and globally</source> <translation>Mudar definições de carregament...
declare const _default: { readonly type: "object"; readonly properties: { readonly post_code: { readonly type: "string"; }; readonly address_line_1: { readonly type: "string"; }; readonly address_line_2: { readonly type: "string"; ...
import * as React from "react"; import { newWindup, Windup, WindupMember, windupFromString, memberIsWindup } from "../Windup"; import { isPaceElement, isMsProp } from "./Pace"; import { isOnCharElement } from "./OnChar"; import { isPauseElement } from "./Pause"; import useWindup, { HookMetadata } from "./useW...
// *** 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! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
import { DEVELOPMENT, DISCORD_TOKEN, EVENT_HANDLER_PORT, EVENT_HANDLER_SECRET_KEY, EVENT_HANDLER_URL, } from "../../configs.ts"; import { Collection, createGatewayManager, DiscordReady, GatewayManager, GetGatewayBot } from "../../deps.ts"; import { logger } from "../utils/logger.ts"; let gateway: GatewayMana...
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient"; import { SimulateCustomPolicyRequest, SimulatePolicyResponse } from "../models/models_0"; import { deserializeAws_querySimulateCustomPolicyCommand, serializeAws_querySimulateCustomPolicyCommand, } from "../protocols/Aws_q...
/* * ----------------------------------------------------------------------------- * Warning: This file is auto-generated by contracts-gen. Don't edit manually. * ----------------------------------------------------------------------------- */ import { ContractArtifact } from 'ethereum-types'; import * as ChaiBrid...
import { ProjectModel } from "../models/project.model"; import { v4 as uuidv4 } from "uuid"; import { getTasksMock } from "./task.mock"; export function getProjectMock(){ const project = new ProjectModel(); project._id = uuidv4(); project.title = "Project ABC"; project.tasks = getTasksMock(); retu...
import { ImageLoader, Loader, LoadingManager, Cache } from "three"; export class VideoLoader extends Loader { static autoplay = true; static preload: "" | "none" | "metadata" | "auto" = "auto"; static muted = true; static loop = true; constructor(manager?: LoadingManager) { super(manager); } load( ...
/* eslint-disable camelcase */ /** * 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, Vers...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms' import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { AboutComponent } from './about/about.component'; im...
import global from 'global'; import React, { Component, FunctionComponent, ReactElement, StrictMode, Fragment } from 'react'; import ReactDOM from 'react-dom'; import { StoryContext, RenderContext } from './types'; const { document, FRAMEWORK_OPTIONS } = global; const rootEl = document ? document.getElementById('roo...
// Copyright 2017-2021 @polkadot/x-global authors & contributors // SPDX-License-Identifier: Apache-2.0 // Auto-generated by @polkadot/dev, do not edit export const packageInfo = { name: '@polkadot/x-global', version: '6.0.6-3' };
import { FC, Suspense, lazy } from 'react'; import { Tabs, Tab } from 'franklin-sites'; import SubcellularLocationView from './SubcellularLocationView'; import SubcellularLocationGOView from './SubcellularLocationGOView'; import { SubcellularLocationComment } from '../../types/commentTypes'; import { TaxonomyDatum } ...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { PlayerController } from './player.controller'; import { Player } from './player.entity'; import { PlayerService } from './player.service'; @Module({ controllers: [PlayerController], providers: [PlayerService], impo...
import * as images from "images"; // from https://github.com/zhangyuanwei/node-images/blob/master/demo/uploadServer.js const tmp_path = "tmp_path"; const out_path = "out_path"; const photo = images(tmp_path); photo.size(800) .draw(images('./logo.png'), 800 - 421, photo.height() - 117) .save(out_path, { qualit...
import { dotS2, dotS3, dotS4, setC, setC4, setC6, vop } from "@thi.ng/vectors"; import { MultiMatOpMM } from "./api"; /** * Performs matrix-matrix multiplication. If `out` is not given, writes * result in `a`. * * @param out * @param a * @param b */ export const mulM: MultiMatOpMM = ...
import React from "react" import { Meta, Story } from "@storybook/react" import { IQuestionnaireProps, TiroQuestionnaireResponse } from "./QuestionnaireResponse" import { DynamicQuestionnaire, TiroQuestionnaireCanonical } from "./Questionnaire" export default { title: "components/Questionnaires/DynamicQuestionnair...
/* this implementation is original ported from https://github.com/logaretm/vue-use-web by Abdelrahman Awad */ import { ref, Ref } from 'vue-demi' import { useEventListener } from '../useEventListener' import { ConfigurableWindow, defaultWindow } from '../_configurable' /** * Reactive DeviceOrientationEvent. * * @s...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', async () => { await page.navigateTo(); expect(await page.getTitleText()...
import React from 'react'; import { useTranslation } from 'react-i18next'; import Drawer from '@material-ui/core/Drawer'; import List from '@material-ui/core/List'; import Grid from '@material-ui/core/Grid'; import { makeStyles } from '@material-ui/core/styles'; import HomeRoundedIcon from '@material-ui/icons/HomeRound...
export default ValidationPresetRequired; declare class ValidationPresetRequired extends ValidationPresetNotOneOf { constructor(config?: {}); $isValidationPresetRequired: boolean; } import ValidationPresetNotOneOf from "./ValidationPresetNotOneOf";
/** * @file Rattle 拨浪鼓 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import React from 'react'; import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper( 'rattle', true, (props: ISvgIconProps) => ( <svg ...
import statusCode400 from './400'; import statusCode401 from './401'; import statusCode404 from './404'; import statusCode409 from './409'; import statusCode500 from './500'; export { statusCode400, statusCode401, statusCode404, statusCode409, statusCode500, };
import { RoboMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RoboMakerClient"; import { ListDeploymentJobsRequest, ListDeploymentJobsResponse } from "../models/models_0"; import { deserializeAws_restJson1ListDeploymentJobsCommand, serializeAws_restJson1ListDeploymentJobsCommand, } from "...
import React, { FC, useEffect, useMemo, useState } from 'react'; import { Classes, Card, Divider, H3, H5, Menu, MenuDivider, MenuItem, Text, Button, ButtonGroup, NonIdealState, Dialog, Spinner, } from '@blueprintjs/core'; import { useQuery } from 'react-query'; im...
// accessor class for the on-chain version registry import { PrefixedHexString } from 'ethereumjs-tx' import { bufferToHex } from 'ethereumjs-util' import { Contract } from 'web3-eth-contract' import versionRegistryAbi from './interfaces/IVersionRegistry.json' import Web3 from 'web3' export function string32 (s: stri...
/// <reference path="../../../types.d.ts" /> import { RequestLogger } from 'testcafe'; import { buildRequestHooks } from '../../../helpers'; import hooks from './confirmation.hooks'; const logger = RequestLogger(/\/v1\/.+\/events/, { logRequestBody: true, stringifyRequestBody: true }); fixture `Predicated Varian...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SelaCoin</source> <translation>SelaCoin Hakkında</translation> </message> <message> <lo...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ReportingSalesThankYouComponent } from './reporting-sales-thank-you.component'; describe('ReportingSalesThankYouComponent', () => { let component: ReportingSalesThankYouComponent; let fixture: ComponentFixture<ReportingSalesThankYo...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MyGithubComponent } from './my-github.component'; describe('MyGithubComponent', () => { let component: MyGithubComponent; let fixture: ComponentFixture<MyGithubComponent>; beforeEach(async(() => { TestBed.configureTestingMod...
export interface LibFormStatus { name: string; isDirty: boolean; isValid: boolean; }
import { EditorState } from 'prosemirror-state' import { MarkRange } from '../types' export default function getMarksBetween(from: number, to: number, state: EditorState): MarkRange[] { let marks: MarkRange[] = [] state.doc.nodesBetween(from, to, (node, pos) => { marks = [...marks, ...node.marks.map(mark => (...
/** * Default sample for smith chart */ import { Smithchart, } from '../../src/smithchart/smithchart'; import { SmithchartAlignment} from '../../src/smithchart/utils/enum'; import { SmithchartLegend, } from '../../src/smithchart/legend/legendrender'; Smithchart.Inject(SmithchartLegend); let smithchart: Smithchart ...
import { Match, Matcher, MatchResult } from '@aws-cdk/assertions'; export function stringLike(pattern: string) { return new StringLike(pattern); } export function sortByRunOrder(pattern: any[]): Matcher { return new Sorter('SortByRunOrder', pattern, (a: any, b: any) => { if (a.RunOrder !== b.RunOrder) { retur...
import { ObservableInputTuple, OperatorFunction } from "../types.ts"; import { operate } from "../util/lift.ts"; import { OperatorSubscriber } from "./OperatorSubscriber.ts"; import { innerFrom } from "../observable/innerFrom.ts"; import { identity } from "../util/identity.ts"; import { noop } from "../util/noop.ts"; i...
import { connect, connection } from 'mongoose'; const { MONGO_URL, MONGO_DATABASE, MONGODB_URI } = process.env; connect(MONGODB_URI || `${MONGO_URL}/${MONGO_DATABASE}`, { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true }); connection.on('error', console.error.bind(console, 'connectio...
import { PaymentAmount, PaymentMethod } from '../../types'; import UIElement, { UIElementProps } from '../UIElement'; import { SUPPORTED_LOCALES } from './config'; // eslint-disable-next-line @typescript-eslint/no-unused-vars declare global { interface Window { paypal: object; } } /** * The intent fo...
import { IsUUID} from "@libs/core/validator" export class IdDTO { @IsUUID() id:string }
import { Expose } from '../../../../node_modules/class-transformer' export class InspectionsListItem { id: number /** * 项目id */ projectId: number /** * 用户id */ userId: number /** * 多张照片的id拼接字符串,多个id间用‘,’分隔 */ picIdJoining: string /** * 评价内容 */ content: string /** * 创...
import { hoursType } from '../pages/Home/dto'; import { projectType } from '../pages/HoursRegistration/dto'; function handleProjectHoursJob( element: hoursType, arrProjectHoursJob: (string | number)[][], arrProjects: projectType[], ): void { arrProjects.forEach((project) => { if (project._id === element.pr...
import type { FC } from 'react' import { useRecentlyViewed } from '@/hooks' import { Spinner, RecentlyViewedService } from '@/components/ui' function renderRecentlyViewed(recentlyViewedApis: ExploreAPI[]) { if (recentlyViewedApis.length === 0) { return ( <p className="text-zinc-400"> You haven&apos...
import {Colors, Icon} from '@blueprintjs/core'; import * as React from 'react'; import {Link, LinkProps, useHistory, useLocation} from 'react-router-dom'; import styled from 'styled-components'; import {ShortcutHandler} from 'src/app/ShortcutHandler'; import navBarImage from 'src/images/nav-logo-icon.png'; import navT...
export * from './from-json'; export * from './provider'; export * from './addresses';
import { ElastiCacheClient } from "../../ElastiCacheClient"; import { DescribeEventsCommand } from "../../commands/DescribeEventsCommand"; import { DescribeCacheClustersCommand } from "../../commands/DescribeCacheClustersCommand"; declare let defaultRegion: string; declare const credentials: any; describe("@aws-sdk/cli...
export { getInspiration } from './common/inspiration'
import { Student } from './Student' import { Observerable } from './Observerable' export class Podcast implements Observerable{ private list = new Array(); public name: string; constructor(name: string){ this.name = name } add(student: Student): void{ this.list.push(student) }...
import React, { forwardRef } from "react"; import { IconWeight, IconProps, PaintFunction, renderPathForWeight, } from "../lib"; import IconBase, { RenderFunction } from "../lib/IconBase"; const pathsByWeight = new Map<IconWeight, PaintFunction>(); pathsByWeight.set("bold", (color: string) => ( <> <path ...
import { Module } from '@nestjs/common'; import { WechatLoginService } from './wechat-login.service'; import { WechatLoginController } from './wechat-login.controller'; import { UserService } from 'src/user/user.service'; import { HttpModule } from '@nestjs/axios'; import { PrismaService } from 'src/prisma.service'; im...
import { Component, OnInit } from "@angular/core"; import {DataHelperService} from '../../services/dataHelper.service'; @Component({ selector: "app-setting", templateUrl: "setting.component.html", styleUrls: ['./setting.component.css'] }) export class SettingComponent implements OnInit { constructor(private da...
import { Component, OnInit, ViewChild } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MailSenderService } from "../mail-sender.service" import './ckeditor.loader'; import 'ckeditor'; @Component({ selector: 'ngx-invitacion-presupuesto', templateUrl: './invitacion...
import React from 'react'; import { print, graphql as execute, GraphQLSchema, GraphQLObjectType, GraphQLList, GraphQLString, GraphQLID, DocumentNode } from 'graphql'; import gql from 'graphql-tag'; import { ApolloClient } from '../../../../core'; import { ApolloProvider } from '../../../context'; impor...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, AadAuthenticationParameters, AddressSpace, ApplicationGa...
import { IEntityDTO } from './entity.DTO'; import { NamedBlobDTO } from './namedBlob.DTO'; import { UserState } from './userState.ENUM'; export class AuthEditUserRequestDTO implements IEntityDTO { firstName: string = ''; lastName: string = ''; userName: string = ''; idRole: number = 0; idUserOwner: nu...
import * as React from 'react'; import { Button, Split, SplitItem, TextInput, ButtonVariant } from '@patternfly/react-core'; import { connect } from 'react-redux'; import { OvirtProviderField, VMImportProvider, VMWareProviderField } from '../../../types'; import { vmWizardActions } from '../../../redux/actions'; import...
export function dnaCost(baseCost:number, ...sequences: string[]) { return sequences.reduce( (sum, sequence)=> sum + sequence.length, baseCost ); }
import {chromeTabs} from '../chrome-wrapper/chromeTabs'; export default (): void => { // 現在のバージョンでは動かなくなった chromeTabs.createLast('chrome://restart'); };
import React, { forwardRef, SVGAttributes } from "react"; interface Props extends SVGAttributes<SVGElement> { size?: number; } const ChevronDown = forwardRef(({ size = 24, ...props }: Props, ref: any) => { return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" ref...
import PDFArray from 'src/core/objects/PDFArray'; import PDFBool from 'src/core/objects/PDFBool'; import PDFHexString from 'src/core/objects/PDFHexString'; import PDFName from 'src/core/objects/PDFName'; import PDFNull from 'src/core/objects/PDFNull'; import PDFNumber from 'src/core/objects/PDFNumber'; import PDFObject...
export const BASE_URI_SERVER = '/api';
import { albumType, cardType, fileType, userType } from './types'; import firebase from 'firebase/app'; import 'firebase/storage'; import 'firebase/firestore'; import 'firebase/database'; export async function uploadImage(file: fileType, tags: string[], user: userType) { let lastCardId: number = 0; let imageURL: s...
import { map, tap } from 'rxjs/operators'; import { HttpEvent, HttpEventType, HttpHandler, HttpInterceptor, HttpRequest, } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; export class AuthInterceptorService implements HttpInterceptor { // TODO * H...