text
stringlengths
10
953k
import React, { useEffect, useMemo, useState } from 'react'; import { Button, Empty, message, Modal, Pagination, Tag, Typography } from 'antd'; import styled from 'styled-components'; import * as QueryString from 'query-string'; import { DeleteOutlined, PlusOutlined } from '@ant-design/icons'; import { useLocation } fr...
import { formatISO, startOfWeek } from 'date-fns' /** * Strip provided URL parameters and update window history */ export function stripURLParameters(url: string, parametersToRemove: string[] = []): void { const parsedUrl = new URL(url) for (const key of parametersToRemove) { if (parsedUrl.searchPara...
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptCommonModule } from "nativescript-angular/common"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { FavouritesRoutingModule } from "./favourites-routing.module"; import { FavouritesComponent } from "./compone...
import { Injectable } from '@angular/core'; import { DataService } from '../data.service'; import { Observable } from 'rxjs/Observable'; import { Resident } from '../org.decentralized.energy.network'; import { Cash } from '../org.decentralized.energy.network'; import { Coins } from '../org.decentralized.energy.networ...
import JoinRoom from './JoinRoom'; export default JoinRoom;
<TS language="es_UY" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Clic derecho para editar dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> <...
/* * Copyright (c) 2018-2021 aetheryx & Cynthia K. Rey * * 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 { Structure as _Structure_ } from "@aws-sdk/types"; export const CannotListParentOfRootException: _Structure_ = { type: "structure", required: [], members: { Message: { shape: { type: "string" } } }, exceptionType: "CannotListParentOfRootException" };
require('dotenv').config(); import { ApolloServer } from 'apollo-server-lambda'; import typeDefs from './typeDefs'; import resolvers from './resolvers'; import context from './context'; const server = new ApolloServer({ typeDefs, resolvers, context }); export default server.createHandler({ cors: { orig...
import { LocalDate, YearMonth } from "js-joda"; import * as React from "react"; import Day from "./Day"; interface IProps { month: YearMonth; today: LocalDate; week: LocalDate[]; } const Week: React.StatelessComponent<IProps> = ({ month, today, week }) => ( <tr> {week.map((day, i) => <Day key...
import type { BaseTexture } from '@pixi/core'; import { BLEND_MODES } from '@pixi/constants'; import { Buffer as Buffer_2 } from '@pixi/core'; import { Container } from '@pixi/display'; import type { DisplayObject } from '@pixi/display'; import { Geometry } from '@pixi/core'; import type { IDestroyOptions } from '@pixi...
import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { RouterModule } from '@angular/router'; import { SharedModule } from '../../shared/shared.module'; import { HeaderComponent } from './header.component'; import { ToolbarUserComponent } from './toolbar-user/toolba...
import { ReadonlyVec3, ReadonlyVec4 } from 'munum'; export const WIDTH = 64; export const HEIGHT = 64; export const ORIGIN: ReadonlyVec3 = [0, 0, 8]; export const MIN: ReadonlyVec3 = [-28, 0, -12]; export const MAX: ReadonlyVec3 = [Number.MAX_SAFE_INTEGER, 0, 28]; export const HIT_COLOR: ReadonlyVec3 = [0xa9 / 0xFF,...
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import { MessageType } from './MessageType'; export class Logger { public log(messageType: MessageType, message: string): void { switch (messageType) { c...
import { AppConfig, PluginRegistry } from '../../src/types'; import { consoleLogMiddleware, consoleLogParameterizedMiddleware } from './middlewares'; import { MyServiceRepositoryPlugin } from './repositories'; const middlewarePlugins = [ { makeMiddleware: consoleLogMiddleware }, { makeMiddleware: consoleLogPar...
import * as _ from 'lodash' import * as assert from 'assert' import * as common from '../common' import {Connection} from '../common' import {FormattedTransactionType} from '../transaction/types' import {Issue} from '../common/types/objects' import {RippleAlphaAPI} from '..' export type RecursiveData = { marker: st...
import { TreeItem, TreeItemCollapsibleState } from "vscode"; import EntryBase from "./entryBase"; import { AnchorEngine } from "../anchorEngine"; /** * Represents an active workspace scan */ export default class EntryLoading extends EntryBase { constructor(engine: AnchorEngine) { super(engine, "Searching...
import { CharacterTagFilter } from '.'; export namespace CharacterTagFilterUtils { export const createEmpty = (): CharacterTagFilter => { return { showNoTag: false, showTag1: false, showTag10: false, showTag2: false, showTag3: false, s...
/** * 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...
import { TestBed, inject } from '@angular/core/testing'; import { BackendService } from './backend.service'; describe('BackendService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [BackendService] }); }); it('should ...', inject([BackendService], (service: BackendServic...
export const options = { background: { color: { value: "#000", }, }, fpsLimit: 60, interactivity: { detectsOn: "canvas", events: { onClick: { enable: true, mode: "push", }, onHover: { enable: true, mode: "repulse", }, resize: tr...
/** * SGBotic blocks */ //% weight=100 color=#6960EC icon="\uf121" namespace SGBotic { }
import { CellCreator, AdvancedShapes } from "../../shapes"; import { editorUi } from "../mocks"; describe("ImagePaletteAdder", () => { const cellCreator = new CellCreator(); let handler; beforeAll(() => { handler = new AdvancedShapes(cellCreator); }); describe("instance", () => { describe("editorUi...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { merge } from "lodash"; import { ProtocolOpHandler } from "@fluidframework/protocol-base"; import { IClient } from "@fluidframework/protocol-definitions"; import { BroadcasterLambda, ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { InspectActionMessageCreator } from 'common/message-creators/inspect-action-message-creator'; import { ScopingActionMessageCreator } from 'common/message-creators/scoping-action-message-creator'; import { FeatureFlag...
export class RepoArray { id: number; name: string; size: number; language: any; description: string; stargazers_count: number; watchers_count: number; forks_count: number; fork: boolean; html_url: string; }
import { Map } from '../Map'; import { MapEvent } from '../Eventable'; export declare abstract class MapTool extends MapEvent { addTo(map: Map): this; getMap(): Map; enable(): this; disable(): this; isEnabled(): boolean; }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SmtCoin</source> <translation type="unfinished"/> </message> <message> <location line="...
export declare class RiotRateLimiterParameterError extends Error { constructor(error: any); }
import Component from '@glimmer/component'; import { action } from '@ember/object'; export interface ButtonArgs { //this needs to be an arg and not just passed in as an HTML element like `type="submit"` due to an open bug //@see https://github.com/emberjs/ember.js/issues/18232 buttonType?: 'button' | 'subm...
import { Test, TestingModule } from '@nestjs/testing'; import { DistribucionGeograficaService } from './distribucion-geografica.service'; describe('DistribucionGeograficaService', () => { let service: DistribucionGeograficaService; beforeEach(async () => { const module: TestingModule = await Test.createTestin...
import * as React from 'react'; import { Link } from './index'; import { Header2 } from '@pongoai/react-text'; import { makeStyles } from '@fluentui/react-make-styles'; const useStyles = makeStyles({ root: { display: 'inline-flex', flexDirection: 'column', gap: '5px', }, row: { display: 'inline-f...
/* eslint @typescript-eslint/no-unused-vars: [ "warn", { argsIgnorePattern: "^(res|req)$" } ] */ import * as lodash from "lodash" import { getConnection } from "typeorm" import * as bodyParser from "body-parser" import * as db from "db/db" import * as wpdb from "db/wpdb" import { UNCATEGORIZED_TAG_ID, BAKE_ON_CHANGE ...
// // Note: This example test is leveraging the Mocha test framework. // Please refer to their documentation on https://mochajs.org/ for help. // // The module 'assert' provides assertion methods from node import * as assert from "assert"; import * as fs from "fs"; import { validVariableName, parseFunction, pars...
import path from 'path'; interface IEnvPostfixObject { production: string, staging: string, development: string [key: string]: string; } const ENV_POSTFIX:IEnvPostfixObject = { production: 'prod', staging: 'stage', development: 'dev', dockerDebug: 'dockerDebug' }; const env = process.env.NODE_ENV && ...
import { igAnimation } from './animation'; import { igBackgroundMap } from './background-map'; import { igCollisionMap } from './collision-map'; import { igEntity, igEntityType, igEntityCollides } from './entity'; import { igEntityPool } from './entity-pool'; import { ig } from './impact'; import { erase } from './util...
import { Story } from '../../../lib/@types/storybook-emotion-10-fixes'; import { asChromaticStory, asPlayground } from '../../../lib/story-intents'; import { SvgGuardianLiveLogo, SvgGuardianLiveLogoProps, } from './SvgGuardianLiveLogo'; export default { title: 'Source/src-brand/SvgGuardianLiveLogo', component: Svg...
import { SearchCallLead as SearchCallLeadType, SearchMessageLead as SearchMessageLeadType, SearchWhatsappLead as SearchWhatsappLeadType, } from "../../types/models" const listing = { externalListingId: "1234567", referenceId: "123", image: "2019/09/17/11/13/13/1-aixam-mac-500-cabriolet-480-261485-7e5hF...
import * as Deck from './deck'; import * as Card from './card'; import * as SolitaireTypes from './solitaireTypes'; import * as Accordion from './games/accordion'; import * as AceOfHearts from './games/aceOfHearts'; import * as Actions from './action'; import * as GameBoard from './gameBoard'; import * as GameFactory f...
import path from 'path' import { Plugin } from '../plugin' import { ResolvedConfig } from '../config' import { CLIENT_ENTRY, ENV_ENTRY } from '../constants' import { normalizePath, isObject } from '../utils' // ids in transform are normalized to unix style const normalizedClientEntry = normalizePath(CLIENT_ENTRY) cons...
import { Box, Color } from 'ink' import React, { useState, useContext, useEffect } from 'react' import { InkTextInput } from './InkTextInput' import { TabIndexContext } from '../TabIndex' import { Key } from 'readline' import { ActionKey } from '../../helpers' import figures from 'figures' interface TextInputProps { ...
import React, {useEffect, useState} from 'react'; import {useDispatch, useSelector} from "react-redux"; import {RootState} from "typesafe-actions"; import { actions as ruleActions } from '../store/rule'; import {string} from "prop-types"; import {Avatar, List, Modal} from "antd"; import {Group} from "../store/group/typ...
import { IReadiumElectronWebview } from "./webview/state"; export declare function soundtrackHandleIpcMessage(eventChannel: string, eventArgs: any[], _eventCurrentTarget: IReadiumElectronWebview): boolean;
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.13.9 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do n...
import { IViewEntity, SceneMouseEvent } from '@turbox3d/event-manager'; import { BaseCommand } from './BaseCommand'; import { CommandEventType, ITool } from './type'; export abstract class BaseCommandBox { /** * 当前激活的 Command */ protected activeCommand?: BaseCommand; toggleCommand(command?: BaseCommand) {...
// angular import { NgModule } from '@angular/core'; // module import { ServerTransferState } from './src/server-transfer-state'; import { TransferHttp } from './src/transfer-http'; import { TransferState } from './src/transfer-state'; export * from './src/server-transfer-state'; export * from './src/transfer-state';...
/* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain Permission is ...
import * as apigw from "@aws-cdk/aws-apigateway"; import * as awsLambda from "@aws-cdk/aws-lambda-nodejs"; import * as cdk from "@aws-cdk/core"; import * as certManager from "@aws-cdk/aws-certificatemanager"; import * as customResources from "@aws-cdk/custom-resources"; import * as ec2 from "@aws-cdk/aws-ec2"; import *...
//Description: An error has occurred import { extensionRegex } from "../core/utils.js" import { ErrorAction } from "../core/enum.js" let script = await arg() let stackFile = await arg() let errorFile = await arg() let line = await arg() let col = await arg() let stack = await readFile(stackFile, "utf-8") stack = st...
import {parser} from "./parser"; import {scanner} from "./scanner"; export default scanner; export {parser}; // Backwards compatibility for commonjs module.exports = scanner; module.exports.parser = parser;
import { IModuleRuntime, IModuleStorage } from 'get-set-fetch-extension-commons'; import GsfProvider from '../../src/ts/storage/GsfProvider'; import ModuleRuntimeManager from '../../src/ts/plugins/ModuleRuntimeManager'; import IdbPlugin from '../../src/ts/storage/IdbPlugin'; import ModuleStorageManager from '../../src...
import {createWorkbookChartFromDiscriminatorValue} from './createWorkbookChartFromDiscriminatorValue'; import {createWorkbookNamedItemFromDiscriminatorValue} from './createWorkbookNamedItemFromDiscriminatorValue'; import {createWorkbookPivotTableFromDiscriminatorValue} from './createWorkbookPivotTableFromDiscriminatorV...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About UniversalDigitalCoin</source> <translation>Despre UniversalDigitalCoin</translation> </message> ...
import { all } from 'redux-saga/effects'; import apiSaga from './apiSaga'; import attachmentSaga from './attachmentSaga'; function* rootSaga() { yield all([apiSaga(), attachmentSaga()]); } export default rootSaga;
import { Document } from 'mongoose'; export interface User extends Document { username: string; f_name: string; l_name: string; readonly password: string; address: string[]; zipcode: string; created: Date; }
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ---------------------------------------------------------------...
export interface GanttScaleDateInfo { dayOfMonthLabel: string; dayOfWeekLabel: string; monthLabel: string; yearLabel: string; date: Date; monthStart?: boolean; weekend?: boolean; today?: boolean; highlight?: boolean; highlightStart?: boolean; milestone?: string; scaleStartVisable?: boolean; } e...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { ReactiveFormsModule } from "@angular/forms"; import { RouterModule } from '@angular/router'; import { RxFormsModule } from '@rx/forms'; import { RxViewModule } from '@rx/view'...
<TS language="gl" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Crear unha nova dirección</translation> </message> <message> <source>&amp;New</source> <translation>&amp;Novo</translation> </message> ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About c0fferCoin</source> <translation type="unfinished"/> </message> <message> <location ...
import React from "react"; import classNames from "classnames"; const styles = require("./CloseButton.css"); interface Props { positionClass: string; handleClick: () => void; } export default ({ positionClass, handleClick }: Props) => ( <div className={classNames(styles.root, positionClass)} onClick={handleCli...
namespace __proto { /** * Decoder implements protobuf message decode interface. * * Useful references: * * Protocol Buffer encoding: https://developers.google.com/protocol-buffers/docs/encoding * LEB128 encoding AKA varint 128 encoding: https://en.wikipedia.org/wiki/LEB128 * ZigZa...
import multer from 'multer'; import path from 'path'; import crypto from 'crypto'; export default { storage: multer.diskStorage({ destination: path.resolve(__dirname, '..', '..', 'uploads'), filename(res, file, callback) { const hash = crypto.randomBytes(6).toString('hex'); const fileName = `${h...
import 'styled-components'; import theme from './theme'; declare module 'styled-components' { type ThemeType = typeof theme export interface DefaultTheme extends ThemeType { } }
import React from "react" const Footer: React.FC = () => { return <div>Footer 2020</div> } export default Footer;
import * as React from 'react'; import { withMap } from './context'; import { Map } from 'mapbox-gl'; interface ImageOptionsType { pixelRatio?: number; sdf?: boolean; } type ImageDataType = | HTMLImageElement | ArrayBufferView | { width: number; height: number; data: Uint8Array | Uint8ClampedArray } | Ima...
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { BrowserModule } from "@angular/platform-browser"; import { NgModule } from "@angular/core"; import { CommonModule } from "@angular/common"; import { FormsModule } from "@angular/forms"; import { RouterModule } from "@angular/router...
import { GeneQuery } from "dicty-graphql-schema" import mockLinksPiaA from "./mockLinksPiaA" import mockAssociatedPiaA from "./mockAssociatedPiaA" import mockGeneralInfoPiaA from "./mockGeneralInfoPiaA" import mockProductInfoPiaA from "./mockProductInfoPIaA" import mockOntologyPiaA from "./mockOntologyPiaA" import mock...
import { Injectable } from '@nestjs/common'; import { Repository } from 'typeorm'; import { NotificacionesEntity } from './notificaciones.entity'; import { InjectRepository } from '@nestjs/typeorm'; @Injectable() export class NotificacionesService { constructor( @InjectRepository(NotificacionesEntity) pri...
import currentBranch from 'current-git-branch'; import execa from 'execa'; import commitCount from 'git-commit-count'; import path from 'path'; import isAbsolute from 'is-absolute'; export interface Options { remote?: string; branch?: string; } const gitNeedsPull = (cwd = process.cwd(), { remote, branch }: Option...
/* * 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. */ export { ModelPlotSwitch } from './model_plot_switch';
import { Moment } from 'moment'; import { BehaviorSubject } from 'rxjs'; import { Component, ComponentFactoryResolver, Input, OnInit, ViewChild, ViewContainerRef, Output, EventEmitter } from '@angular/core'; import { DiagnosticData, Rendering, RenderingType } from '../../models/detector'; import { CardSelectionCompon...
// /src/device/restart_alt/materialiconsround/24px.svg import { createSvgIcon } from './createSvgIcon'; export const SvgRestartAltRound = createSvgIcon( `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"> <g> <path d="M0,0h24v24H0V0z" fill=...
import { Controller, Post, HttpStatus, HttpCode, Get, Body, Param } from '@nestjs/common'; import { AuthService } from './auth.service'; import { Login } from './interfaces/login.interface'; import { User } from '../users/interfaces/user.interface'; import { ResponseSuccess, ResponseError } from '../common/dto/response...
export = discoverRelPaymentUrl; declare function discoverRelPaymentUrl( url: URL | string, options?: discoverRelPaymentUrl.Options ): Promise<discoverRelPaymentUrl.Results>; declare namespace discoverRelPaymentUrl { export interface PaymentUrl { url: URL; title: string; } export interface Results {...
import tw, { css, styled } from 'twin.macro' export const Card = styled('div')( ({ hasBoxShadow }: { hasBoxShadow?: boolean }) => [ css` ${tw`rounded-sm bg-white`} box-shadow: ${hasBoxShadow ? '0px 1px 3px rgba(26, 30, 34, 0.08)' : 'none'}; `, ] ) export const CardContent = tw....
import * as Express from 'express'; import * as Http from 'http'; import * as SocketIO from 'socket.io'; import * as Crypto from 'crypto'; import * as Fs from 'fs'; const app = Express(); const staticDir = Express.static; const server = Http.createServer(app); const io = SocketIO(server); const opts = { host: proc...
/** * This file auto-generated with the `scripts/bootstrap-icons.js` script. */ import { Icon } from '../components/svg-icon'; // https://github.com/twbs/icons/blob/main/icons/quote.svg export const quote: Icon = { name: 'quote', width: 16, height: 16, viewBox: '0 0 16 16', children: ( <path d="M12 12a...
export class Trie { public map: Record<string, Trie>; public isWord: boolean; public indexes: number[]; constructor() { this.map = {}; this.isWord = false; this.indexes = []; } public insert(word: string): void { this.add(word, 0, this); } public insertSuffix(word: string, idx: number...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { InscricaoFormComponent } from './inscricao-form.component'; describe('InscricaoFormComponent', () => { let component: InscricaoFormComponent; let fixture: ComponentFixture<InscricaoFormComponent>; beforeEach(waitForAsync(...
import * as React from 'react'; import { GetProps } from '_helpers'; import SvgIcon from '@material-ui/core/SvgIcon'; // tslint:disable:max-line-length function NewEvent(props: GetProps<typeof SvgIcon>) { return ( <SvgIcon {...props} viewBox="0 0 16 16"> <path fillRule="evenodd" clipRule="evenodd" d="M12....
import { expect } from 'chai'; import {getTokenInfo} from "../src/hw-app-eth/erc20Utils" describe('function getTokenInfo ', () => { it('should return {\n' + ' ticker: \'USDT\',\n' + ' contractAddress: \'0xdAC17F958D2ee523a2206206994597C13D831ec7\',\n' + ' decimals: 6\n' + ' }', () =...
import * as PIXI from 'pixi.js'; import {DungeonMap} from "./DungeonMap"; import {RNG} from "../rng"; import {Resources} from "../resources"; import {SceneController} from "../scene"; export interface GenerateOptions { readonly level: number; readonly hero: string; } export interface DungeonGenerator { readonly...
describe("MapsCreatr", () => { it("_", () => { /* ... */ }); });
import { Flex, Text } from '@theme-ui/components' import BigNumber from 'bignumber.js' import { VaultChangesInformationArrow, VaultChangesInformationContainer, VaultChangesInformationItem, } from 'components/vault/VaultChangesInformation' import { getCollRatioColor } from 'components/vault/VaultDetails' import { ...
// // Copyright (c) 2021-present Ganbaro Digital Ltd // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Re-distributions of source code must retain the above copyright // notice,...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-biography', templateUrl: './biography.component.html', styleUrls: ['./biography.component.css'] }) export class BiographyComponent implements OnInit { constructor() { } ngOnInit() { } }
export * from '@styled-icons/material/FlightLand'
import React, { FC, useEffect, useState } from "react" import { sortBy } from "lodash" import { Checkbox, CheckboxProps, Flex, useThemeConfig } from "@artsy/palette" import { useArtworkFilterContext } from "../ArtworkFilterContext" import { FollowedArtistList, fetchFollowedArtists, } from "../Utils/fetchFollowedArt...
import { Component } from '@angular/core'; @Component({ templateUrl: 'root-page.html' }) export class RootPage { isReadonly: boolean = true; toggleReadonly() { this.isReadonly = !this.isReadonly; } }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ShadowX</source> <translation type="unfinished"/> </message> <message> <location line="...
import { buildFunction, watchFunction } from "@webiny/project-utils"; export default { commands: { build(options, context) { return buildFunction( { ...options, webpack(config) { // @ts-ignore ...
/* * Copyright (c) 2018-2020 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc. - initial API a...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
import {Transition} from '@headlessui/react' import {getNote} from 'app/client/notes-cache' import {Note} from 'app/interfaces/note' import React, {useEffect, useState} from 'react' import {NoteMarkdown} from './note-markdown' import {PortalBody} from './portal-body' import truncate from 'lodash/truncate' import {usePo...
<TS language="fr" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Cliquer à droite pour modifier l'adresse ou l'étiquette</translation> </message> <message> <source>Create a new address</source> ...
export function convertDurationToTimeString(duration: number) { const hours = Math.floor(duration / 3600); const minutes = Math.floor((duration % 3600) / 60); const seconds = duration % 60; const timeString = [hours, minutes, seconds] .map(unit => String(unit).padStart(2, '0')) .join(':...
import {Type} from "./type"; /** * The abstract operation IsPropertyKey determines if argument, * which must be an ECMAScript language value, is a value that may be used as a property key. */ export function IsPropertyKey<T extends PropertyKey>(argument: T | unknown): argument is T { // If Type(argument) is String...
import {Component, ComponentFactoryResolver, ComponentRef, Type, ViewChild, ViewContainerRef} from "@angular/core"; import {SuccessAlertComponent} from "../success/success-alert.component"; import {AlertComponent} from "../alert-component"; import {ErrorAlertComponent} from "../error/error-alert.component"; @Component...
#!/usr/bin/env node /** * Module dependencies. */ var app = require('./app'); var debug = require('debug')('server-side:server'); var http = require('http'); /** * Get port from environment and store in Express. */ var port = normalizePort(process.env.PORT || '3000'); app.set('port', port); /** * Create HTTP ...