text
stringlengths
10
953k
interface Vector2D { x: number y: number } function calculateLength(v: Vector2D) { return Math.sqrt(v.x * v.x + v.y * v.y) } interface NamedVector { name: string x: number y: number } const v: NamedVector = { x: 3, y: 4, name: 'Zee' } calculateLength(v) // OK, result is 5 export default {}
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ConfirmacionAsistenciaComponent } from './confirmacion-asistencia.component'; describe('ConfirmacionAsistenciaComponent', () => { let component: ConfirmacionAsistenciaComponent; let fixture: ComponentFixture<ConfirmacionAsistenciaC...
import * as React from 'react' import { ReactWrapper } from 'enzyme' import { mountWithProvider as mount } from 'test/utils' import { isConformant, implementsShorthandProp, implementsWrapperProp, } from 'test/specs/commonTests' import Input from 'src/components/Input/Input' import Icon from 'src/components/Icon...
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ConfigModule, ConfigService } from 'nestjs-config'; import { TodoModule } from './module/todo/todo.module'; import { PersonModu...
import '../../../polyfills/es5-target-shim'; import {ESLMedia} from '../core/esl-media'; import {MediaGroupRestrictionManager} from '../core/esl-media-manager'; describe('ESLMedia: MediaGroupRestrictionManager tests', () => { ESLMedia.register(); test('registerPlay / unregister', () => { const instance = new ...
import axios, { AxiosResponse } from 'axios'; import { AppData } from '../../../config/app-data'; import { refreshToken } from '../login'; import { headersGet } from './headers-get'; import { headersPost } from './headers-post'; export const request = async <ResponseType>(type: RequestType, url: string, data = {}): P...
import { keyframes } from "@emotion/react"; /** * @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_entrances/fadeInUpBig.css} */ const fadeInUpBig = keyframes` from { opacity: 0; transform: translate3d(0, 2000px, 0); } to { opacity: 1; transform: translate3d(0, ...
import { List, Record } from 'immutable'; import { HistoryItem as HistoryItemInput } from '../types'; type HistoryItemObject = { url: null | string; bundleUrl: null | string; manifestUrl: null | string; manifest: null | { [key: string]: any }; time: null | number; }; type HistoryItemType = Record<HistoryIt...
import { formatFloat } from './format-float' export function mapSpeedOptionToAudioFilter(speed: number): string { const split = splitSpeed(speed) return split .map(function (value) { return `atempo=${formatFloat(value)}` }) .join(',') } function splitSpeed(speed: number): Array<number> { const...
import { Blob, XMLHttpRequest, FormData, File, fetch, Response, Headers } from '@ephox/dom-globals'; import { FutureResult, Result, Option, Obj, Type, Strings, Global } from '@ephox/katamari'; import * as ResponseError from './ResponseError'; import * as ResponseSuccess from './ResponseSuccess'; import * as HttpTypes f...
/** @hidden */ export declare class ReplayPath { /** Parse a serialized replayPath */ static parse(replayPathStr: string): boolean[]; /** Stringify a replayPath */ static stringify(replayPath: boolean[]): string; /** Number to Base64 value */ private static intToB64; /** Base64 value to numb...
import { COLORS, COLORS_LIST } from "@project/tailwind/colors"; import React from "react"; import { Button } from "./button.component"; export default { title: "Components/Button", component: Button, argTypes: { bgColor: { control: { type: "select", options: COLORS_LIST } }, ...
import * as path from 'path' import { pageWith } from 'page-with' import { SetupWorkerApi, rest, graphql } from 'msw' declare namespace window { export const msw: { worker: SetupWorkerApi rest: typeof rest graphql: typeof graphql } } function createRuntime() { return pageWith({ example: path.res...
import { SideBar } from './components/SideBar'; import { Content } from './components/Content'; import { MainProvider } from './services/hooks/useMain'; import './styles/global.scss'; import './styles/sidebar.scss'; import './styles/content.scss'; export function App() { return ( <MainProvider> <div s...
import __SInterface from '@coffeekraken/s-interface'; import __theme from '../../utils/theme'; import __minifyVar from '../../utils/minifyVar'; class postcssSugarPluginSpaceFunctionInterface extends __SInterface { static definition = { space: { type: 'String', values: Object.keys(__theme().config('sp...
import { PermissionCheckerService } from '@abp/auth/permission-checker.service'; import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router'; import { AppSessionService } from '@shared/common/session/app-session.service'; @Injectable() ...
import 'google-closure-library/closure/goog/i18n/datetimesymbols'; import alias = goog.i18n.DateTimeSymbols_ur; export default alias;
/// <reference types="react" /> import { RenderFunction } from '../../types'; export declare const withNotCenteredStory: (story: RenderFunction) => JSX.Element; export declare const withCenteredStory: (story: RenderFunction) => JSX.Element; export declare const withHorizontallyCenteredStory: (story: RenderFunction) => ...
import React, { FC } from "react"; import { Col, Container, Row } from "react-bootstrap"; import { Banner } from "../components/Banner"; import { Menu } from "../components/Menu"; import { Sidebar } from "../components/Sidebar"; export interface HomeProps { profileName: string; } export const Home: FC<HomeProps> ...
/** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import * as React from "react" import { ReactNodeArray } from "prop-types" import { useStaticQuery, graphql } from "gatsby" import Header from "./header" import "./lay...
import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-auth', templateUrl: './auth.component.html', styleUrls: ['./auth.component.scss'], }) export class AuthComponent implements OnInit { constructor() { } ngOnInit() { } }
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-r41', templateUrl: './r41.component.html', styleUrls: ['./r41.component.css'] }) export class R41Component implements OnInit { constructor() { } ngOnInit(): void { } }
import chalk from "chalk"; import { validatePassphrase } from "@core/lib/crypto/utils"; import { dispatch } from "./core"; import { Client, Model } from "@core/types"; import { logAndExitIfActionFailed } from "./args"; import { exit } from "./process"; import { getPrompt } from "./console_io"; export const OPTIONAL_PA...
import { Component, Input, Output, EventEmitter, HostBinding, HostListener } from "@angular/core"; import { TableModel } from "../table-model.class"; import { I18n, Overridable } from "@rocketsoftware/carbon-components-angular/i18n"; import { TableItem } from "../table-item.class"; import { Observable } from "rxj...
import APIResource from './APIResource'; import APIResourceBillingPeriod from './APIResourceBillingPeriod'; import APIResourceJob from './APIResourceJob'; import APIResourceDeviceGroup from './APIResourceDeviceGroup'; import APIResourceProject from './APIResourceProject'; import APIResourceFile from './APIResourceFile'...
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { AfterContentChecked, ChangeDetectorRef, Directive, ElementRef, Input, NgZone, OnChanges, OnDestroy, OnInit, Optio...
namespace Shine { /** 玩家邮件(generated by shine) */ export class PlayerMailData extends MailData { /** 数据类型ID */ public static dataID:number=BaseDataType.PlayerMail; /** 角色数据 */ public roleData:RoleShowData; constructor() { super(); this._dataID=BaseDataType.PlayerMail; } /** 获取数据类名 */ ...
import * as React from "react"; import { StyleSheet, Text, View, Dimensions } from "react-native"; /* Dimensions: me retorna o tamanho da tela, algura e largura */ import MapView, { PROVIDER_GOOGLE, Marker, Callout } from "react-native-maps"; /* PROVIDER_GOOGLE: Mapa da google, pra que todos dispositivos usem Ma...
/** * Extract string inbetween another. */ export function between( haystack: string, left: string | RegExp, right: string ): string { let pos; if (left instanceof RegExp) { const match = haystack.match(left); if (!match) { return ""; } pos = match.index! + match[0].length; } else { ...
/* * Copyright (C) 2019-2021 HERE Europe B.V. * * 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...
import Hidden from './Hidden'; export default Hidden; export * from './Hidden'; export { default as Hidden } from './Hidden'; export * from './HiddenContainer'; export { default as HiddenContainer } from './HiddenContainer'; export * from './HiddenHide'; export { default as HiddenHide } from './HiddenHide'; export * ...
/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tec...
import React from 'react' import styled from 'styled-components' import {IUser} from "../../App"; interface IProps { user: IUser maxLikes: number } const UserName = styled.strong` color: white; ` const LoggedUserCard = ({user, maxLikes}: IProps) => { return ( <div className="media"> ...
<TS language="pt_PT" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Clique com o botão direito para editar o endereço ou etiqueta</translation> </message> <message> <source>Create a new address</s...
import React, {Component} from 'react'; import {View, Image} from 'react-native'; interface Props { navigation: any; route: any; } interface State {} class CameraDisplayScreen extends Component<Props, State> { render() { const data = 'data:image/jpeg;base64,' + this.props.route.params.base64data; retu...
<?xml version="1.0" encoding="UTF-8"?> <tileset version="1.2" tiledversion="1.2.0" name="tileset16-outdoors" tilewidth="16" tileheight="16" tilecount="80" columns="8"> <image source="rpg/tileset16-outdoors.png" width="128" height="160"/> </tileset>
import * as ng from "angular2/core"; declare function foo(...args: any[]); @foo export class MyClass1 { constructor(private _elementRef: ng.ElementRef){} }
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TabelaInclinadoComponent } from './tabela-inclinado.component'; describe('TabelaInclinadoComponent', () => { let component: TabelaInclinadoComponent; let fixture: ComponentFixture<TabelaInclinadoComponent>; beforeEach(async(() =...
/** * Datart * * Copyright 2021 * * 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 RdfResourceImpl, { Constructor, namespace, RdfResource } from '@tpluscode/rdfine'; import * as $rdf from '@rdf-esm/data-model'; import type * as RDF from 'rdf-js'; import { rdf } from './lib/namespace'; import type { Initializer, ResourceNode } from '@tpluscode/rdfine/RdfResource'; import type { Mixin } from '@t...
import { Router } from "express" import { SettingsController } from "./controllers/SettingsControllers"; const routes = Router(); const settingsController = new SettingsController() routes.post("/settings", settingsController.create) export {routes}
import { BadRequestException } from '@nestjs/common'; export class FilterValidationError extends BadRequestException {}
import { HttpErrors } from '@loopback/rest'; import { APIResponseError } from '../utils'; export class BaseController { constructor() { } throwNotFoundIfNull(object: any, message?: string) { if (object == null) { throw new HttpErrors.NotFound(message); } } throwBadRequestIfNull(object: any, mes...
export class ElementCoreContext { public alpha: number = 1; public px: number = 0; public py: number = 0; public ta: number = 1; public tb: number = 0; public tc: number = 0; public td: number = 1; isIdentity() { return ( this.alpha === 1 && this.px === 0...
/* * Copyright (c) 2019, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { CliCommandExecutor, Command, CommandOutput, SfdxCommandBuilder } from '...
import { createStore, createReactHook } from '@alinnert/tstate' import { api } from '../services/apiService' import { AxiosError } from 'axios' // #region store export interface User { username: string } export interface AuthStore { currentUser: User | null loading: boolean error: boolean } const initialStat...
export interface ISetLogpointResponse { error?: { // tslint:disable-next-line:no-reserved-keywords "type": string, message: string }; data: { "logpoint": { "logpointId": string, "requestedLocation": { "scriptId": string, ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { PluginAComponent } from './plugin-a.component'; import { FormsModule } from '@angular/forms'; import { AppModule } from '@core/app/app.module'; @NgModule({ imports: [ CommonModule, FormsModule, ...
import { findAll } from 'highlight-words-core'; const textToHighlight = 'This is some text to highlight.'; const searchWords = ['This', 'i']; findAll({ searchWords, textToHighlight, }); findAll({ autoEscape: true, caseSensitive: true, searchWords, textToHighlight, });
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { HeroListComponent } from './hero-list/hero-list.component'; import { HeroDetailComponent } from './hero-detail/hero-detail.component'; const routes: Routes = [ { path: 'heroes', redirectTo: '/superheroes' }, ...
/** * @namespace proto * @typedef {import("@hashgraph/proto").ITransaction} proto.ITransaction * @typedef {import("@hashgraph/proto").ISignedTransaction} proto.ISignedTransaction * @typedef {import("@hashgraph/proto").TransactionBody} proto.TransactionBody * @typedef {import("@hashgraph/proto").ITransactionBody} p...
import { Module } from '@nestjs/common'; @Module({}) export class DomainModule { }
import { ChangeDetectionStrategy, Component, Injector, Input, OnChanges, OnDestroy, ViewChild, } from "@angular/core"; import { ListView, autobind } from "@batch-flask/core"; import { ListBaseComponent } from "@batch-flask/ui"; import { SubtaskInformation } from "app/models"; import { SubtaskListParams, TaskService...
/** * @description mocks_v3:mockSagemakerEdge module is mocks for AWS-SDK V3 * * This mock module has generated from mock_generator. * Generator Version: {v0.1.0} * Author: hugtechio */ function attachMock(moduleName:string, method:string, name:string, promise:Promise<any>, once:boolean=true, mock?:jest.SpyInstance)...
import { Button, Typography } from '@material-ui/core'; import React from 'react'; import { useSelector } from 'react-redux'; import { useQuery } from '@apollo/client'; import { UserData, CurrentUserDetails, CurrentUserDedtailsVars, } from '../../../../../models/user'; import { RootState } from '../../../../../re...
/** * Copyright 2018 OpenCensus 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 applicable law or ...
import { useMemo, useCallback, useEffect } from 'react'; import { useAddonState } from '@storybook/api'; import addons from '@storybook/addons'; import { Events, ADDON_ID } from './constants'; type Theme = { id: string; name: string }; export const useTheme = () => { const [themes, setThemes] = useAddonState<Theme...
import path from 'path' import { Http } from 'farrow-http' import { vite } from 'farrow-vite' import { services } from './api' // create http server const http = Http() // attach service for api http.use(services) // attach vite or assets for page if (process.env.NODE_ENV === 'development') { // enable vite-dev-s...
import {Injectable} from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {catchError, map, Observable, of} from "rxjs"; import {ProductRequestModel} from "../../model/product-request.model"; import {CategoryModel} from "../../model/category.model"; import {ConditionListModel} from "../../model/...
/** * 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. * * @format * @flow strict-local */ import {FlipperPlugin, bufferToBlob, FlexColumn} from 'flipper'; import { BookmarksSidebar, ...
/*! * * Wijmo Library 5.20212.808 * http://wijmo.com/ * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the GrapeCity Commercial License. * sales@wijmo.com * wijmo.com/products/wijmo-5/license/ * */ declare module wijmo.chart.webgl { class _EarCut ...
/* * Copyright 2020-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
export interface School { institution: string url: string gpa: number location: string degree: string startYear: number endYear: number description: string[] } export const UniversityOfWashington: School = { institution: 'University of Washington Seattle', url: 'https://www.washington.edu/', gpa: 3.87, loc...
/** * TestHelpers.ts * * Set of utilities to assist with testing. Shim around some of the utilities we hook up in `testHelpers.js` */ /** * runAllTimers executes all pending clocks - including intervals, timeouts, and requestAnimationFrames */ export const runAllTimers = (): void => { global["clock"].runAll(...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Neutrino</source> <translation>Acerca de Neutrino</translation> ...
/*********************************************************** * Copyright (C) 2022 * Worktez * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License * * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without ...
import { Model } from '@/app/shared/models/model'; export class ExampleModel extends Model { public Name?: string; }
import { PropType } from '@storybook/components'; import { createSummaryValue, isTooLongForTypeSummary } from '../../../lib'; import { ExtractedProp, DocgenPropType } from '../../../lib/docgen'; import { generateFuncSignature, generateShortFuncSignature, toMultilineSignature, } from './generateFuncSignature'; imp...
import { ServiceException } from "./ServiceException"; import { InvalidInputException } from "./InvalidInputException"; import { NotFoundException } from "./NotFoundException"; import { OperationFailureException } from "./OperationFailureException"; import { AccessDeniedException } from "./AccessDeniedException"; impor...
import { INestApplication } from '@nestjs/common'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; export function setupSwagger(app: INestApplication) { const options = new DocumentBuilder() .setTitle('Chat') .setDescription('API description') .setVersion('1.0') .addBearerAuth() ...
import { Component } from "react"; import { withRouter } from "react-router-dom"; import { ApiClient } from 'admin-bro' import { Box, Button, Header } from '@admin-bro/design-system'; const api = new ApiClient() class Dashboard extends Component{ handleReloadGoogleSheets=()=>{ api.getDashboard({params:{type: "...
/** * This barrel file provides the export for the lazy loaded AboutComponent. */ export * from './aboutusboardmembers.component';
import { IModel, ModelResult, IExtractor, IParser, FormatUtility } from "@microsoft/recognizers-text"; import { UnitValue, UnitValueIso } from "./parsers"; export enum CompositeEntityType { Age, Currency, Dimension, Temperature } export abstract class AbstractNumberWithUnitModel implements IModel { ...
export * from "./item-list-layout"
// /src/device/4g_plus_mobiledata/materialiconsoutlined/24px.svg import { createSvgIcon } from './createSvgIcon'; export const Svg4GPlusMobiledataOutlined = 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,...
import styled from '@emotion/styled'; const SVG = styled.svg` position: absolute; `; const SpecialGradients = () => { return ( <SVG> <defs> <linearGradient id="specialColor" x1="0" y1="0" x2="14" y2="14" gradientUnits="userSpaceOnUse" ...
import Joi from '@hapi/joi'; import config from '../config/project.config' const resizeSchema = Joi.object({ width: Joi.number() .min(config.MIN_IMAGE_SIZE) .max(config.MAX_IMAGE_SIZE) .optional(), height: Joi.number() .min(config.MIN_IMAGE_SIZE) .max(config.MAX_IMAGE_SI...
import { Field, InputType } from "type-graphql"; @InputType() export class RegisterInput { @Field() username: string; @Field() email: string; @Field() password: string; @Field(() => String, { nullable: true }) role: string; }
import { CoinAddress } from '../ICoinProtocol' export class BitcoinAddress implements CoinAddress { // TODO: types constructor( protected readonly value: string, public readonly visibilityDerivationIndex?: number, public readonly addressDerivationIndex?: number ) {} public static from(node: any, v...
import React from 'react'; import { transparentize } from 'polished'; import { useUsingKeyboardContext } from '@leafygreen-ui/leafygreen-provider'; import { prefersReducedMotion } from '@leafygreen-ui/a11y'; import { createDataProp, HTMLElementProps } from '@leafygreen-ui/lib'; import { css, cx } from '@leafygreen-ui/e...
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'menu-icon', templateUrl: './menu-icon.component.html', styleUrls: ['./menu-icon.component.scss'] }) export class MenuIconComponent implements OnInit { @Input() active: boolean = false; @Output() onStateCh...
import { createTypeDefiner, TypedData, TypeDef } from './utils/dataUtils'; const defineCommand = createTypeDefiner('command'); export type CommandCreator<T = any> = TypeDef<T, 'command'>; export type Command<T = any> = TypedData<T, 'command'>; export const Attack = defineCommand<{ angle: number }>('attack'); export c...
import { ConfigModule, ConfigService } from "@nestjs/config"; import { TypeOrmModuleAsyncOptions, TypeOrmModuleOptions } from "@nestjs/typeorm"; import { User } from '../user/user.entity'; export default class TypeOrmConfig { static getOrmConfig(configService: ConfigService): TypeOrmModuleOptions { retur...
import { Live2DCubismFramework as live2dcubismframework, Option, LogLevel, } from '../cubism-sdk/Framework/dist/live2dcubismframework' export { Live2DModel } from './live2d_model' export { loadCubismModel } from './cubism_loader' export type { ArrayBufferMap } from './cubism_loader' export const initCubis...
/* eslint-disable @typescript-eslint/quotes */ /* eslint-disable class-methods-use-this */ /* eslint-disable filenames/match-regex */ import { MigrationInterface, QueryRunner } from "typeorm"; export class AddVerifiedColumnToContactTable1619785636211 implements MigrationInterface { public name = "AddVerifiedColumnT...
import React, { useCallback } from "react"; import { useResource } from "rest-hooks"; import { ConnectionTable } from "components/EntityTable"; import { Routes } from "pages/routes"; import useRouter from "hooks/useRouter"; import { Connection } from "core/resources/Connection"; import useSyncActions from "components/...
// Loaded from https://denopkg.com/chiefbiiko/sha1@v1.0.3/mod.ts import { encode, decode } from "./deps.ts"; function rotl(x: number, n: number): number { return (x << n) | (x >>> (32 - n)); } /** Byte length of a SHA1 digest. */ export const BYTES: number = 20; /** A class representation of the SHA1 algorithm....
import type { LanguagePattern } from '../types'; export const Kotlin: LanguagePattern[] = [ { pattern: /fun main\((.*)?\) {/, type: 'keyword.function' }, { pattern: /(inline|private|public|protected|override|operator(\s+))?fun(\s+)([A-Za-z0-9_])(\s+)?\((.*)\)(\s+)({|=)/, type: 'keyword.function', }, { ...
export enum HitPolicy { UNIQUE = 'U', ANY = 'A', PRIORITY = 'P', FIRST = 'F', RULE_ORDER = 'R', OUTPUT_ORDER = 'O', COLLECT = 'C', COLLECT_SUM = 'C+', COLLECT_COUNT = 'C#', COLLECT_MIN = 'C<', COLLECT_MAX = 'C>' }
export default function convertHourToMinutes(time: string) { const [hour, minutes] = time.split(':').map(Number); const timeInMinutes = (hour*60)+minutes; return timeInMinutes; }
export * from './version1'; export { BlobsClientFactory } from './build/BlobsClientFactory';
import { FunctionComponent, ReactNode } from "react"; interface Props { name: string; children: ReactNode; className?: string; } const Section: FunctionComponent<Props> = ({ name, children, className }) => { return ( <div className={className}> <h3 className="dark:text-shadow-md pb-4 text-orange-500...
// Copyright (c) 2018 Steven Enten. All rights reserved. Licensed under the MIT license. jest.mock('../../lib/webpack', () => ({ version: NaN })); afterAll(() => { jest.unmock('../../lib/webpack'); }); describe('udk/lib/index', () => { it('should return udk/lib/webpack', () => { const udk = require('../../li...
/** @jsxRuntime classic */ /** @jsx jsx */ import React from 'react' import { jsx } from '@emotion/react' import { DEPRECATEDControlProps, DEPRECATEDGenericControlOptions } from './control' import { IcnProps, UtopiaTheme, Tooltip, Icn } from '../../../uuiui' export interface DEPRECATEDOptionControlOptions extends DEPR...
import { all, call, put, select, take, takeEvery } from "redux-saga/effects"; import * as Sentry from "@sentry/react"; import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, ReduxActionWithMeta, ReduxFormActionTypes, } from "constants/ReduxActionConstants"; import { getFormData } from "selectors/formS...
import React from "react"; import { Container, Content, HeaderWrapper, Header, DropboxLogo, } from "./styles"; interface Props { variant: "blue" | "beige" | "white" | "black"; title: string; description: string; } const Section: React.FC<Props> = ({ title, variant, description }) => { const buttonV...
export const Shuffle = `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="currentColor" class="bi bi-shuffle" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M0 3.5A.5.5 0 0 1 .5 3H1c2.202 0 3.827 1.24 4.874 2.418.49.552.865 1.102 1.126 1.532.26-.43.636-.98 1.126-1.532C9.173 4.24 10.798 3 13 ...
/* * Copyright (C) 1998-2020 by Northwoods Software Corporation. All Rights Reserved. */ /* * This is an extension and not part of the main GoJS library. * Note that the API for this class may change with any version, even point releases. * If you intend to use an extension in production, you should copy the code to...
<TS language="uk" 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</sou...
/** * @file Volume Colormaker * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3 } from 'three' import { lerp } from '../math/math-utils' import { ColormakerRegistry } from '../globals' import Colormaker, { VolumeColormakerParams, ColormakerScale, manageColor } from './colormake...