text
stringlengths
10
953k
import {Head, Link} from 'blitz' const Home = () => ( <div className="container"> <Head> <title><%= name %></title> <link rel="icon" href="/favicon.ico" /> </Head> <main> <div className="logo"> <img src="/logo.png" alt="blitz.js" /> </div> <p> 1. Add this co...
import React from "react"; import { StyleSheet, View, ScrollView } from "react-native"; import HomeScreenButton from "./HomeScreenButton"; class HomeScreen extends React.PureComponent<any> { static navigationOptions = { title: "Fluid Transitions", }; openExample = (route: string) => { const { navigation...
import * as os from 'os'; import * as path from 'path'; import { Command, Flags } from '@oclif/core'; import { prompt } from 'inquirer'; import { Config } from '../config'; import { AutoComplete } from '../autocomplete'; import { MultiWrapper } from '../multiWrapper'; import { BashRc } from '../bashRc'; export default...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { AngularFireModule } from '@angular/fire'; import { AngularFirestoreModule } from '@angular/fire/firestore'; import { AngularFireStorageModule } from '@angular/fir...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Dtcoin</source> <translation>关于莱特币</translation> </message> ...
import * as React from 'react'; import { Table, Header } from 'semantic-ui-react'; import { renderArray } from 'helpers/react'; import {Direction, directionSpec} from 'helpers/table'; interface IRow { name: string; first: number|undefined; last: number|undefined; } interface IProp { data: IRow[]; nameColNam...
import <%= componentName %> from "./<%= componentName %>"; export default <%= componentName %>;
import { ParseData } from 'parse-string' import { FilterQuery } from '@kenote/common' import { VerifyGenerateOptions } from '@/types/services/db/verify' import { Channel } from '@/types/client' export declare interface AccountConfigure { /** * 验证码发送间隔;单位:秒 */ mailphoneStep : number /** * 验证码时效;单位...
import { RUIEventEmitter, RUIObjEvent, RUIKeyboardEvent, RUIMouseEvent, RUIWheelEvent, RUIEventType } from "./RUIEvent"; export type RUIInitConfig = { fontPath?: string, fontSize?: number, forceFullLayout?:boolean, } export var RUI_CONFIG: RUIInitConfig; export var RUIEVENT_ONFRAME: RUIEventEmitter<numbe...
import { App } from './app'; //Importando App import { connect } from './database'; //É a main do projeto, ele vai abrir uma função asyncrona do App que ta importando, na porta 5000 async function main() { const app = new App(5000); await app.listen(); } main();
import * as assert from 'assert'; import { validatePublisher, validateExtensionName, validateVersion, validateEngineCompatibility, validateVSCodeTypesCompatibility, } from '../validation'; describe('validatePublisher', () => { it('should throw with empty', () => { assert.throws(() => validatePublisher(null)); ...
import {Component, ElementRef, OnDestroy, OnInit, ViewChild} from '@angular/core'; import {FpsService} from '../../shared/services/fps.service'; import {Subject} from 'rxjs'; import {takeUntil} from "rxjs/operators"; @Component({ selector: 'app-fps', templateUrl: './fps.component.html', styleUrls: ['./fps.compon...
import { Entity, Column, PrimaryGeneratedColumn, ManyToOne } from 'typeorm'; import { User } from './user.entity'; @Entity() export class Pet { @PrimaryGeneratedColumn() id: number; @Column() name: string; @ManyToOne((type) => User, (user) => user.pets) owner: User; }
/* tslint:disable */ /* eslint-disable */ /** * Vulcan API * Public API for Vulcan Vulnerability Scan Engine * * The version of the OpenAPI document: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manual...
/** * @license * Copyright 2021 Frank Ballmeyer * This code is released under the MIT license. * SPDX-License-Identifier: MIT */ import React, { useState, useEffect, useContext } from 'react'; import { EditItemProps } from './common'; import { FieldSet } from './fieldset'; import { EditItemsContext, EditorRef } ...
import { Paginator } from "@aws-sdk/types"; import { DescribeDomainAutoTunesCommand, DescribeDomainAutoTunesCommandInput, DescribeDomainAutoTunesCommandOutput, } from "../commands/DescribeDomainAutoTunesCommand"; import { ElasticsearchService } from "../ElasticsearchService"; import { ElasticsearchServiceClient ...
import React from "react" import renderer from "react-test-renderer" import { Tags } from "@/components/Post/Tags" import * as mocks from "@/mocks" describe("Tags", () => { it("renders correctly", () => { const props = { tags: mocks.markdownRemark.frontmatter.tags, tagSlugs: mocks.markdownRemark.fie...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { Question } from './question'; const randomQuestionUrl = 'http://jservice.io/api/random'; @Injectable() export class JService { constructor(private http: Http) {} ...
import { execSync } from 'child_process'; import fs from 'fs-extra'; import os from 'os'; import path from 'path'; import { expect } from 'chai'; import proxyquire from 'proxyquire'; import { createDefaultCertificate } from '@electron-forge/maker-appx'; import installDeps from '../../src/util/install-dependencies'; i...
import rootStore from '@vue-storefront/core/store' import SearchQuery from '@vue-storefront/core/lib/search/searchQuery' import { remove as removeAccents } from 'remove-accents' import { Logger } from '@vue-storefront/core/lib/logger' import { formatCategoryLink } from '@vue-storefront/core/modules/url/helpers' import ...
// tslint:disable: typedef no-invalid-this import { AppliableFunction, isAsyncFunction } from '../functions' type Decoration = { target: object propertyKey: string propertyDescriptor: PropertyDescriptor instance?: object params?: Array<unknown> method: AppliableFunction } type Handler = (decoration: Decor...
import { css, jsx } from '@emotion/core' import { NUMBER_RADIUS_REGULAR, NUMBER_REGULAR_FONT_SIZE, HOUR_24_INNER_FONT_SIZE, HOUR_24_OUTER_FONT_SIZE, } from '../../helpers/constants' const CLOCK_NUMBER_COLOR = '#999999' function getFontSize(hour24Mode: boolean, inner: boolean): string { if (!hour24Mode) { retur...
import _ from 'lodash'; import React, { PureComponent } from 'react'; import { TimeSeries } from 'app/core/core'; import { CustomScrollbar, Icon } from '@grafinsight/ui'; import { LegendItem, LEGEND_STATS } from './LegendSeriesItem'; type Sort = 'min' | 'max' | 'avg' | 'current' | 'total'; interface LegendProps { se...
import { RawType, RawTypeName } from "../Schema/RawType"; export declare function typeName(value: RawType): RawTypeName;
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Jppoints</source> <translation>Jppoints-i buruz</translation> ...
import { getBackendSrv } from '@grafana/runtime'; import { NavModelSrv } from 'app/core/core'; import { Scope, CoreEvents, AppEventEmitter } from 'app/types'; import { promiseToDigest } from 'app/core/utils/promiseToDigest'; export default class AdminListOrgsCtrl { /** @ngInject */ constructor($scope: Scope & AppE...
import { inject } from "inversify"; import { TYPES } from "./types"; export const dbClient = inject(TYPES.DbClient); export const eventDispatcher = inject(TYPES.EventDispatcher);
/** * Zee left nav columns and links for project page * Contains top level left nav names and links * This is called from the parent component and not the leftnav component to make the it left nav content configurable */ export var ZEE_NAV_COLUMNS = { type: { dataType: 'project-leftnav' }, header:...
export { default as AccountConnection, Props as AccountConnectionProps, } from './AccountConnection'; export {default as ActionList, Props as ActionListProps} from './ActionList'; export { default as AppProvider, Props as AppProviderProps, polarisAppProviderContextTypes as polarisContextTypes, createPolar...
/* eslint-disable no-console */ import chalk from 'chalk' export const logInfo = (data: unknown): void => { if (typeof data === 'string') { console.log(chalk.blue(`${data}`)) } else { console.log(chalk.blue(`${JSON.stringify(data)}`)) } } export const logError = (data: unknown): void => { if (typeof data === ...
import { Card } from '../../../interfaces' import Set from '../Sandstorm' const card: Card = { name: { en: "Solrock", }, illustrator: "Hajime Kusajima", rarity: "Rare", category: "Pokemon", set: Set, dexId: [ 338, ], hp: 70, types: [ "Fighting", ], stage: "Basic", abilities: [ { type: "Poke-...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { AnalyticsPageRoutingModule } from './analytics-routing.module'; import { AnalyticsPage } from './analytics.page'; import { Ngx...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {jest} from '@jest/globals'; import path from 'path'; import fs from 'fs-extra'; import {createBlogFeedFiles} from '../feed...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Shhhcoin</source> <translation>À propos de Shhhcoin</translation> ...
import { join } from 'path'; import { Config } from './Config'; export default class ConfigReader { constructor(private path: string) {} readConfigFile(): Config { return require(this.path) as Config; } static getFilePath(path: string | undefined): string { return path ? path : join(process.cwd(), '...
const completionSpec: Fig.Spec = { name: "autoscaling", description: "Amazon EC2 Auto Scaling Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined scaling policies, scheduled actions, and health checks. Use this service with AWS Auto Scaling, Amazon CloudW...
import {Page, Request, Response} from "puppeteer-core"; export type PageRequest = { id: string, url: string, method: string, time: number, response?: { status: number, location?: string,//仅当302时 contentType: string, contentLength: number, fromCache: boolean, ...
import * as AWS from "aws-sdk"; import * as minimist from "minimist"; import {taskDefinitionHelper} from './taskDefinitionHelper'; var ecsClient = new AWS.ECS({ region : "eu-west-1", apiVersion : "2014-11-13" }); interface updateTaskParam{ _ : string[]; taskName : string; containerName : string; ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {Scope} from "../../scopes"; import { AnyNode, JSBindingAssignmentPattern, jsBindingAssignmentPattern, } from "@romefron...
/** * An error thrown when the API request timed out */ class TimeoutError extends Error { constructor() { super('Request timed out') } get name(): string { return this.constructor.name } } export { TimeoutError }
import { NgModule } from "@angular/core"; import { ActivePipe } from "./active.pipe"; import { LocalTitlePipe } from "./local-title.pipe"; import { ParseUrlPipe } from "./parse-url.pipe"; @NgModule({ declarations: [ ActivePipe, LocalTitlePipe, ParseUrlPipe ], exports: [ Acti...
import * as React from 'react'; import { Modal } from 'react-bootstrap'; import * as actions from '../../../../actions/k8sResources'; import K8sResourceFrom from '../../../../containers/settings/catalogs/k8sResourceForm'; import { K8SResourceModel } from '../../../../models/k8sResource'; import { isLive } from '../../...
<TS language="ms_MY" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klik-kanan untuk edit alamat ataupun label</translation> </message> <message> <source>Create a new address</source> <tra...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { AsyncLocalStorage } from "async_hooks"; import { ITenantConfig } from "@fluidframework/server-services-core"; import { getCorrelationId } from "@fluidframework/server-services-utils"; impor...
import { Observable } from 'rxjs'; import { ODataResource } from '../resource'; import { ODataPathSegments, PathSegmentNames } from '../path-segments'; import { map } from 'rxjs/operators'; import { HttpOptions } from './options'; import { ODataMetadata } from '../responses'; import { $METADATA } from '../../constants...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
class User { name: string; gold: number; exp: number; level: number; heroes: Hero[] = []; power: number; constructor(name: string) { this.name = name; this.gold = 1000; this.exp = 0; this.level = 1; this.power = 0; } public addGold(g: num...
import React from 'react'; import { FontAwesome5 as Icon } from '@expo/vector-icons'; import { Text, StyleSheet } from 'react-native'; import { GamePlatform } from './types'; import { RectButton } from 'react-native-gesture-handler'; type Props = { platform: GamePlatform; onChange: (platform: GamePlatform) => ...
import { generateCompleteIconSetContent } from './complete-icon-set.helper'; import { unformatedString } from './test-helpers'; describe('Complete Iconset-helper', () => { it('should import all the values and export them as an array', () => { const fileNamesWithDefinitions = [ { variableName: 'foo', prefix...
import { StyledIcon } from '@styled-icons/styled-icon'; export declare const Dgd: StyledIcon; export declare const DgdDimensions: { height: number; width: number; };
import { Component, Host, h, Prop, Watch, EventEmitter, Event, State } from '@stencil/core'; import { EnumColorMapName, getShader } from '../../utils/colormaps'; import { clamp, getDebouce, getLayer, verifyLayer } from '../../utils/utils'; export type TErrorEvent = { message: string } @Component({ tag: 'ng-layer-...
export class AuthException extends Error { public statusCode: number; public statusMessage: string; constructor(statusCode: number, statusMessage: string) { super(statusMessage); this.statusCode = statusCode; this.statusMessage = statusMessage; } }
import "@elements/_bundles/_sub-bundles/module/play"; import "@elements/_bundles/_sub-bundles/module/_groups/cards/play"; import "@elements/module/matching/_common/main/container"; import "@elements/module/matching/_common/main/column"; import "@elements/_bundles/_sub-bundles/all";
import rule from './no-else-return'; import { EsLintBestPracticesRules as Rules, Severity } from '../../../enums'; describe(Rules.NoElseReturn, (): void => { it('should have the correct rule', (): void => { expect(Object.keys(rule).length).toBe(1); expect(Rules.NoElseReturn in rule).toBe(true); }); it('should ...
// by updating these functions filter and preprocessing tests have to be rewritten export function testArrayData() { return [ {a: ['bf', 'gf', 'kf'], id: '0'}, {a: ['ff', 'ef', 'af', 'zf'], id: '1'}, {a: ['ff', 'gf'], id: '2'}, {a: ['ff', 'ef', 'cf', 'pf'], id: '3'}, {a: ['zf', 'lf', 'bf'], id: '...
import { RouteReuseStrategy, DefaultUrlSerializer, ActivatedRouteSnapshot, DetachedRouteHandle, Route } from '@angular/router'; /** * 重写angular路由重用策略,路由重用(多标签页实现)和路由懒加载最终解决方案 */ export class SimpleReuseStrategy implements RouteReuseStrategy { public static handlers: { [key: string]: DetachedRouteHandle ...
import * as React from "react"; import { ClusterDefinitionContext } from "./ClusterDefinitionContext"; import { StdOutContext } from "./StdOutContext"; export const Context = (props: React.Props<any>) => ( <div className="Context"> <ClusterDefinitionContext> <StdOutContext>{props.children}</StdOutContext> ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import path from 'path'; import fs from 'fs'; const samplesDir = path.resolve(__dirname, '../assets/projects'); const boilerplateDir = path.resolve(__dirname, '../assets/shared'); const samplesRegitry = { '*': { // base registry item, c...
import React from 'react'; import TextInputIcon, { IconAdornment } from './Icon'; import TextInputAffix, { AffixAdornment } from './Affix'; import { ADORNMENT_OFFSET } from '../constants'; import { LayoutChangeEvent, TextStyle, StyleProp, Animated, Platform, } from 'react-native'; import { AdornmentConfig, ...
import { PluginKey } from 'prosemirror-state'; export interface Listeners { [name: string]: Set<Listener>; } export type Listener<T = any> = (data: T) => void; export type Dispatch<T = any> = ( eventName: PluginKey | string, data: T, ) => void; export class EventDispatcher<T = any> { private listeners: Listen...
/** * Copyright (c) Microsoft Corporation. * * 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...
/** * A currency is any fungible financial instrument on Ethereum, including Ether and all ERC20 tokens. * * The only instance of the base class `Blockchain` is Ether. */ export declare class Blockchain { readonly decimals: number; readonly symbol?: string; readonly name?: string; /** * The onl...
import { DestinySocketCategoryStyle } from 'bungie-api-ts/destiny2'; import clsx from 'clsx'; import { t } from 'app/i18next-t'; import React, { useEffect, useState } from 'react'; import './ItemSockets.scss'; import { D2ManifestDefinitions } from '../destiny2/d2-definitions'; import { D2Item, DimSocketCategory, DimPlu...
// Copyright 2018 Knowledge Expert SA // // 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...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Dravite</source> <translation type="unfinished"/> </message> <message> <location line="...
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable no-case-declarations */ /* eslint-disable eqeqeq */ /* eslint-disable no-useless-escape */ /* eslint-disable no-async-promise-executor */ /* eslint-disable @typescript-eslint/no-explicit-any */ /*---------------------------------------------------...
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, OnInit, AfterViewInit, OnDestroy, ComponentFactoryResolver, Injector } from '@angular/core'; import { combineLatest, Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; import { TranslateService } from '@ngx-translate/core'; import ...
import { expect } from 'chai'; import { promises as fs } from 'fs'; import { HighestMigrationId } from 'src/app/libs/migrations.lib'; import { Settings } from 'src/app/models/settings.model'; import { Tests } from 'test/lib/tests'; describe('Environments migrations', () => { describe('Pre 1.7.0', () => { const f...
import { Vertex } from '../atoms/Vertex'; /** * */ export interface Transform { exec(vertex: Vertex, u: number, v: number, uLength: number, vLength: number): void; }
// ButtonGroup.stories.ts | ButtonGroup.stories.tsx import React from "react"; import { Story, Meta } from "@storybook/react"; import { CourseProgress, CourseProgressProps } from "./CourseProgress"; export default { title: "Components/CourseProgress", component: CourseProgress, } as Meta; const Template: Story<...
import React from 'react'; import { Row, Col, Alert, Button, Collapse, notification, } from 'antd'; import Text from 'antd/lib/typography/Text'; import BasicConfigurationForm, { BaseConfiguration } from './basic-configuration-form'; import AdvancedConfigurationForm, { AdvancedConfiguration } ...
export interface IChartData { data: Array<number>, label: string, backgroundColor: string, borderColor: string, pointBackgroundColor: string, pointBorderColor: string, pointHoverBackgroundColor: string, pointHoverBorderColor: string }
import { handleRequest } from './handler' async function responseWrapper(response: Response | Promise<Response>) { let rsp if (response instanceof Promise) { try { rsp = await response } catch (error) { rsp = new Response(`应用出现错误:${error.message}`, { status: 500 }) } } else { rsp = re...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OrdersRoutingModule } from './orders-routing.module'; import {OrdersComponent} from './orders.component'; import {SharedModule} from '../../shared/shared.module'; import { UpdateOrderComponent } from './components/update...
import "reflect-metadata"; import { ROUTES_METADATA } from "../Constants"; import { ResponseBody } from "../../handlers/request/ResponseBody"; import { Handler } from "../../Handler"; import { GenericRequest } from "../../GenericRequest"; /** * Method to call a function on the class implementing a CustomErrorHandler...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** * Provides a Hetzner Cloud Load Balancer Network to repres...
/** * Lets plugins implementing support for other compile-to-js add to the list * of "resolvable" file extensions. Gatsby supports `.js` and `.jsx` by default. * @returns {Array<string>} array of extensions */ export const resolvableExtensions = true /** * Tell plugins to add pages. This extension point is called...
import { AuthRequest } from './AuthRequest'; import { AuthRequestConfig, AuthRequestPromptOptions } from './AuthRequest.types'; import { AuthSessionResult } from './AuthSession.types'; import { DiscoveryDocument, IssuerOrDiscovery } from './Discovery'; /** * Fetch the discovery document from an OpenID Connect issuer. ...
import {Component, provide} from 'angular2/angular2'; import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, LocationStrategy, HashLocationStrategy } from 'angular2/router'; import Contact from './contact/Contact'; import ContactList from './contact/components/ContactList'; import ContactsService from '....
import {Component, Input, OnInit, AfterViewInit, AfterContentChecked, AfterViewChecked, ElementRef} from '@angular/core'; import * as $ from 'jquery'; import 'fullcalendar'; import {Options} from "fullcalendar"; /* Generated class for the Calendar component. See https://angular.io/docs/ts/latest/api/core/index/Co...
import { isAndroid } from '../isAndroid/isAndroid'; import { isIOS } from '../isIOS/isIOS'; /** * Checks if the device is likely mobile or not. * * @return `true` if the device is likely mobile, or otherwise `false`. */ export function isMobile(): boolean { return isAndroid() || isIOS(); }
import * as React from "react"; import { IEmojiProps } from "../../styled"; const SvgPersonFantasy78 = (props: IEmojiProps) => ( <svg viewBox="0 0 72 72" width="1em" height="1em" {...props}> <path fill="#fcea2b" d="M26.1 39.2c-4 0-4-6-4-13s4-14 14-14 14 7 14 14 0 13-4 13" /> <path fill=...
import { Idl } from "../../idl.js"; import { Coder } from "../index.js"; import { SplTokenInstructionCoder } from "./instruction.js"; import { SplTokenStateCoder } from "./state.js"; import { SplTokenAccountsCoder } from "./accounts.js"; import { SplTokenEventsCoder } from "./events.js"; import { SplTokenTypesCoder } f...
<TS language="el_GR" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Δεξί-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation> </message> <message> <source>Create a new address</source>...
import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; @NgModule({ imports: [ BrowserModule, FormsModule, HttpModule...
import { Component, Inject, Input } from '@angular/core'; import { TextMenuItemModel } from './models/text.model'; import { MenuItemType } from '../initial-menus-state'; import { rendersMenuItemForType } from '../menu-item.decorator'; /** * Component that renders a menu section of type TEXT */ @Component({ selecto...
// Copyright 2017-2021 @polkadot/react-api authors & contributors // and @canvas-ui/react-api authors & contributors // SPDX-License-Identifier: Apache-2.0 import intervalObservable from './intervalObservable'; import isEqual from './isEqual'; import triggerChange from './triggerChange'; export { intervalObservable...
import { combineEpics, ofType, } from 'redux-observable'; import { Observable, of } from 'rxjs'; import { catchError, filter, map, mergeMap, tap } from 'rxjs/operators'; import { CARD_DETAILS_SCREEN, CARD_LINK_SCREEN, EDIT_CARD_LINK_SCREEN, } from '_constants/screens'; import { SCORE_TO_NUMBER } from '_const...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Routes, RouterModule } from '@angular/router'; import { IonicModule } from '@ionic/angular'; import { StoreLoginPage } from './store-login.page'; import { MatTabsModule,MatS...
import { forwardRef } from "react"; import { MdCheck } from "react-icons/md"; import { Tooltip } from "../tooltip.tsx"; import { CheckboxProps, useCheckbox } from "."; import styles from "./checkbox.module.css"; /** @see https://material.io/components/checkbox */ export const Checkbox = forwardRef< HTMLInputElement,...
import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class GoGitMerge extends React.Component<IconBaseProps> { }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Adn</source> <translation>O Adnu</translation> </message> <m...
import React, { useEffect, useState } from 'react'; import { Image, View, ScrollView, Text, StyleSheet, Dimensions, TouchableOpacity, Linking, } from 'react-native'; import MapView, { Marker } from 'react-native-maps'; import { Feather, FontAwesome } from '@expo/vector-icons'; import mapMarkerImg from ...
const packageInfo = { version: "3.1.0" }; import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "../config-resolver/mod.ts"; import { defaultProvider as credentialDefaultProvider } from "../credential-provider-node/mod.ts"; import { Hash } from "https://jspm.dev/@aws-sdk/hash-node"; import { NODE...
/** * @file Router config selectors, used to get router system config parameters directly from global state * * @author Cataldo Cianciaruso <https://github.com/CianciarusoCataldo> * * @copyright Cataldo Cianciaruso 2022 */ import { createSelector } from "reselect"; import { getConfig } from "../config/selectors"...
// https://airtable.com/apppO5poOzAE5YYJN/api/docs#javascript/authentication export enum ApplicationFields { org = 'Organization Name', url = 'Organization URL', about = 'Tell us about your organization in a sentence', product = 'What does your organization do?', founderEmail = 'Founder email filling out appl...
import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import { TaskInstance } from 'ember-concurrency'; import { task } from 'ember-concurrency-decorators'; import DS from 'ember-data'; import ModelRegistry from 'ember-data/types/registries/model'; import Ready from 'ember-osf-w...
import { ReactElement } from 'react' import { env, isProduction, app, theme, canLogInProduction } from '../variables' export const gettype = (target: any): string => Object.prototype.toString .call(target) .match(/\[object (.+)\]/)![1] .toLowerCase() export const istype = (target: any, type: string): bo...
import express from 'express'; import routes from './routes'; const app = express(); app.use(routes); app.listen(3333, () => { console.log('🧨 Server listen on http://localhost:3333'); });
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export class TuiValidationError<T extends object = {}> { constructor( readonly message: PolymorpheusContent<T>, readonly context: T = {} as T, ) {} }