text
stringlengths
3.3k
33k
import { EntryMetaExtras, ExplorerService } from "backend/explorer/explorer-service"; import { inject, injectable } from "inversify"; import { FilesystemEntry, FilesystemEntryMap } from "shared/api.types"; import { FsService } from "./fs-service"; import { ProjectFsUpdate } from 'shared/project.types'; import { Lo...
import React, { Component, FocusEvent, Fragment, MouseEvent } from 'react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import axios, { CancelTokenSource } from 'axios'; import { AppBar, Drawer, Toolbar, Typography, List, ListItem, ListItemIcon, ListItemText, InputBase, TextField, SvgIcon } from...
import React, { useState, useLayoutEffect, useRef, useMemo, useCallback } from 'react' import { useThree, useFrame } from '@react-three/fiber' import { InstancedMesh, Vector3, Quaternion, Matrix4 } from 'three' import type { Shape } from 'cannon-es' import type { Object3D } from 'three' import { context } from './set...
<gh_stars>1-10 import { getConnection, MoreThanOrEqual, LessThanOrEqual } from 'typeorm' import { map, isEmpty, chain, groupBy } from 'lodash' import { DateTime } from 'luxon' import { UnitError, StoredTrace, Unit, UnitErrorStats } from '../entity/pg' import { fillTimeSeriesGaps, startOf5MinuteInterval } from '../util...
/** * * Wechaty Io Server Class * * IoManager * * https://github.com/zixia/wechaty * */ import WebSocket from 'ws' // import { Listag } from 'listag' import pTimeout from 'p-timeout' import { log } from '../config' import { IoSocket, SocketMetadata, } from './io-socket' expo...
<reponame>matrix-org/thirdroom import { Matrix4, Quaternion, Vector3 } from "three"; import { NOOP } from "../config.common"; import { IMainThreadContext } from "../MainThread"; import { defineModule, getModule, registerMessageHandler, Thread } from "../module/module.common"; import { AudioMessageType, InitializeA...
<reponame>bcgov/internationally-educated-nurses import axios, { AxiosError } from 'axios'; import _ from 'lodash'; import dayjs from 'dayjs'; import { CellAddress, utils, WorkBook, WorkSheet } from 'xlsx-js-style'; import { toast } from 'react-toastify'; import { convertToParams, Period, PeriodFilter } from '@ien/comm...
import React from 'react'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormControl from '@material-ui/core/FormControl'; import FormLabel from '@material-ui/core/FormLabel'; import Select fr...
<filename>generator/generator.ts<gh_stars>10-100 /** * @fileoverview gl-matrix.d.ts generator * @author chuntaro <<EMAIL>> * @version 1.1.0 */ // Copyright (c) 2015, 2016 chuntaro // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation file...
import type { ModuleList } from 'types/reducers'; import type { VenueList } from 'types/venues'; import { act, render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { Provider } from 'react-redux'; import { MemoryRouter } from 'react-router-dom'; import produce from 'immer...
<gh_stars>10-100 /********************************************************************************************************************* * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * ...
import bodyParser from 'body-parser'; import compression from 'compression'; import cors from 'cors'; import * as d3 from 'd3'; import express, { Request, Response } from 'express'; import helmet from 'helmet'; import Rand from 'rand-seed'; import ws from 'ws'; import { names } from './names'; import { funcs, Point } f...
import { AnimatePresence, motion } from "framer-motion"; import { last, round, toInteger } from "lodash"; import React, { cloneElement, FC, memo, ReactElement, useCallback, useContext, useMemo, useState, } from "react"; import pixelWidth from "string-pixel-width"; import { useColorModeValue } from "@ch...
<gh_stars>0 /** * CloudFront events * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html * Bear in mind that the "example" event structure in the page above includes * both an S3 and a Custom origin, which is not strictly allowed. Only one * of these per event may be pres...
import * as ratchet from "2key-ratchet"; import idb from "idb"; import { DB } from "idb"; import { AES_CBC, ECDH, ECDSA, isEdge, isFirefox, isIE, updateEcPublicKey } from "../utils"; import { RatchetStorage } from "./base"; interface IWrapKey { key: CryptoKey; iv: ArrayBuffer; } interface IWrapKeyStorage { key:...
<reponame>chiendh/winter-cardinal-ui /* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ import { DisplayObject, interaction, Texture } from "pixi.js"; import { DBaseOptions } from "./d-base"; import { DContentOptions } from "./d-content"; import { DPane, DPaneOptions, DThemePane } ...
<gh_stars>1-10 /* * Copyright 2021 The University of Manchester * * 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...
<reponame>bhatashraf/Angular-Siteccore-Training import {Component, ViewEncapsulation} from '@angular/core'; import {FeatureWidgetService} from './featured-widget-service'; @Component({ selector: 'home', //templateUrl is pending: markup is being rendering when put in separate file template: ` <!--Banner --> ...
<reponame>xyzxbc/mdui import $ from 'mdui.jq/es/$'; import extend from 'mdui.jq/es/functions/extend'; import { JQ } from 'mdui.jq/es/JQ'; import 'mdui.jq/es/methods/addClass'; import 'mdui.jq/es/methods/appendTo'; import 'mdui.jq/es/methods/find'; import 'mdui.jq/es/methods/hasClass'; import 'mdui.jq/es/methods/off'; i...
<reponame>rishabhnuevezo/user-interfaces<filename>libs/events/src/lib/event.utilities.ts import { FormGroup, FormControl, Validators, AbstractControl } from '@angular/forms'; import { add, isBefore, isAfter, formatDuration, differenceInMinutes, getTime, isSameDay, format, startOfMinu...
import first from 'lodash/first'; import last from 'lodash/last'; import sortBy from 'lodash/sortBy'; import sumBy from 'lodash/sumBy'; import { TradeDirection, TradeFlow, failIfValidOrNonExhaustive, groupByMapObjectProp, ILoadable, LoadableStatus, InflationAdjustment, Layout, Ordering, PopulationAd...
<filename>src/net/NetManager.ts /** * 网络管理器 */ class NetManager { /** * 索引服务器地址 */ public static IndexServer: string = Main.IsLocationDebug ? "http://127.0.0.1:9901" : "https://server.jxd.173kw.com:9901"; public static get IndexServerInfo(){ return Main.IsLocationDebug? {host:'127.0.0.1...
import { Flex, Box, Badge, useColorModeValue, HStack, Text, VStack, Spacer, Button, } from '@chakra-ui/react' import {GatsbyImage, IGatsbyImageData} from 'gatsby-plugin-image' import React from 'react' import {cardStyle} from './style' function calculateTextColorForBackgroundColor(hexColor: string) ...
<reponame>rafidka/HadithHouseApi /** * The MIT License (MIT) * * Copyright (c) 2017 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limi...
import * as _ from "lodash"; import {Audio} from "../Audio"; import {Gamepad as XGamepad, Button, GamepadButton} from "../XGamepad"; const DEFAULT_LOOP_TIME = Phaser.Timer.QUARTER >> 1; export type Control = { /** The button that will fire the callbacks. If it's an array, the buttons will be tested if pressed in ...
import { RouteProp, Link } from '@react-navigation/native' import { firestore } from 'firebase' import React, { useEffect, useRef, useState } from 'react' import { Animated, Linking, FlatList, Image, SafeAreaView, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native' import Icon from 'react-native-...
<gh_stars>0 import Game from "../../core/models/game"; import {Artifact} from "../../core/models/artifact"; import {Monster} from "../../core/models/monster"; import {RoomExit} from "../../core/models/room"; import {Room} from "../../core/models/room"; import {ModalQuestion} from "../../core/models/modal"; import {Comm...
<reponame>pkmn/smogon const latest = import('./latest.json'); const LATEST = (latest as unknown) as Promise<{ [id: string]: [string, number] | [[string, number], [string, number]]; }>; export type ID = '' | (string & { __isID: true }); export type GenerationNum = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; export type TypeName =...
<filename>src/app/board/board.component.ts<gh_stars>0 import { Component, OnInit, ViewChild, ElementRef, OnDestroy, AfterViewInit } from '@angular/core'; import { ActivatedRoute, ParamMap } from '@angular/router'; import { Subscription, fromEvent } from 'rxjs'; import { AngularFirestore, AngularFirestoreDocument } from...
import { EVENT_CATEGORY, MAX_LENGTH, sendLinkEvent } from '../analytics/SendAnalytics'; import AriaModal from 'react-aria-modal'; import Button, { ButtonVariation } from '../Button/Button'; import React, { useEffect, useRef } from 'react'; import classNames from 'classnames'; import { dialogSendsAnalytics } from '../fl...
<filename>src/plugin/draggable.ts import { $document, $win } from '../config'; import { customizeUtil } from '../util'; import { MindMapMain } from '../mind-map-main'; import { MindMapNode } from '../mind-map-node'; const jcanvas = customizeUtil.canvas; const jdom = customizeUtil.dom; const clear_selection = 'getSel...
<reponame>Blaud/EduJetJamPlayer import { Component, OnInit, ViewChild, ElementRef, AfterViewInit, OnDestroy, Input, Output, EventEmitter, } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import { MaterialInstance, MaterialService, } from 'src/app/shared/...
import { DefaultSerializer, PairSerializer, Serializer, Collab, InitToken, isRuntime, Pre, AbstractCListCObject, CVariable, CSet, MovableCList, MovableCListEventsRecord, CObject, CMessenger, Optional, PositionedList, } from "@collabs/core"; import { ArrayListItemManager, CreatedListP...
<filename>packages/egg-development-track/lib/agent-node/inspectors/HttpProxy.ts<gh_stars>0 'use strict'; import http = require('http'); import { IErrorReportingService, createHttpServerError, createHttpServerEarlyRequestTerminationError, } from '../../common'; import { IContext } from '../messaging/IContextManag...
import React from 'react'; import styles from './generic-list.module.scss'; import { confirmAlert } from 'react-confirm-alert'; import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; import ReportProfileMenu from '../../components/report-profile-menu/report-profile-menu'; interface GenericListPro...
import { RenderResult } from '@dojo/framework/core/interfaces'; import focus from '@dojo/framework/core/middleware/focus'; import { createICacheMiddleware } from '@dojo/framework/core/middleware/icache'; import { create, tsx } from '@dojo/framework/core/vdom'; import { theme, formatAriaProperties } from '@redaktor/widg...
import {concatMap, delay, retryWhen} from "rxjs/operators"; import {from, of, throwError} from "rxjs"; import {Config} from "src/shared/model/options"; import {DbPatch} from "src/shared/api/common"; import {FsDbAccount} from "src/shared/model/database"; import {IPC_MAIN_API, IpcMainApiEndpoints} from "src/shared/api/m...
<filename>src/app/features/reserved-area/consumer/cart/redux-cart/cart.actions.ts import { NgRedux, select } from '@angular-redux/store'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { CartItem, PurchasedCoupon } from '../../../../../shared/_models/CartItem'; import { Coupon } f...
import createDebugger from "debug"; import { createJob } from "./create-job"; import { Job } from "../job"; import { Agenda } from "../agenda"; const debug = createDebugger("agenda:internal:processJobs"); /** * Process methods for jobs * @param {Job} extraJob job to run immediately */ export const processJobs = as...
import { getLogger } from '@dming/pinus-logger'; let logger = getLogger('pinus-rpc', 'mqtt2-mailbox'); import { EventEmitter } from 'events'; import { constants } from '../../util/constants'; import { Tracer } from '../../util/tracer'; let MqttCon: any = require('mqtt-connection'); import * as utils from '../../util/ut...
import { ThreeEvent, useThree } from '@react-three/fiber'; import { CSSProperties, useEffect, useMemo, useRef, useState } from 'react'; import { LineDashedMaterial, Color, Mesh, MeshBasicMaterial, BufferGeometry, } from 'three'; import TimeMarkers from './TimeMarkers'; import { Zone } from 'proto-all-js/deplo...
/* eslint-disable no-multi-spaces, no-magic-numbers */ import { Knex } from 'knex' import { TABLE_NAME as USERS_TABLE } from '../migrations/01_create_users_table' import { TABLE_NAME as CLASSES_TABLE } from '../migrations/02_create_classes_table' import { UserRecord } from './01_users_seeds' export type ClassRecord = ...
import { types, getEnv, clone, detach, unprotect, walk, getPath, castToSnapshot, hasParent, Instance, destroy, getParent, IAnyStateTreeNode, isStateTreeNode, isAlive } from "../../src" // tslint:disable: no-unused-expression const Todo = types .model({ ...
import * as React from "react"; import * as PropTypes from "prop-types"; import { Config } from "./Board"; import Table from "./Table"; import { getTranslate } from "../utils/getTransform"; import { addDragToSVGElement } from "../utils/addDragToSVGElement"; import { getTablePosition, setTablePosition, getContentLayout ...
<filename>test/create/mapper.test.ts<gh_stars>1-10 import * as mapper from "../../src/mapper" jest.mock("../../src/mapper") const lambdaName = mapper.lambdaName as jest.Mock const logGroupName = mapper.logGroupName as jest.Mock const filterName = mapper.filterName as jest.Mock const metricName = mapper.metricName as j...
/** * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ import { Structure, StructureElement, Unit, Bond } from '../../../mol-model/structure'; import { Elements, isMetal } from '../../../mol-model/structure/model/p...
<gh_stars>1-10 /* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you 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 re...
<reponame>maikelmclauflin/node-sinek import { CompressionTypes } from "kafkajs"; export interface KafkaHealthConfig { thresholds: { consumer: { errors: number; lag: number; stallLag: number; minMessages: number; }; producer: { errors: number; minMessages: number; }...
import { Octokit } from "@octokit/core"; import type { GraphQlQueryResponseData } from "@octokit/graphql"; import {isDryRun} from "./utils"; // gh api graphql -f query=' // query { // organization(login: "zenithdb"){ // projectNext(number: 6) { // id // } // } // }' const PROJECT_ID =...
/* eslint-disable max-len */ declare global { namespace Kloudless.filePicker { function picker(options: ChooserOptions | SaverOptions): Picker; function dropzone(options: DropzoneOptions): Dropzone; function getGlobalOptions(): BuildOptions; function setGlobalOptions(buildOptions: Partial<BuildOptio...
<reponame>jeong-sik/tui.date-picker import DatePicker, { CalendarType } from 'tui-date-picker'; /** * DatePicker */ const container = document.getElementById('container') || document.createElement('div') || '#container'; const openCloseEvents = { open: () => alert('open'), close: () => alert('close') }; con...
<reponame>JammedGame/EngineerJS<filename>app/Draw/Three/ThreeMaterialGenerator.ts<gh_stars>0 export { ThreeMaterialGenerator } import * as Three from 'three'; import * as Math from "./../../Mathematics/Mathematics"; import * as Engine from "./../../Engine/Engine"; import * as Util from "./../../Util/Util"; import { T...
import * as path from "path"; import { copyFile, mkdir, readFile, writeFile, unlink } from "fs/promises"; import fetch from "node-fetch"; import { getAllSubResources, ResourceType } from "subresources"; import { env, exit, setOutput, sh } from "./utils.js"; import { deepEqual, StaticServer } from "./utils.js"; import {...
<gh_stars>0 import '@nomiclabs/hardhat-ethers' import 'hardhat-deploy' import { BigNumber, BigNumberish, Contract, providers, Signer, utils, } from 'ethers' import { extendEnvironment, subtask } from 'hardhat/config' import moment from 'moment' import { getTokens } from '../config' import { Address } from...
<reponame>tactivos/mural-schema /* eslint-disable @typescript-eslint/no-use-before-define */ import { ArrayAst, Ast, FunctionAst, LiteralAst, ObjectAst, ObjectPropertyAst, RegExpAst, UnionAst, ValueAst, } from './ast'; import builtIns from './built-ins'; import { ArrayType, FunctionType, Invalid...
<reponame>yexing/imodeljs<filename>ui/components/src/ui-components/tree/controlled/internal/TreeSelectionManager.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for...
<filename>src.old/commands/Highlight/block.ts import { Command, CommandOptions, KlasaMessage } from 'klasa'; import { ApplyOptions } from '@skyra/decorators'; import { MessageEmbed, User, TextChannel } from 'discord.js'; import { pluralize } from '../../lib/utils/Util'; const NEEDS_ROLE = ['list', 'clear']; @ApplyOpt...
import { debounce } from 'lodash'; import { parseISO, format } from 'date-fns'; import React, { FC, useEffect, useMemo, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { getAutocompleteReport, getSelectedContacts, getReport, getCurrentPage, setPage, setReportFilterSet...
import ResizeObserver from "resize-observer-polyfill"; import React, { Component, createRef, ReactNode } from "react"; import { Root } from "./SplitView.style"; import { Bar } from "./parts/Bar"; import { Child } from "./parts/Child"; import { Manager } from "@jswf/manager"; export type SplitType = "ns" | "sn" | "we" ...
import { getLast, nonNullable, OperationType, printComment, printElseThrow, printLines, printList, printSet, } from "@linear/codegen-doc"; import { Sdk, SdkListField, SdkOperation, SdkPluginContext } from "@linear/codegen-sdk"; import { printTestHooks } from "./print-hooks"; /** * Print all tests */ ...
import React, { useState, useEffect, useRef, FunctionComponent, ReactElement } from 'react'; import { CarouselStyled, CarouselContainer, CarouselItem, CarouselArrow, CarouselSlidesContainer, Arrow, Dot, DotsList, } from './styles'; import { CurrentProps, ResponsiveCarousel, CarouselProps } from './inter...
// Parse the time to string import { analyze } from 'tern' import { ok } from 'assert' import request from '@/utils/request' import { getToken, setAllDict } from '@/utils/auth' export const parseTime = ( time?: object | string | number, cFormat?: string ): string | null => { if (time === undefined) { return n...
<filename>src/printing/dsl/js-template-interpreter.ts<gh_stars>0 import * as moment from "moment" import numeral from "numeral" import {flattenDeep} from "lodash" import {Printer} from "./../printer/abstract-printer"; import * as utils from "./../../utils" import {wrapped, basicWrap, spaces} from "./../../utils"; expo...
/** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ import { IAdaptiveCard, ICardElement } from 'adaptivecards'; // tslint:disable-next-line: no-submodule-imports import { IContainer } from 'adaptivecards/lib/schema'; import { ActivityTypes } from 'botbuilder'; import ...
import * as fxp from 'fast-xml-parser' import { fail } from './error' export function parse(input: string) { const ret = fxp.parse<{ MPD: Manifest.Mpd[] }>(input, { attributeNamePrefix: '', ignoreAttributes: false, arrayMode: true, }) const list = ret.MPD if (!list.length) { throw fail(`MPD not...
// Some methods are adapted from SirYwell/sarif-annotator repository (MIT license) // https://github.com/SirYwell/sarif-annotator/blob/main/src/main.ts // https://github.com/SirYwell/sarif-annotator/blob/main/src/qodana-converter.ts // (Source: https://github.com/SirYwell/sarif-annotator retrieved in December 2021.) /*...
import React, { useEffect, useReducer, useState } from 'react' import { useHistory } from 'react-router' import { Text } from '@react-three/drei' import { Button, PageHeader, Steps, message } from 'antd' import { BarChartOutlined, DotChartOutlined } from '@ant-design/icons' import Console, { Item, SubMenu } from '../.....
import firebase from 'firebase/app'; import 'firebase/auth'; import axios from 'axios'; import config from '../../../../config'; import { getTokenHeader } from '../GetTokenHeader'; import { ApiFail } from '../../../utils/ErrorService'; import { LoadStatus, SortValues, TRACKINGMODES } from '../../constants'; impo...
/* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable @typescript-eslint/indent */ import { TemplateRef } from '@angular/core'; import { QuestionGroup } from '../definitions/question-group'; import { IDFQuestionTableListComponent } from '../df.table.list.component'; import { ICalendarQuestion } from './qu...
<gh_stars>1-10 import { getSteedosSchema, processFilters, getObjectConfig } from '../index'; import { SteedosFieldSummaryTypeConfig, SteedosSummaryTypeValue, SteedosSummaryTypeBlankValue } from './type'; import { getObjectQuotedByFieldSummaryConfigs, getObjectFieldSummaryConfigs } from './field_summary'; import { runQu...
import {API_BASE_URL} from '@env'; import axios, {AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource} from 'axios'; import {Platform} from 'react-native'; import {getApplicationName, getVersion} from 'react-native-device-info'; import EncryptedStorage from 'react-native-encrypted-storage'; ...
import type { MongoClient, ClientSessionOptions, ClientSession, Collection } from 'mongodb'; import { ObjectId } from 'mongodb'; import type { UnionOfTuple } from './types/helpers'; import type { EventFromDatabase, EventFromClient, RecordFromResolvers } from './types/event-sourcing'; import type { TClass, ExtractCompi...
import { flatten, groupBy, map, maxBy, orderBy, round, sum, sumBy, values } from '../../plugins/lodash'; import {Bin} from 'd3-array/index'; import {extent, histogram, scaleLinear} from '../../plugins/d3'; import {groupings} from './stats/groupings'; import {ICounted} from './stats/ICounted'; import...
import { Component, Element, Event, EventEmitter, h, Prop } from '@stencil/core'; declare global { interface Window { mxGraph: any; mxConstants: any; mxEdgeStyle: any; mxHierarchicalLayout: any; mxStackLayout: any; mxEvent: any; mxUtil...
import { createGlobalStyle } from 'styled-components' import styled from 'styled-components' export const GlobalStyle = createGlobalStyle` :root { /*Colors HUE*/ --hue: 128; --hue-status-pedido-cancelado: 358; --hue-status-pedido-pendente: 209; --hue-status-pedido-f...
import { test } from 'pietr' import { assert } from 'chai' import { mkRandomArray } from '../utils' import { FingerVector, mkVector, singleton, length, isEmpty, cons, snoc, head, last, popLeft, popRight, splitAt, take, drop, elementAt, append, foldl, foldr, map } from '../../src/persistent/fi...
<filename>src/app/data-table/data-table-datasource.ts // The Matsort directive is used to listen for sorting changes and change the order of the data. import { DataSource } from "@angular/cdk/collections"; import { MatPaginator } from "@angular/material/paginator"; import { MatSort } from "@angular/material/sort"; imp...
<reponame>emanchado/lyre<filename>frontend/MapDiscoverer.ts /// <reference path="riot-ts.d.ts" /> import PencilTool from "./tools/PencilTool"; import RectangleTool from "./tools/RectangleTool"; import MarkerTool from "./tools/MarkerTool"; import MoveMarkerTool from "./tools/MoveMarkerTool"; import DiscoverableMap from...
import { useColorMode } from "@chakra-ui/color-mode"; import { Box, Flex, Heading, Text } from "@chakra-ui/layout"; import { Select } from "@chakra-ui/select"; import { useToast } from "@chakra-ui/toast"; import "codemirror/lib/codemirror.css"; import "codemirror/theme/solarized.css"; import { Editor } from "codemirror...
import { ActionHandlersRegistry } from './ActionHandlersRegistry'; import { IContext, IDelegatedParameters, IFlow, IFlowLocationOptions } from '../interfaces'; import { load, dump } from 'js-yaml'; import * as ejs from 'ejs'; import { ActionHandler, ActionSnapshot, EnabledActionSnapshot } from '../models'; import { Con...
/*! * V4Fire Core * https://github.com/V4Fire/Core * * Released under the MIT license * https://github.com/V4Fire/Core/blob/master/LICENSE */ /** * [[include:core/object/proxy-clone/README.md]] * @packageDocumentation */ import { unimplement } from 'core/functools/implementation'; import { NULL } from 'core...
<reponame>connor-hitchcock/S302-Food-Ecommerce-Leftovers<filename>frontend/tests/unit/api/internal.spec.ts import axios, { AxiosError, AxiosInstance, AxiosRequestConfig } from 'axios'; import * as api from '@/api/internal'; import { AxiosResponse } from 'axios'; import { CreateProduct, CreateUser, InventoryItem, Maybe...
<reponame>pgonzaleznetwork/salto /* * Copyright 2022 Salto Labs 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 *...
<gh_stars>0 import { FileHelper } from "./file-helper"; import { SVGDocument } from "../common/svg-document"; import { Message } from "../common/message"; import { Text } from "../common/text.en"; const { JSDOM } = require("jsdom"); export const { document } = (new JSDOM("<!DOCTYPE html><html><body></body></html>"))....
//<editor-fold desc="static scroll utils"> import {DragImageTranslateOverrideFn, Point} from "./index"; interface ScrollIntentions { horizontal: ScrollIntention; vertical: ScrollIntention; } interface IScrollBounds { x: number; y: number; width: number; height: number; scrollX: number; ...
import { ReactNode, useCallback, useEffect, useState } from "react"; import OpenColor from "open-color"; import { Dialog } from "./Dialog"; import { t } from "../i18n"; import { ToolButton } from "./ToolButton"; import { AppState, LibraryItems, LibraryItem } from "../types"; import { exportToCanvas } from "../packag...
<filename>src/core/messages/DraftBotShopMessage.ts import {DraftBotReactionMessage} from "./DraftBotReactionMessage"; import {DraftBotReaction} from "./DraftBotReaction"; import {TranslationModule, Translations} from "../Translations"; import {Constants} from "../Constants"; import {User} from "discord.js"; import {Dra...
import React, { CSSProperties, ReactElement, useState } from 'react'; import { Badge, Button, Flex, FlexItem, Switch, TextInput } from '@patternfly/react-core'; import { AngleDownIcon, AngleUpIcon } from '@patternfly/react-icons'; import { TableComposable, Tbody, Td, Thead, Th, Tr, TreeRowWrapper } from '@patternfly/re...
<gh_stars>0 import * as mapboxgl from 'mapbox-gl'; import { LngLatBoundsLike } from 'mapbox-gl'; import v4 from 'uuid'; import haversine from 'haversine'; import markerUrl from './marker.png'; import { store } from './store'; import { MapMarker } from './types'; (mapboxgl as any).accessToken = process.env.MAPBOX_ACCES...
import type {CopySelection} from 'app/client/components/CopySelection'; import {get as getBrowserGlobals} from 'app/client/lib/browserGlobals'; import type {KoArray} from 'app/client/lib/koArray'; import {simpleStringHash} from 'app/client/lib/textUtils'; import type {ViewFieldRec} from 'app/client/models/DocModel'; im...
/** * Copyright (c) 2020 SUSE LLC * * 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 to * use, copy, modify, merge, publish, ...
import { RenderingDevice, RenderPass } from 'mugl'; import { ReadonlyVec4, vec3 } from 'munum'; import { OrthoCamera, Screen, SpritesRenderer, UICamera, UIRenderer } from '../core'; import { Action, mapGamepadActions, mapKeyToAction } from './action'; import { createHero, GREY_TEXT_COLOR, Hero, Sprite, TEXT_COLOR, UISp...
<filename>mobile-browser-based-version/src/logic/communication/decentralised/decentralised_client.ts import msgpack from 'msgpack-lite' import { makeID, authenticate } from '../authenticator' import { assignWeightsToModel, serializeWeights } from '../tensor_serializer' import { checkBufferUntil, checkBufferWei...
import React from 'react' import sigma from 'react-sigma'; import { initShownFilter } from './FilteringData'; export function embedProps(elements, extraProps) { return React.Children.map(elements, (element) => React.cloneElement(element, extraProps)) } type State = { loaded: boolean, initColors:...
/* * Copyright 2021 Inrupt 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 rights to use, * copy, modify, merge, publish, di...
// actionOrder.ts // 行動準補助関数 import { Place } from './interfaces'; const colWeight = (col: number): number => { if (col < 0) { return -1 / col; } else { return -col; } }; export const createPlaceList = (lap: number): Place[] => { let list: Place[] = []; for (let col = -lap; col <= lap; col++) { ...
import * as dotenv from 'dotenv'; import { PrismaClient, ConnectionStatus, TUser } from '@prisma/client'; import { mainModule } from 'process'; import { TwitterApi, TwitterRateLimit, ApiResponseError, UserV2, ApiRequestError, TweetV2, } from 'twitter-api-v2'; dotenv.config(); const prisma = new PrismaClien...
<gh_stars>0 import { Address } from "@ganache/ethereum-address"; import { utils, Quantity, Data } from "@ganache/utils"; import type { LevelUp } from "levelup"; import Blockchain from "../blockchain"; import AccountManager from "../data-managers/account-manager"; import { GanacheTrie } from "../helpers/trie"; import su...
/*----------------------------------------------------------------------------------------------- * Copyright (c) Red Hat, Inc. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. *---------------------------------------------------------------------...
import { EventEmitter } from '@angular/core'; import { SimPhaseState, Vector2, TileDirection } from './common'; import { TileModel } from './tile.model'; import { GridCellModel } from './grid-cell.model'; import { SimPhaseStateHandler } from './sim-phase-state-handler'; // Tile transition import { LinearTileTransition...