text stringlengths 10 953k |
|---|
import {
useShow,
Show,
Typography,
IResourceComponentsProps,
} from "@pankod/refine";
import { ICategory } from "interfaces";
const { Title, Text } = Typography;
export const CategoryShow: React.FC<IResourceComponentsProps> = () => {
const { queryResult } = useShow<ICategory>();
const { data... |
import {
attach
} from '../internal/attach'
import {
ActionHook,
ActionHookEmpty,
HookParams
} from '../types'
// the actions are sotred here.
let _called: { [d: string]: boolean } = {};
/**
* this need to create nested called function
* and be called whenever any of the actions are called
* once the fina... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { CustomerComponent } from './customers/customer.co... |
/**
Copyright 2019 Forestry.io 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 in writing, softwa... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { FAQComponent } from './faq/faq.component';
import { MatTreeModule } from '@angular/material/tree';
import... |
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import { getRelease } from "../../../../common/k8s-api/endpoints/helm-releases.api";
import { asyncComputed } from "@... |
import { useNavigation } from "@react-navigation/native";
import React, { Children, Dispatch, SetStateAction, useState } from "react";
import { Feather } from "@expo/vector-icons";
import { View, Image, TouchableHighlight, Text } from "react-native";
import { ProgressBar, RadioButton } from "react-native-paper";
impor... |
declare module Controller {
interface Response<T = any> {
status: number
message?:
| string
| {
content?: string
meta?: { [key: string]: string }
}
result?: T
}
namespace Params {
interface BackupWallet {
id: string
password: string
}
in... |
import { darken } from '../../../utils/color';
import { css, styled } from '../../theme/styles';
import { defaultProps } from './button';
const HOVER_BACKGROUND_DARKEN = 7.5;
const HOVER_BORDER_DARKEN = 10;
const ACTIVE_BACKGROUND_DARKEN = 10;
const ACTIVE_BORDER_DARKEN = 12.5;
const Button = styled.button`
appeara... |
import {StudentCourseConnection} from "../model/StudentCourseConnection";
import {Student} from "../model/Student";
import {School} from "../model/School";
import {CourseType} from "../model/CourseType";
import {Course} from "../model/Course";
import {Class} from "../model/Class";
export class RawDataProvider {
s... |
/**
* Datastore is used to inventory all tags and kara files to determine if the files have changed and we need to re-generate database.
*/
import { promises as fs } from 'fs';
import parallel from 'p-map';
import { checksum, listAllFiles } from '../lib/utils/files';
import logger, { profile } from '../lib/utils/lo... |
import { RealListType } from './RealType';
export type RealList = {
readonly real: number[];
readonly type: RealListType;
};
export type RealListMap = {
list: RealList;
};
export const createRealList = (length: number): RealList => {
const real = new Array(length);
for (let i = 0; i < length; i++) {
real[i] = 0... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as _stream from "stream";
import { ListActionExecutions } from "../model/operations/ListActionExecutions";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypes... |
import { JSDOM } from 'jsdom';
import {
injectIntoShadowRoot,
injectIntoHead,
stripStyleFromHead
} from '../packages/direflow-component/src/services/domControllers';
const dom = new JSDOM();
(global as any).document = dom.window.document;
(global as any).window = dom.window;
const webComponent = document.creat... |
import { loadConfig } from "../";
import * as path from "path";
import * as fs from "fs";
import {
DefaultClientConfig,
DefaultServiceConfig,
DefaultEngineConfig,
} from "../config";
import { Debug } from "../../utilities";
const makeNestedDir = (dir) => {
if (fs.existsSync(dir)) return;
try {
fs.mkdirS... |
import * as React from 'react';
import { DefaultButton, IButtonStyles } from '@fluentui/react/lib/compat/Button';
import { TooltipHost } from '@fluentui/react/lib/Tooltip';
import { useId, useConst } from '@uifabric/react-hooks';
const rootStyles = { minHeight: 50 };
const buttonStyles: Partial<IButtonStyles> = {
ro... |
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import {
decorateServiceException as __decorateServiceException,
expectBoolean as __expectBoolean,
expectInt32 as __expectInt32,
expectNonNull as __expectNonNull,
expectNumber as __expectNumber,
expectObje... |
import * as path from 'path';
import * as fs from 'fs';
import * as _ from 'lodash';
import { oauth2Client } from './GoogleUtils';
import * as Debug from 'debug';
import { google } from 'googleapis';
const drive = google.drive({ version: 'v3', auth: oauth2Client });
const debug = Debug('PL:GoogleDrive');
export cons... |
class Character extends engine.DisplayObjectContainer {
_main: Main;
_stateMachine: StateMachine;
_body: engine.Bitmap;
_ifidle: boolean;
_ifmove: boolean;
_idleState: CharacterIdleState = new CharacterIdleState(this);
_moveState: CharacterMoveState = new CharacterMoveState(this);
// t... |
import { shallowMount } from "@vue/test-utils";
import SfChevron from "@/components/atoms/SfChevron/SfChevron.vue";
describe.only("SfChevron.vue", () => {
it("renders a chevron", () => {
const component = shallowMount(SfChevron);
expect(component.contains(".sf-chevron")).toBe(true);
});
it("renders slot... |
import * as functions from 'firebase-functions';
import { app } from './app';
// // Start writing Firebase Functions
// https://firebase.google.com/docs/functions/typescript
export const sheet = functions.https.onRequest(app); |
// *** 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 { Component, OnInit } from '@angular/core';
import { Http } from '@angular/http';
import { UserService } from '../../providers/services/user.service';
import { AuthService } from '../../providers/services/auth.service';
@Component({
selector: 'c-default',
templateUrl: 'default.component.html',
})
export ... |
/*
* 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 rison from 'rison-node';
import { i18n } from '@kbn/i18n';
import { W... |
import React from 'react';
import { TransactionErrorNotification } from '@src/components/Web3/Transaction/TransactionErrorNotification';
import { usePrizeDistributorFunction } from '@src/hooks/contracts/usePrizeDistributor';
import { useGetContractAddress } from '@src/hooks/useGetContractAddress';
import classNames fr... |
import {async, ComponentFixture, fakeAsync, flush, flushMicrotasks, TestBed, tick} from '@angular/core/testing';
import {CoursesModule} from '../courses.module';
import {DebugElement} from '@angular/core';
import {HomeComponent} from './home.component';
import {HttpClientTestingModule, HttpTestingController} from '@an... |
import { updateTemplateTokens, closestParentRoutePath, findRelatedFiles } from '../../src/utils/usages-api';
import { createTempDir } from 'broccoli-test-helper';
import * as path from 'path';
let dir = null;
beforeAll(async () => {
dir = await createTempDir();
});
afterAll(async () => {
await dir.dispose();
});
... |
import * as assert from "assert";
import * as readline from "readline";
import { Lock, logConsoleFn, LogFunction, LogType, MemoryWriteStream } from "../../common/main";
import { GetSshHelperType } from "../../ext-api/ext-api";
import { SshHelper } from "../../ssh-helper/ssh-helper";
import { FsSource } from "../sync/f... |
import * as React from 'react'
import * as H from 'history'
import AddIcon from 'mdi-react/AddIcon'
import { RouteComponentProps } from 'react-router'
import { Observable, Subject, Subscription } from 'rxjs'
import { catchError, map, mapTo, startWith, switchMap, tap } from 'rxjs/operators'
import { ErrorAlert } from ... |
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'ngx-nefbdaa-angular-nebular',
template: `
<p>
nefbdaa-angular-nebular works!
</p>
`,
styles: [],
})
export class NefbdaaAngularNebularComponent implements OnInit {
constructor() {
}
ngOnInit() {
}
} |
import { NgModule, Optional, SkipSelf } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule, HttpClient } from '@angular/common/http';
// libs
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-transla... |
import React, { ChangeEvent, FC, FormEvent, useCallback, useState } from 'react'
import { useProfile } from '@lib/context/profile-context'
import s from './NewsletterForm.module.css'
import { useForm } from '@lib/hooks'
import { BannerHeader } from '@components/common'
const NewsletterForm: FC = () => {
const { prof... |
import { autoInjectable, container, inject } from 'tsyringe';
import {Configurator, WorkspaceArgument} from '../configurator/configurator';
import { Executor, System } from '../system/system';
import {executorInjectionToken, systemInjectionToken} from '../extension';
@autoInjectable()
export class Commands{
privat... |
/**
* Copyright (c) 2019 Paul Armstrong
*/
import Build from '@build-tracker/build';
import { Build as BuildStruct } from '@build-tracker/server';
import { Pool } from 'mariadb';
import { NotFoundError, UnimplementedError } from '@build-tracker/api-errors';
export default class Queries {
private _pool: Pool;
pu... |
import { IDirective, DirectiveHandlerReturn, IRegion } from '../typedefs'
import { DirectiveManager } from '../managers/directive'
import { Region } from '../region'
import { DirectiveHandler } from './generic'
export class OnDirectiveHandler extends DirectiveHandler{
public constructor(){
super('on', (reg... |
import { traverseHtml } from '../../plugins/html'
import { ssrTransform } from '../ssrTransform'
test('default import', async () => {
expect(
(
await ssrTransform(
`import foo from 'vue';console.log(foo.bar)`,
null,
null
)
).code
).toMatchInlineSnapshot(`
"const __vi... |
/**
* View `probe_result`
*/
export interface ProbeResult
{
unternehmen_key: string;
unternehmen_uid?: string;
unternehmen_typ?: string;
unternehmen_name?: string;
unternehmen_abteilung?: string;
unternehmen_ort?: string;
unternehmen_postleitzahl?: string;
unternehmen_strasse?: string;
unternehmen_... |
/**
* Bewitching Wave animation illumination shader
*/
declare class BewitchingWaveIlluminationShader extends AdaptiveIlluminationShader {
static fragmentShader: string;
} |
import { Language } from '@shared/module/poe/type';
export interface UserSettings {
leagueId?: string;
language?: Language;
openUserSettingsKeybinding?: string;
exitAppKeybinding?: string;
zoom?: number;
displayVersion?: boolean;
} |
import { atom, } from "recoil";
export const restaurantPostCodeQueryState = atom<string | null>({
key: "restaurantPostCodeQueryState",
default: null,
}); |
export * from './email-exist.exception'
export * from './asset-upload.exception'
export * from './invalid-credential.exception'
export * from './menu-exist.exception'
export * from './menu-not-found.exception'
export * from './message.constant'
export * from './token-exp.exception'
export * from './user-not-found.excep... |
// Copyright 2017-2019 @polkadot/ui-app authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { WithNamespaces } from 'react-i18next';
import { Props as BaseProps, RawParam } from '../types';
import React from 're... |
import { GetFunctionInput } from "../shapes/GetFunctionInput";
import { GetFunctionOutput } from "../shapes/GetFunctionOutput";
import { ConcurrentModificationException } from "../shapes/ConcurrentModificationException";
import { NotFoundException } from "../shapes/NotFoundException";
import { UnauthorizedException } f... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de_DE">
<context>
<name>AddressBook</name>
<message>
<location filename="../pages/AddressBook.qml" line="50"/>
<source>Address</source>
<translation>Adresse</translation>
</message>
<message>
... |
import React from 'react';
import { AdultBlock } from '..';
import { fireEvent, render } from '@testing-library/react';
describe('<AdultBlock />', () => {
it('should render without props', () => {
const { container } = render(<AdultBlock />);
expect(container).toMatchSnapshot();
});
it('should render wi... |
export interface EventListenersMap {
[eventName: string]: Array<EventListenerOrEventListenerObject>;
} |
import * as React from 'react';
import { IconProps } from './index';
import { useTheme } from '@nextui-org/react';
const User: React.FC<IconProps> = ({
fill,
filled,
size,
height,
width,
label,
...props
}) => {
const { theme } = useTheme();
return (
<svg
data-name="Iconly/Curved/Profile"
... |
import { GwRegisteredSystem } from "./util/GwRegisteredSystem";
/**
* Guidewire's TypeScript APIs are an early-stage feature and are subject to change in a future release.
*/
export declare class GwDisplayKey extends GwRegisteredSystem {
getSystemName(): string;
get(key: string, ...varArgs: any[]): string;
}
... |
import { Router } from "express";
import { CreateRentalController } from "@modules/rentals/useCases/createRental/CreateRentalController";
import { ListRentalsByUserController } from "@modules/rentals/useCases/listRentalsByUser/ListRentalsByUserController";
import { ReturnRentalController } from "@modules/rentals/useCa... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Jan Dolejsi. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* --------------------------------------------------------------------------... |
export * from './types';
export * from './support';
export * from './bucket';
export * from './all'; |
import express from 'express';
import { checkWordlistAccess, getClientByToken } from '../../logic/client';
import { addWordToWordlist, createWordlist, deleteWordlist, getWordlist, removeWordFromWordlist, renameWordlist, transferWordlist } from '../../logic/wordlist';
let wordlistAPI: express.Express = express();
/**... |
#!/usr/bin/env node
"use strict";
import fs from "fs";
import _module from "module";
import { dirname, resolve } from "path";
import REPL from "repl";
import vm from "vm";
import { ethers } from "ethers";
import { parseExpression as babelParseExpression } from "@babel/parser";
import { ArgParser, CLI, dump, Help, ... |
import Event from '../primitives/Event';
export default interface UIEvent extends Event {
} |
import { DomainResource } from "./DomainResource.ts";
import { instant } from "../Types/FhirTypes.ts";
import { Identifier } from "./Identifier.ts";
import { Practitioner } from "./Practitioner.ts";
import { Reference } from "./Reference.ts";
import { UserSessionStatus } from "./UserSessionStatus.ts";
/**
* From FHI... |
// vf-button for Angular
// ---
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
import { VfButton } from "./vf-button.angular.component.ts";
describe("ButtonComponent", () => {
let component: VfButton;
let fixture: ComponentFixture<VfButton>;
beforeEach(
waitForAsync(() => ... |
import {authConfig} from './config/auth'
import express, { Request, Response } from "express";
import { authRoutes} from './routes/auth.routes'
export const apiConfig= (app : express.Router): express.Router => {
app.use(authConfig().initialize());
app.get("/", (req: Request, res: Response) => res.send("API /"... |
import * as React from 'react'
import type { DataType, TableContext } from '../../types'
import createClassName from '../../utilities/createClassName'
import GlobalFilter from './GlobalFilter'
import VisibleFilterAction from './VisibleFilterAction'
import { TableActions, MultiRowActions } from './userDefinedActions'... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-page2',
templateUrl: './page2.component.html',
styleUrls: ['./page2.component.css']
})
export class Page2Component implements OnInit {
userSurname: any;
userName: any;
userAge: any;
constructor() {}
ngOnInit(): void {
... |
import * as React from 'react'
import {List} from '../components'
const Help: React.SFC = () => (
<div>
<p>Supported search:</p>
<List>
<li>
By function name. Eg. <code>match</code>, <code>map</code>,{' '}
<code>render</code>.
</li>
<li>
<p>
By type signat... |
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
getHello(): string {
return '¡Hola mundo!' + 2 * 5;
}
} |
import { Component, OnInit } from '@angular/core';
import { BackendService } from '../../../core/services/backend.service';
import { CommonFnService } from '../../../core/services/commonfn.service';
import * as echart from '../../../echarts';
import { WaterMarkService } from '../../../core/services/watermark.service';... |
import { Component, OnInit, Renderer2 } from '@angular/core';
import {WalletService} from '../../services/wallet.service';
import {NotificationService} from '../../services/notification.service';
import {AppSettingsService} from '../../services/app-settings.service';
import {PriceService} from '../../services/price.ser... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import EventHub from '../src'
describe('EventHub unit test', () => {
let hub: EventHub
const towEvent = Symbol('tow-event')
beforeEach(() => {
hub = new EventHub()
})
test('On and emit', () => {
const handlerOne = jest.fn()
const handlerTwo = jest.fn()
hub.on('one-event', handlerOne)
hu... |
/**
* Global survey settings
*/
export var settings = {
/**
* The prefix that uses to store the question comment, as {questionName} + {commentPrefix}.
* The default
*/
commentPrefix: "-Comment",
/**
* Encode parameter on calling restfull web API
*/
webserviceEncodeParameters: true,
/**
* S... |
import * as lsp from 'vscode-languageserver';
import * as tsp from 'typescript/lib/protocol';
import { LspDocuments } from './document';
export declare function provideQuickFix(response: tsp.GetCodeFixesResponse | undefined, result: (lsp.Command | lsp.CodeAction)[], documents: LspDocuments | undefined): void;
//# sourc... |
import { RequestMethod } from './enums';
export declare function normalizeMethodName(method: any): RequestMethod;
export declare const isSuccess: (status: number) => boolean;
export declare function getResponseURL(xhr: any): string;
export { isJsObject } from 'angular2/src/facade/lang'; |
import Core from '@any-touch/core';
import { STATE, AnyTouchEvent } from '@any-touch/shared';
import tap from '@any-touch/tap';
declare module '@any-touch/core' {
export interface PluginContextMap {
doubletap: ReturnType<typeof tap>;
}
export interface EventMap {
doubletap: AnyTouchEvent;
... |
import { uuid } from '@/utils/uuid';
type ArrayEx<T, P extends number> =
P extends 1 ? [T] :
P extends 2 ? [T, T] :
P extends 3 ? [T, T, T] :
P extends 4 ? [T, T, T, T] :
never;
type NumberArray<P extends number> = ArrayEx<number, P>;
export class Vector<P extends number> {
protected readonly _array: Nu... |
import sinon from "sinon";
import { pureMerge } from "coral-common/utils";
import { GQLResolver } from "coral-framework/schema";
import {
act,
createAccessToken,
createResolversStub,
CreateTestRendererParams,
wait,
waitForElement,
within,
} from "coral-framework/testHelpers";
import create from "./creat... |
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
import React, {FC, useEffect, useState} from 'react';
import {
StyleSheet,
ScrollView,
View,
Text,
Switch,
Platform
} from 'react-native';
import {useTranslation} from 'react-i18next';
import * as SecureStore from 'expo-secure-store';
import {useExposure} from 'react-native-exposure-notification-service';
... |
import Modal from 'bootstrap/js/dist/modal';
import { Controller } from '@hotwired/stimulus';
import fetcher from '../utils/fetcher';
type Star = {
starrable_type: string;
starrable_id: number;
};
export default class extends Controller {
static classes = ['default', 'starred'];
static values = {
starrab... |
import { Column, Entity, ManyToMany, PrimaryGeneratedColumn } from 'typeorm';
import { Course } from './course.entity';
@Entity('tags')
export class Tag {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
courses: Course[];
} |
import got from "got";
import http from "http";
import https from "https";
import { CookieJar } from "tough-cookie";
import { URLSearchParams } from "url";
import { ensureTrailingSlash } from "./helpers";
import { Response } from "./response";
type RequestOptions = Record<string, any>;
export class Reqwest {
/**
... |
import * as React from 'react';
import { compose, withProps } from 'recompose';
import {
Niche,
withSimilarNichesByNicheId,
WithSimilarNichesByNicheIdProps
} from '@narrative/shared';
import { SidebarCard } from '../SidebarCard';
import { SidebarMessages } from '../../i18n/SidebarMessages';
import { FormattedMess... |
import {
GenerationsListAndCount,
UserInform,
UserRankingCriteriaType,
} from "../type/user";
import axios, { AxiosResponse } from "axios";
import {
getGraphQLGenerationQuery,
getGraphQLRankingQuery,
getRankingApiUrl,
getUserInformCriteria,
} from "../config/ranking";
export const getUserInformAtGraphQL:... |
import { Injectable } from '@nestjs/common';
import * as NetworkScanner from 'network-scanner-js';
const netScan = new NetworkScanner();
@Injectable()
export default class AppService {
private config = {
repeat: 1,
size: 32,
timeout: 0,
};
async getLatency() {
const poll = await netScan.poll('go... |
<TS language="ms_MY" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik-kanan untuk edit alamat ataupun label</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
import * as React from 'react';
import { render, fireEvent } from '@testing-library/react';
import PostReplies, { PostRepliesProps } from '../PostReplies';
import renderWithRedux from '../../../lib/renderWithRedux';
import { Comment } from '../../../lib/graphql/post';
import { MemoryRouter } from 'react-router-dom';
im... |
import add from './add';
import getAll from './getAll';
import getOne from './getOne';
import update from './update';
import deleteXat from './delete';
import getXatParts from './getXatParts';
export { add, getAll, getOne, update, deleteXat, getXatParts }; |
namespace pxtsprite {
export interface ButtonGroup {
root: svg.Group;
cx: number;
cy: number;
}
const TOGGLE_WIDTH = 200;
const TOGGLE_HEIGHT = 40;
const TOGGLE_BORDER_WIDTH = 2;
const TOGGLE_CORNER_RADIUS = 4;
const BUTTON_CORNER_RADIUS = 2;
const BUTTON_BORDE... |
import { getColor, mode, multiStyleConfig } from "@chakra-ui/theme-tools"
const parts = {
tablist: "the tab list or button group",
tab: "the tab button",
tabpanel: "the tab content",
indicator: "the active tab indicator",
}
const baseStyleTab = function (props: Record<string, any>) {
const { isFitted } = pr... |
import { ensure, isDefined, isInstanceOf, property } from 'tiny-types';
import { DomainEvent, SceneFinished, SceneStarts } from './events';
import { ErrorStackParser } from './io';
import { Duration, Timestamp } from './model';
import { Actor } from './screenplay/actor';
import { SerenityConfig } from './SerenityConfi... |
import { fromDefault, Record } from "../../../Data/Record"
import { LiturgicalChant } from "../Wiki/LiturgicalChant"
import { IsActive } from "./viewTypeHelpers"
export interface LiturgicalChantIsActive extends IsActive {
"@@name": "LiturgicalChantIsActive"
wikiEntry: Record<LiturgicalChant>
}
export const Liturg... |
import { ArgumentMetadata, Injectable, PipeTransform } from '@nestjs/common'
import { splitPipedStrings } from '../../common/utils/string'
import { isArray, isNone } from '../../common/type-guards'
export class ParsePipedStringPipe<T extends any = string> implements PipeTransform<string, T[] | undefined> {
constru... |
import { unZipFromFile, unZipFromURL } from '../../src/zip.ts' // replace with latest library https://deno.land/x/flat@0.0.x/mod.ts
// zip from a local file
// (zip file, destination path)
const result = await unZipFromFile('./examples/zip/zip-folder.zip', './examples/zip')
const output = result ? 'File unzipped succe... |
import PropTypes, { InferProps } from 'prop-types';
export function FileExplorer({
initialEntryList,
/* === */
width,
height,
className,
/* === */
beforeMount,
onMount,
onChange,
onRename,
}: InferProps<typeof FileExplorer.propTypes>) {
const root =
}
FileExplorer.propTypes = {
initialEntryLi... |
import { useEffect, useState } from "react";
import useGameContext from "./GameContext";
import message from "../utils/message";
import ProgressCircle from "./ProgressCircle";
import { genBoard } from "../model/Board";
import {
numMinesFormula,
resetTimeFormula,
stateChanged,
} from "../model/GameFormulas";
exp... |
import { CookieOptions } from "express";
import { UserTokenPayload } from "../../../application/service/authentication";
import { RefreshToken } from "../../../domain/refreshToken";
import { User } from "../../../domain/user";
export function createUserTokenPayload(user: User): UserTokenPayload {
return {
id: us... |
import '../main-process/main' |
// Because we don't get to use the d.ts, we can pass in a subset here.
// This means we can re-use the type infra from the app, without having to
// fake the import.
import { DangerDSLType } from "./source/dsl/DangerDSL"
declare var danger: DangerDSLType
// declare var results: any
declare function warn(params: string... |
import AbortController from 'abort-controller'
import V1Namespace from 'cross-kube/lib/models/V1Namespace'
import Pet from '../src/models/V1beta1Pet'
import { createNamespace, deleteNamespace } from 'cross-kube/lib/apis/CoreV1Api'
import {
listNamespacedPet,
readNamespacedPet,
createNamespacedPet,
patchNamespac... |
import { getGreeting } from '../support/app.po';
describe('vue-todo', () => {
beforeEach(() => cy.visit('/'));
it('should display welcome message', () => {
// Custom command example, see `../support/commands.ts` file
cy.login('my-email@something.com', 'myPassword');
// Function helper example, see `.... |
import { RGBType } from "../types";
export function xyz2lab(xyz: RGBType): RGBType {
var x = xyz[0],
y = xyz[1],
z = xyz[2],
l,
a,
b;
x /= 95.047;
y /= 100;
z /= 108.883;
x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 1... |
import React from 'react';
import { Typography } from '@material-ui/core';
export const Copyright = () => {
return (
<Typography variant="body2" color="textSecondary" align="center">
{'Copyright © '}
{new Date().getFullYear()}
{'.'}
</Typography>
);
}; |
// *** 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 * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
import React from "react";
import { StyledTitle } from "./styled";
interface TitleProps {
user: string;
}
export function Title({ user }: TitleProps) {
return (
<StyledTitle>
Hi, <strong>{user}</strong> 👋
</StyledTitle>
);
} |
import { alertBehavior } from '@stardust-ui/accessibility';
describe('AlertBehavior.ts', () => {
test('use alertWarningBehavior if warning prop is defined', () => {
const expectedResult = alertBehavior({ warning: true });
expect(expectedResult.attributes.body.role).toEqual('alert');
});
test('use alertW... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.