text
stringlengths
3.08k
15.5k
<filename>src/ts/view/view_components/ViewRunner.ts<gh_stars>0 import { createElement, setAttributes } from '../../core/dom' import { debounce, convertRange } from '../../core/utils' import Event from '../../Event/Event' import { IEvent, IRunnerOptions } from '../ViewInterfaces' class ViewRunner { private $el: HTMLD...
import type { MouseEventHandler, VFC } from 'react' import type { MachineType, Worker as IWorker } from '@/types/cluster' import type { FormActions } from '@/types/utils' import { useState, useEffect } from 'react' import { useWatch } from 'react-hook-form' import classNames from 'classnames' import styles from '@/co...
import React, { useContext, useEffect, useMemo, useState } from "react"; import { Context } from "shared/Context"; import api from "shared/api"; import styled from "styled-components"; import Loading from "components/Loading"; import { hardcodedNames } from "shared/hardcodedNameDict"; import { PorterTemplate } from "s...
import { ForgeModMetadata } from '@xmcl/mod-parser' import { satisfies } from 'semver' import { Instance } from '../entities/instance' import { FabricResource, ForgeResource, isFabricResource, isForgeResource, isLiteloaderResource, LiteloaderResource } from '../entities/resource' import { Resource } from '../entities/r...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
import type { TextDocument } from 'vscode-languageserver-textdocument' import { Uri } from '../common/index.js' import type { UnlinkedSymbolTable } from '../symbol/index.js' import { SymbolTable } from '../symbol/index.js' import type { RootUriString } from './fileUtil.js' import { fileUtil } from './fileUtil.js' impor...
import * as React from 'react'; import { RouteComponentProps, withRouter, Redirect } from 'react-router-dom'; import { DispatchProps } from '../../redux/types'; import { SituasjonSkjemadata, Uttaksdatoer } from '../../types'; import { setDekningsgrad, setØnsketFordeling, navigerTilSide, lagForslagTilPla...
import { ViewType } from '@/../public/ExtensionHostType' import { IPCExtensionMessage, IPCNormalMessage, IPCRendererResponse } from '@/../public/IPCMessage' import util from 'util' declare const _cv_events: any; declare let _cv_command_args: any; declare let _cv_activate_view_name: string; declare let _cv_content_view...
export interface WithId { id: number; } export interface PineDeferred { __id: number; } export type NavigationResource<T = WithId> = [T] | PineDeferred; export type OptionalNavigationResource<T = WithId> = | [] | [T] | PineDeferred | null; export enum OsTypesEnum { DEFAULT = 'default', ESR = 'esr', } export...
import { Storage } from "@capacitor/storage"; import * as React from "react"; import { useContext, useEffect, useRef, useState } from "react"; import { useWindowSize } from "react-use"; import { Tooltip as ReactTooltip } from "react-tippy"; import { Bar, BarChart, Cell, ReferenceLine, Tooltip, XAxis, YAxis } from "rech...
import { useMemo, useState, useRef, HTMLAttributes, useCallback } from 'react' import { useTable, useFlexLayout, useResizeColumns, usePagination, useSortBy, Row, TableOptions, SortingRule } from 'react-table' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faChevronLeft, fa...
<filename>projects/netgrif-components-core/src/lib/admin/role-assignment/services/ProcessList.ts<gh_stars>1-10 import {LoadingEmitter} from '../../../utility/loading-emitter'; import {PetriNetReference} from '../../../resources/interface/petri-net-reference'; import {PetriNetResourceService} from '../../../resources/en...
<gh_stars>1-10 /* * Copyright 2019 <NAME> <<EMAIL>> * Copyright 2019 Institute of the Czech National Corpus, * Faculty of Arts, Charles 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...
import { resolve } from 'path' import { readdirSync, statSync, existsSync, lstatSync, rmdirSync, unlinkSync } from 'fs' import execa from 'execa' import chalk from 'chalk' import { prompt } from 'enquirer' import type { Options } from 'execa' import type { ParsedArgs } from 'minimist' type LogFn = () => void export ...
//===----------------------------------------------------------------------===// // // This source file is part of the VSCode Swift open source project // // Copyright (c) 2021 the VSCode Swift project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt fo...
import { AfterViewInit, Component, EventEmitter, Inject, OnInit, Output, ViewChild } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { MembersManagerService } from '@perun-web-apps/perun/openapi'; import { NotificatorService, StoreService } from '@perun-web-apps/pe...
import * as React from 'react'; import { Link } from 'react-router-dom'; import * as classNames from 'classnames'; import { sortable } from '@patternfly/react-table'; import { useTranslation } from 'react-i18next'; import { TFunction } from 'i18next'; import { AddHealthChecks, EditHealthChecks } from '@console/app/src...
import type { WriteRequest, DeleteItemInput } from '@aws-sdk/client-dynamodb'; import type { Facet } from './facet'; import { wait } from './wait'; import { Converter } from '@faceteer/converter'; import expressionBuilder from '@faceteer/expression-builder'; import { PK, SK } from './keys'; export interface DeleteOpti...
<filename>src/lib/id.ts /** * This file is the most rudimentary typed wrapper around ION's tools library. * Interfaces are not complete: they are fleshed out only as much as needed to * get to working functionality. */ import { constructCredential, CredentialWithProof, Proof } from './credential'; import type { DI...
<gh_stars>1-10 import * as JsStore from "jsstore"; import { hash, generateKeys, loadPubKey } from "./crypto"; import { UIElements } from "./ui"; import * as Db from "./db"; export enum IdentityTypes { Guest = "guest", CreateId = "createid", ReuseId = "reuseid", } export class Identity { name = ""; ...
import React, { CSSProperties, PropsWithChildren, ReactElement, useEffect, useRef } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { Form as FormSemanticUiReact, Radio, Ref, StrictFormProps } from 'semantic-ui-react'; import ErrorMessage from 'components/elements/ErrorMessage'; impor...
<reponame>dogtopus/willplus-j interface DataOffset { entry_name: string; will_flagbank: string; rio_goto: string; rio_call: string; rio_current_script: string; rio_pc: string; rio_sp: string; rio_stack_base: string; rio_event_id: string; rio_current_label: string; save_persis...
<gh_stars>0 import { Page } from './page' import { ResourceProvider } from './provider' /** * This is the primary templating class to build your templates. Subclass it and provide * at least a render function. * * During rendering, it will be "hydrated" - placed into a full page structure with its * parent and ch...
import React, { useEffect, useState } from 'react' import { useSetState } from 'use-setstate' import _ from 'lodash' import { serviceCreateTodoList, serviceUpdateTodoList } from '../../../../services' import { Button, Modal, Form, Input, Descriptions } from 'antd' import ModalBodyClass from '../../../../components/moda...
<reponame>ehtick/luma.gl<filename>modules/gltools/src/classic/texture.ts import {Device, TextureProps, assert} from '@luma.gl/api'; import GL from '@luma.gl/constants'; import {isWebGL2} from '@luma.gl/webgl'; import {getKey, getKeyValue} from '../webgl-utils/constants-to-keys'; import {WebGLDevice, WEBGLTexture} from ...
import { Collection, Guild, GuildChannel, GuildMember, Message, OverwriteResolvable, PermissionOverwrites, PermissionOverwriteOption, Snowflake, TextChannel, User, OverwriteType, Permissions, MessageOptions } from 'discord.js'; import Command from '../struct/Command'; import { GuildMessage } from './types'; impo...
<gh_stars>0 import * as amqp from "amqplib"; import * as bunyan from "bunyan"; import {createChildLogger} from "./childLogger"; import {asQueueNameConfig, IQueueNameConfig} from "./common"; import {IRabbitMqConnectionFactory} from "./connectionFactory"; export type IRabbitMqConsumerDisposer = () => Promise<any>; // E...
// NOTE this is mostly copy-pasta from rainbow-bridge cli upstream import { loggers } from "winston"; export const bridge = require("rainbow-bridge-lib/eth2near-relay"); // This is a crib of Eth2Near as it is in the CLI const path = require('path') const os = require('os') const exec = require('child_process').exec...
/** * praat.ts * manage praat special conversion options */ import * as fs from 'fs'; export let praat:any = {}; // for praat conversion to tei parameters import * as systemCall from '../systemcall/opensave'; praat.options = true; praat.params = ''; praat.relations = []; praat.restore = null; praat.names = {}; e...
import ApmRawQuery from './apmrawquery' export class ApmQuery { queryModel: ApmQueryModel; agentSegments: UiSegment[]; metricSegments: UiSegment[]; private rawQuery: ApmRawQuery; private uiSegmentSrv: any; constructor (uiSegmentSrv: any, queryModel?: ApmQueryModel) { thi...
import * as vscode from 'vscode'; import * as git from './git'; type DiffLines = (string|undefined)[]; type LineNumber = number; type DiffBlock = { pos: LineNumber; lines: DiffLines; }; function blockEnd(b: DiffBlock): LineNumber { return b.pos + b.lines.length; } function blockLen(b: DiffBlock): number { retur...
<gh_stars>0 import * as express from 'express' import {Server} from "ws"; import * as path from 'path'; // Product 包含了产品所包含的信息 export class Product { constructor( public id: number, public title: string, public price: number, public rating: number, public desc: string, ...
<reponame>n0th1ng-else/voice-to-text-bot<filename>src/telegram/bot.ts import { TgCallbackQuery, TgMessage, TgUpdate } from "./api/types"; import { Logger } from "../logger"; import { VoiceConverter } from "../recognition/types"; import { LabelId } from "../text/labels"; import { BotMessageModel, TelegramMessagePrefix }...
import { BitView, JsonDataAcccesor, jsonAny, jsonNumber, jsonUndefined, jsonBoolean, jsonString, jsonNull, JsonErrorResult } from "./autoproto"; import {left, right} from "./either"; const {jsonObj, jsonDict, jsonArray, jsonScalar, jsonTuple, unwrap, fillOut} = JsonDataAcccesor; function testJsonAccessor<V>(ac...
<gh_stars>0 import { bisectLeft } from 'd3-array'; import { scaleLinear, scaleLog, scaleSqrt, scaleUtc } from 'd3-scale'; import { DateTime } from 'luxon'; import { clamp } from '../commons'; import { ScaleContinuousType, ScaleType, Scale } from './scales'; const SCALES = { [ScaleType.Linear]: scaleLinear, [ScaleT...
/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { Unit, Structure } from 'mol-model/structure'; import { UnitsVisual } from '../representation'; import { VisualUpdateState } from '../../util'; import { PolymerTraceIterator, crea...
<reponame>jamemamjame/grafana import _ from 'lodash'; import moment from 'moment'; import Utils from './utils'; import WfQuery from './wf_query'; class WfQueryBuilder{ utils = new Utils(); options: any; MAX_DATA_POINTS = 500; constructor (options) { this.options = options; } build(p...
<reponame>francisconeves97/react-google-forms<gh_stars>1-10 import cheerio from 'cheerio' import fetch from 'isomorphic-unfetch' import { Column, CustomizableOption, Field, FieldsOrder, GoogleForm, Line, Option } from '../types/form' type FormData = { formData: object fbzx: string } const toBool = ...
<gh_stars>1-10 import * as vscode from "vscode"; import { TextEditor, Selection, StatusBarItem, StatusBarAlignment, OutputChannel, } from "vscode"; import { spawn, ChildProcess } from "child_process"; import { existsSync } from "fs"; import * as path from "path"; import * as util from "util"; enum FeedbackSt...
<gh_stars>1-10 import { IInputs, IOutputs } from "./generated/ManifestTypes"; import * as Dropzone from "dropzone"; import * as toastr from "toastr"; class AttachedFile implements ComponentFramework.FileObject { annotationId: string; fileContent: string; fileSize: number; fileName: string; mimeType: st...
import React, { Dispatch, FC, SetStateAction, useEffect, useState } from 'react' import { Button, StepsVertical, ButtonGroup, useSnack, elMt11, StepsVerticalStep, elMb11, FormLayout, InputWrapFull, elFadeIn, } from '@reapit/elements' import { DeepMap, FieldError, useForm, UseFormGetValues, UseFormRe...
/** * Array Expression Operators */ import { ReturnArrayExpression } from '../array'; import { NumberLikeExpression } from '../number'; /** Returns the element at the specified array index. */ export const $arrayElemAt = "$arrayElemAt"; /** Converts an array of key value pairs to a document. */ export const $array...
/* Copyright (c) 2018, <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 type { Plugin, ResolvedConfig } from 'vite'; import type { VitePluginImageMin } from './types'; import path from 'path'; import { normalizePath } from 'vite'; import { isNotFalse, isBoolean, isRegExp, isFunction } from './utils'; import chalk from 'chalk'; import { debug as Debug } from 'debug'; import imagemin...
<gh_stars>0 import { AllergyInfo } from '../type' export enum Allergy { EGG = 'EGG', FISH = 'FISH', GLUTEN = 'GLUTEN', LACTOSE = 'LACTOSE', PEANUT = 'PEANUT', SESAME = 'SESAME', SHELLFISH = 'SHELLFISH', SOY = 'SOY', TREE_NUT = 'TREE_NUT', WHEAT = 'WHEAT', } const allCharsGroupRev = '[^\\w\\u00A0-\...
<gh_stars>0 import uniqBy from 'lodash/uniqBy'; import flow from 'lodash/flow'; const path = require('path'); const exec3rdPartyLibraryRegexp = /~|node_modules|\(webpack\)/; function exec3rdPartyLibrary(moduleName: string): RegExpExecArray | null { return exec3rdPartyLibraryRegexp.exec(moduleName); } function for...
<reponame>antleblanc/nx<gh_stars>0 import { logger, normalizePath, ProjectGraph } from '@nrwl/devkit'; import { appRootPath } from '@nrwl/tao/src/utils/app-root'; import { spawn, spawnSync } from 'child_process'; import { ensureFileSync } from 'fs-extra'; import { join } from 'path'; import { dirSync } from 'tmp'; impo...
import React from "react"; import { Row, Table, Button, Collapse, Container } from "react-bootstrap"; import '../../i18n'; import { useTranslation } from 'react-i18next'; import CwaSpinner from "../spinner/spinner.component"; import GroupModal from "../modals/group-modal.component"; import ConfirmModal from "../modal...
import { RootState } from '../reducers'; import { config } from "../config"; import { Dispatch } from 'redux'; import { sha3 } from "web3-utils"; import { Web3Type } from "../actions/web3"; import { KECCAK_EMPTY_STRING, newBucketContract, SignRedeemResponse, signTypedDataWithKeycard, signTypedDataWithWeb3, } ...
/*! * Copyright 2011-2021 Unlok * https://www.unlok.ca * * Credits & Thanks: * https://www.unlok.ca/credits-thanks/ * * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide: * ...
<filename>src/GeoJSONModule/GeoJSONModule.ts<gh_stars>0 import * as PIXI from 'pixi.js'; import Vector2 from '@equinor/videx-vector2'; import { ModuleInterface } from '../ModuleInterface'; import { EventHandler, DefaultEventHandler } from '../EventHandler'; import { GeoJSONMultiPolygon, GeoJSONPolygon, GeoJSONLin...
/** * EpisodeOfCare Module */ import * as primitives from "@tangdrew/primitives"; import * as t from "io-ts"; import { CodeableConcept } from "./CodeableConcept"; import { Element } from "./Element"; import { Extension } from "./Extension"; import { Identifier } from "./Identifier"; import { Meta } from "./Meta"; im...
import { EquipmentSlot, Item } from 'oldschooljs/dist/meta/types'; import { addBanks, removeItemFromBank } from 'oldschooljs/dist/util'; import { GearTypes } from '../../gear'; import { GearSetup, GearStat } from '../../gear/types'; import { ItemBank } from '../../types'; import { removeBankFromBank } from '../../util...
import { Color } from '../color'; /** * Base type used for literal style parameters; can be a number literal or the output of an operator, * which in turns takes {@link ExpressionValue} arguments. * The following operators can be used: * * Reading operators: * * ['get', 'attributeName'] fetches a feature attrib...
<reponame>timothysparg/sdm-pack-k8s /* * Copyright © 2020 Atomist, 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 ...
import axios from 'axios'; import * as Fuse from 'fuse.js'; import { makeExecutableSchema } from 'graphql-tools'; // TODO: Split resolvers into another testable file export interface APIResponse { status: number; statusText: string; } export interface Announcement { date: string; heading: string; message: ...
<reponame>Jaykul/matrix-appservice-discord /* Copyright 2019 matrix-appservice-discord 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 require...
<filename>packages/decimal/__tests__/decimal.format.test.ts<gh_stars>10-100 import { Decimal, Part, PartsDecimalFormatter, StringDecimalFormatter } from '../src'; const parse = (s: string) => new Decimal(s); type FormatArgs = [string, string, number, number, number, number]; const format = (s: string, opts: FormatAr...
import * as React from 'react'; import { generatedata } from './lib/generatedata'; import * as ReactDOM from 'react-dom' import JqxButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxbuttons'; import JqxInput from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxinput'; import JqxDropDownList, { IDropDownListProps } from 'j...
<filename>dist/aias.d.ts /** MIT License * * Copyright (c) 2010 <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, including without limitation the rights * ...
<filename>src/app/layouts/admin-layout/home/home-add-edit/home-add-edit.component.ts<gh_stars>0 import { Component, ElementRef, OnInit, Renderer2, ViewChild } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Supplier } from '../../../../shared/models/supplier.model'; import { ...
import { useCallback, useEffect, useMemo } from 'react'; import useAsyncState from '../../hooks/use-async-state'; import type MagicCard from '../../types/magic-card'; import NOOP from '../../utils/noop'; import sortCards from './load-cards.util.sort-cards'; interface Props { readonly cardNamesSize: number; readonl...
<reponame>proclml/LogiSheets-web import { MAX_COUNT, SheetService } from './sheet' import { ScrollPosition } from './scroll' import { SETTINGS } from '../../common/settings' import { RenderCell, ViewRange } from './view_range' import { Backend } from './backend' import { DisplayRequest } from 'proto/message' import { R...
function fromJulian(j: any) { j = (+j) + (30.0 / (24 * 60 * 60)); var A: any = julianArray(j, true); return new Date(Date.UTC.apply(Date, A)); }; function julianArray(j: any, n: any) { var F = Math.floor; var j2, JA, a, b, c, d, e, f, g, h, z; j += 0.5; j2 = (j - F(j)) * 86400.0; z = F(j...
/* * Deepkit Framework * Copyright (C) 2021 Deepkit UG, <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the MIT License. * * You should have received a copy of the MIT License along with this program. */ import { arrayRemoveItem, ClassType, deletePathValu...
import React, {useMemo, useState} from "react"; import styled from "styled-components"; import Collapsible from "react-collapsible"; import AceEditor from "react-ace"; import "ace-builds/src-noconflict/mode-json"; import "ace-builds/src-noconflict/theme-github"; import Creatable from 'react-select/creatable'; import ...
import rootPath from 'app-root-path'; import fs from 'fs-extra'; import supertest from 'supertest'; import { InstanceType } from 'typegoose'; import { Mesh, MeshModel, ResourceStates } from '../routes/meshes/meshes.model'; import { FieldName, MeshStorage } from '../routes/meshes/meshes.storage'; import { GoogleAuthDat...
import { LovelaceCard, LovelaceCardEditor } from 'custom-card-helpers'; import { z } from 'zod'; declare global { interface HTMLElementTagNameMap { 'frigate-card-editor': LovelaceCardEditor; 'hui-error-card': LovelaceCard; } } /** * Internal types. */ export const FRIGATE_CARD_VIEWS = [ 'live', 'cl...
import { doSync, SyncEvents, SYNC_EVENTS, SyncEventMap, } from '@worldbrain/storex-sync' import { reconcileSyncLog } from '@worldbrain/storex-sync/lib/reconciliation' import { generateSyncPatterns } from 'src/util/tests/sync-patterns' import { BackgroundIntegrationTest, BackgroundIntegrationTest...
<filename>src/index.ts /* IMPORT */ import castArray = require ( 'lodash/castArray' ); import extend = require ( 'lodash/extend' ); import get = require ( 'lodash/get' ); import isFunction = require ( 'lodash/isFunction' ); import isUndefined = require ( 'lodash/isUndefined' ); import map = require ( 'lodash/map' ); ...
<filename>frontend/lib/hooks/useTasks.ts import { useState, useEffect, useRef, createContext, useContext } from 'react' import useSWR, { useSWRConfig } from 'swr' import { useSession } from "next-auth/react"; import apiFetch, { enableESToSync } from '../apiFetch'; import { NewTask, Task } from '../../types/interfaces/...
const exFolder = process.env.EXAMPLE_FOLDER; const caché = require("../asset/caché.ts"); const fUtil = require("../misc/file.ts"); const nodezip = require("node-zip"); const parse = require("./parse.ts"); const fs = require("fs"); module.exports = { /** * * @param {Buffer} movieZip * @param {string} nëwId * @...
<gh_stars>0 import StreamDeck from './lib/StreamDeck'; // don't change this to let or const, because we rely on var's hoisting // eslint-disable-next-line no-use-before-define, no-var var $localizedStrings = $localizedStrings || {}, REMOTESETTINGS = REMOTESETTINGS || {}, // eslint-disable-next-line no-unused-vars i...
<reponame>fchavant/lisk-sdk /* * Copyright © 2019 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be cop...
<gh_stars>10-100 import Redis from 'ioredis' export const sessionPrefix = 'presence:sessionId=' export const userPrefix = 'presence:userId=' export const locationPrefix = 'presence:locationId=' export const connectionPrefix = 'presence:connectionId=' export const connectionsKey = 'connections' /** * The fields in or...
<gh_stars>0 import * as path from 'path'; import * as os from 'os'; import {shell} from 'execa'; import * as fs from 'fs-extra'; import {connect} from 'hadouken-js-adapter'; import {CLIArguments} from '../types'; import {getProjectConfig} from './getProjectConfig'; import {getRootDirectory} from './getRootDirectory'...
import { LOCAL_DEBUG } from '@glimmer/local-debug-flags'; import { isSmallInt, encodeImmediate, encodeHandle, decodeHandle, constants, assert, decodeImmediate, isHandle, ImmediateConstants, } from '@glimmer/util'; import { Stack as WasmStack } from '@glimmer/low-level'; import { MachineRegister, $sp, ...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * 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 ri...
import invariant from "invariant"; import { BigNumber } from "bignumber.js"; import type { AccountRaw, DatasetTest } from "../../types"; import { FeeTooHigh, GasLessThanEstimate, NotEnoughBalance, } from "@ledgerhq/errors"; import { fromTransactionRaw } from "./transaction"; import type { Transaction } from "./ty...
import { Ancestor, ExtendedType, Location, Node, NodeEntry, Operation, Path, PathRef, Point, PointRef, Range, RangeRef, Span, Text } from '..'; import { Descendant } from './node'; import { Element } from './element'; export declare type BaseSelection = Range | null; export declare type Selection = ExtendedType<'Select...
import { GoogleService } from '@admin/google/google.service'; import { Unit } from '@dto/unit/unit.dto'; import { BookDocument, Book } from '@entities/book.entity'; import { BooksHelper } from '@helpers/books.helper'; import { BooksService } from '@libs/books/providers/books.service'; import { SentencesService } from '...
import { convertMarkdownToHtml } from '@bldr/markdown-to-html' import * as tex from '@bldr/tex-templates' import { Master } from '../master' /** * Collection all question text (without answers) to build the plain * text version. */ export function collectPlainText (text: string, questions: Question[]): string { ...
import { StateObject, StateDeclaration, Param, UIRouter, RawParams, StateOrName, TargetState, Transition, UIRouterPlugin, TransitionService, StateService, } from '@uirouter/core'; import { DSRDataStore, StateObjectDataStore } from './DSRDataStore'; import { _DSRConfig, DSRConfigObj, DSRFunction, ...
import fs from 'fs' import path from 'path' import express from 'express' import cheerio from 'cheerio' import log from '../utils/log' import { messages } from '../utils/status' import { isSetup } from '../utils/isSetup' import emojis from '../utils/emojis' import { domain } from '../utils/variables' import { Crate }...
import { Actions } from '@et/types/Actions' import { ICartItem, ICartItemWithKey, IChangeLicenseData, IChangeQty, ILocalStorageCart } from '@et/types/Cart' import { CartActionTypes } from '@et/types/Enums' import { IProduct, IProducts } from '@et/types/Products' import { IState } from '@et/types/State' import { checkCa...
/** * @author <NAME> http://drewnoakes.com */ export interface IPoint2 { x: number; y: number; } export interface IPoint3 { x: number; y: number; z: number; } export interface ILineSegment2 { p1: IPoint2; p2: IPoint2; } //export interface ISize //{ // width: number; // height: nu...
<filename>lib/common_utils.ts import { getOrderCypher, getWhereCypher, getPaginationCypher, getWith } from './graph_utils' import { getWhereSql } from './sql_utils' import { getIndexesPerNode, getNodesAndRelationships, queryKeys, id } from './query_utils' import { PropertyMap } from './types' function parseColumn(colu...
<filename>packages/biu/src/webpack/entries.ts /** @format */ import path from 'path'; import glob from '@fe6/biu-deps/compiled/fast-glob'; import HtmlWebpackPlugin from '@fe6/biu-deps-webpack/compiled/html-webpack-plugin'; import fetch from '@fe6/biu-deps/compiled/node-fetch'; import { isEmpty, isFunction } from '@fe6...
import * as React from 'react'; import { compose } from 'recompose'; import { Checkbox, Dropdown } from 'semantic-ui-react'; import { withTemplateHelpers, Mut, Toggle } from 'react-action-decorators'; import { withTranslations, i18nProps } from '@lib/i18n'; import { isEmpty } from '@lib/collection'; import * as toast f...
import { AbstractMediaFile } from './AbstractMediaFile'; import { MapLocation, SuggestedLocation } from './Location'; import { MediaFileType } from './MediaFileType'; import { MediaFile } from './MediaFile'; export class PictureMetadata extends AbstractMediaFile { public readonly fileType = MediaFileType.Picture; ...
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs'; import * as path from 'path'; import * as glob from 'glob'; import * as camelCase from 'camelcase'; import { main as ngc } from '@angular/compiler-cli/src/main'; import * as rollup from 'rollup'; import * as commonJs from 'rollup-plugin-commonjs';...
import React, { useContext, useMemo } from 'react'; import { _cs } from '@togglecorp/fujs'; import { TextInput, Button, } from '@togglecorp/toggle-ui'; import { PartialForm, PurgeNull, useForm, ObjectSchema, createSubmitHandler, removeNull, requiredCondition, idCondition, } from ...
import { Props, PopperElement, LifecycleHooks, Placement, Instance, } from '../types'; import { includes, closestCallback, useIfDefined, isMouseEvent, getOwnerDocument, } from '../utils'; import {getBasePlacement} from '../popper'; import {currentInput} from '../bindGlobalEventListeners'; export de...
// origin from: https://github.com/baseprime/dynamodb @20191106 // Copyright (c) 2016 <NAME> /** * `serialize.ts` * - serialize * * * @author <NAME> <<EMAIL>> * @date 2019-11-20 refactoring to ts via origin * * @copyright (C) lemoncloud.io 2019 - All Rights Reserved. */ import _ from 'lodash'; imp...
import { CaretRightOutlined, CaretDownOutlined, CloseOutlined, SaveOutlined, OrderedListOutlined, } from '@ant-design/icons' import { Button, Col, Row, Space, Tag, Tooltip } from 'antd' import { Subtitle } from 'lib/components/PageHeader' import React from 'react' import { useActions, useValues } fr...
import { AbbreviationNode, AbbreviationAttribute, Value, Abbreviation } from '@emmetio/abbreviation'; import { pushString, pushNewline, push, attrName, isBooleanAttribute, attrQuote } from '../../output-stream'; import { pushTokens, caret, splitByLines, isSnippet, shouldOutputAttribute } from './utils'; import walk, { ...
import { defineMessages } from 'react-intl'; const HIGH_REP_THRESHOLD = 85; export const MemberReputationMessages = defineMessages({ PageHeaderTitle: { id: 'memberReputationMessages.pageHeaderTitle', defaultMessage: '{displayName} - Reputation' }, PageHeaderDescription: { id: 'memberReputationMessag...
<reponame>chan4lk/aurelia<filename>packages/runtime/src/templating/custom-attribute.ts import { Class, Constructable, IContainer, Omit, PLATFORM, Registration, Writable } from '@aurelia/kernel'; import { BindingMode } from '../binding/binding-mode'; import { AttributeDefinition, customAttributeKey, customAttributeName,...
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------...
import React, { useEffect, useRef, useState } from 'react'; import { useQuery, gql } from "@apollo/client"; const BLOCK = gql` query { _meta{ block { number } } space(id:"Space") { minX maxX minY maxY } } ` const PLANETS = gql` query GetPlanets($bl...