text
stringlengths
3.08k
15.5k
<reponame>Maxopoly/cards-database import { Card } from '../../../interfaces' import Set from '../Unified Minds' const card: Card = { name: { en: "Garchomp & Giratina GX", fr: "Carchacrok et Giratina GX", es: "Garchomp y Giratina GX", it: "Garchomp e Giratina GX", pt: "Garchomp e Giratina GX", de: "Knakrac...
<gh_stars>100-1000 import type { Document } from './doc/Document.js' import type { Alias } from './nodes/Alias.js' import { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq, Node } from './nodes/Node.js' import type { Pair } from './nodes/Pair.js' import type { Scalar } from '...
import { useCallback } from 'react' import qs, { ParsedQs } from 'qs' import { useEnv } from '@titicaca/react-contexts' import { checkIfRoutable, generateUrl, parseUrl, } from '@titicaca/view-utilities' import { useTripleClientMetadata } from '@titicaca/react-triple-client-interfaces' import { AllowSource } from...
<filename>src/bot/commands/music/reorder.ts import { Command } from 'discord-akairo'; import { Message } from 'discord.js'; interface SingleAction { kind: 'single'; num: number; } interface SliceAction { kind: 'slice'; from: number; to: number; reverse: boolean; } interface SpreadAction { kind: 'spread'; } ...
// @strict: true // @declaration: true interface Covariant<T> { foo: T extends string ? T : number; } interface Contravariant<T> { foo: T extends string ? keyof T : number; } interface Invariant<T> { foo: T extends string ? keyof T : T; } function f1<A, B extends A>(a: Covariant<A>, b: Co...
<reponame>christofferend/icoapp // We only use typescript for type information here. // @ignoreDep typescript import chalk from 'chalk'; import * as fs from 'fs'; import * as glob from 'glob'; import { Minimatch } from 'minimatch'; import * as path from 'path'; import { satisfies } from 'semver'; import * as ts from 't...
<gh_stars>10-100 import { IRenderMimeRegistry } from '@jupyterlab/rendermime'; import { Panel, Widget } from '@lumino/widgets'; import { NotebookDiffModel } from 'nbdime/lib/diff/model'; import { CellDiffWidget, MetadataDiffWidget, NotebookDiffWidget } from 'nbdime/lib/diff/widget'; import { ADDED_CHUNK_PANEL_C...
<reponame>davebeyer/homebridge-lutron-hwi import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge'; import { PLATFORM_NAME, PLUGIN_NAME } from './settings'; import { LightingCircuit } from './lightingCircuit'; import { OutputType, LutronTelnet } from ...
<gh_stars>0 import globby from 'globby' import fse from 'fs-extra' import path from 'path' import prism from 'prism-media' import lamejs from 'lamejs' const SILENCE_LEVEL_START_DEFAULT = -1.1 // use -1.5 for 'ф..' const SILENCE_LEVEL_END_DEFAULT = -3 export function streamToBuffer(stream: NodeJS.ReadableStream): Prom...
<filename>lib/services/schema-normalizer.service.ts 'use strict'; import { Injectable } from '@angular/core'; import { SpecManager } from '../utils/spec-manager'; import { JsonPointer } from '../utils/JsonPointer'; import { defaults } from '../utils/helpers'; import { WarningsService } from './warnings.service'; expor...
<filename>src/colors.ts const colors = { white: "#ffffff", blue: "#467fcf", "blue-darkest": "#0e1929", "blue-darker": "#1c3353", "blue-dark": "#3866a6", "blue-light": "#7ea5dd", "blue-lighter": "#c8d9f1", "blue-lightest": "#edf2fa", azure: "#45aaf2", "azure-darkest": "#0e2230", "azure-darker": "#1...
<gh_stars>100-1000 import { Hardfork } from '@ethereumjs/common' import { BN } from 'ethereumjs-util' import { EthereumService, EthereumServiceOptions } from './ethereumservice' import { FullSynchronizer } from '../sync/fullsync' import { EthProtocol } from '../net/protocol/ethprotocol' import { LesProtocol } from '../...
<gh_stars>1-10 import { AI_KEY, ENV, EXT_NAME, VERSION } from '@sqltools/core/constants'; import { runIfPropIsDefined } from '@sqltools/core/utils/decorators'; import Timer from '@sqltools/core/utils/timer'; import * as AI from 'applicationinsights'; import { version as AIVersion } from 'applicationinsights/package.jso...
import Swal from "sweetalert2"; import withReactContent from "sweetalert2-react-content"; import { db } from "../../config/firebase"; import { ForumMetadata, ForumTopicMetadata, selectOption, TopicsMetadata, userContext, } from "../../interfaces"; import { getEncodedString } from "../../utils/generalFunctions...
<reponame>LLKennedy/lsql import * as proto from "@lsql/proto"; import * as uuid from "uuid"; import * as googleproto from "google-protobuf/google/protobuf/timestamp_pb"; import { UIField, fieldWhereType, UIGroup, groupWhereType, PropertyType } from "./builder"; import { ColumnID, Paging, Select } from "./proto"; import...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
import Tooltip from "app/common/components/tooltip/tooltip"; import { Timer } from "app/common/functions/timer"; import ExactMatch from "app/modules/filters/field/exact-match/exact-match"; import "app/modules/filters/field/drop-down/drop-down.scss"; import { FilterFieldBase, FilterFieldDropdownValue } from "app/module...
import { ApolloServerBase, formatApolloErrors, processFileUploads } from "apollo-server-core"; import type { GraphQLOptions, FileUploadOptions } from "apollo-server-core"; import { renderPlaygroundPage } from "@apollographql/graphql-playground-html"; import type { RenderPageOptions as PlaygroundRenderPageOptions } from...
<reponame>dgozman/folio /** * 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 ...
import { noOp, percentChance } from 'e'; import { KlasaUser, Task } from 'klasa'; import { Bank, Misc } from 'oldschooljs'; import { BitField, Emoji, NIGHTMARE_ID, PHOSANI_NIGHTMARE_ID } from '../../../lib/constants'; import { addMonsterXP } from '../../../lib/minions/functions'; import announceLoot from '../../../lib...
<gh_stars>1-10 const _ = require('underscore'); const yaml = require('js-yaml'); const fs = require("fs"); const chalk = require("chalk"); var _eval = require('eval') import {objectsFromDb} from '../collection/object' import {fieldsFromDb} from '../collection/field' import {actionsFromDb} from '../collection/action' i...
type ProtocolString = "http:" | "https:"; let current: API | undefined; /** Record of all the relevant stuff in a string URL, except without all the * stringly typed nonsense. */ interface UrlInfo { protocol: string; hostname: string; port: string; pathname: string; search: string; hash: string; host: s...
import { configContext } from "../../ConfigContext"; import { userContext } from "../../UserContext"; import { armRequestWithoutPolling } from "../../Utils/arm/request"; import { selfServeTraceFailure, selfServeTraceStart, selfServeTraceSuccess } from "../SelfServeTelemetryProcessor"; import { RefreshResult } from "../...
import { HeadingLevel, IParagraphOptions, IRunOptions } from 'docx'; import { defaultMarks, NodeSerializer } from 'prosemirror-docx'; import { Node } from 'prosemirror-model'; import { oxaLinkToId } from '@curvenote/blocks'; import { CaptionKind, Nodes, ReferenceKind } from '@curvenote/schema'; import { formatDatetime ...
/** * Signals the direction of pagination or moving the cursor through a list. */ const enum Direction { /** * Move to the previous element */ Previous, /** * Move to the next element */ Next, } /** * Matches the `code` names for keys set by the user agent on [[KeyboardEvent]]. ...
<gh_stars>0 import type { Ref } from 'vue' import type { BlockState } from '~/type' type GameState='play'|'won'|'lose' interface playState{ mineGenerator: boolean status: GameState block: BlockState[][] startTime?: number endTime?: number } const position = [ [1, 0], [1, 1], [1, -1], [-1, 0], [0,...
import { configure, reaction, toJS } from "mobx"; import addUserCatalogMember from "../../../../lib/Models/Catalog/addUserCatalogMember"; import CommonStrata from "../../../../lib/Models/Definition/CommonStrata"; import CsvCatalogItem from "../../../../lib/Models/Catalog/CatalogItems/CsvCatalogItem"; import Terria from...
<reponame>cspell-app/cspell<filename>packages/cspell/src/Settings/CSpellSettingsDef.ts export type ReplaceEntry = [string, string]; export type ReplaceMap = ReplaceEntry[]; /** * These settings come from user and workspace settings. */ export interface CSpellPackageSettings extends CSpellUserSettings { } export in...
<gh_stars>100-1000 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *------------------------------------------------------...
<reponame>manageryzy/vscode-verilog-hdl-support 'use strict'; import { workspace, window, DocumentSelector, ExtensionContext, extensions, Uri, languages, commands } from "vscode"; // Linters import LintManager from "./linter/LintManager"; // ctags import { CtagsManager } from "./ctags"; // Providers import { Verilo...
<filename>data/utxos/actions.ts import { chunk } from "lodash"; import uuidv5 from "uuid/v5"; import { UPDATE_UTXO_START, UPDATE_UTXO_SUCCESS, UPDATE_UTXO_FAIL } from "./constants"; import { UTXO } from "./reducer"; import { activeAccountIdSelector } from "../accounts/selectors"; import { FullState } from "../...
<filename>src/static-build-loader/loader.ts import getFeatures from './getFeatures'; import { LoaderContext, RawSourceMap } from 'webpack/lib/webpack'; import * as recast from 'recast'; const { getOptions } = require('loader-utils'); const types = recast.types; const namedTypes = types.namedTypes; const builders = typ...
/* eslint-disable @typescript-eslint/no-empty-function */ import { SectionBlock, MrkdwnElement } from '@slack/types' import { JSXSlackError } from '../../error' import { JSXSlack, createComponent } from '../../jsx' import { Escape } from '../../mrkdwn/jsx' import { mrkdwn } from '../composition/Mrkdwn' import { Button ...
import React, { ReactNode, useMemo } from 'react'; import { Box, Button, List, Paragraph } from 'grommet'; import { AddCircle } from 'grommet-icons'; import { normalizeColor } from 'grommet/utils'; import { defineMessages, useIntl } from 'react-intl'; import { useParticipantsStore, ParticipantType, } from 'data/st...
<filename>src/OpenToonz.ts<gh_stars>0 import * as g from "@akashic/akashic-engine"; (<any>global).g = g; import * as asa from "@akashic-extension/akashic-animation"; export class MetaData { imageCount: number; width: number; height: number; paddedWidth: number; paddedHeight: number; hImageCount: number; vImageC...
<filename>examples/data-objects/webflow/src/editor/editor.ts /*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Caret as CaretUtil, Direction, getDeltaX, getDeltaY, KeyCode, Scheduler } from "@fluid-example/flow-util-lib"; import { IFluidObject } from "@flu...
import * as assert from 'assert'; import * as fc from '../../src/fast-check'; // Code under tests // Based on the CodinGame https://www.codingame.com/training/medium/shadows-of-the-knight-episode-1 class Space { hint: string = ''; public current_x: number; public current_y: number; constructor( ...
<reponame>GoMarky/markybox<filename>src/core/renderer/html/common/GlyphRowElement.ts import { GlyphWordNode } from '@/core/renderer/html/common/GlyphWordNode'; import { MChar } from '@/core/renderer/html/editor/EditorBodyTextarea'; import * as string from '@/base/string'; import * as dom from '@/base/dom'; import { Gly...
import React, { useEffect, useState } from 'react'; import { SectionContainer } from '../components/section-container'; import { Card } from '../components/card'; import { Typography } from '../components/typography'; import { GridContainer, GridRow, GridColumn, } from '../components/responsive-grid'; import { Bo...
import { Routes } from '@/app.routes' import Loader from '@/components/loader' import { getApiBase } from '@/helpers/url' import { Locale } from '@/locale/model' import { State } from '@/store/reducers' import { AppBar, IconButton, makeStyles, Toolbar, Typography } from '@material-ui/core' import KeyboardArrowLeftIcon ...
<reponame>jgodi/reactdatagrid /** * Copyright © INOVUA TRADING. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ type func = (...args: any[]) => any; export type CellProps = { onTransitionEnd?: (e: any) => void; inEdit?: boolean; ...
import { Connection, In } from 'typeorm'; import * as faker from 'faker'; import * as _ from 'underscore'; import { TimeLogSourceEnum, TimeLogType, ITimeSlot, IOrganizationProject } from '@gauzy/contracts'; import * as moment from 'moment'; import { TimeLog } from '../time-log.entity'; import { Timesheet } from '.....
import { CommonModule } from '@angular/common'; import { Directive, ElementRef, EventEmitter, HostListener, Input, NgModule, OnInit, Output, PipeTransform, } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { KEYS, MaskHelper } from './mask-helper'...
import card from './Character_Diluc_Card.jpg' import thumb from './Character_Diluc_Thumb.png' import c1 from './Constellation_Conviction.png' import c2 from './Constellation_Searing_Ember.png' import c3 from './Constellation_Fire_and_Steel.png' import c4 from './Constellation_Flowing_Flame.png' import c5 from './Conste...
import { http, ng, template, notify } from 'entcore'; interface ForgotControllerScope { template: typeof template; login: string activationCode: string error: string; structures: Array<any> user: { mode?: "id" | "password" | "idExtras" | "notFound" login?: string firstName?: string structureId?: string ...
<filename>tests/core/sqlCall.test.ts import * as mm from '../../dist/main.js'; import post from '../models/post.js'; import { eq, deepEq } from '../assert-aliases.js'; const { dt } = mm; function dtc(dtString: string): mm.ColumnType { return new mm.ColumnType(dtString); } it('SQL calls', () => { let t: mm.SQLCall...
<reponame>Synthetixio/snapshot-strategies import { formatUnits } from '@ethersproject/units'; import { BigNumber, BigNumberish } from '@ethersproject/bignumber'; import { Multicaller } from '../../utils'; export const author = 'turpintinz'; export const version = '2.0.1'; const SAFF_STAKING_V2 = '0x4eB4C5911e931667fE...
import { BALL_RADIUS, BRICKS_MARGIN, BRICK_COLOR_PER_ROW, BRICK_HEIGHT, BRICK_ROWS, PADDLE_HEIGHT, PADDLE_WIDTH, } from '../shared/settings' import { Ball, Brick, BrickCollision, Circle, Optional, Paddle, Position, RenderedCircle, RenderedRectangle, Text, } from './types' export const...
import { inject, injectable } from "inversify"; import * as Web3 from "web3"; import { IConfig } from "../../config/getConfig"; import { symbols } from "../../di/symbols"; import { EtherToken } from "../contracts/EtherToken"; import { ETOCommitment } from "../contracts/ETOCommitment"; import { EuroToken } from "../con...
<gh_stars>0 import {Subscribable} from 'rxjs' import {SchemaType, SanityDocument} from '@sanity/types' import {InitialValueTemplateItem, StructureBuilder} from '@sanity/structure' export interface PreviewValue { id?: string subtitle?: React.ReactNode title?: React.ReactNode media?: React.ReactNode | React.Comp...
import React, { useState, useEffect } from "react"; import { ethers } from "ethers"; import { Box, CircularProgress, Card, Container, CardContent, CardMedia, Typography, Button, CardActions, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, } from "@mui/material"; import ...
// // The React Redux reducers for albums // import * as Actions from '@src/redux/actions/actions'; import { AlbumsByPath, Album, AlbumThumb, Image } from '@src/models/models'; import { getParentFromPath, isImagePath } from '@src/utils/path-utils'; /** * A reducer function */ export function albumsByPathReducer( a...
import { scrollToPosition } from 'app/dim-ui/scroll'; import { settingsSelector } from 'app/settings/reducer'; import { RootState } from 'app/store/types'; import { DestinyPresentationScreenStyle } from 'bungie-api-ts/destiny2'; import clsx from 'clsx'; import { deepEqual } from 'fast-equals'; import React, { useEffect...
import { Response, NextFunction, Request } from 'express' import Product from '@/models/product' import { toImageUrl, deleteImageByKey } from '@/services/upload' import { translate } from '@/services/translate' import { trackEvent } from '@/services/analytics' type CreateProductFields = { name: string quantities: ...
import { MessagePayload } from 'zigbee-herdsman/dist/controller/events'; import Device from 'zigbee-herdsman/dist/controller/model/device'; import Endpoint from 'zigbee-herdsman/dist/controller/model/endpoint'; import { Zcl } from 'zigbee-herdsman'; import { Logger } from 'homebridge'; type State = 'ON' | 'OFF' | 'TOG...
import React, { useState } from "react"; import styled from "styled-components"; import { useMutation, useQuery } from "react-apollo-hooks"; import { space, color } from "styled-system"; import { Tooltip } from "react-tippy"; import SET_WATCH_MODE from "./set-watch-mode.gql"; import SHOULD_COLLECT_COVERAGE from "./shou...
import React from 'react'; import { server, util, widget, app } from 'components'; import { StorageState } from 'core/entity' import { VGridEntityList, VGridEntityListPlugin, VGridConfigTool } from 'core/widget/vgrid'; import { T, AccountRestURL } from './Dependency'; import { UIAccountExplorer, UIAccountListPageCont...
import React, { FC, useMemo, ReactNode, useState } from "react"; import { css, cx } from "@emotion/css"; import DropdownArea from "./dropdown-area"; import MenuList, { MenuValue, IMenuListItem } from "./menu-list"; import { rowParted, center, rowCenter, expand, row, Space } from "@worktools/flex-styles"; import Content...
import { sceneMessageBus } from './serverHandler' import { Switch } from './buttons' export enum Songs { song1 = 'sounds/boombox/Freestyle-Type-Beat-Real_Free-Type-Beat-2020-Rap-Trap-Instrumental.mp3', song2 = 'sounds/boombox/Gunna-x-Lil-Baby-Type-Beat-Too-Cold-(ProdByKairo).mp3', song3 = 'sounds/boombox/INFECTE...
/** * Root React component for the Augmentations UI page that display all of your * owned and purchased Augmentations and Source-Files. */ import React, { useState, useEffect } from "react"; import { InstalledAugmentations } from "./InstalledAugmentations"; import { PlayerMultipliers } from "./PlayerMultipliers"; i...
<reponame>eyab/vcdrom import * as assert from 'assert'; import * as frontend from 'llparse-frontend'; import { Compilation } from '../compilation'; import { Node } from './base'; const MAX_CHAR = 0xff; const TABLE_GROUP = 16; // _mm_cmpestri takes 8 ranges const SSE_RANGES_LEN = 16; // _mm_cmpestri takes 128bit inpu...
import { Common } from '../../common/Common'; import { Events } from '../../common/Events'; export enum RunnerType { /** * Fixed delta */ fixed, /** * Dynamic delta */ dynamic, } export interface RunnerOptions { tps?: number; type?: RunnerType; timescale?: number; c...
<reponame>g150446/vue3-mindmap import { Mdata, SelectionCircle, SelectionG, SelectionRect, Transition, TspanData } from '../interface' import * as d3 from '../d3' import { addBtnRect, addBtnSide, branch, changeSharpCorner, expandBtnRect, rootTextRectPadding, rootTextRectRadius, textRectPadding } from '../variable' impo...
<gh_stars>1-10 import * as s from 'dota-data/lib/schema'; import _ from 'lodash'; import { Plugin } from '../../plugin'; const reservedFields = { var_type: "it's inferred from value", levelkey: "it's usage is not known", CalculateSpellDamageTooltip: 'use $amplifiable instead', LinkedSpecialBonus: 'use $talent....
import { Component, createElement, ReactNode } from "react"; import { Alert } from "./Alert"; import { ImageViewer } from "./ImageViewer"; import { UrlHelper } from "../UrlHelper"; interface WrapperProps { class: string; mxObject?: mendix.lib.MxObject; style: string; readOnly: boolean; mxform: mxu...
import React from 'react' import styled from 'styled-components' import logo from './img/logo.png' import { cssQuery } from './util/cssQuery' import { InputButton } from './util/InputButton' import { Container, Button } from 'muicss/react' import { MarketingWrapper } from './util/MarketingWrapper' import { FetchingDat...
import { Box, Container, TextField, Button, Grid, Paper, Typography } from '@mui/material'; import React, { useCallback, useEffect, useState } from 'react'; import { Clear, MailOutline, Send } from '@mui/icons-material'; import { useForm, useWatch, Controller, FormProvider } from 'react-hook-form'; import { EmailUI } f...
<filename>src/models/deeplearn-converter.ts import { Loss } from "../losses/index"; import { Optimizer } from "../optimizers"; import { Layer } from "../layers"; import { Session } from "deeplearn/dist/graph/session"; import { Graph, Tensor } from "deeplearn/dist/graph/graph"; import { NDArrayMath } from "deeplearn/d...
import createElement from 'inferno-create-element'; import Component from 'inferno-component'; import {cloneElement, findDOMNode} from "inferno-compat"; import {observer} from 'inferno-mobx'; import DOMScroller from 'zscroller'; import assign from 'object-assign'; import classNames from 'classnames'; import {throttle} ...
/* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ // tslint:disable:only-arrow-functions // Mocha discourages using arrow functions, see https://mochajs.org/#arrow-functions import { assert } from "chai"; import * as...
import { Classes, Intent, TagInput } from '@blueprintjs/core' import * as _ from 'lodash' import * as React from 'react' import { connect } from 'react-redux' import FlexContent from 'Components/FlexContent' import FlexLayout from 'Components/FlexLayout' import NonIdealState from 'Components/NonIdealState' import Sett...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { StoreModule } from '@ngrx/store'; import { ActiveCartFacade, Cart, CartAddEntryFailEvent, CartAddEntrySuccessEvent, } from '@spartacus/cart/base/root'; import { EventService, Glo...
import alt from "alt-instance"; import { Apis } from "cybexjs-ws"; import WalletDb from "stores/WalletDb"; import SettingsStore from "stores/SettingsStore"; import WalletApi from "api/WalletApi"; import { debugGen } from "utils"; import * as moment from "moment"; import { NotificationActions } from "actions//Notificati...
import { Range, TextEditor, Point, CompositeDisposable, Disposable } from 'atom' import { bufferPositionFromMouseEvent, listen, handlePromise } from '../utils' import { EditorOverlayManager } from './editor-overlay-manager' import { TooltipManager as GlobalTooltipManager } from '../tooltip-manager' import { PluginManag...
<gh_stars>1-10 import ytdl from 'ytdl-core'; import fs, { PathLike, WriteStream } from 'fs'; import path from 'path'; import { Client, VoiceChannel, VoiceConnection } from 'discord.js'; import request from 'request' import { SoundDB } from "../Bot/models"; import ffmpeg from "fluent-ffmpeg"; import { getLogger } from ...
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { FocusMonitor } from '@angular/cdk/a11y'; import { Direction, Directionality } from '@angular/cdk/bidi'; import { CdkConnectedOverlay, ...
<reponame>EmilyMei/bkui-vue3<filename>packages/tree/src/util.ts<gh_stars>0 /* * Tencent is pleased to support the open source community by making * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * 蓝鲸智云PaaS平台社区版 (BlueKin...
/* * 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 ...
import { Stack } from '@aws-cdk/core' import { expect, haveResource, countResources, haveResourceLike } from '@aws-cdk/assert' import '@aws-cdk/assert/jest' import ec2 = require('@aws-cdk/aws-ec2') import rds = require('@aws-cdk/aws-rds') import { TraditionalInfrastructureStack } from '../lib/TraditionalStack' import ...
<gh_stars>0 /** * Pivot Olap Field List Default Sample */ import { PivotView } from '../../../src/pivotview/base/pivotview'; import { FieldList } from '../../../src/common/actions/field-list'; import { GroupingBar } from '../../../src/common/grouping-bar/grouping-bar'; import { PivotFieldList } from '../../../src/pi...
<reponame>sdttttt/ressu<gh_stars>1-10 import { feedsDataLocalGet, feedsDataLocalSync } from "@database/feeds"; import { createAsyncThunk, createSlice, PayloadAction } from "@reduxjs/toolkit"; import { RessuStore, Feeds, RSSChannel } from "./typing"; import isURL from "validator/es/lib/isURL"; import { parseRSSFromURL }...
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import { buildRequestBody, convertToCSV, getOpenSearchData, getSelectedFields, metaData, } from './dataReportHelpers'; import { ILegacyClusterClient, ILegacyScopedClusterClient, Logger, } from '../../../../../src/core/se...
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import Bookmarks from './Bookmarks'; import PokeList from './PokeList'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; imp...
import { stardust } from '@nebula.js/stardust'; import React, { useRef, useCallback, useLayoutEffect } from 'react'; import { VariableSizeGrid, VariableSizeList } from 'react-window'; import { LayoutService, Rect, ViewService } from '../../types/types'; // import useDebug from '../hooks/use-debug'; import StickyContain...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import { FlexColumn, styled, Text, FlexRow, Glyph, LoadingIndicator, colors, Spacer, Button, Fle...
import { Box, Button, Divider, Flex, Heading, HStack, SimpleGrid, VStack } from '@chakra-ui/react'; import Link from 'next/link'; import { Input } from '../../components/Form/Input'; import { Select } from '../../components/Form/Select'; import { Header } from '../../components/Header'; import { Sidebar } from '../../c...
import UIUtil = require('./UIUtil'); import HTMLMap = require('../HTMLMap'); import lory = require('../lory'); /** * Side Menu (Slidey bit from the left). * * Automatically creates HTML and fills {@link HTMLMap.sideMenu} in {@link MenuUI.onInit}. * Contains two sets of children UIItems: Top, placed just below t...
<filename>src/poly-fills.ts import { t } from "@rbxts/t"; const is_table = t.array(t.any); function combine<T extends defined>(arr: (T[] | T)[]): T[] { const _result: T[] = []; const _combine = (arr: T[]) => { arr.forEach((element) => { if (is_table(element)) { _combine(element as unknown as T[]...
<reponame>smikitky/vscode-dicom-dump<filename>src/encConverter.ts /** * EncConverter takes byte arrays from DICOM file and returns an * ordinary JavaScript Unicode string. * Target VR types are SH (Short String), LO (Long String), ST (Short Text), * LT (Long Text), PN (Person Name) and UT (Unlimited Text). */ expo...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Node, Element, document, Range } from '@ephox/dom-globals'; ...
<filename>front/src/store/api/xrpl.tsx import { GetAccountPayload } from "../types/AccountTypes"; import { config } from "@config"; // WS Call if (typeof module !== "undefined") var xrpl = require('xrpl') export const getTokensXRPL = async (data: GetAccountPayload) => { const client = new xrpl.Client(config.xrpWss)...
import { reactive, inject, readonly, computed, watch } from 'vue' import type { InjectionKey } from 'vue' import { useRoute, useRouter } from 'vue-router' import type { VisualEditorModelValue, VisualEditorBlockData, VisualEditorPage, FetchApiItem, VisualEditorModel } from '@/visual-editor/visual-editor.utils'...
/** Helpers for dealing with the State / Counties dataset. */ import US_STATE_DATASET from 'components/MapSelectors/datasets/us_states_dataset_01_02_2020.json'; import { each, sortBy, takeRight, has } from 'lodash'; import { assert } from './utils'; import countyAdjacencyMsa from './data/county_adjacency_msa.json'; imp...
import React, { useState } from 'react'; import styled from 'styled-components'; import { StatsText } from './stats-text'; // Import { ProfilePicture } from './profile-picture'; import { HealthBar } from './health-bar'; import { GrenadesBox } from './grenades-box'; import { WeaponsBox } from './weapons-box'; // Import...
<gh_stars>1-10 // ? ==================================== (c) TagoIO ==================================== // * What is this file? // Migration of old DYNAMIC_TABLE to new DYNAMIC_TABLE // ? ==================================================================================== import { WidgetInfo } from "../Account/da...
<gh_stars>1-10 process.env.NODE_ENV = 'development' process.setMaxListeners(0) import Koa from 'koa' import cors from 'koa2-cors' import koaStatic from 'koa-static' import koaBodyParser from 'koa-bodyparser' import { historyApiFallback } from 'koa2-connect-history-api-fallback' import koaWebpack from 'koa-webpack' i...
<gh_stars>0 import { ProductAddComponent } from './../product-add/product-add.component'; import { ProductDeleteComponent } from './../product-delete/product-delete.component'; import { MatTableDataSource, MatDialog, MatDialogRef, MatSnackBar, MatSelect, MatOption, MatSelectChange, MatCheckboxChange } from '@angular...
import { CircularProgress, Container } from '@material-ui/core'; import * as React from 'react'; import { useEffect, useState } from 'react'; import { ErrorBoundary } from '../../components/ErrorBoundary'; import { UtsCenter } from '../../components/UtsCenter'; import { UtsDialog } from '../../components/UtsDialog'; im...
<filename>web/test-player/src/app/modules/skills/engines/put-atom/render-put-atom/render-put-atom.component.ts import {Component, ElementRef, Input, OnDestroy, OnInit, ViewChild, ViewEncapsulation} from '@angular/core'; import {QuestionResponseClass, QuestionType} from "../../../../../shared/models/question"; import {I...
import React, { useState, useEffect, useRef } from 'react'; import clsx from 'clsx'; import { withStyles, WithStyles, createStyles, Theme, emphasize } from '@material-ui/core/styles'; import Snackbar from '@material-ui/core/Snackbar'; import Slide from '@material-ui/core/Slide'; import Collapse from '@material-ui/core/...