text
stringlengths
10
953k
import {Component} from '@angular/core'; @Component({ selector: 'home', template: ` <h1>home page</h1> ` }) export class HomeComponent { constructor() {} ngOnInit() { } }
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', async () => { await page.navigateTo(); expect(await page.getTitleText()...
declare const EGG_PATH: unique symbol; declare module 'egg' { export interface Application { readonly pkgName: string; readonly [EGG_PATH]: string; } export interface Agent { readonly [EGG_PATH]: string; } } export * from 'egg';
import { Platform } from 'react-native'; import type { Font } from '../../../types'; const ref = { palette: { primary100: 'rgba(255, 255, 255, 1)', primary99: 'rgba(255, 251, 254, 1)', primary95: 'rgba(246, 237, 255, 1)', primary90: 'rgba(234, 221, 255, 1)', primary80: 'rgba(208, 188, 255, 1)', ...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; import { CourseDialogComponent } from 'app/course-dialog/course-dialog.component'; import { Course } from 'app/model/course'; import { filter, tap } from 'rxjs/operators...
export const jobParams = { baseUrl: "job/", name: 'Full-Cycle-Without-Automation', params: { controllerBN: "", controllerBranchName: "", adunitBN: "", branchNameAdUnit: "", envName: "" } };
import { BrowserWindow, IpcMainEvent } from 'electron'; import * as path from 'path'; import { deleteFile } from '../util/Photo'; import { IUserCreate, IUserUpdate, UsersService } from '../services/UsersService'; class UserController { private userService: UsersService; private mainWindow: BrowserWindow; constr...
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2022 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import type { NotificationService } from '@cloudbeaver/core-events'; import { AsyncTaskInfo, Grap...
import { Directive, ElementRef, Input, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core'; import { Router, NavigationExtras } from '@angular/router'; import { LinkDirective } from './link.directive'; import { LinkField } from './rendering-field'; @Directive({ selector: '[scGenericLink]' }) export class G...
/* library package */ import { NextPage } from 'next' import Error from 'next/error' interface Props { statusCode?: any } const Page: NextPage<Props> = ({ statusCode }) => { return <Error statusCode={statusCode} /> } Page.getInitialProps = async ({ res, err }) => { const statusCode = res ? res.statusCode : err ...
import { Injectable } from '@angular/core'; import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { AuthService } from './auth.service'; @Injectable() export class AuthGuard implements CanActivate { constructor(private authService: AuthService, private router: R...
// Copyright (c) 2020 The DAML Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 import * as React from 'react'; import { DamlLfValue } from '../api/DamlLfValue'; import * as DamlLfValueF from '../api/DamlLfValue'; import ArgumentDisplay from '../ArgumentDisplay'; import { Section } from '../Guide';...
import { svg } from 'lit-element'; import { Point } from './interfaces/interfaces'; import { invertYAxis } from './utils'; export function originTemplate( origin: Point, size: number, strokeWidth: number ) { const markerSize = 3 * strokeWidth; let xArrow = {x: origin.x + size, y: origin.y}; let yArrow = {...
import { AppPage } from './app.po'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to DemoApp!'); }); });
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { ITranslator } from '@jupyterlab/translation'; import { Token } from '@lumino/coreutils'; import { IDisposable } from '@lumino/disposable'; import { ISignal } from '@lumino/signaling'; import { Widget } from ...
import { ICom } from "ak-lib-sys/src/com/icom"; export interface IPage extends ICom { Title :string ; PageName :string ; P1:string ; P2 :string ; P3 :string ; sysloadPage() ; reset(pagename:string,p1:string,p2:string,p3:string); }
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, ParamMap } from '@angular/router'; import { MatFormFieldModule } from '@angular/material'; import { Location } from '@angular/common'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { Teacher } from '../...
import { RefObject, useRef, useCallback } from "react"; import { PickerItemRef } from "../types/pickerItemRef"; import { PickerData } from "../components/WheelPicker"; const easeOutCubic = (t: number, b: number, c: number, d: number) => { t /= d; t--; return c * (t * t * t + 1) + b; }; export const setScrollAni...
// The video for this file: // https://youtu.be/f2FZbeb2hvo export interface Stack<T> { push(item: T): void; pop(): T; readonly length: number; } class StackQueue<T> { private in: Stack<T>; private out: Stack<T>; constructor() { this.in = []; this.out = []; } public enqueue(item: T): void { ...
import type Velkoz from "@velkoz/core"; export default class JsError { static pluginName = "js-error"; constructor(public velkoz: Velkoz) { window.onerror = (errorMsg, url, lineNumber, columnNumber, errorObj) => { const errorStack = errorObj ? errorObj.stack : null; velkoz.pushException("ERROR", "C...
// Type definitions for jQuery.payment // Project: https://github.com/stripe/jquery.payment // Definitions by: Eric J. Smith <https://github.com/ejsmith/>, John Rutherford <https://github.com/johnrutherford/> // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module JQueryPayment { interface ...
/** * * SwapTradeForm * */ import React, { useCallback, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Icon } from '@blueprintjs/core'; import { FieldGroup } from '../../components/FieldGroup'; import { FormSelect } from '../../components/FormSelect'; import { AmountFi...
import React from "react"; import { colors } from "../theme"; import { UserRegistration } from "../components/user_registration"; import { UserRecoveryForm } from "../components/user_recover"; import { InputCheck } from "./settings/inputCheck"; import { request } from "../utils/requestweb"; import { validPassword } fro...
import { User, UserCredential, } from 'firebase/auth'; import { createContext, ReactNode, useContext, useEffect, useMemo, useState, } from 'react'; import { auth, createUserWithEmailAndPassword, signInWithEmailAndPassword, sendEmailVerification, signOut, sendPasswordResetEmail, GoogleAuthP...
import { IPersonaCoinStyleProps, IPersonaCoinStyles } from '../Persona.types'; export declare const getStyles: (props: IPersonaCoinStyleProps) => IPersonaCoinStyles;
import { ParserType, convertToLineNodes } from '.' const iconRegExp = /^(.*?)\[\[(.*)\.icon(\*(\d+))?\]\](.*)$/ export type StrongIconNodeType = { type: 'strongIcon' pathType: 'root' | 'relative' path: string } const createStrongIconNode = (path: string): StrongIconNodeType => ({ type: 'strongIcon', pathTy...
GOCAD TSurf 1 HEADER { ivolmap:false imap:false *regions*Region_1*visible:false *regions*region:Region_2 *regions*Region_2*visible:false name:PNRA-SJFZ-ANZA-Buck_Ridge_fault *painted*variable:azimuth painted:false border:on *border*bstone:on } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default AXIS_NAME "X" "Y" "Z" AXIS_UN...
import { getDataFromSyncStoragePromise } from '../../../helpers'; export const setVideoTheaterMode = async ( isInTheaterMode?: boolean, targetVideo?: HTMLVideoElement ): Promise<any> => { console.log('setVideoTheaterMode', isInTheaterMode); // for media that are loading in asynchronously // we need to grab i...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Mpaycoin</source> <translation>Om Mpaycoin</translation> </message> <message> <location...
type ObjectWithoutNulls<T> = { [key in keyof T]: Exclude<T[key], null>; }; export function castObjectNullsToUndefined<T>( item: T | undefined | null ): ObjectWithoutNulls<T>; export function castObjectNullsToUndefined(item: undefined | null): undefined; export function castObjectNullsToUndefined<T>( item: T | u...
/* tslint:disable */ // This file was automatically generated and should not be edited. // ==================================================== // GraphQL query operation: ProductVariantCreateData // ==================================================== export interface ProductVariantCreateData_product_images_edges_no...
import * as React from "react"; import { JSX } from "react-jsx"; import { IFluentIconsProps } from '../IFluentIconsProps.types'; const LocationOff24Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <svg...
import bb from "bluebird"; import luxon from "luxon"; interface ICacheItem<TValue> { /** if UNDEFINED the cache is invalid. Important note: NULL is a valid cached value.*/ value: TValue; expires: luxon.DateTime; /** set if a fetch is occuring. if true, we will not kick off another fetch, but (if awa...
<TS language="es_UY" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Clic derecho para editar dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> <...
import { Component } from '@angular/core'; import { PageEvent } from '@angular/material'; import { ImageListItemDto, ImageListOptions, PaginationResponseDto, RemoteDto } from '@lxdhub/common'; import { ImageService } from '../image.service'; import { NGXLogger } from 'ngx-logger'; @Component({ selector: 'app-image-...
import * as ensDomainSelectorTypes from './types'; import * as ensDomainSelectorReducer from './reducer'; import * as ensDomainSelectorSelectors from './selectors'; export { ensDomainSelectorTypes, ensDomainSelectorReducer, ensDomainSelectorSelectors };
import { MidiNote } from "@brandongregoryscott/reactronica"; const MidiNotes: MidiNote[] = [ "C-2", "C#-2", "D-2", "D#-2", "E-2", "F-2", "F#-2", "G-2", "G#-2", "A-2", "A#-2", "B-2", "C-1", "C#-1", "D-1", "D#-1", "E-1", "F-1", "F#-1", "G-1"...
/* * Squidex Headless CMS * * @license * Copyright (c) Sebastian Stehle. All rights reserved */ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { inject, TestBed } from '@angular/core/testing'; import { ApiUrlConfig, GraphQlService } from './../'; describe('...
import path from 'path'; import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], resolve: { alias: { '@src': path.resolve(__dirname, 'src'), }, }, });
import { app, json } from "../../api"; app.category("azure", () => { app.post("/lroConstantParameterizedEndpoints/iAmConstant", "LROConstantParameterizedPost", (req) => { return { status: 202, headers: { Location: "/lroConstantParameterizedEndpoints/iAmConstant/results/1", }, }; }...
import { Injectable, Logger } from '@nestjs/common'; import { InjectSendGrid } from '@ntegral/nestjs-sendgrid/dist/common/sendgrid.decorator'; import { SendGridService } from '@ntegral/nestjs-sendgrid/dist/services/sendgrid.service'; import * as dotenv from 'dotenv'; import { UserService } from 'src/user/services/user/...
import React from "react"; import { SpotifyPlayback } from "../playback/playback"; export default function App(): JSX.Element { return ( <div> <SpotifyPlayback /> </div> ); }
// English (United Kingdom) export default { 'fabric.elements.user-picker.placeholder': 'Find a person...', 'fabric.elements.user-picker.placeholder.add-more': 'add more people...', 'fabric.elements.user-picker.multi.remove-item': 'Remove', 'fabric.elements.user-picker.single.clear': 'Clear', };
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ReactiveFormsModule, FormsModule } from '@angular/forms'; import { FlexLayoutModule } from '@angular/flex-layout'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/mate...
import { ExportedData } from '@src/shared/types' import { isJSON } from '@src/shared/validator' import { importData } from '@popup/store' import { readFile, filterData } from './utils' document.addEventListener('DOMContentLoaded', () => { const form = document.querySelector('.js-form') as HTMLFormElement const inp...
import { useQuery } from '@apollo/client'; import { Paper, Typography } from '@material-ui/core'; import { ButtonOutlined } from 'litmus-ui'; import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { LIST_PROJECTS } from '../../../graphql'; import { InvitationStatus,...
import { Breakpoints, Theme, theme, ThemeWithoutBreakpoints, themeWithoutBreakpoints, } from '../../../test-utils/theme'; import { transformBox } from '../transformBox'; describe('transformBox', () => { it('should return a function', () => { const result = transformBox(); expect(result).toBeInstan...
import { Announcement, AnnouncementExchange } from './model/announcement'; export interface AnnouncementClient { getAllByExchange(exchange: AnnouncementExchange): Promise<Announcement[]>; }
import React from 'react' import { Link } from 'gatsby' import { User, Twitter, GitHub, Mail } from 'react-feather'; const Footer = () => <div className={"NavIcons Foot"} > <div className={'svg'}> <Link to={"/about"}> <User id="user" /> </Link> <a href={'...
import { TestBed } from '@angular/core/testing'; import { MyRequestService } from './my-request.service'; describe('MyRequestService', () => { let myRequestService: MyRequestService; beforeEach(() => { TestBed.configureTestingModule({ providers: [MyRequestService], }); myR...
// Dependencies import { Telegraf, ContextMessageUpdate, Extra } from 'telegraf' import { strings } from '../helpers/strings' import { checkLock } from '../middlewares/checkLock' export function setupRestrict(bot: Telegraf<ContextMessageUpdate>) { bot.command('restrict', checkLock, async ctx => { let chat = ctx....
import React from 'react'; import { MaterialIcons as Icon } from '@expo/vector-icons'; import { Container, TabsContainer, TabItem, TabText } from './styles'; interface Props { translateY: any; } const Tabs: React.FC<Props> = ({ translateY }) => { return ( <Container style={{ transform: [{ transl...
import { useWeb3React } from '@web3-react/core'; import { ReactComponent as IconLink } from 'assets/icons/link.svg'; import { CountdownTimer } from 'components/countdownTimer/CountdownTimer'; import { ModalVbnt } from 'elements/modalVbnt/ModalVbnt'; import { useInterval } from 'hooks/useInterval'; import { useCallback,...
import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { first } from 'rxjs/operators'; import { AuthenticationService } from '@app/_services'; @Component({ templateUrl: 'login.component....
export const ItemsText: {[k: string]: ItemText} = { abomasite: { name: "Abomasite", desc: "If held by an Abomasnow, this item allows it to Mega Evolve in battle.", }, absolite: { name: "Absolite", desc: "If held by an Absol, this item allows it to Mega Evolve in battle.", }, absorbbulb: { name: "Absorb B...
/** * Lift a computation from the `Task` monad * * @since 2.10.0 */ import { Chain, Chain1, Chain2, Chain2C, Chain3, Chain3C, Chain4, chainFirst } from './Chain' import { FromIO, FromIO1, FromIO2, FromIO2C, FromIO3, FromIO3C, FromIO4 } from './FromIO' import { flow } from './function' import { HKT, Kind, Kind2, Kin...
// Copyright 2018-2019 the oak authors. All rights reserved. MIT license. import { test, assertEquals, assertStrictEq, assertThrowsAsync } from "./test_deps.ts"; import { ServerRequest } from "./deps.ts"; import httpErrors from "./httpError.ts"; import { Request, BodyType } from "./request.ts"; const encoder ...
import React from 'react' import { render } from '@testing-library/react' import CopyLight from './index' test('<CopyLight /> should render', () => { const screen = render(<CopyLight />) expect(screen.getByText(/Created by/)).toBeInTheDocument() })
import { Modal } from 'ant-design-vue' import i18n from '../language' const { t } = i18n.global const OkText = t('OK_TEXT') const CancelText = t('CANCEL_TEXT') const DeleteTitle = t('DELETE_TITLE') const DeleteContent = t('DELETE_CONTENT') const useDeleteModal = ( onOk: () => void, title = DeleteTitle, content...
import { PostVote } from "./postVote"; import { WatchedList } from "../../../shared/domain/WatchedList"; export class PostVotes extends WatchedList<PostVote> { private constructor (initialVotes: PostVote[]) { super(initialVotes) } public compareItems (a: PostVote, b: PostVote): boolean { return a.equals...
/* tslint:disable:no-console */ import { TextDocument, TextEdit } from 'vscode-languageserver-protocol' import { getChange } from '../../util/diff' import { createTmpFile, isGitIgnored, readFileByLine, statAsync } from '../../util/fs' import { fuzzyChar, fuzzyMatch, getCharCodes } from '../../util/fuzzy' import { isCoc...
import * as aws from 'aws-sdk' import * as awsSecretsManager from '../src/awsSecretsManager' const secretsManagerMock = { listSecretVersionIds: jest.fn(), } jest.mock('aws-sdk', () => ({ SecretsManager: jest.fn(() => secretsManagerMock), })) test('getCurrentVersionId returns the current version id', async () => {...
import { Probe, ProbeAlert } from '@hyperjumptech/monika/lib/interfaces/probe'; export interface UpdateProbeData { id: string; field: string; value: string; } export interface UpdateProbeRequestData extends UpdateProbeData { index: number; } export interface ProbeContextInterface { probeData: Probe[]; ha...
import { StyleSheet } from 'react-native' const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#8257e5', justifyContent: 'center', padding: 40 }, banner: { width: '100%', resizeMode: 'contain' }, title: { fontFamily: 'Archivo_400Regular', color: '#fff',...
import { Routes } from '@angular/router'; import { LoginGuard } from 'src/app/guards/login.guard'; import { RegisterComponent } from '../../pages/register/register.component'; export const AuthLayoutRoutes: Routes = [ { path: 'login', children: [ { path: '', loa...
import { Module, Global } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { UserModule } from './user/user.module'; import { TypegooseModule } from "nestjs-typegoose"; import { CrudModule } from './crud/crud.module'; import { AuthModule } from ...
/** @jsx jsx */ import { jsx } from '@emotion/core'; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore // @ts-ignore import SyntaxHighlighter from 'react-syntax-highlighter/dist/cjs/prism-light'; import { SSRComponentProps } from '@remirror/core'; import { CodeBlockAttrs, CodeBlockExtensionOptions } from ...
export default function setSearch(url: string, key: string, value?: string): string;
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client"; import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types"; import { DataExchangeServiceException as __BaseException } from "./DataExchangeServiceException"; /** * <p>Access to the resource is denied.</p> */ export class ...
import { ctx } from "../canvas"; import { allyRepulsionForce } from "../system/step"; export const drawGizmo = () => { const u = (ctx as any).pixelSize; ctx.lineWidth = 0.7 * u; ctx.fillStyle = ctx.strokeStyle = "purple"; ctx.font = `${Math.floor(8 * u)}px sans-serif `; { const l = 1000; ctx.begin...
import { Injector, NgModule } from '@angular/core'; import { createCustomElement } from '@angular/elements'; import { BrowserModule } from '@angular/platform-browser'; import { LoadingComponent } from './loading.component'; @NgModule({ declarations: [LoadingComponent], imports: [BrowserModule], entryComponents: ...
import React, { useEffect, useState } from 'react' import { ScrollView } from 'react-native' import { useTranslation } from 'react-i18next' import MatchingWord from './MatchingWord' import wordlist from '../../../constants/wordlists/english.json' import TextInput from '../../../components/TextInput' import Text from '....
/*! * @license * Copyright 2019 Alfresco Software, Ltd. * * 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 app...
import { IResource, ExtensionContext, ResourceProperty } from 'civet' import { PropertyType } from './ExtensionHostType' export class DisplayProperty{ name: string; query: boolean; type: PropertyType; value: any; } export class SerializeAccessor { constructor() {} access(property: ResourceProperty): Displ...
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Host, Input, OnChanges, Optional, Renderer2, TemplateRef, ViewChild, ViewEncapsulation, } from '@angular/core'; import { ResponsiveService } from '@delon/theme'; import { isEmpty, InputBoolean, InputNumber } from '@delon/uti...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { InjectionToken } from '@angular/core'; /** * Create a {@link UrlResolver} with no package prefix. */ expor...
import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; import { io } from "socket.io-client"; import { environment } from 'src/environments/environment'; import { AppConstant } from '../common/appconstants'; @Injectable({ providedIn: 'root' }) export class SocketService { p...
import * as sweetalert2 from "sweetalert2"; import Swal, { SweetAlertOptions } from "sweetalert2"; import * as _ from "lodash"; type Awaited<T> = T extends Promise<infer U> ? U : T; export class SwalHelper { static ESCAPED_FIELDS = [ "title", "text", "html", "footer", "confirmButtonColor", "...
namespace $ { /** * Ignore changes inside decorated action. * Usefull inside $mol_story_tell. */ export class $mol_story_skip extends $mol_wrapper { static override wrap< This , Args extends unknown[] , Result >( task : ( this: This , ... args: Args )=> Result ) { return function( thi...
import ZigbeeInfo from './api/responses/ZigbeeInfo'; /** * Current state of the Zigbee communication module. * * This is only provided to allow for a unique system identifier. */ export class ZigbeeStatus { /** * MAC address of the Zigbee module. */ readonly macAddress: string; /** * Firmware versi...
import { Entity, Column, CreateDateColumn, PrimaryColumn, UpdateDateColumn, ManyToOne, JoinColumn, } from 'typeorm'; import { v4 as uuidV4 } from 'uuid'; @Entity('sales') class Sales { @PrimaryColumn() id: string; @Column() code_saleFK: string; @Column() total: number; @Column() consum...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { AssessmentToggleActionPayload } from 'background/actions/action-payloads'; import { createInitialAssessmentTestData } from 'background/create-initial-assessment-test-data'; import { InstanceIdentifierGenerator, ...
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { FontAwesomeTestingModule } from '@fortawesome/angular-fontawesome/testing'; import { AppComponent } from './app.component'; import { HeaderComponent } from './components/header/header.component'; de...
import {StoreBaseModel, RecordsModel} from "@essence-community/constructor-share/models"; import {IStoreBaseModelProps, IRecordsModel, IBuilderConfig} from "@essence-community/constructor-share/types"; import {loggerRoot} from "@essence-community/constructor-share/constants"; import {observable, computed, action} from ...
import { useCallback } from 'react'; import { UserOutlined, LockOutlined } from '@ant-design/icons'; import { Form, Input, Button, Checkbox, Typography, Spin, message } from 'antd'; import { useAuthDispatch, useAuthState } from '..'; import { signInEmailPasswordAsyncThunk } from '../slice/asyncThunks/signIn'; export...
import { ButtonHTMLAttributes } from 'react'; import styled, { css } from 'styled-components'; import { ifProp } from 'styled-tools'; import { transparentize } from 'polished'; import colors from '../../theme/colors'; import Checkbox from '../Checkbox'; import Button from '../Button'; import Grid from '../Grid'; cons...
import type { AbilityClass, ExtractSubjectType, InferSubjects } from '@casl/ability'; import { Ability, AbilityBuilder, ForbiddenError } from '@casl/ability'; import { Injectable } from '@nestjs/common'; import { Article } from '../../../articles/entities/article.entity'; import { Comment } from '../../../comments/enti...
import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/data'; import { TriggerSet } from '../../../../../types/trigger'; export type Data = Ra...
import xlsx from "xlsx"; import { AuthorityType } from "../interfaces/auth"; export interface excelData { name: string; grade: number | null; class_num: number | null; number: number | null; all_walk_count: number; average_walk_count: number; all_distance: number; average_distance: number; authority:...
import Blockweave from 'blockweave'; export async function status( txid: string, blockweave: Blockweave, ): Promise<{ status: number; blockHeight: number; blockHash: string; confirmations: number; errorMessage?: string }> { const res = await blockweave.api.get(txid); if (res.status !== 200 && res.status !== 20...
export * from './checksum'; export * from './filterFiles'; export * from './wrongFiles'; export * from './excelExport'; export * from './copy';
import CardBase from './card_base'; interface AttackToCardContext { attackerCard: CardBase; card: CardBase; } export default AttackToCardContext;
import React, { useMemo, useState } from 'react'; import { FieldConfigSource, GrafanaTheme, PanelData, PanelPlugin, SelectableValue } from '@grafana/data'; import { DashboardModel, PanelModel } from '../../state'; import { CustomScrollbar, RadioButtonGroup, useStyles } from '@grafana/ui'; import { getPanelFrameCategory...
/* eslint-disable @typescript-eslint/member-ordering */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/unbound-method */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ import { BasicClient } from "...
import { logger } from '@gestaltjs/core/cli' export const testLogger = () => { return logger.coreLogger().child('test') }
import {FORMAT_HTTP_HEADERS, FORMAT_TEXT_MAP, globalTracer, Span, Tags, Tracer} from 'opentracing'; import {createNamespace} from 'cls-hooked'; import * as url from "url"; import {TraceConstants} from '../trace-constants'; const clsNamespace = createNamespace(TraceConstants.TRACE_NAMESPACE); export const buildTraceC...
import { Lexer } from '../parser/Lexer'; import { Parser } from '../parser/Parser'; import { Sentence } from '../structures/Sentence'; export function parse(content: string) { return new Sentence(new Parser(new Lexer(content)).parse()); }
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * 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 restrict...
/* eslint-disable no-redeclare */ import { makeAutoObservable, observable, runInAction } from "mobx"; import { Region } from "flat-components"; import { cancelRoom, CancelRoomPayload, createOrdinaryRoom, CreateOrdinaryRoomPayload, createPeriodicRoom, CreatePeriodicRoomPayload, joinRoom, ...
import { expect } from 'chai' import 'mocha' import { NbtWriter } from '../../src/nbt' function matches(writer: NbtWriter, data: number[], message?: string) { expect(writer.getData()) .deep.equal(new Uint8Array(data), message) } describe('Writer', () => { it('end', () => { const writer = new NbtWriter() write...