text
stringlengths
3.3k
33k
<gh_stars>1-10 import * as vscode from "vscode"; import DeepCode from "../../interfaces/DeepCodeInterfaces"; import { getSubstring } from "./tsUtils"; import { DEEPCODE_SEVERITIES, IGNORE_ISSUE_BASE_COMMENT_TEXT, FILE_IGNORE_ISSUE_BASE_COMMENT_TEXT, IGNORE_ISSUE_REASON_TIP, ISSUE_ID_SPLITTER, ISSUE_MARKER_H...
import { Remote } from 'comlink' import { BehaviorSubject, combineLatest, from, Observable, Subscription } from 'rxjs' import { catchError, concatMap, distinctUntilChanged, map, tap } from 'rxjs/operators' import sourcegraph from 'sourcegraph' import { ConfiguredExtension, getScriptURLFromExtensionManifest, splitExten...
<reponame>jzthree/GraphBoard /** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The co...
<reponame>osiafv/Whatsapp_Bot<gh_stars>0 import axios, { AxiosRequestConfig, AxiosResponse } from 'axios' import { instaStalk, IgReelsDown, IgPostDown, IgTvDown } from '../../typings' import got from 'got' import cheerio, { CheerioAPI } from 'cheerio' import { config } from "dotenv" config({ path: './env' }) le...
import * as React from 'react'; import { useEffect, useState } from 'react'; import * as fp from 'lodash/fp'; import { validate } from 'validate.js'; import { BillingStatus, DataSet, DataSetExportRequest, DataSetRequest, KernelTypeEnum, PrePackagedConceptSetEnum, } from 'generated/fetch'; import { Button ...
import {ViewPlugin, ViewUpdate, EditorView} from "../../view" import {combineConfig, Annotation, CancellablePromise, EditorSelection, EditorState, Transaction, Extension, StateField, Facet, Precedence} from "../../state" import {keymap} from "../../keymap" import {Tooltip, tooltips, showTooltip} from "../../too...
import { ADDED_NODE_HIGHLIGHT_COLOR, DELETED_NODE_HIGHLIHT_COLOR, HIGHLIGHT_COLOR, } from './constants' import { Graph, Edge, Node, TableMetric, DataGraph, Table, ChromaticScale, Highlight, Highlights, GraphExtended, Column, ColumnMetric, } from './model' import { colorScheme, getChromat...
/* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ // This is the legacy converted command file. Ignoring code-coverage since this is generate...
<gh_stars>0 import * as path from 'path'; import * as http from 'http'; import * as crypto from 'crypto'; import * as React from 'react'; import * as ReactDOMServer from 'react-dom/server'; import * as ParsedUrl from 'url-parse'; import { IDistJson, IDistJsonBundle, IDistJsonBundleFile } from '@elements/runtime'; impor...
import { IBid, IBidMode, FirstPriceBidModeHandler, SecondPriceBidModeHandler, HardcoreBidModeHandler} from "./IBidMode"; import { Player } from './Player'; import { AuctionObject } from './AuctionObject'; import { IVisibilityMode, GoogleVisibilityHandler, StandardVisibilityHandler } from './IVisibilityMode' import {VIS...
import { Injectable } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { Observable, of } from 'rxjs'; import { DocumentApi, DocumentJobPayload } from '../../../shared/api/DocumentApi'; import { Document } from '../../../shared/model/Document'; import { UserService } from '../../../s...
import {deepClone, IMove} from '../common/common'; export enum lineDirection { HORIZONTAL, VERTICAL, } export enum player { ONE, TWO, } export const cellColor = { NONE: 'transparent', PLAYER_1: '#3B5998', PLAYER_2: '#DD6B4D', }; export interface Board { isGameOver: boolean; turn: player; horizont...
<gh_stars>0 import express from 'express'; import {Event, IEvent} from "../models/db/event"; import {Currency, toCurrency} from "../models/enums/currency"; import {TransactionRs, TxStatusRs} from '../models/response/transactions' import mongoose from "mongoose"; import dotenv from "dotenv"; import {Block, IBlock} from ...
<filename>src/app/business/block/cloud-file-share/modify/cloud-file-share-modify.component.ts import { Router,ActivatedRoute } from '@angular/router'; import { Component, OnInit, ViewContainerRef, ViewChild, Directive, ElementRef, HostBinding, HostListener, Input } from '@angular/core'; import { I18NService, Consts, Ms...
import {Clone, E, DelIfFalsy, CloneWithPrototypes} from "web-vcore/nm/js-vextensions.js"; import {Column, Pre, RowLR, Select, Text, Row, TextInput, CheckBox, Button} from "web-vcore/nm/react-vcomponents.js"; import {BaseComponentPlus} from "web-vcore/nm/react-vextensions.js"; import {BoxController, ShowMessageBox} from...
import { LitElement, html, css, property, query } from 'lit-element'; export class MyResizer extends LitElement { @property({ type: Number }) height: number = 100; @property({ type: Number, reflect: true }) width: number = 100; @property({type: Number}) rotation: number = 0; @property({t...
// https://on.cypress.io/custom-commands import 'cypress-wait-until'; import 'cypress-file-upload'; import { buildURLQuery } from '@/js/omegaup/ui'; import { CourseOptions, LoginOptions, ProblemOptions, RunOptions, Status, } from './types'; // Logins the user given a username and password Cypress.Commands.ad...
import { Octokit, RestEndpointMethodTypes } from '@octokit/rest'; import { readFileSync, promises, statSync } from 'fs'; import { basename } from 'path'; import { createHash } from 'crypto'; import { getConfiguration } from '../config'; import { ChangelogPolicy, GithubGlobalConfig, TargetConfig, } from '../schem...
/* eslint-disable new-cap */ import * as algosdk from 'algosdk' import * as AsymmetricHelpers from '../../crypto/asymmetricHelpers' import { Asymmetric, Ed25519Crypto } from '../../crypto' import { byteArrayToHexString, hexStringToByteArray } from '../../helpers' import { AlgoEncryptionOptions, AlgorandGeneratedAcc...
import * as React from "react" import {IBin, IDomain} from 'samples' import {Crossfilter} from 'crossfilter2' import {Dimension} from 'crossfilter2' import {Sample} from '../db/entities/Sample' import {numToColour} from '../utils/convert' // import {compareArrayToString} from '../utils/compare' import {Taxonomy} from '...
import React from "react"; import { Button, Modal, ModalBody, ModalFooter, ModalHeader, Label, Input, Select, } from "@windmill/react-ui"; import * as rService from "../../../services/reference"; import "react-datepicker/dist/react-datepicker.css"; import { removeDuplicate, uuidv4 } from "../../../utils...
<reponame>altasoul/NovaJS<filename>nova/src/nova_plugin/projectile_plugin.ts import { ProjectileWeaponData, WeaponData } from 'novadatainterface/WeaponData'; import { Emit, Entities, RunQueryFunction, UUID } from 'nova_ecs/arg_types'; import { Angle } from 'nova_ecs/datatypes/angle'; import { Position } from 'nova_ecs/...
<gh_stars>1-10 import { FabrixGeneric as Generic, FabrixModel } from '@fabrix/fabrix/dist/common' import { isEmpty, isArray, isObject } from 'lodash' import { GenericError } from '@fabrix/spool-errors/dist/errors' // import { ModelError } from '../../../errors' export function Point({ req = null, body = null, op...
import type { ISimulariumFile } from "./ISimulariumFile"; import type { Plot, TrajectoryFileInfo, VisDataFrame } from "./types"; import { compareTimes } from "../util"; const enum BlockTypeEnum { // type = 0 : spatial data block in JSON SPATIAL_DATA_JSON = 0, // type = 1 : trajectory info block in JSON ...
<reponame>skrzyszowski/identity-srv import { Logger } from 'winston'; import { OAuth2 } from 'oauth'; import { Call } from './interface'; import fetch from 'node-fetch'; import { UserService } from './service'; import { FilterOperation } from '@restorecommerce/resource-base-interface'; import { AuthZAction, Decision, S...
import ArrayHelper from './ArrayHelper'; import Vector2 from './Vector2'; // import Vertex from './Vertex'; import RingConnection from './RingConnection'; /** * A class representing a ring. * * @property {Number} id The id of this ring. * @property {Number[]} members An array containing the vertex ids of ...
<filename>src/common/utxobased/network/BlockBookAPI.ts<gh_stars>0 import { asArray, asBoolean, asMaybe, asNumber, asObject, asOptional, asString, Cleaner, uncleaner } from 'cleaners' import { EdgeTransaction } from 'edge-core-js/types' /** * Websocket Task */ export interface BlockbookTask<T> { m...
import * as React from "react"; import {Button} from "@material-ui/core"; import AddIcon from '@material-ui/icons/Add'; import DeleteIcon from '@material-ui/icons/Delete'; import {AnnotationInput, MaterialInput, MaterialSelect} from "./Components"; import {IVolumeMetadata} from "./LeftPanelWidget"; import Switch from "...
<reponame>steven619/photo_mananger_frontend_vue<filename>src/components/CommonTable/utils/base_dao.ts import request from '@/utils/request' import { getDictEnum } from './index' import { ApiResponse, PaginationType, TableColumn } from '../utils/types' import { isMobile } from '@/utils' import { formatJson, getPointValu...
let table = find("table"); let allCells: HTMLElement[] = []; let queries: Queries; window.onload = function () { find("#show-all").addEventListener("click", () => showAll()); textFilter.addEventListener("input", () => { queries.searchWord = textFilter.value; applyFilters(); }); findAll<HTMLInputElement>("input...
//All of this adapted from the bokeh bezier glyph import {FillVector, LineVector} from "@bokehjs/core/property_mixins" import * as visuals from "@bokehjs/core/visuals" import {Rect, FloatArray, ScreenArray} from "@bokehjs/core/types" import {SpatialIndex} from "@bokehjs/core/util/spatial" import {Context2d} from "@boke...
import React, { PureComponent, useContext, useRef } from 'react'; import moment from 'moment'; import { BUFFER_DAYS, DATA_CONTAINER_WIDTH } from '../../Const'; import { VIEW_MODE_DAY, VIEW_MODE_WEEK, VIEW_MODE_MONTH, VIEW_MODE_YEAR } from '../../Const'; import { Box } from 'grommet' import Config from '../../helpers/co...
import { templateFileToText } from '../../common/files' import { SchemaModel, SchemaModelMember, SchemaModelRelationType, SchemaModelType } from '../../common/types' import { firstToLower, getOnlyOneRelatedMember } from '../../common/utils' import logger from '../../log' import { BackendDirectory } from '../backendDire...
import type { Lang } from "../.internal/Lang"; // ICELANDIC const lang: Lang = { "AD": "Andorra", "AE": "Sameinuðu arabísku furstadæmin", "AF": "Afganistan", "AG": "Antígva og Barbúda", "AI": "Angvilla", "AL": "Albanía", "AM": "Armenía", "AO": "Angóla", "AQ": "Suðurskautslandið", "AR": "Argentína", "AS": "B...
/** * 圆形仪表盘 */ import React, { useEffect, useState } from 'react'; import './round-dashboard.less'; export interface DashboardProps { width: number; height: number; radius?: number; isOuterCicle?: boolean; scaleIsGradient?: boolean; centerCicleFilter?: string; // 起始角度。采用角度制 startAngle?: number; // ...
<gh_stars>10-100 import { Component, Input, NgModule, OnInit, OnDestroy } from '@angular/core'; // Components import { IconModule } from '../../icon/icon.component'; import { FhemComponentModule } from '../fhem-component.module'; // Services import { FhemService } from '../../../services/fhem.service'; // Interfaces i...
import type { ShelleyProtocolParams, TransactionOutput } from '@cardano-graphql/client-ts' import type { Address, BaseAddress, BigNum, Ed25519KeyHash, NativeScript, NetworkInfo, ScriptHash, Transaction, TransactionBuilder, TransactionHash, TransactionOutput as CardanoTransactionOutput, TransactionUnspentOutputs, Value ...
<reponame>2-IMMERSE/layout-service /** Copyright 2018 Cisco 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...
<reponame>JLChnToZ/piston-web-frontend<filename>src/utils/dnd-helper.ts import { interceptEvent } from './helpers'; export interface DraggingState<T extends Element> { t: T; x: number; y: number; minX?: number; maxX?: number; minY?: number; maxY?: number; } const enum Direction { none = 0x0, top = 0...
import { Component, OnInit, ViewEncapsulation, ViewChild,Inject, Input, HostListener, ChangeDetectorRef} from '@angular/core'; import { FormBuilder, FormGroup, FormControl, Validators, AbstractControl} from '@angular/forms'; import { FormsService } from './forms.service'; enum CheckBoxType { MODIFY_MARIE, MODIFY_CELEB...
import { runInAction } from "mobx" import { INode, getStateTreeNode, IStateTreeNode, isStateTreeNode, addMiddleware, IMiddlewareEvent, tryResolve, applyPatch, getType, applySnapshot, isRoot, isProtected, fail, isPlainObject, isPrimitive, IDisposer, is...
<reponame>w3cTim/nest-webstack<filename>admin/src/utils/iconfont.ts // 使用阿里的图标,下载阿里图标压缩包,将 iconfot.json 内容复制到 data 即可 // index.html 引入样式 //at.alicdn.com/t/font_1949907_usyu3f16zc.css const data = { id: '1949907', name: '彩标', font_family: 'iconfont', css_prefix_text: 'icon-', description: '', glyphs: [ ...
<gh_stars>1-10 import type { GlobalRootLinks, OctopusError, RootResource, SpaceRootLinks, SpaceRootResource } from "@octopusdeploy/message-contracts"; import ApiClient from "./apiClient"; import { ClientConfiguration, processConfiguration } from "./clientConfiguration"; import type { ClientErrorResponseDetails } from "...
import React, {Component} from 'react'; import Typist from 'react-typist'; import 'react-typist/dist/Typist.css'; import {Container, Col, Row} from 'react-bootstrap'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import Switch from '@material-ui/...
import { Component, Input, OnChanges, OnInit, SimpleChange, SimpleChanges, } from '@angular/core'; import { FlatTreeControl } from '@angular/cdk/tree'; import { MatTreeFlatDataSource, MatTreeFlattener, } from '@angular/material/tree'; import { SelectionModel } from '@angular/cdk/collections'; import { T...
import { html, LitElement, PropertyValues, TemplateResult, property, } from "lit-element"; import "../../../components/entity/op-state-label-badge"; // This one is for types import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element"; import { DevconViewConfig, DevconCardConfig, ...
import clsx from "clsx"; import React, { useCallback, useEffect, useRef, useState } from "react"; import { useDispatch } from "react-redux"; import screenfull from "screenfull"; import { CameraPTZ, getCameraPTZ } from "../../../Common/constants"; import { useFeedPTZ } from "../../../Common/hooks/useFeedPTZ"; import { ...
import assert from 'assert'; import chalk from 'chalk'; import dateformat from 'dateformat'; import { AppleDistributionCertificateFragment } from '../../../graphql/generated'; import Log, { learnMore } from '../../../log'; import { promptAsync } from '../../../prompts'; import { Account } from '../../../user/Account';...
<filename>src/ts/app/systems/ControlsSystem.ts import Vec3 from "../../math/Vec3"; import MathUtils from "../../math/MathUtils"; import Camera from "../../core/Camera"; import Vec2 from "../../math/Vec2"; import HeightProvider from "../world/HeightProvider"; import DoubleTouchHandler, {DoubleTouchMoveEvent} from "../co...
import { ICallRecord, ICallStart, callRecordType } from "../../collector/callrecord" import { Event, IEvent, Timing } from "../../collector/event" import { RxCollector } from "../../collector/ICollector" import { formatArguments, formatObject } from "../../collector/logger" import { IObservableTree, IObserverTree, IS...
import React, {useContext, useEffect, useState} from 'react'; import { Button, Chip, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, FilledInput, FormControl, FormHelperText, InputAdornment, OutlinedInput, Snackbar, TextField, } from '@material-ui/core'; impo...
let requestAnimationFrame$1 = (function() { if (typeof requestAnimationFrame === "function") { return requestAnimationFrame.bind(window); } return function(callback: (now: number)=>void ) { return setTimeout(function() { return callback(Date.now()); }, 1000 / 60); };...
<filename>src/sync/state.ts /* * Copyright 2021, 2022 Macquarie University * * 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 * * Unl...
/** * ## Notices * Copyright 2019 United States Government as represented by the Administrator * of the National Aeronautics and Space Administration. All Rights Reserved. * * ## Disclaimers * No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, * EITHER EXPRESSED, IMPLIED, ...
/* * @文件描述: * @公司: thundersdata * @作者: 廖军 * @Date: 2020-03-20 10:46:55 * @LastEditors: 廖军 * @LastEditTime: 2020-04-21 16:42:22 */ import * as Pont from 'pont-engine'; import { CodeGenerator, Interface, Property } from 'pont-engine'; export class FileStructures extends Pont.FileStructures { private myGenerator...
import React, { useState } from 'react' import FullscreenIcon from '@material-ui/icons/Fullscreen' import FullscreenExitIcon from '@material-ui/icons/FullscreenExit'; import Tooltip from '@material-ui/core/Tooltip'; import PhotoCameraIcon from '@material-ui/icons/PhotoCamera'; import { Network as NetworkType, IdType } ...
<filename>app/javascript/SignupModeration/queries.generated.ts /* eslint-disable */ import * as Types from '../graphqlTypes.generated'; import { RunCardRegistrationPolicyFieldsFragment, EventPageRunFieldsFragment } from '../EventsApp/EventPage/queries.generated'; import { gql } from '@apollo/client'; import { RunCardR...
import {ClipboardModule} from '@angular/cdk/clipboard'; import {APP_BASE_HREF, PlatformLocation} from '@angular/common'; import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http'; import {Injectable, NgModule} from '@angular/core'; import {FlexLayoutModule} from '@angular/flex-layout'; import {FormsModul...
import { useCollection } from "@awsui/collection-hooks"; import { Box, Button, Pagination, Table, TableProps, TextFilter } from "@awsui/components-react"; import StatusIndicator from "@awsui/components-react/status-indicator/internal"; import { MemoryHistory } from "history"; import React, { useMemo } from "react"; imp...
import Prando from 'prando'; import Voronoi, { ICell, IWCellDef, INCellDef, IPoint } from './Voronoi'; const NOOP = () => { // NOOP }; enum Status { Init = 'Initial generation complete.', Additional = 'Finished secondary pass.', Expand = 'Finished 2N+1 expansion of grid.', } type ManualDef<T> = Array<IPoint<...
<gh_stars>100-1000 import { getContractAddressesForChainOrThrow } from '@0x/contract-addresses'; import { constants } from '@0x/contracts-test-utils'; import { RPCSubprovider, SupportedProvider, Web3ProviderEngine } from '@0x/subproviders'; import { AbiEncoder, BigNumber, logUtils, providerUtils } from '@0x/utils'; imp...
import { html, render, TemplateResult } from 'lit-html'; import { get, translate } from 'lit-translate'; import { CloseableElement, EditorAction, Wizard, WizardAction, WizardInput, crossProduct, referencePath, } from '../../foundation.js'; import '@material/mwc-list/mwc-check-list-item'; import '@materi...
import React, { FC, useState, useCallback, useEffect } from "react"; import formatDate from "date-fns/format"; import { FormInput } from "../../../core"; import { usePageNavigation, usePhoneNumberState } from "../../../hooks"; import { PAGES } from "../"; import { ButtonsContainer } from "../subComponents/ButtonsContai...
declare module 'rn-indy-sdk' { const indy: Indy export default indy // NOTE: This interface is exactly the same as the Indy interface below in this file // Due to how typing works we can't use that one over here. They should be manually kept in sync (via copy paste!) export interface Indy { createWallet(...
<gh_stars>0 import { DebugConfiguration } from 'vscode'; import { Injectable, Optional, Autowired } from '@opensumi/di'; import { IWebSocket } from '@opensumi/ide-connection'; import { Event, Emitter, DisposableCollection, Disposable, IDisposable, Deferred, getDebugLogger, } from '@opensumi/ide-core-brow...
<reponame>aaronjlilla/HeadHunter /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable prefer-const */ /* eslint-disable promise/param-names */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable prettier/prettier */ /* eslint global-require: off, no-console: off, promise/always...
import React, {ChangeEvent, Component, Fragment} from 'react'; import {AppBar, Button, Chip, IconButton, InputBase, Slide, Toolbar} from '@material-ui/core'; import {Add as AddIcon, ArrowBack, Save} from '@material-ui/icons'; import styles from './MemoPage.module.sass'; import containerStyles from './Containers.module....
import * as React from "react"; import { styled, useTheme, Theme, CSSObject } from "@mui/material/styles"; import Box from "@mui/material/Box"; import MuiDrawer from "@mui/material/Drawer"; import MuiAppBar, { AppBarProps as MuiAppBarProps } from "@mui/material/AppBar"; import Toolbar from "@mui/material/Toolbar"; impo...
import { Getters, Mutations, Actions, Module, createMapper } from "vuex-smart-module"; import { KeyPair, TonClient, signerNone } from "@tonclient/core"; import TonContract from "@/ton/ton.contract"; import SafeMultisig from "@/contracts/SafeMultisigWallet"; import SetCodeMultisig from "@/contracts/SetCodeMultisigWallet...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import * as api from "@fluid-internal/client-api"; import { IFluidHandle } from "@fluidframework/core-interfaces"; import { IInk } from "@fluidframework/ink"; import { ISharedMap } from "@fluidframework/map"; import...
<filename>src/mb_enhanced_cover_art_uploads/maximise.ts // Interface to maxurl import type { GMxmlHttpRequest } from '@lib/compat'; import { LOGGER } from '@lib/logging/logger'; import { retryTimes } from '@lib/util/async'; import { DispatchMap } from '@lib/util/domain_dispatch'; import { urlBasename } from '@lib/util...
<reponame>ievgennaida/animator<gh_stars>1-10 import { Injectable } from "@angular/core"; import { AdornerContainer } from "../models/adorner"; import { AdornerPointType } from "../models/adorner-point-type"; import { AdornerTypeUtils } from "../models/adorner-type-utils"; import { HandleData } from "../models/handle-da...
import Ranking from "./ranking.js"; // debugger; class GameField extends HTMLElement { constructor() { super(); } } customElements.define("game-field", GameField, { extends: "div" }); const url: URL = new URL(location.href); const urlParam: URLSearchParams = url.searchParams; const gametype: string | null = urlPara...
import { createContext, ReactNode, useCallback, useContext, useEffect, useMemo, useState } from 'react'; import ReactDOM from 'react-dom'; import styled, { css, ThemeContext } from 'styled-components'; import { background, BackgroundProps, color, ColorProps, space, SpaceProps } from 'styled-sy...
import React, {useCallback, useEffect, useRef, useState} from 'react'; import {ActivityIndicator, KeyboardAvoidingView, ScrollView, StyleSheet, Text, TextInput, View} from 'react-native'; import {staticTheme, useTheme} from '../style/theming'; import {AppStackProps, AppRouting} from '../navigators/Routing'; import {Log...
export enum GoogleSignInType { // Return the information for use on this device. Local, // Specifies that offline access is requested. Requesting offline access requires that the server client ID be specified. // You don't need to use RequestIdToken when you use this option. When your server exchanges ...
<gh_stars>0 /* * Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved. * * 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 * * Unle...
import { htmlEscape, cssToStr } from '../util/html' import { createElement, removeElement } from '../util/dom-manip' import EventRenderer from '../component/renderers/EventRenderer' import DayGrid from './DayGrid' /* Event-rendering methods for the DayGrid class -------------------------------------------------------...
/* eslint-disable no-use-before-define */ /* eslint-disable @typescript-eslint/no-use-before-define */ import chalk from 'chalk'; import Joi from 'joi'; import { Prefab, PrefabComponent, ComponentStyleMap, Component, } from '../../types'; import { findDuplicates } from '../../utils/validation'; import { optio...
<reponame>digimuza/iterparse import { createWriteStream } from 'fs' import { ProgressReportOptions, WriteProgress, WriteProgressReportOptions } from "./helpers"; import { AsyncIterable } from "ix"; import { bufferRead } from "./buffer"; import * as Parser from 'fast-xml-parser' import { isString, purry } from "ts-prime...
<filename>libs/fuel-hydrant-system/src/sql/core/SQLWhereBase.ts import { IQEntityInternal, JSONLogicalOperation, Parameter, } from '@airport/air-control' import { DI } from '@airport/di' import { ColumnIndex, DbColumn, DbEntity, JSONBaseOperation, JSONClauseField, JSONClauseObject, JSONClauseObjectType, JSON...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *-----------------------------------------------...
// tslint:disable:variable-name // tslint:disable:max-line-length import { EntityForSave } from './base/entity-for-save'; import { WorkspaceService } from '../workspace.service'; import { TranslateService } from '@ngx-translate/core'; import { SettingsForClient } from '../dto/settings-for-client'; import { Collection, ...
import React, { useState, ComponentClass } from 'react' import styled from 'styled-components' import Label from '../ui/label' import withNotice, { AddNoticeProps } from '../../store/with-notice' const UploadInput = styled.input` font-size: 100px; position: absolute; left: 0; top: 0; opacity: 0; bottom: 0...
import { createPluginApiMixin } from './create-plugin-api-mixin'; class GlobalPluginA extends Phaser.Plugins.BasePlugin { constructor(pluginManager: Phaser.Plugins.PluginManager) { super(pluginManager); pluginManager.registerGameObject( 'globalA1', () => undefined, () => undefined ); ...
import {SMTPClient} from 'emailjs' import * as dotenv from 'dotenv' dotenv.config() /** * @description * Sends an email * @param {string} toName * @param {string} toEmail * @param {string} subject * @param {string} text * @returns void */ const sendEmail = ( toName: string, toEmail: string,...
import { Box } from '../common/box'; import { ImageWrapper } from '../common/image-wrapper'; import { Point } from '../common/point'; import { Readers } from '../reader/index'; import { Barcode, BarcodeReader, BarcodeReaderConfig, BarcodeReaderDeclaration, BarcodeReaderType } from '../reader/barcode-reader'; import { B...
import { Lock } from 'lock'; import type { Context } from 'probot'; import type { Config } from '../accountConfigs'; import { accountConfigs, defaultConfig } from '../accountConfigs'; import type { GroupLabels } from '../accountConfigs/types'; import { autoMergeIfPossible } from '../events/pr-handlers/actions/autoMerge...
import { InstallProtocolParams, InstallVirtualAppProtocolParams, Protocol, SetupProtocolParams, TakeActionProtocolParams, UninstallProtocolParams, UninstallVirtualAppProtocolParams, UpdateProtocolParams, WithdrawProtocolParams, } from "../machine"; import { NO_PROPOSED_APP_INSTANCE_FOR_APP_INSTANCE_ID...
import { IRegion, IHost, IJob, IUser } from './types'; import { Config } from './Config'; import { Store } from './Store'; import * as urllib from 'urllib'; import Promise = require('bluebird'); import formstream = require('formstream'); import { RemoteAdmin } from './RemoteAdmin'; import { HalcyonJWT } from './Auth'; ...
import { EventEmitter } from 'events'; import type { QueueObject } from 'async'; import { queue } from 'async'; import chalk from 'chalk'; import type { StateManager } from './StateManager'; import type { AlgoliaStore } from './algolia'; import { putDefaultSettings } from './algolia'; import { config } from './config...
import startCase from 'lodash-es/startCase'; import { parse } from 'qs'; import * as React from 'react'; import { Helmet } from 'react-helmet'; import { connect } from 'react-redux'; import { RouteComponentProps } from 'react-router'; import { AutoSizer } from 'react-virtualized/dist/es/AutoSizer'; import { CellMeasure...
<reponame>dtmarangoni/solar-art-gallery<gh_stars>0 import 'source-map-support/register'; import type { FromSchema } from 'json-schema-to-ts'; import { v4 as uuidv4 } from 'uuid'; import * as createHttpError from 'http-errors'; import { validatePaginationParams } from '@utils/dynamoDB'; import { rmUserIdFromArr } from ...
import { Terminal } from 'xterm'; import { runCliAndExit, IRunCliAndExitOptions, Cli, findCliNode, CLI_COMMAND, ICliBranch, ICliCommand, CliBranch, } from '@carnesen/cli'; import { CommandLineHistory } from './command-line-history'; import { LongestLeadingSubstring } from './longest-leading-substring'; import ...
<filename>packages/svelte/src/components/VimeDailymotion.ts /* eslint-disable */ /* tslint:disable */ // @ts-nocheck import { Components, JSX } from '@vime/core'; interface VimeDailymotionProps { /** The Dailymotion resource ID of the video to load. */ videoId?: Components.VimeDailymotion["videoId"] /** W...
import React, { useEffect, useState } from 'react'; import { Icon } from '@cognite/cogs.js'; import { getFlow, saveFlow, saveTenantFlow } from '@cognite/auth-utils'; import styled from 'styled-components/macro'; import { useSdk, useResetSdk } from 'store/sdk'; import { CogniteClient } from '@cognite/sdk'; import { ...
import { Button, EButtonLayout } from "@neufund/design-system"; import { ECountries } from "@neufund/shared-utils"; import { FormikProps, withFormik } from "formik"; import { defaultTo } from "lodash/fp"; import * as React from "react"; import { FormattedHTMLMessage, FormattedMessage } from "react-intl-phraseapp"; impo...
import { stringify } from 'querystring' import { get } from 'https' class LinguistError extends Error { public code: string public constructor(message: string, code = 'UNDEFINED') { super(message) this.code = code } } const languages = { auto: 'Automatic', af: 'Afrikaans', sq: 'Albanian', am: 'A...
<reponame>paulight7/angular-starter import { Component, OnInit, Input, ViewEncapsulation, Self, Optional, OnDestroy, ChangeDetectionStrategy } from '@angular/core'; import { NgControl, FormControl } from '@angular/forms'; import { untilDestroyed } from 'ngx-take-until-destroy'; import { isRequired } from '../../utils/i...
import { Time } from 'e'; import { KlasaUser } from 'klasa'; import { SlashCommandInteraction } from 'mahoji/dist/lib/structures/SlashCommandInteraction'; import { Bank } from 'oldschooljs'; import { client } from '../../..'; import { superCompostables } from '../../../lib/data/filterables'; import { ArdougneDiary, us...