text stringlengths 10 953k |
|---|
import { NbMenuItem } from '@nebular/theme';
export const MENU_ITEMS: NbMenuItem[] = [
{
title: 'My Projects',
icon: 'layers-outline',
group: true,
},
{
title: 'On Going',
link: 'projects/on-going',
home: true,
},
{
title: 'Overdue',
link: 'projects/overdue',
},
{
titl... |
import { Component, OnInit } from '@angular/core';
import { AsyncEventObservable, AsyncEventSubject } from 'rx-async-event';
const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']... |
// Módulos
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
// Ngx bootstrap
import {
BsDropdownModule,
ModalModule,
TooltipModule,
BsDatepickerModule,
TabsModule
} from 'ngx-b... |
import { Component, OnInit, ViewChild } from '@angular/core';
@Component({
selector: 'app-time-table-admin',
templateUrl: './time-table-admin.component.html',
styleUrls: ['./time-table-admin.component.css']
})
export class TimeTableAdminComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import "react-toastify/dist/ReactToastify.css"
import List from "@material-ui/core/List/List"
// import ListItem from "@material-ui/core/ListItem"
import _ from "lodash"
import React from "react"
import { Slide, toast, ToastContainer } from "react-toastify"
import {
changeModeToAnnotating,
changeModeToSelecting,
... |
import { firestore } from 'firebase-admin'
import httpErrors from 'http-errors'
import { CustomNodeJSGlobal } from '../custom'
import { IUser } from '../models'
import { DtoUser } from '../dto-interfaces'
import { EFU, MFU, GE, errorHandling } from './utils'
declare const global: CustomNodeJSGlobal
type Process = {
... |
export interface Post extends PostHeader, PostBody, MicrocmsReqHeader {}
export interface PostDetail extends PostHeader, MicrocmsReqHeader {
contentHtml: string;
summary: string;
time2FinishReading: number;
};
export type PostHeader = {
title: string;
tagList: string[];
published: boolean;
};
... |
/*------------------------------------------------------------------------------
| Copyright (c) 2014-2019, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|-------------------------------------------------... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/// <reference types="svelte" />
interface EditNestedDocEvent extends Event {
detail: EditNestedDocDetail;
}
interface EditNestedDocDetail {
type: string;
id: string;
created: (id: string) => void;
} |
import React, { FC } from "react";
const LessonsList: FC = () => {
return (
<div className="shadow-lg rounded-2xl bg-white dark:bg-gray-700 w-full">
<div className="flex items-center p-4 justify-between">
<p className="font-bold text-md text-black dark:text-white">Google</p>
<button classNa... |
/**
* @packageDocumentation
* @module API-AVM-ExportTx
*/
import { Buffer } from 'buffer/';
import BinTools from '../../utils/bintools';
import { AVMConstants } from './constants';
import { TransferableOutput, AmountOutput } from './outputs';
import { TransferableInput } from './inputs';
import { BaseTx } from './ba... |
import React from 'react';
import { Menu, Transition } from '@headlessui/react';
import { Room } from 'livekit-client';
import { createSelector } from '@reduxjs/toolkit';
import { RootState, useAppSelector } from '../../../../store';
import MicMenuItems from './items';
interface IMicMenuProps {
currentRoom: Room;
}... |
/*
Imports
*/
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ResetPasswordPageComponent } from './reset-password-page.component';
//
/*
Definition
*/
const route: Routes = [
{
path: '',
component... |
import {Component,Input,Output,EventEmitter} from "@angular/core";
@Component({
templateUrl: "./athlete-weight-list-item.component.html",
styleUrls: [
"./athlete-weight-list-item.component.css"
],
selector: "ce-athlete-weight-list-item"
})
export class AthleteWeightListItemComponent {
con... |
const { spawnSync } = require( 'child_process' );
const outdatedCmd = spawnSync( 'npm', [ 'outdated' ] );
const lines = outdatedCmd.stdout.toString().split( '\n' );
const columnIndexes = [ 0, 0, 0, 0 ];
console.log(
'<p align="center">\n' +
' <a href="https://opentemplatehub.com">\n' +
' <img src="ht... |
import 'react-app-polyfill/ie11';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { BoardWrapper } from "../src";
// import { Thing } from '../dist/';
const App = () => {
return (
<div>
<BoardWrapper />
</div>
);
};
ReactDOM.render(<App />, document.getElementById('ro... |
import * as React from 'react';
import { MessageHelper } from '../../helpers/MessageHelper';
import { CommandToCode } from '../CommandToCode';
import { FileIcon } from './Icons/FileIcon';
import { MarkdownIcon } from './Icons/MarkdownIcon';
export interface IFileItemProps {
name: string;
path: string;
}
export co... |
import { Component, OnInit } from '@angular/core';
import { Validators, FormBuilder, FormGroup } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { AccountService } from 'src/app/services/account.service';
import { PasswordErrorStateMatcher } from 'src/app/shared/validators/passw... |
import * as fs from 'fs';
import { parse } from 'dotenv';
import { EnvConfig } from './config.interface';
export class ConfigService<T = EnvConfig> {
// 系统配置
private readonly envConfig: T;
constructor(filePath: string, validator?: (envConfig: T) => T) {
// 解析配置文件
const configFile: T = pars... |
import { memberMatcherFor } from './lib/memberMatcherFor';
import { toBeString } from './toBeString';
export type ToHaveString = (
key: string,
expectationFailOutput?: any
) => boolean;
declare global {
namespace jasmine {
interface Matchers<T> {
toHaveString: ToHaveString;
}
}
}
export const t... |
import { Control } from '../control';
import { Emitter } from '../core/emitter';
import { EventsTypes } from '../events';
export declare class ControlView extends Emitter<EventsTypes> {
constructor(el: HTMLElement, control: Control, emitter: Emitter<EventsTypes>);
} |
import { AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigClient";
import { UntagResourceRequest } from "../models/index";
import {
deserializeAws_restJson1UntagResourceCommand,
serializeAws_restJson1UntagResourceCommand,
} from "../protocols/Aws_restJson1";
import { getSerde... |
import app from './app';
import logger from './logger';
const port = app.get('port');
const server = app.listen(port);
process.on('unhandledRejection', (reason, p) =>
logger.error('Unhandled Rejection at: Promise ', p, reason)
);
process.on('SIGTERM', () => {
logger.warn('SIGTERM received, closing server.');
s... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Label } from "./Label";
import { Result } from "./Result";
import { PredictionStructureWithScore } from "./PredictionStructureWithScore";
export class PredictionStructureWithScoreLabelObject
extends Predic... |
// Copyright 2017 Yoshi Yamaguchi
//
// 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 applicabl... |
import { BigNumberish } from '@ethersproject/bignumber';
import { formatUnits } from '@ethersproject/units';
import { Multicaller } from '../../utils';
export const author = 'gerrrg';
export const version = '0.0.1';
const abi = ['function getInternalBalance(address user, address[] tokens) external view returns (uint2... |
import { Component, ComponentFactoryResolver, ViewChild, ViewContainerRef } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { IconProp, library } from '@fortawesome/fontawesome-svg-core';
import { faUser as faUserRegular } from '@fortawesome/free-regular-svg-icons';
import { faCircle, faUs... |
export function replaceWithSlash(pathStr: string) {
return pathStr.replace(/\\/g, '/')
} |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.20.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
export function isNumber(value : unknown) : value is number {
return Number.isFinite(value);
} |
import * as _ from 'lodash';
/**
* Adds the specified prefix before the provided value.
*
* @param value Value which to add the prefix before.
* @param prefix Prefix to add before the value.
*/
// tslint:disable-next-line:no-shadowed-variable
export function prefix(value: string, prefix: string): string {
let r... |
import React, { FunctionComponent } from "react";
import { FilterGroup, FilterGroupProps } from "../filtergroup";
import $ from "jquery";
import "./styles.scss";
interface LayeredNavProps {
filterGroups?: Array<FilterGroupProps>;
}
const defaultProps = {
filterGroups: [
{
id: "stock_status... |
/*
* Copyright 2019, 2020 Hitachi America, Ltd. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
import { config } from './config';
import { logger } from './logger';
import { Notifier } from './notifier';
import express from 'express';
import cors from 'cors';
import morgan from 'morgan';
import bo... |
import { Field, ObjectType, InputType, Int, PickType } from '@nestjs/graphql';
import { CoreOutput } from './output.dto';
import { Podcast } from '../entities/podcast.entity';
import { IsInt } from 'class-validator';
import { Episode } from '../entities/episode.entity';
@ObjectType()
export class GetAllPodcastsOutput ... |
import { Component, OnChanges, OnDestroy, SimpleChanges, Input } from '@angular/core';
import { ChartApiModel } from './model/chart-api.model';
// HIGHCHARTS
import * as Highcharts from 'highcharts';
declare var require: any;
require('highcharts/highcharts-more')(Highcharts);
require('highcharts/modules/solid-gauge')(... |
import { SourceType } from 'coffee-lex';
import { While as CoffeeWhile } from 'decaffeinate-coffeescript2/lib/coffeescript/nodes';
import { Block, Loop, While } from '../nodes';
import getLocation from '../util/getLocation';
import ParseContext from '../util/ParseContext';
import mapAny from './mapAny';
import mapPossi... |
import React, { useEffect } from 'react';
const injectCaptcha = (src: string) => {
const headTag = window.document.getElementsByTagName('head')[0];
if (headTag) {
const scriptTag = window.document.createElement('script');
scriptTag.src = src;
headTag.appendChild(scriptTag);
}
};
const executeCaptcha... |
import { IsNotEmpty } from 'class-validator';
import { InputType, Field } from '@nestjs/graphql';
@InputType()
export class CreateArticleInput {
@Field()
@IsNotEmpty()
description: string;
@Field()
@IsNotEmpty()
title: string;
} |
import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core";
import { UsersService } from "../../services/users.service";
import { IUser } from "../../utils/interfaces";
@Component({
selector: "app-bio",
templateUrl: "./bio.component.html",
styleUrls: ["./bio.component.scss"],
})
export class ... |
export let GLOBAL = {
url: 'http://localhost:3800/api/'
}; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About MicroBitcoin</source>
<translation>Despre MicroBitcoin</translation>
</message>
<message>
... |
import { Point } from "../../../common";
import * as Graphics from "../../../graphics";
import { ConstraintSolver } from "../../../solver";
import * as Specification from "../../../specification";
import { AttributeDescription, BoundingBox, BuildConstraintsContext, Controls, DropZones, Handles, ObjectClassMetadata, Sna... |
import { forwardRef, Module } from '@nestjs/common';
import { MailerConsumer } from './mailer.consumer';
import { MailerService } from './mailer.service';
import { UsersModule } from '../users/users.module';
@Module({
imports: [forwardRef(() => UsersModule)],
providers: [MailerService, MailerConsumer],
exports: ... |
import React from 'react';
import { ToolbarButton, ButtonGroup, VerticalGroup, HorizontalGroup } from '@grafana/ui';
import { withCenteredStory } from '../../utils/storybook/withCenteredStory';
import { ToolbarButtonRow } from './ToolbarButtonRow';
import { ToolbarButtonVariant } from './ToolbarButton';
import { Dashbo... |
/* eslint-disable jsx-a11y/click-events-have-key-events */
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
import { useState } from "react";
import CopyToClipboard from "react-copy-to-clipboard";
import CopyIcon from "../../../assets/copy.svg";
import { LinkContainer, StyledTooltip } from "./comm... |
import 'mocha';
import { expect } from 'chai';
import Entity from './entity';
import Component from './components/component';
class C1 extends Component {}
class C2 extends Component {}
describe('Entity', (): void => {
it('should auto-increment IDs', (): void => {
const e = new Entity();
const e2... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GiGraduateCap: IconType; |
import HttpServerMock from '../../lib/specs/lib/http_server_mock';
import { PCPRedisDatasource } from '../datasource';
import { templateSrv } from '../../lib/specs/lib/template_srv_mock';
import fixtures from '../../lib/specs/lib/fixtures';
describe("PCP Redis e2e", () => {
const ctx: { server: HttpServerMock, dat... |
import { useEffect, useState } from 'react';
// got from https://usehooks.com/useWindowSize/
interface WindowSize {
width?: number;
height?: number;
}
export const useWindowSize = (): WindowSize => {
// Initialize state with undefined width/height so server and client renders match
// Learn more here: https:... |
import {IXmlElement, IXmlAttribute} from "../../../Common/FileIO/Xml";
import {MusicSheet} from "../../MusicSheet";
import {ChordDegreeText, ChordSymbolContainer, ChordSymbolEnum, Degree} from "../../VoiceData/ChordSymbolContainer";
import {AccidentalEnum, NoteEnum, Pitch} from "../../../Common/DataObjects/Pitch";
impo... |
import * as __aws_crypto_sha256_browser from "@aws-crypto/sha256-browser";
import * as __aws_sdk_core_handler from "@aws-sdk/core-handler";
import * as __aws_sdk_fetch_http_handler from "@aws-sdk/fetch-http-handler";
import * as __aws_sdk_json_builder from "@aws-sdk/json-builder";
import * as __aws_sdk_json_error_unmar... |
/**
* @license
* Copyright 2020 Dynatrace 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
/*
* Copyright The OpenTelemetry 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
import React, { Fragment } from 'react';
import { noop } from './helpers';
import Header from './components/Header';
import Body from './components/Body';
import { useOpen } from './hooks';
import { CollapseProps } from './types';
const Collapse = ({
children,
initialIsOpen = false,
isOpen: providedIsOpen,
onC... |
import { GenericRepository } from './generic.repository';
import { Document, Model } from 'mongoose';
export abstract class GenericService<TSchema extends Document> {
public constructor(
protected readonly model: Model<TSchema>,
protected readonly repository: GenericRepository<TSchema>
) { }
} |
export default interface IcardInfo {
id: string,
stack: string,
url: string,
image: {
url: string | null,
alt: string | null
},
videoId: string | null,
site: string | null,
pt: {
title: string,
description: string,
},
en: {
title: string | null,
descrip... |
import styled from 'styled-components'
export const Button = styled.button`
position: absolute;
right: 10px;
bottom: 10px;
padding: 10px 20px;
background-color: #ffff;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
font-weight: 500;
letter-spacing: 1px;
color: #666;
border: 1px solid rgba(255, 255... |
export interface ArkadikoStakePoolDikoTraitV1Contract {} |
import Component from 'goog:goog.ui.Component';
class MyComponent extends Component {
foo(): string {
return '';
}
} |
import { EthText } from "src/components/EthText";
import { FadeBox, PageTransition } from "src/components/FadeBox";
import { useLupiContractContext } from "src/hooks/useLupiContract";
import { useResponsive } from "src/hooks/useResponsive";
import { useWeb3Context } from "src/hooks/useWeb3";
import { Box, Grid, Text } ... |
// Type definitions for parse5 5.0
// Project: https://github.com/inikulin/parse5
// Definitions by: Ivan Nikulin <https://github.com/inikulin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export interface Location {
/**
* One-based line index of the first char... |
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppComponent} from './app.component';
import {ShortenPipe} from './shorten.pipe';
import {StatusFilterPipe} from './status.filter.pipe';
import {FormsModule} from '@angular/forms';
@NgModule({
declarations: [
... |
/**
* Abstract implementation for in memory session operations
*/
import { InMemoryDocumentSessionOperations } from "./InMemoryDocumentSessionOperations";
import { throwError } from "../../Exceptions";
import { TypeUtil } from "../../Utility/TypeUtil";
import { StringUtil } from "../../Utility/StringUtil";
import { A... |
export type Tuple<T> = [T, T];
export function isTuple<T>(arr: T[]): arr is Tuple<T> {
return arr.length === 2;
}
export type Triple<T> = [T, T, T];
export function isTriple<T>(arr: T[]): arr is Triple<T> {
return arr.length === 3;
} |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-home-main-section',
templateUrl: './home-main-section.component.html',
styleUrls: ['./home-main-section.component.css']
})
export class HomeMainSectionComponent implements OnInit {
construc... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import Trophy from "@/svg/trophy";
import { MortarBoardIcon } from "@primer/octicons-react";
import Pass from "@/svg/pass";
import Podium from "@/svg/podium";
import { CodeIcon, PencilIcon, HeartIcon } from "@heroicons/react/solid";
function TimelineIcon({ type }) {
switch (type) {
case "Event":
return (
... |
import { Component, OnInit, Input } from '@angular/core';
import { Post } from '../../../store/reddit/models/post.model';
@Component({
selector: 'app-post',
templateUrl: './post.component.html',
styleUrls: ['./post.component.scss']
})
export class PostComponent implements OnInit {
@Input() public post: Post;
... |
import { extendExpect } from '~test-utils'
import { sql, SqlQuery } from './index'
const TEST_SONG = {
name: 'Take On Me',
artist: 'A-ha',
rating: 3,
}
const dedent = (s: string) => s.replace(/\n\s{2}/g, '\n')
extendExpect()
describe('sql', () => {
it('allows raw strings', () => {
expect(sql`SELECT * F... |
import styled from 'styled-components'
import { Menu as DefaultMenu } from '../Menu'
export const ConfirmMenuContent = styled.div`
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 8px;
margin: 0 6px;
`
export const Menu = styled(DefaultMenu)`
> div {
padding: 6px 0;
}
&[data-textual=... |
import { browser } from 'webextension-polyfill-ts';
import {
ConnectionPort,
IExtensionRequest,
IExtensionMessage,
IExtensionResponse
} from './extension';
import { v4 as uuidv4 } from 'uuid';
const bgPort = browser.runtime.connect('', { name: ConnectionPort.BACKGROUND });
export const getBgPort = () ... |
export enum SearchResultType {
Transaction,
Block,
Address
}
export type SearchResult = {
type: SearchResultType
data: string
} |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', ... |
import * as mongoose from 'mongoose';
import * as Promise from 'bluebird';
import * as signale from 'signale';
import APP_CONFIG from '../app.config';
export default function () {
(<any>mongoose).Promise = Promise;
connectDb();
}
/**
* @method connectDb
* @description connection database
* @param {Function} c... |
/*
* Copyright 2021 The Kubernetes 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 agr... |
export { Wizard } from "./wizard"
export type { WizardProps } from "./wizard.d"
export { Step } from "./step"
export type { StepProps } from "./step.d" |
import * as _ from 'lodash';
import { alignWithDNS1123, joinGrammaticallyListOfItems, getName } from '@console/shared/src';
import { InternalActionType, UpdateOptions } from '../../../types';
import {
OvirtProviderField,
VMSettingsField,
VMWizardNetwork,
VMWizardNetworkType,
VMWizardProps,
VMWizardStorage,
... |
import { Component, Element, h, Host, Prop } from '@stencil/core';
import { Figma, createElement } from 'lucide';
import { attributesToObject } from '../utils/utils';
@Component({
tag: 'icon-figma'
})
export class IconFigma {
@Element() el: any;
@Prop({ attribute: 'alignment-baseline' }) alignmentBaseline: any;... |
import { Brand } from '../interfaces/common.interfaces';
import { readFile } from 'fs';
import { promisify } from 'util';
import got from 'got';
export type EULanguages = 'cs'|'da'|'nl'|'en'|'fi'|'fr'|'de'|'it'|'pl'|'hu'|'no'|'sk'|'es'|'sv';
export const EU_LANGUAGES: EULanguages[] = ['cs', 'da', 'nl', 'en', 'fi', 'fr... |
/*
* 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 expect from '@kbn/expect';
import { summarizeCustomElements } from '..... |
import { Trade, TradeType } from '@teaswap/uniswap-sdk'
import React, { useContext, useMemo } from 'react'
import { ArrowDown, AlertTriangle } from 'react-feather'
import { Text } from 'rebass'
import { ThemeContext } from 'styled-components'
import { useTranslation } from 'react-i18next'
import { Field } from '../../s... |
export interface FacebookMessengerMessage {
} |
import {TEST_ADMIN_MODULE_IMPORTS, TEST_ADMIN_MODULE_PROVIDERS} from '@admin/admin.module.mock';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {AdminBaseParentViewIdComponent} from './admin-base-parent-view-id.component';
describe('AdminBaseViewIdComponent', () => {
let component: AdminBaseP... |
import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { CabinetManagerService, PublicationForGUI } from '@perun-web-apps/perun/openapi';
import { NotificatorService } from '@perun-web-apps/perun/services';
import { TranslateService } ... |
import { Favorable, ID } from './misc';
import { Model } from './Model';
import { User } from './User';
export interface Favorite<T extends Favorable = Favorable> extends Model {
type: string;
group: string;
favorable_type: string;
favorable_id: number;
favorable?: T;
user_id: ID;
user?: User;
} |
import { AuthenticationError } from 'apollo-server-lambda'
import Cookie from 'cookie'
export const createCookie = (name: string, value: string) => {
return Cookie.serialize(name, value, {
httpOnly: true,
maxAge: 60 * 60 * 24 * 7, // 1 week,
sameSite: 'none',
secure: true,
})
}
export const addCoo... |
import {
EndpointsInputConfig,
EndpointsResolvedConfig,
RegionInputConfig,
RegionResolvedConfig,
resolveEndpointsConfig,
resolveRegionConfig,
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
getHostHeaderPlugin,
HostHeaderInputConfi... |
import { permissionFromMessage } from '../helper/permission'
import { Banhammer } from '../types'
/**
* Check authorization
* @param context banhammer context
* @param next next middleware
*/
export const authorization: Banhammer.middleware = ({ state, message }, next) => {
const { resolved } = state.dispatcher.... |
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { DataService } from 'src/app/data.service';
@Component({
selector: 'app-user-list',
templateUrl: './raffle-list.component.html',
styleUrls: ['./raffle-list.component.scss']
})
export class RaffleL... |
export * from './hasMinimalLenght';
export * from './hasSpecialCaracteres';
export * from './hasUppercase';
export * from './itsCommonPassword';
export * from './itsJustNumeric'; |
import { v4 as uuidv4 } from "uuid";
import { PluginRegistry } from "@hyperledger/cactus-core";
import "jest-extended";
import {
PluginLedgerConnectorBesu,
PluginFactoryLedgerConnector,
ReceiptType,
Web3SigningCredentialType,
} from "../../../../main/typescript/public-api";
import { PluginKeychainMemory } from... |
export { default as APRTypeSwitch } from './APRTypeSwitch';
export { default as CollateralSwitch } from './CollateralSwitch';
export { default as ToggleSwitch } from './ToggleSwitch'; |
import { Component, Event, EventEmitter, Method, Prop, State, Watch, h } from '@stencil/core';
let id = 0;
/**
* @since 2.0
* @status stable
*
* @slot - The switch's label.
*
* @part base - The component's base wrapper.
* @part control - The switch control.
* @part thumb - The switch position indicator.
* @p... |
import { DbIconDefinition } from "@digibearapp/digibear-common-types";
declare const dbArrowsOutSplitTriangle: DbIconDefinition;
export default dbArrowsOutSplitTriangle; |
/**
* @license
* Copyright 2016 Palantir Technologies, 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... |
import { Quaternion } from '.'
import { Matrix4 } from './Matrix4'
export class Vector4 {
x: number
y: number
z: number
w: number
static One: Vector4 = new Vector4(1, 1, 1, 1)
static UnitX: Vector4 = new Vector4(1, 0, 0, 0)
static UnitY: Vector4 = new Vector4(0, 1, 0, 0)
static UnitZ: Vector4 = new Vector4(0,... |
import { useReducer, Dispatch } from 'react';
export default function useForceUpdate(): Dispatch<unknown> {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [, forceUpdate] = useReducer((x, _: unknown): number => x + 1, 0);
return forceUpdate;
} |
import { tmpdir } from "os";
import * as utils from "../../utils";
import { Constants } from "../constants";
import { EmulatorInfo, EmulatorInstance, Emulators } from "../types";
import { createApp } from "./server";
import { StorageLayer } from "./files";
import { EmulatorLogger } from "../emulatorLogger";
import { St... |
import {Drawer} from "../../drawer/Drawer";
import {Recta} from "@highduck/math";
import {AssetRef} from "../../util/Resources";
import {Sprite} from "../Sprite";
import {Display2D, Display2DComponent} from "./Display2D";
import {SpriteFlag} from "@highduck/anijson";
import {ComponentTypeA} from "../../ecs";
const TMP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.