text stringlengths 10 953k |
|---|
export { NgxsTestBed } from './src/ngxs.setup';
export { NgxsTesting } from './src/symbol'; |
import React, { useState } from 'react';
import styled from 'styled-components';
import { Dropdown, Menu, message, Tooltip } from 'antd';
import {
DeleteOutlined,
ExclamationCircleOutlined,
FolderAddOutlined,
FolderOpenOutlined,
LinkOutlined,
MoreOutlined,
PlusOutlined,
} from '@ant-design/i... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca@valencia" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Crevacoin2</source>
<translation type="unfinished"/>
</message>
<message>
<loc... |
import {TS} from "../../../../../../type/ts";
import {ToExportDeclarationTransformerVisitorOptions} from "../to-export-declaration-transformer-visitor-options";
import {createExportSpecifierFromNameAndModifiers} from "../../../util/create-export-specifier-from-name-and-modifiers";
import {hasExportModifier} from "../..... |
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient.ts";
import { UpdateFleetMetricRequest } from "../models/models_2.ts";
import {
deserializeAws_restJson1UpdateFleetMetricCommand,
serializeAws_restJson1UpdateFleetMetricCommand,
} from "../protocols/Aws_restJson1.ts";
impor... |
import React from 'react';
import { connect } from 'dva';
import { Table, Button, Message, Dialog } from '@b-design/ui';
import {
listApplicationPods,
listCloudResources,
listApplicationServiceEndpoints,
} from '../../api/observation';
import { deployApplication } from '../../api/application';
import type {
App... |
import { Module } from '@nestjs/common';
import { PostsService } from './posts.service';
import { PostsController } from './posts.controller';
import { SequelizeModule } from '@nestjs/sequelize';
import { User } from '../users/users.model';
import { Post } from '../users/posts.model';
import { FilesModule } from '../fi... |
import bodyParser from 'body-parser';
import mongoose from 'mongoose';
import express, { Request, Response, NextFunction } from 'express';
import dotenv from 'dotenv';
import routeNotFound from './middlewares/routeNotFound';
import errorHandler from './middlewares/errorHandler';
import routes from './routes';
dotenv... |
import { IdMap } from "medusa-test-utils"
import { request } from "../../../../../helpers/test-request"
import { PriceListServiceMock } from "../../../../../services/__mocks__/price-list"
describe("POST /price-lists/:id/prices/batch", () => {
describe("successfully adds several new prices to a price list", () => {
... |
import { gql } from '@apollo/client'
export const ApplicationFragment = gql`
fragment Application on Application {
id
created
modified
applicant
assignees
state
actionCard {
title
description
tag {
label
variant
}
}
typeId
name
progr... |
/** @jsx jsx */
import { Editor } from 'meow-slate';
import { jsx } from '../../../../__test-utils__/jsx';
import { mergeDeepToNodes } from '../../../transforms/index';
const editor = ((
<editor>
<hp>test</hp>
</editor>
) as any) as Editor;
const props = { a: 1 };
const output = (
<editor a={1}>
<hp a... |
import * as React from 'react';
export type KumaProps = React.ComponentPropsWithoutRef<'svg'> & {
/**
* Hex color or color name
*/
title?: string;
/**
* The size of the Icon.
*/
color?: string;
/**
* The title provides an accessible short text description to the SVG
*/
size?: string | num... |
/*
* Copyright 2021-present Etherna Sagl
*
* 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 applic... |
import axiosRequest, {
objectToForm,
ResponseData,
serializeObject,
} from './index';
export async function getTempPosts() {
return await axiosRequest<ResponseData<GetTempPostsData>>({
url: `/v1/posts/temp?get=list`,
method: 'GET',
});
}
export interface GetTempPostsData {
temp... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
const baseURL = 'https://61409575357db50017b3d717.mockapi.io/api/product';
@Injectable({
providedIn: 'root'
})
export class ProductService {
constructor(private httpClient: HttpClient... |
/* tslint:disable */
/* eslint-disable */
/**
* Apache OpenMeetings API
* Integration API enables to connect to an OpenMeetings instance, eg for generating users, create links to directly access conference rooms.<br/><br/> <b>It is mainly designed for Server2Server integration, for example to integrate into y... |
import * as React from "react";
function DoubleArrowDown(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
width={30}
height={51}
viewBox="0 0 122.88 120.64"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M108.91,54.03c1.63-1.55,3.74-2.31,5.85-2.28c2.11,0.03,... |
/*
* 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 const CSV_RESULT_TIMEBASED_UTC = `"@timestamp",clientip,extension
"Sep... |
export const config = {
menu: {
offsetY: true
},
btn: {
color: 'currentColor',
depressed: true,
outlined: true,
ripple: true
},
icon: {
class: 'ml-1'
}
}; |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LogViewerMainComponent } from './log-viewer-main/log-viewer-main.component';
import { MicaControlsModule } from '@peramic/controls';
import { FormsModule } from '@angular/forms';
import { ScrollingModule } from '@angular/... |
export { DocumentView16 as default } from "../../"; |
import { QrParameters } from '../parameters'
import {
chunkString,
numToBits,
pad0,
concatTypedArrays,
get0s,
} from '../utilities'
import { getEcWords } from '../errorCorrection/reedSolomon'
export class Encoder {
protected config: QrParameters
constructor(config: QrParameters) {
this.config = config... |
import { render } from '@testing-library/react';
import Login from './login';
describe('Login', () => {
it('should render successfully', () => {
const { baseElement } = render(<Login />);
expect(baseElement).toBeTruthy();
});
}); |
export interface StoreState {
languageName: string
enthusiasmLevel: number
} |
import {
exposeGlobally,
normalizeFlag,
normalizeFlags,
} from '@flopflip/adapter-utilities';
import {
type TAdapterEventHandlers,
type TAdapterStatus,
type TAdapterStatusChange,
type TCacheIdentifiers,
type TFlagName,
type TFlags,
type TFlagsChange,
type TFlagsUpdateFunction,
type TFlagVariatio... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AuthComponent } from './auth.component';
import { LoginComponent } from './components/login/login.component';
import { RegisterComponent } from './components/register/register.component';
import { SharedModule } from '../... |
import React from 'react';
import axios from 'axios';
import { Link } from 'react-router-dom';
import { useDispatch } from 'react-redux';
// Local Imports
import logo from '../../../assets/cropped.png';
import CustomButton from '../../Shared/CustomButton/index';
import styles from './styles.module.scss';
type Props =... |
import { FaGithub } from "react-icons/fa";
import { withTheme, ThemeProps, DefaultTheme } from "styled-components";
const Github = (props: ThemeProps<DefaultTheme>) => (
<FaGithub size={25} color={props.theme.colors.text} />
);
export default withTheme(Github); |
/**
* Cursor rule:
* 1. Only `showSearch` enabled
* 2. Only `open` is `true`
* 3. When typing, set `open` to `true` which hit rule of 2
*
* Accessibility:
* - https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html
*/
import * as React from 'react';
import KeyCode from 'rc-... |
import { generateMail, randomString } from '../helpers/user';
import { config, login, setSessionData } from './utils/login';
declare global {
namespace Cypress {
interface Chainable {
/**
* Make sure you are logged in. Returns generated email.
*
* @memberof Cypress.Chainable
*
... |
import * as $protobuf from "../..";
export class MyService extends $protobuf.rpc.Service {
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MyService;
p... |
/* eslint-disable-next-line import/no-extraneous-dependencies */
import { ImpactValue, Result } from 'axe-core';
import { AxePuppeteer } from 'axe-puppeteer';
import deepmerge from 'deepmerge';
import { Report, ReportItem } from '@/typings/command';
import { PluginOptions } from '@/typings/config/plugin';
import { Opti... |
let literal: "tom" | "linda" | "jeff" | "sue" = "linda";
literal = "sue";
//literal = "john";
console.log(literal); |
import React from 'react';
import { Grid, Typography } from '@mui/material';
import { Protection } from '@/../services/models/analytics';
import ProtectItem from './protectItem';
export default function ProtectInfo(Props: { protection: Protection }) {
const { name, prerequisites, solutions, summary } = Props.prote... |
import * as vscode from 'vscode';
import { getDefaultIconOptions, validateSaturationValue } from '../icons';
import * as helpers from './../helpers';
import * as i18n from './../i18n';
/** Command to toggle the folder icons. */
export const changeSaturation = async () => {
try {
const currentSaturationValu... |
export * from './WebReservationsApi'; |
/**
* @license
* Copyright 2018 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... |
/* LOCKS RESOLVERS */
// Registering a single interval scales much better than registering N timeouts
// Timeouts are respected within the interval margin
// We only use a constant timeout currently, so the functions set is assumed to be ordered
const LocksResolvers = {
/* VARIABLES */
interval: 100,
interval... |
import connect from '../../core/db'
test('connect database', async () => {
await connect
}, 10000) |
export async function getPackage() {
}
export async function getVersions() {
}
export async function searchByTag() {
} |
import { ProgressProps } from './interface';
export declare const defaultProps: Partial<ProgressProps>;
export declare const useTransitionDuration: (percentList: number[]) => import("react").MutableRefObject<undefined>[][]; |
import React from 'react';
import PropTypes from 'prop-types';
import { useClassNames } from './utils';
import { StandardProps } from './@types/common';
export interface ColumnGroupProps extends StandardProps {
/** Alignment */
align?: 'left' | 'center' | 'right';
/** Vertical alignment */
verticalAlign?: 'top... |
import { Component, OnInit, ViewChild, HostListener } from '@angular/core';
import { setCulture, L10n } from '@syncfusion/ej2-base';
import { GridComponent } from '@syncfusion/ej2-angular-grids';
import { OverlayPanel } from 'primeng/primeng';
import { Caisse } from '../services/caisse';
import { CaisseService } from '... |
import { TimusOnlineJudgeProblemParser } from '../problem/TimusOnlineJudgeProblemParser';
import { SimpleContestParser } from '../SimpleContestParser';
export class TimusOnlineJudgeContestParser extends SimpleContestParser {
protected linkSelector = '.problemset td.name > a';
protected problemParser = new TimusOnl... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { NoOpTracer } from "../noop/noOpTracer";
import { SpanOptions } from "../../interfaces/SpanOptions";
import { TestSpan } from "./testSpan";
import { SpanContext } from "../../interfaces/span_context";
import { SpanKi... |
/**
* @file ReadBook 读书
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import React from 'react';
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper(
'read-book',
false,
(props: ISvgIconProps) => (
<svg
... |
import styled from "styled-components";
import { flexbox } from "styled-system";
import Box from "./Box";
import { FlexProps } from "./types";
const Flex = styled(Box)<FlexProps>`
display: flex;
${flexbox}
`;
export default Flex; |
import * as assert from 'assert';
import { compile } from '../contracts/compile';
import { getAddress } from '../contracts/contract';
import { client } from './test';
describe('Abi', function () {
const source = `
pragma solidity >=0.0.0;
contract random {
function getRandomNumber() public pure returns (uint) {
... |
/*
* Copyright 2021 The PartChain 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... |
import * as admin from "firebase-admin";
import { addGCPSettings } from "./add-gcp-settings";
export async function initializeFirebase() {
await addGCPSettings();
admin.initializeApp();
}
export function addToken(token: string, topic: string) {
admin.messaging().subscribeToTopic(token, topic);
}
export functio... |
import { forwardRef, Icon, IconProps } from '@queelag/react-core'
import React, { ForwardedRef } from 'react'
/**
* Usage:
*
* ```typescript
* import { IconSportsCricket } from '@queelag/react-material-icons'
*
* function App() {
* return <IconSportsCricket />
* }
* ```
*
* @category Component
*/
export ... |
import { Func } from '../typings/types';
interface Once {
<F extends Func>(fn: F): F;
}
/**
* Accepts a function `fn` and returns a function that guards invocation of
* `fn` such that `fn` can only ever be called once, no matter how many times
* the returned function is invoked. The first value calculated is ret... |
import { Component, OnInit } from '@angular/core';
import { LocaleService } from './app.service';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
providers:[LocaleService]
})
export class AppComponent implements OnInit {
constructor(private localeService: LocaleService) {
}
ngOnInit(... |
import {MigrationInterface, QueryRunner, Table} from "typeorm";
export class CreateMessages1619117809630 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: "messages",
colum... |
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { ColorBaseService } from 'src/app/services/colorBase/color-base.service';
@Component({
selector: 'app-colors-base',
templateUrl: './colors-base.component.html',
styleUrls: ['./colors-base.component.css']
})
export class ColorsBaseCo... |
import {Plot} from "./plot"
import * as p from "core/properties"
import {MapType} from "core/enums"
import {Model} from "../../model"
import {Range1d} from "../ranges/range1d"
import {GMapPlotView} from "./gmap_plot_canvas"
export {GMapPlotView}
export namespace MapOptions {
export type Attrs = p.AttrsOf<Props>
... |
/**
* @file IconAddText 文字大小
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime';
export default IconWrapper(
'IconAdd-text',
true,
(h: IconHelper, props: ISvgIconProps) => (
... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Path, PathFragment } from '@angular-devkit/core';
import { Action } from './action';
export enum MergeStra... |
import { TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { ConductorService } from './conductor.service';
import { environment } from 'src/environments/environment';
import { HttpService } from 'src/app/core/services/http.ser... |
import { AuthMiddleware } from '@/presentation/middlewares';
import { Middleware } from '@/presentation/protocols';
import { makeDbLoadUserByToken } from '@/main/factories';
export const makeAuthMiddleware = (): Middleware => {
return new AuthMiddleware(makeDbLoadUserByToken());
}; |
import { SideBar } from './components/SideBar';
import { MoviesProvider } from './hooks/MoviesContext';
import { Content } from './components/Content';
import './styles/global.scss';
import './styles/sidebar.scss';
import './styles/content.scss';
export function App() {
return (
<MoviesProvider>
<div styl... |
import * as React from "react";
import Link from "gatsby-link";
import Footer from "../components/footer/footer";
// static
const unite = require("../svg/unite.svg");
const elearning = require("../svg/elearning.svg");
const crowdfunding = require("../svg/crowdfunding.svg");
const what = require("../svg/what.svg");
//... |
import * as React from 'react';
import RotationControl from '../rotation-control';
import { mountWithMap, getMapMock } from '../jest/util';
describe('RotationControl', () => {
it('should render the component', () => {
const wrapper = mountWithMap(<RotationControl />, getMapMock());
expect(wrapper).toBeDefine... |
import * as fs from 'fs';
import * as path from 'path';
import stripAnsi from 'strip-ansi';
import { analyzeFolders, AnalysisSeverity } from '@snyk/code-client';
jest.mock('@snyk/code-client');
const analyzeFoldersMock = analyzeFolders as jest.Mock;
import { loadJson } from '../../../utils';
import * as featureFlags f... |
import { TestStartup, SfaRequest } from "sfa";
import "../../src";
import { HttpMethod } from "@sfajs/header";
import { routerCfg } from "../global";
const methods = [
HttpMethod.get,
HttpMethod.connect,
HttpMethod.delete,
HttpMethod.post,
HttpMethod.head,
HttpMethod.options,
HttpMethod.patch,
HttpMeth... |
import Bluebird from "bluebird";
import extend from "extend";
import * as promiseutil from "../promiseutil";
import { IrcHandler } from "./IrcHandler";
import { MatrixHandler } from "./MatrixHandler";
import { MemberListSyncer } from "./MemberListSyncer";
import { IrcServer } from "../irc/IrcServer";
import { ClientPoo... |
import { Assessment } from './assessment'
export interface Config {
version: number
assessments: Assessment[]
} |
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
@Component({
selector : 'whitepaper',
templateUrl : './whitepaper.component.html',
encapsulation : ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class WhitePaperComponent... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'Cloud-Clipboard';
} |
import { Person } from './person';
export class Player implements Person {
name: string;
age: number;
highScore: number;
formatName() {
return this.name.toUpperCase();
}
} |
export * from './request'
export * from './utils'
export * from './store' |
import createSvgIcon from "@material-ui/icons/utils/createSvgIcon";
import React from "react";
const Sales = createSvgIcon(
<>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M40.1974 14H49.7682V22.7732L45.9287 19.2537L35.0969 30.0855L25.1555 28.0973L15.5364 39.6402L14 38.3598L24.3809 25.9027L34... |
/*
* 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 * as assert from 'assert'
import * as E from 'fp-ts/Either'
import * as t from 'io-ts'
import {
HexColorCodec,
ObjectCodec,
ObjectTemplateCodec,
TilesetCodec,
MapCodec,
ObjectTemplate,
TiledObject,
} from '../src/Tiled'
import * as tilesheet from './resources/tilesheet.json'
import * as tilemap fro... |
/* eslint-disable */
import Long from 'long';
import _m0 from 'protobufjs/minimal';
export const protobufPackage = 'google.api';
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
} |
import knex from "knex";
import path from "path";
const connection = knex({
client: "sqlite3",
connection: {
filename: path.resolve(__dirname, "database.sqlite3"),
},
useNullAsDefault: true,
});
export default connection; |
import "reflect-metadata";
import { Connection } from "../../../../../src/connection/Connection";
import { closeTestingConnections, createTestingConnections, reloadTestingDatabases } from "../../../../utils/test-utils";
import { Post } from "./entity/Post";
import { PostWithUnderscoreId } from "./entity/PostWithUndersc... |
import { OperationContentsAndResult } from '@taquito/rpc';
import { Context } from '../context';
import { Operation } from './operations';
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, RPCDelegateOperation, StorageConsumingOperation } from './types';
/**
* @description Delegation operation provid... |
import { isShape } from "./isShape"
describe("isShape", () => {
it("does nothing on empty shapes", () => {
const validate = isShape({})
expect(validate({}, "$")).toHaveLength(0)
})
it("validates object shapes", () => {
const pass = jest.fn(() => [])
const validate = isShape({ key: pass })
... |
export class WarehouseAreaListModel {
id: number;
code: string;
warehouseId: number;
isLocked: boolean;
} |
import { Card } from '../../../interfaces'
import Set from '../Chilling Reign'
const card: Card = {
set: Set,
name: {
en: "Scorbunny",
fr: "Flambino",
es: "Scorbunny",
it: "Scorbunny",
pt: "Scorbunny",
de: "Hopplo"
},
illustrator: "tetsuya koizumi",
rarity: "Common",
category: "Pokemon",
hp: 60,
... |
import styled from 'styled-components'
type StackProps = {
direction?: 'column' | 'row'
}
export const Stack = styled.div<StackProps>`
display: flex;
flex-direction: ${({ direction = 'column' }) => direction};
justify-content: center;
align-items: center;
gap: 1rem;
@media screen and (min-width: 600px) ... |
import 'graphql-import-node';
import { gql } from 'apollo-server-express';
import { merge } from 'lodash';
import { buildFederatedSchema } from '@apollo/federation';
// import { makeExecutableSchema } from '@graphql-tools/schema';
// import { GraphQLSchema } from 'graphql';
import * as genreTypeDefs from './schemas/gen... |
import { ComponentPropsWithoutRef, ReactNode } from 'react';
import { classNames } from '../../lib/react-helpers';
import { Subheadline } from '../formatted-content';
import { Icon, SvgIcon } from '../svg-icon';
import { exclamationTriangle } from '../../bootstrap-icons/exclamation-triangle';
import { exclamationCircle... |
import { createRaribleSdk } from "@rarible/protocol-ethereum-sdk"
import { randomAddress, toAddress } from "@rarible/types"
import { Web3Ethereum } from "@rarible/web3-ethereum"
import { Address } from "@rarible/ethereum-api-client"
import { createErc721V3Collection } from "@rarible/protocol-ethereum-sdk/build/common/m... |
import * as assert from "assert";
import * as xmldsig from "../src";
context("Signing options", () => {
const xmlDocument = xmldsig.Parse(`<root><child id="child"/></root>`);
const algorithm = {
name: "RSASSA-PKCS1-v1_5",
hash: "SHA-256",
publicExponent: new Uint8Array([1, 0, 1]),
modulusLength: 2... |
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { CreateTransitGatewayRequest, CreateTransitGatewayResult } from "../models/models_1";
import {
deserializeAws_ec2CreateTransitGatewayCommand,
serializeAws_ec2CreateTransitGatewayCommand,
} from "../protocols/Aws_e... |
import * as React from 'react';
import { IconWrapper } from '../IconWrapper';
import { ISvgIconProps } from '../svgConfig';
export default IconWrapper(
(props: ISvgIconProps) => (
<svg
width={props.size}
height={props.size}
viewBox="0 0 48 48"
fill="none"
... |
import React from 'react';
import { IonLifeCycleContext } from '../contexts/IonLifeCycleContext';
import { RouteInfo } from '../models';
import { StackContext } from './StackContext';
interface PageManagerProps {
className?: string;
forwardedRef?: React.RefObject<HTMLDivElement>;
routeInfo?: RouteInfo;
}
expo... |
import mitt from 'mitt'
import config from 'R/config'
import { getOSSClient } from '@/utils/helpers/init'
import { memo, nextTick, sleep } from '@/utils/helpers/op'
window.$app = {
memo,
nextTick,
sleep,
emitter: mitt(),
oss: config.oss ? await getOSSClient() : null
}
export {} |
<TS language="fi" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Valitse hiiren oikealla painikkeella muokataksesi osoitetta tai nimikettä</translation>
</message>
<message>
<source>Create a new a... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
// Copyright 2021 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.
/*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
* Copyright (C) 2011 Google I... |
import * as React from "react";
import { connect } from "react-redux";
import { dismissMessage } from "./actions";
import Snackbar from "material-ui/Snackbar";
import IconButton from "material-ui/IconButton";
import CloseIcon from "material-ui-icons/Close";
export interface Props {
messages: Array<string>;
dismi... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
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 { render, screen } from "@testing-library/react";
import Footer from "./Footer";
describe("Footer Component Tests", () => {
test("Am I present?", () => {
render(<Footer />);
const footerText = screen.getByText(/Created By Sam Duff @ Dufferz.net/i);
expect(footerText).toBeInTheDocument();
});
}); |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ResourceAlertPreviewComponent } from './resource-alert-preview.component';
import { ResourceAlertViewComponent } from './resource-alert-view/resource-alert-view.component';
import { SidePanelService } from 'frontend/packages/core/src/sh... |
import { observable, ObservableSet, reaction } from "mobx"
import { model } from "../model/modelDecorator"
import { isModel } from "../model/utils"
import { assertTweakedObject } from "../tweaker/core"
import { assertIsObject, failure } from "../utils"
import { Ref, RefConstructor } from "./Ref"
interface BackRefs<T e... |
import { HttpClient } from '../../src/client/http/HttpClient';
import { serviceProto, ServiceType } from '../proto/serviceProto';
let client = new HttpClient<ServiceType>({
server: 'http://localhost:3000',
proto: serviceProto
});
async function main() {
const P = 50, N = 1000;
let max = 0;
console.... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {CommonModule, NgIfContext} from '@angular/common';
import {Component, DebugNode, Directive, ElementRef, Emb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.