text stringlengths 10 953k |
|---|
import { getTemplateSrv } from '@grafana/runtime';
import { InlineField, InlineFieldRow, InlineSwitch, Input } from '@grafana/ui';
import React, { useState } from 'react';
import { VariableQuery } from '../types';
interface Props {
query: VariableQuery;
onChange: (query: VariableQuery, definition: string) => void;... |
/// <reference path="../../defs/tsd.d.ts"/>
import _ = require('lodash');
import fs = require('fs');
import path = require('path');
import utils = require('./utils');
var grunt = utils.grunt;
/////////////////////////////////////////////////////////////////////
// HTML -> TS
/////////////////////////////////////////... |
import { AppPage } from './app.po';
describe('ng-event-radar App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
}); |
export interface ILoginInRequest {
phone: string;
password: string;
}
export interface ILoginInResponce {
loginType: number;
code: number;
account: IAccount; // 账户信息
token: string; // token信息
profile: IProfile; // 个人详细信息
bindings: IBindingsItem[]; // 和返回值所绑定的一些信息
cookie: string; ... |
import BLOG from '@/blog.config'
import { useEffect } from 'react'
type Props = {
issueTerm?: string
layout?: 'fullWidth'
}
const Utterances: React.VFC<Props> = ({ issueTerm, layout }) => {
useEffect(() => {
const theme =
BLOG.appearance === 'auto'
? 'preferred-color-scheme'
: BLOG.app... |
var x = {
p1: 10,
get foo() {
if (1 == 1) {
return 10;
}
},
get [1 + 1]() {
throw 10;
},
set [1 + 1]() {
// just throw
throw 10;
},
get [1 + 1]() {
return 10;
},
get foo() {
if (2 == 2) {
return 20;
... |
import { ScryptedDeviceType, ScryptedInterface, MediaObject, VideoCamera, Settings, Setting, Camera, ObjectDetection, PictureOptions, ScryptedDeviceBase, DeviceProvider, ScryptedMimeTypes, FFMpegInput, ObjectsDetected, ObjectDetectionModel, ObjectDetectionSession, ObjectDetectionResult } from '@scrypted/sdk';
import sd... |
import {
CLIENT_ERROR_CONSTANTS,
Entity as E,
NOmit,
SUCCESS_CONSTANTS,
ThenArg,
} from 'core_types';
import {
bulkUpdate,
count,
createMany,
createOne,
deleteMany,
deleteManyByIds,
deleteOne,
deleteOneById,
readMany,
readManyByIds,
readOne,
readOneById,
updateMany,
updateManyByIds... |
import React from "react";
import PaymentTable from "./Payments/PaymentTable";
import PaymentTotals from "./Payments/PaymentTotals";
import PaymentChart from "./Payments/PaymentChart";
import Title from "./Title";
import "./App.css";
const App: React.FC = () => {
return (
<div className="flex flex-col w-screen p... |
import { Controller, Post, Body, Get, Query, Param, Put, Delete } from '@nestjs/common';
import { CreateCatDto, ListAllEntities, UpdateCatDto } from 'src/interface/cats.interface';
import { CatsService } from './cats.service';
@Controller('cats')
export class CatsController {
constructor(private readonly catsService... |
import * as React from 'react';
import { ScrollLoadView } from 'mobile-more';
const Demo = () => {
return (
<>
<ScrollLoadView />
<ScrollLoadView loading />
<ScrollLoadView done />
<ScrollLoadView error />
</>
);
};
export default Demo; |
// baseUrl:http请求接口地址
const baseUrl = GameConfig.getBasicUrl();
// version:后台定义的游戏id
const app_code = GameConfig.getAppCode();
// app_code:后台定义的游戏版本号
const version = GameConfig.getVersion();
class Api {
private static token: string;
public static baseUrl = baseUrl;
// api地址
private static uploadReco... |
export const graphicsLibrary = {
Character: {
BirdPokemon: {
normal: {
normal:
"p[0,1,2,4]x09,32x012,322x012,2222x011,233332x09,31333313x08,22333322x08,23322332x08,33213233x07,3211221123x06,2x18,2x05,23x18,32000023x18,32x05,23x16,32x08,231132x011,2222x011,2300... |
// Generated by script, don't edit it please.
import * as React from 'react';
function UserChange(props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement>) {
return (
<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" ref={svgRef} {...props}>
<path d="M5.5 6a2.5 2.5 0 100-... |
import { app } from "@arkecosystem/core-container";
import { TransactionPool } from "@arkecosystem/core-interfaces";
import Boom from "boom";
/**
* The register method used by hapi.js.
* @param {Hapi.Server} server
* @param {Object} options
* @return {void}
*/
const register = async (server, options) => {
s... |
import Core from '@discord-ts-app/core'
import Env from '@discord-ts-app/env'
import Guard from '@discord-ts-app/guard'
import Loader from '@discord-ts-app/loader'
import { Lifecycle } from '@discord-ts-app/lifecycle'
import { Client, Message } from 'discord.js'
import Event from './Interfaces/Event'
export default cl... |
import { Component, OnInit, Inject, Optional } from '@angular/core';
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
import { BrandType } from 'src/app/modules/shared/models/brand-type.model';
import { BrandTypeService } from '../services/vehicle-features/brand-type.service';
import { ... |
// moment.js locale configuration
// locale : Hebrew (Israel) [he]
// author : Matan Sar-Shalom : https://github.com/msarsha
import { LocaleData } from '../locale/locale.class';
export const he: LocaleData = {
abbr: 'he',
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
... |
import React from 'react';
import { PageProps, graphql } from 'gatsby';
import { Box } from 'rebass';
import { SEO } from 'components/seo';
import { Layout } from 'components/layout';
const FAQPage = ({ data }: PageProps) => {
if (!data) {
return null;
}
const { allPages }: any = data as any;
... |
/*
* 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 OPDSFeed from "./opds_feed";
import OPDSEntry from "./opds_entry";
import NamespaceParser from "./namespace_parser";
import FeedParser from "./feed_parser";
import EntryParser from "./entry_parser";
import xml2js = require("xml2js");
let xmlParser = new xml2js.Parser({xmlns: true});
let namespaceParser = new Na... |
import {
RepositoryError,
UnknownRepositoryError,
} from "../../../../domain/repository/RepositoryError"
import { ChangeEventHandler } from "../../../ChangeEventHandler"
import { ILoginCredentialCommandRepository } from "../../../../domain/repository/command/LoginCredential"
import { LoginCredentialEntity } fr... |
import { IPractice } from '../IPractice';
import { PracticeEvaluationResult, PracticeImpact, ProgrammingLanguage } from '../../model';
import { DxPractice } from '../DxPracticeDecorator';
import { PracticeContext } from '../../contexts/practice/PracticeContext';
@DxPractice({
id: 'Java.PackageManagementUsed',
name... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginComponent } from '@app/login/login.component';
import { AdminComponent } from '@app/admin/admin.component';
import { AuthGuardService } from '@core/services';
const routes: Routes = [
{ path: 'login', comp... |
import {Injectable} from "@nestjs/common";
import {JwtService} from "@nestjs/jwt";
@Injectable()
export class AuthService{
constructor(
private jwtService: JwtService
){}
async login(){
return {access_token: this.jwtService.sign({content: 'telos_content'})}
}
} |
import { MESSAGE_TYPE, SenderType } from '../types/message';
import { SettingsType } from '../types/settings';
import { messageListener } from '../utils/messages/messageListener';
import { messageSender } from '../utils/messages/messageSender';
import { SendToOption } from '../utils/messages/types';
export const sendS... |
/*
* 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... |
export * from './hooks';
export * from './context';
export * from './factories'; |
import { InteractionManager } from 'react-native';
import _ from 'lodash';
import { NodeApi } from '@/api/brightId';
import {
setVerifications,
updateMemberships,
updateConnections,
setIsSponsored,
updateNotifications,
setActiveDevices,
} from './index';
const fetchUserInfo =
(api: NodeApi) => (dispatch:... |
export enum ViewMode {
QuarterDay = "Quarter Day",
HalfDay = "Half Day",
Day = "Day",
/** ISO-8601 week */
Week = "Week",
Month = "Month",
}
export type TaskType = "task" | "milestone" | "project";
export interface Task {
id: string;
type: TaskType;
name: string;
start: Date;
end: Date;
/**
*... |
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { IBook } from "../../../models/book.interface";
@Component({
selector: 'book-list-cards',
templateUrl: './book-list-cards.component.html',
styleUrls: ['./book-list-cards.component.scss']
})
export class BookListCardsComponent... |
export declare class Question {
id: number;
name: string;
} |
/*
* 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 * as t from 'io-ts';
import {
SERVICE_NAME,
SERVICE_ENVIRONMENT,
... |
import Link from 'next/link'
import { Button, Row, Col } from 'antd'
import Layout from '@components/Layout'
const Index = () => {
const handleBtnGoogleLoginClick = () => {
// tslint:disable-next-line: no-console
console.log('XXXX ')
}
return (
<Layout title="Home | Next.js + TypeScript Example">
... |
import { usePermission, Permissions } from "hooks/usePermission";
import type { ReactNode } from "react";
interface Props {
permissions?: Permissions[];
title: string;
children: ReactNode;
}
export function SidebarSection({ title, permissions, children }: Props) {
const { hasPermissions } = usePermission();
... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { Ng2SmartTableModule } from 'ng2-smart-table';
import { ThemeModule } from '../../@theme/theme.module';
import { SmartTableService } from '../../@core/data/smart-table.service';
import { SettingsComponent } from './settin... |
import { eq, option } from "fp-ts";
import { pipe } from "fp-ts/lib/function";
import {
kleurcode,
kleurcodeValue,
kleurnaam,
kleurnaamValue,
setOpacity,
toKleur,
toKleurUnsafe,
} from "./colour";
describe("Een kleur", () => {
describe("aanmaken", () => {
describe("op basis van een naam en een hex... |
import React, { Component } from 'react';
import { testMount, testSnapshot } from '../../../tests';
import Progress from '..';
describe('🧪 Progress', () => {
testMount(Progress);
testSnapshot(Progress);
}); |
export type LoginInput = {
nickName: string;
password: string;
};
export type RegisterInput = {
nickName: string;
email: string;
password: string;
role: number;
};
export const REGEX = {
email: /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i,
passwo... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import { StreamingAudioChannel } from './StreamingAudioChannel';
import { WebAudioChannel } from './WebAudioChannel';
import { IAudioChannel } from './IAudioChannel';
import { EventAudioChannel } from './EventAudioChannel';
import { IAudioChannelClass } from './IAudioChannelClass';
export class AudioManager {
private... |
const UINT32_SIZE = 32;
const UINT32_MAX = Math.pow(2, UINT32_SIZE);
/**
* Converts a number to a uint32.
* @param value The number to convert
* @returns The uint32 value
*/
export const uint32 = (value: number): number => value >>> 0;
/**
* Converts a uint32 to a number between [0,1).
* @param value The uint32... |
import { Card } from '@material-ui/core';
import dayjs from 'dayjs';
// interfaces
import CardContent from '@material-ui/core/CardContent';
import { createStyles, makeStyles } from '@material-ui/styles';
import { Theme } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import clsx... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="et-EE">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Bithereum</source>
<translation type="unfinished... |
import { browser, element, by } from 'protractor';
export class IpaasClientCliPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
} |
import * as path from 'path';
import { Browser, ElementHandle, chromium } from 'playwright';
import * as SUT from '../index';
describe('handle has value', (): void => {
let browser: Browser | undefined = undefined;
// eslint-disable-next-line @typescript-eslint/no-empty-function
beforeEach((): void => {});
aft... |
// Name Request State interface
export interface NameRequestIF {
nrNumber: string
entityType: string
details: NameRequestDetailsIF | {}
applicant: NameRequestApplicantIF | {}
filingId: number
}
// Name request response details interface
export interface NameRequestDetailsIF {
approvedName: string
status:... |
import * as PassKit from '../src/index'
export const options: PassKit.Options = {
secret: "./keys/key.pem",
wwdr: "./keys/wwdr.pem",
passTypeIdentifier: "pass.***",
teamIdentifier: "***",
password: "***"
} |
export * from './email.service';
export * from './email.module';
export * from './templates'; |
/**
* 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.
*/
import List from '../List'
describe('List', () => {
describe('swap', () => {
it('should swap the first two elements of a big list', () => {
... |
import { Subscribe } from "@react-rxjs/core"
import { BrowserRouter, Route, Switch } from "react-router-dom"
import { Analytics } from "@/App/Analytics"
import { LiveRates } from "@/App/LiveRates"
import { TileView } from "@/App/LiveRates/selectedView"
import { Trades } from "@/App/Trades"
import { Loader } from "@/co... |
/*
* 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, { useState, Fragment } from 'react';
import { i18n } from '@kbn... |
import React, { SVGAttributes } from 'react';
export interface DocumentSignAndSendProps extends SVGAttributes<SVGElement> {
[key: string]: any;
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | number;
color?: string;
}
const sizes = { xs: 12, s: 16, m: 20, l: 24, xl: 32 };
export const DocumentSignAndSend: React.FC... |
import { getRepository, Repository } from 'typeorm';
import {
ICreateSpecificationsDTO,
ISpecificationsRepository,
} from '@modules/boats/repositories/ISpecificationsRepository';
import { Specification } from '../entities/Specification';
class SpecificationsRepository implements ISpecificationsRepository {
pri... |
import { startOfDay } from "date-fns"
import { combineLatest, merge } from "rxjs"
import {
delay,
filter,
map,
mergeMap,
scan,
startWith,
} from "rxjs/operators"
import { bind } from "@react-rxjs/core"
import { Trade, trades$ } from "@/services/trades"
import type { ColField } from "./colConfig"
import type... |
import {
useBoolean,
useDisclosure,
useFocusOnPointerDown,
useFocusOnHide,
useFocusOnShow,
useIds,
} from "@chakra-ui/hooks"
import {
Placement,
popperCSSVars,
usePopper,
UsePopperProps,
} from "@chakra-ui/popper"
import { useColorModeValue, useToken } from "@chakra-ui/system"
import {
callAllHand... |
import { useEffect } from 'react';
import { useRecoilSnapshot } from 'recoil';
export * from './local';
export * from './connections';
export * from './chat';
export const DebugObserver = () => {
const snapshot = useRecoilSnapshot();
useEffect(() => {
console.debug('The following atoms were modified:');
f... |
import fetch from "node-fetch";
const fetchJSON = async <T>(url: string) => {
const response = await fetch(url);
return (await response.json()) as T;
};
const endpoints = [
"accounts",
"sessions",
"matches",
"matches/1v1",
"matches/2v2",
"matches/1pve",
"matches/2pve",
"matches/4pve",
"matches/1... |
import { Body, Controller, Get, Post, UseGuards } from '@nestjs/common';
import { ApiBearerAuth, ApiResponse } from '@nestjs/swagger';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import CategoryService from './category.service';
import CreateCategoryDto from '../dto/create-category.dto';
@ApiBearerAuth()
@U... |
import React from 'react';
import PropTypes from 'prop-types';
import validationRules from './validationRules';
import Wrapper, { propTypes } from './Wrapper';
import { IModel, InputComponent, IResetModel, ISetInputValue, IUpdateInputsWithError, ValidationFunction } from './interfaces';
declare type FormHTMLAttributesC... |
import { ALuApiService, ILuApiService } from '@lucca-front/ng/api';
import { ILuLegalUnit } from '../establishment.model';
export interface ILuLegalUnitService<E extends ILuLegalUnit = ILuLegalUnit>
extends ILuApiService<E> { }
export abstract class ALuLegalUnitService<E extends ILuLegalUnit = ILuLegalUnit>
extends... |
/*
* Copyright 2020, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
import React from "react";
import ReactDom from "react-dom";
import { render, cleanup, waitFor } from "@testing-library/react";
import { MockedProvider } from "@apollo/react-... |
/**
* @license
* Copyright 2017 Google Inc. 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... |
import React, { FC } from 'react';
import './menu.scss';
interface IMenuProps {
menuItems: Array<{ name: string; active: boolean }>;
menuSelected: number;
menuClick: (menuNumber: number) => void;
}
const Menu: FC<IMenuProps> = (props) => {
const renderMenuItems = () => {
return props.menuItems.map((item, ... |
import React from 'react';
import * as tl from '@testing-library/react';
import { CarouselSlideView as CarouselSlide } from './CarouselSlide';
import { CarouselContext, defaultContext } from './context';
describe('CarouselSlide', () => {
type Props = Partial<React.ComponentProps<typeof CarouselSlide>>;
const onP... |
// Type definitions for plyr 3.3.15
// Definitions by: Michael Wagner <https://github.com/wagich>, tdaines <https://github.com/tdaines>
export as namespace Plyr;
export = Plyr;
declare class Plyr {
static setup(
targets: NodeList | HTMLElement | HTMLElement[] | string,
options?: Plyr.Options,
): Plyr[];
... |
'use strict';
import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
vscode.workspace.onDidChangeTextDocument(event => {
insertAutoCloseTag(event);
});
let closeTag = vscode.commands.registerCommand('auto-close-tag.closeTag', () => {
insertCloseTag()... |
import * as winston from 'winston';
const logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)({
json: true,
colorize: true
})
]
});
export default logger; |
import React from 'react';
import {DataPath, GeneralPath, PostPath, StoryPath, UnitPath} from '../../api-def/paths';
import {UserControlButton} from '../elements/common/userControl/button/main';
import {NavLanguageSwitch} from './components/switch';
import {NavItems} from './type';
export const TITLE_NAV_HTML_ID = '... |
import { mount } from '@vue/test-utils';
import { ClayNode } from '../../src/typings/clay.d';
import ClayView from '@/ClayView.vue';
describe('Clay View can loop', () => {
it('static array with one child object ', () => {
const schema: ClayNode = {
namespace: 'root',
component: 'div',
children:... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AttendanceRoutingModule } from './attendance-routing.module';
import {NewAttendanceComponent} from './pages/new-attendance/new-attendance.component';
import {IonicModule} from '@ionic/angular';
import {FormsModule} from ... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
export { eventstart, eventend, eventmove, eventcancel, trigger, gestures, disableTextSelection, enableTextSelection } from "./gestures"; |
import { StaticRouter } from 'react-router-dom';
import { select } from '@storybook/addon-knobs';
import { UserNavigation } from '@asap-hub/react-components';
import { NoPaddingDecorator } from './layout';
export default {
title: 'Organisms / Navigation / User Nav',
component: UserNavigation,
decorators: [NoPad... |
import * as React from "react";
import { classNames } from "lib/classNames";
export type ButtonProps = JSX.IntrinsicElements["button"] & {
small?: boolean;
variant?: keyof typeof variants | null;
};
const variants = {
default:
"bg-gray-500 hover:bg-gray-600 text-white dark:hover:bg-gray-3 dark:bg-dark-brigh... |
export const buildMultipleActionQueryParams = (keyword?: string, ids?: string): string => {
let queryParams = '';
if (keyword && keyword.length) {
queryParams += '&keyword=' + keyword;
}
if (ids && ids.length) {
queryParams += '&ids=' + ids;
}
return queryParams.replace('&', '... |
declare const FDBOpenDBRequest: typeof IDBOpenDBRequest;
export default FDBOpenDBRequest; |
import { Identifier } from '@rimo/core'
/**
* Identifier test
*/
describe('Identifier test', () => {
class StringIdentifier extends Identifier<string> {}
it('should create an identifier', () => {
const id = new StringIdentifier('id')
expect(id.toValue()).toBe('id')
})
it('should be equal when the v... |
import { strict as assert } from 'assert';
import { Bone, DataTypes, connect } from '../..';
describe('=> Basics (TypeScript)', function() {
const { BIGINT, STRING, TEXT, DATE, BOOLEAN } = DataTypes;
class Post extends Bone {
static table = 'articles';
static attributes = {
id: BIGINT,
created... |
export * from "./testing/user.mock"; |
import { ResourceCustomAttributes } from '../templates';
import { BaseServiceOptions } from '../infrastructure';
export class GroupCustomAttributes extends ResourceCustomAttributes {
constructor(options: BaseServiceOptions = {}) {
super('groups', options);
}
} |
import * as React from "react";
import { useCallback, useMemo, useRef } from "react";
import { EventForm } from "./Form";
import { useContent } from "../../technical/contentful/content";
import { TextKey } from "../../technical/contentful/text";
import styled from "styled-components";
import { Map as LeafletMap } from ... |
import { SmokeTestCase, RuntimeTarget } from '@aws-sdk/build-types';
import { IndentedSection } from '../IndentedSection';
export interface SmokeTestOptions {
clientName: string;
runtime: RuntimeTarget;
serviceId: string;
testCase: SmokeTestCase;
}
export class SmokeTest {
private readonly clientN... |
import { Context, ContextEntry, ContextStack } from '../../../evaluator/interface'
import { Any } from '../../../interface'
import { compare, deepEqual } from '../../../utils'
import { BuiltinNormalExpressions } from '../../interface'
import { version } from '../../../version'
import { any, assertNumberOfParams, litsFu... |
import BitMatrix from '../../common/BitMatrix';
import Version from './Version';
/**
* @author bbrown@google.com (Brian Brown)
*/
export default class BitMatrixParser {
private mappingBitMatrix;
private readMappingMatrix;
private version;
/**
* @param bitMatrix {@link BitMatrix} to parse
* @... |
/**
* 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 { IAuthorizationChecker } from '../../utils/auth/IAuthorizationChecker';
import { UserRole } from '../enums/UserRole';
import { IRequestContext } from '../IRequestContext';
import { Token } from '../models/Token';
export class TokenAuth implements IAuthorizationChecker {
public constructor(private token: Toke... |
/*
* Copyright 2019 Google Inc. 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... |
import { combineReducers } from "redux"
import { authReducer } from "./auth"
import { sectionReducer } from "./section"
import { threadReducer } from "./thread"
import { postReducer } from "./post"
export const combinedReducers = combineReducers({
auth: authReducer,
section: sectionReducer,
thread: threadR... |
import {
acceptCompletion,
closeCompletion,
moveCompletionSelection,
startCompletion,
} from "@codemirror/autocomplete"
import { deleteBracketPair } from "@codemirror/closebrackets"
import {
insertNewlineAndIndent,
cursorCharLeft,
selectCharLeft,
deleteLine,
moveLineDown,
moveLin... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PrivacyUrlComponent } from './privacy-url.component';
describe('PrivacyUrlComponent', () => {
let component: PrivacyUrlComponent;
let fixture: ComponentFixture<PrivacyUrlComponent>;
beforeEach(async(() => {
TestBed.configure... |
export { bootstrap } from './bootstrap';
export * from './logger/index';
export * from './core';
export * from './shared';
//export modules
export * from './tenant';
export * from './user';
export * from './organization';
export * from './core/seeds';
export * from './employee';
export * from './database/migration'; |
import { Channel, DMChannel, TextChannel } from 'discord.js';
/**
* Checks if the bot can send a message to a channel object.
* @param channel The channel to check if the bot can send a message to.
*/
export function channelIsSendable(channel: Channel | undefined): channel is TextChannel {
if (
!channel ||
(!(... |
import { Mode } from '../../../src/mode/mode';
import { Configuration } from '../../testConfiguration';
import { newTest } from '../../testSimplifier';
import { cleanUpWorkspace, setupWorkspace } from './../../testUtils';
suite('Dot Operator', () => {
setup(async () => {
const configuration = new Configuration()... |
import { CardModule } from 'primeng/card';
import { InputTextModule } from 'primeng/inputtext';
import { ButtonModule } from 'primeng/button';
import { MessagesModule } from 'primeng/messages';
import { MessageModule } from 'primeng/message';
import { ToastModule } from 'primeng/toast';
import { ToolbarModule } from 'p... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Checksum</source>
<translation>Über Checksum</translation>
</message>
<message>
<locati... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { RegistrationFormComponent } from './c... |
export * from './lib/lcu-wysiwyg.module';
export * from './lib/controls/lcu/lcu.component';
export * from './lib/directives/lcu.directive';
export * from './lib/models/lcu.model';
export * from './lib/services/lcu.service';
export * from './lib/state/lcu-manager.context';
export * from './lib/utils/lcu.utils';
export *... |
import React from "react";
import clsx from "clsx";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import styles from "./index.module.css";
import HomepageFeatures from "@site/src/components/HomepageFeatures";
function Homep... |
import styled from "@emotion/styled"
import { useDispatch, useSelector } from "react-redux"
import {
selectFlowArguments,
selectSelectedFlow,
} from "../redux/flows/flows.selectors"
import React, { useEffect, useState } from "react"
import { ModalParams } from "../redux/global/global.types"
import ReactModal, { Sty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.