text
stringlengths
10
953k
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { NgxBindIOModule } from 'ngx-bind-io'; import { EntityGridModule } from '../../../components/entity-grid/entity-grid.module'; import { WebModalsModule } from '../../../modules/modals/modals.module'; import { PermissionModa...
import { CSSProperties, useCallback, useContext } from "react"; import { ProductContext } from "./ProductCard"; import styles from '../styles/styles.module.css' import React from "react"; export interface Props { className?: string; style?: CSSProperties; } export const ProductButtons = ({ className, style ...
/** Copyright 2020 Google 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { LicenseExpirationAlert } from './license_expiration_alert'; import { ...
/* * typeEvaluator.ts * Copyright (c) Microsoft Corporation. * Licensed under the MIT license. * Author: Eric Traut * * Module that evaluates types of parse tree nodes within * a program. * * Note: This is a gargantuan module - much larger than I would * normally create. It is written this way primarily for p...
import { SourceType } from 'coffee-lex'; import { ForOf } from 'decaffeinate-parser/dist/nodes'; import NodePatcher from '../../../patchers/NodePatcher'; import { CLEAN_UP_FOR_OWN_LOOPS } from '../../../suggestions'; import notNull from '../../../utils/notNull'; import ForPatcher from './ForPatcher'; export default cl...
const Footer = () => { return ( <footer className="footer mt-auto py-3 bg-dark"> <div className="container"> <p className="text-light">App desenvolvido por <a href="https://www.linkedin.com/in/tiago-gomes187/" target="_blank" rel="noreferrer">Tiago Gomes</a></p> <...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IotRoutingModule } from './iot-routing.module'; import { IotComponent } from './iot.component'; @NgModule({ declarations: [ IotComponent, ], imports: [ CommonModule, IotRoutingModule, ], }) export cl...
// Copyright 2017-2022 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import AddressToggle from '../AddressToggle'; interface Props { address: string; filter: string; isHidden?: boolean; onSelect: (address: string) => void;...
import { Component, Host, h, Element, State } from '@stencil/core'; @Component({ tag: 'umc-tabs', styleUrl: 'tabs.scss', shadow: true }) export class Tabs { @Element() el: HTMLElement; @State() tabs: HTMLUmcTabElement[] = []; componentWillLoad() { this.tabs = Array.from(this.el.querySelectorAll('um...
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { class msdyn_msdyn_journal_msdyn_expenseApi { /** * DynamicsCrm.DevKit msdyn_msdyn_journal_msdyn_expenseApi * @param entity The entity object */ constructor(entity?: any); /** * Get the value of alias * @param alias the alias ...
/* * @Author: DM * @Date: 2022-01-14 13:28:25 * @LastEditors: DM * @LastEditTime: 2022-01-14 13:40:57 * @Descriptions: * @FilePath: /components/test/add.test.ts */ import { expect, test } from 'vitest'; import { add } from '../src/lib/add'; test('add()', () => { expect(add(3, 2)).toBe(5); });
import { forwardRef } from 'react' import { CSSObject } from 'styled-components' import { createStyledComponent, getThemeCSSObject, themeTernaryOperator as tto, Theme, getColorForComponent } from '../styles' import { Alert, AlertProps } from '../alert' import { Collapsible, CollapsibleProps } from...
import { CreateSubscriptionPushNotifyDto } from './notification.dto'; import { SubPushNotifyEntity } from './subPushNotify.entity'; import { NoticationsEntity } from './notification.entity'; import { InjectRepository } from '@nestjs/typeorm'; import { Injectable } from '@nestjs/common'; import * as webpush from 'web-pu...
/** * Makes the value safe for use in a class name. */ export default function getSafeValue(value: string): string;
export * from './sns'; export * from './types';
import * as React from "react" export default (size: number) => ( <svg viewBox="0 0 1024 1024" width={size} height={size}> </svg> )
import { Injectable } from '@angular/core'; import { HttpClient } from "@angular/common/http" import { Observable } from 'rxjs'; import { Router } from '@angular/router'; import { City, RootResponse } from '../../_interfaces/DBresponse.model'; @Injectable({ providedIn: 'root', }) export class CityService { resp...
import { Component, OnInit } from '@angular/core' import { Hero } from '../../class/hero/hero.class' import { HeroService } from '../../services/hero/hero.service'; @Component({ moduleId:module.id, selector: 'dashboard', templateUrl: './dashboard.component.html', styleUrls: ['./dashboard.component.css']...
/** * The color type. */ export type Color = string | number[];
/** * This file is part of OpenTSDB. * Copyright (C) 2021 Yahoo. * * 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 require...
import { useState, useEffect } from 'react'; import { InferGetStaticPropsType, NextPage } from 'next'; import { CircularProgress, Card, CardContent, } from '@material-ui/core'; import IngressInfo, { LinkInfo } from '../../drivers/ingress-info' type Props = InferGetStaticPropsType<typeof getStaticProps>; expor...
/* This is a mst-gql generated file, don't modify it manually */ /* eslint-disable */ /* tslint:disable */ import { IObservableArray } from "mobx" import { types } from "mobx-state-tree" import { MSTGQLRef, QueryBuilder, withTypedRefs } from "mst-gql" import { ModelBase } from "./ModelBase" import { PokemonAttackModel...
import { IConfig } from './src/types' const c: IConfig = { // [Mondatory], Please replace following Github url with your own Github address which you forked in. // [必填], 请填写您的仓库地址 gitRepoUrl: 'https://github.com/cycycxtIT/cynav', // Deployment branch name // 部署分支 branch: 'main', // Whether the route is...
import { addViteOptimizeDepsInclude, addViteSsrNoExternal, addViteOptimizeDepsExclude, } from "@mr-hope/vuepress-shared"; import { path } from "@vuepress/utils"; import { useSassPalettePlugin } from "vuepress-plugin-sass-palette"; import type { Plugin, PluginConfig } from "@vuepress/core"; import type { LightGal...
import React from 'react'; import { Container, Row, Col } from 'react-bootstrap'; import { GoodsInCartProvider } from 'contexts/GoodsInCart'; import GoodsOffer from 'components/GoodsOffer/GoodsOffer'; import Cart from 'components/Cart/Cart'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faS...
import { Injectable } from '@nestjs/common'; import { UserService } from '../user/user.service' import { JwtService } from '@nestjs/jwt'; @Injectable() export class AuthService { constructor( private readonly userService: UserService, private readonly jwtService: JwtService ) {} async validateUser(use...
import React, { useState, FormEvent, ChangeEvent } from "react"; import { Map, Marker, TileLayer } from 'react-leaflet'; import { FiPlus } from "react-icons/fi"; import '../../styles/pages/create-orphanage.css'; import Sidebar from "../../components/Sidebar"; import mapIcon from "../../util/mapIcon"; import { Leafle...
/** * 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...
import type { SanityAssetIdParts, SanityFileAssetIdParts, SanityImageAssetIdParts, SanityAssetUrlParts, SanityFileUrlParts, SanityImageUrlParts } from './types'; /** * Parses a Sanity asset document ID into individual parts (type, id, extension, width/height etc) * * @param documentId - Document ID to parse into nam...
import { mount } from '../util/enzyme-i18n' import {expect, use} from 'chai' import * as chaiEnzyme from 'chai-enzyme' use(chaiEnzyme()) import {observable} from 'mobx' import * as React from 'react' import {FormField} from './StandardFormFields' describe('StandardFormFields', () => { it('updates the model\'s field...
import test from 'ava'; import { createMagicAdminSDK } from '../../../lib/factories'; import { VALID_DIDT } from '../../../lib/constants'; import { createExpectedBearerStringError, MagicAdminSDKError } from '../../../../src/core/sdk-exceptions'; test('#01: Successfully parses raw DIDT from `Bearer` authorization heade...
import { Global, Module } from '@nestjs/common'; import CoreService from './coreService/coreService'; import LocalStorageEngine from './storageService/localStorageEngine'; import MongoDBStorageEngine from './storageService/mongoDBStorageEngine'; import PsqlStorageEngine from './storageService/psqlStorageServiceEngine/p...
import { Requester, Validator, CacheKey } from '@chainlink/ea-bootstrap' import { ExecuteWithConfig, Config, InputParameters, AdapterRequest, AxiosResponse, AdapterBatchResponse, } from '@chainlink/types' import { NAME as AdapterName } from '../config' export const supportedEndpoints = ['forex', 'price'] e...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
export enum ReadyState { CONNECTING = 0, OPEN = 1, CLOSING = 2, CLOSED = 3, } export interface IClientAdapter { readyState: ReadyState; close: Function; send: Function; onopen: any; onclose: any; onerror: any; onmessage: any; } export interface IClientAdaterConstructor { new (url: string, prot...
import { action, computed, makeObservable, observable, runInAction } from "mobx"; import { PersistingStrategy } from "@/core/models/PersistingStrategy"; import { Repository } from "@/core/models/Repository"; import { RepositoryValue } from "@/core/models/RepositoryValue"; import { PayloadHandler } from "@/core/network...
import { UpdateUserDto } from 'src/users/dto/update-user.dto'; export class UpdateAccountDto extends UpdateUserDto {}
function doUkryjWrogieStrzaly () { for (let value of wrogieStrzaly) { value.set(LedSpriteProperty.Brightness, 0) } } function doUkryjMojeStrzaly () { for (let value of mojeStrzaly) { value.set(LedSpriteProperty.Brightness, 0) } } function doUkryjMojeStatki () { for (let value of mo...
// The root URL for Analytics API requests. export const ANALYTICS_API_URL = 'https://analytics.proxy.mycryptoapi.com/'; // export const ANALYTICS_API_URL = 'https://analytics.proxy.valorbit.com/'; // The ID of the analytics. export const ANALYTICS_ID_SITE = 7; export const ANALYTICS_ID_DESKTOP = 12; // Parameter req...
import { QueryBuilder as KnexQueryBuilder, Raw, RawBinding, Transaction, Value, ValueDict } from 'knex'; import { AnyEntity, Dictionary, EntityData, EntityProperty, GroupOperator, LockMode, MetadataStorage, PopulateOptions, QBFilterQuery, QueryFlag, QueryOrderMap } from '@mikro-orm/core'; import { QueryType } from './e...
/** * Copyright 2020 Vercel Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
<TS language="bg" 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> <transl...
import { Type } from './Type'; import { DateType } from './DateType'; import { TimeType } from './TimeType'; import { DateTimeType } from './DateTimeType'; import { BigIntType } from './BigIntType'; import { BlobType } from './BlobType'; import { ArrayType } from './ArrayType'; import { EnumArrayType } from './EnumArra...
import React, { useCallback } from 'react'; import { IoIosArchive, IoIosRedo, } from 'react-icons/io'; import Actions from '#components/Actions'; import QuickActionConfirmButton from '#components/QuickActionConfirmButton'; type eventValues = { id: string, ignoreQa: boolean, } export interface IgnoreA...
import { LoggerService } from '@nestjs/common' export class CustomLogger implements LoggerService { log(message: string) { console.log(message) } error(message: string, trace: string) { console.log(message) } warn(message: string) { console.log(message) } debug(message: string) { conso...
export class Pais { id: string; nome: string; capital : string; codigo : string; codigo_a2_iso : string; codigo_a3_iso : string; nome_iso : string; icon : string; estado : number; local : string; }
import { GraphQLSchema, GraphQLField, GraphQLFieldConfig, FieldNode, SelectionNode, FragmentDefinitionNode } from 'graphql'; import { Request } from '../Interfaces'; import { Transform } from './transforms'; export declare type ObjectFieldTransformer = (typeName: string, fieldName: string, field: GraphQLField<any, any>...
/** * MIT License * * Copyright (c) 2022 Brion Mario * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mod...
import { Injectable } from '@angular/core' import { HttpClient } from '@angular/common/http' import { environment } from 'src/environments/environment' import { BuildingType } from '../models/building-type' @Injectable() export class BuildingTypeService { private apiUrl = `${environment.apiServer}buildingtypes/` ...
import { Random } from "systems/random/Random"; import { IHeightNoiseProvider } from "../interfaces/IHeightNoiseProvider"; import { ITreeNoiseProvider } from "../interfaces/ITreeNoiseProvider"; import { Simplex } from "../procedural/Simplex"; export class TreeNoiseProvider implements ITreeNoiseProvider { private ...
import * as React from "React" import Card from "./card" export default () => ( <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> <Card className="bg-gray-300 h-64" /> <Card className="bg-gray-300 h-64" /> <Card className="bg-gray-300 h-64" /> <Card className="bg-gray-300 h-64" ...
import { container } from 'tsyringe'; import ILogInCredentialsDTO from '@modules/ixc/login/dtos/ILogInCredentialsDTO'; import ILogInIXCPage from '@modules/ixc/login/pages/ILogInIXCPage'; import AuthenticateUserService from '@modules/ixc/login/services/AuthenticateUserService'; import NavigateToLogInPageService from '@...
export const CHART_SIZE = { width: 100, height: 100, };
export type AssemblyInfo = { species: string; name: string; description: string };
import { mockAltoXml } from "./__mocks__/mockAltoXml"; import { searchTextInLines } from "./searchTextInLines"; describe("search text in Lines", () => { it("should find search text in text lines", () => { //GIVEN const searchText = "foo bar"; const expectedTextLineId = "line_1"; const altoXml = mockA...
import { Chain, Logger, Pipeline, Assertions, ApproxStructure, RawAssertions, Step } from '@ephox/agar'; import { Element, Html, SelectorFind, Node } from '@ephox/sugar'; import { UnitTest } from '@ephox/bedrock'; import { read, write, create, isImage, isFigure, defaultData, getStyleValue } from 'tinymce/plugins/image/...
// istanbul ignore file import assert from 'assert'; import Command from 'common-bin'; import fs from 'fs'; import path from 'path'; import { loadConfig } from '../utils'; import getProvider from '../utils/getProvider'; class CheckCommand extends Command { private options: object; constructor(rawArgv) { su...
export { default as CPrompts } from './CPrompts.vue' export { default as CPromptModal } from './CPromptModal.vue' export { default as CPromptToast } from './CPromptToast.vue' export { prompts as promptDefinitions } from './definitions'
export class CreateAdminDto{ username: string; password: string; email?: string; firstName?: string; lastName?: string; displayName?: string; salt?: string; phone: string; image?: string; roles?: string[]; isAdmin?: boolean; }
import { GraphQLResolveInfo } from "graphql"; import GraphContext from "coral-server/graph/context"; import { hasFeatureFlag } from "coral-server/models/tenant"; import * as user from "coral-server/models/user"; import { roleIsStaff } from "coral-server/models/user/helpers"; import { GQLFEATURE_FLAG, GQLUser, G...
import auth0, {WebAuth} from "auth0-js"; export default class Auth { constructor(history:History) { this.history = history; this.userProfile = null; this.auth0 = new WebAuth({ domain: process.env.REACT_APP_AUTH0_DOMAIN, clientID: process.env....
import Upload from './upload' export default Upload
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import copyImg from "../assets/images/copy.svg"; import "../styles/room-code.scss"; type RoomCodeProps = { code: string; } export function RoomCode(props: RoomCodeProps) { function copyRoomCodeToClipboard() { navigator.clipboard.writeText(-Md8sorwG9TgeLJV7XWw); } return ( <button cla...
import Output from './output'; describe('Output', () => { describe('setArtifactsPath', () => { it('does not throw', async () => { await expect(Output.setArtifactsPath('')).resolves.not.toThrow(); }); }); describe('setCoveragePath', () => { it('does not throw', async () => { await expect(O...
<?xml version="1.0" encoding="UTF-8"?> <tileset name="basic_tiles" tilewidth="20" tileheight="20" tilecount="120"> <image source="basic_grass.png" trans="008a76" width="160" height="300"/> <terraintypes> <terrain name="" tile="-1"/> </terraintypes> <tile id="0"> <properties> <property name="areBulletsRestric...
export abstract class CISRPrompt { public answers: any; private prompt: any[]; readonly name: string; /** *Creates an instance of CISRPrompt. * @param {string} name Name to display for your category. Should be unique in the list. * @param {any[]} prompt Array of Enquirer.js prompts * @memberof CISR...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router, RouterModule } from '@angular/router'; import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms'; import { AuthenticationService } from '../../../services'; import { ValidationService } from '../../../components/c...
/** * Copyright 2020 Google 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 agreed to...
export const DATES_SECTION_TITLE = '1. Dates' export const QR_CODE_SECTION_TITLE = '2. Your QR code' export const QR_CODE_SECTION_TEXT = 'This code should be used as identifier, so keep it safe.' export const CTA_TEXT = 'Download code' export const NOTE_SECTION_TITLE = 'Leave note' export const NOTE_SECTION_TEXT = ...
import { NetworkManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkManagerClient"; import { CreateGlobalNetworkRequest, CreateGlobalNetworkResponse } from "../models/index"; import { deserializeAws_restJson1_1CreateGlobalNetworkCommand, serializeAws_restJson1_1CreateGloba...
import React from 'react'; import { Trans } from '@lingui/macro'; import { Flex, Indicator, StateColor, TooltipIcon } from '@mint/core'; import { Box } from '@material-ui/core'; import PlotStatusEnum from '../../../constants/PlotStatus'; import type PlotQueueItem from '../../../types/PlotQueueItem'; type Props = { q...
import * as Handlebars from 'handlebars'; import { Reflection } from 'typedoc'; import { TestApp } from '../test-app'; describe(`Breadcrumbs:`, () => { let testApp: TestApp; let moduleReflection: Reflection; let classReflection: Reflection; beforeAll(() => { testApp = new TestApp(['breadcrumbs.ts']); }...
import { ParsedUrlQuery } from 'querystring'; import { QueryParam, toCsv, toMaybeNumber, toString, toMaybeString, toNumber, } from '../../utils/routes'; const params: ParsedUrlQuery = { // &string=string string: 'string', // &stringArray=string&stringArray=strong stringArray: ['string', 'strong'], ...
import { Position, Toaster } from "@blueprintjs/core"; let GLOBAL_TOASTER = null; export const getToaster = () => { if (GLOBAL_TOASTER === null) { GLOBAL_TOASTER = Toaster.create({ className: "recipe-toaster", position: Position.TOP, }); } return GLOBAL_TOASTER; };
import {expect} from "chai"; import {BodyParamsFilter} from "../../../../src/filters/components/BodyParamsFilter"; import {FilterService} from "../../../../src/filters/services/FilterService"; import {inject} from "../../../../src/testing/inject"; describe("BodyParamsFilter", () => { before(inject([FilterService...
import * as ColorHash from 'color-hash' import { App, Flush, Action, OperatorsByPath } from './types' export const runMutation = (state) => (mutation) => { const pathArray = mutation.path.split('.') const key = pathArray.pop() const target = pathArray.reduce((current, pathKey) => current[pathKey], state) swit...
import { CanActivate, Component } from "../../../libs/component-decorators"; @Component({ route: "/gallery/list", templateUrl: "wwwroot/components/gallery/gallery-list.html", selector: "gallery-list", providers: ["$location","galleryActionCreator"] }) @CanActivate([ "galleryActionCreator", "invoke...
import Base from './base'; import EnumFactory from './_enum'; const factory = (propertyType: PropType$Custom) => { if (propertyType.raw != null && propertyType.raw.indexOf('PropTypes.oneOf') > -1) { const match = /PropTypes\.oneOf\(\[((.|\n)*)\]\)/gm.exec(propertyType.raw); if (match != null) { ...
type MetamaskRequest = <M extends MetamaskMethods>( arg: MetamaskRequestTypeMapper<M, 'arg'>, ) => Promise<MetamaskRequestTypeMapper<M, 'return'>> type MetamaskRequestType<M extends MetamaskMethods, P, R> = { method: M arg: MetamaskRequestArg<M, P> return: R } type MetamaskRequestArg<M, P> = P extends void ...
import { GetServerSideProps } from "next"; import Head from "next/head"; import Link from "next/link"; import prisma, { whereAndSelect } from "@lib/prisma"; import Avatar from "@components/Avatar"; import Theme from "@components/Theme"; import { ClockIcon, InformationCircleIcon, UserIcon } from "@heroicons/react/solid"...
// smithy-typescript generated code import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint"; import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __Htt...
/* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { GeoJson, ITiler } from "@here/harp-datasource-protocol"; import { TileKey } from "@here/harp-geoutils"; // tslint:disable-next-line:no-var-requires const geojson...
import { CategoryNewEach24 } from "../../"; export = CategoryNewEach24;
/** * @license * Copyright 2020 Google LLC. 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 a...
class GenericComponent<P> extends React.Component<P>{ inetrnalProp: P; } type Props = { a: number; b: string; }; // 确实很好用 const x = <GenericComponent<Props> a={10} b="hi"/>;
import {ListPartition, ListPartitionDefinition, SyntaxKind} from "../../../parser-node"; import {TokenKind} from "../../../scanner"; import {CustomSyntaxKind, makeCustomRule} from "../../factory"; import {optional, zeroOrMore} from "../../../nearley-wrapper"; import {getTextRange, toNodeArray} from "../../parse-util"; ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About LIBRA</source> <translation type="unfinished"/> </message> <message> <location line="+3...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-series', templateUrl: './series.page.html', styleUrls: ['./series.page.scss'], }) export class SeriesPage implements OnInit { constructor() { } ngOnInit() { } }
export const data = { connections: [ { sourceId: "0", targetId: "1", }, { sourceId: "1", targetId: "2", }, { sourceId: "2", targetId: "3", }, { sourceId: "2", targetId: "3.5", targetPort: 2, }, { sourceId: "3", targe...
import favoriteStocksReducer, { addItemToQuotes, removeItemFromQuotes } from './FavoriteStocksSlice'; import { IFavoriteStocks } from '../../app/types'; describe('FavoriteStocks reducer', () => { const initialState: IFavoriteStocks = { quotes: [], isLoading: false, error: null, }; c...
import { combineReducers } from 'redux' import { IChannels, channels } from './channelsReducer' import { ISettings, settings } from './settingsReducer' import { IFaders, faders } from './fadersReducer' export interface IStore { settings: Array<ISettings> channels: Array<IChannels> faders: Array<IFaders> } ...
import { articlesToFeed } from "./feed"; import { articles } from "./consumer"; import express from "express"; const app = express(); const port = 3000; app.get("/rss.xml", (req, res) => { res.contentType("application/rss+xml"); res.send(articlesToFeed(articles)); }); app.listen(port, () => console.log(`Example...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<TS language="bg_BG" 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</so...
import { redis, deleteOrg, // deployRequestExchange, getDeployRequest, // cdsExchange, // cdsPublish, putDeployRequest, putPoolRequest, // getKeys, // getPooledOrg, // putPooledOrg, // getPoolRequest, getPoolDeployRequestQueueSize, getPoolDeployCountByRepo, pu...
export function fromBase64ToObj<T>(str: string): T { return JSON.parse(Buffer.from(str, 'base64').toString('utf-8')); }
import { flags as oclifFlags } from '@oclif/command' import { CustomCommand, workspaceReset, ColorifyConstants } from 'vtex' export default class WorkspaceReset extends CustomCommand { static description = `Cleans all configurations of a ${ColorifyConstants.ID( 'workspace' )} and recreates it with the configu...
interface sypderData { id: string, device: string, ets: number, benchmark: string, time: number, ts: number, ua: string, } interface patchData extends sypderData { s: string } interface BagList { code: number message: string ttl: number data: BagListData } interface BagListData { list: BagLi...