text stringlengths 10 953k |
|---|
import React, { ComponentType } from 'react'
import HistoryPageComponent from '../components/HistoryPageComponent'
import { AppState } from '../../../redux/store'
import { compose } from 'redux'
import { connect } from 'react-redux'
import { fetchUserData } from '../../../redux/selectors'
import { HistoryPagePropsType ... |
export function buildCommunityOutreachTOC() {
let toc = document.getElementById('community-outreach-toc');
if (!toc) {
return;
}
let tocHTML = '<ol>';
document.getElementById('community-outreach-content').querySelectorAll('h2').forEach((elt) => {
if (elt.id) {
tocHTML += `<li><a href="#${elt.... |
import { Constants } from "@alice-core/Constants";
import { Subcommand } from "@alice-interfaces/core/Subcommand";
import { OperationResult } from "@alice-interfaces/core/OperationResult";
import { EmbedCreator } from "@alice-utils/creators/EmbedCreator";
import { MessageCreator } from "@alice-utils/creators/MessageCre... |
import * as React from "react";
import { Popover, Button, ButtonLink, Heading, Stack } from "@kiwicom/orbit-components";
import { QuestionCircle } from "@kiwicom/orbit-components/icons";
export default {
Example: () => (
<Stack>
<Stack>
<Heading type="title3" as="h4">
Start
</Head... |
import request from 'supertest';
import { suite, setPermission } from '@tests/integration/helpers';
export default (): void => {
const url = '/api/admin/images/maps';
it('should return 401 when no / invalid token', async () => {
const { status } = await request(suite.app).get(url).set('Accept', 'application/j... |
import { Identifier, JSXIdentifier, Node } from '@babel/types';
interface Location {
start: number | null;
end: number | null;
}
class ParsableElement {
private path: string;
private location: Location | undefined;
private node: Node | undefined;
private name: string | undefined;
constructor(path: stri... |
import { FunctionComponent } from 'react';
import { Combo } from '@storybook/api';
export declare const mapper: ({ state }: Combo) => {
notifications: import("@storybook/api/dist/modules/notifications").Notification[];
clearNotification: (id: string) => void;
};
declare const NotificationConnect: FunctionCompon... |
import * as React from 'react';
import { ObjectValidation, Pod } from '../../../types/IstioObjects';
import { Col, Row, Table } from 'patternfly-react';
import * as resolve from 'table-resolver';
import { ConfigIndicator } from '../../../components/ConfigValidation/ConfigIndicator';
import Labels from '../../../compone... |
/**
* V2Ray 提供了一些关于其运行状况的统计信息
*/
export class StatsObject {} |
<TS language="de" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtsklick zum Bearbeiten der Adresse oder der Bezeichnung</translation>
</message>
<message>
<source>Create a new address</source... |
export const IS_FOCUSABLE_ATTRIBUTE = 'data-is-focusable'
export const IS_VISIBLE_ATTRIBUTE = 'data-is-visible'
export const FOCUSZONE_ID_ATTRIBUTE = 'data-focuszone-id'
export const FOCUSZONE_SUB_ATTRIBUTE = 'data-is-sub-focuszone'
export const HIDDEN_FROM_ACC_TREE = 'data-is-hidden-from-acc-tree'
export const FOCUSZO... |
// unFlat & slice array To Average by groupLen
export const sliceToAverage = <T>(arr: Array<T>,
groupLen: number): Array<T>[] => {
let index = 0;
const newArr = [];
while (index < arr.length) {
newArr.push(arr.slice(index, index += groupLen));
}
return newArr;
}; |
"use strict";
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import {
commands,
DocumentFilter,
ExtensionContext,
languages,
workspace
} from "vscode";
import { loadEditHelpers } from "./features/editHelpers";
impor... |
import natsort from '../../src'
describe('mixed values types:', () => {
it('number always comes first', () => {
const arr1 = ['a', 1]
const arr2 = [1, 'a']
expect(arr1.sort(natsort())).toEqual(arr2)
expect(arr2.sort(natsort())).toEqual(arr2)
})
it('number vs numeric string - should remain unchan... |
// /src/image/motion_photos_auto/materialiconstwotone/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgMotionPhotosAutoTwotone = 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">
<rect fill="none" height=... |
import { Accessor, createSignal } from "solid-js";
import { createEmitter, EmitterConfig } from './emitter'
import {
ClearListeners,
GenericEmit,
GenericListener,
ListenProtect
} from "./types";
export type EventBusListener<Event, V = Event | undefined> = GenericListener<[Event, V]>;
export type EventBusListen... |
import { Module } from '@nestjs/common';
import { TaskService } from './task.service';
import { TaskController } from './task.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { TaskSchema } from './schemas/task.schema';
@Module({
imports: [MongooseModule.forFeature([{ name: 'Task', schema: Task... |
import 'reflect-metadata';
import { injectable, METADATA_KEY } from 'inversify';
import { Metadata } from 'inversify/lib/planning/metadata';
import { MiddlewareConfigType, HandlerMeta, HandlerConfigType } from './types/handler';
import { ExtensionConfigurationType, extensionConfigurationMetadataKey } from './types/cor... |
// Type definitions for non-npm package login-with-amazon-sdk-browser 1.0
// Project: https://developer.amazon.com/login-with-amazon
// Definitions by: Jeff Held <https://github.com/solkaz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
/**
* Option form to request an ac... |
import type { IHiccupPathSegment } from "@thi.ng/geom-api";
import { __copyShape } from "../internal/copy.js";
import { APC } from "./apc.js";
export class Cubic extends APC implements IHiccupPathSegment {
get type() {
return "cubic";
}
copy(): Cubic {
return <Cubic>__copyShape(Cubic, this... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
import { Subject } from 'rxjs';
import { take, takeUntil } from 'rxjs/operators';
import { Store } from '@ngrx/store';
import { faEye, faEyeSlash } from "@fortawesome/free-solid-svg-icons";
import { MatPaginator, MatPaginatorIntl } from '@angular... |
import Base from './baseController';
/**
* The following class is for testing purposes
* the method 'insert' uses 'save' option of mongoose model to save an entry
* */
export default class ChannelClass<T extends any> extends Base<T> {
constructor(model: T) {
super(model);
}
public insert(root:... |
import { Injectable } from '@angular/core';
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor} from '@angular/common/http';
import { Observable } from 'rxjs';
import { AuthenticationService } from '../services';
@Injectable()
export class JwtInterceptor implements HttpInterceptor {
constructor(private a... |
/**
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
import { HttpController } from "@yellow-snow/http";
import { Request, Response } from "express";
import { Injector } from "tsnode-di";
import { RateLimitService } from "../services/rate-limit-service";
export function RateLimit() {
const rate_limit_service = Injector.resolve<RateLimitService>(RateLimitService);
re... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DiceStake</source>
<translation>关于黑币</translation>
</message>
<message>
<location li... |
import { StyledIcon } from '@styled-icons/styled-icon';
export declare const PaintBucket: StyledIcon;
export declare const PaintBucketDimensions: {
height: number;
width: number;
}; |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import IUsersRepository from 'src/modules/users/repositories/IUsersRepository';
import { ILike, Repository } from 'typeorm';
import { BaseRepository } from '../../../../../shared/infra/typeorm/repositories/BaseRepository';
... |
import { Body, Controller, Get, Post } from '@nestjs/common';
import { CreatorService } from './creator.service';
import { addCreatorDTO } from './dto';
@Controller("creator")
export class CreatorController {
constructor(private readonly creatorService: CreatorService) {}
@Get()
findAll() {
return this.crea... |
/**
* @license Angular v7.2.13
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
export * from './testing/testing'; |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import formatMessage from 'format-message';
import { CardProps } from './../components/Notifications/NotificationCard';
export const getQnaPendingNotification = (url: string): CardProps => {
return {
title: formatMessage('Creating your kn... |
import * as DC from "discovery-channel";
import { EventEmitter } from "events";
import { Introducer, JoinOptions, Peer } from "@sammacbeth/discovery-swarm";
export interface DiscoveryOptions {
dns?: boolean
dht?: boolean
hash?: (any) => any
}
export default class DiscoveryChannel extends EventEmitter implements... |
import { company } from './company';
import { coworker } from './coworker';
import { deal } from './deal';
import { person } from './person';
export const limeobjects = {
company: company,
coworker: coworker,
person: person,
deal: deal,
solutionimprovement: [],
mailing: [],
history: [],
... |
import Polyfill from './polyfill'
Polyfill()
import Vue from 'vue'
import iView from 'iview'
import VueI18n from 'vue-i18n'
import Router from './router'
import gomanEN from './i18n/en-US'
import gomanZH from './i18n/zh-CN'
import App from '../vue/app.vue'
Vue.use(VueI18n)
Vue.use(iView)
const i18n = new VueI18n({... |
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace iamcred... |
export { default } from './AddSkillForm';
export * from './AddSkillForm.types'; |
import { injectable, inject } from 'tsyringe';
import { DeleteResult } from 'typeorm';
import Menu from '../infra/typeorm/entities/Menu';
import IMenusRepository from '../repositories/IMenusRepository';
import ITruckProfilesRepository from '@modules/foodtrucks/repositories/ITruckProfilesRepository';
import AppError f... |
export declare type Maybe<T> = T | null;
export declare interface IPath {
[key:string]:string;
}
export declare interface IQuery {
[key:string]: string | string[];
}
export declare interface IEnv {
}
export declare interface IEvent<T> {
body:T;
multiValueQueryStringParameters: Maybe<{
[key:... |
import React from 'react';
import styled from 'styled-components';
import { ColorProps } from '@heathmont/moon-themes';
import { themed } from '@heathmont/moon-utils';
const Svg = (props: React.SVGProps<SVGSVGElement>) => (
<svg
width="1em"
height="1em"
viewBox="0 0 32 32"
fill="none"
xmlns="http... |
export { AidModel } from './aid.model' |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Giantbird</source>
<translation type="unfinished"/>
</message>
<message>
<location line... |
export interface User {
id: number,
email: string,
name: string,
createdAt: Date,
updatedAt: Date
} |
import { AsyncWrappable, AsyncIterableIterator } from '../../types/async-iterable';
declare function asyncDropWhile<T>(predicate: (value: T, i: number) => boolean | Promise<boolean>): (source: AsyncWrappable<T>) => AsyncIterableIterator<T>;
declare function asyncDropWhile<T>(predicate: (value: T, i: number) => boolean ... |
import squel from 'squel'
import { Expression } from '..'
import { IFunctionExpression } from '../interface'
import { parseExpr } from '../parse'
import { CaseExpression } from './CaseExpression'
import { ColumnExpression } from './ColumnExpression'
import { ParameterExpression } from './ParameterExpression'
/**
* JQ... |
/*
Copyright 2016 - 2022 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 required by applicable law or agreed... |
import { Config, validate } from "../src";
import * as browserValidate from "../src/browser/validate";
import * as common from "../src/common";
import { mockConfig } from "./constants";
describe("validate", () => {
let browserValidateMock: jest.SpyInstance<boolean, [config: Config]>;
let commonValidateMock: jest.... |
import React from "react"
import { useTranslation } from "react-i18next"
import Badge, { BadgeProps } from "@material-ui/core/Badge"
import CardActionArea from "@material-ui/core/CardActionArea"
import CardContent from "@material-ui/core/CardContent"
import makeStyles from "@material-ui/core/styles/makeStyles"
import T... |
import { TestBed, async } from '@angular/core/testing';
import {
RouterTestingModule
} from '@angular/router/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { AppComponent } from './app.component';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { AccountDataService }... |
//#region imports
import "css!./ser-ext-ondemandDirective.css";
import * as template from "text!./ser-ext-ondemandDirective.html";
import { utils, directives } from "./node_modules/davinci.js/dist/umd/daVinci";
import { ISerGeneral, ISerConnection, SelectionType, ISerTemplate, ISerSenseSelection } from "./node_modules/... |
export { IDeviceProfilesPersistence } from './IDeviceProfilesPersistence';
export { DeviceProfilesMemoryPersistence } from './DeviceProfilesMemoryPersistence';
export { DeviceProfilesFilePersistence } from './DeviceProfilesFilePersistence';
export { DeviceProfilesMongoDbPersistence } from './DeviceProfilesMongoDbPersis... |
/**
* @license
* Copyright Google LLC 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 {Component, ViewEncapsulation} from '@angular/core';
/** Root component for the dev-app demos. */
@Component(... |
import { expect } from "chai";
import {
addProp,
} from "@pnp/queryable";
import "@pnp/sp/webs";
describe("add-prop", function () {
it("Should add a property to an object", async function () {
function tester() {
this.name = "Testing";
}
addProp(tester, "prop", (_o, path)... |
export * from '../lib'
export { default } from '../lib' |
import { ConfigModule, ConfigService } from '@nestjs/config';
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { UserModule } from '../user/user.module';
import { PassportModule } from '@nestjs/passport';
import { LocalStrategy } from './local.strategy';
import { JwtModule }... |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... |
export interface Error {
code: string;
message: string;
}
/**
* Generate an error object, useful for throwing inside a catch block.
*/
export function error(code: string = "@general/unknown-error", message: string = "Something went wrong. Please try again."): Error {
return { code, message };
} |
export interface BaseItem {
name: string;
price: number;
description: string;
image: string;
}
export interface Item extends BaseItem {
id: number;
} |
import * as bson from 'bson';
// enable hex string caching
bson.ObjectID.cacheHexString = true
let BSON = new bson.BSON();
let Long = bson.Long;
let doc = { long: Long.fromNumber(100) }
// Serialize a document
let data = BSON.serialize(doc);
console.log("data:", data);
// Deserialize the resulting Buffer
let doc_2... |
import { Dialog, Transition } from "@headlessui/react";
import { Fragment } from "react";
import Link from "@/components/Link";
import { FaExternalLinkAlt } from "react-icons/fa";
import ThemeSwitcher from "./ThemeSwitcher";
interface MobileMenuProps {
isOpen: boolean;
onClose: () => void;
}
const links = [
{
... |
import { mockRequest } from '../../../test/unit/utils/mockRequest';
import { mockResponse } from '../../../test/unit/utils/mockResponse';
import { generateContent } from '../../steps/birth-mother/nationality/content';
import { FieldPrefix } from '../case/case';
import NationalityGetController from './NationalityGetCon... |
/*
* Copyright 2020 Spotify AB
*
* 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 i... |
import * as React from 'react';
import styled, { css } from 'styled-components';
import './global-stylings';
import { Menu } from './menu';
import { MenuContainer } from './menu-container';
import {
LabelComponentProps,
MenuComponentProps,
Option,
SelectProps
} from './typings';
import {
equal,
... |
import { StyleSheet } from 'react-native';
import { roboto, sanfrancisco, natura } from '../fonts/fonts';
export const display = StyleSheet.create({
Large: {
fontFamily: natura.regular,
fontSize: 88,
fontWeight: '400',
lineHeight: 96,
},
Medium: {
fontFamily: natura.regular,
fontSize: 72,... |
export const description = `
Execution Tests for the 'abs' builtin function
`;
import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { assert } from '../../../../common/util/util.js';
import { GPUTest } from '../../../gpu_test.js';
import { NumberRepr } from '../../../util/conversion.js';
... |
import { parse } from "graphql";
import {
generateQueryIds,
findUsedFragments,
findFragments,
plugin,
PluginConfig,
} from "../src";
const SCHEMA = {} as any;
// Nooop gql fn for prettier
function gql(...things: TemplateStringsArray[]) {
return things.join("");
}
function runPlugin(docs: any,... |
import { IStandardHeader } from './set/standard_header'
import { IInstrument } from './set/instrument'
import { IParties } from './set/parties'
import { IStandardTrailer } from './set/standard_trailer'
/*
***************************************************************
* The quote status request message is used for the... |
import { Directive, HostBinding, Input } from '@angular/core';
import { AccordionBase, AccordionOptions } from './accordion.type';
@Directive()
export abstract class AccordionBaseComponent<T extends AccordionBase> {
@Input() item: any | T;
@Input() deepth = 0;
@Input() parent: any | T;
@HostBinding('class.dis... |
import { TagSize, TagVariant, TagState } from "./interfaces";
export declare class SuxTag {
/**
* label for the tag
*/
label: string;
/**
* Size
*/
size: TagSize;
/**
* Variant
*/
variant: TagVariant;
/**
* State
*/
state: TagState;
render(): any;
} |
import {ChangeDetectionStrategy, Component} from '@angular/core';
@Component({
selector: 'jms-profile',
templateUrl: './profile.component.html',
styleUrls: ['./profile.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ProfileComponent {} |
import { Component, OnInit } from "@angular/core";
import { ConfigService } from "../../../config/config.service";
import Swal from "sweetalert2";
import { BehaviorSubject, Observable } from "rxjs";
@Component({
selector: "app-document-list",
templateUrl: "./document-list.component.html",
styleUrls: ["./document... |
export const environment = {
production: true,
resourceApi: "https://api.kevinjake.cf/resources-api",
inventoryApi: "https://api.kevinjake.cf/inventory-api",
clientApi: "https://api.kevinjake.cf/clients-api",
rentingApi: "https://api.kevinjake.cf/renting-api",
}; |
import * as semver from 'semver';
import {Config} from '../config';
import {BinaryUrl} from './binary';
import {XmlConfigSource} from './config_source';
export class ChromeXml extends XmlConfigSource {
constructor() {
super('chrome', Config.cdnUrls()['chrome']);
}
getUrl(version: string): Promise<BinaryUr... |
import { ITarefa } from '../../../types/tarefa';
import style from './Item.module.scss';
interface Props extends ITarefa {
selecionaTarefa: (tarefaSelecionada: ITarefa) => void
}
export default function Item(
{
tarefa,
tempo,
selecionado,
completado,
id,
selecionaTarefa
}: Props) {
re... |
import { InvalidQueryError } from '../errors'
import { URLBuilder } from './url-builder'
describe('URL Builder', () => {
test('should returns initial uri if no param is provided', () => {
const sut = new URLBuilder('users')
expect(sut.handler()).toBe('users')
})
test('should returns uri with param if pa... |
import React, { FC } from 'react';
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet';
const withModalProvider = (Component: FC) => () =>
(
<BottomSheetModalProvider>
<Component />
</BottomSheetModalProvider>
);
export default withModalProvider; |
import { Component } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { of } from 'rxjs';
import { map, catchError } from 'rxjs/operators';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
})
export class AppComponent {
public constructor(private http: HttpCl... |
import { InventoryOptimizer } from './inventory-optimizer';
import { InventoryItem } from '../../../model/user/inventory/inventory-item';
import { UserInventory } from '../../../model/user/inventory/user-inventory';
import { ListRow } from '../../../modules/list/model/list-row';
import { TranslateService } from '@ngx-t... |
import { html, PropertyValues } from "lit";
import { customElement, state } from "lit/decorators";
import { isNavigationClick } from "../common/dom/is-navigation-click";
import { navigate } from "../common/navigate";
import { getStorageDefaultPanelUrlPath } from "../data/panel";
import "../resources/custom-card-support... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { createTheme } from '@mui/material/styles';
// A custom theme for this app
const theme = createTheme({
palette: {
mode: 'light'
},
});
export default theme; |
import {useCallback} from 'react';
import useBombFinance from './useBombFinance';
import useHandleTransactionReceipt from './useHandleTransactionReceipt';
const useWithdrawFromBoardroom = () => {
const bombFinance = useBombFinance();
const handleTransactionReceipt = useHandleTransactionReceipt();
const handleWi... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Posts} from 'mattermost-redux/constants';
import * as ReduxPostUtils from 'mattermost-redux/utils/post_utils';
import {Post} ... |
import { manipulateCartQuantity } from '../../../../helpers/cart';
import * as siteContextSelector from '../../../../helpers/site-context-selector';
describe('Language switch - checkout page', () => {
const checkoutShippingPath =
siteContextSelector.CHECKOUT_SHIPPING_ADDRESS_PATH;
const checkoutDeliveryPath = ... |
/**
* @file FolderWithdrawalOne 退出文件夹1
* @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(
'folder-withdrawal-one',
true,
(props: ISvgIcon... |
import jayson from 'jayson' // JSON-RPC helper
import winston from 'winston' // logger
import connect from 'connect' // expressJS-like middleware helper
import cors from 'cors' // CORS middleware
import bodyParser from 'body-parser' // request body parsing middleware
import initHandlers from './handlers' // airswap mak... |
import type { Category, PermissionTuple, Role, Server as ServerI, SystemMessageChannels } from 'revolt-api/types/Servers';
import type { RemoveServerField, Route } from '../api/routes';
import type { Attachment } from 'revolt-api/types/Autumn';
import { makeAutoObservable, action, runInAction, computed } from 'mobx';
... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { UserListComponent } from './user-list.component';
import { UserDetailComponent } from './detail/user-detail.component';
import { NgxTethysModule } from 'ngx-tethys';
import { DemoCommonModule } from '@demo/common';
import... |
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
export { EventFilterProcessor } from './EventFilterProcessor';
export { FilterEventProcessor } from './FilterEventProcessor';
export { PartitionedEventFilterProcessor } ... |
import { combineReducers } from 'redux';
import { IAction } from '../../types';
const initialState = {
id: 0,
username: 'Guest',
email: 'guest@test.xyz',
token: '',
};
const userReducer = (state = initialState, { type, userInfo }: IAction) => {
switch (type) {
case 'AUTH':
return {
...state,
id: use... |
///
/// Copyright © 2016-2021 The Thingsboard 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... |
/**
* An object to maintain the search filters used by the project component.
* @export ProjectFilters
* @class ProjectFilters
*/
export class ProjectFilters {
public keyword: string;
public commentPeriodStatus: string;
public proponent: string;
public type: string;
public decision: string;
public decis... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {
MatToolbarModule,
MatGridListModule,
MatFormFieldModule,
MatInputModule,
MatDialogModule,
MatTooltipModule,
MatIconModule,
MatCardModule,
MatExpansionModule,
MatSlideToggleModule... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Compiler } from 'webpack';
import { Options } from '@remax/types';
import API from '../../../../API';
import createAppManifest from './createAppManifest';
import createPageTemplate, { createBaseTemplate } from './createPageTemplate';
import createTurboPageTemplate from './createTurboPageTemplate';
import creat... |
import { AccessTypes } from '../../../data/AccessTypes';
import { DataAccess } from '../../../data/DataAccess';
import { DataTypes } from '../../../data/DataTypes';
import { InputManager } from '../../../io/InputManager';
import { OutputManager } from '../../../io/OutputManager';
import { NodeBase } from '../../NodeBas... |
// 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... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
getLeafId,
LayoutBase,
LayoutNode,
} from '../system/platform/component/app/graph/Graph/Component'
import { Style } from '../system/platform/Props'
import { Tree } from '../Tree'
import { Dict } from '../types/Dict'
import { Component } from './component'
import { extractStyle } from './extractStyle'
imp... |
import {Pipe, PipeTransform} from '@angular/core';
import {SortOrderEnum} from '../enums/sort-order.enum';
@Pipe({
name: 'sortArrow'
})
export class SortArrowPipe implements PipeTransform {
transform(value: SortOrderEnum, ...args: unknown[]): string {
if (value) {
if (value === SortOrderEnum.ASC) {
... |
import config from "config";
import { Client } from "../src";
import { FolderTypes } from "../src/models/Message";
const address = "azefaefafaezf@mailsac.com";
const messageId = "0sc5574uFAvXYjp1i2Nf8HUE6-0";
let publicClient: Client;
let privateClient: Client;
beforeAll((done) => {
publicClient = new Client();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.