text
stringlengths
10
953k
import { Component, Inject, OnInit, EventEmitter } from '@angular/core'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms'; import { CallPlanTableComponent } from '../../call-plan-table.component'; import { Ap...
import { getConfig } from './config'; import { assertIsDefined } from './utilities'; export type PrintFnOptions = { name: string; maxWidthArgument?: string; seqLimitArgument?: string; maxDepthArgument: string; }; export type PrettyPrintingOptions = { enabled: boolean; printFn?: PrintFnOptions;...
import { useState } from 'react' import '../styles/tasklist.scss' import { FiTrash, FiCheckSquare } from 'react-icons/fi' interface Task { id: number; title: string; isComplete: boolean; } export function TaskList() { const [tasks, setTasks] = useState<Task[]>([]); const [newTaskTitle, setNewTaskTitle] = ...
import { Container } from './styles' export default function Search() { return ( <Container> <i className="las la-search"></i> <input type="text" placeholder="O que você deseja buscar?" /> </Container> ) }
import ICache, { CacheType } from "./ICache"; export default class MemoryCache implements ICache { static cache: Map<string, any> = new Map<string, any>(); public static lock: boolean = false; set(key: string, value: object): void { while (MemoryCache.lock) {} MemoryCache.lock = true; MemoryCache....
import { Link } from "@artsy/palette" import { ModalDialog, ModalDialogProps } from "v2/Components/Modal/ModalDialog" import React from "react" import { Container, Subscribe } from "unstated" interface DialogState { props: ModalDialogProps onForceClose: () => Promise<void> } export class DialogContainer extends C...
import { NgModule } from '@angular/core' import { BrowserModule } from '@angular/platform-browser' import { NgbModule } from '@ng-bootstrap/ng-bootstrap' import { ToastrModule } from 'ngx-toastr' export function getRootModule (plugins: any[]) { const imports = [ BrowserModule, ...plugins, N...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { Component, OnInit } from '@angular/core'; import { AnalyticsService } from './@core/utils/analytics.service'; @Component({ selector: 'ngx-app', templ...
import { Breakpoints, Theme, theme, ThemeWithoutBreakpoints, themeWithoutBreakpoints, } from '../../../test-utils/theme'; import { fontSizeAdjust } from '../fontSizeAdjust'; describe('fontSizeAdjust', () => { it('should return a function', () => { const result = fontSizeAdjust(); expect(result).to...
/* import configuration parameters into process.env first */ import '../utils/src/loadEnvFile'; import { setupDebug } from '../utils/src/debugOutput'; /* set up mocha, sinon & chai */ import chai from 'chai'; import 'mocha'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import path from 'path'; impo...
import { AnimatePresence, motion } from 'framer-motion'; import React, { ComponentProps, forwardRef } from 'react'; import { Box } from '..'; import { RowEl } from './elements'; import { useListContext } from './ListProvider'; import { PublicListProps } from './types'; export interface RowProps extends Partial<Publ...
import React from 'react'; import { BrowserRouter } from 'react-router-dom' import GlobalStyles from './styles/global' import Routes from './routes' const App: React.FC = () => ( <> <BrowserRouter> <Routes/> </BrowserRouter> <GlobalStyles/> </> ) export default App;
export type AnimationDirection = 1 | -1; export type AnimationSegment = [number, number]; export type AnimationEventName = 'enterFrame' | 'loopComplete' | 'complete' | 'segmentStart' | 'destroy' | 'config_ready' | 'data_ready' | 'DOMLoaded' | 'error' | 'data_failed' | 'loaded_images'; export type AnimationEventCallback...
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { MaterialRequisitionNotesController } from './material-requisition-notes/material-requisition-notes.controller'; import { Mat...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as express from 'express' import { AuthorizationRedirect } from './authRedirect' /** * * @Rediect * @endpoint '/oauth/login * @param req * @param res */ export const OAUTH_LOGIN = (req: express.Request, res: express.Response) => { let redirectURL: string | any = new AuthorizationRedirect(); re...
/** * @license * Copyright 2020 Dynatrace 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 ag...
import type { NodeProps, PossibleAttr } from "../../object-dom"; import { GlobalDom } from "../../object-dom"; export interface OutputProps extends NodeProps<HTMLOutputElement> { attributes?: { /** * `<output for>` * * Specifies the relationship between the result of the calculation, and the elements used in th...
function union<T>(...sets: Array<Set<T>>) { return new Set(sets.reduce((result, set) => [...result, ...set], [])); } export const TypeScriptExtensions = new Set(['.ts', '.tsx']); export const JavaScriptExtensions = new Set([ '.js', '.jsx', '.mjs', '.es', '.es6' ]); export const PluginExtensions = union( ...
export module Utils { //首字母小写 interface ReplaceFirst { FirstToLowerCase(str: string): string; } export class FirstStr implements ReplaceFirst { FirstToLowerCase(str: string) { return str.substring(0, 1).toLowerCase() + str.substring(1); } } }
import React from "react"; export interface HeadingProps { as?: "h1" | "h2" | "h3"; size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"; color?: "black" | "dark-gray" | "white"; align?: "left" | "center" | "right"; children: React.ReactNode; className?: string; } export const Heading: React.FC<HeadingProps> ...
import { ValidationArguments } from "../validation/ValidationArguments.ts"; /** * Options used to pass to validation decorators. */ export interface ValidationOptions { /** * Specifies if validated value is an array and each of its items must be validated. */ each?: boolean; /** * Error message to be...
import { Component, ViewEncapsulation, Input, ChangeDetectionStrategy } from '@angular/core'; export type McPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate'; /** * Component that shows a simplified checkbox without including any kind of "real" checkbox. * Meant to be used when the checkbox is purely...
import { IGatsbyState, ActionsUnion } from "../types" export const resolvedNodesCacheReducer = ( state: IGatsbyState["resolvedNodesCache"] = new Map(), action: ActionsUnion ): IGatsbyState["resolvedNodesCache"] => { switch (action.type) { case `DELETE_CACHE`: case `CREATE_NODE`: case `DELETE_NODE`: ...
import { Color, Component, Node, Quat, RealKeyframeValue, Size, Vec3 } from '../../cocos/core'; import { ColorTrack, ObjectTrack, QuatTrack, RealTrack, SizeTrack, TrackPath, VectorTrack } from '../../cocos/core/animation/animation'; import { AnimationClip, searchForRootBonePathSymbol } from '../../cocos/core/animation/...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import {GlslContext, GlslLib, GlslLibRoutine} from './glsl-definitions'; /** * GLSL Library responsible for data types and routines for manipulating * coordinates and mapping to/from tensor indices */ export class Shape...
import toDate from '../toDate/index' import toInteger from '../_lib/toInteger/index' import requiredArgs from '../_lib/requiredArgs/index' import { LocalOptions, WeekStartOptions } from '../types'; /** * @name lastDayOfWeek * @category Week Helpers * @summary Return the last day of a week for the given date. * * ...
// This is a generated file from running the "createIcons" script. This file should not be updated manually. import React, { forwardRef } from "react"; import { SVGIcon, SVGIconProps } from "@react-md/icon"; export const TextsmsSVGIcon = forwardRef<SVGSVGElement, SVGIconProps>( function TextsmsSVGIcon(props, ref) {...
declare global { function hasOwnProperty(key: string | number | symbol): boolean } export const Objects = (() => { /** * Given an Object and its path, it will return the * given path if it exists or the default * @param fn Function returning the nested Object * @param defaultValue */ const get = (...
import test from 'ava'; import Metalsmith from 'metalsmith'; import sass from '../src'; import fixtures from './fixtures'; import { switchTest } from './helpers'; import { processAsync } from './helpers/metalsmith'; test('should compile SASS and SCSS files to compressed CSS files with callback sassOptions', async t =...
import * as yup from "yup"; import { PhoneNumberUtil } from "google-libphonenumber"; const phoneUtil = PhoneNumberUtil.getInstance(); type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>; export type RequiredFacilityFields = PartialBy< Facility, "id" | "email" | "streetTwo" | "city" | "orderin...
import { HttpClient } from "@angular/common/http"; import { Injectable, NgZone } from "@angular/core"; import { ToastController } from "@ionic/angular"; import * as jsonld from "jsonld"; import { Url } from 'jsonld/jsonld-spec'; import moment from "moment"; import Queue from "queue"; import { firstValueFrom } from "rxj...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpModule } from "@angular/http"; import { AppComponent } from './app.component'; import { A...
import * as React from 'react'; import Box from '@material-ui/core/Box'; import Modal from '@material-ui/core/Modal'; const style = { position: 'absolute' as 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: 400, bgcolor: 'background.paper', border: '2px solid #000', boxSh...
import { AppPage } from './app.po'; describe('angular-test-demo App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to app!'); }); });
import { StackNavigationProp } from "@react-navigation/stack"; import { default as React } from "react"; import { ActivityIndicator, Image, ScrollView, Text, TextInput, TouchableWithoutFeedback, View } from "react-native"; import { BASELINE_CANCEL_24PX, BASELINE_SEARCH_24PX } from "../images_generated"; import { MESSAG...
export enum CapacityUnit { CKB = 'ckb', CKKB = 'ckkb', CKGB = 'ckgb', } export const MESSAGE_TYPE = { IMPORT_MNEMONIC: 'IMPORT_MNEMONIC', GEN_MNEMONIC: 'GEN_MNEMONIC', RECE_MNEMONIC: 'RECE_MNEMONIC', SAVE_MNEMONIC: 'SAVE_MNEMONIC', REQUEST_ADDRESS_INFO: 'REQUEST_ADDRESS_INFO', ADDRESS_INFO: 'ADDRESS_...
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * GetBucketLocationInput shape */ export interface GetBucketLocationInput { /** * <p/> */ Bucket: string; /** * Whether to use the bucket name as the endpoint for this reques...
export interface SpotifyData { isPlaying: boolean; title: string; album: string; artist: string; albumImageUrl: string; songUrl: string; }
import { LocalUserContext } from '@/context' import { Team } from '@/team/Team' export function createTeam(teamName: string, context: LocalUserContext, seed?: string) { return new Team({ teamName, context, seed }) }
import React, { useEffect, useState } from 'react'; import { getTransactionHash } from '~/utils/transactionHash'; import { Transaction } from '~/utils/types'; interface Props { transaction: Transaction; } /** * Component that calculates and displays the transaction hash */ export default function TransactionHas...
/** * Copyright 2017-2018 the original author or authors from the JHipster Online project. * * This file is part of the JHipster Online project, see https://github.com/jhipster/jhipster-online * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...
import { BaseIconHoc } from '../BaseIconHoc/BaseIconHoc'; import { Icon } from '../Icon/Icon'; import IconLeafSizeM from './IconLeaf_size_m'; import IconLeafSizeS from './IconLeaf_size_s'; import IconLeafSizeXs from './IconLeaf_size_xs'; export const IconLeaf = BaseIconHoc({ m: IconLeafSizeM, s: IconLeafSizeS, x...
import { KeyboardEventHandler, MouseEventHandler, FocusEventHandler, Ref, RefCallback, TouchEventHandler, useCallback, useEffect, useRef, useState, } from "react"; import { applyRef, useDir, useIsomorphicLayoutEffect } from "@react-md/utils"; import { DEFAULT_SLIDER_ANIMATION_TIME } from "./constan...
import React from 'react'; import { Link } from 'react-router-dom'; type Props = { link: string; linkText: string; } const Filters = ({ link, linkText }: Props) => ( <div className="filters-container records-actions"> <Link to={link}> <button className="action-filters"> {linkText} </butt...
import {Component, OnInit} from '@angular/core'; import {BaseComponent} from "../../../shared/components/base.component"; import {AuthenticationGuard} from "../../../shared/guards/authentication.guard"; import {NotificationsService, NotificationType} from 'angular2-notifications'; import {TranslateService} from '@ngx-t...
declare module 'slug'
// *** 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"; /*...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Request, Response } from 'express'; import nodemailer from 'nodemailer'; import jwt from 'jsonwebtoken'; import { User } from '../../models'; const env: string = process.env.NODE_ENV || 'production'; const config = require(__dirname + '/../../config/config.js')[env]; /* 1. check query string from the receiv...
import { Component } from '@angular/core'; @Component({ moduleId: module.id, //Used for locating relative paths selector: 'about', templateUrl:'about.component.html' }) export class AboutComponent { }
import { Component } from '@angular/core'; @Component({ selector: 'app-quote', templateUrl: './quote.component.html', styleUrls: ['./quote.component.css'] }) export class QuoteComponent { }
class Logger { enable = false public readonly tag: string /** * * @param tag 标签 */ constructor(tag: string) { this.tag = tag } public log(str: string) { if (this.enable) console.log(`[${this.tag}] ${new Date().toISOString()} ${str}`) } public toString(obj: any) { return JSON....
import { WhiteboardItemDto } from './whiteboard-item-dto'; describe('WhiteboardItemDto', () => { it('should create an instance', () => { // @ts-ignore expect(new WhiteboardItemDto()).toBeTruthy(); }); });
import React, {Fragment} from 'react' import MenuItem from '@material-ui/core/MenuItem' import useRouting from '../../../../common/hooks/routing' import {Document} from '../../../model' import ActionCopy from './Copy' import ActionDownload from './Download' type Props = { document: Document onClick: () => void } ...
import crypto from 'crypto' export function encrypt(extname: any) { return crypto.randomBytes(16).toString('hex') + `.${extname}` }
import { createBuilder } from '@develohpanda/fluent-builder'; import { beforeEach, describe, expect, it, jest } from '@jest/globals'; import { ipcRenderer } from 'electron'; import { GrpcRequestEventEnum, GrpcResponseEventEnum } from '../../../../common/grpc-events'; import { grpcStatusObjectSchema } from '../__schema...
import {isEmpty, remove} from 'lodash'; import {EventEmitter} from 'events'; import {Semaphore} from './Semaphore'; export class LockFactory extends EventEmitter { constructor() { super(); this.setMaxListeners(1000); } static NAME: string = LockFactory.name; static __self__: LockFactory; private...
import { Dispatch } from 'redux' import { TogglePreviewAction, togglePreview } from 'modules/editor/actions' export type Props = { isPreviewing: boolean onClosePreview: () => ReturnType<typeof togglePreview> } export type MapStateProps = Pick<Props, 'isPreviewing'> export type MapDispatchProps = Pick<Props, 'onCl...
import { createForm } from '../src/createForm'; import { FormTag } from '../src/FormTag'; const defaultValues: { [key: string]: any } = { path: 'value', }; describe('Creation', () => { it('should handle passed values on creation', () => { const config = {}; const [form] = createForm(defaultValues, config)...
/* * Licensed to the Kassenärztliche Bundesvereinigung (KBV) (c) 2020 - 2021 under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The KBV licenses this file * to you under the Apache License, Version 2....
import { AssertionError } from "assert"; // asserts val is number - magic function assertIsNumber(val: any): asserts val is number { if (typeof val !== "number") { throw new AssertionError({ message: 'Not a number!' }); } } function double(input: any) { assertIsNumber(input); return input * 2; } double(...
import { compose, path } from 'ramda'; import * as React from 'react'; import { connect, MapStateToProps } from 'react-redux'; import Paper from '@material-ui/core/Paper'; import { StyleRulesCallback, Theme, withStyles, WithStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'...
/* MyoCoach frontend training trail interface ========================================== Authors: Julien & Kevin Monnier - RE-FACTORY SARL Company: ORTHOPUS SAS License: Creative Commons Zero v1.0 Universal Website: orthopus.com Last edited: October 2021 */ export interface Trail { id?:...
export { default } from './SelectPaymentOption';
import { loadCultureFiles } from '../common/culture-loader'; import { Gantt, Selection, DayMarkers } from '@syncfusion/ej2-gantt'; import { DataManager, WebApiAdaptor } from '@syncfusion/ej2-data'; /** * Remote data Gantt sample */ Gantt.Inject(Selection, DayMarkers); (window as any).default = (): void => { load...
import React from 'react'; import * as newsLetterStyles from './newsletter.module.scss'; import EmailList from './EmailListForm'; const NewsLetter = (): JSX.Element => { return ( <div className={newsLetterStyles.wrapper}> <h2>Newsletter</h2> <p>Tutorials . How-to-guides . Freebies . and more</p> ...
import { window } from 'vscode'; /** COMMENT APPDESIGN states that custom business logic within the body of the application has addressed the finding. An automated process may not be able to fully identify this business logic. NETENV states that the network in which the application is running has provided an environmen...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as React from 'react'; import { Stack } from '~/stack'; import { LinearProgress } from '~/progress'; function LinearColor_() { return ( <Stack sx={{ width: '100%', color: 'grey.500' }} spacing={2}> <LinearProgress color="secondary" /> <LinearProgress color="success" /> <LinearProgress ...
/** * @format * @file BytedPictureOne byted-picture-one * @author 由 fe6 自动生成 */ import { IIconProps, IconWrapper } from '../runtime'; // 获取 SVG 的 HTML 字符串 export const getIconBytedPictureOneSvgHtml = (props: IIconProps) => `<?xml version="1.0" encoding="UTF-8"?> <svg width="${props.size}" height="${props.size}"...
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http'; import {Observable} from 'rxjs'; import {Injectable} from '@angular/core'; import {Store} from '@ngrx/store'; import {take, switchMap} from 'rxjs/operators'; import * as fromApp from '../store/app.reducers'; import * as fromAuth...
describe("cy.realTouch", () => { beforeEach(() => { cy.visit("https://example.cypress.io/commands/actions"); }); it('touches the button', () => { cy.get(".action-btn").realTouch(); cy.contains("This popover shows up on click"); }); it("touches the text field", () => { cy.get("#email1").realT...
export * from './account' export * from './room' export * from './token' export * from './appMessage'
import { Component, OnInit } from '@angular/core'; import { Diary } from '../diary'; @Component({ selector: 'app-diary', templateUrl: './diary.component.html', styleUrls: ['./diary.component.css'] }) export class DiaryComponent implements OnInit { diaries: Diary[] = [ new Diary(1, 'see Madam Monicah', 'FInd...
import ts from 'typescript'; import isPropValid from '@emotion/is-prop-valid'; import { createJsxElement } from '../../utils/create-jsx-element'; import { objectLiteralToCssString } from '../../utils/object-literal-to-css'; import { templateLiteralToCss } from '../../utils/template-literal-to-css'; import { VariableDec...
import { createSlice, PayloadAction, createAsyncThunk } from '@reduxjs/toolkit' import axios from 'axios' interface ProductSearchState { loading: boolean error: string | null data: any pagination: any } const initialState: ProductSearchState = { loading: true, error: null, data: [], pagination: null } export...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MyToDoComponent } from './my-to-do.component'; describe('MyToDoComponent', () => { let component: MyToDoComponent; let fixture: ComponentFixture<MyToDoComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ ...
import * as assert from 'assert'; import * as fs from 'fs'; import * as sinon from 'sinon'; import appInsights from '../../../../appInsights'; import auth from '../../../../Auth'; import { Logger } from '../../../../cli'; import Command, { CommandError } from '../../../../Command'; import request from '../../../../requ...
import { ORDER_ACTION, OrderAction, } from '@blog-configuration-with-injection-token/color'; import { Component } from '@angular/core'; @Component({ selector: 'red-order-action', templateUrl: './order-action.component.html', providers: [ { provide: ORDER_ACTION, useExisting: RedOrderActionCo...
import { StorageEngine } from "./storage-engine"; import { BrowserStorage } from "./browser-storage"; export class SessionStorage extends BrowserStorage implements StorageEngine { protected getStorage(): Storage { return sessionStorage; } }
import { Weave, WeaveNode, WeaveResult, AtomAddedResult, AtomConflictResult, iterateCausalGroup, iterateChildren, first, Atom, AtomRemovedResult, iterateSiblings, iterateNewerSiblings, idEquals, } from '@casual-simulation/causal-trees/core2'; import { BotOp, A...
import React, { useEffect, useRef, useState } from "react"; import { useIntl } from "react-intl"; import { Redirect, useLocation, useHistory } from "react-router-dom"; import { Button, Loader } from "@components/atoms"; import { CheckoutProgressBar } from "@components/molecules"; import { CartSummary, PaymentGatew...
import React, { Component } from "react"; import type { T_PDFJS_Document } from "../types"; import { getDocument, GlobalWorkerOptions } from "pdfjs-dist/lib/pdf"; import PdfjsWorker from "pdfjs-dist/lib/pdf.worker"; setPdfWorker(PdfjsWorker); export function setPdfWorker(workerSrcOrClass: any) { if (typeof window...
import { Component, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core'; import { NbIconConfig, NbThemeService } from '@nebular/theme'; import { takeWhile } from 'rxjs/operators'; import { MatIconRegistry } from "@angular/material/icon" import { DomSanitizer } from '@angular/platform-browser'; import { V...
// TypeScript Version: 3.0 export { getStoreRenderArgs as default, GetStoreRenderArgsOptions, } from 'found';
import { Get, Controller } from '@nestjs/common'; @Controller('users') export class UsersController { constructor() { } @Get() root() { return 'Hello World'; } }
/* Copyright 2020, Verizon Media Licensed under the terms of the MIT license. See the LICENSE file in the project root for license terms. */ import {autoinject} from 'aurelia-framework'; import {PLATFORM} from 'aurelia-pal'; import {Router} from 'aurelia-router'; @autoinject() export class AddRemoveActions { publ...
import * as React from "react"; import { configure, shallow } from "enzyme"; import Adapter from "enzyme-adapter-react-16"; import configureStore from "redux-mock-store"; import thunk from "redux-thunk"; import * as ReactReduxHooks from "../../../../hooks/react-redux.hooks"; import { AddShipment } from "./AddShipment"...
import { AxiosRequestConfig } from "../types" import { isPlainObject, deepMerge } from "../helpers/utils"; const strats = Object.create(null) function defaultStratFn(val1: any, val2: any): any { return typeof val2 !== 'undefined' ? val2 : val1 } function fromVal2StratFn(val1: any, val2: any): any { if (typeof va...
import {useEffect, useState} from 'react'; import useGrapeFinance from './useGrapeFinance'; import {TokenStat} from '../grape-finance/types'; import useRefresh from './useRefresh'; const useHermesStats = () => { const [stat, setStat] = useState<TokenStat>(); const {fastRefresh} = useRefresh(); const grapeFinance...
import { NgModule } from '@angular/core'; import { registerElement } from '@nativescript/angular'; import { MapView } from '@nativescript/google-maps'; import { MapViewDirective } from './map-view-directive'; export * from './map-view-directive'; @NgModule({ declarations: [MapViewDirective], exports: [MapViewDirect...
import { http } from './connection'; import './websocket/clientws'; import './websocket/adminws'; const PORT = 3000; http.listen(PORT, () => { console.log(`Server running on port ${PORT}`); });
/** @format */ import { ISvgIconProps, IconWrapper } from '../runtime'; export const BytedFork = IconWrapper( 'byted-fork', false, (props: ISvgIconProps) => ( <svg width={props.size} height={props.size} viewBox="0 0 48 48"> <g stroke="none" stroke-width={props.strokeWidth} fill...
import { Component, OnInit,Input,ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'app-updates-list', templateUrl: './updates-list.component.html', styleUrls: ['./updates-list.component.scss'], changeDetection:ChangeDetectionStrategy.OnPush }) export class UpdatesListComponent implements ...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Path, Line } from 'react-native-svg'; import { IconProps } from '../lib'; function CloudSun(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} {...props} ...
import { Component, OnInit } from '@angular/core'; import { routerTransition } from '../../router.animations'; import { DataSource } from '@angular/cdk/collections'; import {BlueprismService} from '../../services/BlueprismService'; import { BlueprismModel } from '../../models/BlueprismModel'; import { Observable } from...
/// <reference path="gae.channel.api.d.ts" /> function test_channel() { var channel = new goog.appengine.Channel("test"); var socket = channel.open(); socket.onopen = () => { console.log("onopen"); }; socket.onmessage = (message) => { console.log("onmessage", message.data); }; socket.onclose = ()=> { con...
import Modal from '@/components/modals/pick-request-type.vue' import newReqModule from '@/store/new-request-module' import { mount, createLocalVue } from '@vue/test-utils' import Vuetify from 'vuetify' // Prevent the warning "[Vuetify] Unable to locate target [data-app]" document.body.setAttribute('data-app', 'true') ...
import { SafeAreaProviderCompat } from '@react-navigation/elements'; import { ParamListBase, Route, StackActions, StackNavigationState, useTheme, } from '@react-navigation/native'; import * as React from 'react'; import { Platform, StyleSheet } from 'react-native'; import { Screen, ScreenStack, StackPre...