text stringlengths 10 953k |
|---|
import { ApiHttpResponse, ImageMetadata } from '@map-colonies/mc-model-types';
import { MCLogger } from '@map-colonies/mc-logger';
import { delay, inject, injectable } from 'tsyringe';
import { WorkflowAction } from '../models/workFlowAction';
import { CreateUploadRequest } from '../models/createUploadRequest';
import ... |
import { EnumToArrayPipe } from './enum-to-array.pipe'
import { DurationPipe } from './duration.pipe'
import { CountryPipe } from './country.pipe'
import { StatePipe } from './state.pipe'
import { CityPipe } from '@shared/pipes/city.pipe'
import { RegionPipe } from '@shared/pipes/region.pipe'
import { KgToTPipe } from ... |
import * as React from "react"
import styled from "styled-components"
import { Link } from "gatsby-plugin-intl"
const Wrap = styled.nav`
display: flex;
flex-direction: column;
background-color: #f2f2f2;
border-left: 1px solid #d5d5d5;
width: 350px;
min-height: 100vh;
`
const WrapInner = styled.div`
posi... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { GetApp } from "../model/operations/GetApp";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/OutputTypesUnion";
import { GetAppInput ... |
import { INavData } from '@coreui/angular';
export const navItems: INavData[] = [
{
name: 'Dashboard',
url: '/dashboard',
iconComponent: { name: 'cil-speedometer' }
},
{
name: 'Sections',
title: true
},
{
name: "user",
url: "/user",
iconComponent: { name: 'cil-puzzle' },
c... |
import { Type, Interface } from 'graphql-codegen-core';
import { pickMapper, parseMapper } from './mappers';
interface Modules {
[path: string]: string[];
}
function extractVariable(type: string) {
const m = /^[^\[\.]+/.exec(type);
return m ? m[0] : type;
}
export function importMappers(types: Type[], interfac... |
import React from 'react';
import { Navigation, SharedElement } from 'react-motion-router';
import BoredSaitama from '../assets/bored-saitama.gif';
import Button from '@mui/material/Button';
import '../css/NotFound.css';
import Navbar from '../Components/Navbar';
interface NotFoundProps {
navigation: Navigation
}
... |
/**
* @module SDKModule
* @author Jonathan Casarrubias <t:@johncasarrubias> <gh:jonathan-casarrubias>
* @license MIT 2016 Jonathan Casarrubias
* @version 2.1.0
* @description
* The SDKModule is a generated Software Development Kit automatically built by
* the LoopBack SDK Builder open source module.
*
* The SDKModule p... |
import {
KUSAMA_TEST_OPTIONS,
TEST_BASE_TX_INFO,
TEST_METHOD_ARGS,
testBaseTxInfo,
} from '../../util';
import { remark } from './remark';
describe('system::remark', () => {
it('should work', () => {
const unsigned = remark(
TEST_METHOD_ARGS.system.remark,
TEST_BASE_TX_INFO,
KUSAMA_TEST... |
<TS language="es_419" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Haga clic para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
// testes vão aqui; isto não será compilado quando este pacote for usado como uma extensão. |
export default {
'BLOCK_NAME.exception.back': 'Back to home',
'BLOCK_NAME.description.500': 'Sorry, the server is reporting an error.',
}; |
// @ts-nocheck
import Divider from "../atoms/Divider";
import ModalBody from "../molecules/ModalBody";
import ModalFooter from "../molecules/ModalFooter";
import ModalHeader from "../molecules/ModalHeader";
import React from "react";
import ModalWrapper from "../molecules/ModalWrapper";
function Modal(props) {
const... |
import * as React from 'react';
import { RepoInfo } from '../interfaces/index';
import { Icon } from 'antd';
interface Props {
repos: Array<RepoInfo>;
getRepoInfo: (repoName: string) => void;
}
const Repos = (props: Props) => {
return(
<ul>
{
props.repos.map((item, i) => {
return <li... |
import * as React from "react";
import { shallow, ShallowWrapper } from "enzyme";
import Lookup from "..";
describe("Lookup", () => {
function getQueryProvider() {
return () => {
return {
settings: {
params: {
Id: "U"
}
}
};
};
}
const renderOption = lookupValue => lookupValue.Tit... |
import {makeDecorator} from './reflection'
import {setIfInterface} from './utils'
import {ViewOptions, ViewAnnotation} from './view'
/**
* TODO document
*/
export const enum ComponentTemplateNamespace {
HTML,
SVG,
MathML
}
/**
* @internal
*/
export const NAMESPACE_MAP = ['html', 'svg', 'math'];
/**... |
import {
getColumnType,
getConvertMethod,
getDartFieldType,
} from "./../../../shared/function";
import { StyleType } from "../../../shared/constans";
import { getColumnName } from "../../../shared/function";
import { CellItemModel } from "../../../model/cellModel";
import { BaseClass } from "../../../shared/shar... |
import distanceInWordsToNow from "date-fns/formatDistanceToNow";
import React, { PureComponent } from "react";
import styled from "styled-components";
import { isBrowser } from "src/utils/navigator";
interface IProps {
name: string;
description: string;
date: string;
url: string;
}
const Root = styled.div`
... |
import { Component, OnInit, HostBinding } from '@angular/core';
import { slideInDownAnimation } from '../../../app.animations';
import { TdDataTableSortingOrder, TdDataTableService, TdDataTableComponent,
ITdDataTableSortChangeEvent, ITdDataTableColumn } from '../../../../platform/core';
import { IPageChangeE... |
import { default as MDNScraper, Result } from "mdn-scraper";
import { Message, MessageEmbed } from "discord.js";
import { sendMessage } from "../helpers/sendmessage.js";
import { Dokyumentēshon } from "../interfaces";
const MDN = {
iconURL: "https://i.imgur.com/DFGXabG.png",
domain: "https://developer.mozilla.org"
}... |
import {isMarked, StringMap} from '../common/AuxiliaryTypes'
import {CommonGraphAPI} from '../common/CommonGraphAPI'
import {ContainersBuilders} from '../../'
import {DigraphAPI} from './DigraphAPI'
import Vertex = CommonGraphAPI.Vertex
import Digraph = DigraphAPI.Digraph
import DigraphSearch = DigraphAPI.DigraphSearc... |
import { defineConfig } from '@xus/cli'
export default defineConfig({
libBuild: {
target: ['es2015'],
formats: ['esm'],
sourcemap: false,
minify: false,
rollTypes: true,
rollupChain(rc) {
rc.input({
index: './src/index.ts',
di: './src/di.ts'
})
return rc
... |
export enum PARAMS {
Recipient = 'recipient',
} |
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/26bb1f5bc53e3ba493aa4269f94b9d3db18c32ca/jest/jest.d.ts
declare var beforeAll: jest.Lifecycle;
declare var beforeEach: jest.Lifecycle;
declare var afterAll: jest.Lifecycle;
declare var afterEach: jest.Lifecycle;
declare... |
import {Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToOne} from "typeorm";
import { Actor } from "./Actor";
@Entity()
export class ActorComments extends BaseEntity{
@PrimaryGeneratedColumn()
id: number;
@Column()
content: string;
@Column()
author: string;
@ManyToOne(type =... |
import { Injectable } from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {utilitiesUrls, paymentsUrls} from '../../services/app-http/backendUrlStrings';
import {CurrencyService} from '../../services/currencies/currency.service';
import {AuthserviceService} from '../../public/authservice.servi... |
/**
* MIT License
*
* Copyright © 2019 ADAM Timothée, BOUILLON Pierre, VARNIER Victor
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitatio... |
import { Test, TestingModule } from '@nestjs/testing';
import { HasuraService } from './hasura.service';
describe('HasuraService', () => {
let service: HasuraService;
beforeAll(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [HasuraService],
}).compile();
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { FooterStatusComponent } from './footer-status.component';
describe('FooterStatusComponent', () => {
let component: FooterStatusComponent;
let fixture: ComponentFixture<FooterStatusCompo... |
//-- copyright
// OpenProject is a project management system.
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
//
// 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 is a ... |
import { Injector, Injectable } from "@angular/core";
import { Http, Headers } from "@angular/http";
import { BaseService } from '../../../../shared/services/base-service';
@Injectable()
export class FeatureAuthorService extends BaseService {
constructor(injector: Injector) {
super(injector);
}
in... |
import React, { ComponentProps, FC } from 'react';
import { styled } from '@storybook/theming';
import { color, typography, spacing } from '../shared/styles';
const Note = styled.div`
padding: 2px 6px;
line-height: 16px;
font-size: 10px;
font-weight: ${typography.weight.bold};
color: ${color.lightest};
bo... |
/**
* Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or ... |
export interface GameResultsInterface {
playerName: string;
victories?: number;
defeats?: number;
draws?: number;
percentage?: number;
} |
import tap = require("../src/tap");
export default tap; |
import { Nullable } from "../types";
import { Logger } from "../Misc/logger";
import { Camera } from "../Cameras/camera";
import { Effect } from "../Materials/effect";
import { PostProcess, PostProcessOptions } from "./postProcess";
import { Constants } from "../Engines/constants";
import { GeometryBufferRenderer } fro... |
import { expect } from 'chai';
import { of, from, Observable } from 'rxjs';
import { concatMapTo, mergeMap, take } from 'rxjs/operators';
import { TestScheduler } from 'rxjs/testing';
import { observableMatcher } from '../helpers/observableMatcher';
/** @test {concatMapTo} */
describe('concatMapTo', () => {
let test... |
import { browser } from "webextension-polyfill-ts";
import { processPostEvent } from "../core/events";
import { enabledContains } from "../core/settings";
//
// A note to reviewers:
//
// This script causes hyperlinks to "Not Safe For Work" imagery (e.g. pornographic images) to open automatically in
// an incognito wi... |
import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { Dialog, Space } from '../../../components';
import RenderPoolDashboard from '../RenderPoolDashboard';
import RenderTrade from '../RenderTrade';
type RenderFastTradeModalProps = {
visible: boolean;
onCancel: () => v... |
export enum GoproRequestStatus {
GOPRO_REQUEST_SUCCESS = 0, // The write message with ID indicated succeeded.
GOPRO_REQUEST_FAILED = 1, // The write message with ID indicated failed.
GOPRO_REQUEST_STATUS_ENUM_END = 2, //
} |
import * as React from 'react';
import { RegisterOptions } from './validator';
import { Control, FieldError, FieldPath, FieldPathValue, FieldValues, RefCallBack, UseFormStateReturn } from './';
export declare type ControllerFieldState = {
invalid: boolean;
isTouched: boolean;
isDirty: boolean;
error?: F... |
import React from "react";
import { IconProps } from "../lib";
declare const ArrowElbowRight: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
export default ArrowElbowRight; |
version https://git-lfs.github.com/spec/v1
oid sha256:bbf60c880b7b5019207025620cddf55aba716d3eb5ac82885a8cbc6c1c853d4d
size 1087768 |
import Knex from 'knex'
export async function up (knex: Knex): Promise<any> {
return await knex.schema.createTable('labs_exams', table => {
table.increments('id').primary()
table.integer('lab_id')
.notNullable()
.references('id')
.inTable('laboratory')
table.integer('exam_id')
.n... |
import { Car } from "./car";
import { SportsCar } from "./sports-car";
import { SuperSportsCar } from "./super-sports-car"; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as React from 'react';
import { SVGIconProps } from '../createIcon';
export declare const AmazonIconConfig: {
name: 'AmazonIcon',
height: 512,
width: 448,
svgPath: 'M257.2 162.7c-48.7 1.8-169.5 15.5-169.5 117.5 0 109.5 138.3 114 183.5 43.2 6.5 10.2 35.4 37.5 45.3 46.8l56.8-56S341 288.9 341 261.4V114.3C... |
import { StencilBuildOptions } from './schema';
import { ConfigFlags, parseFlags, TaskCommand } from '@stencil/core/cli';
import { prepareConfigAndOutputargetPaths, createStencilProcess, initializeStencilConfig } from '../stencil-runtime';
import { createProjectGraph } from '@nrwl/workspace/src/core/project-graph';
imp... |
import React from "react"
import { TextStyle, View, ViewStyle } from "react-native"
import { useNavigation } from "@react-navigation/native"
import { observer } from "mobx-react-lite"
import { Button, Header, Text, Screen, Wallpaper } from "../../components"
import { color, spacing } from "../../theme"
import { Api } f... |
export { JsonRpcType } from "./json-rpc-base-types";
//# sourceMappingURL=index.d.ts.map |
export class ContentModel<T> {
public content: T[];
} |
import { multiSushiStrategyAbi } from "../../Contracts/ABIs/multi-sushi-strategy.abi";
import { AuroraTriDualJar } from "./aurora-tri-dual-jar";
export class TriAuroraEth extends AuroraTriDualJar {
constructor() {
super(multiSushiStrategyAbi, 6, 2);
}
} |
import { DataProvider, SortCriterion, FetchByKeysParameters, ContainsKeysResults, FetchByKeysResults, FetchByOffsetParameters, FetchByOffsetResults, FetchListResult,
FetchListParameters } from '../ojdataprovider';
declare class ArrayDataProvider<K, D> implements DataProvider<K, D> {
constructor(data: any[] | (()... |
/* From: https://github.com/component/textarea-caret-position */
/* jshint browser: true */
// (function () {
// We'll copy the properties below into the mirror div.
// Note that some browsers, such as Firefox, do not concatenate properties
// into their shorthand (e.g. padding-top, padding-bottom etc. -> paddi... |
import { client } from '../Client.js'
import { slapperModal } from '../database/index.js'
export function removeSlapper(uniqueId: number): void {
const entity = client.entities.getByUniqueId(uniqueId)
const slapper = slapperModal.find({ uniqueId })
entity.destroy()
slapper.delete()
} |
import {LitElement, html, css} from 'lit';
import {customElement, property} from 'lit/decorators.js';
/**
* This is the element that presents the list under
* the dropdown button
*/
@customElement('app-dropdown-item-list')
export class DropdownItemList extends LitElement {
static styles = css`
* {
box-s... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { DaffSidebarModule, DaffButtonModule, DaffLinkSetModule } from '@daffodil/design';
import { DaffioSidebarStateModule } from './sidebar.state.module';
import { DaffioSidebar... |
import { NgModule, APP_INITIALIZER, Injectable } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { TranslationModule, LocaleService, TranslationService } from 'angular-l10n';
import { AppCom... |
export class Game {
roleId: string;
emojiId: string;
emojiName: string;
gameName: string;
activityId: string;
} |
<TS language="es" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { Directive } from '@angular/core';
import { ValidatorFn, FormGroup, ValidationErrors, NG_VALIDATORS, Validator, AbstractControl } from '@angular/forms';
//响应式表单自定义验证器
//跨字段交叉验证
export const identityRevealedValidator: ValidatorFn = (control: FormGroup): ValidationErrors | null => {
const name = control.get('... |
import { cleanPath } from "nova-extension-utils"
import { keys, state, vars } from "./globalVars"
import { Message } from "./interfaces/interfaces"
import { makeFileExecutable, wrapCommand } from "./utils/utils"
let path: string
if (nova.inDevMode() && nova.workspace.path) {
path = `${cleanPath(nova.workspace.path)}... |
import { existsSync, appendFileSync, mkdirSync } from 'fs'
import { resolve } from 'path'
import bot from './bot'
const ADMIN_ID = process.env.ADMIN_ID
let errorsToReport = <Array<string>>[]
async function sendLogToMessage (): Promise<void> {
if (errorsToReport.length >= 1) {
const chunks = []
for (let numb ... |
/**
* @license
* Copyright Google Inc. 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 {browser, by, element, ElementArrayFinder} from 'protractor';
import {verifyNoBrowserErrors} from '../../../... |
import Koa from 'koa'
import Router from 'koa-router'
import Pow from '../service/pow-service'
import config from '../service/util/config-parser'
const router = new Router()
const pow = new Pow(config.initial_difficulty)
router.prefix('/pow')
router.get('/', async (ctx: Koa.ParameterizedContext) => {
const { diff... |
import * as _ from "lodash";
import { commands, ExtensionContext, languages, workspace } from "vscode";
import { analyzeDependencies } from "./utils";
import {
newBloc,
newCubit,
wrapWithBlocBuilder,
wrapWithBlocListener,
wrapWithBlocConsumer,
wrapWithBlocProvider,
wrapWithRepositoryProvider,
} from "./c... |
import Button from './button';
export * from './button';
export default Button; |
import React from 'react';
import { SafeAreaView, StyleSheet, ActivityIndicator } from 'react-native';
const Loading = () => {
return (
<SafeAreaView style={styles.loader}>
<ActivityIndicator size="small" color="#070D99" />
</SafeAreaView>
);
};
const styles = StyleSheet.create({
loader: {
fle... |
import { singleton } from 'tsyringe'
import { Floor } from '~/model/floor'
import { Settings } from '~/model/settings'
import { Immutable } from '../pkg/immutable'
import { MobX } from '../pkg/mobx'
import { PromiseFactory } from '../pkg/native/promise'
import { ProcessorFactory } from '../processor/factory'
import { R... |
export type ReqRun = {
place: number;
run: {
id: string;
weblink: string;
category: string;
comment: string | null;
date: string;
submitted: string;
times: {
primary: string | null;
primary_t: number | null;
realtime: string | null;
realtime_t: number | null;
... |
export { ToPostService } from './ToPost.Service';
export { CommonService } from './Common.Service';
export { FileUpService } from './FileUp.Service';
export { DefaultTreeviewI18n } from './TreeviewI18n' |
import type { ComputedRef, Ref } from 'vue';
import type { FormSchema, FormActionType } from '../types/form';
import { unref, nextTick, watchEffect } from 'vue';
interface UseAutoFocusContext {
getSchema: ComputedRef<FormSchema[]>;
autoFocusFirstItem: Ref<boolean>;
isInitedDefault: Ref<boolean>;
formElRef: Re... |
export interface product {
id: number;
name: string;
store_id: number;
category_id: number;
url_image: Text;
short_description: Text;
full_description: Text;
price?: number;
sale_percent?: number;
rfnumber_token?: number;
number_sold: number;
create_at?: Date;
update_at?: Date;
} |
import React, { useContext } from 'react';
import MainLayout from '@/layouts/MainLayout';
import Head from 'next/head';
import { store } from '@/store/store';
import Link from 'next/link';
import ProductEditModal from '@/components/ProductEditModal';
import { IProduct } from '@/interfaces/product.interface';
import { n... |
/**
* Copyright (c) 2021 LG Electronics Inc.
* SPDX-License-Identifier: MIT
*/
import {customElement} from 'lit/decorators.js';
import {RecipeTreemap} from '../../common/recipe-treemap';
@customElement('mutation-test-treemap')
/**
* build recipe treemap.
*/
export class MutationTestTreemap extends RecipeTreemap ... |
/// <reference types="miniprogram-api-typings" />
declare type ToastMessage = string | number;
interface ToastOptions {
show?: boolean;
type?: string;
mask?: boolean;
zIndex?: number;
context?: WechatMiniprogram.Component.TrivialInstance | WechatMiniprogram.Page.TrivialInstance;
position?: strin... |
import * as React from 'react';
import { NextSeo } from 'next-seo';
import { default as router, useRouter } from 'next/router';
import { initGA, logPageView } from '@api/analytics';
import AuthModal from '@components/AuthModal';
import Authorization from '@components/Authorization';
import Footer from '@components/F... |
import React from 'react';
interface TernProps {
color?: string;
size?: string | number;
}
const Tern = (props: TernProps) => {
const { color = 'currentColor', size = '24', ...otherProps } = props;
return (
<svg
width={size}
height={size}
viewBox="0 0 33 32"
xmlns="http://www.w3.or... |
/*
* Copyright 2020 Merck Sharp & Dohme Corp. a subsidiary of Merck & Co.,
* Inc., Kenilworth, NJ, USA.
*
* 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/l... |
import "jest-extended";
import { mapArray } from "../src";
describe("#mapArray", () => {
it("should work like lodash", () => {
expect(mapArray([4, 8], n => n * n)).toEqual([16, 64]);
});
}); |
import React, { useState } from "react";
import { ImageBackground, View } from "react-native";
const defaultHeight = 793;
const Smartphone: React.FC = ({ children }) => {
const [factor, setFactor] = useState(1);
return (
<View
style={{ flex: 1 }}
onLayout={(event) => {
const { height } = ... |
import {Window} from "../../types/dom"
export function getNodeName(element: Node | Window):string|null{
return element ? ("nodeName" in element && element.nodeName || '').toLowerCase() : null
} |
import {Injectable} from '@angular/core';
import {
BaseType as D3BaseType,
ContainerElement as D3ContainerElement,
event as d3Event,
mouse as d3Mouse,
select as d3Select,
selectAll as d3SelectAll,
Selection as D3Selection
} from 'd3-selection';
import {Transition as D3Transition} from 'd3-transition';
imp... |
import * as ko from "knockout";
import {QuestionMultipleTextModel, MultipleTextItemModel} from "../question_multipletext";
import {QuestionImplementor} from "./koquestion";
import {Question} from "../question";
import {JsonObject} from "../jsonobject";
import {QuestionFactory} from "../questionfactory";
export class ... |
version https://git-lfs.github.com/spec/v1
oid sha256:f269b0d591c25e994020cadf264d4ede4374a9db920ff30d726152cd2ac352a2
size 319036 |
/*
* 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 may ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import {
Address,
Bytes,
log,
} from '@graphprotocol/graph-ts';
import {
ORGID_ADDRESS
} from './constants';
import {
OrgIdContract,
} from '../generated/OrgId/OrgIdContract';
import { Organization } from '../generated/schema';
// ORGiD Contract
export const orgidContract = OrgIdContract.bind(Address.fromS... |
import { LocalRepository } from "../LocalRepository";
import { ICheckoutModel } from "../types";
export interface ICheckoutRepositoryManager {
getRepository: () => LocalRepository;
addItemToCart: (variantId: string, quantity: number) => ICheckoutModel | null;
removeItemFromCart: (variantId: string) => ICheckoutM... |
import HidesAttributes from 'model/related/HidesAttributes';
describe('HidesAttributes', () =>
{
test('get/set hidden', () =>
{
const hidden = ['password'];
const instance = new HidesAttributes();
instance.setHidden(hidden);
expect(instance.getHidden().length).toEqual(1);
... |
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
/* @relayHash 36bc08c680ce6d14036c06a08cec5dfe */
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type Show2QueryVariables = {
showID: string;
};
export type Show2QueryResponse = {
readonly show: {
... |
export { default } from './AcceptOrRejectDealError'; |
import {
action,
computed,
observable,
reaction,
toJS,
transaction
} from "mobx";
import axios, { AxiosRequestConfig, CancelTokenSource } from "axios";
import {
COMPOSER_NUMBER_COLS,
ROUTE_COMPOSERS_ITEM_WORKS,
ROUTE_RANDOM_TRACK,
URL_WEB_API,
URL_WEB_API_DZK,
WEB_API_DZK,
WEB_API_HOST,
ZEN
... |
import { ChromelessOptions, Headers, Cookie, CookieQuery, PdfOptions, DeviceMetrics, ScreenshotOptions } from './types';
export default class Chromeless<T extends any> implements Promise<T> {
private queue;
private lastReturnPromise;
constructor(options?: ChromelessOptions, copyInstance?: Chromeless<any>);
... |
/*
* Copyright 2021 Deokgyu Yang <secugyu@gmail.com>
*
* 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 applicab... |
/**
* 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 React, {useState, Children, ReactElement} from 'react';
import useUserPreferencesContext from '@theme/hooks/useUserPreferen... |
<TS language="eo" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Dekstre-klaku por redakti adreson aŭ etikedon</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
export const c_dropdown__toggle_active_before_BorderBottomWidth: {
"name": "--pf-c-dropdown__toggle--active--before--BorderBottomWidth",
"value": "4px",
"var": "var(--pf-c-dropdown__toggle--active--before--BorderBottomWidth)"
};
export default c_dropdown__toggle_active_before_BorderBottomWidth; |
import { Pair, WHPair } from '../type/ponyEscape'
export let scaleToFitIn = (image: WHPair, squareSize: Pair) => {
let ratio = Math.min(squareSize.x / image.width, squareSize.y / image.height)
let w = image.width * ratio
let h = image.height * ratio
return {
w,
h,
x: Math.max(0, squareS... |
import { Inject, Controller, Post, Provide, Query } from '@midwayjs/decorator';
import { Context } from '@midwayjs/express';
@Provide()
@Controller('/api')
export class APIController {
@Inject()
ctx: Context;
@Post('/get_user')
async getUser(@Query() uid) {
return { success: true, message: 'OK', data: {} ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.