text stringlengths 10 953k |
|---|
import { Grid, makeStyles, Paper } from '@material-ui/core';
import VisibilityIcon from '@material-ui/icons/Visibility';
import { UIButton, UIText } from '@timeflies/app-ui';
import { ObjectTyped } from '@timeflies/common';
import { RoomTeamJoinMessage } from '@timeflies/socket-messages';
import React from 'react';
imp... |
import {Story, Meta} from '@storybook/react'
import FolderCloseIcon from '.'
export default {
title: 'Atoms/icons/FolderCloseIcon',
component: FolderCloseIcon
} as Meta
const Template: Story = args => <FolderCloseIcon {...args} />
export const Primary = Template.bind({})
Primary.args = {} |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {SpinnerWrapperComponent} from './spinner-wrapper.component';
describe('SpinnerWrapperComponent', () => {
let component: SpinnerWrapperComponent;
let fixture: ComponentFixture<SpinnerWrapperComponent>;
beforeEach(async(() => {
T... |
import { Connection } from '@solana/web3.js';
import { MetaplexPlugin, Cluster, resolveClusterFromConnection } from '@/types';
import { corePlugins } from '@/plugins/corePlugins';
export type MetaplexOptions = {
cluster?: Cluster;
};
export class Metaplex {
/** The connection object from Solana's SDK. */
public... |
import {runIfMain} from "../../deps/mocha.ts";
import "../../deps/chai.ts";
import {Connection} from "../../../src/connection/Connection.ts";
import {closeTestingConnections, createTestingConnections} from "../../utils/test-utils.ts";
import {Post} from "./entity/Post.ts";
describe("github issues > #1652 Multiple prim... |
// Type definitions for lodash.valuesIn 4.3
// Project: http://lodash.com/
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*----------------------------------------------------------------... |
/*---------------------------------------------------------------------------------------------
* 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 { Flex } from 'zbase';
import { Button } from 'z-frontend-elements';
import DrawerWindow from './DrawerWindow';
export default () => (
<Flex w={1}>
<DrawerWindow
m={3}
openStatusDefaults={{
left: true,
right: true,
}}
flex="1 1"
>
... |
import {Compiler} from '../src/helper/compiler';
import {EOLState, FixedState, FreeState, OptionalValueState, State, ValueState} from '../src/model';
import {assert} from 'chai';
import {Mask} from '../src';
import '../src/util/input-event';
describe('Compiler', () => {
it('should return correct state', () => {
... |
import {Component, ViewChild} from '@angular/core';
import {MdRipple} from '@angular/material';
@Component({
moduleId: module.id,
selector: 'ripple-demo',
templateUrl: 'ripple-demo.html',
styleUrls: ['ripple-demo.css'],
})
export class RippleDemo {
@ViewChild(MdRipple) ripple: MdRipple;
centered = false;... |
import { CreateSavingsPlanCommandInput, CreateSavingsPlanCommandOutput } from "./commands/CreateSavingsPlanCommand.ts";
import {
DeleteQueuedSavingsPlanCommandInput,
DeleteQueuedSavingsPlanCommandOutput,
} from "./commands/DeleteQueuedSavingsPlanCommand.ts";
import {
DescribeSavingsPlanRatesCommandInput,
Descri... |
// Type definitions for ag-grid v18.1.1
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { RowNode } from "../entities/rowNode";
import { Column } from "../entities/column";
export declare class PopupService {
private gridCore;
private gridOptionsWrapper;
... |
import React, { useState } from 'react';
import SwiperCore, { Autoplay, Pagination, Scrollbar } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/react';
import 'swiper/swiper.scss';
import 'swiper/components/pagination/pagination.scss';
import 'swiper/components/scrollbar/scrollbar.scss';
import './index.scs... |
import addDefaultInputPositions from './helpers/addDefaultInputPositions';
import addDefaultOutputPositions from './helpers/addDefaultOutputPositions';
import { ModuleGeneratorProps, ModuleType, Button } from '../state/types';
import { MODULE_HEIGHT_S, MODULE_WIDTH_M } from './consts';
import generateBorderLines from '... |
export class BrokerError extends Error {} |
import {
IonButton,
IonContent,
IonHeader,
IonPage,
IonTitle,
IonToolbar
} from "@ionic/react";
import React from "react";
import { auth } from "../firebase";
const SettingsPage: React.FC = () => {
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Settings</IonTitle>
... |
/**
* LogAnalytics API
* The LogAnalytics API for the LogAnalytics service.
* OpenAPI spec version: 20200601
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is ... |
import {
INT53_UPPER_MASK,
MAX_JS_INT,
MAX_UINT_32,
POW_2_32,
} from './Constants';
let getRandomValues;
try {
// tslint:disable-next-line:no-var-requires
getRandomValues = require('get-random-values');
} catch (e) {
console.error(new Error('Enviroment does not support the crypto API.'));
}
export inter... |
import { Slider as SliderDefinition } from ".";
import { View, Property, CoercibleProperty, isIOS } from "../core/view";
export * from "../core/view";
// TODO: Extract base Range class for slider and progress
export class SliderBase extends View implements SliderDefinition {
public value: number;
public minV... |
import * as fs from 'fs';
import * as mock from 'mock-fs';
import * as tempWrite from 'temp-write';
import { assert } from 'chai';
import { AbstractRule } from '../../src/rules/abstract-rule';
import { Size } from '../../src/rules/size';
describe('Size', () => {
beforeEach(() => {
mock({
'fi... |
<TS language="gl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Crear unha nova dirección</translation>
</message>
<message>
<source>&New</source>
<translation>&Novo</translation>
</message>
... |
import {useParams} from "react-router-dom";
import {LOAD_COUNTRY} from "../GraphQL/queries";
import {useQuery} from "@apollo/client";
import {useEffect, useState} from "react";
import {addDefaultSrc} from './Country';
import LoadingAnimation from "./Loading-animation";
function CountryDetail() {
let {countryCode} ... |
import { ILegStreamTerminationDateBusinessCenterGrp } from './leg_stream_termination_date_business_center_grp';
export interface ILegStreamTerminationDate {
LegStreamTerminationDateUnadjusted?: Date;
LegStreamTerminationDateBusinessDayConvention?: number;
LegStreamTerminationDateRelativeTo?: number;
Leg... |
import {PortablePath, toFilename} from '@yarnpkg/fslib';
import querystring from 'querystring';
import semver from 'semver';
import {makeParser} from 'tinylogic';
import {Configuration} fro... |
import { Action, action, Thunk, thunk, Computed, computed } from 'easy-peasy'
import { Channel } from '@/types/channel'
export interface Model {
name: string
channels: Channel.element[]
channelId: number
setName: Action<Model, string>
setChannels: Action<Model, Channel.element[]>
setChannelId: Action<Model... |
import { Nullable } from "../../types";
import { Scene } from "../../scene";
import { Matrix, Vector3, Vector4 } from "../../Maths/math.vector";
import { Color4 } from '../../Maths/math.color';
import { Mesh, _CreationDataStorage } from "../mesh";
import { VertexData } from "../mesh.vertexData";
import { CreateTiledPla... |
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
'use strict'
export * from './http-trigger' |
export * from './refresh-token.controller'; |
// import Defaults from './../../defaults';
// const { line, box_size, highlight_color } = Defaults;
import Colors from './../properties/colors';
const images = {};
export default class Element {
static create(id, position, selected): Object {
return {
id: id,
selected: selected,
hover: false,
fill: [{... |
const S = '/'
export function withPrefix(string: string, prefix: string) {
return string.startsWith(prefix) ? string : prefix + string
}
export function withoutPrefix(string: string, prefix: string) {
return string.startsWith(prefix) ? string.slice(prefix.length) : string
}
export function withSuffix(string: str... |
import { Injectable } from '@nestjs/common';
import { PrismaClient } from '@prisma/client';
import * as _ from 'lodash'
import { EmployeesService } from 'src/employees/employees.service';
import { PlotoflandsService } from 'src/plotoflands/plotoflands.service';
import { ResidentsService } from 'src/residents/residents.... |
import { Injectable } from '@angular/core';
@Injectable()
export class JwtService {
getToken(): string {
return window.localStorage['jwtToken'];
}
saveToken(token: string) {
window.localStorage['jwtToken'] = token;
}
destroyToken() {
window.localStorage.removeItem('jwtToken');
}
} |
import * as util from 'util'
import { BlenderCollection, Indexable } from '../../collection'
import { BlenderInterop } from '../../../worker/interop'
import { PythonInterop } from '../../../python/interop'
import { bpy_struct } from './bpy_struct'
import { BoidRule } from './BoidRule'
import { BlenderObject } from './B... |
import {
createContext,
Dispatch,
ReactNode,
SetStateAction,
useState,
} from 'react';
interface ModalProviderProps {
children: ReactNode;
}
interface ModalData {
isModalOpen: boolean;
setIsModalOpen: Dispatch<SetStateAction<boolean>>;
}
export const ModalContext = createContext({} as ModalData);
ex... |
/*
* 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 { TestBed } from '@angular/core/testing';
import { DaffInMemoryBackendPaypalService } from './paypal.service';
describe('Testing | Driver | InMemoryBackend | DaffInMemoryBackendPaypalService', () => {
let paypalTestingService;
beforeEach(() => {
TestBed.configureTestingModule({
providers: [DaffI... |
import * as React from 'react';
import { shallow } from 'enzyme';
import SeriesName from './SeriesName';
describe('SeriesName', () => {
describe('with labels=null', () => {
const seriesNameProps = {
labels: null,
format: false,
};
const seriesName = shallow(<SeriesName {...seriesNameProps} />... |
import { MutationSaveMediaListEntryArgs } from "../../types";
/** If the anime doesn't exist in any of the user's lists, parameter entryId is not
* needed, otherwise, if the anime exists, the parameter entryId is necesary,
* if it's not provided the request will return an error.
*
* Returns: id of the entry.
*/
ex... |
import { Document, FilterQuery, Model } from 'mongoose';
interface PaginationArgs<T> {
page?: number;
limit?: number;
Model: Model<T>;
sort?: any;
query?: FilterQuery<T>;
}
export const paginate = async <T extends Document>({
page = 1,
limit = 10,
Model,
sort = {},
query = {},
}: PaginationArgs<T>... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { ContentComponent } from './content/content/content.component';
import { LangPipe } from './content/pipes/lang.pipe';
import { ViewTypeComponent } from './content/view-type/view-type.component';
import { Deci... |
export default {
HOST_BASE_URL: process.env.REACT_APP_HOST_BACKEND_API as string,
ENV: process.env.REACT_APP_ENV as string,
}; |
<TS language="ro_RO" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click-dreapta pentru a edita adresa sau eticheta</translation>
</message>
<message>
<source>Create a new address</source>
... |
/**
* Copyright 2017 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft Corporation.
*
* 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.or... |
import { IIIRFilterNode, IIIRFilterOptions } from '../interfaces';
import { TContext } from './context';
export type TIIRFilterNodeConstructor = new <T extends TContext>(
context: T,
options: { feedback: IIIRFilterOptions['feedback']; feedforward: IIIRFilterOptions['feedforward'] } & Partial<IIIRFilterOptions... |
import { Color } from './color';
export class Relation {
public modifier: any;
public readonly id: string;
constructor(modifier: any = null) {
this.modifier = modifier;
this.id = this.newID();
}
private newID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
// tsl... |
import { Component, OnInit } from '@angular/core';
import { JogoDaVelhaService } from './shared';
@Component({
selector: 'app-jogo-da-velha',
templateUrl: './jogo-da-velha.component.html',
styleUrls: ['./jogo-da-velha.component.css']
})
export class JogoDaVelhaComponent implements OnInit {
constructor(privat... |
import { app, BrowserWindow } from "electron";
import { join } from "path";
import { URL } from "url";
const isSingleInstance = app.requestSingleInstanceLock();
if (!isSingleInstance) {
app.quit();
process.exit(0);
}
app.disableHardwareAcceleration();
// Install "Vue.js devtools"
if (import.meta.env.MODE === "d... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
export interface IUser {
id: string;
username: string;
password: string;
email: string;
description?: string;
} |
<TS language="ja" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>新しいアドレスを作成</translation>
</message>
<message>
<source>&New</source>
<translation>&新規</translation>
</message>
<message>
... |
/**
* DescribePolicyConditionList.ConfigManual
*/
export interface DescribePolicyConditionListConfigManual {
/**
* 检测方式
注意:此字段可能返回 null,表示取不到有效值。
*/
CalcType: DescribePolicyConditionListConfigManualCalcType;
/**
* 检测阈值
注意:此字段可能返回 null,表示取不到有效值。
*/
CalcValue: DescribePolicyCondi... |
import CryptoJS from "crypto-js";
import { URL } from "url";
export interface IServiceBusAuthHeader {
sasToken: string;
endpoint: string;
}
export default class ServiceBusAuth {
public endpoint: string;
public sharedAccessKeyName: string;
public sharedAccessKey: string;
public hostName: s... |
export * from './use-getter';
export * from './use-effect-dispatch'; |
import FilterItem from '../FilterItem';
/**
* Simple method to check if two arrays of FilterItems
* are sorted in the same manner or not.
* @param {Array} arr1 the first array of FilterItems
* @param {Array} arr2 the second array of FilterItems
* @return {Boolean} equality
*/
export declare const filterItemArrays... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { ShippingPriceTranslationInput, LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: UpdateShippingM... |
import { makeStyles } from "@material-ui/core/styles";
import {SECONDARY01, SECONDARY02} from './styles';
const styles = makeStyles({
bannerImage: {
height: '200px',
},
locationCard: {
margin: '2rem auto 0 auto',
borderRadius: '2rem',
minWidth: '320px',
maxWidth: '480px',
},
usersNeeded: ... |
/*
* 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 React from 'react';
import { mount } from 'enzyme';
import { PolicyDe... |
import React from 'react';
import { MILLISECONDS_IN_DAY } from 'lib/constants';
import TimeToRetainBtn from './TimeToRetainBtn';
interface Props {
name: string;
value: string;
}
const TimeToRetainBtns: React.FC<Props> = ({ name }) => (
<div className="buttons are-small">
<TimeToRetainBtn
text="12h"
... |
import { CommonModule } from '@angular/common';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { TabsetComponent } from '../components/tab-set';
import { TabComponent } from '../components/tab';
@NgModule({
declarations: [
TabComponent,
TabsetComponent,
],
exports: [
TabCompon... |
import React from 'react'
import { IconProps } from './types'
const IconInsertDriveFile: React.FC<IconProps> = ({ ...props }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M6 2c-1.... |
import {Uuid, ISO8601, Struct} from "../../GaiaClient";
import {Order} from "../../request/enumeration/Order";
import {OrderByField} from "../../request/enumeration/OrderByField";
import {EdgeOrderByField} from "../../request/enumeration/EdgeOrderByField";
/**
* Represents graph information
*/
export interface Edge {
... |
import {
IBotCommandScopeBase,
IBotCommandScopeChat,
IBotCommandScopeChatAdministrators,
IBotCommandScopeChatMember,
IChatPermissions,
} from "../types";
import {
IInlineKeyboardMarkup,
IMessageEntity,
IReplayKeyboardRemove,
IForceReply,
IReplyKeyboardMarkup,
} from "../types/index";
export interfa... |
import * as React from 'react'
import { encodePathAsUrl } from '../../lib/path'
import { ReleaseNote, ReleaseSummary } from '../../models/release-notes'
import { updateStore } from '../lib/update-store'
import { ButtonGroup } from '../lib/button-group'
import { Button } from '../lib/button'
import { LinkButton } fro... |
import { Injectable } from '@angular/core';
import { TranslateService, LangChangeEvent } from '@ngx-translate/core';
import { Subscription } from 'rxjs';
import { Logger } from './logger.service';
import enUS from '../../translations/en-US.json';
import frFR from '../../translations/fr-FR.json';
const log = new Logge... |
import { Injectable } from "@angular/core";
import { Subject } from "rxjs";
import { HttpClient } from "@angular/common/http";
import { environment } from "./../../../environments/environment";
@Injectable({
providedIn: "root",
})
export class OtpService {
generatedOtp = new Subject<string>();
constructor(... |
import { Buffer, Neovim } from '@chemzqm/neovim'
import { Emitter, Event, FormattingOptions, Position, Range, TextDocumentContentChangeEvent, TextEdit } from 'vscode-languageserver-protocol'
import Uri from 'vscode-uri'
import Document from '../model/document'
import { wait } from '../util'
import workspace from '../wo... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
i... |
import { Tile } from "./tile"
export class Railroad {
} |
import { Inject, Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Location } from '@angular/common';
import { Observable, Subject } from 'rxjs';
import { filter, takeUntil } from 'rxjs/operators';
import {
MsalService,
MsalBroadcastService,
MSAL_GUARD_CONFIG,
MsalGuardConfi... |
import { UNITS } from '../constants';
import { fromHexString, toHexString } from '../encoding';
import JSBI from 'jsbi';
import { Buffer } from 'buffer';
const DEFAULT_USER_UNIT = 'mey';
const DEFAULT_NETWORK_UNIT = 'gas';
export type AmountArg = Amount | JSBI | number | string;
function getUnitPrecision(unit: strin... |
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { ModelType } from '@typegoose/typegoose/lib/types';
import { InjectModel } from 'nestjs-typegoose';
import { AuthDto } from './dto/auth.dto';
import { UserModel } from './user.model';
import { genSalt, hash, compare } from 'bcryptjs';
import { ... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Team, TeamService, UserService } from '@javgat/devtest-api';
import { DataService } from 'src/app/shared/data.service';
import { SessionService } from 'src/app/shared/session.service';
import { LoggedInController } fro... |
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
export declare class Settings {
private _dev;
private _wireframe;
private _force_webgl;
set dev(dev: boolean);
get dev(): boolean;
set wireframe(wireframe: boolean);
get wireframe(): boolean;
set force_webgl(force_webgl: boolean);
get force_webgl(): boolean;
}
export declare const se... |
/*
* A mock implementation of an API to a remote storage
* server for saving items updates
*/
import { utils as onerefUtils } from 'oneref';
const { delay } = onerefUtils;
const DELAY_TIME = 2000;
/**
*
* @param id id of item to save
* @param name name of item to write
*/
let callCount = 0;
export const serve... |
import * as React from 'react'
import { Provider, connect } from 'react-redux'
import createStore from '../state/createStore'
import 'isomorphic-fetch'
import EndpointPopup from './EndpointPopup'
import { ThemeProvider, theme as styledTheme } from '../styled'
import { Store } from 'redux'
import PlaygroundWrapper from ... |
import firebase from "../lib/firebase";
export function SaveFeature(domain: string, dict) {
const { key, summary, description, order, photo1, showIconChat, visible, date_start } = dict;
const storyDict = {
summary: summary || "Title",
summaryEN: summary || "Title",
description: description || "Description",
... |
import { Component, NgModule } from '@angular/core';
import { IonicApp, IonicModule, NavController, NavParams } from '../../../..';
@Component({
templateUrl: 'main.html'
})
export class MainPage {
constructor(public navCtrl: NavController) { }
goToSecond() {
this.navCtrl.push(SearchPage);
}
}
@Component... |
export { default as MaskoseInput } from './MaskoseInput'; |
export * from './plugins/3dtouch';
export * from './plugins/actionsheet';
export * from './plugins/admob';
export * from './plugins/android-fingerprint-auth';
export * from './plugins/appavailability';
export * from './plugins/apprate';
export * from './plugins/appversion';
export * from './plugins/background-geolocati... |
import { Observable } from '../Observable';
import { Scheduler } from '../Scheduler';
/**
* Combines the values from observables passed as arguments. This is done by subscribing
* to each observable, in order, and collecting an array of each of the most recent values any time any of the observables
* emits, then eit... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {ApplicationRef} from 'angular2/src/core/application_ref';
import {Injectable} from 'angular2/src/core/di';
import {Type} from 'angular2/src/facade/lang';
import {ComponentRef, ComponentFactory} from 'angular2/src/core/linker/component_factory';
import {Injector} from 'angular2/src/core/di';
import {NgZone} from... |
import { AttributesObject, ResourceObject } from 'jsonapi-typescript';
import { Record } from '@orbit/data';
export type GROUPS_TYPE = 'groups';
export const TYPE_NAME = 'group';
export const PLURAL_NAME = 'groups';
export interface GroupAttributes extends AttributesObject {
name: string;
abbreviation: string;
}
... |
import dynamic from 'next/dynamic'
import client from '@lib/apollo/client'
import { GetStaticProps, GetStaticPaths } from 'next'
import { GET_LISTINGS_ID } from '@lib/apollo/queries'
import { useRouter } from 'next/router'
import { Listing } from 'types/listing.type'
// Icons
const MyLocationIcon = dynamic(() => impor... |
import store from 'store';
import { FlashMessages } from '../../components/Flash/redux/flash-messages';
import { Themes } from '../../components/settings/theme';
const TRY_AGAIN = 'https://campfire-mode.freecodecamp.org/try-again.mp3';
const CHAL_COMP = 'https://campfire-mode.freecodecamp.org/chal-comp.mp3';
const to... |
/**
* @module parjs
*/
/** */
import {ParsingState} from "../state";
import {ResultKind} from "../result";
import {Parjser} from "../parjser";
import {ParjserBase} from "../parser";
/**
* Returns a parser that will try to match the regular expression at the current
* position and yield the result set. If it can't... |
import { bold } from "cli-color";
import { FirebaseError } from "../error";
interface HostingConfig {
site: string;
target: string;
}
function filterOnly(configs: HostingConfig[], onlyString: string): HostingConfig[] {
if (!onlyString) {
return configs;
}
let onlyTargets = onlyString.split(",");
// ... |
<TS language="fa_IR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>گشایش حسابی جدید</translation>
</message>
<message>
<source>&New</source>
<translation>جدید</translation>
</message>
<messag... |
import { Card } from '../../../interfaces'
import Set from '../Jungle'
const card: Card = {
name: {
en: "Kangaskhan",
},
illustrator: "Mitsuhiro Arita",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
115,
],
hp: 90,
types: [
"Colorless",
],
stage: "Basic",
attacks: [
{
cost: [
... |
import { Component, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { Store } from '@ngrx/store';
import * as _ from 'lodash';
import { Project, ProjectService } from '../../../core/services/services';
import * as fromPageNum from '../reducers';
import * as PageNum from '../a... |
import {getNodeName, getParentNode} from './api';
export type ScrollStrategy = 'none' | 'native' | 'pseudo';
const $html = document.documentElement;
const initiatorSet = new Set();
// TODO: functional
export abstract class ScrollUtils {
/** Check vertical scroll based on content height */
static hasVerticalScrol... |
import {
Loader,
LoadingManager,
Scene,
BufferGeometry,
Material,
Object3D,
Mesh,
BufferAttribute,
} from '../../../src/Three';
declare class IFCLoader extends Loader {
ifcManager: IFCManager;
constructor(manager?: LoadingManager);
load(
url: any,
onLoad: (... |
import {FilterByCurrentUserWithOnResponse} from './index';
import {ParseNode} from '@microsoft/kiota-abstractions';
export function createFilterByCurrentUserWithOnResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : FilterByCurrentUserWithOnResponse {
if(!parseNode) throw new Error("parseNode cannot ... |
import cloneDeep from "./handleClone";
type ObjectKV = {
[key: string]: any
}
/**
* get param type lowercase,such as number .etc
* @param obj
*/
function getType(obj: any): string {
if (obj === null) {
return 'null'; // PhantomJS has type "DOMWindow" for null
} else if (obj === undefined) {
... |
import * as React from 'react';
import {
elementContains,
getNativeProps,
divProperties,
getFirstTabbable,
getLastTabbable,
getNextElement,
focusAsync,
getPropsWithDefaults,
modalize,
on,
} from '../../Utilities';
import { useId, useConst, useMergedRefs, useEventCallback, usePrevious, useUnmount } f... |
import { Component, ViewChild, ElementRef } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
@ViewChild('mainDemoContainer', { static: false }) mainDemoContainer: ElementRef;
showWindowButtonClick(): void {
let wi... |
import React, { MouseEvent } from 'react'
import { modalOpen } from '../redux/modal';
import { connect } from 'react-redux';
import { BoardProps, ItemReducer } from '../utils/types';
import ColumnWrapper from './ColumnWrapper';
import { ReactComponent as Sticks } from '../assets/icons/svg/004-sticks.svg';
const Board:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.