text stringlengths 10 953k |
|---|
/*
* The coLAB project
* Copyright (C) 2021 AlbaSim, MEI, HEIG-VD, HES-SO
*
* Licensed under the MIT License
*/
import * as React from 'react';
import { useProject } from '../../selectors/projectSelector';
interface Props {
projectId: number;
}
// Display one project and allow to edit it
export function Proje... |
import { Component, OnInit } from '@angular/core';
import * as wirelessInfo from '../../../../../assets/json/wireless-info.json';
@Component({
selector: 'app-icons',
templateUrl: './icons.component.html',
styleUrls: ['./icons.component.scss']
})
export class IconsComponent implements OnInit {
items: any[];
co... |
import { ResourceOperation } from "./resource-operation";
export interface ProfileResource {
name: string,
get: ResourceOperation[],
set: ResourceOperation[]
} |
import ICasellaProprieta from "../../../../interfaces/caselle/ICasellaProprieta";
import React from "react";
import {IDescrizioneProprieta} from "../Proprieta";
import ICasellaStazione, {ICasellaStazioneState} from "../../../../interfaces/caselle/ICasellaStazione";
import VendiBtn from "../tastiFunzione/VendiBtn";
impo... |
import create from 'zustand'
import { createBuiltInDependenciesList } from '../../../core/es-modules/package-manager/built-in-dependencies-list'
import { NO_OP } from '../../../core/shared/utils'
import {
FakeLinterWorker,
FakeParserPrinterWorker,
FakeWatchdogWorker,
} from '../../../core/workers/test-workers'
im... |
import { defineComponent, PropType } from "vue";
import { library } from "@fortawesome/fontawesome-svg-core";
import { fas } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import type { ServiceDetails } from './types'
export const Service = defineComponent({
... |
/*
* 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 in writing,
* software distributed... |
import { SteedosSchema, SteedosPostgresDriver, SteedosQueryOptions, SteedosDatabaseDriverType } from '../../../../src';
import { expect } from 'chai';
const connectConfig = require('../../../../test/connection.json').postgres;//不提供connectConfig值时不运行单元测试
let tableName = "TestFiltersForPostgres";
let driver: SteedosPost... |
import * as React from 'react';
import Button from '../src/components/Button';
export default () => <Button>Button</Button>; |
export * from './framework/http'
export * from './framework/http/express'
export * from './framework/configuration'
export * from './framework/log'
export * from './framework/cortina'
export * from './framework/pages/'
export * from './framework/components'
export * from './framework/i18n' |
/**
* Handles main burger menu
*/
import { AppResourcesModel } from "../models/app-resources.model";
export class MenuModifier implements IModifier {
private athleteId: number;
private appResources: AppResourcesModel;
constructor(athleteId: number, appResources: AppResourcesModel) {
this.athleteId = athleteId... |
import { Component, OnInit } from '@angular/core';
import { ShareModuleService } from '../share/service/share-module.service';
@Component({
selector: 'ngx-user',
templateUrl: './user.component.html',
styleUrls: ['./user.component.scss']
})
export class UserComponent implements OnInit {
menu = <any>[];
unsub... |
// NOTE: This file is kept in sync manually with sql/event_log.go
import _ from "lodash";
import * as protos from "src/js/protos";
type Event = protos.cockroach.server.serverpb.EventsResponse.Event;
// Recorded when a database is created.
export const CREATE_DATABASE = "create_database";
// Recorded when a database... |
/**
* @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 {matchesVersion} from '../../utils/testing/semver-matchers';
import * as releaseConfig from '../config/index';... |
import React from 'react';
import ShoppingItem from '../models/ShoppingItem';
interface Props {
item:ShoppingItem;
handleRemoveButton(id:number|string):void;
handleEditButton(id:number|string):void;
}
const Row:React.FC<Props> = (props:Props) => {
return(
<tr>
<td>{props.item.type}</td>
<td>{props.item.co... |
import fs from 'fs'
import path from 'path'
import React from 'react'
import cheerio from 'cheerio'
import ReactDOMServer from 'react-dom/server'
import { getPaths, registerWebSideBabelHook } from '@redwoodjs/internal'
import { LocationProvider } from '@redwoodjs/router'
import mediaImportsPlugin from './babelPlugi... |
import { ExportComponent, Sizes } from 'src/type';
import Select from './Select';
import Option from './Option';
import Group from './Group';
import Extra from './Extra';
const ExportSelect = ExportComponent(Select, {
Option,
Group,
Extra,
Size: Sizes
});
export default ExportSelect; |
<TS language="el" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Δεξί-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation>
</message>
<message>
<source>Create a new address</source>
... |
import path from 'path';
import isEqual from 'lodash/isEqual';
import { RPCProtocol } from '@opensumi/ide-connection/lib/common/rpcProtocol';
import { URI, IContextKeyService } from '@opensumi/ide-core-browser';
import { CorePreferences, MonacoOverrideServiceRegistry } from '@opensumi/ide-core-browser';
import { inje... |
import { baseRequestInit, baseUrl, httpRequest } from "../../base";
import type { IRequestOptions } from "../../base/types";
import type { ITopicResponse } from "./types";
export const getTopicRequest = async (topicId: number, requestInitOverride?: RequestInit) => {
var options: IRequestOptions = {
requestInit: bas... |
export type MultiFormState = { formMulti: string }; |
import * as inquirer from "inquirer";
import * as fs from "fs";
import * as crypto from "crypto";
import {configurationFileName} from "./program";
const noActionText = `No Action - existing files will be ignored, only new changes will be synced`;
const pullActionText = `Pull - when other party connects all files will ... |
import { DatePipe } from '@angular/common';
import { Label, Color } from 'ng2-charts';
import { ChartDataSets, ChartOptions } from 'chart.js';
import { DailyData } from './../models/dataModel';
import { DataFetcherService } from './../services/data-fetcher.service';
import { Component, OnInit } from '@angular/core';
@... |
import * as React from "react";
import {View} from "../../components/UI";
import {getContainerStyles} from "../../containers";
import {useSizeLabor} from "../../providers/size-labor";
import {useThemeLabor} from "../../providers/theme-labor";
import {RouteProp} from "@react-navigation/native";
import {RootStackParam} f... |
import { Test } from '../Type';
import { v2 } from '../../../../lib/index.js';
import { starter } from './.createDir';
export default ((info, isValid) => {
function test(inputServer, info, isValid, depth) {
const server = inputServer || info.startServer();
server.options.maxRequestDepth = Infinity;
starter(ser... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en">
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+30"/>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit addr... |
ig.module('crosscode-ru.fixes.lore-menu')
.requires('game.feature.menu.gui.lore.lore-misc', 'ultimate-localized-ui.ticker-display')
.defines(() => {
const TITLE_HORIZONTAL_MARGIN_LEFT = 33;
sc.LoreInfoBox.inject({
init(...args) {
this.parent(...args);
this.alternative.tickerHook.maxWi... |
export { default as BaseDuck, DuckOptions } from "./BaseDuck";
export { default as Duck } from "./Duck";
export {
default as ComposableDuck,
/**
* `ComposableDuck`的别名 alias of `ComposableDuck`
*
* 历史兼容 legacy compatibility
*/
default as DuckMap
} from "./ComposableDuck";
export {
default as DuckRunt... |
import { act, renderHook } from '@testing-library/react';
import { useRouter } from 'next/router';
import { patchEditGroup } from '@/services/api/group';
import wrapper from '@/test/InjectMockProviders';
import WRITE_FIELDS_FIXTURE from '../../../../fixtures/writeFields';
import useEditGroup from './useEditGroup';
... |
import { useTranslation } from 'react-i18next'
import React, { useState } from 'react'
import { push } from '../../family'
import { useDispatch } from 'react-redux'
import { connect } from 'react-redux'
import { Spin } from '../utils'
import OwnedRepositoriesCard from './OwnedRepositoriesCard'
import JoinedRepositories... |
/** @jsx jsx */
import { FunctionComponent } from 'react';
import { css, jsx, withTheme } from '@emotion/react';
import { ThemeTokens } from '../../theme/theme';
import Highlight, { defaultProps, PrismTheme } from 'prism-react-renderer';
import { lighten } from 'polished';
type CodeBlockProps = {
theme: ThemeTokens;... |
import componentSetting from '@/settings/componentSetting';
const { table } = componentSetting;
const { pageSizeOptions, defaultPageSize, fetchSetting, defaultSortFn, defaultFilterFn } = table;
export const ROW_KEY = 'key';
// Optional display number per page;
export const PAGE_SIZE_OPTIONS = pageSizeOptions;
// N... |
import { RyokoMergedConfig, RyokoErrorOptions } from "../types";
export default class RyokoError extends Error {
readonly name: string;
readonly isRyokoError: boolean;
config?: RyokoMergedConfig;
status?: number;
constructor(message?: any, options?: RyokoErrorOptions);
toString(): string;
to... |
export const ENV = {
foo: 'bar'
} |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { HttpClient, HttpParams } from '@angular/common/http';
import { throwError } from 'rxjs';
import { PageState } from '../../../page/page-state';
import { BaseClient } from './base-client';
@Injectable()
export class PodCli... |
import React from 'react';
import styles from './index.module.less';
export default function Dashboard() {
return <div className={styles.dashboardWrapper}>123</div>;
} |
import React from 'react'
import Helmet from 'react-helmet'
import { useIntl } from 'react-intl'
import AnalogClock from '~/components/AnalogClock'
import { createPage } from '~/components/PageTemplate'
import messages from './messages'
const ClockPage: React.FC = () => {
const { formatMessage } = useIntl()
retu... |
import { pure } from '../src/decorators/common';
class Temp {
constructor() {}
@pure()
public someFn(@pure<number>() someArg?: number, anotherNumber?: number): number {
return someArg || 1;
}
@pure<number>()
public anotherFn(@pure<number>() someArg?: number, @pure<number>() anotherNumber?: number): n... |
//
// DEV BAKERY
// MAIN SCRIPT
//
import {h, render} from "preact"
import Sidecart, {SidecartStore} from "./components/sidecart"
import Storefront, {StorefrontStore, createShopifyClient} from "./components/storefront"
//
// STOREFRONT COMPONENT
//
// create mobx store object for the storefront component
const store... |
import Token from "markdown-it/lib/token";
import { NodeSpec, Node as ProsemirrorNode, NodeType } from "prosemirror-model";
import {
splitListItem,
sinkListItem,
liftListItem,
} from "prosemirror-schema-list";
import { MarkdownSerializerState } from "../lib/markdown/serializer";
import checkboxRule from "../rules... |
// tslint:disable:no-console
import * as R from 'ramda';
const compactArray = R.reject(R.isNil);
const defaultToNull = R.defaultTo(null);
const defaultToEmptyArray = R.defaultTo([]);
const getRandomValue: (max: number) => number =
(max) => Math.floor(Math.random() * max);
const randomFromArray: (array: any) => any... |
import React, { ReactElement, useState, useRef, useCallback, useEffect } from 'react'
import styled from 'styled-components'
import { FixedIcon, Loader, Title, Card } from '@gnosis.pm/safe-react-components'
import { GetBalanceParams, GetTxBySafeTxHashParams, MethodToResponse, RPCPayload } from '@gnosis.pm/safe-apps-sdk... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*----------------------------------------------------------------... |
import { memo } from 'react';
import { Input, Select } from '@chakra-ui/react'
import FormControl from './../../controls/FormControl'
import { useForm } from './../../../../hooks/useForm'
import SizeControl, { Size } from './../../controls/SizeControl'
import usePropsSelector from './../../../../hooks/usePropsSelector'... |
import { generateFunctionDecorator, isUndefined } from '../../helpers/general';
export function Throttle(timeMs: number) {
return generateFunctionDecorator('Throttle', decorator, timeMs);
}
function decorator(fn: (...args: any[]) => any, timeMs: number) {
let timeout: NodeJS.Timeout;
let nextCall: number;
re... |
import FRCallback from '.';
import { Callback } from '../../auth/interfaces';
/**
* Represents a callback used to collect information indirectly from the user.
*/
class HiddenValueCallback extends FRCallback {
/**
* @param payload The raw payload returned by OpenAM
*/
constructor(public payload: Callback) ... |
import {
Component,
EventEmitter,
HostBinding,
Input,
Output,
} from "@angular/core";
import { MdlDialogService } from "./mdl-dialog.service";
@Component({
selector: "mdl-alert",
template: ``,
exportAs: "mdlAlert",
})
export class MdlAlertComponent {
@Input()
title: string;
@Input()
message: s... |
import { useField } from "formik";
import React, { ReactNode } from "react";
import { ScrollView, TouchableOpacity, View } from "react-native";
import Modal from "react-native-modal";
import { flairOptions } from "../constants";
import { ErrorText } from "../ui/ErrorText";
import { Flair } from "../ui/Flair";
import { ... |
/**
* @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 {CommonModule} from '@angular/common';
import {Component, Directive, HostBinding, InjectionToken, ViewChild} fr... |
export * from './src/plume';
export * from './testBed'; |
export class CsvUtils {
// Based on https://stackoverflow.com/a/14991797
// This will parse a delimited string into an array of arrays.
static stringToArray(strData: string, delimiter = ','): string[][] {
const data: any[][] = [];
const isNewline = (char: string) => char === '\r' || char ===... |
import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ProductModule } from 'src/products/product/product.module'
import { RAMController } from './ram.controller'
import { RAMService } from './ram.service'
import { RAMRepository } from './repository/ram.repository'
@Module({
... |
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<navigation></navigation>
<router-outlet></router-outlet>
`,
styleUrls: ['./app.component.css']
})
export class AppComponent {
} |
import { expect } from 'chai';
import { Observable } from 'rxjs';
import * as sinon from 'sinon';
import { ClientProxy } from '../../client/client-proxy';
import { ReadPacket } from '../../interfaces';
import * as Utils from '../../utils';
// tslint:disable:no-string-literal
class TestClientProxy extends ClientProxy ... |
import * as React from 'react';
import {Tag} from 'baseui/tag';
export default function Example() {
return (
<React.Fragment>
<React.Fragment>
<Tag variant="solid">solid</Tag>
</React.Fragment>
<React.Fragment>
<Tag variant="light">light</Tag>
</React.Fragment>
<Re... |
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
export type AdminNameListType = {
name: string
owner: string
scName: string
}
type AdminStateType = {
students: string[]
nameList: AdminNameListType[]
studentCount: number
nameCount: number
}
const initialAdminState: AdminStateType = {
stu... |
import { Component } from '@angular/core';
@Component({
selector: 'sub-nav',
templateUrl: '/src/components/admin/navigation/sub-nav.component.html'
})
export class SubNavComponent{ } |
import * as PropTypes from 'prop-types';
import * as React from 'react';
import { DivContainer, DivRow, BotonesUsuarioImg, DivImg, H2Exitoso } from './styles';
import { Usuario } from '../../models/Usuario';
import { CambioClaveUsuario } from '../../models/CambioClaveUsuario';
import ImgSalidaSegura from 'assets/img/im... |
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, FormsMo... |
import { Component, OnInit } from '@angular/core';
import { routerTransition } from '../../router.animations';
import { DataSource } from '@angular/cdk/collections';
import {BlueprismService} from '../../services/BlueprismService';
import { BlueprismModel } from '../../models/BlueprismModel';
import { Observable } from... |
import React, { useState } from 'react';
import {View, Image, Text, TouchableOpacity, Linking} from 'react-native';
import styles from './styles';
import heartOutlineIcon from '../../assets/images/icons/heart-outline.png';
import unfavoritIcon from '../../assets/images/icons/unfavorite.png';
import wppIcon from '../..... |
import { Address6 } from 'ip-address'
export function convertIPv6AddressBigIntToString(address: bigint): string {
const hex = address.toString(16).padStart(32, '0')
const groups = []
for (let i = 0; i < 8; i++) {
groups.push(hex.slice(i * 4, (i + 1) * 4))
}
return formatIPv6Address(groups.join(':'))
}
f... |
declare abstract class Behavior<T> {
status: TaskStatus;
abstract update(context: T): TaskStatus;
invalidate(): void;
onStart(): void;
onEnd(): void;
tick(context: T): TaskStatus;
}
declare class BehaviorTree<T> {
updatePeriod: number;
lastUpdate: number;
stepUpdateCounter: number;
... |
// Copyright 2022 Gluwa, Inc. & contributors
// SPDX-License-Identifier: The Unlicense |
import * as React from 'react';
import { DataGrid } from '@material-ui/data-grid';
import { useDemoData } from '@material-ui/x-grid-data-generator';
export default function CheckboxSelectionGrid() {
const { data } = useDemoData({
dataSet: 'Commodity',
rowLength: 10,
maxColumns: 6,
});
return (
<... |
import {Buffer} from "buffer";
import {BN} from "bn.js";
import {HandshakeState, MessageBuffer, NoiseSession} from "../@types/handshake";
import {bytes, bytes32} from "../@types/basic";
import {generateKeypair, getHkdf, isValidPublicKey} from "../utils";
import {AbstractHandshake} from "./abstract-handshake";
import {... |
import {
EuiFlexGroup,
EuiHorizontalRule,
EuiLoadingSpinner,
EuiText,
EuiTitle,
} from "@elastic/eui";
import {
EuiPanel,
EuiFlexItem,
EuiDescriptionList,
EuiDescriptionListTitle,
EuiDescriptionListDescription,
EuiSpacer,
} from "@elastic/eui";
import React from "react";
import { useParams } from ... |
version https://git-lfs.github.com/spec/v1
oid sha256:dbdc4c6e52d33568ba68c296c88155af0fa872afab1f2b00da6aa4756b95f18d
size 665708 |
import {
addDependenciesToPackageJson,
GeneratorCallback,
Tree,
} from '@nrwl/devkit';
import {
anchorVersion,
chaiTypesVersion,
chaiVersion,
mochaTypesVersion,
mochaVersion,
typescriptVersion,
web3JsVersion,
} from './versions';
export function addPackages(tree: Tree): GeneratorCallback {
retur... |
import {Item} from "./Item"
/**
* Helper function to get the sprite icon for the item
* @param item
*/
export const getItemIconClass = (item: Item): string => {
return `icon-item ${item.identifiers.join(" ")}`
} |
import { newE2EPage } from '@stencil/core/testing';
describe('icon-expand', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<icon-expand></icon-expand>');
const element = await page.find('icon-expand');
expect(element).toHaveClass('hydrated');
expect(e... |
import React from 'react';
import {PaymentMethod} from 'src/mw/metadata/Metadata';
import Error from './Error';
const PaymentModes = (
{input, handleOnChange, paymentMethods}
: { input: any, handleOnChange: any, paymentMethods: PaymentMethod[] },
): JSX.Element => (
<div className='mt-3'>
<Error errors={... |
import { SelectValue, SelectProps, LabeledValue } from 'antd/lib/select';
export type ILabeledValue = LabeledValue;
export type ISelectValue = SelectValue;
// 别名属性
export interface IAlias {
id: string;
name: string;
exactCode: string; // 精确查询入参,默认ids
slurCode: string; // 模糊查询入参,默认name
dataCode: s... |
import { css } from '@emotion/react';
import { headline, neutral } from '@guardian/source-foundations';
import React from 'react';
import { getAgeWarning } from '../../../lib/age-warning';
import { pillarPalette_DO_NOT_USE } from '../../../lib/pillars';
import { getSharingUrls } from '../../../lib/sharing-urls';
import... |
/* tslint:disable */
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type ArtistToolTip_artist = {
readonly name: string | null;
readonly slug: string;
readonly internalID: string;
readonly formatted_nationality_and_birthday: string | null;
reado... |
import {NgModule,Component,ElementRef,OnInit,AfterViewInit,AfterContentInit,AfterViewChecked,OnDestroy,Input,Output,Renderer2,EventEmitter,
forwardRef,ViewChild,ChangeDetectorRef,TemplateRef,ContentChildren,QueryList,ContentChild} from '@angular/core';
import {trigger,state,style,transition,animate,Animatio... |
import faker from "faker";
import { User, Image } from "../../src/models";
import { IImagePayload } from "../../src/repositories/image.repository";
export function generateUserData(overide = {}) {
return {
id: faker.datatype.number(),
firstName: faker.name.firstName(),
lastName: faker.name.lastName(),
... |
import { expect } from '../../../../setup'
/* Imports: External */
import { BigNumber } from 'ethers'
import { Block } from '@ethersproject/abstract-provider'
/* Imports: Internal */
import { handleEventsStateBatchAppended } from '../../../../../src/services/l1-ingestion/handlers/state-batch-appended'
import { StateB... |
import { CancellationToken, GithubOptions, githubUrl, HttpError, newError, parseXml, ReleaseNoteInfo, UpdateInfo, XElement } from "builder-util-runtime"
import * as semver from "semver"
import { URL } from "url"
import { AppUpdater } from "../AppUpdater"
import { getChannelFilename, newBaseUrl, newUrlFromBase, Provider... |
import { exec } from 'child_process'
import fs from 'fs'
import path from 'path'
const outputPath = path.join(__dirname, '../function/output') as string
// if the code directory is not found, make it synchronously
if (!fs.existsSync(outputPath)) {
fs.mkdirSync(outputPath, { recursive: true })
}
const executeCpp ... |
import { Meta } from '@storybook/angular/types-6-0';
import { moduleMetadata } from '@storybook/angular';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { KeyVa... |
import { IGridCellCoordinates, ISelectionController } from '../../../typings/interfaces'
export class SelectRange {
constructor(public readonly controller: ISelectionController) {}
public run(start: IGridCellCoordinates, end: IGridCellCoordinates) {
const coords = [start, end] as const
if (this.controll... |
const originalPreact = jest.requireActual('preact');
const mockPreact = {
...originalPreact,
render: jest.fn()
};
jest.mock('preact', () => mockPreact);
import * as Preact from 'preact';
import { destroy, render } from 'diagramMaker/components/renderUtils';
describe('renderUtils', () => {
const store = {} as ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import useDocusaurusContext from './useDocusaurusContext';
export default function useBaseUrl(
url: string,
forcePrependBaseU... |
export * from '@/__private__/components/Pie' |
// This is because while importing a CommonJS module, Babel assumes modules.export as default export, while TypeScript does not.
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import './styles';
import store from './store';
import './store/promise-all';
imp... |
import { Component, OnInit, OnDestroy, ViewChild, ChangeDetectorRef, AfterViewInit, ElementRef } from '@angular/core';
import { environment } from '../../../environments/environment';
import { Location } from '@angular/common';
import { LocationService } from '../../location/location.service';
import { AccountService }... |
import { PassportStrategy } from '@nestjs/passport';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Strategy, ExtractJwt } from 'passport-jwt';
import * as config from 'config';
import { User } from './user.entity';
import { UserRepositor... |
import { useNavigation } from '@react-navigation/native';
import React, { useState } from 'react';
import {
SafeAreaView,
StyleSheet,
View,
Text,
TextInput,
KeyboardAvoidingView,
Platform,
TouchableWithoutFeedback,
Keyboard
} from 'react-native';
import { Button } from '../components/Button';
import c... |
/// <reference types="cypress" />
context('Country View', () => {
before(() => {
cy.visit('/countries/PE');
});
it('should render the country view', () => {
cy.get('[data-testid="header"]').should('exist');
cy.get('[data-testid="country-view"]').should('exist');
cy.get('[data-testid="footer"]').... |
// Copyright 2017-2021 @axia-js/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { Definitions } from '../../types';
export default {
rpc: {},
types: {
ActiveRecovery: {
created: 'BlockNumber',
depos... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Injectable } from '@nestjs/common';
import { AuthGuard } from "@nestjs/passport";
@Injectable()
export class LocalAuthGuard extends AuthGuard('local') {} |
/// <reference types="node"/>
import EventEmitter = require('events');
import {Except} from 'type-fest';
import Conf = require('@streamhue/conf');
declare namespace ElectronStore {
type Schema = Conf.Schema;
type Options<T> = Except<
Conf.Options<T>,
'configName' | 'projectName' | 'projectVersion' | 'projectSuf... |
import {ProductInterface} from '../Interfaces/product-interface'
export const Products:ProductInterface[]=[
{'Name':'Headlight','Price':100,'Year':2010},
{'Name':'Brake','Price':200,'Year':2011},
{'Name':'Gears','Price':130,'Year':2012},
{'Name':'Chasis','Price':400,'Year':2013},
]; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export default {
'resultsuccess.success.title': '提交成功',
'resultsuccess.success.description':
'提交結果頁用於反饋壹系列操作任務的處理結果, 如果僅是簡單操作,使用 Message 全局提示反饋即可。 本文字區域可以展示簡單的補充說明,如果有類似展示 “單據”的需求,下面這個灰色區域可以呈現比較復雜的內容。',
'resultsuccess.success.operate-title': '項目名稱',
'resultsuccess.success.operate-id': '項目 ID',
'resultsucc... |
import { logger } from "@project-sunbird/logger";
import { HTTPService } from "../OpenRAP/services/httpService";
import { expect } from "chai";
import * as _ from "lodash";
import { of, throwError } from "rxjs";
import * as supertest from "supertest";
import * as faqTestData from "./test_data/faq.test.data";
import { I... |
import {
Injectable,
ConflictException,
InternalServerErrorException,
NotFoundException,
UnauthorizedException
} from '@nestjs/common';
import { etudiant } from './etudiant.entity';
import { etudiantRepository } from './etudiant.repository';
import { InjectRepository } from '@nestjs/typeorm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.