text stringlengths 10 953k |
|---|
import {Component} from '@angular/core';
@Component({
selector: 'app-feature-4',
template: `
<div class="feature">
<span>Feature 4</span>
<app-feature-4-a></app-feature-4-a>
<app-feature-4-b></app-feature-4-b>
<app-feature-4-c></app-feature-4-c>
<app-feature-4-d></app-feature-4-d>... |
import { WithStyle } from '@medly-components/utils';
import React, { FC } from 'react';
import FormatColorResetIconSvg from '../../assets/Editor/format_color_reset_24px_rounded.svg';
import SvgIcon, { SvgIconProps } from '../../SvgIcon';
const Component: FC<SvgIconProps> = React.memo(props => {
const { size, withH... |
export const radioGroup: string;
export const input: string;
export const label: string;
export const description: string; |
import { GeoCoordinates } from "../valueTypes/geoCoordinates";
export interface LocalAuthority {
name: string;
code: string;
}
export interface Location extends LocalAuthority {
geoCoordinates: GeoCoordinates;
}
export interface LocalAuthorityRepository {
getAsync: (geoCoordinates: GeoCoordinates) => Promise... |
import { createClient } from "@supabase/supabase-js"
export const supabase = createClient(process.env.VITE_SUPABASE_URL, process.env.VITE_SUPABASE_SERVICE_KEY) |
import packageInfo from "./package.json";
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
im... |
<TS language="ta" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>ஒரு புதிய முகவரியை உருவாக்கு</translation>
</message>
<message>
<source>&New</source>
<translation>&புதிய</translation>
</messa... |
/**
* @name stringShorten
* @summary Returns a string with maximum length
* @description
* Checks the string against the `prefixLength`, if longer than double this, shortens it by placing `..` in the middle of it
* @example
* <BR>
*
* ```javascript
* import { stringShorten } from '@polkadot/util';
*
* string... |
import { Center, Spinner, Stack } from "@chakra-ui/react";
import Head from "next/head";
import { useRouter } from "next/router";
import React from "react";
import { useMeQuery } from "../generated/graphql";
import Header from "./Header";
import Loading from "./Loading";
export default function Layout({ children }) {
... |
<TS language="it" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Fare click col pulsante destro per modificare l'indirizzo o l'etichetta</translation>
</message>
<message>
<source>Create a new add... |
import {exportModule} from '@elux/react-redux-taro';
import main from './views/Main';
import {ModuleHandlers, defaultRouteParams} from './model';
export default exportModule('account', ModuleHandlers, defaultRouteParams, {main}); |
import React, {createContext, useCallback, useState, useContext} from 'react';
interface LoadingContextData {
loading: boolean;
setLoading(loading: boolean): void;
}
export const LoadingContext = createContext<LoadingContextData>(
{} as LoadingContextData,
);
export const LoadingProvider: React.FC = ({children... |
import * as i0 from "@angular/core";
import * as i1 from "./cron-time-picker.component";
import * as i2 from "./cron-editor.component";
import * as i3 from "@angular/common";
import * as i4 from "@angular/forms";
import * as i5 from "@angular/material/tabs";
import * as i6 from "@angular/material/list";
import * as i7 ... |
import React from "react"
import enzyme from "enzyme"
import renderer from "react-test-renderer"
import {App} from "./App"
describe("<App>", () => {
it("should render", () => {
const tree = renderer.create(<App />).toJSON()
expect(tree).toMatchSnapshot()
})
it("should render Hello World!", () => {
... |
import { ResendInvoiceController } from '@/presentation/controllers'
import { ValidationSpy, LoadAccountByEmailSpy, LoadInvoiceByNumberSpy, GenerateInvoiceSpy, MailInvoiceSpy } from '@/tests/presentation/mocks'
import { throwError } from '@/tests/domain/mocks'
import { badRequest, serverError, notFound, noContent } fro... |
export type GuxToggleLabelPosition = 'left' | 'right'; |
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { migrationsCreateInput } from './migrations-create.input';
@ArgsType()
export class CreateOnemigrationsArgs {
@Field(() => migrationsCreateInput, {nullable:false})
data!: migrationsCreateInput;
} |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CatsModule } from './cats/cats.module';
import { UsersModule } from './users/users.module';
import { AuthModule } from './auth/... |
import { PLATFORM } from './platform';
const camelCaseLookup: Record<string, string> = {};
const kebabCaseLookup: Record<string, string> = {};
const isNumericLookup: Record<string, boolean> = {};
/**
* Efficiently determine whether the provided property key is numeric
* (and thus could be an array indexer) or not.
... |
import {Component, OnInit} from '@angular/core';
import * as moment from 'moment';
import {ExamService} from '../../../services/Services';
import {ExamItem, ExamStatus, getExamStatus} from '../../../models';
import {Router} from '@angular/router';
import {Observable} from 'rxjs';
import {map, switchMap} from 'rxjs/oper... |
import { Injectable, Component } from '@angular/core';
import { HttpModule, Http, Request, RequestMethod, Response, RequestOptions, Headers } from '@angular/http';
import { Observable, Subject, ReplaySubject } from 'rxjs';
import { map, catchError } from 'rxjs/operators';
//Model
import { UserModel } from './model';
... |
/**
* @license
* Use of this source code is governed by Apache License 2.0 that can be
* found in the LICENSE file at https://github.com/CertifaiAI/Classifai_FrontEnd/blob/main/LICENSE
*/
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { CardFieldSchema } from 'shared/types/home-layo... |
import { TickSet } from "views/common/TimeScrollView/YAxisTicks";
import { TimeScrollViewPanel, TimeTick } from "./TimeScrollView";
import { TSVAxesLayerProps } from "./TSVAxesLayer";
import { TSVHighlightLayerProps } from './TSVHighlightLayer';
import { MainLayerProps } from "./TSVMainLayer";
export const paintPanels... |
import { PluginKey } from 'prosemirror-state';
import { inlineCard, blockCard, embedCard } from '@atlaskit/adf-schema';
import { EditorPlugin } from '../../types';
import { createPlugin } from './pm-plugins/main';
import { floatingToolbar } from './toolbar';
import { CardOptions } from '@atlaskit/editor-common';
expor... |
import SeriesModel from '../../model/Series';
import { StageHandlerPlanReturn } from '../../util/types';
/**
* @return {string} If large mode changed, return string 'reset';
*/
export default function createRenderPlanner(): (seriesModel: SeriesModel) => StageHandlerPlanReturn; |
import { AnyObject } from '../declarations';
import { FirestoreConfig } from './index';
/**
* A function returning the actions object
*
* @export
* @param {*} firebase The firebase dependency
* @returns {AnyObject} the actions object
*/
export default function (firestoreConfig: FirestoreConfig): AnyObject; |
import {
ChangeDetectionStrategy,
Component,
HostBinding,
Input,
NgZone,
OnDestroy,
OnInit,
ViewChild,
ViewContainerRef,
} from "@angular/core";
import {Observable, ReplaySubject, Subject, Subscription, combineLatest, race, timer} from "rxjs";
import {Store, select} from "@ngrx/store... |
import { findAndParseConfig } from '@graphql-mesh/config';
import { getMesh, GetMeshOptions } from '@graphql-mesh/runtime';
import { generateTsArtifacts } from './commands/ts-artifacts';
import { serveMesh } from './commands/serve/serve';
import { isAbsolute, resolve, join } from 'path';
import { existsSync } from 'fs'... |
import { describe, expect, it } from '@jest/globals'
// Directives
import ClickOutside from '../'
import { wait } from '../../../../test'
function bootstrap (args?: object) {
const outsideEl = document.createElement('div')
const shadowHost = document.createElement('div')
const shadowRoot = shadowHost.attachShad... |
import GuiObject from "./GuiObject";
import { getMousePosition, unimplementedWarning } from "../utils";
class Group extends GuiObject {
/**
* getclassname()
*
* Returns the class name for the object.
* @ret The class name.
*/
getclassname() {
return "Group";
}
getobject(id: string) {
//... |
import { IncrementalCheckerInterface, ApiIncrementalCheckerParams } from './IncrementalCheckerInterface';
import { CancellationToken } from './CancellationToken';
import { NormalizedMessage } from './NormalizedMessage';
import { CompilerHost } from './CompilerHost';
export declare class ApiIncrementalChecker implements... |
version https://git-lfs.github.com/spec/v1
oid sha256:3ce1178e9be3203626f4da03d54bc4aa19401cea16171b2c2c386632d8e94e4e
size 268088 |
import { Theme } from '@mui/material';
import { WithStyles } from '@mui/styles';
import createStyles from '@mui/styles/createStyles';
export const styles = (theme: Theme) =>
createStyles({
container: { marginBottom: theme.spacing(1.5) },
annotation: {
marginTop: theme.spacing(4),
marginBottom: t... |
// Step 1: Import React
import * as React from "react"
import BaseLayout from "../../components/layouts/base"
// Step 2: Define your component
const Biography = (): JSX.Element => {
return (
<BaseLayout pageTitle="Biography">
<p>
Hi there! I'm the proud creator of this site, which I built with Gats... |
import { TestBed } from '@angular/core/testing';
import { ParcoursService } from './parcours.service';
describe('ParcoursService', () => {
let service: ParcoursService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(ParcoursService);
});
it('should be created', () =>... |
/**
* @license
* Copyright 厦门乾元盛世科技有限公司 All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file.
*/
import { Component, Input, Renderer2, ElementRef, ViewChild, forwardRef, Optional, Inject, OnInit } from '@angular/core';
import { DefaultValueA... |
import Notebook from '../entity/Notebook';
export interface INotebookRepository {
create(notebook: Notebook): void;
getId(id: string): Promise<Notebook | undefined>;
getOriginId(id: string): Promise<Notebook | undefined>;
update(id: string, notebook: Notebook): Promise<Notebook | undefined>;
ge... |
import { Language, Config, ProcessorName } from '../models';
export interface Compiler {
load: (languages: LanguageOrProcessor[], config: Config) => Promise<unknown[]>;
compile: (content: string, language: Language, config: Config, options?: any) => Promise<string>;
}
export type LanguageOrProcessor = Language | ... |
import { Component, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { TaxonomyService } from '../../../services/taxonomy.service';
import { DataSource } from '@angular/cdk/collections';
import { Observable } from 'rxjs/Observable';
import { BehaviorSubject } from 'rxjs... |
import React from 'react';
import { TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import styles from './BackButtonInHeader.styles';
import { useNavigation } from '@react-navigation/native';
interface BackButtonProps {
color: string;
}
const BackButtonInHeader = ({... |
import {
Fields,
FieldPropTypes,
ReformlProvider,
BaseForm,
useProcessBool,
BoolFieldComponent
} from 'reforml'
import React, { FunctionComponent, useState } from 'react'
import PropTypes from 'prop-types'
const MyCheckbox: BoolFieldComponent<unknown> = ({
helperText,
onChange,
value,
label,
defa... |
import { createJWT, verifyJWT } from 'did-jwt'
import { Resolvable } from 'did-resolver'
import * as validators from './validators'
import {
JwtCredentialPayload,
Issuer,
JwtPresentationPayload,
JWT,
VerifiablePresentation,
VerifiableCredential,
CredentialPayload,
PresentationPayload,
Verifiable,
W3... |
import { Component } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'app-modal-windows',
templateUrl: 'modal-windows.component.html',
styleUrls: ['modal-windows.component.css', '../app.component.css']
})
export class ModalWindowsComponent {
} |
import { Packet } from "bdsx/bds/packet";
import { MinecraftPacketIds } from "bdsx/bds/packetids";
import { events } from "bdsx/event";
import { NativeType } from "bdsx/nativetype";
import { Tester } from "bdsx/tester";
import { hex } from "bdsx/util";
// Network Hooking: Print all packets
const tooLoudFilter = new Se... |
/* eslint-disable no-process-env */
/* istanbul ignore file */
import { MongoClient } from 'mongodb';
const test: string | undefined = process.env.MONGO_URL;
const user: string | undefined = process.env.DB_USER;
const pwd: string | undefined = process.env.DB_PWD;
const host: string = process.env.DB_HOST || 'localhost'... |
/** @deprecated do not use, this is no longer checked by RxJS internals */
export declare const rxSubscriber: string | symbol;
/**
* @deprecated use rxSubscriber instead
*/
export declare const $$rxSubscriber: string | symbol;
//# sourceMappingURL=rxSubscriber.d.ts.map |
import { registerHooks } from "../../util";
import { pagingTests } from "./generic";
import {
createV2AuthXScope,
RoleAction,
RoleContext,
} from "@authx/authx/dist/util/scopes";
const ctx = registerHooks(__filename);
function createReadScope(roleId: string): string {
const action: RoleAction = {
basic: "... |
<TS language="ta" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>ஒரு புதிய முகவரியை உருவாக்கு</translation>
</message>
<message>
<source>&New</source>
<translation>&புதிய</translation>
</messa... |
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<h1>{{title}}</h1>
<nav>
<a routerLink="/dashboard" routerLinkActive="active">Dashboard</a>
<a routerLink="/heroes" routerLinkActive="active">Heroes</a>
</nav>
<router-outlet></router-outlet>
`,
... |
import {
createNewProjectDir,
initProjectWithProfile,
addCodegen,
DEFAULT_JS_CONFIG,
createRandomName,
addApiWithoutSchema,
updateApiSchema
} from "amplify-codegen-e2e-core";
import { existsSync } from "fs";
import path from 'path';
import { isNotEmptyDir } from '../utils';
import { deleteA... |
// Type definitions for Glob 5.0
// Project: https://github.com/isaacs/node-glob
// Definitions by: vvakame <https://github.com/vvakame>
// voy <https://github.com/voy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import events = require("events");
... |
import { Message } from "../structures/Message";
import { Contact } from "../structures/Contact";
import { Chat } from "../structures/Chat";
import { Handle } from "../structures/Handle";
export enum IMCoreEvent {
messageReceived = "messageReceived",
historyLoaded = "historyLoaded",
messageUpdated = "messa... |
/* tslint:disable */
/* eslint-disable */
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.te... |
/**
* Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { Structure } from '../structure'
import { StructureSelection } from './selection'
import { QueryContext, QueryFn } from './context';
interface StructureQuery... |
import styled from 'styled-components';
export const TasksStyled = styled.div`
background-color: #8A817C;
color: #D9D9D9;
`
export const TasksItemStyled = styled.li<{ isDone?: boolean }>`
background-color: #F4F3EE;
color: ${props => props.isDone ? 'gray' : 'black'};
text-decoration: ${props => props.isDone ... |
import { ValidationOptions } from "../ValidationOptions";
export declare type IsISBNVersion = "10" | "13" | 10 | 13;
export declare const IS_ISBN = "isIsbn";
/**
* Checks if the string is an ISBN (version 10 or 13).
* If given value is not a string, then it returns false.
*/
export declare function isISBN(value: unk... |
import { GraphQLSchema, GraphQLFieldResolver } from 'graphql';
declare function addSchemaLevelResolveFunction(schema: GraphQLSchema, fn: GraphQLFieldResolver<any, any>): void;
export default addSchemaLevelResolveFunction; |
import { PlayerInfo, Player, PlayerGameInfo, GameType, GameTypes } from 'hive-api';
import { Stats } from '../Stats';
import { Updater } from 'lergins-bot-framework';
export type PlayerInfoUpdateFunction = (playerInfo: PlayerInfo, player: Player) => void;
export type PlayerGameInfoUpdateFunction = (gameInfo: PlayerGam... |
import { Component, Input, OnInit } from '@angular/core';
import { AbstractControl, FormControl, FormGroup, Validators } from '@angular/forms';
import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
import { MatSelectChange } from '@angular/material/select';
import { MatTabChangeEvent } fr... |
import type * as vite from 'vite';
import type { AstroConfig, Renderer } from '../../../@types/astro';
import { resolveDependency } from '../../util.js';
import { createRenderer } from '../renderer.js';
const cache = new Map<string, Promise<Renderer>>();
async function resolveRenderer(viteServer: vite.ViteDevServer,... |
import React, {
useEffect,
useRef,
useImperativeHandle,
forwardRef,
useState,
useCallback,
} from 'react';
import {TextInputProps} from 'react-native';
import {useField} from '@unform/core';
import {Container, TextInput, Icon} from './styles';
interface InputProps extends TextInputProps {
name: string;
... |
import React from 'react';
import { PigeonProps } from '../types';
interface MarkerProps extends PigeonProps {
color?: string;
payload?: any;
width?: number;
height?: number;
hover?: boolean;
style?: React.CSSProperties;
className?: string;
onClick?: ({ event: HTMLMouseEvent, anchor: Poi... |
import { Component, NgZone, OnInit, SkipSelf } from '@angular/core'
import { Platform } from '@ionic/angular'
import { SplashScreen } from '@ionic-native/splash-screen/ngx'
import { StatusBar } from '@ionic-native/status-bar/ngx'
import { ipcRenderer } from 'electron';
import { Router } from '@angular/router';
import ... |
export default function isPrefixedValue(value: string): boolean; |
import Config from '../../infrastructure/config'
import { handleExceptionAndContinue } from '../errors'
export function registerServiceWorker(): void {
if ('serviceWorker' in navigator && Config.isProd) {
window.addEventListener('load', () =>
navigator.serviceWorker.register('/sw.js').catch(handleException... |
import route53 = require('@aws-cdk/aws-route53');
import s3 = require('@aws-cdk/aws-s3');
import cdk = require('@aws-cdk/cdk');
import cloudfront = require('../lib');
const app = new cdk.App();
const stack = new cdk.Stack(app, 'aws-cdk-cloudfront');
const zone = new route53.PublicHostedZone(stack, 'HostedZone', { zo... |
// #region imports
// #region libraries
import React from 'react';
import {
PluridIconDelete,
} from '@plurid/plurid-icons-react';
// #endregion libraries
// #region external
import {
ClientNotifier,
} from '~server/data/interfaces';
// #endregion external
//... |
import { addResizeListener, removeResizeListener, ResizableElement } from '@component-library/utils/resize-event'
import type { DirectiveBinding, ObjectDirective } from 'vue'
declare interface ResizeEl extends ResizableElement {
_handleResize?: () => void
}
const Resize: ObjectDirective = {
beforeMount(el: Resiz... |
/// <reference types="cypress" />
/// <reference types="@testing-library/cypress" />
/// <reference types="../../support" />
// @ts-check
import {
And,
Before,
Given,
Then,
When,
} from "cypress-cucumber-preprocessor/steps";
Given("I let the server to time travel to {int} hours ago", (hours) => {
cy.timeT... |
import {HarnessLoader} from '@angular/cdk-experimental/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk-experimental/testing/testbed';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {FormControl, ReactiveFormsModule} from '@angular/forms';... |
#!/usr/bin/env npx ts-node
import {setInterval} from 'timers';
import {Emittery} from '..';
interface TickData {
now: number;
duration: number;
}
// Map Clock's events emitting data to the type of their data.
type EventDataMap = {
tick: TickData;
error: Error;
start: undefined;
stop: undefined;
};
class ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About INPERIA</source>
<translation>INPERIA Hakkında</translation>
</message>
<message>
<loca... |
import _axios from 'axios'
_axios.interceptors.response.use(
(response) => response,
(error) => {
console.error('Fetch failed:', error.toJSON())
return Promise.reject(error)
}
)
export const axios = _axios
export const graphql = async (url: string, payload: any, authToken: string) => {
const response ... |
import * as React from 'react'
import { StyleProps, Size } from '../styleUtils'
import { ResponsiveProp, resolvePrefixes } from '../reponsiveProp'
import classNames from 'classnames'
type StackProps = StyleProps & {
children?: React.ReactNode
space?: ResponsiveProp<Size>
divide?: boolean
}
function resolveClassNam... |
import { Component, OnInit } from '@angular/core';
import { LocaleService } from "../locale.service";
@Component({
selector: 'app-locale-list',
templateUrl: './locale-list.component.html',
styleUrls: ['./locale-list.component.sass']
})
export class LocaleListComponent implements OnInit {
column = [
{ key: ... |
import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { NgbNavModule, NgbTooltipModule } from "@ng-bootstrap/ng-bootstrap";
import { SharedModule } from "../@shared/shared.module";
import { LearnMaterialFooterComponent } from "./components/learn-material-footer/learn-material-... |
import {
defineConfig,
extractRelevantObservers,
Observer,
ProxyWeakMapType,
} from '@agile-ts/core';
import { generateId, isValidObject, normalizeArray } from '@agile-ts/utils';
import {
AgileHookConfigInterface,
AgileOutputHookArrayType,
AgileOutputHookType,
getReturnValue,
SubscribableAgileInstance... |
// *** 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";
/*... |
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { html } from 'lit-element';
import ArrowRight20 from 'carbon-web-components/es/icons/arrow--right/20';
import logosGroup from '../../... |
import { generateUtilityClass, generateUtilityClasses } from '@mui/core';
export interface MasonryClasses {
/** Styles applied to the root element. */
root: string;
}
export type MasonryClassKey = keyof MasonryClasses;
export function getMasonryUtilityClass(slot: string): string {
return generateUtilityClass('... |
import { ProjectPageState } from '@/services/project/store/type';
import * as actions from './actions';
import * as getters from './getters';
import * as mutations from './mutations';
const state: ProjectPageState = {
isInitiated: false,
searchText: undefined,
rootNode: null,
selectedItem: {},
t... |
import { Token } from '@solana/spl-token';
import type { Connection } from '@solana/web3.js';
import { Account } from '@solana/web3.js';
import type { ProgramIds } from '../config';
import type { PoolConfig, TokenConfigs } from '../orca-commons';
export function orderTokenPair(tokenX: string, tokenY: string): string[... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faInternetExplorer: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ... |
/* eslint-disable eslint-comments/no-unlimited-disable */
/* eslint-disable */
let currentCaption: Caption = null;
let captionNum = 0;
let ws: WebSocket = null;
let symblSocket: SymblSocket = null;
const insights: any = [];
const topics : any = [];
const trackers : any = [];
const hashCode = function(s: string): numbe... |
import { ApolloServer } from "apollo-server-micro"
import { typeDefs } from "../../graphql-server-utils/schema"
import GraphQLJSON, { GraphQLJSONObject } from "graphql-type-json"
import {
sqlQuery,
createHasuraMetadataClient,
postgresMetadataQueryToGQLResult,
} from "../../graphql-server-utils/utils"
import { g... |
export function splitEvery<T>(n: number, arr: Array<T>): Array<Array<T>> {
const result = [];
let index = 0;
while (index < arr.length) {
result.push(arr.slice(index, (index += n)));
}
return result;
}
export function dropLastWhile<T>(pred: (x: T) => boolean, arr: Array<T>): Array<T> {
let index = ar... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 limitation the rights to use, copy, modi... |
import { Component } from "../../ecs/classes/Component";
import { Entity } from "../../ecs/classes/Entity";
import { Types } from "../../ecs/types/Types";
import { Intersection } from "three";
export class Interactor extends Component<Interactor> {
public focusedInteractive: any
public focusedRayHit: Intersection ... |
/**
* @author Ksu
* @version 0.20
*/
import BlocksoftDict from '../common/BlocksoftDict'
import { BlocksoftDictTypes } from '../common/BlocksoftDictTypes'
import BchTransferProcessor from './bch/BchTransferProcessor'
import BsvTransferProcessor from './bsv/BsvTransferProcessor'
import BtcTransferProcessor from './b... |
export interface Product {
productId: string;
categoryId: string;
characteristics: [{ string: { key: string, value: string } }];
createDate: string;
descriptionDetails: string;
EanCode: string;
imgURL: string [];
modifyDate: string;
thumbURL: string [];
timestamp: string;
title: string;
brand: s... |
// Copyright 2017-2021 @polkadot/app-js authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useCallback, useState } from 'react';
import { Button, Input, Popup } from '@polkadot/react-components';
import { useTranslation } from './translate';
interface Props {
className?: string;
isCus... |
import ZoneId from '../../../../../resources/zone_id';
import { OopsyData } from '../../../../../types/data';
import { OopsyTriggerSet } from '../../../../../types/oopsy';
export type Data = OopsyData;
// O1N - Deltascape 1.0 Normal
const triggerSet: OopsyTriggerSet<Data> = {
zoneId: ZoneId.DeltascapeV10,
damageW... |
// package: room
// file: apps/room/proto/room.proto
import * as jspb from "google-protobuf";
export class Error extends jspb.Message {
getCode(): ErrorTypeMap[keyof ErrorTypeMap];
setCode(value: ErrorTypeMap[keyof ErrorTypeMap]): void;
getReason(): string;
setReason(value: string): void;
serializeBinary(... |
import { LicenseManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LicenseManagerClient";
import { GetLicenseConfigurationRequest, GetLicenseConfigurationResponse } from "../models/models_0";
import {
deserializeAws_json1_1GetLicenseConfigurationCommand,
serializeAws_json1_1GetLicenseConf... |
import { BigNumber } from '../../app/utils'
export interface Range {
start: BigNumber
end: BigNumber
}
export interface BlockRange extends Range {
block: BigNumber
} |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { BoxItem } from './box-item.entity';
import { BoxesService } from './boxes.service';
import { BoxesController } from './boxes.controller';
import { AuthModule } from 'src/auth/auth.module';
import { BoxHistory } from './bo... |
import { VantComponent } from '../common/component';
import { isDef } from '../common/validator';
const LONG_PRESS_START_TIME = 600;
const LONG_PRESS_INTERVAL = 200;
// add num and avoid float number
function add(num1: number, num2: number) {
const cardinal = 10 ** 10;
return Math.round((num1 + num2) * cardinal) ... |
/**
* Copyright (c) 2019 Kai Henningsen <kai.extern+mechanic@gmail.com>
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
export class ASTMoreArrayExpr {
} |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AdminleavesListComponent } from './adminleaves-list/adminleaves-list.component';
const routes: Routes = [
{
path: '',
component: AdminleavesListComponent,
data: {
title: 'Leaves'
}
}
];
... |
import { Svg } from '../svg/svg'
import { Mask } from './mask'
describe('Mask', () => {
describe('constructor()', () => {
it('should create an instance of Mask', () => {
expect(new Mask()).toBeInstanceOf(Mask)
})
it('should set passed attributes on the element', () => {
expect(Mask.create({ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.