text
stringlengths
10
953k
import React from 'react'; import { Theme } from '@material-ui/core'; import { makeStyles, useTheme } from "@material-ui/core/styles"; import useMediaQuery from '@material-ui/core/useMediaQuery'; import {FileWithPath, useDropzone} from 'react-dropzone'; interface DropzoneStyleProps { borderColor: string; minHeig...
type AchievementViewCompletionProps = { awardedXp: number; completionText: string; }; function AchievementViewCompletion(props: AchievementViewCompletionProps) { const { awardedXp, completionText } = props; const paragraphs = completionText ? completionText.split('\n') : ['']; return ( <div className="...
import assert = require('power-assert') import { describe, it } from 'mocha' import Line, { combineLine, combineSaturatedLine, saturatedLineToLine, SaturatedLine, lineToLintedString } from '../../types/Line' import ParsingError from '../../types/ParsingError' import { VanillaConfig } from '../../types/Config' import To...
import { ApiProperty } from "@nestjs/swagger"; import { AutoMap } from 'nestjsx-automapper'; import { AttachmentVM } from "."; import { EmployeeVM } from "../employee-view-models"; import { CustomerVM } from "../customer-view-models"; import { ActivityVM } from "./activity.view-model"; import { DealDetailVM } from "./d...
import { SearchkitManager, AccessorManager, ESTransport, AxiosESTransport, ImmutableQuery, createHistory, PageSizeAccessor, SearchRequest, EventEmitter, QueryAccessor, AnonymousAccessor, MockESTransport } from "../../" describe("SearchkitManager", ()=> { beforeEach(()=> { this.host = "http://localhost:920...
import { AmongusClient } from "../Client" import { Player } from "./objects/Player" import { ColourID, HatID, MessageID, PacketID, PayloadID, PetID, RPCID, SkinID, SystemType, TaskID } from "../constants/Enums" import { Vector2 } from "../interfaces/Types" import { Player...
import { AllocateStaticIpCommandInput, AllocateStaticIpCommandOutput } from "./commands/AllocateStaticIpCommand"; import { AttachCertificateToDistributionCommandInput, AttachCertificateToDistributionCommandOutput, } from "./commands/AttachCertificateToDistributionCommand"; import { AttachDiskCommandInput, AttachDis...
import { Component, OnInit, Input, ViewChild } from '@angular/core'; import { BaseAudioPlayerFunctions } from '../base/base-audio-player-components'; import { MatMenuTrigger, MatMenu, MenuPositionX } from '@angular/material'; @Component({ selector: 'mat-basic-audio-player', templateUrl: './mat-basic-audio-play...
import { assert, UnitTest } from '@ephox/bedrock-client'; import { Gene } from 'ephox/boss/api/Gene'; import * as Comparator from 'ephox/boss/mutant/Comparator'; UnitTest.test('ComparatorTest', () => { const a = Gene('id1', 'bob', [], {}, { border: '10' }); const b = Gene('id2', 'b name', [], {}, { cat: 'dog' })...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { PlotPlacementComponent } from './plot-placement.component'; describe('PlotPlacementComponent', () => { let component: PlotPlacementComponent; let fixture: ComponentFixture<PlotPlacementComponent>; beforeEach(async(() => { Te...
interface VerifyEnableConfigInput { /** * Multi dimensional Array since we get one Array from each output */ errors: string[][]; } interface VerifyEnableConfigOutput { status: string; /** * Single Dimensional Array constructed for readablity from Multi Dimensional */ errors: string[]; } export c...
import { createMuiTheme, colors } from '@material-ui/core'; import shadows from './shadows'; import typography from './typography'; const theme = createMuiTheme({ palette: { background: { dark: '#F4F6F8', default: colors.common.white, paper: colors.common.white }, primary: { main:...
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormBuilder } from "@angular/forms" import { RxwebValidators } from '@rxweb/reactive-form-validators'; @Component({ selector: 'app-minLength-message-validator', templateUrl: './min-length-message.component.html' }) export class MinLengthMes...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { schemas as SQUARES_DEMO_SCHEMAS } from "./squares_demo"; export { registerSchemas } from "./schemasRegisterer"; export { SQUARES_DEMO_SCHEMAS }; export const ALL_SCHEMAS = { SQUARES_D...
// import { errorSetError } from 'fm3/actions/errorActions'; import { l10nSetChosenLanguage } from 'fm3/actions/l10nActions'; import { enableUpdatingUrl, setAppState, setEmbedFeatures, } from 'fm3/actions/mainActions'; import { ErrorCatcher } from 'fm3/components/ErrorCatcher'; import { Main } from 'fm3/component...
/** * @file Transition * @author Jim Bulkowski <jim.b@paperelectron.com> * @project exigency * @license MIT {@link http://opensource.org/licenses/MIT} */ import {StateChange, Transition, TransitionParams} from '../src/Transition' import {PendingTask, Task, TaskController} from "../src"; import {TaskHandler} from ...
// Copyright 2015-2021 Swim inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
import { setMany, getMany, delMany, clear } from 'idb-keyval'; import { ApplicationState } from './state'; export async function saveToBrowser(states: ApplicationState): Promise<void> { return setMany(Object.entries(states)) .catch(err => { console.error("Failed to save app states to IndexDB")...
import {BibleVerses} from "src-electron/types/bible"; export interface PreparedVerse extends BibleVerses{ short_name: string }
import { Document, Types } from 'mongoose'; export declare type CompostDocument = Address & Document; export declare class Coordinates { lat: Types.Decimal128; lng: Types.Decimal128; } export declare class Address { street: string; city: string; zipcode: number; coordinates: Coordinates; } expor...
/* Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license...
import { Logger } from '@lcluber/mouettejs'; import { Reward } from './reward'; export interface Groups { [key: string]: Reward[] } export class Rewards { list: Reward[]; constructor( ) { this.list = []; } public add( name: string, title: String, description: string, ...
import * as logger from "winston"; import Axios, { AxiosError, AxiosResponse, AxiosRequestConfig } from "axios"; class WebClient { constructor() {} /** * The GET Request Config for retrieving the Endpoint URLs from Registry * @param params * @param user * @param pass */ private getURLRequestConfig( p...
import schema2component from "../../../utils/schema2component"; // id: 1, // name: '张三', // age: 18, // tel: '13111011101', // gender: 1, // company: 'XX XX XX' const schema = { type: 'page', title: '会员列表', subTitle: '展示基本的增删改查', toolbar: [ ], body: { type: "crud", api: "/api/c...
import { Output } from './output'; import { Request } from '../request'; import { UserFlow } from '../user-flow'; import { Suite, PhaseDefinition } from '../suite'; import { basicStats } from '../stats'; import { nowISO, formatMs, HRTime, hrDuration } from '../utils'; export class SimpleOutput extends Output { privat...
import { fakeAsync, flush, inject, TestBed, tick } from '@angular/core/testing'; import { RaidenConfig } from './raiden.config'; import { HttpClientModule } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController, } from '@angular/common/http/testing'; import { NotificationService }...
import React from 'react'; import Layout from './../../components/Layout'; import { Box, Heading, Spinner } from '@chakra-ui/core'; import { useFetchPost } from './../../utils/useFetchPost'; import { withApollo } from '../../utils/withApollo'; const Post: React.FC<{}> = () => { const { data, loading, error } = useFe...
// SPDX-License-Identifier: MIT // Copyright (c) 2020 Daimler TSS GmbH /** * A helper class to load additional scripts in runtime. * * @class ScriptLoader * @param url: string */ export class ScriptLoader { private doc: HTMLDocument; private head: HTMLHeadElement; private url: string; constructor(url: st...
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
import * as express from 'express'; import { MetricsHandlers } from '../handlers/metrics_handler'; import { MetricsService } from '../services/metrics_service'; export const createMetricsRouter = (metricsService: MetricsService): express.Router => { const router = express.Router(); const handlers = new Metric...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormlyModule } from '@ngx-formly/core'; import { ReactiveFormsModule } from '@angular/forms'; import { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field'; import { FileUploadModule } from 'ng2-file-upload';...
import { Module } from '@nestjs/common' import { TypeOrmModule } from '@nestjs/typeorm' import { DiaryController } from './diary.controller' import { Diary } from './diary.entity' import { DiaryService } from './diary.service' @Module({ providers: [DiaryService], imports: [TypeOrmModule.forFeature([Diary])], exp...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-m0c0', templateUrl: './m0c0.component.html', styleUrls: ['./m0c0.component.css'] }) export class M0c0Component implements OnInit { componentName = 'Module no. 0 - Component no. 0'; constructor() { } ngOnInit(): void { } }
export class User { id: string; name: string; email: string; }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About CashhCoin</source> <translation>Despre CashhCoin</translation> ...
import { Component, OnInit } from '@angular/core'; import { GameService } from "src/app/games/memory-game/service/game.service"; import { Router } from "@angular/router"; @Component({ selector: 'app-start', templateUrl: './start.component.html', styleUrls: ['./start.component.css'] }) export class StartComponent...
import React from 'react'; import { observer } from "mobx-react"; import { Route, Switch, RouteComponentProps } from 'react-router-dom'; import AdminLogContainer from './containers/AdminLogContainer'; export default observer((props: RouteComponentProps) => { return ( <Switch> <Route path={`${props.match.p...
export class Scoreboard { constructor(firstPlayerScore: number = 0, secondPlayerScore: number = 0) { this.firstPlayerScore = firstPlayerScore; this.secondPlayerScore = secondPlayerScore; } public firstPlayerScore: number; public secondPlayerScore: number; public registerWin(player: ...
import { IterableX } from '../../iterable/iterablex'; import { buffer } from '../../iterable/buffer'; /** * @ignore */ export function bufferProto<T>(this: IterableX<T>, count: number, skip?: number): IterableX<T[]> { return buffer<T>(this, count, skip); } IterableX.prototype.buffer = bufferProto; declare module...
import './more-dropdown.css'; import React from 'dom-chef'; import select from 'select-dom'; import elementReady from 'element-ready'; import * as pageDetect from 'github-url-detection'; import DiffIcon from 'octicon/diff.svg'; import BranchIcon from 'octicon/git-branch.svg'; import HistoryIcon from 'octicon/history.s...
/** * @license * Copyright Color-Coding Studio. All Rights Reserved. * * Use of this source code is governed by an Apache License, Version 2.0 * that can be found in the LICENSE file at http://www.apache.org/licenses/LICENSE-2.0 */ /// <reference path="../../3rdparty/require.d.ts" /> /// <reference path="../../bo...
import { EggPlugin } from 'egg' const plugin: EggPlugin = { // static: true, // nunjucks: { // enable: true, // package: 'egg-view-nunjucks', // }, // assets :{ // enable: true, // package: 'egg-view-assets', // }, cors: { enable: true, package: 'egg-cors', }, } export default p...
export interface IUserInfo { username: string; userRole: string; userImg: React.ReactNode; } export interface IMenu { title: string; path: string; after?: React.ReactNode; iconNormal?: React.ReactNode; iconActive?: React.ReactNode; isChild?: boolean; childrens?: IMenu[]; isActive?: boolean; isDisable?: boo...
import React from "react"; import styled from "styled-components"; import Label from "../common/Label"; import { MONTHS } from "../constants"; const Wrapper = styled.View<{ isFirst: boolean }>` padding: 30px 20px; border-top-width: ${({ isFirst }) => (isFirst ? 0 : 1)}px; background: ${({ theme }) => theme.seco...
/* * Copyright 2021 ThoughtWorks, Inc. * * 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 agr...
import { GroupTotals } from '../core'; import { Item } from '../dataview'; import { Aggregator } from './index'; export declare class MinAggregator extends Aggregator { private min; init(): void; accumulate(item: Item): void; storeResult(groupTotals: GroupTotals): void; }
// *** 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 { platformBrowser } from '@angular/platform-browser'; import { AppModuleNgFactory } from './aot/app/app.module.ngfactory'; console.log('Running AOT compiled'); platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { UserService } from './user.service'; import { User, UserSchema } from './user.schema'; import { PasswordModule } from '../../utils/Password/password.module'; @Module({ imports: [ MongooseModule.forFeature([ ...
version https://git-lfs.github.com/spec/v1 oid sha256:97160cd7caeaa9b768fb7b081a071ce32484ac012fa4d22db77793ae91f0e637 size 1699708
import chalk from 'chalk'; import { readFileSync } from 'fs'; import { IGitDetector } from '../install/git-detector/git-detector'; import Config from '../shared/config/config'; import { IConfigManager } from '../shared/config/manager/config-manager'; import { IBuiltPackageJson } from '../shared/i-built-package-json'; ...
import { rdf, rdfs } from '@tpluscode/rdf-ns-builders' import { Context, GeneratedModule } from '../index' import { EnumerationModule } from './EnumerationModule' import { TypeMetaCollection } from '../types' export function findTermsToGenerate(types: TypeMetaCollection, { vocabulary }: Pick<Context, 'vocabulary'>): G...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Component, Vue } from 'vue-property-decorator' import { StateService } from "../../../../core" @Component export default class DashboardPage extends Vue { constructor() { super(); } beforeCreate() { } created() { StateService.$emit('breadcrumbUrl', { title: "Dash...
class WriteResponse { id: string name: string }
/** * ID: 00684 * Title: Redundant Connection * Difficulty: Medium * Description: In this problem, a tree is an undirected graph that is connected and has no cycles. * * You are given a graph that started as a tree with n nodes labeled from 1 to n, with one additional edge added. The added edge has two differe...
import React from 'react'; import { Trans } from '@lingui/macro'; import styled from 'styled-components'; import { useSelector } from 'react-redux'; import { Typography, Tooltip, IconButton, } from '@material-ui/core'; import { Delete as DeleteIcon } from '@material-ui/icons'; import { Flex, Table, FormatBy...
/// <reference path='fourslash.ts' /> ////function foo<T>(a: T) { //// a; //// abstract class C<U> { //// abstract a: T | U; //// } //// return C; ////} //// ////class B extends foo("s")<number> {[| |]} verify.codeFix({ description: "Implement inherited abstract class", // TODO: GH#18795 ...
import TypeAnnotationKind from '../TypeAnnotationKind'; import TypeAnnotationBase from '../TypeAnnotationBase'; /** * Example: * * type value = any; */ export default interface ThisTypeAnnotation extends TypeAnnotationBase { readonly kind: TypeAnnotationKind.ThisTypeAnnotation; }
import React from "react"; import { render } from "@testing-library/react"; import NavigationBar from "./NavigationBar"; test("renders Navigation Bar Component", () => { render(<NavigationBar />); expect(true); });
import cdk = require('@aws-cdk/core'); import ec2 = require("@aws-cdk/aws-ec2"); import ecr = require('@aws-cdk/aws-ecr'); import ecs = require("@aws-cdk/aws-ecs"); import ecs_patterns = require("@aws-cdk/aws-ecs-patterns"); import iam = require("@aws-cdk/aws-iam"); import codebuild = require('@aws-cdk/aws-codebuild');...
/** * @license * Copyright Google LLC 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 'zone.js/lib/node/rollup-main'; import 'zone.js/lib/zone-spec/long-stack-trace'; import 'zone.js/lib/zone-spec...
/* eslint-disable @typescript-eslint/no-explicit-any */ /** * Stringify a data in a readable way, with indents and line break * * @param json Json to beautify * @return Printable string */ export function beautifyJson(json: any) { return JSON.stringify(json, null, 2); } /** * Sort keys of a JSON alphabetical...
import { ZodLiteralDef, ZodUnionDef } from "zod"; import { JsonSchema7Type, parseDef } from "../parseDef"; import { References } from "../References"; export const primitiveMappings = { ZodString: "string", ZodNumber: "number", ZodBigInt: "integer", ZodBoolean: "boolean", ZodNull: "null", } as const; type Zo...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About defcoin</source> <translation>Info su defcoin</translation> </me...
import React, { Component } from 'react'; import AsyncSelect from 'react-select/lib/Async'; import PickerOption from './PickerOption'; import { debounce } from 'lodash'; import { getBackendSrv } from 'app/core/services/backend_srv'; import { User } from 'app/types'; import ResetStyles from './ResetStyles'; import Indic...
import { RenderFunction } from 'vue'; declare const ShoppingBag: RenderFunction; export default ShoppingBag;
import { DocumentNode, FieldNode, ASTNode } from 'graphql'; import { ApolloCache } from 'apollo-cache'; import { FragmentMap } from 'apollo-utilities'; import { FetchResult } from 'apollo-link'; import ApolloClient from '../ApolloClient'; import { Resolvers, OperationVariables } from './types'; export declare type Reso...
import { ThunkAction, ThunkDispatch } from 'redux-thunk'; import { RootState } from '../rootState'; import { Sqon } from '../sqon'; import { setActiveSqonIndex, setSqons } from './virtualStudies'; import { StudyPageActionTypes } from '../StudyPageTypes'; export type DispatchStoryPage = ThunkDispatch<RootState, null, S...
/** * @module botframework-streaming */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ export * from './INodeBuffer'; export * from './INodeIncomingMessage'; export * from './INodeSocket'; export * from './IReceiveRequest'; export * from './IReceiveResponse'; e...
import { interfaceType, arg } from "nexus"; import { SyntaxKind, JSDoc } from "typescript"; import { allKnownNodes, syntaxKindFilter } from "./utils"; const syntaxKindArgs = { skip: arg({ type: "SyntaxKind", list: true }), only: arg({ type: "SyntaxKind", list: true }), }; export const MaybeOptional = interfaceTyp...
import { Component, OnInit, Input } from '@angular/core'; import { Thing } from '../thing'; @Component({ selector: 'app-contact-sensor', templateUrl: './contact-sensor.component.html', styleUrls: ['./contact-sensor.component.scss'] }) export class ContactSensorComponent implements OnInit { @Input() thing: Thi...
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { HttpResponse, HttpErrorResponse } from '@angular/common/http'; import { of, throwError } from 'rxjs'; import { CoachTestModule } from '../../../test.module'; import { JhiMetricsMonitoringComponent } from 'app/admin/metrics/metrics.compo...
declare const chrome; /*** * Un-encrypted stream used to communicate between an extensions popup script and background script. */ export class LocalStream { /*** * Sends a message to the background script * @param msg - The message to send * @returns {Promise<T>} - Responds with the message from the `watch` ...
/** * 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...
import { m, AnimatePresence } from "framer-motion"; import orderBy from "lodash-es/orderBy"; import PropTypes from "prop-types"; import { useCallback, useState, useReducer } from "react"; import { DIFFICULTY, applyRealTeamInfo, PHASE, PHASE_TEXT, DEFAULT_CONFS, DEFAULT_DIVS, SPORT_HAS_LEGENDS, SPORT_HAS_REAL_PL...
/* * 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 { Store } from '@ngrx/store'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { GetApplication } from '../../../../../../../cloud-foundry/src/actions/application.actions'; import { CFAppState } from '../../../../../../../cloud-foundry/src/cf-app-state'; import { applicationEnti...
version https://git-lfs.github.com/spec/v1 oid sha256:a31a1caf7e1b6dfc867a24c02cbb8215a919bf97657436b17094bae2aec72df3 size 466428
import React from 'react'; const Delete = () => { return ( <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4 7H20" stroke="#CDCCC6" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /> ...
// import React from 'react'; // import { useStaticQuery, graphql } from 'gatsby'; // import Img from 'gatsby-image'; // /* // * This component is built using `gatsby-image` to automatically serve optimized // * images with lazy loading and reduced file sizes. The image is loaded using a // * `useStaticQuery`, whic...
import { Injectable } from '@angular/core'; import { Headers, Response, Http, RequestOptions } from '@angular/http'; import { Observable } from 'rxjs'; import { AppState } from '../../app/app-store'; import { Store } from '@ngrx/store'; import { AuthState } from '../auth-store/auth.store'; import { LoadingBarService } ...
import { QueueItem } from './queueItem'; import { QueueBase } from './queueBase'; export class MinPriorityQueue extends QueueBase { public decreaseKey(i: any, value: number) { this.items[i].value = value; while (i > 0 && (<QueueItem>this.items[this.parent(i)]).value > (<QueueItem>this.ite...
import {MigrationInterface, QueryRunner} from "typeorm"; export class RemoveAvatarUrlColumnFromUserTable1648784113989 implements MigrationInterface { name = 'RemoveAvatarUrlColumnFromUserTable1648784113989' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(`ALTER TABLE...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Circle, Polyline } from 'react-native-svg'; import { IconProps } from '../lib'; function CaretCircleDown(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} ...
"use strict"; import Authenticator from "Elucidate/Auth/Authenticator"; import { Request, Response, NextFunction } from "Elucidate/HttpContext"; import HttpResponse from "Elucidate/HttpContext/ResponseType"; class AuthMiddleware { Auth: Authenticator; constructor(Authenticator:Authenticator) { this.Auth = Auth...
import { GraphbackOperationType } from "@graphback/core" import * as DataLoader from "dataloader"; import { PubSubEngine } from 'graphql-subscriptions'; import { GraphbackRuntimeContext } from '../api/GraphbackRuntimeContext'; import { GraphbackRuntimeOptions } from '../api/GraphbackRuntimeOptions'; import { GraphbackD...
import {Topic} from '@/services/data/tuples/topic-types'; import {Lang} from '@/widgets/langs'; import React from 'react'; import {FactorRow} from './factor-row'; import {NoFactor, TopicBodyContainer} from './topic-widgets'; export const TopicBody = (props: { topic: Topic }) => { const {topic} = props; const factor...
// This global object is only used in the index file, but can (RE: should only) be modified // by the invalidate hook, which allows any component to cause the react dom to rerender. // Thanks to StoneCypher for showing me this pattern! export const renderState = { frame: 0, dirty: true, }; export const refresh = ...
import { Injectable } from '@angular/core'; import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import dayjs from 'dayjs'; import { map } from 'rxjs/operators'; import { createRequestOption } from 'app/shared/util/request.util'; import { Router } from '@angular/router'; i...
import { ScreenInfo } from "../../../../apiMiddleware/share-screen"; export const uint8ArrayToImageURL = (buffer: Uint8Array): string => { return URL.createObjectURL( new Blob([buffer.buffer], { type: "image/png", }), ); }; export const getScreenInfo = ( info: ScreenInfo["windo...
import { Vector2d, invertVec2d, } from '../../util/Vector'; import { GamePlayAction } from '../GamePlayAction'; import { GamePlayState, GamePlayStatus } from '../GamePlaySession'; import { moveEmptySpaceTo, canMoveEmptySpaceTo } from '../GameBoard'; const name = 'MoveEmptySpace'; export function init({ dir }: { ...
import { Router } from 'express'; import { celebrate, Segments, Joi } from 'celebrate'; import ensureAuthenticated from '@modules/users/infra/middlewares/ensureAuthenticated'; import ProfileController from '@modules/users/infra/http/controllers/ProfileController'; const profileRouter = Router(); const profileControl...
import fs from 'fs'; import { DocumentNode, GraphQLSchema, buildASTSchema, extendSchema, validateSchema, parse, isTypeSystemExtensionNode, } from 'graphql'; import formatLoc from '../format-loc'; import findAllGraphqlFiles from './find-files'; const buildGraphqlSchema = (dir: string): GraphQLSchema =>...
export enum DialogPaths { ng1 = 'dist/dnn/ui.html', // AngularJS quickDialog = 'dist/ng/ui.html', // quick-dialog ng8 = 'dist/ng-edit/ui.html', // Angular }
import { AggregateOption, FilterParamName } from "lib/Scenes/Collection/Helpers/FilterArtworksHelpers" import { ArtworkFilterContext, FilterData, useSelectedOptionsDisplay } from "lib/utils/ArtworkFiltersStore" import React, { useContext } from "react" import { NavigatorIOS } from "react-native" import { aggregationFor...
import React from 'react' import { Container, Navigation, DropboxLogo, Form } from './styles' const MenuForm: React.FC = () => { function handleToggle() { if(window.toggleActiveMenu) window.toggleActiveMenu() } return ( <Container> <Navigation> <h1> <DropboxLogo /> <sp...
export enum RnCoreService { Auth = 'Service.Auth', Shortcuts = 'Service.Shortcuts', Storage = 'Service.Storage', UI = 'Service.UI' }
import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MatIconModule } from '@angular/material'; import { VerticalTimelineComponent } from './vertical-timeline.component'; import {VerticalTimelineCardComponent} from './vertical-timeline-card.component'; ...
/** * @module transaction */ import { tritsToValue } from '@iota/converter' import Curl from '@iota/curl' import Kerl from '@iota/kerl' import { FRAGMENT_LENGTH } from '@iota/signing' import * as warning from 'warning' import * as errors from '../../errors' import { isTrits } from '../../guards' import '../../typed-a...