text
stringlengths
10
953k
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "remix"; import globalStylesUrl from "~/styles/global.css"; export function links() { return [{ rel: "stylesheet", href: globalStylesUrl }]; } export default function App() { return ( <html lang="en"> <head> ...
import { Component, OnInit } from '@angular/core'; import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout'; import { Observable } from 'rxjs'; import { map, shareReplay } from 'rxjs/operators'; import { NgbCarousel, NgbSlideEvent, NgbSlideEventSource, NgbCarouselConfig, } from '@ng-bootstrap/ng-bo...
import { IDictionary } from '@toolkip/object-helpers'; /** * Keep track of a style definition with SCSS nesting capabilities */ export interface IStandardStyles { [selector: string]: TypedClassDefinition; } /** * track a flattened version of styles */ export interface IFlatStyles { [selector: string]: Fla...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
/** Utility function to create a K:V from a list of strings */ export function strEnum<T extends string>(o: T[]): { [K in T]: K } { return o.reduce((res, key) => { res[key] = key; return res; }, Object.create(null)); } /** * Sample create a string enum */ /** Create a K:V */ const Direction = strEnum(['...
/// <reference types="q" /> /// <reference types="selenium-webdriver" /> import * as q from 'q'; import { Config } from '../config'; import { DriverProvider } from './driverProvider'; export declare class Direct extends DriverProvider { constructor(config: Config); /** * Configure and launch (if applicable...
/** * Driver specific query clause generators */ export interface DriverQueryGenerators { /** * Generates the LIMIT ... OFFSET ... expression */ limitOffsetExpression?(limit?: number, offset?: number): string | null; /** * Generates the FOR UPDATE and similar expressions */ lockEx...
import type { Action, AnyAction, Dispatch, ExtendState, Listener, PreloadedState, Reducer, Store, Unsubscribe, } from "./main.types"; import { isPlainObject, kindOf } from "./utils"; export function createStore<S, A extends Action = AnyAction, StateExt = never>( reducer: Reducer<S, A>, preloadedState?: Prel...
import { PDFDocument } from 'pdfjs-dist/lib/core/document'; // import { Jbig2Stream } from 'pdfjs-dist/lib/core/jbig2_stream'; // import { JpegStream } from 'pdfjs-dist/lib/core/jpeg_stream'; // import { Lexer, Parser } from 'pdfjs-dist/lib/core/parser'; import { PDFManager, LocalPdfManager } from 'pdfjs-dist/lib/core/...
import { sanitizedBranchName } from '../../src/lib/sanitize-branch' describe('sanitizedBranchName', () => { it('leaves a good branch name alone', () => { const branchName = 'this-is/fine' const result = sanitizedBranchName(branchName) expect(result).toBe('this-is/fine') }) it('replaces invalid chara...
import { OrganizationRequest, Project, UpdateMembersRequest } from '@compito/api-interfaces'; export namespace OrgsAction { export class Add { static readonly type = '[Orgs] Add org'; constructor(public payload: OrganizationRequest) {} } export class AddProject { static readonly type = '[Orgs] Add pr...
export type TypeTimeout = ReturnType<typeof setTimeout>; export type TypeInterval = ReturnType<typeof setInterval>; export interface TypePlainObject { [key: string]: unknown; } export declare type TypeSimpleValue = null | undefined | string | number | boolean; export interface TypeSimpleObject { [key: string]: ...
import * as React from 'react' import { styled } from '../../Theme' import { Box } from '../../Components/Box' import { Flex } from '../../Components/Flex' import { Avatar } from '../../Components/Avatar' import { AuthorProps } from '../../Components/AuthorBlock/AuthorBlock' import { formatDistanceStrict } from 'date-...
import { Request, Response, response } from 'express'; import knex from '@app/database/connection'; class PointController { async index(req: Request, res: Response) { const { city, uf, items } = req.query; const parsedItems = String(items) .split(',') .map((item) => Number(ite...
import { User } from '@aws-cdk/aws-iam'; import { App, RemovalPolicy, Stack, StackProps } from '@aws-cdk/core'; import { Construct } from 'constructs'; import * as opensearch from '../lib'; class TestStack extends Stack { constructor(scope: Construct, id: string, props?: StackProps) { super(scope, id, props); ...
// Copyright 2018 The Oppia Authors. 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 ap...
// https://github.com/denoland/deno/blob/7fc5bfe51b7d405aaa5293ec6f1a8f1e9119aea2/cli/dts/lib.esnext.array.d.ts declare global { interface Array<T> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate ...
export var Location = "location"; export var ResourceGroupName = "resource-group-name"; export var ImageBuilderTemplateName = "image-builder-template-name"; export var BuildTimeoutInMinutes = "build-timeout-in-minutes"; export var VMSize = "vm-size"; export var ManagedIdentity = "managed-identity"; export var SourceIm...
import { abi, networks } from "../../../../../build/contracts/MailTransfer.json"; export const LIST_ABI = abi; export const networks_API = networks;
import { idb } from "../db"; import type { UpdateEvents, Options, RealPlayerPhotos, RealTeamInfo, } from "../../common/types"; export const getOptions = async () => { const options = (((await idb.meta.get("attributes", "options")) || {}) as unknown) as Options; const realPlayerPhotos = (await idb.meta.get( ...
/* tslint:disable:max-line-length */ import * as React from 'react'; export default () => { return ( <svg width="5.8" height="9" viewBox="0 0 5.8 9" xmlns="http://www.w3.org/2000/svg"> <title>Help</title> <path d="M5.132 1.117C4.562.707 3.846.5 2.985.5c-.656 0-1.21.145-1.66.434C.614 1.387....
import * as React from 'react'; import { loggy } from 'services/loggy'; import Movies from 'services/movies'; import Reviews from 'services/reviews'; import { Header } from 'components/header'; import { List } from 'components/list'; import { Select } from 'components/select'; import styles from 'index.module.scss';...
import { Story } from '@storybook/react'; import { Button } from '../Button'; import Badge from './Badge'; import { BadgeProps } from './types'; export default { title: 'Components/Badge', component: Badge, }; const Template: Story<BadgeProps> = (args) => ( <Badge {...args}> <Button variant="contained" co...
import { appendDash } from '../../../../helpers/appendDash' export class URLDecodingError extends Error {} export class ErrorURLSerializerVersionInvalid extends URLDecodingError { public urlVer?: string | null public constructor(urlVer?: string | null, urlEncoderVersions?: string[]) { super(`when serializing...
// Copyright 2015-2021 Swim 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 to ...
import { connect } from 'react-redux'; import { RootState } from 'redux/interfaces'; import { getConsumerGroupsOrderBy, getConsumerGroupsSortOrder, getConsumerGroupsTotalPages, sortBy, selectAll, getAreConsumerGroupsPagedFulfilled, } from 'redux/reducers/consumerGroups/consumerGroupsSlice'; import List from...
import { _BranchInfo } from "./_BranchInfo"; import { Structure as _Structure_ } from "@aws-sdk/types"; export const DeleteBranchOutput: _Structure_ = { type: "structure", required: [], members: { deletedBranch: { shape: _BranchInfo } } };
import { FeatureCode, FeatureMetadata } from 'interfaces/Feature'; export enum GetFeature { REQUEST = 'amundsen/feature/GET_FEATURE_REQUEST', SUCCESS = 'amundsen/feature/GET_FEATURE_SUCCESS', FAILURE = 'amundsen/feature/GET_FEATURE_FAILURE', } export interface GetFeatureRequest { type: GetFeature.REQUEST; p...
import { Component, ElementRef, forwardRef, Input, OnInit } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; /** * Input component. Represents component based on simple input. * * @example <oc-input [(NgModel)]="data" * [modelName]="'Name'" * [autoFocus]="true" * [a...
import React from "react"; import { shallow } from "enzyme"; import Search from "./Search"; describe("<Search />", () => { it("<Search /> renders", () => { const handleSubmit = () => {}; const pokemons = []; shallow(<Search handleSubmit={handleSubmit} pokemons={pokemons} />); }); });
import { css, FlattenSimpleInterpolation } from 'styled-components'; import tailwindConfig from '../tailwind.config'; /** * This file is here to ensure UI consistency * You **MUST** sync with your designer at the start of the project to check * what colors/typos/grid unit you are going to use, and stick to it. */ ...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as LitHtml from '../../third_party/lit-html/lit-html.js'; import * as LinkifierUtils from './LinkifierUtils.js'; export interface LinkifierData ...
import React from 'react'; import Base from './shared/Base'; import { HeaderSections, FEEDBACK_FORM_URL } from './shared/PlaynetConstants'; import './styles/Feedback.scss'; function Feedback(): JSX.Element { return ( <Base section={HeaderSections.FEEDBACK}> <div id={'feedback-container'}> <h2>Feed...
/** @jsxRuntime classic */ /** @jsx jsx */ import { jsx, useTheme } from '@keystone-ui/core'; import { Link, LinkProps } from '../router'; /** * This is the component you should use when linking a Cell to an item (i.e when the Cell supports * the linkTo prop) */ export const CellLink = (props: LinkProps) => { ...
/* * Copyright IBM Corp. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ "use strict"; import { INewAsset } from "./types/asset"; import { Gateway, Wallets } from "fabric-network"; import FabricCAServices from "fabric-ca-client"; import { buildCAClient, enrollAdmin, registerAndEnrollUser, } ...
import { InjectClassName, styled } from '@medly-components/utils'; export const Suffix = styled(InjectClassName)<{ size?: 'S' | 'M' }>` pointer-events: none; margin-left: ${({ size }) => (size === 'S' ? '1.2rem' : '1.6rem')}; `;
/* * Copyright (c) A11yWatch, LLC. 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 React from 'react' import { ribbon, wrap } from '@app/stylesheets/ribbon.module.css' export function Ribbon({ title = 'BES...
import { getLogger, Logger } from 'debuggo'; import Docker from 'dockerode'; const docker = new Docker(); export interface Volume { hostDir: string; containerDir: string; } export interface TestDokiOptions { image?: string; tag?: string; containerName?: string; hostPort?: number; ports?: { host: num...
import { Organization, Priority, Progression, ProjectCategory, Role, Severity, Status } from '../../../src/api/models' import { User } from '../mock/external/users' export interface IParticipant { user: User role: Role organization?: Organization progression: Progression } export class Participant { ...
// Type definitions for MongoDB v3.0 // Project: https://github.com/mongodb/node-mongodb-native/tree/3.0.0 // Definitions by: Federico Caselli <https://github.com/CaselIT> // Alan Marcell <https://github.com/alanmarcell> // Gady Piazza <https://github.com/kikar> // Jason ...
import '../../../test/test_helper'; import querystring from 'querystring'; import fs from 'fs'; import {HttpClient} from '../http_client'; import {DataType, HeaderParams, RequestReturn} from '../../types'; import * as ShopifyErrors from '../../../error'; import {Context} from '../../../context'; import {assertHttpReq...
import { Component, VERSION } from "@angular/core"; import "./string.extensions"; import { Test } from "./test"; @Component({ selector: "my-app", templateUrl: "./app.component.html", styleUrls: ["./app.component.css"] }) export class AppComponent { title = `Angular ${VERSION.major} service using in extension m...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Provides an Neptune Cluster Resource. A Cluster Resourc...
/** * Copyright (c) Minimouli * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ interface Serializable<S> { serialize(): S } export default Serializable
import * as React from 'react'; import { useContext } from 'react'; import { cx } from '~utils'; import { INavItem } from './_ifaces/INavItem'; import { NavContext } from '../context/NavContext'; import styles from '../Nav.less'; const NavItem: React.FC<INavItem> = (props: INavItem) => { const { itemKey, childre...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// temporary override until we figure out how to solve the `getImage` type // error. https://github.com/gatsbyjs/gatsby/issues/35748 declare module "gatsby-plugin-image" declare module "*developer-docs-links.yaml" { import { TranslationKey } from "./src/utils/translations" export interface DeveloperDocsLink { ...
import CommandParser, { UnknownCommandError, } from "../../../src/console/commandline/CommandParser"; import { Command } from "../../../src/shared/Command"; import { expect } from "chai"; describe("CommandParser", () => { describe("#parse", () => { it("returns matched command with the string", () => { co...
/** * @module node-opcua-client-private */ import { EventEmitter } from "events"; import { assert } from "node-opcua-assert"; import { AttributeIds } from "node-opcua-data-model"; import { DataValue } from "node-opcua-data-value"; import { checkDebugFlag, make_debugLog } from "node-opcua-debug"; import { ExtensionOb...
import {Entity} from "../../../../../../src/decorator/entity/Entity.ts"; import {PrimaryGeneratedColumn} from "../../../../../../src/decorator/columns/PrimaryGeneratedColumn.ts"; import {Column} from "../../../../../../src/decorator/columns/Column.ts"; @Entity() export class Blog { @PrimaryGeneratedColumn() i...
/** * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { Model } from '../../mol-model/structure/model'; import { Task } from '../../mol-task'; import { ModelFormat } from './format'; import { _parse_mmCif }...
export const jwtSecret = process.env.JWT_SECRET;
import tmp from 'tmp'; import fs from 'fs-extra'; import path from 'path'; import chalk from 'chalk'; import yaml from 'js-yaml'; import request from 'request'; import { flags } from '@oclif/command'; import BaseCommand from '../base'; import { Tuture } from '../types'; import { apiEndpoint, apiTokenPath, staticServer...
export { } from './services'; export { QueryBuilderComponent } from './components'; export { Field, Option, QueryBuilderConfig, Rule, RuleSet } from './components'; export { QueryBuilderModule } from './query-builder.module';
import { NextFunction, Request, Response } from "express"; import jwt from "jsonwebtoken"; import { promisify } from "util"; import { asyncMiddleware } from "./asyncMiddleware"; import { ErrorResponse } from "./globalError"; import { User } from "../models/User"; export const authenticateUser = asyncMiddleware( asyn...
/* * This is a basic example of a test server which provides a logger middleware, * a response time middleware, and a basic "Hello World!" middleware. */ // Importing some console colors import { bold, cyan, green, yellow, } from "https://deno.land/std@0.131.0/fmt/colors.ts"; import { Application } from "....
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { Ngb...
import { DomainModule } from '@domain/domain.module'; import { Module } from '@nestjs/common'; import CategoriesController from './categories/categories.controller'; import LanguagesController from './languages/languages.controller'; import PaymentMethodsController from './paymentMethod/paymentMethods.controller'; impo...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.13.10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do ...
import React from 'react'; import { IconDefinition } from '@fortawesome/fontawesome-common-types'; import { SvgIcon, SvgIconProps } from '@mui/material'; interface Props extends SvgIconProps { icon: IconDefinition; } const FontAwesomeIcon = (props: Props) => { return ( <SvgIcon {...props} viewBox={`0 0 ${pro...
export interface UnfsService { constructor: Function; initialized: boolean; initialize(): Promise<void>; writeFile(filePath: string, content: any): Promise<string>; readFile(filePath: string): Promise<any>; }
import { nanoid } from 'nanoid'; import Upstash from "../src" test("Redis HVALS Command", async () => { const upstash = new Upstash(); const key = nanoid(); await upstash.hset(key, ["f1", "hello", "f2", "world"]) const [res] = await upstash.hvals(key) expect(res).toContain("hello") expect(res)....
import { TIME_PERIODS } from "./TimeAgo.constants"; export interface DateDifferenceReturnValue { count?: number; key: Uppercase<typeof TIME_PERIODS[number]> | "FEW_SECONDS"; }
/* tslint:disable */ /* eslint-disable */ // @generated // This file was automatically generated and should not be edited. import {SortReviewsBy} from './../../../globaltypes' // ==================================================== // GraphQL query operation: GetReviewsByProductId // =================================...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { SoftwarePackageReportComponent } from './software-package-report.component'; const routes: Routes = [ { path: '', component: SoftwarePackageReportComponent } ]; @NgModule({ imports: [RouterModule.f...
import React from 'react'; import {useTranslation} from 'react-i18next'; import {CategoryIcon} from 'components'; import {Container, Title} from './styles'; import {Category} from 'models'; interface Props { category: Category; onPressCategory: (category: Category) => void; } const CategoryItem = ({category, onP...
import * as crypto from 'crypto' import { key } from './config' const encrypt = (text: string='') => { let cipher = crypto.createCipher('aes192', key) let encrypted = cipher.update(text, 'utf8', 'hex') encrypted += cipher.final('hex'); return encrypted } const decrypt = (text: string='') => { let decipher ...
import ApolloClient from 'apollo-boost'; import * as configBorregoGraphQL from "../RcsbServerConfig/codegen.borrego.json"; import * as configYosemiteGraphQL from "../RcsbServerConfig/codegen.yosemite.json"; export class RcsbQuery{ borregoClient: ApolloClient<any> = new ApolloClient({ uri: (<any>configBorr...
import { Component, Input, AfterContentInit, ChangeDetectorRef, SimpleChanges, OnChanges } from '@angular/core'; @Component({ selector: 'lib-primitive-dropdownlist', templateUrl: './template.html', styleUrls: ['./styles.less'] }) export class DDListStandardComponent implements AfterContentInit, OnChanges ...
import ComponentModel from '../../model/Component'; import Calendar from './Calendar'; import { ComponentOption, BoxLayoutOptionMixin, LayoutOrient, LineStyleOption, ItemStyleOption, LabelOption, OptionDataValueDate } from '../../util/types'; import GlobalModel from '../../model/Global'; import Model from '../../model/...
export type Point = { x: number, y: number }
import { Injectable } from '@nestjs/common' import { PassportStrategy } from '@nestjs/passport' import { AuthService } from '../services/auth.service' import { Strategy } from 'passport-local' import { RequestUserProperties } from 'src/common/jwt-validation-properties' @Injectable() export class LocalStrategy extend...
/* * 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 React, { useContext, useState } from 'react'; import { EuiPanel, E...
import { Position, docWidth, docHeight } from "./position"; abstract class Movable { protected mouseX: number = 0; protected mouseY: number = 0; protected PositionData: Position | null = null; protected _target: HTMLElement; constructor(template: DocumentFragment, appendTarget: HTMLElement=document....
import { AppStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppStreamClient"; import { UpdateImagePermissionsRequest, UpdateImagePermissionsResult } from "../models/models_0"; import { deserializeAws_json1_1UpdateImagePermissionsCommand, serializeAws_json1_1UpdateImagePermissionsCommand...
import * as Monaco from 'monaco-editor' import { SearchPatternType } from '../../graphql-operations' import { validateFilter } from './filters' import { toMonacoSingleLineRange } from './monaco' import { Filter, Token } from './token' type FilterCheck = (f: Filter) => Monaco.editor.IMarkerData[] export function val...
import { Authorized, Body, Delete, Get, JsonController, OnUndefined, Param, Patch, Post, QueryParams, UseBefore, UseInterceptor, } from 'routing-controllers'; import { ResponseSchema } from 'routing-controllers-openapi'; import _ from 'lodash'; import { OrganizationService, C...
import { ExtendedRecordMap, PageMap } from 'notion-types' export * from 'notion-types' export interface PageError { message?: string statusCode: number } export interface PageProps { site?: Site recordMap?: ExtendedRecordMap pageId?: string error?: PageError } export interface Model { id: string use...
import { Link } from 'react-router-dom'; import ImgDsDark from '../../assets/img/ds_dark.svg'; const NavBar = () => { return ( <div className="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-light border-bottom shadow-sm"> <div className="container"> <nav c...
import { NoSuchChange } from "./NoSuchChange"; import { InvalidInput } from "./InvalidInput"; export type GetChangeExceptionsUnion = NoSuchChange | InvalidInput;
import { HistoryAction, createUrl, changeState } from 'lib/woozie/history'; import { To, createLocationState, createLocationUpdates } from 'lib/woozie/location'; import * as Router from 'lib/woozie/router'; export * from 'lib/woozie/config'; export * from 'lib/woozie/history'; export * from 'lib/woozie/location'; expo...
import { connection } from '@configs/database'; import { isLoggedIn } from '@shared/passport.utils'; import { Request, Response, Router } from 'express'; import { existsSync, unlink } from 'fs'; import { ErrorResponse, ShortFileListResponse, SuccessResponse } from '../models/response.model'; import { ShortFile } from ...
import {Effect, Model} from 'dva-core-ts'; import {Reducer} from 'redux'; import axios from 'axios'; import Toast from 'react-native-root-toast'; import {ITopicDetail} from '@/model/TopicDetail'; const TOPISC_DETAIL_URL = 'v3/lightTopics/internal/'; export interface ITopicDetailModelState { topDetail: ITopicDetail ...
/* ------------------------------------------------------------------------------ This code was generated by Amplication. Changes to this file will be lost if the code is regenerated. There are other ways to to customize your code, see this doc to learn more https://docs.amplication.com/docs/how-to/custom-code -...
import trans from './trans' import task from "./modules/task" import dataset from "./modules/dataset" import errors from "./modules/errors" import login from "./modules/login" import model from "./modules/model" import routeTitle from "./modules/routeTitle" import signup from "./modules/signup" import common from "./mo...
/** * ## The problem * * You'd love a simpler way to create **editable** `@` and `#` mentions with * suggestions built into your `remirror` editor. Or perhaps you'd prefer * non-editable mentions that create an inline prosemirror node. Or maybe you're * keeping it simple and decide that you want mentions to outpu...
/* * Copyright 2018-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...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { EncrDecrService } from '@app/core/services/encr-decr.service'; import { ErrorMessage, ContactService, DataCommunicationService, ContactleadService } from '@app/core'; import { MatSnackBar } from '@angular/material'; im...
describe('Tab Demo Test', () => { it('Navigate to demo section', () => { cy.visit('http://localhost:3000/'); cy.get('#tab-string-event-key-demo-nav-item-link').click(); cy.url().should('eq', 'http://localhost:3000/tab-string-event-key-demo-nav-link'); }); it('Verify tabs with string event keys, and t...
const epochToJsDate = (ts) => { // ts = epoch timestamp // returns date obj return new Date(ts * 1000); }; const jsDateToEpoch = (d) => { // d = javascript date obj // returns epoch timestamp console.log(d); if (!(d instanceof Date)) { throw new TypeError("Bad date passed in"); } else { return (...
import { AppInfo, SandBoxOption } from './type'; import { createAppLoader } from './createAppLoader'; import { createContext } from './creatContext'; import { getApp, setApp } from './AppCachePool'; import VMContext, { removeContext } from '@alicloud/console-os-browser-vm'; import { Parcel } from 'single-spa'; import {...
/* eslint-disable @typescript-eslint/ban-types */ import { Workspace, alert } from "blockly" import BuiltinDataSetField from "../fields/BuiltinDataSetField" import { BlockDefinition, BlockReference, ButtonDefinition, CategoryDefinition, DATA_SCIENCE_STATEMENT_TYPE, identityTransformData, } from ...
import { Accessor } from "./"; export interface ResetSearchOptions { query?: boolean; filter?: boolean; pagination?: boolean; } export declare class ResetSearchAccessor extends Accessor { options: ResetSearchOptions; constructor(options?: ResetSearchOptions); canReset(): boolean; performRese...
import { Test, TestingModule } from '@nestjs/testing' import { OrphanagesService } from './orphanages.service' describe('OrphanagesService', () => { let service: OrphanagesService beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [OrphanagesService] }...
import { GQLCOMMENT_FLAG_REASON, GQLCOMMENT_STATUS, } from "coral-server/graph/tenant/schema/__generated__/types"; import { ACTION_TYPE } from "coral-server/models/action/comment"; import { IntermediateModerationPhase, IntermediatePhaseResult, } from "coral-server/services/comments/pipeline"; import { containsM...
import { DatePipe } from '@angular/common'; import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { combineLatest as observableCombineLatest, Observable, of as observableOf, of } from 'rxjs'; import { filter, first, map, switchMap } from 'rxjs/operators'; impor...
/** @module connect */ import { ConfigParams } from 'pip-services3-commons-nodex'; import { IReferences } from 'pip-services3-commons-nodex'; import { ReferenceException } from 'pip-services3-commons-nodex'; import { Descriptor } from 'pip-services3-commons-nodex'; import { ConnectionParams } from './ConnectionParams'...
import * as mm from 'mingru-models'; import { throwIfFalsy } from 'throw-if-arg-empty'; import { Dialect, StringSegment } from '../dialect.js'; import { settersToVarList, SetterIO } from './setterIO.js'; import { SQLIO, sqlIO } from './sqlIO.js'; import { ActionIO } from './actionIO.js'; import VarList from '../lib/var...
import { Injectable } from '@angular/core'; import { HttpClient,HttpHeaders } from '@angular/common/http'; import { environment } from '../../../environments/environment'; @Injectable() export class ActivityService { APP_ID :string MASTER_KEY :string SERVER_URL : string objectId:any constructor( private h...
import extractComments from "extract-comments"; import { Either, Entry, Entries, Left, Right, isLeft } from "./types"; import { START_TAG, END_TAG, TAG_PREFIX } from "./syntax"; import { r } from "./common"; const REGEX_START_TAG = new RegExp(r`^\s*` + START_TAG + r`\s*$`); const REGEX_END_TAG = new RegExp(r`^\s*` +...