text
stringlengths
3.3k
33k
/* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ import { ArrayJoin, ArrayPush, isArray, isNull, isUndefined, KEY__SCOPED_CSS } from '@lwc/shared'; import api...
import {filter, map, tap} from 'rxjs/operators'; import {Observable, Subscription} from 'rxjs'; import {AfterViewInit, ChangeDetectionStrategy, Component, OnDestroy} from '@angular/core'; import {FormControl, FormGroup, ValidationErrors, Validators} from '@angular/forms'; import {ResultTypes} from '../../result-type.m...
// Copyright (c) 2021-2022 <NAME> // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. import { compose, constant, id } from '@fp4ts/core'; import { Eq, Semigroup } from '@fp4ts/cats-kernel'; import { Option, Some, None } from '../option'; imp...
/** * Copyright 2018 Novage LLC. * * 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 agreed to...
import { Pot,Planet,SmallPot,BigPot,InputPin, OutputPin, OperationPot,TextArea } from "./index.js"; import { GeneralBigPot } from "./main_class.js"; // Goal //--function definition //fn five() -> i32 {5} //fn two() -> i32 {2} //fn add(a:i32, b:i32)-> (i32){a+b} //-- execute main function //fn main(){ // let a = fiv...
// the _on_white are precomputed colors so we can do less blending on mobile import {isDarkMode} from './dark-mode' import {isIOS} from '../constants/platform' export const colors = { black: 'rgba(0, 0, 0, 0.85)', black_05: 'rgba(0, 0, 0, 0.05)', black_05_on_white: 'rgb(242,242,242)', black_10: 'rgba(0, 0, 0, ...
<reponame>okuechen/ngx-speedgrid<filename>src/lib/classes/speedgrid-layout.ts import * as _ from 'lodash'; import { Subject } from 'rxjs'; import { SpeedgridBodyCell } from '../interfaces/speedgrid-body-cell'; import { SpeedgridColumn } from '../interfaces/speedgrid-column'; import { SpeedgridFooterCell } from '../int...
<filename>src/time.ts // eslint-disable eqeqeq /** * 将时间戳格式化 * @exports timeStampFormat * @param {number} timestamp * @param {string} fmt * @param {string} defaultval * @returns {string} 格式化后的日期字符串 * @example const stamp = new Date('2020-11-27 8:23:24').getTime(); const res = timeStampFormat(stamp, 'yyyy-MM...
import { EventEmitter } from 'events'; import * as grpc from 'grpc'; import { PutBuilder } from './builder'; import { ConnectionPool, Host } from './connection-pool'; import { castGrpcError, EtcdError, EtcdLeaseInvalidError, GRPCConnectFailedError } from './errors'; import * as RPC from './rpc'; import { NSApplicator ...
<filename>src/classes/github-api.ts import {createRandomValue} from '../utils/create-random-value'; export interface GithubApiSuccessfulResult<TValue> { readonly value: TValue; readonly eTag: string; } export interface GithubApiErrorResult { readonly message: string; readonly code?: number; } export type Git...
const assert = require('assert'); import {EventEmitter} from 'events'; import {ErrorCode} from '../error_code'; import {LoggerInstance} from '../lib/logger_util'; import {NodeStorage, NodeStorageOptions} from './node_storage'; import {BlockHeader, Block} from './block'; import {IHeaderStorage} from './header_storage';...
/** * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/********************************************************************************* MIT License Copyright (c) 2017 - <NAME> 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, in...
import * as React from 'react'; import { useState, useEffect, useRef, useCallback, useMemo } from 'react'; import assert from '../utils/assert'; import toCSSPx from '../utils/toCSSPx'; import { Solver, Variable, Strength, Constraint, Operator, } from '@ishikawa_masashi/cassowary'; import { useResizeObse...
<reponame>centrabot/centra<filename>src/commands/utility/autoreply.ts<gh_stars>1-10 import { VoltareClient, CommandContext } from 'voltare' import { GeneralCommand } from '../../util/abstracts' import { Collection } from 'mongodb' import { stripIndents } from 'common-tags' import { format } from 'date-fns' import parse...
<gh_stars>0 import fs from 'fs'; import path from 'path'; import { findHomeDir } from '@/config/findHomeDir'; import { Settings, ContainerEngine } from '@/config/settings'; import type { IntegrationManager } from '@/integrations/integrationManager'; import K3sHelper from '@/k8s-engine/k3sHelper'; import { State } from...
<filename>src/modules/fun.ts import PatchedModule from '../structures/PatchedModule' import QseClient from '../structures/client' import { command, listener } from '@pikostudio/command.ts' import { Message, MessageActionRow, MessageButton, MessageEmbed, } from 'discord.js' import NewProblem from '../models/newP...
/* Copyright(c) 2015 3NSoft Inc. * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at http://mozilla.org/MPL/2.0/. */ /** * Testing module lib/signing/sign.(ts/js) */ import nu = require('nodeunit'...
import { VNode, Fragment, Text } from './vnode' import { createAppAPI, CreateAppFunction } from './apiCreateApp' import { ShapeFlags } from '@mini-dev-vue3/shared' import { createComponentInstance, setupComponent } from './component' import { ReactiveEffect } from '@mini-dev-vue3/reactivity' import { queueJob, Schedule...
import * as v2 from "./v2"; type V2 = [number, number]; import Game from "./Game"; import Explosion from "./Explosion"; import Shot from "./Shot"; import Wing from "./Wing"; import CirclePop from "./CirclePop"; //import {bubble as bubbleSfx} from "./Sound" let dyingDuration = 0.5; let chargeTimes = { 4: 3, 8: 4.5 }; ...
<filename>packages/app/src/stores/ui.tsx import { useSWRConfig, SWRResponse, Key, Fetcher, } from 'swr'; import useSWRImmutable from 'swr/immutable'; import { Breakpoint, addBreakpointListener } from '@growi/ui'; import { RefObject } from 'react'; import { SidebarContentsType } from '~/interfaces/ui'; import logger...
import { Const } from "./Const"; import { GeonMath } from "./Math"; import { Matrix4 } from "./Matrix4"; import { Random } from "./Random"; import { Util } from "./Util"; import { Vector2 } from "./Vector2"; export class Vector3 { // #region constructors constructor(public x: number, public y: number,...
<reponame>wiseman/azure-mud import { unconference, cockatrice, dragon, naga, skeleton, tengu, yak } from './unconfRooms' import { warrior, mage, rogue, tourist, theater } from './theater' import { loungeDungeonRoomData } from './loungeDungeon' import { sfHub, robots, timeMachine, vendingMachine } from './sfHub' import...
/** * Copyright 2019 Google LLC. 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 * * Unless required by appli...
import FileSystem from "../fs/index.js" import type { Channel, ChannelOptions } from "./channel" import { Implementation } from "./implementation/types.js" import { InitOptions } from "../init/types.js" import * as check from "../common/type-checks.js" import { USERNAME_STORAGE_KEY, decodeCID } from "../common/index....
<reponame>Connect-HTL-Leonding/Connect<gh_stars>1-10 import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core'; import { ModalController, PopoverController } from '@ionic/angular'; import { ProfileService } from 'src/app/api/profile.service'; import { Room } from 'src/app/model/room'; import { Use...
import { animate, sequence, style, transition, trigger } from '@angular/animations'; import { AfterViewInit, Component, ViewChild } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/ta...
export interface IView { [key: string]: any } export interface ICharMap { [key: string]: string } export interface IFilterMap { [key: string]: (res: string) => string } export interface ISubTemplates { [key: string]: string } export interface ICacheMap { [key: string]: string } export interface IStencilOptions { ...
//Renderer //Manager for tasks view import {ipcRenderer} from "electron"; import {NetworkOperation, RequestType} from "../RequestTypes"; import {IViewController, ViewManager} from "../viewManager"; import {StringTags, ViewCommon} from "../ViewCommon"; import {DataActionItem, NetworkingFunctions} from "../NetworkingFun...
import useRoute from '@/Hooks/useRoute'; import useTypedPage from '@/Hooks/useTypedPage'; import ActionMessage from '@/Components/ActionMessage'; import ActionSection from '@/Components/ActionSection'; import Button from '@/Components/Button'; import ConfirmationModal from '@/Components/ConfirmationModal'; import Dange...
import * as React from 'react'; import { IDropdownProps, IDropdownOption, DropdownType } from './Dropdown.Props'; import { DirectionalHint } from '../../utilities/DirectionalHint'; import { Callout } from '../Callout/Callout'; import { Icon } from '../Icon/Icon'; import { Tooltip } from '../Tooltip/Tooltip'; import { K...
import { queryItems } from "aarts-dynamodb" import { BaseDynamoItemManager } from "aarts-item-manager/BaseItemManager" import { DynamoItem } from "aarts-dynamodb" import { AartsEvent, AartsPayload } from "aarts-types/interfaces"; import { AirportItem, CountryItem, FlightItem, AirplaneItem, CreateTouristByPublishingEven...
import Object3D = THREE.Object3D; import Geometry = THREE.Geometry; import LineBasicMaterial = THREE.LineBasicMaterial; import Vector3 = THREE.Vector3; import Line = THREE.Line; import Mesh = THREE.Mesh; import Texture = THREE.Texture; import MeshBasicMaterial = THREE.MeshBasicMaterial; import { ChartWidget, Chart, Co...
<gh_stars>0 /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/no-unused-vars */ import Command from "../../struct/Command"; import { Message, MessageActionRow, MessageButton, MessageEmbed, } from "d...
<reponame>esthrbrunnr/frontend-designsystem import { Delegate } from 'dom-delegate'; import extend from 'lodash/extend'; import uniqueId from 'lodash/uniqueId'; import namespace from './namespace'; import wrist from 'wrist'; class Module { public name: string; public ui: { element: any; }; public data: Obj...
// A configuration is an `Analytics` structure of its own. It will take // the YAML configuration and parse it into an `AnalyticsConfig`. This // will contain the literal definition from the configuration itself. // By running the `evaluate` on the `Analytics`, it will take the input, // including any queries, and ex...
import { t } from 'app/i18next-t'; import type { InventoryBucket, InventoryBuckets } from 'app/inventory/inventory-buckets'; import { DimItem } from 'app/inventory/item-types'; import { storesSelector } from 'app/inventory/selectors'; import { DimStore } from 'app/inventory/store-types'; import { getCurrentStore, getSt...
<filename>public/ts/src/island-info.ts import { mjElement, mjComponent, m, cc } from './mj.js'; import * as util from './util.js'; let islandID = util.getUrlParam('id'); const Alerts = util.CreateAlerts(); const Loading = util.CreateLoading(); const [infoBtn, infoMsg] = util.CreateInfoPair( '使用说明', m('div').text...
import {PlainRoute} from 'react-router/lib/Route'; import {RouteComponentProps} from 'react-router/lib/Router'; import React from 'react'; import {Client} from 'app/api'; import {MetricAction} from 'app/types/alerts'; import {Organization, Project, Config} from 'app/types'; import { addErrorMessage, addLoadingMess...
import {Http, Headers, ResponseContentType} from '@angular/http'; import {Injectable} from '@angular/core'; import 'rxjs'; import {IProgram} from '../interfaces/program.interface'; import {Observable} from 'rxjs/Observable'; import * as Path from "path"; import {Utility} from "../utility"; let app = require('electron'...
import { reaction, observable, computed } from "mobx" import { INode, isStateTreeNode, getStateTreeNode, IJsonPatch, IReversibleJsonPatch, splitJsonPath, splitPatch, IType, IDisposer, extend, noop, fail, registerEventHandler, addReadOnlyProp, walk, IMiddle...
import { ChildProcess, SpawnOptions, spawn, execSync } from 'child_process'; import { SHARE_ENV, Worker, WorkerOptions, parentPort } from 'worker_threads'; import { PathUtil } from './path'; import { StreamUtil } from './stream'; /** * Result of an execution */ export interface ExecutionResult { /** * Exit cod...
import UbeswapFactoryArtifact from "@ubeswap/core/build/metadata/UniswapV2Factory/artifact.json"; import UbeswapRouterArtifact from "@ubeswap/core/build/metadata/UniswapV2Router02/artifact.json"; import { deployContract } from "@ubeswap/solidity-create2-deployer"; import { expect } from "chai"; import { BigNumber, Cont...
<gh_stars>1-10 import { createSelector } from '@ngrx/store'; import { Episode, EpisodeDownloads, Podcast, PodcastDownloads, RouterParams, PodcastRanks, EpisodeRanks, PodcastTotals, EpisodeTotals, Rank, ExportData, GROUPTYPE_GEOCOUNTRY, GroupCharted, CHARTTYPE_EPISODES, CHARTTYPE_PODCAST, ...
import { OverlayEventDetail, PopoverOptions, Mode } from '@ionic/core' import { Component, EventEmitter, Prop, h, Host, Event, State, Method, Watch } from '@stencil/core'; import { DEFAULT_MAX, DEFAULT_MIN, DAY_NAMES, DAY_SHORT_NAMES, DEFAULT_CANCEL_LABEL, DEFAULT_OKAY_LABEL, DEFAULT_YEAR_LABEL, MONTH_NAMES, MONTH_SHOR...
import * as React from 'react' import { PropsWithChildren, useState } from 'react' import { CatalogServiceRow } from './CatalogServiceRow' import { CatalogExpertRow } from './CatalogExpertRow' import Fuse from 'fuse.js' import 'ka-table/style.scss' import '../styles/styles.scss' import * as catalogStyles from './Catal...
import di from 'a-di'; import alot from 'alot'; import { IBlockChainExplorer } from '@dequanto/BlockchainExplorer/IBlockChainExplorer'; import { Web3Client } from '@dequanto/clients/Web3Client'; import { IToken } from '@dequanto/models/IToken'; import { AmmV2ExchangeBase } from '../TokenExchanges/AmmV2ExchangeBase'; im...
import type { Lang } from "../.internal/Lang"; // SLOVENE const lang: Lang = { "AD": "Andora", "AE": "Združeni arabski emirati", "AF": "Afganistan", "AG": "Antigva in Barbuda", "AI": "Angvila", "AL": "Albanija", "AM": "Armenija", "AO": "Angola", "AQ": "Antarktika", "AR": "Argentina", "AS": "Ameriška Samoa",...
<reponame>danlobo/node-routeros import { Socket } from 'net'; import * as iconv from 'iconv-lite'; import * as debug from 'debug'; import { RosException } from '../RosException'; const info = debug('routeros-api:connector:receiver:info'); const error = debug('routeros-api:connector:receiver:error'); const nullBuffer =...
import * as vscode from 'vscode'; import * as open from 'open'; import * as fs from 'fs'; import * as path from 'path'; import * as os from 'os'; import { workspace, window, DecorationOptions, ExtensionContext, Range, TextEditorDecorationType, WorkspaceConfiguration, Position } from 'vscode'; import { Langua...
import { Defs } from '@nivo/core'; import { ResponsiveLine } from '@nivo/line'; import type { ComputedDatum, CustomLayer, Datum } from '@nivo/line'; import { Crosshair } from '@nivo/tooltip'; import { area, curveMonotoneX } from 'd3-shape'; import moment from 'moment'; import React, { useContext, useEffect, useMemo, us...
import classnames from 'classnames'; import React from 'react'; import Icon from '../Icon/Icon'; import { getClassNames } from './Table.classNames'; import TableRow from './TableRow'; import { t } from '../utils/i18n/i18n'; import { useId } from '@reach/auto-id'; export enum Language { en = 'en', nb = 'nb', nn =...
import React, { useEffect, useRef, useState } from 'react'; import Discovercourses from '../components/shared/discovercourses'; import profilepic from "../assets/profilepic.png" import "../styles/profile.css" import { UserInterface } from '../interfaces/userInterface'; function Profile(props:{openModal:(message:string...
import { Component } from "react"; import CloudatCostWalletLogin from "./CloudatCostWalletLogin"; import CloudatCocksLogin from "./CloudatCocksLogin"; import CloudatCocksClient from "../apis/cloudatcocks"; import CloudatCostWalletClient from "../apis/cloudatcostwallet"; import BootstrapSwitchButton from "bootstrap-swit...
import { arrMakeFlat, createSingleMeshBufTjs, EEntType, GIModel, idsBreak, TEntTypeIdx, TId, TPlane, TRay, Txy, Txyz, } from '@design-automation/mobius-sim'; import * as THREE from 'three'; import uscore from 'underscore'; import { checkIDs, ID } from '../../_check_ids'; imp...
import { fwd, not_at, any, one, not_one, str, opt, seq, sor, star, plus, range, implement, Expression, Grammar, Input} from '../src/index'; import { Tarjan } from '../src/tarjan'; const eol = seq([opt(one('\r')), one('\n')]); const eof = seq([not_at(any())]); const ws_char = one(' \t\r\n\f\v'); const ws = star(seq([no...
<filename>src/index.ts /*--------------------------------------------------------------------------------------------- * BrightScript 2D API Emulator (https://github.com/lvcabral/brs-emu) * * Copyright (c) 2019-2021 <NAME>. All Rights Reserved. * * Licensed under the MIT License. See LICENSE in the repository r...
<filename>src/games/advanced-tower-of-hanoi/src/index.ts const version = 1 const beatsPerMinute = 120 type State = { action: | { readonly type: `none` } | { readonly type: `rising` readonly piece: number readonly fromTower: number } | { readonly type: `hovering` readonly piece: numb...
import * as arg from 'arg'; import * as inquirer from 'inquirer'; import * as fs from 'fs'; import * as path from 'path'; import {greenBright, redBright} from 'chalk'; import {Config, setDefaultTableOptions, stringToTable} from './config'; import {MysqlError} from 'mysql'; import {Column, Table} from './types'; import ...
<filename>api/services/coh.ts import * as moment from 'moment' import { config } from '../../config' import { http } from '../lib/http' import { ERROR_NO_HEARING_IDENTIFIER, ERROR_UNABLE_TO_RELIST_HEARING } from '../lib/config/cohConstants' import * as log4jui from '../lib/log4jui' import { DateTimeObject } from '../l...
import * as h from 'mithril/hyperscript' import socket from '../../socket' import session, { Session } from '../../session' import loginModal from '../loginModal' import newGameForm from '../newGameForm' import gamesMenu from '../gamesMenu' import friendsPopup from '../friendsPopup' import challengeForm from '../chall...
/* Copyright (c) 2019, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the followin...
import { Toc, DemoRef, PageRef, ProjectRef, SectionRef } from '../src/toc' import { promises as fs } from 'fs' import * as fse from 'fs-extra' import * as path from 'path' import { trimChars } from 'tempo-std/lib/strings' import { markdown, markdownWithFM } from './utils/markdown' import { generateDocs } from './genera...
/// <reference path='../typings/node/node.d.ts' /> 'use strict'; import * as td from './td'; import * as assert from 'assert'; type JsonObject = td.JsonObject; type JsonBuilder = td.JsonBuilder; import * as azureTable from "./azure-table" import * as azureBlobStorage from "./azure-blob-storage" import * as cachedS...
import dotProp from 'dot-prop'; import moment from 'moment'; import React from 'react'; import styled from 'styled-components'; import * as Yup from 'yup'; import { TimeManagement } from '../../Icon'; import DateRangePicker from '../DatePicker'; import TextField from '../TextField/TextField'; import { mapValidationE...
import * as fs from 'fs-extra'; import * as path from 'path'; import BaseTypeRegistry from './BaseTypeRegistry'; import Context from './Context'; import LambdaExecutable from './LambdaExecutable'; import TypedParameterValue from './TypedParameterValue'; import Callable from './Callable'; import NativeCallable from './...
<reponame>amogus-api/driver-ts // Handles sessions, transactions and related stateful things import * as common from "./common"; import * as things from "./things"; import * as segment from "./segment"; import { FieldValue } from "./repr"; import { NotNull } from "./common"; export type ConfCallback<T extends things....
import { css } from '@emotion/core'; import Highlight, { defaultProps, Language } from 'prism-react-renderer'; import React from 'react'; import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'; import styled from '../../../utils/styled'; import EmotionStyled from '@emotion/styled'; import { motio...
import { ChangeEvent, useEffect, useMemo, useState } from 'react' import { shallowEqual, useDispatch, useSelector } from 'react-redux' import { useNavigate } from 'react-router-dom' import type { RootState } from 'src/app/rootReducer' import { Button } from 'src/components/buttons/Button' import { ButtonToggle } from '...
<filename>src/app/core/itemexportformat/item-export-format.service.ts<gh_stars>0 import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; import { Observable } from 'rxjs'; import { filter, map } from 'rxjs/operators'; import { NotificationsSe...
<reponame>htammen/n-odata /** * Created by helmut on 25.01.16. */ import commons = require('../../common/odata_common'); import constants = require('../../constants/odata_constants'); import lb_constants = require('../../constants/loopback_constants'); enum AssociationMulitplicity { ZERO_ONE = <any>'0..1', ONE_ONE...
import { Dispatch, SetStateAction } from 'react'; import { dictCB, dictDS, dictTopics, dictKeys, dictFL, dictWD } from 'src/utils/dict'; import { Item, ItemExtended } from 'src/utils/interfaces/architecture'; import { DictTopics, DictKeys } from 'src/utils/interfaces/dict'; import { Language } from 'src/utils/interface...
import { is, Duration, leadingZeros, month, weekday, Month, Weekday } from '@toba/tools'; import { DateLike, parseDateValue, zoneText, monthsApart, absFloor, copyAndRound, setUnitValue } from './tools'; /** * Convenience methods for working with dates and times, largely compa...
/* eslint-disable valid-jsdoc */ import Orbit, { KeyMap, RecordOperation, Schema, Source, SourceSettings, Query, QueryOrExpression, Pullable, pullable, Pushable, pushable, Transform, TransformOrOperations, coalesceRecordOperations, QueryNotAllowed, TransformNotAllowed, ClientError, ServerError...
<filename>web/src/lambda/shopify-sync.ts<gh_stars>1-10 require("dotenv").config(); import { APIGatewayEvent } from 'aws-lambda' import axios from 'axios' import sanityClient from '@sanity/client' import crypto from 'crypto' import _ from 'lodash' const jsondiffpatch = require('jsondiffpatch') import fetch from 'node...
<gh_stars>10-100 // IMPORTS // ================================================================================================ import { FiniteField } from "@guildofweavers/galois"; import { AirComponent as IComponent, ConstraintDescriptor, ProcedureName, InputRegisterMaster, ValueSequence } from "@guildofweavers/a...
import React, {useState} from 'react'; import { ConfigProps, Field, FieldArray, Form as ReduxForm, InjectedFormProps, reduxForm, SubmitHandler, } from 'redux-form'; import {Col, Modal, Row} from 'react-bootstrap'; import {connect} from "react-redux"; import {Action} from "redux"; import {Thu...
import MapView from 'esri/views/MapView'; import Graphic from 'esri/Graphic'; import { Extent } from 'esri/geometry'; const promiseUtils = require('esri/core/promiseUtils'); import { TreeDataVectorTileLoader } from "../dataprovider/TreeDataVectorTileLoader"; import { VectorTileAnalysisApp } from '../VectorTileAnalysi...
<filename>packages/connectivity/src/saga.ts import { put, call, takeEvery, all, takeLatest, select } from 'redux-saga/effects'; import { PayloadAction } from '@reduxjs/toolkit'; import { connectivityActions } from './reducer'; import { IConnectivityState, IPluginState, TPlatform, TPostDataSuccess } from './interfaces';...
import "./entity-content.scss"; // Router Route import { Route } from "react-router-dom"; import { useEffect, useRef } from "react"; const Content = () => { let ref = useRef<HTMLDivElement>(null); useEffect(() => { /* // scroll div on document scroll wheel event document.addEventListener( "whee...
<filename>src/compilerWrapper.ts import { basename, dirname, join } from 'path'; import { execSync } from 'child_process'; import { readFileSync, writeFileSync, unlinkSync, existsSync, rename } from 'fs'; import { oc } from 'ts-optchain'; import { ABIEntity, ABIEntityType } from './abi'; import { ContractDescription } ...
import { WorkerPool } from "gatsby-worker" import fs from "fs-extra" import nodePath from "path" import report from "gatsby-cli/lib/reporter" import { isCI } from "gatsby-core-utils" import type { Request } from "express" import { ROUTES_DIRECTORY } from "../../constants" import { startListener } from "../../bootstrap/...
<reponame>rpdg/fis3-parser-art-template4 /// import * as template from "art-template"; import * as fs from "fs"; import * as path from "path"; import * as deepmerge from "deepmerge"; const artRule = require("art-template/lib/compile/adapter/rule.art"); const nativeRule = require("art-template/lib/compile/adapter/rule....
import { HttpStatusCode, IHttp, ILogger, IRead, IHttpResponse, IModify, IPersistence, IPersistenceRead } from '@rocket.chat/apps-engine/definition/accessors'; import { ISlashCommand, ISlashCommandPreview, ISlashCommandPreviewItem, SlashCommandContext } from '@rocket.chat/apps-engine/definition/slashcommands'; import { ...
import * as path from 'path'; import * as fs from 'fs'; import * as _ from 'lodash'; import { Channel } from '../channel-class'; import { commonClient, ITwitchFollowedChannel, twitchClient, TWITCH_CHUNK_LIMIT, } from '../api-clients'; import { BaseStreamService, ProtocolsEnum, ServiceNamesEnum } from './_base'...
// Definition of Thing TD fields // This javascript definition must be kept in sync with the golang hub/lib/client/pkg/vocab definitions // Wost device types export const DeviceTypeAlarm = "alarm" // an alarm emitter export const DeviceTypeAVControl = "avControl" // Audio/Video controller export const D...
import Button from "@/components/Button/Button"; import Fallback from "@/components/Fallback/Fallback"; import FormControl from "@/components/FormControl/FormControl"; import IconButton from "@/components/IconButton/IconButton"; import Input from "@/components/Input/Input"; import TextArea from "@/components/TextArea/T...
/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { createProgramCache, ProgramCache } from './program' import { createShaderCache, ShaderCache } from './shader' import { GLRenderingContext, COMPAT_instanced_arrays, COMPAT_standar...
import * as React from 'react'; import cx from 'classnames'; import { AllHtmlEntities as Entities } from 'html-entities'; import Convert from 'ansi-to-html'; import {UnControlled as CodeMirror} from 'react-codemirror2' const CM = CodeMirror as any; import 'codemirror/lib/codemirror.css'; import 'codemirror/theme/mono...
/** * Class to Wrap the bitmovin player and take care of SMPTE <-> time conversions */ const bitmovin = window.bitmovin; class SmtpeController { /** * Wrapped instance of the bitmovin player */ private player: any; /** * Description of the loaded asset */ private assetDescription: AssetDescripti...
<reponame>unional/clibuilder import { findKey, reduceByKey } from 'type-plus' import type { cli } from './cli' import { parseArgv } from './parseArgv' import { isZodArray, isZodBoolean, isZodNumber, isZodOptional, isZodString, z } from './zod' namespace lookupCommand { export type Result = { command: cli.Command...
<gh_stars>0 /* Parsing of string rep of constituency parse trees. Inspired by NLTK: https://www.nltk.org/_modules/nltk/tree.html */ // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions const escapeRegExp = function escapeRegExp(string: string): string { return string.replace(/[....
// Type definitions for belvo 0.16 // Project: https://github.com/belvo-finance/belvo-js#readme // Definitions by: <NAME> <https://github.com/renan-at-belvo> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export default class Client { constructor(secretId: string, secretPassword: string...
/* eslint-disable @typescript-eslint/no-floating-promises */ /* eslint-disable @typescript-eslint/no-explicit-any */ import {ApplicationConfig} from '@loopback/core'; import {Payment, PaymentStatus, Subscription, SubscriptionStatus} from '@mollie/api-client'; import {SubscriptionData} from '@mollie/api-client/dist/type...
/** * @File : RayTracingManager.ts * @Author : dtysky (<EMAIL>) * @Link : dtysky.moe * @Date : 6/19/2021, 10:53:21 PM */ import { mat4, vec3 } from 'gl-matrix'; import { buildinEffects, buildinTextures } from '../buildin'; import ComputeUnit from '../core/ComputeUnit'; import Geometry from '../core/Geometry'...
/** Contains classes for controlling tracks in Reaper * @module */ import {TrackFx} from './Fx'; import {INotifyPropertyChanged, notify, notifyOnPropertyChanged} from './Notify'; import {BooleanMessageHandler, StringMessageHandler, IMessageHandler, IntegerMessageHandler, TrackFxMessageHandler, FloatMessageHandler} fr...
import { Key } from 'w3c-keys' import { dispatchInputEvent, hasTouch, setCustomSelectionFromInput, } from '@module/forms/common' import { MouseAndTouchType, InputType } from '@type/enum' import { FORM_CLASSES_DROPDOWN, FORM_EVENT_GLOBAL_CLICK, FORM_EVENT_INPUT_CHANGE, FORM_EVENT_MOBILE_CHANGE, FORM_E...
/** Copyright 2021 Forestry.io Holdings, 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 agreed to in writing,...
import React, { useState } from "react"; import SelectedFabric from "./SelectedFabric"; import ArrowImage from "../../images/ArrowShape.svg"; import "./index.scss"; import { ProductsListNew_categories, // ProductsListNew_categories_edges_node_products, // ProductsListNew_categories_edges_node_products_...
import classNames from 'classnames'; import { NextPage } from 'next'; import Head from 'next/head'; import React, { useCallback, useEffect, useState } from 'react'; import { ApiVideoSvg, IconCameraRecorderSvg, IconGithubSvg } from '../../assets/svg'; import { UploadTimeline } from '../../components/UploadTimeline...