text
stringlengths
10
953k
export default class SWUpdateEvent { constructor(private registration: ServiceWorkerRegistration) {} /** Check if the new service worker exists or not. */ update(): Promise<void> { return this.registration.update(); } /** * Activate new service worker to work 'location.reload()' with new data. */ ...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="ua_UA"> <context> <name></name> <message id="location_item_latitude"> <translation>Широта: %1</translation> </message> <message id="location_item_longitude"> <translation>Довгота: %1</translation> </mes...
import {UsernameValidator} from './username.validator.interface'; import {FormControl} from '@angular/forms'; import {Observable} from 'rxjs/index'; import {Injectable} from '@angular/core'; import {MockedUsersCollection} from '../../mocked-users.collection'; import {isNullOrUndefined} from 'util'; @Injectable() expor...
export enum Configuration { PORT = 'PORT', PORT_DB = 'PORT_DB', HOST = 'HOST', USERNAME = 'USERNAME', PASSWORD = 'PASSWORD', DATABASE_PRIMARY = 'DATABASE_PRIMARY', DATABASE_SECONDARY = 'DATABASE_SECONDARY', JWT_SECRET = 'JWT_SECRET' }
export * from './prefix'; export { default as isNullOrUndefined } from './isNullOrUndefined'; export { default as getUnhandledProps } from './getUnhandledProps'; export { default as getTotalByColumns } from './getTotalByColumns'; export { default as mergeCells } from './mergeCells'; export { default as toggleClass } fr...
import { BANK_ACCOUNT_LIST_PARTS_RAW } from './bankAccount'; export const FACTORING_PROVIDER_LIST_PARTS_RAW = ` id displayName legalName contact `; export const FACTORING_PROVIDER_DETAIL_PARTS_RAW = ` id displayName legalName contact bankAccount {...
import React from "react"; import {Navbar, Image, Nav,} from 'react-bootstrap'; import logo from '../../img/ic-badge-powered-by_slim-transparent-white-text.svg' ; class BottomComponent extends React.Component { render() { return ( <Navbar collapseOnSelect expand="lg" bg="dark" variant="dark" fix...
import { EditorState } from 'draft-js'; import { MentionData } from '..'; export default function addMention(editorState: EditorState, mention: MentionData, mentionPrefix: string, mentionTrigger: string, entityMutability: 'SEGMENTED' | 'IMMUTABLE' | 'MUTABLE'): EditorState;
import { shallow } from 'enzyme'; import FourOhFour from 'src/App/404'; function setup() { const props = {}; const wrapper = shallow(<FourOhFour />); return { wrapper, props }; } describe('/404', () => { it('renders the component', () => { const { wrapper } = setup(); expect(wrapper.find('div.Site-con...
/* * Copyright (C) 2022 neocotic * * 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, modify, merge, publish, d...
import {TProcessIdentity} from '@flemist/ps-cross-platform' import {TProcessTreeFilter, TProcessTreeFilterArgs} from '@flemist/find-process' import {TFindInFilterPredicate} from '@flemist/find-process/dist/factories' export type TSignal = NodeJS.Signals | number export type TKillStage = { signals?: TSignal[] /** mi...
/* * Copyright (C) Christian Ascone - All Rights Reserved * * @project react-native-expo-template.nosync * @file MainScreenStyle.ts * @author Christian Ascone * @date 9/14/19 4:43 PM */ import {Platform, StyleSheet} from "react-native"; import Colors from "../config/Colors"; const styles = S...
import { Binder } from "@ribajs/core"; import { EventDispatcher } from "@ribajs/events"; import { Collapse } from "../services/collapse"; import { onRoute } from "@ribajs/utils/src/url"; /** * * @see https://getbootstrap.com/docs/4.1/components/collapse/ * @see https://github.com/twbs/bootstrap/blob/v4-dev/js/src/c...
import React from 'react'; import './treeNode.scss'; import { ReactFCRegistered, useDashboardBuilderClient, useNode } from "../DashboardBuilderProvider"; import { Grid, MenuItem, Paper, Select, } from "@mui/material"; import {styled} from "@mui/system"; import {TreeItem} from "../SortableTree/types"; import {Sty...
import { CommandInteraction } from 'discord.js'; import { SlashCommandBuilder } from '@discordjs/builders'; import CommandInterface from '../command.interface'; import { inject, injectable } from 'inversify'; import { InteractionContainerSymbols, InteractionTranslate, } from '../../interaction-container.type'; impo...
// @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line import { Sha256 } from "@aws-crypto/sha256-browser"; import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver"; import { FetchHttpHandler, streamCo...
import Vue from 'vue'; import Component from 'vue-class-component'; import keyring from '@vue-polkadot/vue-keyring'; import { cryptoWaitReady } from '@polkadot/util-crypto'; import { KeyringPair } from '@polkadot/keyring/types'; import { u8aToHex } from '@polkadot/util'; @Component export default class WithKeyring ext...
// 交叉类型 namespace IntersectionTypes { interface IDog { run(): void; } interface ICat { scratch(): void; } type Animal = IDog & ICat; // animal 需要实现所有的方法 const animal: Animal = { run() {}, scratch() {}, }; // wrong usage const animalWrong = { run() {}, } as Animal; } namespa...
export interface Person { name: string; age?: number; } export function getMinMax(...nums: number[]) { const min = Math.min(...nums); const max = Math.max(...nums); return [min, max]; }
import * as assert from "assert"; import { DART_DEP_PACKAGE_NODE_CONTEXT, DART_DEP_PROJECT_NODE_CONTEXT } from "../../../shared/constants"; import { ensurePackageTreeNode, extApi, getPackages } from "../../helpers"; describe("packages tree", () => { // We have tests that require external packages. before("get packag...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="pt_BR"> <context> <name>AddressBookModel</name> <message> <location filename="../src/addressbook.cpp" line="11"/> <source>Label</source> <translation type="unfinished">Etiqueta</translation> </message> ...
import { createElement } from "react"; import { Descendant } from "slate"; import { Output, Kernel } from '@datalayer/jupyter-react'; const SOURCE_1 = `from IPython.display import display for i in range(3): display('😃 String {} added to the DOM in separated DIV.'.format(i))`; const SOURCE_2 = `import numpy as np...
class Publisher { private uuid: string; private host: string; private canvasflowApi: CanvasflowApi; private builder: Builder; private boundary: string; private articleName: string; private valuesWidth: number; private styles: Array<any>; private savedSettings: any; private templateDefault: any; private t...
import { SESv2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SESv2Client"; import { GetDedicatedIpsRequest, GetDedicatedIpsResponse } from "../models/models_0"; import { deserializeAws_restJson1GetDedicatedIpsCommand, serializeAws_restJson1GetDedicatedIpsCommand, } from "../protocols/Aws_res...
import { NextFunction, Request, Response, Router } from 'express'; import { status } from '../services/status.service'; import log from '../utils/logger'; const router = Router(); router.get('/', (req: Request, res: Response, next: NextFunction) => { res.json(status()); }); export default router;
/* GENERATED FILE */ import * as React from "react"; import Svg, { Rect, Path, Line, Circle } from "react-native-svg"; import { IconProps } from '../lib' function DesktopTower(props: IconProps) { return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} {...props}><Rect width={256} height={256} fill=...
import { flow, getParent, Instance, types } from 'mobx-state-tree' import { Form } from './Form' export const KeyValue = types.model({ key: types.string, text: types.string, }) export const Category = KeyValue.named('Category') export const Options = KeyValue.named('Options') export const Default = KeyValue.named...
import UrlBuilder from './url-builder' export default UrlBuilder
/* * Copyright 2019 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
/* Copyright Contributors to the Open Cluster Management project */ import { Card, CardBody } from '@patternfly/react-core' import React from 'react' import { AcmInlineStatus, StatusType } from '../AcmInlineStatus/AcmInlineStatus' import { AcmProgressTracker } from './AcmProgressTracker' export default { title: '...
import { Injectable } from '@angular/core'; import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as moment from 'moment'; import { DATE_FORMAT } from 'app/shared/constants/input.constants'; import { map } from 'rxjs/operators'; import { SERVER_API_URL } from 'app...
/*------------------------------------------------------------------------------ About : <Write about the file here> Created on : Sun May 20 2018 Author : Raghvendra Varma Copyright (c) 2018 Mubble Networks Private Limited. All rights reserved. ----------------------------------------------...
export { IMsg } from "./Message.interface";
import styled from 'styled-components'; import { PageRoom as PageRoomModel, Header as HeaderModel, Main as MainModel, } from '../AdminRoom/style'; export const PageRoom = styled(PageRoomModel)``; export const Header = styled(HeaderModel)``; export const Main = styled(MainModel)``; export const Form = styled....
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http' import { Observable } from 'rxjs'; import { carModel } from './cars.model' @Injectable({ providedIn: 'root' }) export class CrudService { constructor(private http: HttpClient) { } cadastrarVeiculo(car: carModel):Obser...
import {Module} from '@nestjs/common'; import { ProcessorModule } from './processor/processor.module'; import { MongooseModule, MongooseModuleOptions } from '@nestjs/mongoose'; import * as Config from 'config'; import { UserModule } from './user/user.module'; import { ConfigurationModule } from './configuration/configu...
import { ActionReducerMap } from '@ngrx/store'; // store import { userProfileReducer } from './users/profile.reducer'; import { activeDebateReducer } from './debates/activeDebate.reducer'; // types import { IUserProfile } from './users/IUserProfile'; import { IDebate } from '../types/debates/IDebate'; /** * Applica...
import { Injectable } from '@nestjs/common'; import { Repository } from 'typeorm'; import { Endpoints } from '../../entities/Endpoints'; import { InjectRepository } from '@nestjs/typeorm'; import { CreateEndpointDto } from './dto/create.dto'; import { UpdateEndpointDto } from './dto/update.dto'; import { VerifyDTO } fr...
// Type definitions for Angular Scenario Testing (ngScenario module) 1.3 // Project: http://angularjs.org // Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// <reference types="jquery" /> declare names...
import { Entity, Column, PrimaryGeneratedColumn, ManyToOne, JoinColumn, CreateDateColumn } from 'typeorm'; import User from './User'; import Video from './Video'; @Entity('comments') class Comment { // Podia ser "increment" @PrimaryGeneratedColumn('uuid') id: string; @Column() // Coluna qualquer text: string; ...
import { useEffect, useState } from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCodeBranch, faStar } from "@fortawesome/free-solid-svg-icons"; import { Map } from "immutable"; import { Repository, addRepository, getRepositories, removeRepository } from "../../api"; import Load...
import * as iam from '@aws-cdk/aws-iam'; import * as cdk from '@aws-cdk/core'; import { Construct } from 'constructs'; import { ILogGroup } from './log-group'; import { ILogSubscriptionDestination, LogSubscriptionDestinationConfig } from './subscription-filter'; /** * Properties for a CrossAccountDestination. * * @s...
// @ts-expect-error STRICTNESS_MIGRATION --- 🚨 Unsafe legacy code 🚨 Please delete this and fix any type errors if you have time 🙏 import { mount } from "enzyme" import { Button, Sans } from "palette" import React from "react" import { Text } from "react-native" import { ArtworkAttributionClassFAQ } from "../ArtworkA...
import HeartIcon from 'mdi-react/HeartIcon' import PuzzleIcon from 'mdi-react/PuzzleIcon' import { authGroup, otherGroup, siteAdminSidebarGroups } from '../../site-admin/sidebaritems' import { SiteAdminSideBarGroup, SiteAdminSideBarGroups } from '../../site-admin/SiteAdminSidebar' import { SHOW_BUSINESS_FEATURES } from...
import request from 'supertest'; import express, { Application } from 'express'; import morgan from 'morgan'; import http, { Server } from 'http'; import Router from '../../routes'; // import Server from '../../server' export const getClient = () => describe('Client test', () => { let app: Application, server: Se...
const prod = { apiURL: 'https://api-todo.rayyildiz.dev/api/query', swEnable: false, }; const dev = { apiURL: '/api/query', swEnable: false, }; const config = process.env.NODE_ENV === 'development' ? dev : prod; export const BASE_API = config.apiURL; export const ENABLE_SW = config.swEnable; export const LOCA...
import { Box } from '@rocket.chat/fuselage'; import React, { ComponentProps, FC } from 'react'; const Label: FC<ComponentProps<typeof Box>> = (props) => ( <Box fontScale='p2m' color='default' {...props} /> ); export default Label;
import csv from 'csv-parser'; import { Student } from './types'; export function csvBlobToStudents(file: Blob): Promise<Student[]> { return new Promise((resolve, reject) => { const reader = new FileReader(); reader.onabort = () => reject(new Error('file reading was aborted')); reader.onerror = () => reje...
import * as OrderCloudSDK from 'ordercloud-javascript-sdk' export async function getApiClient(clientID: string, clientAuth: string) { const client = await OrderCloudSDK.ApiClients.Get(clientID, { accessToken: clientAuth, requestType: 'Cleanup', }) if (client.AppName.includes('AutomationVendor_')) return client...
'use strict'; import { Disposable, TextEditor, TreeItem, TreeItemCollapsibleState, Uri, window } from 'vscode'; import { UriComparer } from '../../comparers'; import { GlyphChars } from '../../constants'; import { Container } from '../../container'; import { GitCommitish, GitUri } from '../../git/gitService'; import { ...
export = Shorthand; /** * @typedef {Object} ShortForConfig * @prop {String} type * @prop {String} name * @prop {String} rawParam * @prop {String=} value */ /** * Class representing an existing shorthand argument. * * @class */ declare class Shorthand { /** * @param {String|Object} config The configur...
import * as vscode from 'vscode'; import * as error from '../../error'; import * as node from '../node'; export interface IQuitCommandArguments extends node.ICommandArgs { bang?: boolean; range?: node.LineRange; quitAll?: boolean; } // // Implements :quit // http://vimdoc.sourceforge.net/htmldoc/editing.html...
import {SettingsManager} from "@launchmenu/core"; import {BrowserWindow} from "electron"; import {Observer} from "model-react"; import {settings} from "../settings"; /** * Sets up the synchronisation between the position setting, and the window position * @param settingsManager The settings manager to obtain the set...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** @jsx jsx */ import { jsx, css } from '@emotion/core'; import React, { useCallback, useState } from 'react'; import { DefaultButton, PrimaryButton, IButtonStyles } from 'office-ui-fabric-react/lib/Button'; import { Dialog, DialogType, IDialo...
import * as React from 'react'; import { renderWithTheme } from '../../testUtils/renderWithTheme'; import { Alert } from './index'; const testId = 'Alert'; test('it renders an Alert', async () => { const { findByTestId } = renderWithTheme(<Alert data-testid={testId} />); const alert = await findByTestId(testId);...
import React from 'react' function SvgBrowserChrome(props: React.SVGProps<SVGSVGElement>) { return ( <svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path fill="currentColor" fillRule="even...
import { booksAPI } from '../helpers/api'; interface BookStatusDTO { success: boolean; code: number; message?: string; } interface BookDataDTO { titulo: string; contribuicao: [ { nome: string; sobrenome: string; tipo_de_contribuicao: string; codigo_contribuicao: string; }, ...
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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 a...
import { ipcMain, app } from "electron"; import { mainFileStore } from "../mainFileStore"; import type { RegistrarSettings } from "../interfaces/registrarSettings"; import clientFactory from "../clients/clientFactory"; import { checkRegistrars } from "./checkRegistrars"; import { getAllDomains } from "./getAllDomains";...
import express from 'express'; import { createServer } from 'http'; import { Server, Socket } from 'socket.io'; import path from 'path'; import "./database"; import { routes } from './routes'; const app = express(); app.use(express.static(path.join(__dirname, "../public"))); app.set("views", path.join(__dirname, ".....
import { ensureFile, platformWriters } from "../../deps.ts"; import { anyError, config, context, introspect, outputErrors, renderTemplates, } from "../lib/mod.ts"; import { GlobalOptions } from "../options.ts"; import { errorCodes } from "../errors.ts"; import { prelude } from "./prelude.ts"; type DefaultO...
import { getCustomRepository } from "typeorm"; import { ComplimentsRepositories } from "../repositories/ComplimentsRepositories"; class ListUserSendComplimentsService { async execute(user_id: string) { const complimentsRepositories = getCustomRepository(ComplimentsRepositories); const compliments = awai...
/** @module config */ /** @hidden */ let fs = require('fs'); import { ConfigParams } from 'pip-services3-commons-node'; import { ConfigException } from 'pip-services3-commons-node' import { FileException } from 'pip-services3-commons-node' import { JsonConverter } from 'pip-services3-commons-node' import { FileConfi...
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { from, interval, Observable, of, throwError, zip } from 'rxjs'; import { fromPromise } from 'rxjs/internal-compatibility'; import { catchError, flatMap, map, share, shareReplay, ...
import { atom } from 'recoil'; export default atom({ key: 'transactions', default: [] });
import createLogger from '../utils/logger' import { api } from '../config' import fetch from 'node-fetch' const log = createLogger() export async function getElektronPlusJSON () { return await fetch(api.elektronplus) .then(async res => await res.json()) } export async function getLuckyNumberInfo () { const ...
import { $Values } from 'utility-types'; export interface Scale { domain: any[]; range: number[]; ticks: () => any[]; scale: (value: string | number) => number; pureScale: (value: any) => number; invert: (value: number) => any; invertWithStep: ( value: number, data: any[], ) => { value: any...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.13.10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do ...
import * as React from 'react' import classNames from 'classnames' import Icon from '../icon' import TimelineItem from './TimelineItem' import ConfigContext from '../config-provider/ConfigContext' import { getCompProps } from '../_utils' export interface TimelineProps { reverse?: boolean prefixCls?: string clas...
import { browser, element, by } from 'protractor'; export class NgTrainingPage { navigateTo() { return browser.get('/'); } getParagraphText() { return element(by.css('app-root h2')).getText(); } }
import * as Interval from '../interval'; export declare const getFreeTimeSlots: (availability: Interval.Interval[], unavailability: Interval.Interval[], targetRange: Interval.Interval, minimumInterval: number, options: Interval.IntervalOptions) => Interval.Interval[];
import { Body, Controller, Get, Param, Post, UseGuards } from '@nestjs/common'; import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { Auth } from '../auth/auth.decorator'; import { IsSiteAdminGuard } from '../auth/is-site-admin.guard'; import { SiteDataRangeDto } from '../time-series/dto/site-data-range.dto...
export default ['gmail.com', 'yahoo.com', 'posta.ge'];
export * from "./Send";
import React from "react"; import { Icon } from '@types'; const PatreonIcon: Icon = ({ fill = "white" }) => ( <svg width="14" height="14" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fillRule="evenodd" clipRule="evenodd" d="M512 194.8c0 101...
<TS language="he" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>יצירת כתובת חדשה</translation> </message> <message> <source>&amp;New</source> <translation>&amp;חדשה</translation> </message> <mess...
/* artifact generator: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi-js\dist\lib\artifacts\ts\module\gen\main.js package: wizzi-js@0.7.9 primary source IttfDocument: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi.pageforms\.wizzi\src\components\pageforms\DeletePackageProduction.tsx.ittf utc time: Sun, 25 Jul 202...
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack"; import * as __aws_sdk_types from "@aws-sdk/types"; import * as _stream from "stream"; import { DescribeConfigRuleEvaluationStatus } from "../model/operations/DescribeConfigRuleEvaluationStatus"; import { InputTypesUnion } from "../types/InputTypes...
import React from 'react'; import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; const theme = createMuiTheme(); theme.typography.h3 = { fontSize: '1.2rem', '@media (min-width:600px)': { fontSize: '1.5rem', }, [theme.breakpoints.up...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
import config from 'ember-get-config'; import $ from 'jquery'; const { OSF, authorizationType, } = config; /** * Retrieve the correct URL for OAuth 2.0 authentication in the OSF, including any additional configurable parameters */ function getOAuthUrl(nextUri?: string): string { // OAuth requires that r...
import { Args, Query, Resolver } from '@nestjs/graphql'; import { AttributesService } from './attributes.service'; import { Roles } from '../auth/roles.decorator'; import { Role } from '../auth/roles.enum'; import { UseFilters, UseGuards } from '@nestjs/common'; import { AllExceptionsFilter } from '../../utils/exceptio...
import * as React from 'react'; import ComponentExample from '../../../../components/ComponentDoc/ComponentExample'; import ExampleSection from '../../../../components/ComponentDoc/ExampleSection'; const Types = () => ( <ExampleSection title="Types"> <ComponentExample title="Default" description="A default List....
import { XBReadingDirection } from "xbreader/components/Reader"; export function isNumeric(n: any): n is number | string { return !isNaN(parseFloat(n)) && isFinite(n); } export function intVal(n: number | string): number { return typeof n === "number" ? n : parseInt(n, 10); } export function parseDirection(d...
import { AfterViewInit, Component, EventEmitter, Input, Output, ViewChild, ViewEncapsulation } from '@angular/core'; import { Form, FormBuilder, FormGroup } from '@angular/forms'; import { IFiltroPlanos } from '@app/models/search-planos'; import { EnumTipoPlano } from '@app/utils/enums'; import { NgbModal } from '@ng-b...
import * as typeInfo from "ts-type-info"; import {WrapperFactory} from "./WrapperFactory"; import {TransformOptions} from "./../TransformOptions"; import {Memoize} from "./../utils"; type ClassOrInterfaceType = typeInfo.InterfaceDefinition | typeInfo.ClassDefinition; type ClassOrInterfacePropertyType = typeInfo.Inter...
import { Component, Prop, Method } from '@stencil/core'; import * as L from 'leaflet'; // import { GisViewerProps } from '../../models/api'; @Component({ tag: 'gis-viewer', styleUrls: ['gis-viewer.scss', '../../../node_modules/leaflet/dist/leaflet.css'], }) export class GisViewer { private map: L.Map; ...
import { Schema } from 'mongoose'; export const ChatSchema = new Schema({ name: { type: String, }, members: [{ type: String, }], messages: [], });
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...
import React from 'react' import { DeleteThemes as originIcon } from '@icon-park/svg' import { IIconProps } from '@icon-park/svg/lib/runtime' import svg64 from 'svg64' const DeleteThemes = (props: IIconProps) => { const base64Data = svg64(originIcon(props)) //@ts-ignore next-line return <image src={base64D...
import React, { ReactElement, useEffect } from 'react'; import { Button, Collapse, Divider, Row } from 'antd'; import ImageSection from './image-section/ImageSection'; import TitleSection from './TitleSection'; import DescriptionSection from './DescriptionSection'; import BroadcastSection from './BroadcastSection'; imp...
// Copyright IBM Corp. 2017,2018. All Rights Reserved. // Node module: @loopback/testlab // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT // Type definitions for should.js v8.1.1 // Project: https://github.com/shouldjs/should.js // Definitions by: Alex Va...
import { FieldType, DataFrameDTO } from '../types/index'; import { DataFrameHelper } from './dataFrameHelper'; import { DataFrameView } from './dataFrameView'; import { DateTime } from './moment_wrapper'; interface MySpecialObject { time: DateTime; name: string; value: number; more: string; // MISSING } descr...
import axios, { AxiosRequestConfig } from 'axios' export const createAxios = (config?: AxiosRequestConfig) => { const instance = axios.create(config) return instance }
/* eslint-disable @next/next/no-img-element */ import React, { useMemo, useCallback, useState } from 'react' import styled from 'styled-components' import { Menu, Dropdown, message } from 'antd' import { CopyToClipboard } from 'react-copy-to-clipboard' import { ExclamationCircleOutlined, CopyOutlined, TagsOutlined, Smi...
import { REST as DiscordApi } from '@discordjs/rest'; import { Routes } from 'discord-api-types/v9'; import { Client, CommandInteraction } from 'discord.js'; import Command from '@/commands/Command'; export default class CommandManager { private readonly client: Client; private readonly discordApi: DiscordApi; ...
import { Command } from "mobx-firelink"; import { Layer } from "../Store/firebase/layers/@Layer"; import { UserMapInfoSet } from "../Store/firebase/userMapInfo/@UserMapInfo"; export declare class DeleteLayer extends Command<{ layerID: string; }, {}> { oldData: Layer; userMapInfoSets: UserMapInfoSet[]; V...
import { RouteRecordRaw } from 'vue-router'; export const routeDashGamesManageGameMusic: RouteRecordRaw = { name: 'dash.games.manage.game.music', path: 'music', component: () => import('./music.vue'), children: [ { path: '/dashboard/developer/games/soundtracks/:id(\\d+)/', redirect: { name: 'dash.games.man...
import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. // deno-lint-ignore-file no-explicit-any /// <reference no-default-lib="true" /> /// <reference lib="esnext" /> declare namespace Deno { declare namespace core { /** Send a JSON op to Rust, and synchronously receive the result. */ f...