text
stringlengths
3.08k
15.5k
/* globals afterEach */ import 'mocha'; import * as _ from 'lodash'; import { DocumentStore, ClientStore, SearchStore } from '../src/assets/ts/datastore'; import { InMemory, SynchronousInMemory } from '../src/shared/data_backend'; import Document from '../src/assets/ts/document'; import Session from '../src/assets/ts...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { Logger, SavedObjectsClientContract, SavedObject } from 'src/core/ser...
<reponame>andykuo1/gTove<filename>src/util/googleDriveUtils.ts import {FOLDER_TEMPLATE, GRID_NONE} from './constants'; import {PieceVisibilityEnum} from './scenarioUtils'; export interface RootDirAppProperties { rootFolder: string; dataVersion: string; } export interface TabletopFileAppProperties { gmFile...
import { Field, ID, ObjectType, Int } from 'type-graphql' import { UserGQL } from './User' import { PostGQL } from './Post' import { Prisma, PrismaClient, Image } from '@prisma/client' import { plainToInstance, ClassConstructor } from 'class-transformer' import { prismaClient } from './../../prisma/prismaClient' type ...
<gh_stars>0 // Libaries import flattenDeep from 'lodash/flattenDeep'; import cloneDeep from 'lodash/cloneDeep'; // Components import './editor_ctrl'; import coreModule from 'app/core/core_module'; // Utils & Services import { dedupAnnotations } from './events_processing'; // Types import { DashboardModel } from '../das...
'use strict'; //dts import {ISumanOpts, ISumanConfig} from 'suman-types/dts/global'; //polyfills const process = require('suman-browser-polyfills/modules/process'); const global = require('suman-browser-polyfills/modules/global'); //core import util = require('util'); import assert = require('assert'); import path =...
import * as React from 'react'; import styled from 'styled-components'; import { getPointResolution } from 'ol/proj'; import OlUnits from 'ol/proj/Units'; import { romapContext, IRomapContext } from '../RomapContext'; import { BaseTool, IBaseToolProps } from './BaseTool'; const Container = styled.div` top: 15px; l...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
export type LinkDocType = { _id: string; _rev: string; type: DataSourceType; resourceId: string; data: string | null; book: string | null; rx_model: 'link'; contentLength?: number | null; modifiedAt: string | null createdAt: string }; export enum DataSourceType { URI = "URI", DRIVE = "DRIVE", ...
import React, { ReactElement } from 'react'; import { ErrorInfo, MultiProduct } from '../interfaces'; import FormElementWrapper, { FormGroupWrapper } from './FormElementWrapper'; interface ProductRowProps { numberOfProductsToDisplay: string; errors: ErrorInfo[]; userInput: MultiProduct[]; } export const c...
<filename>src/component.ts "use strict"; import { updateEntityArchetype } from "./archetype.js"; import { VALID_COMPONENT_KEY } from "./constants.js"; import { Entity } from "./entity.js"; import { createDataStorage, DataStore, DataStoreInstance, isValidSchema, resetDataInStore, Schema, setDataInStore, }...
<filename>src/app/app.module.ts import { NgModule } from '@angular/core'; import { NgxsModule } from '@ngxs/store'; import { NgxsRouterPluginModule } from '@ngxs/router-plugin'; import { CommonModule } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import { HTTP_INTERCEPTORS } from '@a...
<filename>src/vue.ts // tslint:disable:no-bitwise import { h as _h, withDirectives } from '@vue/runtime-core'; import { markRaw } from '@vue/reactivity'; import { Vue as _Vue } from 'vue-class-component'; import { SyntheticEvent, VueRenderAttributes, } from './jsx'; import { Directive, resolveDirective, VNode ...
/* * Copyright 2017 Palantir Technologies, 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 * * Unless req...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ANALYZE_FOR_ENTRY_COMPONENTS, ChangeDetectionStrategy, ChangeDetectorRef, ComponentFactory, ComponentFactory...
#!/usr/bin/env node /** * Copyright 2020 Google 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 applic...
<gh_stars>1-10 export enum GerritChangeStatus { NEW = 'NEW', MERGED = 'MERGED', ABANDONED = 'ABANDONED', } interface GerritChangeLabel { approved?: { _account_id: number }; optional?: boolean; rejected?: { _account_id: number }; blocking?: boolean; } export interface GerritDetailedChangeLabel extends GerritCha...
<gh_stars>100-1000 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------...
/// <reference path="../../../src/node_modules/tns-platform-declarations/ios.d.ts" /> /// <reference path="../../../src/types/android/webviewinterface.d.ts" /> jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000; import * as nsApp from "@nativescript/core/application"; import * as fs from "@nativescript/core/file-system"; impor...
<filename>dist/leanplum.d.ts /* * Copyright 2020 Leanplum 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: * * https://www.apache.org/licenses/LICENS...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------...
import {t} from '@lingui/macro' import {Plural, Trans} from '@lingui/react' import {ActionLink} from 'components/ui/DbLink' import {CastEvent} from 'fflogs' import Module, {dependency} from 'parser/core/Module' import {Data} from 'parser/core/modules/Data' import PrecastStatus from 'parser/core/modules/PrecastStatus' i...
<gh_stars>1-10 class Char { public stream: string; public pos: number; constructor(stream: string, pos: number) { this.stream = stream; this.pos = pos; } get value() { return this.stream[this.pos]; } } class Token { public stream: string; public start: number; public end: number; constr...
import { BigNumber, Event } from 'ethers'; import database from '../../../database'; import { fetchAndValidateMetadata } from '../../../utils/metadata'; import { getNFTId, newNFT } from '../../../utils/nft'; import { isMarket } from './utils'; import _ from 'lodash'; import { createSaleEvent } from './event'; const { ...
/*! * @license * Copyright 2019 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. import { getUniqueName, isBrowser, isRecordMode, isPlaybackMode } from "./utils"; import { NiseRecorder, NockRecorder, BaseRecorder, setEnvironment...
import React, { useState } from "react"; import Modal from "@material-ui/core/Modal"; import { useStores } from "../../src/store"; import theme from "../theme"; import styled from "styled-components"; import Button from "../utils/button"; import { CircularProgress } from "@material-ui/core"; import TextField from "@mat...
import * as React from 'react'; import { BaseComponent, divProperties, getNativeProps, getId, KeyCodes, getDocument, createRef, classNamesFunction } from '../../Utilities'; import { IHoverCardProps, IHoverCardStyles, IHoverCardStyleProps, OpenCardMode, HoverCardType } from './HoverCard.types'; import { ExpandingCard }...
/* * Copyright 2020 Spotify AB * * 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 i...
/* * Copyright © 2021 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 required by applicable law or agreed...
import { CSize } from 'casual-types' import { useSize, CSizeContext, CIcon } from 'casual-ui-react' import { matKeyboardArrowDown } from '@quasar/extras/material-icons' import clsx from 'clsx' import React, { useEffect, useMemo, useRef, useState } from 'react' import CTag from '../basic/tag/CTag' import CDropdown...
<filename>src/themes/board_plain.ts /* * Copyright 2012-2020 Online-Go.com * * 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 ...
<filename>packages/cli/src/TestWebhooks.ts import * as express from 'express'; import { IResponseCallbackData, IWorkflowDb, NodeTypes, Push, ResponseHelper, WebhookHelpers, WorkflowHelpers, } from './'; import { ActiveWebhooks, } from 'n8n-core'; import { IWebhookData, IWorkflowExecuteAdditionalData, Webh...
<filename>frontend/src/app/app.component.ts import {Component, OnInit} from '@angular/core'; import {BehaviorSubject, combineLatest, EMPTY, forkJoin, Observable, of, timer} from 'rxjs'; import {catchError, filter, map, mergeMap, switchMap, tap} from 'rxjs/operators'; import {ApiService, State, Torrent, TorrentLabels, T...
<gh_stars>100-1000 import { MuSchema } from './schema/schema'; import { MuWriteStream, MuReadStream } from './stream'; import { MuSocket, MuData } from './socket/socket'; import { MuLogger } from './logger'; import { stableStringify } from './util/stringify'; export type MuAnySchema = MuSchema<any>; export type MuMess...
<filename>packages/common/src/utils/domUtils.ts import type { FormControl, Obj, FieldValue, ValidationFunction, Errors, } from '../types'; import { isFormControl, isFieldSetElement, isInputElement, isSelectElement, isTextAreaElement, } from './typeGuards'; import { _mergeWith } from './mergeWith'; i...
import { CircularProgressBar } from './../index'; import { Animation, ElementRenderMode} from './../index'; import { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core'; import { BaseElement, Smart } from './smart.element'; exp...
<reponame>linyows/sequelize-vault<filename>src/vault.ts import * as Crypto from 'crypto' import * as Path from 'path' import {Buffer} from 'buffer' import axios, {AxiosInstance, AxiosResponse} from 'axios' /* tslint:disable:no-require-imports no-var-requires */ const pkgJson = require('../package.json') /* tslint:enab...
/* eslint-disable import/prefer-default-export */ import { rest, graphql, compose, context } from 'msw'; import { parse } from 'qs'; import * as routes from './routes'; import axiPermissions from './data/axi-user-permissions.json'; import codes from './data/codes.json'; import custom from './data/custom.json'; import ...
<gh_stars>1-10 import * as ts from "typescript"; import * as lua from "../../LuaAST"; import { TransformationContext } from "../context"; import { unsupportedProperty } from "../utils/diagnostics"; import { addToNumericExpression, createNaN, getNumberLiteralValue } from "../utils/lua-ast"; import { LuaLibFeature, trans...
<filename>src/BlockInput.ts<gh_stars>10-100 import _Block from "./Block"; export interface Base { type: string; value: any; } export interface Number extends Base { type: "number"; value: number | string; } export interface String extends Base { type: "string"; value: string; } export interface Boolean ...
import { Channel } from "./structures/channel.ts" import { NewsChannel } from "./structures/newsChannel.ts" import { ChannelTypeData } from "./types/channel.ts" import { TextChannel } from "./structures/textChannel.ts" import { DictionaryType, NumberDictionaryType } from "./types/utils.ts" export const Constants = { ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import _ from 'lodash'; import { ResolverEvent, ResolverNode, ResolverN...
<reponame>judehunter/typescript-plugin-css-modules import fs from 'fs'; import path from 'path'; import dotenv from 'dotenv'; import postcss, { AcceptedPlugin } from 'postcss'; import postcssIcssSelectors from 'postcss-icss-selectors'; import postcssrc from 'postcss-load-config'; import filter from 'postcss-filter-plug...
import { ParserState, Context } from '../common'; import { Token, descKeywordTable } from '../token'; import { Chars } from '../chars'; import { advanceChar, consumeMultiUnitCodePoint, fromCodePoint, toHex } from './'; import { CharTypes, CharFlags, isIdentifierPart, isIdentifierStart, isIdPart } from './charClassifier...
import styled from 'styled-components'; import { SC as ExpansionPanelSC } from '@fellesdatakatalog/expansion-panel'; import AuthoritativeSVG from '../../../../../images/authoritative.inline.svg'; import CheckSVG from '../../../../../images/icon-checked-sm.inline.svg'; import CrossSVG from '../../../../../images/icon-...
<reponame>namlongsoft/react-native-big-calendar import dayjs from 'dayjs' import React from 'react' import { OVERLAP_PADDING } from './commonStyles' import { ICalendarEvent, Mode, WeekNum } from './interfaces' import { Palette } from './theme/ThemeInterface' export const typedMemo: <T>(c: T) => T = React.memo export...
import isNull from 'lodash/isNull'; import isUndefined from 'lodash/isUndefined'; import React, { useContext, useEffect, useState } from 'react'; import { FaUser } from 'react-icons/fa'; import { IoMdLogOut } from 'react-icons/io'; import { MdBusiness, MdClose } from 'react-icons/md'; import API from '../../../../../....
<filename>src/y-monaco.ts<gh_stars>1-10 // https://github.com/yjs/y-monaco // The MIT License (MIT) // Copyright (c) 2019 <NAME> <<EMAIL>>. // see https://github.com/yjs/y-monaco/blob/master/LICENSE import * as Y from "yjs" import { monaco } from "./monaco" import { editor, IDisposable, SelectionDirection } from "mona...
import * as THREE from "three"; import { Game } from "../Game"; import { GameTime } from "../GameTime"; import { DEBUG_GOD_MODE } from "../Globals"; import { PlayerControls } from "../PlayerControls"; import { GameEntity } from "./base/GameEntity"; import { HealthIndicator } from "./HealthIndicator"; import { PlayerPro...
import createDebug from 'debug'; import { inspect } from 'util'; import { Readable } from 'stream'; import VK from '../vk'; import { CollectError, apiErrors, collectErrors } from '../errors'; import Request from '../api/request'; import getExecuteCode from './execute-code'; const debug = createDebug('vk-io:collect:...
import { Animation } from './animation' import { Counter } from './counter' import { Direction } from './direction' import { DragTracker } from './dragTracker' import { EventEmitter } from './eventEmitter' import { Axis } from './axis' import { EventStore } from './eventStore' import { Limit } from './limit' import { S...
import * as React from 'react'; import withStyles from '@material-ui/core/styles/withStyles'; import {WithStyles} from '@material-ui/core'; import {connect} from 'react-redux'; import PlayArrowIcon from '@material-ui/icons//PlayArrow'; import PauseIcon from '@material-ui/icons//Pause'; import SkipNextIcon from '@materi...
import * as metrics from './metrics' import * as path from 'path' import * as settings from './settings' import promClient from 'prom-client' import { addTags, createTracer, logAndTraceCall, TracingContext } from '../shared/tracing' import { createLogger } from '../shared/logging' import { createPostgresConnection } fr...
import React, { useContext } from 'react' import { Text, Box, AccordionItem } from '@island.is/island-ui/core' import { Case, CaseAppealDecision, CaseDecision, CaseType, } from '@island.is/judicial-system/types' import { getConclusion, getAppealDecisionText, } from '@island.is/judicial-system-web/src/utils/...
<filename>smart-contract/hardhat.config.ts import fs from 'fs'; import * as dotenv from 'dotenv'; import { HardhatUserConfig, task } from 'hardhat/config'; import { MerkleTree } from 'merkletreejs'; import keccak256 from 'keccak256'; import '@nomiclabs/hardhat-etherscan'; import '@nomiclabs/hardhat-waffle'; import '@ty...
<filename>src/components/input/native-input.ts import { Directive, ElementRef, EventEmitter, HostListener, Output, Renderer } from '@angular/core'; import { NgControl } from '@angular/forms'; import { Config } from '../../config/config'; import { CSS, hasFocus } from '../../util/dom'; /** * @private */ @Directive...
<reponame>WatDuhHekBro/CrossExchange<filename>src/lib.ts import FileManager from "./modules/storage"; /** * Splits a command by spaces while accounting for quotes which capture string arguments. * - `\"` = `"` * - `\\` = `\` */ export function parseArgs(line: string): string[] { let result = []; let select...
export type Element = 'fire' | 'ice' | 'earth' | 'light' | 'dark' | 'wind'; export type Status = | 'disarm' | 'immobilize' | 'invisible' | 'muddle' | 'poison' | 'strengthen' | 'stun' | 'wound'; // attack modifier card export type AttackModifierCardType = // status | 'status(disarm)/-/rolling' |...
import React, { SyntheticEvent } from 'react'; import { FrameData, QuestionPage, Options, OptionActions } from "./LevelObjects"; import { Button, Table, Row, Col } from "reactstrap"; interface GamePageState { isWaiting: boolean; mypoints: number; theirPoints:number; messageOut: string; ite...
<filename>src/lib/script/alea.ts<gh_stars>0 // ----------------------------------------------------- // Alea // // A port of an algorithm by <NAME> <<EMAIL>>, 2010 // http://baagoe.com/en/RandomMusings/javascript/ // // Original work is under MIT license - // // Copyright (C) 2010 by <NAME> <<EMAIL>> // // Permi...
<reponame>drmartin1998/aos-reminders import KOArmy from 'army/kharadron_overlords' import { uniq } from 'lodash' import { TSupportedFaction } from 'meta/factions' import { AZYR, IImportedArmy } from 'types/import' import { TBattleRealms } from 'types/realmscapes' import { importErrorChecker } from 'utils/import' import...
<filename>packages/taquito-michelson-encoder/src/schema/storage.ts<gh_stars>0 import { MichelsonV1Expression, MichelsonV1ExpressionExtended, ScriptResponse } from '@taquito/rpc'; import { BigMapToken } from '../tokens/bigmap'; import { createToken } from '../tokens/createToken'; import { OrToken } from '../tokens/or'; ...
import { BasicDependencyRule } from "./BasicDependencyRule"; import { Project } from "../../model"; import * as fs from 'fs'; import request from '../../../../../../request'; import { ExternalizeEntry } from "../"; import { VisitationResult } from '../VisitationResult'; type ModuleType = 'CommonJs' | 'UMD' | 'AMD' | '...
/** @license * Copyright 2016 - present The Material Motion Authors. 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/LI...
// spell-checker:ignore (names) Deno // spell-checker:ignore (utils) dprint git import { $args, $path, assert, assertEquals, equal } from './$deps.ts'; import { haveDPrint, isWinOS, projectPath, test } from './$shared.ts'; const args = $args.argsSync; const excludeDirsRxs = ['[_.#$]?build', 'fixtures', '[.]git', '[....
import { Anon, Generic1, Generic1Type, Generic2, Generic2Type, Type1, Type2 } from '../Generic'; import { identity } from '../helpers/identity'; import { Foldable_1, Foldable_2 } from './Foldable'; import { Functor_1, Functor_2 } from './Functor'; import { Semigroup_0, Semigroup_1 } from './Semigroup'; export interfac...
import { Injectable } from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {Observable, of} from 'rxjs'; import {catchError, map} from 'rxjs/operators'; import {environment} from '../environments/environment'; import {SigningService} from './signing.service'; import {AccountService} from './acc...
import * as React from 'react' import Draggable from 'react-draggable' import { ObjectOfBooleans, ObjectOfNumbers, } from './Utilities' import * as ReactDOM from 'react-dom' import { List } from 'react-virtualized' import * as moment from 'moment' interface IProps { name: string attrValues: ObjectOfNumbers ...
import React, { useContext, useEffect, useState } from "react"; import Button, { ButtonAsButtonProps } from "./Button"; import { ThemeContext } from "./context/ThemeContext"; const PrevIcon: React.FC = function PrevIcon(props) { return ( <svg {...props} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20"...
import BinarySearch from '../utils/binary-search'; import { Fragment } from '../loader/fragment'; /** * Returns first fragment whose endPdt value exceeds the given PDT. * @param {Array<Fragment>} fragments - The array of candidate fragments * @param {number|null} [PDTValue = null] - The PDT value which must be exce...
<filename>FightTimeLine/ClientApp/src/core/SerializeController.ts import * as Models from "./Models"; import { Utils } from "./Utils"; import * as Holders from "./Holders"; import { JobMap, BossAttackMap } from "./Maps"; import { ExportData } from "./ExportModels"; export class SerializeController { constructor(pri...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React from 'react'; import { i18n } from '@kbn/i18n'; import { Formatt...
import { Component, Element, Event, EventEmitter, Method, Prop, State, Watch, h } from '@stencil/core'; const toastStack = Object.assign(document.createElement('div'), { className: 'sl-toast-stack' }); /** * @since 2.0 * @status stable * * @slot - The alert's content. * @slot icon - An icon to show in the alert....
import Highlight, { defaultProps } from 'prism-react-renderer' import dracula from 'prism-react-renderer/themes/dracula' import github from 'prism-react-renderer/themes/github' import duotoneDark from 'prism-react-renderer/themes/duotoneDark' import palenight from 'prism-react-renderer/themes/palenight' import okaidia ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; i...
/** Module to define plugin configuration and react on change. */ import { Logger } from './logger'; const CompositeDisposable = require('atom').CompositeDisposable; const logger:Logger = Logger.getInstance(); declare var atom; /** Plugin runtime configuration. What is really set by the user when Atom is working */...
<gh_stars>0 import { MessageActionRow, MessageSelectMenu } from 'discord.js'; import type { Message, TextChannel } from 'discord.js'; import type { Client } from 'discord.js'; import { POINT_LIMITER_IN_MINUTES, } from '../../env'; import HelpfulRoleMember from '../../helpful_role/db_model'; import pointHandler from ...
<gh_stars>1-10 import 'pdfjs-dist/es5/build/pdf.js'; import fs from 'fs' import path from 'path' import { promisify } from 'util' import assert from 'assert' import { getDocument, OPS, PDFDocumentProxy, PDFImage, PDFMetadata, PDFObjects, PDFPageProxy, Util } from 'pdfjs-dist' import TextItem from './model/TextItem'; ...
import { args_get, args_sizes_get, environ_get, environ_sizes_get, proc_exit, fd_write, fd_close, fd_read, clock_time_get, clockid, errnoToString, fd, tempbuf } from "bindings/wasi"; import { E_INDEXOUTOFRANGE } from "util/error"; export namespace process { // @ts-ignore: decorator @l...
import { Observable } from 'rxjs'; import { Component, OnInit, Injectable, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, ChangeDetectionStrategy, Optional, } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { FileUploader } from 'n...
import { Component, createMemo, createSignal, Index, Match, Show, Switch } from 'solid-js'; import { DeepReadonly } from 'solid-js/store'; import { ChooseMissionType } from './ChooseMissionType'; import { MissionGiveItemForm } from './MissionGiveItemForm'; import { MissionKillForm } from './MissionKillForm'; import { ...
import path from 'path'; // eslint-disable-next-line import/no-extraneous-dependencies import webpack from 'webpack'; import { validateServerEntry, createServerEntries, } from 'yoshi-common/webpack-utils'; // @ts-ignore import { StatsWriterPlugin } from 'webpack-stats-plugin'; import { createBaseWebpackConfig } fro...
/** @jsxRuntime classic */ /** @jsx jsx */ import React, { useCallback, useEffect } from "react"; import { FormattedMessage } from "react-intl"; import { useFormState } from "react-use-form-state"; import { Flex, Box, jsx, Heading, Text, Button, Textarea, Label, Radio, } from "theme-ui"; import { Ge...
import { BigNumber } from "bignumber.js"; import { Augur } from "../Augur"; import { SubscriptionEventName, MarketReportingStateByNum } from '../constants'; import { Address, MarketTypeName } from "../state/logs/types"; import { MarketInfoOutcome } from "../state/getter/Markets"; import { ExtraInfoTemplate } from '@aug...
<filename>ui-ngx/src/app/shared/models/page/page-link.ts /// /// Copyright © 2016-2020 The Thingsboard Authors /// /// 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.a...
<filename>smart-ui/smart-ui-system/src/main/resources/static/js/system/SysBus.ts // @ts-ignore import StoreUtil from '../utils/StoreUtil.js' // @ts-ignore import { STORE_KEYS } from '../Constants.js' // 标识开发模式 TODO: 可配置 const debug = true // 默认的样式 const defaultTheme: any = { topColor: '#0b1c2f', menuTheme: 'dark'...
/** * 3D Foundation Project * Copyright 2019 Smithsonian Institution * * 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 requir...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import vscode = require("vscode"); import { LanguageClient, NotificationType, RequestType } from "vscode-languageclient"; import { IFeatu...
/** * Copyright 2019 The AMP HTML Authors. 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 require...
<gh_stars>1-10 import Modification from 'mdx-m3-viewer/dist/cjs/parsers/w3x/w3u/modification'; import ModificationTable from 'mdx-m3-viewer/dist/cjs/parsers/w3x/w3u/modificationtable'; import ModifiedObject from 'mdx-m3-viewer/dist/cjs/parsers/w3x/w3u/modifiedobject'; import { generateId, pushArray, tsToWar3, war3ToTS ...
<reponame>EliasRut/Endless-Dungeon import { EquippedItemData } from '../../worldstate/Inventory'; import { EquipmentSlot, UiDepths } from '../../helpers/constants'; import { EquipmentKey, getItemDataForName } from '../../../items/itemData'; import { equipItem, getFullDataForEquipmentSlot, getFullDataForItemKey, } fr...
<gh_stars>0 import * as Fs from 'fs'; import * as Path from 'path'; import IResolvablePromise from '@secret-agent/core-interfaces/IResolvablePromise'; import { createPromise } from '@secret-agent/commons/utils'; import Log from '@secret-agent/commons/Logger'; import { MitmProxy as MitmServer } from '@secret-agent/mitm'...
<reponame>omni-door/tpls<filename>packages/tpl-component-react/src/configs/dependencies_stable_map.ts export const dependencies = { 'react': '^17.0.1', 'react-dom': '^17.0.1', 'classnames': '~2.2.6' }; export const devDependencies = { 'react': '^17.0.1', 'react-dom': '^17.0.1', 'prop-types': '^15.7.2', '...
<reponame>schadin/vscode-kafka import * as vscode from "vscode"; import { KafkaConfig } from "kafkajs"; import { Cluster, ConnectionOptions, createDefaultKafkaConfig as createDefaultKafkaConfig } from "../client/client"; import { ClusterSettings } from "../settings/clusters"; import { ClusterProviderParticipant, Ka...
<reponame>graphicfox/helferlein<filename>src/Ui/transistClass.ts /* * Copyright 2019 LABOR.digital * * 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/license...
/*! * CDOM v0.1.1 (https://github.com/AmbroseCavalier/cdom) * * Copyright 2021 <NAME> * Licensed under the MIT (https://github.com/AmbroseCavalier/cdom/blob/master/LICENSE) */ type Primitive = string | number | boolean | undefined | null; type PrimitiveOrEventListener = Primitive | ((evt: Event) => void); type At...
<reponame>javifelices/vscode<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------...
<reponame>kapilepatel/angular<filename>packages/language-service/src/ts_plugin.ts<gh_stars>1-10 /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as ts from ...