text stringlengths 10 953k |
|---|
import {StyleSheet} from 'react-native';
import { Poppins_400Regular } from '@expo-google-fonts/poppins';
import {Archivo_700Bold} from '@expo-google-fonts/archivo';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#8257E5',
justifyContent: 'center',
paddin... |
import {createContext, useContext} from 'react'
import {EditorSelection} from '../../types/editor'
/**
* A React context for sharing the editor selection.
*/
export const PortableTextEditorSelectionContext = createContext<EditorSelection>(null)
/**
* Get the current editor selection from the React context.
*/
e... |
import { override } from '@microsoft/decorators';
import { Log } from '@microsoft/sp-core-library';
import {
BaseListViewCommandSet,
Command,
IListViewCommandSetListViewUpdatedParameters,
IListViewCommandSetExecuteEventParameters
} from '@microsoft/sp-listview-extensibility';
import { Dialog } from '@microsoft/... |
// See https://github.com/zeit/swr/blob/master/examples/axios-typescript/libs/useRequest.ts
import useSWR, { SWRConfiguration, SWRResponse } from "swr";
import { AxiosRequestConfig, AxiosResponse, AxiosError } from "axios";
import axios from "api/request";
export type GetRequest = AxiosRequestConfig | null;
interfac... |
const App = () => <div className="App">test</div>;
export default App; |
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { Logger, Messages, SfdxError } from '@salesforce/core';
import * as childProcess from 'child_process';... |
import { DataTableColumnDirective } from '../components/column.directive';
import { camelCase, deCamelCase, id } from '../utils';
export function setColumnDefaults(columns: any[]) {
if(!columns) return;
for(let column of columns) {
if(!column.$$id) {
column.$$id = id();
}
// translate nam... |
export { default as runWarm } from './run-warm';
export * from './lambda-response';
export * from './validateUrl';
export * from './getUrlContent';
export * from './getSlackData'; |
'use strict';
import BN from 'bn.js';
import depd from 'depd';
import { CurrentEpochValidatorInfo, NextEpochValidatorInfo } from './providers/provider';
/** Finds seat price given validators stakes and number of seats.
* Calculation follow the spec: https://nomicon.io/Economics/README.html#validator-selection
* @p... |
import { UpdateWizardConfiguration, WizardConfiguration } from "../../components/forms/wizards/types";
import { _CREATE_WIZARD_CONFIGURATION_LIST, _UPDATE_WIZARD_CONFIGURATION_LIST } from "./configurations";
import { _IWizardViewState } from "./types";
const getDefaultConfigurations = (create: WizardConfiguration<any... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ConfigModule } from '@nestjs/config';
import { UsersModule } from './modules/users/users.module';
import { AuthModule } from './modules/auth/auth.module';
@Module({
imports: [
ConfigModule.forRoot({
isGloba... |
import sha256 from "sha256";
import url from 'url'
import axios from 'axios';
import { getUUID } from './../utils/hashUtils'
type blockType = {
index: number,
timestamp: number,
proof: number,
previous_hash: string
}
class blockChainLib {
chain:Array<blockType> = [];
transactions:Array<any>... |
export * from "@mpkit/ebus"; |
import React from 'react';
import { GetStaticProps } from 'next';
import { Grid } from '@material-ui/core';
import { ThemeProvider } from '@material-ui/core/styles';
import { Graduate } from '../components/Graduate';
import { Introduction } from '../components/Introduction';
import { Jobs } from '../components/Jobs';
... |
import { DecidedAction } from '../actions/action.interface';
export interface BrainedCreep {
creep: Creep;
observation: {
isHandlingEnergy: boolean;
hasFreeCapacity: boolean;
nearestActiveSource: Source | null;
nearestSpawn: StructureSpawn | null;
nearestController: StructureController | null;
... |
import { readFileSync } from 'fs'
import * as path from 'path'
import { webpack } from 'next/dist/compiled/webpack/webpack'
import { getBabelError } from './parseBabel'
import { getCssError } from './parseCss'
import { getScssError } from './parseScss'
import { getNotFoundError } from './parseNotFoundError'
import { Si... |
import { computed, inject, watch, onMounted, createElement as h } from "@vue/composition-api";
import ContextSymbol from "./context";
type Vector2 = [number, number];
type Props = {
coordinates: Vector2;
r: number;
fill: string;
};
export default {
props: {
coordinates: { type: Array, required: true },
... |
import React from 'react';
import { shallow } from 'enzyme';
import Radio from '../src/components/Radio';
const options = [
{
value: 'frau',
label: 'Frau'
},
{
value: 'herr',
label: 'Herr'
},
{
value: 'divers',
label: 'Divers'
}
];
describe('Radio', () => {
test('Radio should re... |
import AuthController from '@controllers/AuthController';
export class AuthRoutes {
private controller: AuthController = new AuthController();
public routes(app) {
app.post('/auth', this.controller.authorize);
}
} |
import uuid from 'uuid-random';
import { db } from '../../../../../db/postgres.js';
import { GuildCommandInteraction } from '../../../../events/interactionCreate.js';
import { replyError } from '../../../../lib/embeds.js';
import { ApplicationCommandCallback } from '../../../../slashCommandHandler.js';
import { deleteN... |
// Type definitions for @storybook/addon-knobs 3.2
// Project: https://github.com/storybooks/storybook
// Definitions by: Joscha Feth <https://github.com/joscha>
// Martynas Kadisa <https://github.com/martynaskadisa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Versio... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Log } from 'bblog';
import { UnitType } from '../../core/unit';
import { GameServerPacket } from '../gs.packet';
import { GamePacket } from './game.server';
import { BitConverter } from '../../util/bit/bit.converter';
import { SessionState } from '../state/session';
import { BitReader } from '../../util/bit/bi... |
import { CarsRepositoryInMemory } from "@modules/cars/repositories/in-memory/CarsRepositoryInMemory";
import { SpecificationInMemory } from "@modules/cars/repositories/in-memory/SpecificationsInMemory";
import { AppError } from "@shared/errors/AppError";
import { CreateCarSpecificationUseCase } from "./CreateCarSpecif... |
import React from "react";
import {Table, TableProps} from "../Table";
import renderer from 'react-test-renderer';
function renderTable(props: Partial<TableProps> = {}) {
const defaultProps: TableProps = {
data: [
{
Id: 1,
Name: 'Test 1'
},
... |
import express from 'express';
import path from 'path';
import cors from 'cors';
import 'express-async-errors';
import './database/connection';
import routes from './routes';
import errorHandler from './erros/handler';
const app = express();
// a ordem aqui é importante
app.use(cors());
app.use(express.json());
ap... |
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Speaker } from '../../interfaces/speaker';
@Component({
selector: 'app-speaker-popup',
templateUrl: './speaker-popup.component.html',
styleUrls: ['./speaker-popup.component.scss']
})
export cla... |
interface Date {
//metodos
format(): string;
}
Date.prototype.format = function():string{
let dat = new Date(this.valueOf());
// var mes = dat.getMonth();
//return `${dat.getDate}/${++mes}/${dat.getFullYear}`;
return dat.toLocaleDateString();
}
window.onload = function(){
//polimorf... |
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test } from "../testing/mod.ts";
import { assert, assertEquals } from "../testing/asserts.ts";
import { BufReader } from "../io/bufio.ts";
import { TextProtoReader } from "../textproto/mod.ts";
let fileServer: Deno.Process;
async func... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { i18n } from '@kbn/i18n';
export * from '../case_view/translations';... |
import { MainArticlesState } from '../namespace';
export const initial: MainArticlesState = {
isLoading: false,
isErr: false,
page: 1,
data: [],
topic: '',
sortBy: '',
date: '',
}; |
export const OrderStatus = {
Processing: 1,
Delivering: 2,
Received: 3,
Canceled: 4,
Return: 5,
Error: 6,
} |
import { useEffect, useState } from 'react'
import '../styles/tasklist.scss'
import { FiTrash, FiCheckSquare } from 'react-icons/fi'
interface Task {
id: number;
title: string;
isComplete: boolean;
}
export function TaskList() {
const [tasks, setTasks] = useState<Task[]>([]);
const [newTaskTitle, setNewTa... |
import React, { Component } from 'react';
import { TextStyle, ViewStyle } from 'react-native';
type Props = {
options: string[];
onPress: (index: number) => void;
title?: string;
message?: string;
tintColor?: string;
cancelButtonIndex?: number;
destructiveButtonIndex?: number;
/**
* Only for Android or Actio... |
import { suite, test } from '@testdeck/mocha'
import { issue, testCaseId } from '../../../src'
import { BaseTest } from './baseTest'
@suite
class IssueAndTms extends BaseTest {
@issue('4')
@testCaseId('5')
@test
shouldAssignDecoratedIssueAndTms() {}
} |
import { browser, logging } from 'protractor';
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', async () => {
await page.navigateTo();
expect(await page.getTitleText()... |
import React, { Component } from 'react';
import { remote } from "electron";
import Song from '../../toxen/Song';
import { Toxen } from '../../ToxenApp';
import "./SongElement.scss";
interface SongElementProps {
getRef?: ((ref: SongElement) => void),
song: Song;
playing?: boolean,
}
interface SongElementState {... |
import React, { useState, useEffect, ReactElement } from 'react'
import ReactPaginate from 'react-paginate'
import styles from './index.module.css'
import { MAXIMUM_NUMBER_OF_PAGES_WITH_RESULTS } from '@utils/aquarius'
import Arrow from '@images/arrow.svg'
import { PaginationProps } from './_types'
export default func... |
import { UnitTest } from '@ephox/bedrock-client';
import { Element, InsertAll } from '@ephox/sugar';
import * as ApproxStructure from 'ephox/agar/api/ApproxStructure';
import * as Assertions from 'ephox/agar/api/Assertions';
UnitTest.asynctest('ApproxStructureTest', (success, failure) => {
const html = '<div data-k... |
export {}
declare global {
const enum NSTextAlignment {
Left, //左对齐
Center, //居中
Right, //右对齐
Justified, //最后一行自然对齐
Natural //默认对齐脚本
}
const enum UITextBorderStyle {}
class UITextField extends UIControl {
[x: string]: any
constructor(frame?: CGRect)
delegate: WrapperObj<any>
... |
import fs from "fs";
import { ColorLog } from "../../../server/src/__tests__/utils/helpers";
import { ACTUALS_LOADHOMESPEC_PATH } from "../constants";
const logger = ColorLog;
(function (): void {
try {
const files = fs.readdirSync(ACTUALS_LOADHOMESPEC_PATH);
if (!files.length) {
console.log(
... |
export { LetterFf24 as default } from "../"; |
import Collection from "@discordjs/collection";
import fetch from "node-fetch";
import type { Channel, ChannelEmoteData } from "../..";
import type { Client } from "../../base";
import { Manager } from "../../base/internal";
import { BASE_URL, HTTPError, InternalError, MILLISECONDS, TwitchAPIError } from "../../shared/... |
import { detach, closest, Browser, L10n, isNullOrUndefined as isNOU, isBlazor } from '@syncfusion/ej2-base';
import { isNullOrUndefined, EventHandler, addClass, removeClass, KeyboardEventArgs } from '@syncfusion/ej2-base';
import { IRichTextEditor, IRenderer, IDropDownItemModel, OffsetPosition, ResizeArgs } from '../ba... |
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import OrphanagesMap from './pages/OrphanagesMap';
import OrphanageDetails from './pages/OrphanageDetails';
import SelectMapPosition from './pages/CreateOrphanage/... |
import {JsonSchema, MinLength} from "../../../src/jsonschema";
import {stubSchemaDecorator} from "./utils";
describe("MinLength", () => {
it("should store data", () => {
const decorateStub = stubSchemaDecorator();
const schema = new JsonSchema();
MinLength(10);
// @ts-ignore
decorateStub.getCall(... |
import to from "await-to-js";
import { ExecaCommand, ExecaCommandOptions } from "../execa-command";
type GitTagCommandOptions = ExecaCommandOptions & {
name: string;
remote?: string;
};
/**
@example
const command = new GitTagCommand({
name: "v2",
silent: true, <-- hides execution stderr/stdout
wor... |
export declare const cilLaptop: any[]; |
import React, { Component } from 'react';
import { drawChart, createPieChartConfig } from '@brightlayer-ui/chartjs';
export default class PieDemo extends Component {
render() {
return (
<div className="graph" style={{ maxWidth: '300px' }}>
<canvas id="pieChart"></canvas>
... |
// Styles
import '../Layout/Css/app.css';
// Enable AlpineJS, a minimal framework for adding "just enough" JS behavior to our HTML.
import Alpine from 'alpinejs';
import collapse from '@alpinejs/collapse';
import persist from '@alpinejs/persist';
Alpine.plugin(collapse);
Alpine.plugin(persist);
window.Alpine = Alpine;... |
import { getCart } from "@shopware-js-api-wrapper";
import { defaultInstance } from "../../../src/apiService";
import { random, commerce } from "faker";
jest.mock("../../../src/apiService");
const mockedApiInstance = defaultInstance as jest.Mocked<
typeof defaultInstance
>;
describe("CartService - getCart", () => {... |
export class InternalPositionByApplicant {
id: number;
employeeId: number;
employeeName: string;
position: string;
vacancyId: number;
managerial: number;
} |
import { Component, Prop, Method } from '@stencil/core';
import * as L from 'leaflet';
import * as canvgbrowser from 'canvg-browser';
import { MapSettings } from '../../models/api';
// import * as html2canvas from 'html2canvas';
@Component({
tag: 'gis-viewer',
styleUrls: ['gis-viewer.scss', '../../../node_modu... |
export interface Response {
error?: any;
}
export interface StoreResponse extends Response {
key: string,
value: any;
}
export interface Entity extends Response {
id: string;
code?: string;
type: EntityType;
link: string;
description: string;
}
export enum EntityType {
BIB_MMS = '... |
/**
* @license
* Copyright 2017 Google 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 ... |
import { akashicEngine as g } from "aev2";
import { NullRenderer } from "./NullRenderer";
export class NullSurface extends g.Surface {
private _renderer: g.Renderer;
constructor(width: number, height: number, drawable?: any, isDynamic?: boolean) {
super(width, height, drawable, isDynamic);
this._renderer = new ... |
import { CSSProperties } from 'react';
export interface Palette {
[key: string]: CSSProperties['color'],
}; |
import deepmerge from 'deepmerge'
export type MergeOptionType = 'replaceArrays' | 'concatArrays'
const options: {[k in MergeOptionType]: deepmerge.Options} = {
replaceArrays: {
arrayMerge: (destinationArray, sourceArray, options) => sourceArray
},
concatArrays: {
arrayMerge: (target, source, options) =>... |
import {IBaseModelOptions} from '../../../src/IBaseModelOptions';
import {InfoModel} from './InfoModel';
import {UserModel} from './UserModel';
import {BaseModel} from '../../../src';
export class UserResponseModel extends BaseModel {
public info: InfoModel = InfoModel as any;
public results: UserModel[] = [Us... |
import React from "react"
import LogoType from "../icons/LogoType"
export default function BrimTextLogo() {
return (
<div className="brim-text-logo">
<LogoType />
</div>
)
} |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FavoritesCreatePage } from './page/favorites-create.page';
const routes: Routes = [
{
path: '',
component: FavoritesCreatePage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: ... |
/**
* Load script asynchronous
* @return {Promise}
* @param url
*/
const loadScript = function (url) {
return new Promise(resolve => {
var scriptTag = document.createElement('script');
scriptTag.src = url;
scriptTag.onload = () => {
resolve();
};
document.h... |
export class FoodItem {
constructor(
public name: string,
public details: string,
public calories: number)
{ }
} |
import React, { ReactNode } from "react";
import { Trans } from "react-i18next";
export const FormRow = ({ title = "", inline = false, children = undefined as ReactNode }) => (
<div className="form-group row">
<label className={`col-${inline ? "lg" : "md"}-3 col-form-label`}>
<Trans ns="formRow">{title}</T... |
export {
HexString,
Bech32String,
Hash28,
Hash32,
ScriptHash,
Script,
Redeemer,
Datum,
MintingPolicy,
PolicyId,
AssetName,
AssetRef,
mkAssetRef,
Lovelace,
TxHash,
BlockHash,
TxOutRef,
mkTxOutRef,
Slot,
ValidityRange,
PaymentCred
} from "./cardano/types"
export * from "./cardano... |
function examples() {
function add_0() {
$('div').css('border', '2px solid red')
.add('p')
.css('background', 'yellow');
}
function add_1() {
$('p').add('span').css('background', 'yellow');
}
function add_2() {
$('p').clone().add('<span>Again</span>'... |
import { MenuTheme } from 'antd/es/menu';
export type ContentWidth = 'Fluid' | 'Fixed';
export interface DefaultSettings {
/**
* theme for nav menu
*/
navTheme: MenuTheme;
/**
* primary color of ant design
*/
primaryColor: string;
/**
* nav menu position: `sidemenu` or `to... |
import { createStyles, Theme, withStyles } from '@material-ui/core'
import * as React from 'react'
export interface ISmallCalendarDateLabelProps {
active?: boolean
current?: boolean
focused?: boolean
empty?: boolean
}
type ClassNames =
| 'active'
| 'activeInner'
| 'current'
| 'focused'... |
import { chakra, PropsOf, useTheme, forwardRef } from "@chakra-ui/system"
import { cx, Dict, get, mapResponsive, __DEV__ } from "@chakra-ui/utils"
import * as React from "react"
export type ContainerProps = PropsOf<typeof chakra.div>
export const StyledContainer = chakra("div", {
baseStyle: {
width: "100%",
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About WorldPay</source>
<translation>O WorldPay</translation>
</message>
<message>
<location ... |
export * from './clickSearch';
export * from './content';
export * from './downloadPerAgent';
export * from './downloadPerStore';
export * from './handleDownload';
export * from './selectors';
export * from './setCustForm'; |
import auth from './auth'
import posts from './posts'
export { auth, posts }
export default { auth, posts } |
import { Body, Controller, Post } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthCredentialsDto } from './dto/auth-credentials.dto';
import { JwtPayload } from './jwt-payload.interface';
import { User } from './user.entity';
@Controller('auth')
export class AuthController {
constru... |
export const roundAboutRight32F: string; |
// Code from https://github.com/xmlking/ngx-starter-kit.
// MIT License, see https://github.com/xmlking/ngx-starter-kit/blob/develop/LICENSE
// Copyright (c) 2018 Sumanth Chinthagunta
import * as mongodb from 'mongodb';
import { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity';
import { IPagi... |
import { Test, TestingModule } from '@nestjs/testing';
import { suite } from 'uvu';
import { equal } from 'uvu/assert';
import { NoopInterceptorService } from '../src/interceptor/providers/noop-interceptor.service';
const NoopInterceptorServiceSuite = suite<{ service: NoopInterceptorService }>(
'NoopInterceptorServ... |
import { useState, useCallback } from "react";
export interface TransactionalState<T> {
committedValue: T;
uncommittedValue: T;
setValue: (value: T) => void;
setCommittedValue: (value: T) => void;
commit: () => void;
rollback: () => void;
}
export default function useTransactionalState<T>(
value: T
): T... |
export const SDK_NAME = 'sentry.javascript.node';
export const SDK_VERSION = '5.24.2'; |
import { Filter } from '@empathyco/x-types';
import Vue from 'vue';
import Vuex, { Store } from 'vuex';
import { map } from '../../../../utils';
import {
createEditableNumberRangeFacetStub,
createNumberRangeFacet,
createSimpleFacetStub
} from '../../../../__stubs__/facets-stubs.factory';
import { facetsXStoreModu... |
import { Request, Response } from 'express'
import CommunityApiService from '../../services/communityApiService'
import InterventionsService, { ActionPlanAppointment } from '../../services/interventionsService'
import InterventionProgressPresenter from './interventionProgressPresenter'
import InterventionProgressView f... |
export type TodoList = Record<string, TodoItem[]>;
export interface TodoItem {
title: string;
description?: string;
createdAt: number;
checked: boolean;
position: number;
}
export const DefaultTodoList: TodoList = {
Important: [],
Tasks: [],
};
export const TodoManager = {
db_name: "t... |
/**
* 代码表服务注册中心
*
* @export
* @class CodeListRegister
*/
export class CodeListRegister {
/**
* 所有实体数据服务Map
*
* @protected
* @type {*}
* @memberof CodeListRegister
*/
protected allCodeList: Map<string, () => Promise<any>> = new Map();
/**
* 已加载实体数据服务Map缓存
*
... |
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";
/**
* @internal
*/
export const ClientSharedValues = {
apiVersion: "2016-11-28",
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: ... |
import React from 'react'
import {useNotifications} from '../../hooks/ApiHooks'
import NotificationComponent from '../NotificationComponent/NotificationComponent'
import './NotificationCenterComponent.css'
const NotificationCenterComponent: React.FC = () => {
// eslint-disable-next-line operator-linebreak
const {n... |
export * from './dynamoose.decorators';
export { getModelToken } from './dynamoose.utils'; |
/**
* SendinBlue API
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/or... |
export class userType{
id!:number;
type!:string;
} |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { IssuerController } from './issuer.controller';
import { IssuerService } from './issuer.service';
import { IssuerSchema } from '../../schemas/issuer.schema';
import { IssuerResponseSchema } from '../../schemas/issuer.res... |
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { Router } from '@angular/router';
import { Store } from '@ngrx/store';
import { map } from 'rxjs/operators';
import { GoogleAnalyticsService } from '@core/services/common/google-analytics.service';
import { DatasetStoreActions, DatasetStoreS... |
import { BigNumber, ethers, Signer } from 'ethers';
import { Provider } from '@ethersproject/providers';
import { AssetProjectedApr, JarDefinition } from '../../model/PickleModelJson';
import { AbstractJarBehavior, ONE_YEAR_IN_SECONDS } from "../AbstractJarBehavior";
import erc20Abi from '../../Contracts/ABIs/erc20.jso... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React from 'react'
import EpisodeCardList from 'src/components/EpisodeCardList'
import {
P,
HighlightBold,
Highlight,
Bold,
Ul,
UlLi,
Hr,
Italic
} from 'src/components/ContentTags'
import H from 'src/components/H'
import Emoji from 'src/components/Emoji'
import CustomEmoji from 'src/components/Cu... |
// >> double-tap-code
import { Component } from "@angular/core";
import { GestureEventData } from "ui/gestures";
import { GridLayout } from "ui/layouts/grid-layout";
@Component({
moduleId: module.id,
templateUrl: "./double-tap.component.html"
})
export class DoubleTapExampleComponent {
onDoubleTap(args: ... |
import { useState } from 'react';
export default function InterfaceSettings() {
const [language, setLanguage] = useState('');
const [timezone, setTimezone] = useState('');
const [theme, setTheme] = useState('');
const [font_size, setFontSize] = useState('');
return (
<>
<h2 cla... |
import * as ts from "typescript";
import { orderBy, uniqBy, flatten } from "lodash";
import PropertyNode from "./property";
import Node from "./node";
import namespaceManager from "../namespace-manager";
import * as printers from "../printers";
export default class Namespace extends Node {
name: string;
functions... |
import { createIcon } from '../_createIcon/createIcon';
import IconArchiveSizeAll from './IconArchive_size_all';
export const IconArchive = createIcon({
l: IconArchiveSizeAll,
m: IconArchiveSizeAll,
s: IconArchiveSizeAll,
xs: IconArchiveSizeAll,
name: 'IconArchive'
}); |
import { ThunkAction } from "redux-thunk";
import { ActionType, createAction } from "typesafe-actions";
import { Kube } from "../shared/Kube";
import { IResource, IStoreState } from "../shared/types";
export const requestResource = createAction("REQUEST_RESOURCE", resolve => {
return (resourceID: string) => resolve(... |
import { newSpecPage } from '@stencil/core/testing';
import { ClrIconBtn } from '../clr-icon-btn';
describe('clr-icon-btn', () => {
it('renders', async () => {
const page = await newSpecPage({
components: [ClrIconBtn],
html: `<clr-icon-btn></clr-icon-btn>`,
});
expect(page.root).toEqualHtml(`... |
import iam = require('@aws-cdk/aws-iam');
import s3 = require('@aws-cdk/aws-s3');
import cdk = require('@aws-cdk/cdk');
import cxapi = require('@aws-cdk/cx-api');
import fs = require('fs');
import path = require('path');
import { Staging } from './staging';
/**
* Defines the way an asset is packaged before it is uplo... |
import React from 'react'
export interface ISettingFormProps {
className?: string
style?: React.CSSProperties
uploadAction?: string
components?: Record<string, React.FC>
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.