text stringlengths 10 953k |
|---|
import { Request, Response } from 'express';
import { MessagesService } from "../services/MessagesService";
class MessagesController {
async create(request: Request, response: Response) {
const { admin_id, text, user_id} = request.body;
const messagesServices = new MessagesService();
const message = aw... |
import { Injectable } from '@angular/core';
import { Observable, throwError } from 'rxjs'
import { catchError, tap } from 'rxjs/operators'
import { PeriodModel } from '../Models/app.PeriodModel';
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpResponse } from '@angular/common/http';
@Injectable({
provided... |
import { Router } from 'express';
import { getConnection, getRepository } from 'typeorm';
import Content from '../models/Content';
const contentRouter = Router();
contentRouter.post('/', async (request, response) => {
try {
const repo = getRepository(Content);
const res = await repo.save(request.b... |
import { copyObj } from "./Utils"
export class LogFactory {
_loggers: { [id: string]: Logger; } = {};
get(loggerName: string): Logger {
if (!this._loggers[loggerName]) {
this._loggers[loggerName] = new Logger();
}
return this._loggers[loggerName];
}
takeLogs(): {... |
import * as fs from 'fs';
console.info("\n###### Challenge 1 #######")
console.time("execution")
const input = fs.readFileSync('input1.txt','utf8');
let lines = input.split('\n').map(line => parseInt(line)).sort((a,b) => a-b )
lines.unshift(0)
lines.push(lines[lines.length-1] + 3)
const steps = lines.map((el, i) => ... |
<TS language="ka" 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</sour... |
import { TestBed, inject, ComponentFixture, waitForAsync } from "@angular/core/testing";
import { DebugElement } from "@angular/core";
import { ReactiveFormsModule, FormGroup, FormControl } from "@angular/forms";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { By } from "@angular/p... |
import React, { Component } from 'react'
import Typical from 'react-typical'
import './text.css'
const steps = [
'Parabรฉns.', 2000,
"Vocรช terรก preferรชncia no lanรงamento!",2000,
];
export default class TextAnimation extends Component {
render () {
return (
<div className="textAnimation">
... |
import React from 'react';
import Button from './button';
import LoadingSpinner from './shared/loading-spinner';
import { BaseProps } from './types';
export type LoadingButtonOwnProps = {
/* Conditionally show a spinner over the top of a button */
isLoading?: boolean;
};
export type LoadingButtonProps = Omit<Bas... |
/*
* @license Spanboon Platform v0.1
* (c) 2020-2021 KaoGeek. http://kaogeek.dev
* License: MIT. https://opensource.org/licenses/MIT
* Author: shiorin <junsuda.s@absolute.co.th>, chalucks <chaluck.s@absolute.co.th>
*/
import { EntityRepository, MongoRepository } from 'typeorm';
import { PageSocialAccount } from ... |
import { Component } from 'j-templates';
import { span } from 'j-templates/DOM';
class ChildComponent extends Component {
public Template() {
return span({}, () => "Child Component");
}
}
var childComponent = Component.ToFunction("child-component", null, ChildComponent);
class RootComponent extends... |
export class Attachment {
id: number;
type: String;
name: String;
firePower: number;
accuracy: number;
range: number;
handling: number;
rateOfFire: number;
magSize: number;
fireMode: String;
zoomLevel: String;
positives: String;
negatives: String;
weapon: String;
constructor(
id: numb... |
import * as fsExtra from 'fs-extra';
import { orderBy } from 'natural-orderby';
import * as path from 'path';
import * as request from 'request';
import { rokuDeploy } from 'roku-deploy';
import type { RokuDeploy, RokuDeployOptions } from 'roku-deploy';
import {
BreakpointEvent,
DebugSession as BaseDebugSession... |
import Interceptor from '../network/Interceptor'
import { Browser } from './Browser'
import { Browser as BrowserInterface } from './IBrowser'
import { IReporter } from '../Reporter'
import { NullReporter } from '../reporter/Null'
import { ObjectTrace } from '../utils/ObjectTrace'
import {
TestObserver,
NullTestObse... |
import {IconDefinition, IconName, IconPrefix} from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faServer: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures: ... |
import { createTheme } from './base';
const litmusPortalTheme = createTheme({
palette: {
primary: {
main: '#5B44BA',
light: '#858CDD',
dark: '#4028A0',
},
secondary: {
main: '#109B67',
light: '#858CDD',
dark: '#128359',
},
success: {
main: '#109B67',
... |
export * from './ast';
export * from './superjson';
export * from './providerjson'; |
import styled from 'styled-components';
export const CheckoutContainer = styled.div`
width: 55%;
min-height: 90vh;
display: flex;
flex-direction: column;
align-items: center;
margin: 50px auto 0;
`;
export const HeaderContainer = styled.div`
width: 100%;
padding: 10px 0;
display: flex;
justify-con... |
import { MapType } from '@sap-cloud-sdk/util';
import { Constructable } from '../../constructable';
import { Entity } from '../../entity';
/**
* Helper function that maps an entity to its keys map with their original names.
*
* @param entity - Entity to map
* @param entityConstructor - The constructor of the entity... |
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { IntFilter } from '../prisma/int-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { StringFilter } from '../prisma/string-filter.input';
import { BoolFilter } from '../prisma/bool-filter... |
import { OkProcess } from '../../../src/utils/helpers/successComposite'
import { Ok } from '../../../src/utils/plugins/statuscodes/ok'
import { HttpResponse } from '../../../src/presentation/protocols'
const makeOkStub = () => {
return new Ok()
}
const makeSut = (): HttpResponse => {
const sut = new OkProcess(make... |
import { Document } from 'mongoose';
import { Sample } from 'src/schema.ts';
export type SampleDocument = Sample & Document; |
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { Invoice } from '../../../../../../../../api-codegen/anapi';
@Component({
selector: 'dsh-invoice-main-info',
templateUrl: 'invoice-main-info.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ... |
import { HStack, Link } from "@chakra-ui/layout";
import { solid, brands } from "@fortawesome/fontawesome-svg-core/import.macro";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import type { FC } from "react";
import type { Network } from "../../models/company";
interface Props {
network: Network... |
import { NotFoundException } from '@nestjs/common';
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql';
import { NewRoleInput } from './dto/new-role.input';
import { RoleData } from './models/role';
import { RoleService } from './role.service';
import { RoleEntity } from './role.entity';
import { UpdateR... |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// tslint:disable:no-var-keyword // Grandfathered in
// tslint:disable:no-duplicate-variable // G... |
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0
import { AddIcon } from '@chakra-ui/icons';
import {
Button,
FormControl,
FormLabel,
Input,
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalHeader,
ModalOverlay,
Text,
useColorMode,
useDisclosure,
VStack,
} ... |
import {
checkExpr,
checkPredicate,
checkVar,
disambiguateSubNode,
} from "compiler/Substance";
import consola, { LogLevel } from "consola";
import { constrDict, objDict } from "contrib/Constraints";
// Dicts (runtime data)
import { compDict } from "contrib/Functions";
import { constOf, numOf, varOf } from "eng... |
import { ChangeDetectionStrategy, Component, OnInit, Output, EventEmitter } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { PiggyBank } from '../piggy-bank.model';
@Component({
selector: 'create-piggy-bank',
templateUrl: './create-piggy-bank.component.html',... |
import type { MixedLocale } from './locale';
import { AnyObject, Maybe, Optionals } from './types';
import type { Defined } from './util/types';
import BaseSchema from './schema';
export declare class MixedSchema<
TType = any,
TContext = AnyObject,
TOut = TType
> extends BaseSchema<TType, TContext, TOut> {
de... |
/*
* Copyright 2018 Brigham Young University
*
* 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 ... |
import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { TagsController } from "./tags.controller";
import { TagsEntity } from "./tags.entity";
import { TagsService } from "./tags.service";
@Module({
imports: [TypeOrmModule.forFeature([TagsEntity])],
controllers: [Tags... |
// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/dialects/sqlite3/query/compiler.js
// SQLite3 Query Builder & Compiler
import QueryCompiler from '../../../query/compiler.js';
import noop from '../../../util/noop.js';
import _ from '../../../deps/lodash@4.17.15/index.js';
const constant = _.... |
export declare class CommentDTO {
comment_id: string;
uid: string;
content: string;
post_uid: string;
post_id: string;
user_id: string;
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DiseaseListComponent } from './disease-list/disease-list.component';
import { DiseaseListCardComponent } from './disease-list-card/disease-list-card.component';
import {CustomMaterialModule} from "@ncats-frontend-library/... |
// -- copyright
// OpenProject is an open source project management software.
// Copyright (C) 2012-2021 the OpenProject GmbH
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which i... |
export const RPC_URL_RINKEBY:string = 'https://rinkeby.infura.io/v3/947932ecbc0e4cc38e95d92a1f6efca0'
export const RPS_CONTRACT_ADDRESS_RINKEBY:string = '0x2b327cea6c152f83a04C4cd33f3c06d58cd8f66a' |
import {IUploadedFile} from '../Domain/File/IUploadedFile';
import {File} from 'src/Domain/File/File.entity';
export interface IFileStorage {
upload(file: IUploadedFile): Promise<string | null>;
download(file: File): Promise<Buffer | null>;
} |
import { Smartphone as FeatherSmartphone, Props } from 'react-feather';
import * as React from 'react';
export const Smartphone: React.FC<Props> = ({ ...rootProps }) => (
<FeatherSmartphone data-icon="smartphone" {...rootProps} />
); |
import { tl} from '../../util/intl'
import { isCustomFormat, format as modelFormat } from '../../modelFormat'
import {isInternalModel} from "../../util/utilz";
import { settings } from '../../settings'
import { CustomError } from '../../util/customError'
// Properties registration to make Blockbench save them in the p... |
import { AutoserviceService } from "../../service/autoservice-service";
import { Component } from "@angular/core";
import { ShowToaster } from "../../utils/toaster";
import { SupplierMapping} from "../../utils/supplier-mapping";
import { IonicPage, NavController, NavParams,
ViewController, PopoverController, Ap... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AboutComponent } from './about.component';
describe('AboutComponent', () => {
let component: AboutComponent;
let fixture: ComponentFixture<AboutComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
import React from 'react';
import { Split, SplitItem } from '@patternfly/react-core';
import { RadioField } from '../../ui';
export interface ManagedNetworkingControlGroupProps {
disabled: boolean;
}
export const ManagedNetworkingControlGroup = ({
disabled = false,
}: ManagedNetworkingControlGroupProps) => {
con... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Onshape REST API
* The Onshape REST API consumed by all clients.
*
* OpenAPI spec version: 1.93
* Contact: api-support@onshape.zendesk.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
... |
import {Injector} from "@typeix/di";
import {URLSearchParams} from "url";
/**
* @since 7.0.0
* @interface
* @name URI
*
* @description
* Parsed URL
*/
export interface URI {
pathname: string;
hash?: string;
host?: string;
href?: string;
origin?: string;
authority?: string;
port?: string;
protoco... |
export interface FormatsMethods<T extends string | number> {
compare?: (data1: T, data2: T) => number | undefined;
validate(data: T): boolean;
} |
import { IChartDataset } from ".";
export interface IStoreState {
datasets: IChartDataset[];
} |
import { App } from "vue";
import control from "./src/Control.vue";
import nodePanel from "./src/NodePanel.vue";
import dataDialog from "./src/DataDialog.vue";
export const Control = Object.assign(control, {
install(app: App) {
app.component(control.name, control);
}
});
export const NodePanel = Object.assign... |
module gameanalytics
{
import GAThreading = gameanalytics.threading.GAThreading;
import TimedBlock = gameanalytics.threading.TimedBlock;
import GALogger = gameanalytics.logging.GALogger;
import GAStore = gameanalytics.store.GAStore;
import GAState = gameanalytics.state.GAState;
import GAHTTPApi ... |
import compose from './compose'
import { Middleware, MiddlewareAPI } from './types/middleware'
import { AnyAction } from './types/actions'
import { StoreEnhancer, StoreCreator, Dispatch } from './types/store'
import { Reducer } from './types/reducers'
/**
* Creates a store enhancer that applies middleware to the disp... |
import { Inject, Injectable } from "@angular/core";
import {
ActivatedRoute,
ActivatedRouteSnapshot, CanActivate, Router,
RouterStateSnapshot,
} from "@angular/router";
import { MsalService } from "./msal.service";
import { Location, PlatformLocation } from "@angular/common";
import { BroadcastService } fro... |
// Desaturate is a simple plugin that desaturates image fills in Figma.
// Select any Frame or Vector object with an image fill and run the plugin.
const IS_LOGGING_ENABLED = false;
const ALLOWED_NODE_TYPES = [
"COMPONENT",
"COMPONENT_SET",
"ELLIPSE",
"FRAME",
"GROUP",
"INSTANCE",
"LINE",
"POLYGON",
... |
import Taro from '@tarojs/taro'
import { useState, useEffect, useRef, useCallback } from 'react'
import { View, Navigator, ITouchEvent } from '@tarojs/components'
import * as utils from '../wxs/utils'
import { NoticeBarProps } from '../../../types/notice-bar'
import { getRect, requestAnimationFrame } from '../common/u... |
import { createRootStore } from './index'
describe('Mobx - MST Root Store', () => {
it('should create CounterStore instance as a property', () => {
const store = createRootStore()
expect(store.counterStore).toBeDefined()
})
}) |
import { AppProps } from 'next/app';
import { ChakraProvider } from '@chakra-ui/react';
import { myTheme } from '@/theme/theme';
export default function MyApp({ Component, pageProps }: AppProps) {
return (
<ChakraProvider theme={myTheme}>
<Component {...pageProps} />
</ChakraProvider>
);
} |
export * from "https://deno.land/x/discordeno@13.0.0-rc18/mod.ts";
export type { BotWithCache } from "https://deno.land/x/discordeno_cache_plugin@0.0.21/mod.ts"; |
import { injectable, inject } from 'tsyringe';
import IToolsRepository from '@modules/tools/repositories/IToolsRepository';
import IToolDTO from '@modules/tools/dtos/IToollDTO';
interface IRequest {
tag?: string;
}
@injectable()
export default class ListProviderService {
constructor(
@inject('ToolsRepository... |
/**
* Copyright 2019, 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... |
/**
* @fileOverview Cartesian Grid
*/
import React, { PureComponent, ReactElement } from 'react';
import _ from 'lodash';
import { isNumber } from '../util/DataUtils';
import { PresentationAttributes, ChartOffset, D3Scale, filterProps } from '../util/types';
import { Props as XAxisProps } from './XAxis';
import { Pr... |
import {UserProviderId} from '@sheetbase/models';
export class ProviderObject {
providerId: UserProviderId;
endpoint: string;
scopes: string;
customParameters = {} as Record<string, string>;
constructor(providerId: UserProviderId, endpoint: string, scopes: string) {
this.providerId = providerId;
thi... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'd-alert-close',
templateUrl: './close.component.html',
styleUrls: ['./close.component.css']
})
export class CloseComponent implements OnInit {
constructor() {
}
ngOnInit() {
}
handleClose($event) {
console.log($event);
... |
import { Context } from './Types';
export const CONTAINER: Context = {
code: 'container',
children: true,
repeater: false,
sanitizers: [],
validators: [],
};
export default CONTAINER; |
import { Assertions, GeneralSteps, Logger, Pipeline, Step } from '@ephox/agar';
import { UnitTest } from '@ephox/bedrock-client';
import { Html, SugarElement } from '@ephox/sugar';
import * as PaddingBr from 'tinymce/core/dom/PaddingBr';
UnitTest.asynctest('browser.tinymce.core.dom.PaddingBrTest', function (success, f... |
import { RootState } from 'app/store/types';
import store from '../store/store';
/**
* Add an observer to a Redux store. Whenever the data selected by the selector parameter
* changes, the onChange function will be called. This allows us to react to changes in the
* store and update other things, such as saving to ... |
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Input for CreatePlatformApplication action.</p>
*/
export interface CreatePlatformApplicationInput {
/**
* <p>Application names must be made up of only uppercase and lowercase ASCI... |
import { SpringOptions, Animation } from "../types";
export declare function spring({ from, to, velocity, stiffness, damping, mass, restSpeed, restDelta, }: SpringOptions): Animation<number>;
export declare namespace spring {
var needsInterpolation: (a: any, b: any) => boolean;
} |
import { Topic, User } from ".";
// TODO: Separate into different interfaces
// One should have body and the other shouldn't
export interface Notice {
id: number;
title: string;
body?: string;
created_at: string;
updated_at: string;
author?: User;
topics: Topic[];
} |
/**
* Copyright (c) 2016 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { Disposable } from 'common/Lifecycle';
import { addDisposableDomListener } from 'browser/Lifecycle';
import { IColorSet, IViewport } from 'browser/Types';
import { ICharSizeService, IRenderService } from 'browser/services/... |
import 'dotenv/config';
interface IJwtConfig {
secret: string;
signOptions: {
expiresIn: string;
};
}
interface ISwaggerConfig {
enable: boolean;
write: boolean;
}
export class ConfigService {
constructor(private env: { [k: string]: string | undefined }) {}
private getValue(key: string, throwOnMiss... |
import Q = require('q');
import tl = require('vsts-task-lib/task');
var Ssh2Client = require('ssh2').Client;
var Scp2Client = require('scp2').Client;
export class RemoteCommandOptions {
public failOnStdErr : boolean;
}
export class SshHelper {
private sshConfig: any;
private sshClient: any;
private sc... |
import mergeDeep from "merge-deep";
/**
* Merge two objects
* @param baseObject The base object with all base properties
* @param replacementObject The object that will replace properties from the base object
* @returns The merged object
*/
export function mergeObject<ObjectType>(
baseObject: ObjectType,
... |
/**
* @file component/Suggestion/index.tsx
* @author robzizo < me@robzizo.ir >
* @description Represents the suggestion component for select item from suggests from api call.
* Documented by: robzizo
* Date of documentation: 2017-07-23
* Reviewed by: -
... |
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Store } from '@ngrx/store';
import { CategoryService } from '@services';
import { CategoryAction } from '@store/actions';
import { categorySelector } from '@store/selectors';
import { State } from '@store/states';
import... |
import select from 'select-dom';
import onetime from 'onetime';
import elementReady from 'element-ready';
import compareVersions from 'tiny-version-compare';
import * as pageDetect from 'github-url-detection';
// This never changes, so it can be cached here
export const getUsername = onetime(pageDetect.utils.getUserna... |
import { Injectable } from '@angular/core';
export class Employee {
id: number;
firstName: string;
lastName: string;
gender: string;
birthDate: Date;
}
let employees: Employee[] = [];
let surnames: string[] = [
"Smith",
"Johnson",
"Brown",
"Taylor",
"Anderson",
"Harris",
... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import {
MatBottomSheetModule,
MatButtonModule,
MatCardModule,
MatDialogModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatListModule,
MatOption... |
import React, { useState, useEffect } from "react";
import { useLazyQuery } from "@apollo/client";
import styled from "@emotion/styled";
import Checkbox from "@leafygreen-ui/checkbox";
import { Input } from "antd";
import { useLocation } from "react-router";
import {
GetSpawnTaskQuery,
GetSpawnTaskQueryVariables,
}... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="be_BY" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TryCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import {RouterState} from "redux-router5";
import {IGithubReposState} from "./modules/githubReposModule";
import {ISettingsState} from "./modules/settingsModule";
import {IUserInterfacesState} from "./modules/userInterfacesModule";
export interface IStore {
githubRepos: IGithubReposState;
router: RouterState;
se... |
// https://storybook.js.org/blog/storybook-for-webpack-5/
module.exports = {
// https://gist.github.com/shilman/8856ea1786dcd247139b47b270912324#upgrade
core: {
builder: "webpack5",
},
stories: ['../stories/*.stories.tsx'],
addons: [
'@storybook/addon-knobs',
],
typescript: {
check: false,
... |
/*
* 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 { get } from 'lodash/fp';
import React from 'react';
import { shallow ... |
import { ServiceInputTypes, ServiceOutputTypes, StorageGatewayClientResolvedConfig } from "../StorageGatewayClient";
import {
CreateSnapshotFromVolumeRecoveryPointInput,
CreateSnapshotFromVolumeRecoveryPointOutput,
} from "../models/index";
import {
deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointComma... |
import * as React from "react";
import * as ReactDOM from "react-dom";
import "netless-whiteboard-room/dist/index.css";
import {AppRoutes} from "./pages/AppRoutes";
ReactDOM.render(
<AppRoutes/>,
document.getElementById("app-root"),
); |
/**
* Datart
*
* Copyright 2021
*
* 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 t... |
import type {IVerboseTheme, IThemeManifest} from 'src/garden'
import fetchGists, {IGraphqlPageQuery, IGraphqlPageInfo} from './fetchGists'
import safeReadJson from './safeReadJson'
import isValidTheme from './isValidTheme'
export default async function getThemesByCursor (query: IGraphqlPageQuery = {}): Promise<{
... |
/*
* Copyright 2021-2022 Objectiv B.V.
*/
import { makeVisibleEvent } from '@objectiv/tracker-core';
import { InteractiveEventTrackerParameters } from '../definitions/InteractiveEventTrackerParameters';
import { trackEvent } from './trackEvent';
/**
* trackVisibleEvent is a shorthand for trackEvent. It eases trigg... |
import React, { Suspense } from 'react'
import {
AvatarName,
Avatars,
PeepAvatarProps,
} from './Peep.types'
export const avatars: Avatars = {
Peep1: React.lazy(() => import('./avatars/Peep1')),
Peep2: React.lazy(() => import('./avatars/Peep2')),
Peep3: React.lazy(() => import('./avatars/Peep3')),
Peep4... |
import {ClaimMission} from 'missions/colonization/claim';
import {BuildMission} from 'missions/core/build';
import {getUsername} from 'utils/settings';
import {BUILD_TARGET_FLAG, CLAIM_MISSION_FLAG} from '../flagConstants';
/**
* Colonization Operation
*
* This operation will claim a new room as a new Colony. Clai... |
import icons from './icons'
import { Data } from '../../../Formula/type'
import { percent, greaterEq } from '../../../Formula/utils'
import { input } from '../../../Formula'
import { ArtifactSetKey } from '../../../Types/consts'
import { ArtifactSheet, IArtifactSheet } from '../ArtifactSheet'
import { dataObjForArtifac... |
/**
* @file GraphicStitchingFour ๅๅฝข็ปๅ
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import React from 'react';
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper(
'graphic-stitching-four',
true,
(props: ISvgIcon... |
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
import { routeAnimations } from '../../../core/core.module';
import { ROUTE_ANIMATIONS_ELEMENTS } from '../../../core/core.module';
import { Build, buildList } from '../builds.data';
@Component({
selector: 'nvn-builds',
templateUrl: './b... |
/**
* @file conv2d
*/
/* eslint-disable max-lines-per-function */
function mainFunc(
{ origin, filter, out, bias },
{
groups = 1,
strides = [],
paddings = [],
dilations = [],
fuse_relu,
filter_nearest_vec4,
filter_remainder_vec4,
act_type = '',
... |
import { Component } from '@angular/core';
@Component({
// tslint:disable-next-line:component-selector
selector: 'gc-default',
template: `<gc-header (onToggleSidebar)="doToggleSidebar( $event )"></gc-header>
<gc-news-ticker></gc-news-ticker>
<mat-drawer-container>
<mat-drawer mode="side" [opened]="... |
import { Request } from 'express';
import { SetMetadata } from '@nestjs/common';
export const Roles = (...args: Array<string | ((request: Request) => string)>) => SetMetadata('roles', args); |
import { Vue, Component } from 'nuxt-property-decorator';
import { userStore } from '@/store/modules';
// import { settingsFuncs } from '@/includes/functions';
import classes from './styles/signout.less?module';
// Types
import { Route } from 'vue-router';
{
/* <router>
{
path: '/signout',
meta:{
title: 'S... |
// /src/image/panorama_photosphere/materialiconssharp/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgPanoramaPhotosphereSharp = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">
<g>
<rect fill="no... |
import { ClassConstructor } from '../util'
import { HandlerDefinition, MessageBase } from './handler'
/**
* Declares a message handling function
* @param messageType Type of message that the function handles
* @param messageHandler Function that is executed each time the type of message is read from the bus
* @exa... |
/**
* 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... |
import { __styles } from '@griffel/react';
import { createModule } from './module';
export const useStyles = __styles(
{
container: {
sj55zd: 'fe3e8s9',
},
},
{
d: ['.fe3e8s9{color:red;}'],
},
);
createModule().baz(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.