text stringlengths 10 953k |
|---|
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';
import { User } from 'src/users/user.entity';
import { Post } from 'src/posts/post.entity';
@Entity()
export class Comment {
@PrimaryGeneratedColumn()
id: number;
@ApiProperty(... |
import { defineComponent } from 'vue'
import type { Story, Meta } from '@storybook/vue3'
import { icons } from '../../icons/index.js'
import PPage from './PPage.vue'
export default {
title: 'PPage',
component: PPage,
argTypes: {
icon: {
control: {
type: 'select',
labels: {
null: 'No icon'
}
... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { HttpClient, HttpClientModule } from '@angular/common/http'
export func... |
/*
* 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 { HttpFetchOptions } from 'kibana/public';
export type FetchOptions =... |
import { PfdMapLayoutSettingMode, PFDUserSettings } from '../../../PFD/PFDUserSettings';
import { MenuSystem } from './MenuSystem';
import { SoftKeyMenu } from './SoftKeyMenu';
/**
* The Map/HSI softkey menu.
*/
export class MapHSILayoutMenu extends SoftKeyMenu {
/**
* Creates an instance of the Layout menu in... |
import React, { useState } from 'react';
import Card from '../../components/Card';
import Arrow from '../../components/Arrow';
import { Cards } from '../../model/cards';
import { PaletteModel, getPalette } from '../../model/palettes';
import { Container, Row, Col } from './styles';
function MainView() {
const [cur... |
export class Tag {
id: number;
name: string;
partnerID: number;
siteID: number;
} |
// Copyright 2017-2021 @polkadot/app-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveBalancesAll } from '@polkadot/api-derive/types';
import type { AccountInfoWithProviders, AccountInfoWithRefCount } from '@polkadot/types/interfaces';
import BN from 'bn.js';
import React, { ... |
/**
* Open Banking Gateway FinTech Example API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { BankProfile } from './bankProfile';
exp... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { UserModule } from 'src/user/user.module';
import { JwtModule } from '@nestjs/jwt';
import { JWTStrategy } from './jwt-strategy';
import { RolesGuard } from './roles.guard';... |
// Copyright 2019 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const BiChevronDown: IconType; |
import type { Mixin } from '@tpluscode/rdfine/lib/ResourceFactory';
import { EventMixin } from '../lib/Event';
import { BusinessEventMixin } from '../lib/BusinessEvent';
export const BusinessEventBundle = [
EventMixin as Mixin,
BusinessEventMixin as Mixin]; |
import { Component, OnInit,ElementRef } from '@angular/core';
import { UserLoginService } from '../user-login.service'
import { PopupService } from 'core/services/popup.service';
import {DomSanitizer} from '@angular/platform-browser';
import { Router , ActivatedRoute } from '@angular/router';
//错误码
import { ROLEPLAY_E... |
import { Controller, UseGuards } from '@nestjs/common';
import { PostEntity } from '../entity/post.entity';
import { Crud, CrudController, Feature } from '@nestjsx/crud';
import { PostService } from '../post.service';
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
import { CrudGuard } from '../../security';
... |
import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const ClipboardTextIcon: FC<IconInterface> = function ClipboardTextIcon({
className,
...propsRest
}) {
const classNames = `ClipboardTextIcon ${className}`;
return (
<Ico... |
import { MsgExecuteContract } from '@terra-money/terra.js';
import { validateInput } from '../../utils/validate-input';
import { validateAddress } from '../../utils/validation/address';
import { AddressProvider } from '../../address-provider/provider';
interface Option {
address: string;
}
export const fabricateInv... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ContactosInlineComponent } from './contactos-inline.component';
describe('ContactosInlineComponent', () => {
let component: ContactosInlineComponent;
let fixture: ComponentFixture<ContactosInlineComponent>;
beforeEach(async(() =... |
import {Type} from "./abstract";
/**
* Represents a string literal type.
*
* ~~~
* let value:"DIV";
* ~~~
*/
export class StringLiteralType extends Type
{
/**
* The string literal value.
*/
value:string;
/**
* Create a new instance of StringLiteralType.
*
* @param value Th... |
import { action } from '@storybook/addon-actions';
import { storiesOf } from '@storybook/react';
import * as React from 'react';
import { useRef } from 'react';
import { useClickAway } from '../src';
import ShowDocs from './util/ShowDocs';
const Demo = () => {
const ref = useRef(null);
useClickAway<MouseEvent>(ref... |
import bcrypt from 'bcrypt';
import { HashComparer } from '../../../data/protocols/cryptography/hash-comparer';
import { Hasher } from '../../../data/protocols/cryptography/hasher';
export class BcryptAdapter implements Hasher, HashComparer {
private salt: number;
constructor(salt: number) {
this.salt = salt;... |
export type DescribeStacksExceptionsUnion = never; |
import { ILogService, IPromise, module } from 'angular';
import { API_SERVICE, Api } from 'core/api/api.service';
import { IServerGroup } from 'core/domain';
export class ServerGroupReader {
constructor(private $log: ILogService, private API: Api) { 'ngInject'; }
public getScalingActivities(serverGroup: IServer... |
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
import { BrandBlockKeywords } from './brandBlockKeywords.entity';
import { BrandChannel } from './brandChannel.entity';
import { BrandKeywords } from './brandKeywords.entity';
// 혹시 몰라서 만들어봄.
export interface IBrand {
_id: string;
id: str... |
/* eslint-disable camelcase */
export type ClientService = {
name: string;
/**
* Communication between QVPN Client and QVPN Server
*/
internalPort: number;
/**
* Exposed service port for user
*/
externalPort: number;
};
export type ClientData = {
client_id: string;
client_title: string;
cli... |
import { Component, ContentChildren, QueryList, AfterContentInit, Input, Output, EventEmitter, SimpleChanges, ElementRef } from '@angular/core';
import { TabPane } from './tab-pane.component';
import { TabGroup } from './tab-group.component';
import { combineLatest, Subscription, BehaviorSubject, ObjectUnsubscribedErro... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-date-uncontrolled',
templateUrl: './date-uncontrolled.component.html',
styleUrls: ['./date-uncontrolled.component.scss']
})
export class DateUncontrolledComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import BigNumber from 'bignumber.js'
import { ContractKit } from '@celo/contractkit'
import { BlockTransactionString } from 'web3-eth'
import * as React from 'react'
import { Account } from '../../../lib/accounts/accounts'
import useEventHistoryState, { estimateTimestamp } from '../../state/event-history-state'
import... |
import { Character } from "./character"
import { MonsterName, Entity } from "./definitions/adventureland"
import { transferItemsToMerchant, sellUnwantedItems, transferGoldToMerchant } from "./trade"
import { TargetPriorityList } from "./definitions/bots"
import { getCooldownMS, calculateDamageRange, isAvailable, findIt... |
/**
* Copyright 2021 City of Los Angeles
*
* 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 a... |
import Vue from "vue"
import { INoticeOptions, NoticeOptions, NoticesOptions } from "$/plugin"
import NoticesComponent from "./components/Notices.vue"
interface NoticesComponentType {
add(notice: NoticeOptions): void
removeAll(): void
remove(name: string): void
}
let seed = 0
function getUuid() {
return `cr... |
import React, { useState } from 'react';
import { Button, Card, CardContent, CardHeader, makeStyles, TextField } from '@material-ui/core';
import { getLoggedOutUserServerSideProps } from '../../shared/utils/get-logged-in-user';
import NavBar from '../../shared/components/NavBar';
import { useForm } from 'react-hook-for... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-doctor-header',
templateUrl: './doctor-header.component.html',
styleUrls: ['./doctor-header.component.css']
})
export class DoctorHeaderComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
import { Component, OnInit, Input, OnDestroy, ChangeDetectionStrategy, EventEmitter, Output, ViewChild } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import { PasswordRequirement } from 'app/core/models/auth/password-requirement.model';
import { FlatTreeControl } from '@angular/cdk/tree';
imp... |
import ThirdPartyEmailPasswordReact, {
Google,
Github,
} from "supertokens-auth-react/recipe/thirdpartyemailpassword"
import SessionReact from "supertokens-auth-react/recipe/session"
import ThirdPartyEmailPasswordNode, {
Google as GoogleNode,
Github as GithubNode,
} from "supertokens-node/recipe/thirdpartyemail... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import * as assert from "assert";
import * as dotenv from "dotenv";
import { getBSU, recorderEnvSetup } from "./utils";
import { record, delay, Recorder } from "@azure/test-utils-recorder";
import { ContainerClient, BlobClient, BlockBlobClient... |
/*
* Copyright 2018- The Pixie 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 ag... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_CL" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Myce</source>
<translation type="unfinished"/>
</message>
<message>
<location line="... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RecepieDetailsComponent } from './recepie-details.component';
describe('RecepieDetailsComponent', () => {
let component: RecepieDetailsComponent;
let fixture: ComponentFixture<RecepieDetailsComponent>;
beforeEach(async(() => {
... |
import { ReactComponent as Link } from './icons/link.svg'
import { withIcon } from './withIcon'
export const IconLink = withIcon(Link) |
import { useContext } from 'react';
import ListContext from './ListContext';
import { ListControllerProps } from './useListController';
/**
* Hook to read the list controller props from the ListContext.
*
* Must be used within a <ListContext.Provider> (e.g. as a descendent of <List>
* or <ListBase>).
*
* @typed... |
import color from 'color';
import * as React from 'react';
import {
GestureResponderEvent,
StyleProp,
StyleSheet,
TextStyle,
View,
ViewStyle,
} from 'react-native';
import TouchableRipple from '../TouchableRipple/TouchableRipple';
import Text from '../Typography/Text';
import { withTheme } from '../../core... |
/*
* Notifo.io
*
* @license
* Copyright (c) Sebastian Stehle. All rights reserved.
*/
/* eslint-disable quote-props */
import * as CodeMirror from 'codemirror';
import * as React from 'react';
import { Clients, EmailPreviewDto, EmailPreviewType } from '@app/service';
type RequestCode = { code: any };
type Mark... |
import * as io from "@econnessione/shared/io";
import * as E from "fp-ts/lib/Either";
import { pipe } from "fp-ts/lib/pipeable";
import { AreaEntity } from "../../entities/Area.entity";
import { ControllerError, DecodeError } from "@io/ControllerError";
export const toAreaIO = (
a: AreaEntity
): E.Either<ControllerE... |
import { IOptions } from '../../../../common/contracts';;
export interface IUserOptions extends IOptions {
userIds?: string,
roleIds?: string,
roleNames?: string,
isApproved?: boolean,
isLocked?: boolean
} |
import { useCallback, useEffect, useRef, useState } from "react";
import { register } from "register-service-worker";
export const useServiceWorker = (timeout: number) => {
const [updateAvailable, setUpdateAvailable] = useState<boolean>(false);
const registrationRef = useRef<ServiceWorkerRegistration>();
useEff... |
import { ButtonHTMLAttributes, DetailedHTMLProps } from 'react'
export interface ButtonOptions
extends DetailedHTMLProps<
ButtonHTMLAttributes<HTMLButtonElement>,
HTMLButtonElement
> {
kind?: Kind
size?: Size
}
// types
export type ButtonType = 'button' | 'submit' | 'reset' | undefined
export type Ki... |
import Image from '../models/Image';
export default {
render(image: Image) {
return {
id: image.id,
url: `http://192.168.2.104:8888/uploads/${image.path}`
};
},
renderMany(images: Image[]) {
return images.map(image => this.render(image));
},
}; |
import { useState, useRef } from "react";
import { PostType } from "./types";
import PostActions from "./PostActions";
import PostStats from "./PostStats";
import Avatar from "../Avatar";
import PostImage from "./PostImage";
import PostCaption from "./PostCaption";
import { Counters } from "./PostActions/types";
import... |
import { Arg, Ctx, Mutation, Resolver, UseMiddleware } from "type-graphql";
import { isAuthenticated } from "~/middleware/isAuthenticated.middleware";
import ContextType from "~/types/Context.type";
import { Post, User } from "~/resolver-types/models";
import { connectIdArray } from "~/util/connectIdArray";
import { Pr... |
import path from 'path';
import postCss from 'postcss';
import postCssModules from 'postcss-modules';
import {logger} from '../logger';
import {SnowpackConfig} from '../types';
import {
appendHtmlToHead,
hasExtension,
spliceString,
HMR_CLIENT_CODE,
HMR_OVERLAY_CODE,
} from '../util';
import {generateSRI} from... |
export function createAsyncIterator<T>(onExit: () => void): AsyncIterable<T> & { push(data: T): void, complete(): void } {
let events: (T | null)[] = [];
let resolvers: any[] = [];
const getValue = () => {
return new Promise<IteratorResult<T>>((resolve => {
if (events.length > 0) {
... |
import {FieldValueSet} from '../../../../../../models/';
import {createFieldValueSetFromDiscriminatorValue} from '../../../../../../models/createFieldValueSetFromDiscriminatorValue';
import {ODataError} from '../../../../../../models/oDataErrors/';
import {createODataErrorFromDiscriminatorValue} from '../../../../../..... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { WhatsNewModule } from 'whats-new';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
WhatsNewModule
],
providers: [... |
import { APIGatewayClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../APIGatewayClient";
import { CreateDocumentationVersionRequest, DocumentationVersion } from "../models/index";
import {
deserializeAws_restJson1CreateDocumentationVersionCommand,
serializeAws_restJson1CreateDocumentationVersion... |
import { Component, OnInit } from '@angular/core';
import { MoviesService } from 'src/app/core/services/movies.service';
import { Movie } from 'src/app/core/models/movie';
import { ActivatedRoute, Router } from '@angular/router';
import { Observable } from 'rxjs';
import { map, switchMap } from 'rxjs/operators';
@Comp... |
module BABYLON {
export class Prim2DClassInfo {
}
export class Prim2DPropInfo {
static PROPKIND_MODEL: number = 1;
static PROPKIND_INSTANCE: number = 2;
static PROPKIND_DYNAMIC: number = 3;
id: number;
flagId: number;
kind: number;
name: string;
... |
import { FilterMenu } from './FilterMenu'
export class FilterCollection {
filterMenus: Array<FilterMenu>;
rows: Array<HTMLElement>;
ths: Array<HTMLElement>;
table: HTMLElement;
options: Options;
target: JQuery;
constructor (target: JQuery, options: Options) {
thi... |
/*
* 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.
/**
* This sa... |
import thunk from 'redux-thunk';
import configureMockStore from '@jedmao/redux-mock-store';import MockAdapter from 'axios-mock-adapter';
import {
updateTodo,
PUT_TODO_INIT,
PUT_TODO_FAIL,
PUT_TODO_SUCCESS,
} from '../todoUpdate.action';
import { ENQUEUE_SNACKBAR } from '../notifications.action';
import axios ... |
/*
* 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.
*/
/* eslint-disable @typescript-eslint/consistent-type-definitions */
import { ... |
import { ReactElement, useCallback, useEffect, useRef, useState } from "react";
type ReactMediaRecorderRenderProps = {
error: string;
muteAudio: () => void;
unMuteAudio: () => void;
startRecording: () => void;
pauseRecording: () => void;
resumeRecording: () => void;
stopRecording: () => void;
mediaBlob... |
import React from "react";
import { createStyles, Theme, makeStyles } from "@material-ui/core/styles";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import Divider from "@material-ui/core/Divider";
import ListItemText from "@material-ui/core/ListItemText";
import ListItem... |
import * as gulp from 'gulp';
import { initialize, setConfig } from '..';
import { getLogger, Logger } from './Logger';
const logEntries: string[] = [];
beforeAll(() => {
const writeEntry = (message?: any): void => {
const value: string = message ? message.toString() : '';
logEntries.push(value);
};
con... |
import axios from 'axios';
export const api = axios.create({
baseURL: process.env.BASE_URL || 'http://localhost:3333'
}) |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Serializer, Serializers } from '../serializer';
const mediaType = 'application/json';
const serializer: Serializer = () => '';
describe('Serializers', () => {
it('should be subclass of Map', () => {
expect(new Serializers()).toBeInstanceOf(Map);
... |
declare module '*.vue' {
import { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any>;
export default component;
}
interface Window {
CustomEnv: any;
} |
/*
* Copyright 2019 OICR
*
* 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... |
if(typeof Object.defineProperty==="undefined"){
Object.defineProperty = (obj:any,name:string,descriptor:any)=>{
obj[name] = descriptor.value;
}
}
let _toString = Object.prototype.toString;
function is_array(obj){
return _toString.call(obj)==="[object Array]";
}
function in_array(arr:any[],item:any,... |
import {TestBed, inject} from '@angular/core/testing';
import {LeaderService} from './leader.service';
describe('LeaderService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [LeaderService]
});
});
it('should be created', inject([LeaderService], (service: LeaderService) ... |
import { CreateDatasetCommandInput, CreateDatasetCommandOutput } from "../commands/CreateDatasetCommand";
import { CreateDatasetGroupCommandInput, CreateDatasetGroupCommandOutput } from "../commands/CreateDatasetGroupCommand";
import {
CreateDatasetImportJobCommandInput,
CreateDatasetImportJobCommandOutput,
} from ... |
import {GetStaticProps} from 'next'
import {TOS} from '../src/Pages/TOS/TOS'
import {Contentful} from '../src/Utils/Contentful'
export const getStaticProps: GetStaticProps<{
content: Contentful.FetchedInline
}> = async () => ({
props: {content: await Contentful.fetchInline('6vgXd9CYNiqxSyBpxuOOIY'), title:'Privacy... |
"use strict";
// local modules _must_ be explicitly mocked
jest.mock("../lib/git-push", () => jest.requireActual('../lib/__mocks__/git-push'));
jest.mock("../lib/is-anything-committed", () => jest.requireActual('../lib/__mocks__/is-anything-committed'));
jest.mock("../lib/is-behind-upstream", () => jest.requireActual(... |
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'rc-tooltip',
favicon:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
logo:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
outputPath: '.doc',
exportStati... |
import {
Body,
Controller,
Delete,
Get,
Param,
Patch,
Post,
Query,
} from '@nestjs/common';
import { CoffeesService } from './coffees.service';
import { CreateCoffeeDto } from './dto/create-coffee.dto';
import { UpdateCoffeeDto } from './dto/update-coffee.dto';
@Controller('coffees')
export class Coffe... |
/// <reference path="pxtpackage.d.ts" />
/// <reference path="pxtparts.d.ts" />
/// <reference path="pxtblockly.d.ts" />
/// <reference path="pxtelectron.d.ts" />
declare namespace pxt {
// targetconfig.json
interface TargetConfig {
packages?: PackagesConfig;
// common galleries
galleri... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import { Rect } from './types';
export declare const rect: (x: number, y: number, width: number, height: number) => Rect;
export declare const rectCenter: ({ x, y, width, height }: Rect) => import("./types").Point; |
import path from "path";
import fs from "fs";
import {
Terminal,
tondevHome,
} from "../../core";
import {
compareVersionsDescending,
httpsGetJson,
userIdentifier,
writeJsonFile,
} from "../../core/utils";
import {
ContainerDef,
ContainerStatus,
DevDocker,
} from "./docker";
import ... |
import * as mysql from "mysql2/promise";
const { DB_NAME, DB_HOST, DB_USERNAME, DB_PASSWORD } = process.env;
export default class DB {
protected db_name: string;
protected db_host: string;
protected db_username: string;
protected db_password: string;
protected db_port: number;
constructor(dbN... |
import EventEmitter = Phaser.Events.EventEmitter
import { Pane } from "tweakpane"
import { cssAnimate } from "../../../robowhale/utils/css-animate"
import { ButtonApi } from "@tweakpane/core"
export enum ModalPanelEvent {
CANCEL_CLICK = "__CANCEL_CLICK",
OK_CLICK = "__OK_CLICK",
SHOW = "__SHOW",
HIDE = "__HIDE",
}... |
/**
* An array of strings that's defined as
*
* ```
* export class StringArray extends Array<string> {
* // ...
* }
* ```
*
* Notice how TypeDoc has substituted `string` for the generic type argument in all
* the methods inherited from `Array`. For example, the `values` method returns
* `IterableIterator... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ClienteFormComponent } from './views/cliente-form/cliente-form.component';
import { ClienteListComponent } from './views/cliente-list/cliente-list.component';
import { ClienteRouterModule } from './cliente.routing';
impor... |
import React, { useCallback } from "react";
import { useFocusEffect } from "@react-navigation/native";
import AppLoading from "expo-app-loading";
import { SearchBar } from "../../components/SearchBar";
import { LoginDataItem } from "../../components/LoginDataItem";
import { useStorageData } from "../../hooks/login";
... |
export interface IPanelProps {
width: number;
height: number;
depth?: number;
layerSeparation?: number;
alpha?: 0.4 | 0.6 | 0.8 | 1;
theme?: FluentTheme;
receiveInput?: boolean;
}
export enum FluentTheme {
Light,
Dark
} |
import { isFullRow, validateEntry } from "~/helpers/validateEntry";
import { useEffect, useRef, useState } from "react";
import { ActionFunction, Link, LoaderFunction, Outlet, redirect, useLoaderData, useSubmit } from "remix";
import Keyboard from "~/components/Keyboard";
import { keyStyle, Response } from "~/types/typ... |
import { RFValue } from 'react-native-responsive-fontsize';
import styled from 'styled-components/native'
export const Container = styled.View`
width: 109px;
height: 92px;
justify-content: center;
align-items: center;
background-color: ${({ theme}) => theme.colors.background_primary};
paddin... |
import { Component, OnInit } from "@angular/core";
import { Subject } from "rxjs";
@Component({
selector: "app-main",
templateUrl: "./main-layout.component.html",
styleUrls: ["./main-layout.component.scss"],
})
export class MainLayoutComponent implements OnInit {
unsub$ = new Subject();
constructo... |
/**
* Normalise domain redirects by validating they are URLs and getting rid of trailing slash.
* @param domainRedirects
*/
export const normaliseDomainRedirects = (unnormalisedDomainRedirects: {
[key: string]: string;
}) => {
const domainRedirects = { ...unnormalisedDomainRedirects };
for (const key in domain... |
import axios from 'axios';
import cheerio from 'cheerio';
import { yotubeUrlId } from './yotubeUrlId';
export async function otherY2Dl(baseUrl: string) {
const result = [];
try {
await axios({
method: 'get',
url: `https://y2convert.net/file/all/${yotubeUrlId(baseUrl)}`
... |
const AboutPage = () => {
return (
<div>
About page
</div>
)
}
export default AboutPage |
import { animate, state, style, transition, trigger } from '@angular/animations';
import { KeyValue } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { LazyLoadEvent, SortMeta } from 'primeng/api';
import { Page } from './model/page';
import { SortObject } from './model/sort-object';
... |
/*
* Copyright 2020, Doug Stevenson
*
* Copying and distribution of this file, with or without modification, are
* permitted in any medium without royalty, provided the copyright notice and
* this notice are preserved. This file is offered as-is, without any warranty.
*/
import * as functions from 'firebase-func... |
import { Scribe } from "../../../../scribe"
import { Command } from "../../../api/command"
import { isRedoKeyCombination } from "../../../keystrokes"
class RedoCommand extends Command {
constructor(scribe: Scribe) {
super(scribe, "redo")
//is scribe is configured to undo assign listener
if... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export ... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import {KeyboardAction, KeyboardControlService} from '../../../../../angular-cesium/src/lib/angular-cesium';
@Component({
selector: 'keyboard-control-layer',
template: '',
})
export class KeyboardControlLayerComponent implements OnInit, OnDestroy {
c... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable unicorn/filename-case */
import fs from "fs";
import os from "os";
import path from "path";
import util from "util";
import { lock } from "proper-lockfile";
import { IOdspTokens } from "@fluidfram... |
import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
@Index("index_dataservice_blobs_on_checksum", ["checksum"], {})
@Index("index_dataservice_blobs_on_learner_id", ["learnerId"], {})
@Index("pbc_idx", ["periodicBundleContentId"], {})
@Entity("dataservice_blobs", { schema: "portal_development" })
e... |
import { Entry as DoczEntry } from "docz";
import { Theme as UITheme } from "theme-ui";
export type Entry = DoczEntry;
export type Doc =
| Entry
| {
name: string;
route?: string;
entries: Entry[] | Doc;
};
export type CurrentDoc = { name: string; menu: string; submenu?: string };
e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.