text
stringlengths
10
953k
export class Country { flag: string; name: string; }
import { useState, useEffect, FC } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { DragDropContext, Droppable } from 'react-beautiful-dnd'; import { DroppableType, Plan, ReviewMode, SemesterType, SISRetrievedCourse, UserCourse, Year, } from '../../../../resources/commonTypes...
import React from "react"; export type Props = { background?: string; text?: string; onClick: (event: React.MouseEvent) => void; }; const Base = ({ background, text, onClick }: Props) => ( <button onClick={onClick} style={{ background: background || "blue", border: "none", borderRadi...
import React from 'react'; import { RoutingContext } from './RoutingContext'; type RoutingProviderType = { router: any; children: React.ReactNode; }; export const RoutingProvider = (props: RoutingProviderType) => ( <RoutingContext.Provider value={props.router.context}>{props.children}</RoutingContext.Provider> ...
import React from 'react' import classNames from 'classnames' import { hasEnoughSpace, calculatePosition, RelativePosition } from './positioning-utils' import './popover.less' /** * Position of the popover. Defaults to `auto`. * `auto` tries to position the tooltip to the top, * if there's not enough space it tri...
//#region imports import { logger } from "../server/logging"; //#endregion //#region classes /** * The Tryharder-class' purpose is to try to execute a boolean-returning function four a couple times with a time gap in-between. * @author Georg Schubbauer */ export class Tryharder { //#region publicFunctions /...
import { Link, SureOptions } from '../types'; import { getNavLinks, h } from '../util'; export default function generatePager(links: Link[], options: SureOptions): string { const html: string[] = []; for (const link of getNavLinks(links, options, 'pager')) { html.push( `<a href="${ h(link.href) }" rel...
// *** 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"; /** * P...
import { BN } from '@project-serum/anchor'; export enum BorderColor { dark = 'dark', light = 'light', } interface Sub { id: string; label: string; value: string; } export interface InfoItemProps { label: string; value: number | string | BN | undefined; bordered?: boolean; borderColor: BorderColor; ...
import convert from "color-convert"; import namedColors from "color-name-list"; import Fuse from "fuse.js"; import React, { useState } from "react"; import { ColorResult } from "react-color"; const fuse = new Fuse(namedColors, { shouldSort: true, threshold: 0.2, location: 0, distance: 100, maxPatternLength: ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule, } from '@angular/router'; import { DesignLandModalComponent } from './modal.component'; export const modalRoutes: Routes = [ { path: '', component: DesignLandModalComponent }, ]; @NgModule({ imports: [ RouterModule.forChild(modalRou...
import { Injectable } from '@angular/core'; import { Headers, Http } from '@angular/http'; import 'rxjs/add/operator/toPromise'; import { Hero } from './hero'; @Injectable() export class HeroService { private heroesUrl = 'http://localhost:8888/hero'; private headers = new Headers({ 'Content-Type': 'applicati...
import { ComponentInternalInstance, getCurrentInstance, render, h, nodeOps, FunctionalComponent, defineComponent, ref, serializeInner, createApp, provide, inject } from '@vue/runtime-test' import { render as domRender, nextTick } from 'vue' describe('component props', () => { test('stateful',...
import { Wrappable, IterableIterator } from '../../types/iterable'; declare function splitOn(same: (a: any, b: any) => boolean, separatorValue: any): <T>(source: Wrappable<T>) => IterableIterator<IterableIterator<T>>; declare function splitOn<T>(same: (a: any, b: any) => boolean, separatorValue: any, source: Wrappable<...
/* * Copyright 2018-present Junyoung Clare Jang */ import * as T from '@typed-f/tagged'; interface SetoidBuilder<Other> { equals(other: Other): boolean; notEquals(other: Other): boolean; } export interface Setoid1<Tag extends keyof T.Tag1List<any>> extends T.Tagged<Tag>, SetoidBuilder<T.Tag1List<any>[Tag]> {...
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class TwitterService { constructor() { } }
import { Linter, RuleObjType } from "../../linter"; import { isObj } from "../../util/util"; // rule: attribute-required // ----------------------------------------------------------------------------- interface Opts { [tagName: string]: { [attrName: string]: undefined | null | boolean; }; } interface Attribu...
/** * @file 基于 react-datetime 改造。 */ import React from 'react'; import CustomCalendarContainer from './CalendarContainer'; import cx from 'classnames'; import moment from 'moment'; import {themeable, ThemeOutterProps, ThemeProps} from '../../theme'; import {convertArrayValueToMoment, getRange} from '../../utils/helpe...
import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; import { animate, state, style, transition, trigger } from '@angular/animations'; @Component({ selector: 'odp-search-box', templateUrl: './search-box.component.html', styleUrls: ['./search-box.co...
import bunyan from "bunyan"; import { Application } from "express"; import { Redis } from "ioredis"; import main from "./main"; import mtgySupply from "./mtgySupply"; import token from "./token"; export interface IRouteOptions { log: bunyan; redis: Redis; } export default async function Routes( app: Application...
/* * Copyright 2021, alex at staticlibs.net * * 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 { getTargetNamesFromClassList } from './getTargetNamesFromClassList' import { updateElement } from './targetStore' /** * Gets called by the mutation callback when an element's attribute has changed. * @param node The node whose attribute has changed. * @param attributeName The name of the attribute that has ...
import { runIfFn } from "@chakra-ui/utils" import * as React from "react" import { useCallbackRef } from "./use-callback-ref" export function useControllableProp<T>(prop: T | undefined, state: T) { const isControlled = prop !== undefined const value = isControlled && typeof prop !== "undefined" ? prop : state re...
import React from 'react'; import classes from './index.module.scss'; const StatusButton = () => { return <div className={classes.statusButtonContainer}> <div className={classes.statusButtonInnerRing}> <div className={classes.statusButtonSign}>!</div> </div> </div> } export default StatusButton;
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-pruebas', templateUrl: './pruebas.component.html', styleUrls: ['./pruebas.component.css'] }) export class PruebasComponent implements OnInit { constructor() { } ngOnInit(): void { } }
'use strict' import { commands, window, workspace, ExtensionContext, Position, Range, Selection, TextDocument } from 'vscode'; import * as vscode from 'vscode'; //Vietnamese characters regex export const vnRegex = /[\u00C0-\u00C3\u00C8-\u00CA\u00CC\u00CD\u00D2-\u00D5\u00D9\u00DA\u00DD\u00E0-\u00E3\u00E8-\u00EA\u00EC\...
import React from 'react'; import { SvgIcon, SvgIconProps } from '@kukui/ui'; const SvgComponent = props => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}> <path d="M607.9 161.8c15.3 8.8 20.7 28.3 11.9 43.6-8.8 15.4-28.3 20.7-43.7 12L312 66.43 47.88 217.4c-15.34 8.7-34.89 3.4-43.658-1...
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; import {ShowButtonComponent} from './show-button.component'; import {MatButtonModule} from '@angular/material/button'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {TranslateTestingModule} from 'ngx-t...
import { Component } from 'react'; export = RNTrackPlayer; declare namespace RNTrackPlayer { export type EventType = | "playback-state" | "playback-error" | "playback-queue-ended" | "playback-track-changed" | "remote-play" | "remote-play-id" | "remote-play-search" | "remote-pause" ...
import {Injectable} from 'angular2/core'; import {Http} from 'angular2/http'; import {Observable} from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import {Device} from '../model/device.model' import {Creds} from '../model/creds.model' imp...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AppComponent } from './app.component'; const routes: Routes = [ { path: 'apps', component: AppComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class App...
import { WebGLRenderer } from './renderer/webgl_renderer'; import { Retrowave } from './scenes/retrowave'; async function main() { const renderer = new WebGLRenderer(document.body); const scene = new Retrowave(renderer); while (true) { await scene.draw(); } } window.addEventListener('DOMContentLoaded', main);
'use strict'; const Battle = require('./battle'); const Storage = require('../storage'); let battles = Object.create(null); function updateJoins() { for (let x in battles) { if (!Storage.autoJoin[x]) Storage.autoJoin[x] = {}; for (let i in battles[x]) { Storage.autoJoin[x][i] = 1; } } } export const init =...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { Store, select } from '@ngrx/store'; import { isEmpty, identity, keyBy, at, xor } from 'lodash/fp'; import { combineLatest, Su...
/* eslint-disable no-use-before-define */ import React from "react"; import "./Footer.scss"; const Footer: React.FC = () => ( <> <div className="footer"> <div>Incredible convenient</div> <div className="footer-image"> <a target="_blank" href="https://www.xbox.com/" rel="noreferrer"> ...
import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient"; import { GetCelebrityRecognitionRequest, GetCelebrityRecognitionResponse } from "../models/index"; import { deserializeAws_json1_1GetCelebrityRecognitionCommand, serializeAws_json1_1GetCelebrityR...
import * as React from "react"; import { FolderList } from "../FolderList"; import { Folder, IFolderSelection } from "../../model/Folder"; import { FolderPane } from "../FolderPane"; import { observer } from "mobx-react"; import { AuthorityLists } from "../../model/Project/AuthorityLists/AuthorityLists"; import { Proje...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Tvcoin</source> <translation>О Tvcoin-у</translation> </message>...
import { LoopRepeat, AnimationClip, AnimationMixer } from 'three' import { AnimationManager } from '../../character/AnimationManager' import { AnimationState } from '../../character/animations/AnimationState' import { AnimationComponent } from '../../character/components/AnimationComponent' import { isClient } from '.....
import { DeviceFarmClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DeviceFarmClient.ts"; import { StopRemoteAccessSessionRequest, StopRemoteAccessSessionResult } from "../models/models_0.ts"; import { deserializeAws_json1_1StopRemoteAccessSessionCommand, serializeAws_json1_1StopRemoteAccessSe...
namespace MidnightLizard.Util { declare var msCrypto: any; const UUID_SIZE = 16; function FillRandomBytes(buffer: Array<number> | Uint8Array, size: number) { for (let i = 0; i < size; ++i) { buffer[i] = Math.random() * 0xff | 0; } return buffer; } fun...
import * as React from 'react'; import { WithAnalyticsEventsProps } from '../utils/analytics'; export interface SwitcherItemProps extends WithAnalyticsEventsProps { children: React.ReactNode; icon: React.ReactNode; description?: React.ReactNode; onClick?: Function; href?: string; isDisabled?: bo...
/** * @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 * as ts from 'typescript'; import {absoluteFromSourceFile} from '../../../src/ngtsc/file_system'; import {Log...
import React, { useContext } from 'react' import { createDrawerNavigator, DrawerContentScrollView, DrawerItemList, DrawerItem, DrawerNavigationProp, } from '@react-navigation/drawer' import HomeScreen from './HomeScreen' import SettingsScreen from './SettingsScreen' import mainContext from '../context/mainCo...
export {}; //# sourceMappingURL=common.spec.d.ts.map
import { Vector3 } from "./Vector3"; /** * Class representing a 3D line segment. */ export class LineSegment { /** * The start point of the line segment. */ from: Vector3; /** * The end point of the line segment. */ to: Vector3; /** * Constructs a new line segment with ...
/* tslint:disable */ // This is a generated file from running the "createIcons" script. This file should not be updated manually. import React, { FC } from "react"; import { SVGIcon, SVGIconProps } from "@react-md/icon"; const ScheduleSVGIcon: FC<SVGIconProps> = props => ( <SVGIcon {...props}> <path d="M11.99 2...
import cdk = require('@aws-cdk/cdk'); import { BaseInstanceProps, InstanceBase } from './instance'; import { NamespaceType } from './namespace'; import { DnsRecordType, IService } from './service'; import { CfnInstance } from './servicediscovery.generated'; /* * Properties for a CnameInstance used for service#registe...
import { combineReducers, Reducer } from 'redux'; import { ReducersMap } from 'shared/types/redux'; import { makeResetStateReducer, composeReducers } from 'shared/helpers/redux'; import * as NS from '../../namespace'; import { communicationReducer } from './communication'; import { dataReducer } from './data'; import...
import { OpaqueToken } from '../di/opaque_token'; import { Type } from '../type'; /** * This token can be used to create a virtual provider that will populate the * `entryComponents` fields of components and ng modules based on its `useValue`. * All components that are referenced in the `useValue` value (either dire...
import { Controller, Get } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; @Controller('check') export class CheckController { constructor(private configService: ConfigService) {} @Get() check() { const URI = this.configService.get<string>('JWT_SECRET'); console.log(URI, 'これが環境変数')...
import { artifacts as proxyArtifacts } from '@0x/contracts-asset-proxy'; import { LogDecoder, Web3ProviderEngine } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ fro...
import fs from 'fs' import winston from 'winston' import winstonDaily from 'winston-daily-rotate-file' import moment from 'moment' import 'moment-timezone' import config from '../../configs' const logPath = config.logs.path moment.tz.setDefault(config.timezone) if (!fs.existsSync(logPath)) { fs.mkdirSync(logPath...
import { styled } from "../utils/theme"; export const Mono = styled.code` font-family: ${props => props.theme.monoFont}; font-size: 1em; `
/** * Copyright 2021, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. */ import gql from 'graphql-tag'; export const asyncFactsMutationStr = ` mutation($id: ID, $query: String, $asyncAfterSeconds: Int) { asyncQuery(op: UPSERT, data: { id: $id, que...
/** * Copyright 2017-2020 Plexus Interop Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * 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/...
import chalk from 'chalk'; import { Express } from 'express'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; // import webpackHotMiddleware from 'webpack-hot-middleware'; import config from '../../webpack.config'; export const devTools = (app: Express) => { // webpack middl...
import * as path from '@stoplight/path'; import { DiagnosticSeverity } from '@stoplight/types'; import * as nock from 'nock'; import { Document } from '../../../document'; import { readParsable } from '../../../fs/reader'; import { unreferencedReusableObject } from '../../../functions/unreferencedReusableObject'; impo...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export type Indicator = { value: number; unit: string; description: string; }; export type Project = { title: string; description: string; indicators?: Indicator[]; link?: string; linkLabel?: string; }; export const PROJECTS: Project[] = [ { title: 'ウェブアプリ kula', description: '株式会社サイボウ...
import * as DG from "datagrok-api/dg"; import * as ui from "datagrok-api/ui"; import * as grok from 'datagrok-api/grok'; import { study } from "../clinical-study"; import { MH_BODY_SYSTEM, MH_CATEGORY, SUBJECT_ID } from '../constants/columns-constants'; import { _package } from '../package'; import { ClinicalCaseViewBa...
import * as React from 'react'; import { AppCoreContext, BreakPoint } from '../Types'; import { WithContextProps } from '../libs'; import { rootContextType } from '../app'; export interface BreakpointDetectorProps { readonly resolver?: (windowWidth: number) => BreakPoint; } export class BreakpointDetector extend...
import { Structure as _Structure_ } from "@aws-sdk/types"; export const GetDefaultPatchBaselineOutput: _Structure_ = { type: "structure", required: [], members: { BaselineId: { shape: { type: "string", min: 20 } }, OperatingSystem: { shape: { type: "string" ...
import { Component, OnInit } from "@angular/core"; import { OdeComponent } from "ngx-ode-core"; @Component({ selector: 'ode-adml-search-card', template: ` <div class="card-header"> <span> <i class="fa fa-search" aria-hidden="true"></i> <s5l>admc.search</s5l> ...
import { CommonModule } from '@angular/common'; import { MaterialModule } from '@angular/material'; import { NgModule } from '@angular/core'; import {ReactiveFormsModule, FormsModule} from '@angular/forms'; import { RouterModule } from '@angular/router'; import { BookAuthorsComponent } from './book-authors'; import { ...
/// <reference path="../typings/index.d.ts" /> import { bootstrap } from '@angular/platform-browser-dynamic'; import { AppComponent } from './app.component'; bootstrap(AppComponent);
export { default as Tooltip } from './Tooltip.svelte'; export * as TooltipStyles from './Tooltip.styles';
import { ElementEvents } from "Meta/Elements/ElementTreeData.types"; export declare const elementEventFunctions: Record<ElementEvents, Function>;
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-ambulance-type', templateUrl: './ambulance-type.component.html', styleUrls: ['./ambulance-type.component.css'] }) export class AmbulanceTypeComponent implements OnInit { constructor() { } ngOnInit(): void { } }
import { Context, findDeclaration, getNames, interrupt, parseError, Result, resume, runInContext } from 'js-slang'; import { TRY_AGAIN } from 'js-slang/dist/constants'; import { defineSymbol } from 'js-slang/dist/createContext'; import { InterruptedError } from 'js-slang/dist/errors/errors'; import { pa...
import * as _ from 'lodash'; import { Component, OnInit, ViewChild } from '@angular/core'; import { Notification } from '@/modules/finance/models/notification.model'; import { QueryModel } from '@/models/query.model'; import { RequestCodGridComponent } from './../request-cod-gird/request-cod-gird.component'; import { T...
// Copyright 2021 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...
// What is an "Ajax"? // This is an object meant to contain the three main components of an ajax component or page. It is meant to answer // three main questions: // - Is the data currently being fetched from the server? // - Were there are any errors fetching the data? // - What is the data? // The type of data will v...
import { workerData } from 'node:worker_threads' import { parentPort } from 'node:worker_threads' import { Formatter } from '@atls/code-format' new Formatter(workerData.cwd).format(workerData.files).then(() => parentPort!.postMessage(''))
import { SocialSharing } from '@ionic-native/social-sharing'; import { Clipboard } from '@ionic-native/clipboard'; import { ChatMessage } from './../../data/ChatMessage'; import { StorageService } from './../../services/storage-service'; import { ChatService } from './../../services/chat-service'; import { trigger, tra...
import React, { PropsWithChildren } from 'react'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/Dialo...
export * from './QueryBuilder'; export * from './QueryBuilderChain'; export interface ColumnConditions { [column: string]: string | number | bigint; }
import { Contracts } from "@solar-network/core-kernel"; import dayjs, { Dayjs } from "dayjs"; import { PeerVerificationResult } from "./peer-verifier"; /** * @export * @class Peer * @implements {Contracts.P2P.Peer} */ export class Peer implements Contracts.P2P.Peer { /** * @type {Contracts.P2P.PeerPorts}...
/* Copyright 2018, 2019 matrix-appservice-discord 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 in w...
/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported...
/*********************************************************** * Copyright (C) 2022 * Worktez * * Author : Twinkle Chatterjee <ctwinkle2812@gmail.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License * * * This program is distributed in the hope th...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About MustacheCoin</source> <translation>Au sujet de MustacheCoin</translation> </message> <message> ...
import {Color} from '../math/color'; export class Material { constructor( public ambient: Color, public diffuse: Color ) {} }
import 'reflect-metadata'; import { classToClass, classToClassFromExist, classToPlain, classToPlainFromExist, plainToClass, plainToClassFromExist, } from '../../src/index'; import { defaultMetadataStorage } from '../../src/storage'; import { Exclude, Expose, Type } from '../../src/decorators'; describe('sp...
import {PureComponent} from "react"; import {OverlayTrigger, Tooltip} from "react-bootstrap"; type CopyButtonProps = { content: string, }; type CopyButtonState = { showCopiedTooltip: boolean, } export default class CopyButton extends PureComponent<CopyButtonProps, CopyButtonState> { constructor(props: Co...
// Type definitions for easy-table // Project: https://github.com/eldargab/easy-table // Definitions by: Niklas Mollenhauer <https://github.com/nikeee> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class EasyTable { /** * String to separate columns */ public separator: ...
export { CreationDetails } from "./CreationDetails"
import React from 'react'; import Document, { Html, Head, Main, NextScript } from 'next/document'; class MyDocument extends Document { // eslint-disable-next-line static async getInitialProps(ctx: any) { const initialProps = await Document.getInitialProps(ctx); return { ...initialProps }; } render(): ...
import {DefaultStorageService, StorageDirectory} from 'services/StorageService'; let currentUUID = ''; export const getRandomString = (size: number) => { const chars = [...'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789']; return [...Array(size)].map(_ => chars[(Math.random() * chars.length) | 0]).join(''); }; const cach...
export * from './controller.explorer';
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const lasCreativeCommonsRemix: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export c...
import { RobeInfo, fetchNs } from '../api/fetch-n-by-set-name' import { format as ts } from 'timeago.js' export async function getStaticProps() { const data = await fetchNs('eleven') return { props: { robes: data.robes, lastUpdate: data.lastUpdate, }, revalidate: 300, } } interface Props...
import { IAutomaticCondition } from "./automatics"; import { IBonus } from "./bonuses"; import { IDiscount } from "./discounts"; import { IEffect } from "./effects"; export type IPerk = IAutomaticCondition | IBonus | IDiscount | IEffect;
/** * 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...
import classNames from 'classnames'; import { ComponentClassNames } from '../../shared'; import { View } from '../../View'; import { useDeprecationWarning } from '../../../hooks/useDeprecationWarning'; /** * @deprecated These icons are being removed in the next major release. You can use the [react-icons](https://re...
import React from "react"; interface Props { score: number; running: boolean; } export const Menu = ({ score, running }: Props) => { const gameOverVisibility = running ? "hidden" : "visible"; return ( <div id="menu"> <h1 id="title">Snake</h1> <p>Score: <strong>{score}<...
import { PluginApi } from './@interface/pluginApi.i' import { Client, MessageEmbed, TextChannel, } from 'discord.js' import fs from 'fs' import path from 'path' import EventEmitter from 'events' import { CommandManager } from './CommandManager' import { Config } from './@interface/DiscordBridge.i' class DiscordB...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CustStytemComponent } from './cust-stytem.component'; describe('CustStytemComponent', () => { let component: CustStytemComponent; let fixture: ComponentFixture<CustStytemComponent>; beforeEach(async () => { await TestBed.configureT...
/** * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
import { ComponentType, ReactElement, ReactNode, Component } from 'react'; import { Insets, NativeSyntheticEvent, StyleProp, ViewProps, ViewStyle } from 'react-native'; export interface WebViewNativeEvent { readonly url: string; readonly loading: boolean; readonly title: string; readonly canGoBack: boolean; ...