text stringlengths 10 953k |
|---|
/*
Authors : initappz (Rahul Jograna)
Website : https://initappz.com/
App Name : ionic 5 groceryee app
Created : 10-Sep-2020
This App Template Source code is licensed as per the
terms found in the Website https://initappz.com/license
Copyright and Good Faith Purchasers © 2020-present initappz.
*/
import {... |
import test from 'ava'
import { Either, Func, Json } from '@mpal9000/ts-core'
import { wrapIs, isType } from './test.js'
import {
StorageImplementation,
initConfigurableStorage,
} from './initConfigurableStorage.js'
const undef = Func.always(undefined)
const createMockedStorageImplementation = (): StorageImplemen... |
import {Pipe, PipeTransform} from '@angular/core';
declare const math: any;
/*
* Raise the value exponentially
* Takes an exponent argument that defaults to 1.
* Usage:
* value | unit:unitFrom:unitTo
* Example:
* {{ 2000000 | unit:Wh:MWh}} MWh
* will display: 2 MWh
*/
@Pipe({name: 'unit'})
export class ... |
import {
newProject,
readJson,
runCLI,
uniq,
updateFile,
workspaceConfigName,
} from '@nrwl/e2e/utils';
describe('Run Commands', () => {
it('should not override environment variables already set when setting a custom env file path', async (done) => {
newProject();
const nodeapp = uniq('nodeapp');... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
*/
export const pkgName = "@fluidframework/odsp-driver";
export const pkgVersion = "0.57.0"; |
import {Injectable} from '@angular/core';
import * as firebase from 'firebase';
import {CookieService} from 'ngx-cookie-service';
import {Router} from '@angular/router';
@Injectable()
export class LoginService {
constructor(
private cookieService: CookieService,
private router: Router
) { }
... |
import * as React from 'react';
import { useStyles, useTelemetry, getElementType, useUnhandledProps } from '@fluentui/react-bindings';
import * as customPropTypes from '@fluentui/react-proptypes';
// @ts-ignore
import { ThemeContext } from 'react-fela';
import { childrenExist, commonPropTypes, createShorthandFactory, ... |
// Libraries
import _ from 'lodash'
import React, {PureComponent, ChangeEvent} from 'react'
import {InjectedRouter} from 'react-router'
import {connect} from 'react-redux'
// Components
import TaskForm from 'src/tasks/components/TaskForm'
import TaskHeader from 'src/tasks/components/TaskHeader'
import {Page} from '@in... |
import React from 'react';
import { Icon } from 'native-base';
import { colors } from '../../application/styles';
export const LinkIcon = (): JSX.Element => (
<Icon name='external-link' type='FontAwesome' style={{ fontSize: 12, color: colors.teal }} />
); |
import * as __aws_crypto_sha256_browser from "@aws-crypto/sha256-browser";
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_signature_v4 from "@aws-sdk/signature-v4";
import * as __aws_sdk_signing_middleware from "@aws-sdk/signing-middleware";
import * as __aws_sdk_types fr... |
import { Pane } from '../../model/pane';
import { GridRenderer, GridRendererData } from '../../renderers/grid-renderer';
import { IPaneRenderer } from '../../renderers/ipane-renderer';
import { IUpdatablePaneView } from './iupdatable-pane-view';
export class GridPaneView implements IUpdatablePaneView {
private reado... |
import { Component, h } from '@stencil/core';
import { MINUTE_IN_MS } from '../../../../utils/time';
import { TEST_DATA_POINT_STANDARD, Y_MAX, Y_MIN, X_MIN, X_MAX } from '../constants';
import { COMPARISON_OPERATOR, DataType } from '../../../..';
/**
* Testing route for the webGL rendering without being fully couple... |
import { Options } from './models';
const defaultErrorSettings = {
missingScenarioInStepDefinitions: true,
missingStepInStepDefinitions: true,
missingScenarioInFeature: true,
missingStepInFeature: true
};
const defaultConfiguration: Options = {
tagFilter: undefined,
scenarioNameTemplate: undefined,
erro... |
import { PropInjector } from '@material-ui/core';
export interface WithTheme<Theme> {
theme: Theme;
innerRef?: React.Ref<any>;
}
export default function withTheme<Theme>(): PropInjector<
WithTheme<Theme>,
Partial<WithTheme<Theme>>
>; |
import oneline from 'oneline'
import {isPlainObject} from 'lodash'
import {randomKey, toString as pathToString} from '@sanity/util/paths'
import {Template} from './Template'
import {TemplateParameter} from './TemplateParameters'
import {getDefaultSchema} from './parts/Schema'
export {validateInitialObjectValue, valida... |
import React from 'react'
import {Provider} from 'react-redux'
import {PersistGate} from 'redux-persist/integration/react'
import {SplashScreen} from './components/SplashScreen'
import {AuthLoader} from './modules/auth/AuthLoader'
import {persistor, store} from './redux/store'
export const App: React.FC = () => {
re... |
/*
* 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 Curve from 'curve25519-js'
import * as Utils from './Utils'
import {WAConnection as Base} from './0.Base'
import { WAMetric, WAFlag, BaileysError, Presence, WAUser, WAInitResponse } from './Constants'
export class WAConnection extends Base {
/** Authenticate the connection */
protected async a... |
import type {
Hash,
SparqlBindings,
} from '../common/types';
import type {ConnectionQuery} from '#/element/QueryTable/model/QueryTable';
import AsyncLockPool from './async-lock-pool';
export interface SparqlEndpointConfig {
endpoint: string;
prefixes?: Hash;
concurrency?: number;
variables?: Hash;
}
export t... |
import * as _ from "lodash";
import * as fs from "fs";
const handlebars = require("handlebars");
import { Signer } from "ethers";
import { Address } from "../../utils/types";
import { ASSETS } from "../assetInfo";
import { PRECISE_UNIT, ZERO } from "../../utils/constants";
import {
RebalanceReport,
RebalanceSumm... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { VSCTicketAuditComponent } from './vscticket-audit.component';
describe('VSCTicketAuditComponent', () => {
let component: VSCTicketAuditComponent;
let fixture: ComponentFixture<VSCTicketAuditComponent>;
beforeEach(async(() => {
... |
import {UserStats} from 'instinct-rp-interfaces';
import {UserRPStatsEntity} from './user-rp-stats.entity';
import {gangWire} from '../../gang/gang/gang.wire';
import {businessPositionWire} from '../../business/business-position/business-position.wire';
import {BusinessPositionEntity} from '../../business/business-posi... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
BaseContract,
ContractTransaction,
Overrides,
CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/byte... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { Editor } from 'tinymce/core/api/Editor';
import Node from 't... |
/*
* 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 from 'react';
import { storiesOf } from '@storybook/react';
impo... |
export * from "./ec2.handler";
export * from "./lambda.handler";
export * from "./stripe.handler"; |
import React from 'react';
import { RectButtonProps } from 'react-native-gesture-handler';
import { Container, Title } from './styles';
interface Props extends RectButtonProps {
title: string;
onPress: () => void;
}
export function Button({
title,
onPress,
...rest
} : Props){
return(
... |
const {htmlTags} = require("./htmlTags.ts");
var inquirer = require('inquirer')
const fs = require('fs')
// const path = require('path')
// const dirPath = path.join(__dirname, '/src/')
const webpackConfig = require('../../../../webpack.config.js')
const makeIndexFile = name => {
const indexFile = `export { defaul... |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { TransactionsListComponent } from './transactions-list.component';
describe('TransactionsListComponent', () => {
let component: TransactionsListComponent;
let fixture: ComponentFixture<TransactionsListComponent>;
beforeEac... |
/// Generated by expo-google-fonts/generator
/// Do not edit by hand unless you know what you are doing
///
export { useFonts } from './useFonts';
export const __metdata__: Any;
export const Griffy_400Regular: number; |
import { fiFI as fiFICore } from '@mui/material/locale';
import { GridLocaleText } from '../models/api/gridLocaleTextApi';
import { getGridLocalization, Localization } from '../utils/getGridLocalization';
const fiFIGrid: Partial<GridLocaleText> = {
// Root
noRowsLabel: 'Ei rivejä',
noResultsOverlayLabel: 'Ei tul... |
import { createDomain } from "effector";
export const backgroundDomain = createDomain(); |
import React from 'react';
import { StyleSheet, View } from 'react-native';
interface IProps {
color: string;
direction: 'up' | 'right' | 'down' | 'left';
height: number;
width: number;
}
export default function Triangle(props: IProps) {
let borderStyle;
if (props.direction === 'up') {
borderStyle = ... |
import { container } from 'tsyringe';
import mailConfig from '@config/mail';
import IMailProvider from '@shared/container/providers/MailProvider/models/IMailProvider';
import EtherealMailProvider from '@shared/container/providers/MailProvider/implementations/EtherealMailProvider';
import SESMailProvider from '@shared/... |
import { defaultAccountMiddleware } from './default-account';
import { EthSendTransactionRequest } from '../../interfaces';
import { of, throwError } from 'rxjs';
import { expect } from 'chai';
const defaultAccount = '0x7d76CC1e430fF6F16d184a3E7ee003502A95d4bB';
const mockNext = (x: any) => of(x);
describe('default ... |
/**
* Copyright 2017 Google 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 i... |
/*
* Copyright 2022 Salto Labs Ltd.
*
* 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 ... |
/**
* @module "ui/builder"
*/ /** */
import { View, Template, KeyedTemplate } from "../core/view";
import { Page } from "../page";
import { NavigationEntry } from "../frame";
//@private
/**
* @private
*/
export function _loadPage(moduleNamePath: string, fileName: string, moduleExports?: any): Page;
//@endprivate... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-form-basic',
templateUrl: './form-basic.component.html',
styleUrls: ['./form-basic.component.css']
})
export class FormBasicComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
// For typescript to recognize
declare module '*.jpg';
declare module '*.png';
declare module '*.jpeg';
declare module '*.gif';
declare module '*.svg'; |
/// <reference path="../../types/chai-bytes/index.d.ts" />
import { bitArrayToArray, arrayToBitArray } from "../../src/utils/BitArray";
import chaibytes from "chai-bytes";
import { expect, use } from "chai";
"use strict";
use(chaibytes);
describe("utils", function() {
describe("BitArray", function() {
d... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome... |
import {Mount} from "./Mount";
import {ContainerUpdateRequestBody} from "./ContainerUpdateRequestBody";
export interface HostConfig extends ContainerUpdateRequestBody {
Binds?: Array<string>;
ContainerIDFile?: string;
LogConfig?: LogConfig;
NetworkMode?: string;
PortBindings?: any;
AutoRemove?: ... |
import React from "react";
export const getImplementerToolsConfig = jest.fn().mockResolvedValue({});
export const ModuleNameContext = React.createContext("fake-module-config"); |
import { Camera } from "babylonjs/Cameras/camera";
import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
import { AnimationGroup } from "babylonjs/Animations/animationGroup";
import { Material } from "babylonjs/Materials/material";
import { Texture } from "babylonjs/Materials/Textures/texture";
impo... |
import { NgModule } from '@angular/core';
import { NgxsModule } from '@ngxs/store';
import { CommonModule } from '@angular/common';
import { NgxsFormPluginModule } from '@ngxs/form-plugin';
import { NgxsLoggerPluginModule } from '@ngxs/logger-plugin';
import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin... |
import { upperFirst, camelCase } from "lodash"
export default function renderContentTypeId(contentTypeId: string): string {
return "I" + upperFirst(camelCase(contentTypeId))
} |
import { Command } from "../../../client/structures/extensions";
import { ApplyOptions } from "@sapphire/decorators";
import type { Message } from "discord.js";
import axios from "axios";
import moment from "moment";
@ApplyOptions<Command.Options>({
name: "info",
aliases: ["userinfo", "uinfo"],
description: "Shows... |
import * as core from '@actions/core'
import {KubeflowConfig, getKubeflowConfig, getKfctl} from './kind-kf'
async function run() {
try {
const cfg: KubeflowConfig = getKubeflowConfig();
let toolPath: string = await getKfctl(cfg.version);
core.addPath(toolPath);
await cfg.deployKubeflow();
} catch (... |
import express from 'express';
import rateLimit from 'express-rate-limit';
import auth from './auth';
import * as controller from '../../../controllers/ImageController';
const routes = express.Router();
routes.post(
'/upload/:type',
rateLimit({
windowMs: 60 * 60 * 1000,
max: 9,
message: JSON.stringify(... |
import Vue from 'vue';
import { OmegaUp } from '../omegaup';
import T from '../lang';
import * as api from '../api';
import * as ui from '../ui';
import { types } from '../api_types';
import problem_Solution from '../components/problem/Solution.vue';
OmegaUp.on('ready', () => {
const payload = types.payloadParsers.... |
import { IObjectWithKey, ISelection, SelectionMode } from './interfaces';
export interface ISelectionOptions {
onSelectionChanged?: () => void;
getKey?: (item: IObjectWithKey, index?: number) => string | number;
canSelectItem?: (item: IObjectWithKey, index?: number) => boolean;
selectionMode?: Selection... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
* Copyright (C) 2017/2020 e-voyageurs technologies
*
* 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... |
import { ui } from "../ui/layaMaxUI";
import Net from "../net/Net";
import ViewType from "../game/ViewDefine";
export default class IndexUI extends ui.index.IndexUI {
private auth: string;
constructor() {
super();
}
onAwake(): void {
this.btnQuickStart.on(Laya.Event.CLICK, this, this.o... |
/**
* @license
* Copyright 2019 Balena Ltd.
*
* 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 o... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 Adobe Systems Incorporated
~
~ 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
~
~ htt... |
import {
beforeMount,
defineComponent,
FunctionalComponent,
html,
query,
watch,
} from '@vuerd/lit-observable';
import { classMap } from 'lit-html/directives/class-map';
import { styleMap } from 'lit-html/directives/style-map';
import { lastCursorFocus } from '@/core/helper/dom.helper';
import { useUnmount... |
/**
* title: 不同尺寸
* desc: 按钮类型的单选框分为 4 个尺寸,分别为 `mini`, `small`, `default`, `large`。
*/
import { Radio } from '@sensoro-design/react';
const RadioGroup = Radio.Group;
const options = [
{
value: 'Beijing',
label: 'Beijing',
},
{
value: 'Shanghai',
label: 'Shanghai',
},
{
value: 'Guangzho... |
import { IFileDocument } from "../../models/file/index";
export const images: IFileDocument[] = [
{
id: "1",
cloudinaryId: "photo-1589814976706-04cd504d0c71",
url:
"https://res.cloudinary.com/dcqjmkwvc/image/upload/v1594067437/photo-1589814976706-04cd504d0c71.jpg",
},
{
id: "2",
cloudina... |
import { LoadingPlaceholder } from '@grafana/ui';
import {
AlertManagerCortexConfig,
GrafanaManagedReceiverConfig,
Receiver,
} from 'app/plugins/datasource/alertmanager/types';
import React, { FC, useEffect, useMemo } from 'react';
import { useDispatch } from 'react-redux';
import { useUnifiedAlertingSelector } f... |
import React, { useState } from 'react'
import { View, Text, SafeAreaView, TextInput as Input, Image, TouchableOpacity } from 'react-native'
import { AntDesign } from '@expo/vector-icons'
import styles from './styles'
const SignUp = ({ navigation }) => {
const [state, setState] = useState({
firstName: '',
la... |
import { IToken, tokenName } from "../../scan/tokens_public"
import { CstNode } from "./cst_public"
import { gast } from "../grammar/gast_public"
import {
cloneObj,
drop,
forEach,
has,
isEmpty,
isUndefined,
map
} from "../../utils/utils"
import { HashTable } from "../../lang/lang_extensions"... |
export { TodoEditComponent } from './todo-edit.component'; |
import { manualReviewSchema } from './manual-review';
import { invalidValueSchema } from './invalid-value/invalid-value';
import { autoDeclineIVSchema } from './invalid-value/auto-decline';
import { exceptionValueIVSchema } from './invalid-value/exception-value';
import { invalidItemsSchema } from './invalid-items/inva... |
/* eslint no-underscore-dangle: 0 */
import EventEmitter from 'eventemitter3';
import memoize from 'memoizerific';
import debounce from 'lodash/debounce';
import { stripIndents } from 'common-tags';
import { Channel } from '@storybook/channels';
import Events from '@storybook/core-events';
import { logger } from '@sto... |
import yargs, { Argv } from 'yargs';
import { pathExists } from 'fs-extra';
import CliTable3, { Table } from 'cli-table3';
import c from 'ansi-colors';
import { Configuration, ConfigurationLoader, IDatabaseDriver, MikroORM, Utils } from '@mikro-orm/core';
import { ClearCacheCommand } from './commands/ClearCacheCommand... |
import * as http from 'http'
import { Endpoint, RouteOutput } from '../interfaces'
import Methods from '../consts/methods'
import { checkToken } from '../utils/routes'
import Order from '../models/Order'
import payment from '../utils/payment'
import mailgun from '../utils/mailgun'
import User from '../models/User';
co... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sv" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About bitspace</source>
<translation>Vad du behöver veta om bitspace</translation>
</message>
<messag... |
/* eslint-disable no-console */
import * as React from "react";
import {
FormProps,
SingleElementVisualizerProps,
} from "../../../registry/visualization";
import { KeyValueTable } from "./KeyValueTable";
import { Card } from "./Card";
import { CaptureVideoDatasetConfiguration } from "@farm-ng/genproto-perception/f... |
import { AppStore } from '../interfaces/types'
import BaseClient from './BaseClient'
import BasketApi from '../api/basket'
export default class BasketClient extends BaseClient<BasketApi> {
loadAll(basket: AppStore['basket']) {
this.api
.getAll()
.then((baskets) => basket.setBaskets(baskets))
.c... |
<TS language="es_VE" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
/*
* Project: ZilPay-wallet
* Author: Rinat(lich666dead)
* -----
* Modified By: the developer formerly known as Rinat(lich666dead) at <lich666black@gmail.com>
* -----
* Copyright (c) 2020 ZilPay
*/
export const ProfileSVG = `
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M10.0001 20C8.4... |
import React, { Component, ReactElement } from 'react';
import styled from '@emotion/styled';
import { DragDropContext } from '../../../src';
import initial from './data';
import Column from './column';
import type { Result as ReorderResult } from './utils';
import { mutliDragAwareReorder, multiSelectTo as multiSelect ... |
import { StyleSheet } from 'react-native';
import colors from '../../styles/colors';
import fonts from '../../styles/fonts';
export const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'space-around',
width: '100%',
},
content: {
flex: 1,
width:... |
import * as React from "react"
import { Link } from 'react-router-dom';
import { Session } from '../../common/';
import { SessionContext } from '../../common';
interface Props {
login : string;
}
const LoginComponent = (props: Props) =>
<>
<h2>Hello from page B</h2>
<br />
<br />
<h3>Login: {props... |
export * from './initBkash';
export * from './interfaces';
export * from './loadScript';
export * from './loadDeps'; |
import { injectable, inject } from 'tsyringe';
import AppError from '@shared/errors/AppError';
import ICacheProvider from 'shared/container/providers/CacheProvider/models/ICacheProvider';
import IUsersRepository from '../repositories/IUsersRepository';
import IHashProvider from '../providers/HashProvider/models/IHashP... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NavComponent } from './nav.component';
@NgModule({
imports: [
CommonModule
],
declarations: [NavComponent],
exports: [NavComponent]
})
export class NavModule { } |
import { FC, Fragment, createElement as h } from 'react';
import { Helmet } from 'react-helmet-async';
import { PageProps } from '@not-govuk/app-composer';
import { A } from '@not-govuk/components';
import { AnchorList } from '@not-govuk/anchor-list';
const reduceToLookup = (acc: object, cur) => ({...acc, [cur.default... |
import { act, render, screen } from '@testing-library/react';
import { ComponentType } from 'react';
import { Route, StaticRouter } from 'react-router';
import Constants from '../../../commons/utils/Constants';
import * as GitHubUtils from '../../../features/github/GitHubUtils';
import GitHubCallback from '../GitHubCa... |
/*
* 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 { schema } from '@kbn/config-schema';
import { ILegacyScopedClusterCli... |
import { Collapse, CollapseItem, Badge } from 'element-ui'
import { model } from '@formily-x/reactive'
import type {
Collapse as CollapseProps,
CollapseItem as CollapseItemProps,
} from 'element-ui'
import {
useField,
useFieldSchema,
RecursionField,
h,
Fragment,
} from '@formily-x/vue'
import { observer }... |
import { HttpException, Injectable } from "@nestjs/common";
import { InjectModel, MongooseModule } from "@nestjs/mongoose";
import { Model } from "mongoose";
import { Moto } from "./motos.interface";
@Injectable()
export class MotosService{
constructor(
@InjectModel('Motos')
private readonly motosM... |
import { ListMasterPage } from './list-master/list-master';
import { SearchPage } from './search/search';
import { SettingsPage } from './settings/settings';
import { TabsPage } from './tabs/tabs';
import { TutorialPage } from './tutorial/tutorial';
// The page the user lands on after opening the app and without a ses... |
import { GluegunToolbox } from 'gluegun'
module.exports = {
name: 'generate:module',
description: 'create a new module inside the app',
run: async (toolbox: GluegunToolbox) => {
const { parameters, print: { success, error } } = toolbox;
const name = parameters.first;
if(!name) {
error('ERROR: m... |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type TicketsDocument = Tickets & Document;
@Schema()
export class Tickets {
@Prop() id: string;
@Prop() name: string;
@Prop() cost: number;
}
export const TicketsSchema = SchemaFactory.createForClass(Tic... |
import {labelsToList} from './labels-to-list';
describe('labelsToList()', (): void => {
let labels: string;
describe('when the given labels is empty', (): void => {
beforeEach((): void => {
labels = '';
});
it('should return an empty list of labels', (): void => {
expect.assertions(1);
... |
export const data = [
{
Username: "40220bba-65cd-4da9-800b-d91f294f8f2f",
Attributes: [
{
Name: "sub",
Value: "40220bba-65cd-4da9-800b-d91f294f8f2f",
},
{
Name: "email",
Value: "admin@example.com",
},
],
UserCreateDate: "2019-12-14T06:11:29.948Z"... |
// import
import type {DependencyList, EffectCallback} from 'react';
import {useEffect, useCallback, useRef} from 'react';
// fns
const noop: () => void = () => undefined;
// refs
export function useIsMountRef() {
const ref = useRef(true);
useEffect(() => {
ref.current = false;
}, []);
return ref;
}... |
import { Context, Middleware } from "telegraf";
import { BotCommand } from "@telegram/common";
const help: Middleware<Context> = async function(ctx) {
ctx.replyWithHTML(
"Tap /start to get started.\n\n" +
"Tap /connect_gmail to subcribe for new emails.\n\n" +
"To forward emails from gmail i... |
/* Copyright Contributors to the Open Cluster Management project */
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { makeStyles } from '@material-ui/core'
import { CSSProperties } from '@material-ui/styles'
import { Label, LabelGroup } from '@patternfly/react-core'
import React, { Fragment, useMe... |
import { JSONSchema } from '../../src/decorators/JSONSchema';
@JSONSchema
export class JSONSchema1Sample {} |
import { EntityCounts, SearchDataFunctionType, SearchResponse } from 'Models';
import { User } from '../../generated/entity/teams/user';
export interface MyDataProps {
countServices: number;
userDetails: User;
searchResult: SearchResponse | undefined;
fetchData: (value: SearchDataFunctionType) => void;
entit... |
/*
* 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... |
/*
* 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 { cloneHttpFetchQuery } from './clone_http_fetch_query';
import { Http... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {combineReducers} from 'redux';
import {General} from '../constants';
import {enableBatching, Action, Reducer} from 'types/actions';
import reducerRegistry from './reducer_registry';
export functi... |
import { createGlobalStyle } from 'styled-components';
const GlobalStyle = createGlobalStyle`
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
... |
import { Icon } from "@blueprintjs/core";
import { ReduxActionTypes } from "constants/ReduxActionConstants";
import { getOnboardingCheckListUrl } from "constants/routes";
import { useIsWidgetActionConnectionPresent } from "pages/Editor/utils";
import React, { SyntheticEvent } from "react";
import { useDispatch, useSele... |
import { useCallback, useContext } from "react";
import NotificationContext from "context/NotificationContext";
import { nanoid } from "nanoid";
import { UseNotification, Notification } from "types/notification";
export default function useNotification(): UseNotification {
const context = useContext(NotificationCont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.