text
stringlengths
10
953k
import * as csstree from 'css-tree'; const ast = csstree.parse('.a { color: red; }'); ast; // $ExpectType CssNode csstree.parse('.a { color: red; }', {}); // $ExpectType CssNode csstree.parse('.a { color: red; }', {context: 'selector', positions: true}); // $ExpectType CssNode csstree.walk(ast, (node, item, list) =>...
import React, { Component } from 'react'; import Style from '../Navigation.module.scss'; interface Props {} interface States {} class NavCircle extends Component<Props, States> { render() { return ( <> <svg type='image/svg+xml' width='100...
import clsx from 'clsx' import { memo, useEffect, useRef, useState } from 'react' import SequenceMaker from '~lib/sequencer/sequencer' import IconRotate from './IconRotate' import IfElse from './IfElse' type Props = { pageID: string list: Array<string> width?: number height?: number placeholder?: string } ...
import * as vs from "vscode"; import { activate, currentDoc, ensureCompletion, getCompletionsAt, helloWorldCompletionFile, setTestContent } from "../../helpers"; describe("completion_item_provider", () => { beforeEach("activate helloWorldCompletionFile", () => activate(helloWorldCompletionFile)); // This is not im...
import { Action, AsyncAction, Operator, debounce, mutate, pipe, wait, } from 'overmind' import * as o from './operators' import { ActionsListItemType, Component, ExecutionType, Message, Tab, } from './types' import { createApp, getActionId, isValidJson } from './utils' export const onMessage: ...
import { Subject } from 'rxjs'; import * as log from 'loglevel'; export class EventSubjectRepository { private static subjects: { [key: string]: any } = {}; static subjectFor<T>(key: string): Subject<T> { if (!EventSubjectRepository.subjects[key]) { const subject = new Subject<T>(); subject.subscri...
/*--------------------------------------------------------------------------------------------- * Copywight (c) Micwosoft Cowpowation. Aww wights wesewved. * Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation. *----------------------------------------------------------------...
import { Flex, Button, Stack } from '@chakra-ui/react' import { Input } from '../components/Form/Input' export default function Login() { return ( <Flex w='100vw' h='100vh' align='center' justify='center'> <Flex as='form' w='100%' maxW='360px' bg='gray.200' p='8' ...
import { ApiProperty } from '@nestjs/swagger'; export class LoginReqDto { @ApiProperty() email: string; @ApiProperty() password: string; }
import type { ArrayWrapped, EmptyArray } from '../types/utility'; /** * If the provided value is not an array, * wrap it in an array. If the value is undefined * will return an empty array. */ export function arrayWrapped<T>( item: T, ): T extends undefined ? EmptyArray : ArrayWrapped<T> { if (Array.isArray(it...
/** * These interfaces mirror the API schema defined in * {@link https://github.com/google/timesketch/blob/master/timesketch/api/v1/resources.py} * The ResourceMixin class defines fields for each type of resource. * These are reflected here: * "interface Status" corresponds to `ResourceMixin.status_fields`, * "in...
import { Component, OnInit } from '@angular/core'; import { AndroidService } from '../services/android.service'; import { ActivatedRoute, Params, Router } from '@angular/router'; @Component({ selector: 'app-android', templateUrl: './android.component.html', styleUrls: ['./android.component.css'] }) export class ...
import getElement from './-get-element'; import fireEvent from './fire-event'; import settled from '../settled'; import { Promise } from '../-utils'; import Target from './-target'; import { log } from '@ember/test-helpers/dom/-logging'; import isFocusable from './-is-focusable'; import { runHooks, registerHook } from ...
import sirv from 'sirv' import polka from 'polka' import { applyHandler } from './apply-handler' const server = polka() server.use(sirv(import.meta.env.MIX_CLIENT_DIR)) applyHandler(server) const { PORT = 3000 } = process.env server.listen(PORT) console.log(`Ready at http://localhost:${PORT}`)
import { Logic } from '@core/domain'; import { FirstActions, FirstActionTypes } from './first.actions'; export interface FirstState { isLoading: boolean; isError: boolean; data: Logic | null; } const defaultState: FirstState = { isLoading: false, isError: false, data: null, }; export const firstReducer ...
import {Component, OnInit} from '@angular/core'; import {Observable} from 'rxjs'; import {FileRevisionsComponent} from '../file-revisions/file-revisions.component'; import {FileTreeComponent} from '../file-tree/file-tree.component'; import {File} from '../../../model/file'; import {Project} from '../../../model/projec...
import { Component } from '@angular/core'; import { Time } from '@helgoland/core'; import { TimespanShiftSelectorComponent } from '@helgoland/time'; @Component({ selector: 'n52-custom-timespan-shift-selector', templateUrl: './custom-timespan-shift-selector.component.html', styleUrls: ['./custom-timespan-shift-se...
import { restApiTemplate, allRestApiTemplates } from '../../types/restApiTemplates' import React from 'react' type snippetProps = Partial<restApiTemplate> & { page_url?: string } import { useRestApiTemplates } from '../../hooks/useMarkdownRemark' import marked from 'marked' export const Snippet: React.FC<snippetProps...
/* Copyright 2020-2021. Huawei Technologies Co., Ltd. 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 https://www.apache.org/licenses/LICENSE-2.0 Un...
import styled from 'styled-components/native'; export const Content = styled.View` margin-top: 15px; margin-bottom: 15px; width: 100%; background-color: #f8f8f8; align-items: center; padding: 10px; `; export const Title = styled.Text` font-weight: 600; font-size: 19px; text-align: center; `;
import React, { Component, KeyboardEvent, FormEvent } from "react"; import classnames from 'classnames'; import Button from "@material/react-button"; import TextField, { Input } from "@material/react-text-field"; import styles from '../../assets/scss/views/ForgotPasswordView/ForgotPasswordView.module.scss'; export in...
export * from './dateGrid.types'; export * from './findAvailableDate'; export * from './getBoundedDateRange'; export * from './getDateRangeTypeToUse'; export * from './getDayGrid'; export * from './isAfterMaxDate'; export * from './isBeforeMinDate'; export * from './isRestrictedDate';
import { assert } from 'chai'; import { KUnit } from 'kunit'; import { TsrpcError, TsrpcErrorType } from 'tsrpc-proto'; import { HttpClient } from '../../../../src/client/HttpClient'; import { MsgChat } from '../../../proto/MsgChat'; import { ReqExtendData } from '../../../proto/PtlExtendData'; import { serviceProto } ...
import React from 'react'; import { IBlockLinkPropTypes, BlockLink, } from '../../../../../components/BlockLink'; import './OurGoal.scss'; interface IPropTypes { title: string | React.ReactNode; text1?: string | React.ReactNode; link?: IBlockLinkPropTypes; } export const OurGoalBlock: React.FC<IPropTypes> ...
#!/usr/bin/env node import {program} from "commander"; import {Global} from "../lib/core/global"; import {BSTVirtualAlexa} from "../lib/client/bst-virtual-alexa"; import {LoggingHelper} from "../lib/core/logging-helper"; const chalk = require("chalk"); program.version(Global.version()); program .usage("[options]...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TotosComponent } from './totos.component'; describe('TotosComponent', () => { let component: TotosComponent; let fixture: ComponentFixture<TotosComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ decl...
import { Pedido } from './pedido'; describe('Pedido', () => { it('should create an instance', () => { expect(new Pedido()).toBeTruthy(); }); });
import { Global, Module } from '@nestjs/common' import { TypeOrmModule } from '@nestjs/typeorm'; import { Message } from './db/models/message.entity'; import { User } from './db/models/user.entity'; import RepoService from './repo.service'; @Global() @Module({ imports: [ TypeOrmModule.forFeature([ ...
/** * An interface for an object that can sign bytes. */ export default interface Signer { /** * Sign the given bytes. * * @param bytes The bytes to sign. * @returns The signature encoded in base58check format. */ sign(bytes: Uint8Array): Promise<string> /** * Retrieve the public key used to ...
<TS language="ky" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Жаң даректи жасоо</translation> </message> <message> <source>&amp;Delete</source> <translation>Ө&amp;чүрүү</translation> </message> ...
import { forwardRef, Icon, IconProps } from '@queelag/react-core' import React, { ForwardedRef } from 'react' /** * Usage: * * ```typescript * import { IconFilterAlt } from '@queelag/react-material-icons' * * function App() { * return <IconFilterAlt /> * } * ``` * * @category Component */ export const Ic...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React from 'react'; import Show from '../components/Show'; import Chord from '../components/tiles/Chord'; import ChordSource from '!!raw-loader!../components/tiles/Chord'; export default () => { return ( <Show component={Chord} title="Chords" margin={{ top: 0, left: 0, ...
import React, { useState, useEffect, useRef } from 'react'; import { useHistory } from "react-router-dom"; import { ArrowLeftOutlined, DownOutlined } from '@ant-design/icons'; import { Form, Row, Button, Input, Card, Menu, Dropdown, Select } from 'antd'; import G6Editor from '@antv/g6-editor'; import { FORM_ITEM_LAYOU...
import React from 'react'; import { Form } from '../Form'; export default () => ( <Form onSubmit={(values, actions) => { setTimeout(() => { actions.setSubmitting(false); console.log(values); }, 1000); }} initialValues={{ address: Form.AddressUS.getEmptyValue(), }} ...
import dotenv from 'dotenv'; import { Todoist as TodoistV8Api } from 'todoist'; // import cron from 'node-cron'; import { TodoistActivityLog } from './types/TodoistEvent'; dotenv.config(); const todoistApiToken = process.env.TODOIST_API_TOKEN; if (!todoistApiToken) { throw new Error('Todoist API token not defined ...
import { PlusOutlined } from '@ant-design/icons'; import { Button, message, Input, Drawer } from 'antd'; import React, { useState, useRef } from 'react'; import { useIntl, FormattedMessage } from 'umi'; import { PageContainer, FooterToolbar } from '@ant-design/pro-layout'; import type { ProColumns, ActionType } from '@...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { BalancerErrorsMock, BalancerErrorsMockInterface, } from "../...
declare const _default: ({ name: string; description: string; func: () => Promise<void>; } | { name: string; description: string; func: (_argv: string[], config: import("@react-native-community/cli-types").Config, args: import("./runAndroid").Flags) => Promise<void>; options: ({ name...
import { SubCube } from 'subject-/cube' import { SourceLevel2Select } from 'subject-/source-dialog-sel' export const _cube_set2 = new SourceLevel2Select<cube_group_vo, cube_item_vo>(SubCube.li$)
import createEditor from '../../helpers/create-editor' import Editor from '../../../src/editor/index' import { setFullScreen, setUnFullScreen } from '../../../src/editor/init-fns/set-full-screen' import $ from 'jquery' let editor: Editor const FULLSCREEN_MENU_CLASS_SELECTOR = '.w-e-icon-fullscreen' const EDIT_CONTAINE...
// Type definitions for qtip2 v2.2.1 // Project: http://qtip2.com/ // Definitions by: Nathan Pitman <https://github.com/Seltzer> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Notes: // - Type bindings for the QTip2 API and options are included. Bindings for global settings aren't required. // ...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'exercise'; }
import * as React from 'react' import styles from './module.module.less' import { ModuleListParam } from '../type/moduletype' import { AddIcon, FavorIcon, PreviewIcon, DeleteIcon } from '../Icon/icon' export const ModuleComponent = ({ modules, getDetail, width, marginLeft, initHeight, OptionalIcon, icons...
import { Module } from '@nestjs/common'; import { UserService } from './user.service'; import { MongooseModule } from '@nestjs/mongoose'; import { UserSchema } from '../models/user.schema'; @Module({ imports: [MongooseModule.forFeature([{ name: 'User', schema: UserSchema }])], providers: [UserService], exports: ...
import { AsyncEnumerableLike } from "../asyncEnumerable"; import { Factory, Updater, pipe } from "../functions"; import { fromValue, scan, scanAsync } from "../observable"; import { createStreamable } from "../streamable"; const generateScanner = <T>(generator: Updater<T>) => (acc: T, _: unknown) => generator(acc); ...
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { testPerm, assert, assertEquals } from "./test_util.ts"; type FileInfo = Deno.FileInfo; function assertSameContent(files: FileInfo[]): void { let counter = 0; for (const file of files) { if (file.name === "subdir") { ass...
const generateRandomColorHex = () => { return `#${Math.floor(Math.random() * 16777215).toString(16)}`; }; export { generateRandomColorHex };
export { FormioGrid } from './grid.module';
import { Component } from '@angular/core'; import { Observable, of } from 'rxjs'; import { delay } from 'rxjs/operators'; @Component({ selector: 'd-form-demo-validate-template-form', templateUrl: './validate-template-form.component.html' }) export class ValidateTemplateFormComponent { planFormData = { planNa...
import { EntityName } from "../../coreTable/OwidTableConstants" import { MapTopology } from "./MapTopology" let _cache: Set<string> export const isOnTheMap = (entityName: EntityName): boolean => { // Cache the result if (!_cache) _cache = new Set( MapTopology.objects.world.geometries.map((r...
/** * @helium/ts-tsoa-api * Helium API with TSOA generator and openAPI sdk generator * * The version of the OpenAPI document: 0.0.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import loc...
import { PubSub } from '@google-cloud/pubsub' import GoogleCredentials from '../GoogleCredentials.json' class PubSubConfig { private static pubsub: PubSub private constructor () {} public static async getClient (): Promise<PubSub | undefined> { try { if (!this.pubsub) { this.pubsub = new PubS...
import React from "react"; import "./loader.css"; interface Props { message?: string; } const LoaderView: React.FC<Props> = props => { const message = props.message ? <div>{props.message}</div> : undefined; return ( <div className="loader-center"> {message} <div className="donut-loader" /> <...
/** * @file Sourcegraph api common utils * @author netcon */ import { ApolloClient, createHttpLink, InMemoryCache, } from '@apollo/client/core'; import { trimEnd, trimStart } from '@/helpers/util'; const sourcegraphLink = createHttpLink({ // Since the Sourcegraph refused the CORS check now, // use Vercel Serv...
/* * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { AddJobPageRoutingModule } from './add-job-routing.module'; import { AddJobPage } from './add-job.page'; import { HeaderCompone...
import React from 'react'; import {StyleSheet, Dimensions} from 'react-native'; import {WebView} from 'react-native-webview'; const styles = StyleSheet.create({ content: { width: Dimensions.get('window').width, height: Dimensions.get('window').height, }, }); export default function WebViewContent({url}: {...
import { eventHandlers } from "../../bot.ts"; import { cacheHandlers } from "../../cache.ts"; import { structures } from "../../structures/mod.ts"; import type { DiscordGatewayPayload } from "../../types/gateway/gateway_payload.ts"; import type { GuildMemberAdd } from "../../types/members/guild_member_add.ts"; import {...
/* * Copyright 2019 s4y.solutions * * 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 t...
export declare const ERROR_PREFIX = "HH"; export interface ErrorDescriptor { number: number; message: string; title: string; description: string; shouldBeReported: boolean; } export declare function getErrorCode(error: ErrorDescriptor): string; export declare const ERROR_RANGES: { [category in k...
import * as React from "react"; import * as _ from "lodash"; const BEMBlock = require("bem-cn") import { SearchBox, Hits, HitsStats, RefinementListFilter, Pagination, ResetFilters, MenuFilter, SelectedFilters, Toggle, HierarchicalMenuFilter, NumericRefinementListFilter, PageSizeSelector, Sort...
import { OgodElementScene } from "@ogod/element-core"; export interface Box2dElementDebug extends OgodElementScene { draw: boolean; physicsId: string; }
import React, { FC } from 'react'; import { SVGProps } from '../types'; /** * RedisJSON */ export const RedisJSON: FC<SVGProps> = ({ size, fill, ...rest }) => { return ( <a target="_blank" href="http://redisjson.io" title="RedisJSON is a Redis module that implements ECMA-404 The JSON Data Int...
import * as React from 'react'; import { ICardProps, ICardState, ICardStyles } from './Card.types'; import { CardFrame } from './CardFrame/CardFrame'; import { Layout } from './Layout/Layout'; import { getStyles } from './Card.styles'; import { classNamesFunction } from 'office-ui-fabric-react/lib/Utilities'; export c...
import React, { useEffect, useState } from "react"; import { Link, useHistory } from "react-router-dom"; // Redux e Auth import { useSelector, RootStateOrAny } from "react-redux"; // Types import { User } from "../../store/ducks/user/types"; // Message import { useSnackbar } from "notistack"; // Bootstrap import Ro...
export class InternalError extends Error{ constructor( public message: string = "Algo deu errado!", public status: number = 500, public description: string = "Algum erro ocorreu enquanto você tentava realizar essa ação. Por favor, tente novamente mais tarde." ){ super(message);...
import * as React from 'react'; import { unstable_useControlled as useControlled, unstable_useForkRef as useForkRef, } from '@mui/utils'; import { useButton } from '../ButtonUnstyled'; import { SelectOption, UseSelectButtonSlotProps, UseSelectListboxSlotProps, UseSelectMultiParameters, UseSelectMultiResul...
import {Entity, Column, PrimaryGeneratedColumn, OneToMany, ManyToOne} from 'typeorm'; import {BaseEntity} from "./baseEntity"; import {Comment} from "./comment"; import {Goods} from "./goods"; @Entity() export class GoodsType extends BaseEntity{ @Column({comment:'商品分组名称',length:32}) name: string; @OneTo...
/** * @File : index.tsx * @Author : AlchemyZJK (alchemyzjk@foxmail.com) * @Link : * @Date : 8/23/2019, 3:28:32 PM */ import * as React from 'react'; import TinyGameContainer from 'components/TinyGameContainer'; import MainScript from './MainScript'; const code = require('!raw-loader!./MainScript.tsx'); c...
/* * Copyright 2019 FZI Forschungszentrum Informatik * * 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 applicabl...
import {LeagueService} from './../../leagues/shared/league.service'; import {GoogleAuthService} from './../../auth/shared/google-auth.service'; import {environment} from './../../../environments/environment'; import {MatchService} from './../shared/match.service'; import {Observable} from 'rxjs/Observable'; import {Mat...
export type PrivilegeMap = { [resource: string]: string[], }; export type Privilege = { privilege: string, description: string };
import * as React from 'react' import {AutoSizer, Grid, WindowScroller, GridCellProps} from 'react-virtualized' import queryString from 'query-string' import {StyledIcon} from 'styled-icons/types' import Router from 'next/router' import * as JSSearch from 'js-search' import { boxiconsLogos, boxiconsRegular, box...
export interface User{ username:string; token:string; }
import { Amount } from '@mollie/api-client/dist/types/src/data/global'; import { isOrderOrPayment, convertMollieAmountToCTMoney } from '../../src/utils'; describe('isOrderOrPayment', () => { it("should return order when the resource id starts with 'ord_'", () => { const result = isOrderOrPayment('ord_td5h6f'); ...
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'; import { Exercise } from './exercice'; @Entity() export class Level { @PrimaryGeneratedColumn('uuid') id: string; @Column() name: string; @Column() description?: string; @Column({ nullable: true }) priorLevelId?: string; ...
/** * Quotes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit t...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useMemo} from 'react'; import {useIntl} from 'react-intl'; import {Duration} from 'luxon'; import {formatDuration} from '../formatted_duration'; import { BackstageSubheader, Backsta...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { TextcriticalComment, TextcriticsList } from '@awg-views/edition-view/models'; /** * The CriticsList component. * * It contains the list of textcritical comments * of the critical report of the edition view of the app * with ...
import { IdentInfo } from 'i18n-proto'; const __reset = "\x1b[0m"; const __fgRed = "\x1b[31m"; const ERROR_PREP = __fgRed + "[i18n extractor ERROR] " + __reset; export function panic(message: string, info: IdentInfo) { console.error(ERROR_PREP + message); console.error(ERROR_PREP + 'Location: ' + info.identFile +...
import { observable } from 'mobx' import Essay, { essayParam } from 'Model/essay' import * as api from 'Service/API/v1' import { ResultIF } from 'Utils/common.interface' import {ArticleData} from '@wisdom-node/server-nestjs/src/article/article.interface' class ContentStore { @observable essayList: Essay[] = [] ...
import * as assert from 'assert' import * as Redis from 'ioredis' import * as redis_utils from '../src/redis_utils' import { JSONSchemaUtil } from '../src/schema_util' import * as utils from '../src/utils' function sleep(s: number) { return new Promise(resolve => setTimeout(resolve, s * 1000)) } describe('Save U...
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Document } from 'mongoose'; import * as uniqueValidator from 'mongoose-unique-validator'; @Schema() export class User extends Document { @Prop({ required: true }) userId: string; @Prop({ required: true }) username: string; @Prop({ uni...
import { Router } from 'express' import { PaymentsController } from '../../../../controller/PaymentsController' const paymentsController = new PaymentsController() const paymentsRoutes = Router() paymentsRoutes.post('/', paymentsController.create) paymentsRoutes.get('/', paymentsController.findAll) export default p...
import React, { ReactElement } from 'react'; interface PaginationProps { numberPerPage: number; numberOfResults: number; currentPage: number; link: string; } const Pagination = ({ numberPerPage, numberOfResults, currentPage, link }: PaginationProps): ReactElement => { const getSummary = (): string...
import { Component, OnInit } from '@angular/core'; declare let jQuery: any; @Component({ selector: 'app-event-manage', templateUrl: './event-manage.component.html' }) export class EventManageComponent implements OnInit { constructor() { } ngOnInit() { jQuery('.event-manage').hide(); } public hide():...
import { basename } from 'path'; import { ExecValue, GitBase } from './git-base'; export class Git extends GitBase { public constructor(cwd?: string) { super(cwd); } public getTopLevel() { return this.git('rev-parse', '--show-toplevel'); } public isRepository() { try { this.getTopLevel();...
export type ApolloClientHelpersConfig = { /** * @name useTypeImports * @type boolean * @default false * @description Will use `import type {}` rather than `import {}` when importing only types. This gives * compatibility with TypeScript's "importsNotUsedAsValues": "error" option * * @example *...
/* * Copyright 2020 Fluence Labs Limited * * 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 a...
/** * 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 { StaticMemberProperty, staticMemberProperty, AnyNode, } from '@romejs/js-ast'; ...
import { Injectable } from '@angular/core' import { ConfigService } from './config.service' import { LocalStorage } from 'ngx-webstorage' import * as CryptoJS from 'crypto-js' @Injectable() export class CryptoService { @LocalStorage() pass: string atob (encodedPassword: string) { return decodeURIComponent(...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { ForgotPasswordComponent } from './forgot-password.component'; export const appRoutes: Routes = [ { path: '', component: ForgotPasswordComponent } ]; @NgModule({ imports: [RouterModule.forChild(app...
import { makeExecute } from './adapter' import { makeMiddleware, withMiddleware } from '@chainlink/ea-bootstrap' import { ResponseSchema } from './endpoint/crypto' import { CoinsResponse } from './endpoint/coins' import { AdapterContext } from '@chainlink/types' export const getCoin = ( data: ResponseSchema[], sym...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import Amplify from 'aws-amplify'; import awsExports from './aws-exports' Amplify.configure(awsExports); ReactDOM.render( <React.StrictMode> <App /> </Re...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import Territory from 'src/app/models/territory'; import { TerritoryService } from 'src/app/services/territory.service'; @Component({ selector: 'app-territory-admin-page', templateUrl: './territory-admin-page.component.ht...
import { expect, haveResource } from '@aws-cdk/assert'; import { Construct, Stack } from '@aws-cdk/core'; import { Test } from 'nodeunit'; import { FilterPattern, ILogGroup, ILogSubscriptionDestination, LogGroup, SubscriptionFilter } from '../lib'; export = { 'trivial instantiation'(test: Test) { // GIVEN co...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: ` <app-top-bar></app-top-bar> <router-outlet></router-outlet>`, }) export class AppComponent { public title = 'Angular'; }
import { GraphQLObjectType, GraphQLList, GraphQLString, GraphQLID } from "graphql"; import { getAllUserIds } from "../data/UserRepo"; import { getAllCommunityIds, getCommunityIdByCallsign } from "../data/CommunityRepo"; import { getAllPostIds } from "../data/PostRepo"; export default new GraphQLObjectType({ name: "Q...
import { Message } from "discord.js" import { infoEm } from "../embeds" export default function info(req: Message) { req.channel.send({ embeds: [infoEm] }) }