text
stringlengths
3.08k
15.5k
import React, { useState } from 'react'; import styled from 'styled-components'; import PhaseTemplate from '@components/common/PhaseTemplate'; import BaseSlider from '@components/common/BaseSlider'; import Button from '@components/atoms/Button'; import ToggleTab from '@components/common/ToggleTab'; import { INSTALLMEN...
<gh_stars>0 /** * @license * Copyright 2020 Google 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 app...
<reponame>bdgoddard/mdhccs<filename>src_softcore/synth.ts import { myPrimestat, print, sweetSynthesis, useSkill, } from "kolmafia"; import { $class, $effect, $familiar, $item, $location, $skill, $slot, $stat, get, have, Macro, } from "libram"; import { p...
<gh_stars>0 import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { Frame } from '../types'; import { genRandomId } from '../utils'; import { defer, Observable, Subject } from 'rxjs'; import { delay, takeUntil, tap } from 'rxjs/operators'; import * as d3 from 'd3'; interface ChartFrame extends Fr...
<filename>src/main/MainWindowPreload.ts import { SharedSocket } from '@shared/back/SharedSocket'; import { BackIn, BackOut, GetRendererInitDataResponse, OpenDialogData, OpenDialogResponseData, OpenExternalData, OpenExternalResponseData, WrappedResponse } from '@shared/back/types'; import { InitRendererChannel, InitRend...
<reponame>oussamabay/App-Front<gh_stars>0 import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { Subject, Observable } from 'rxjs'; import { map, catchError } from 'rxjs/operators'; import {Http, Response, Headers, RequestOptions} from '@angular/http'; import { environment } from...
import { ICanvasContext2D } from "../../share/CanvasContext2D"; import { Align, CustomFilter, CustomSort, ICanvasTableColumn, ICanvasTableColumnConf, ICanvasTableColumnSort, Sort } from "../../share/CanvasTableColum"; import { CanvasTableEditAction } from "../../share/CanvasTableEditAction"; import { CanvasTableMo...
<gh_stars>1-10 import _get from 'lodash/get'; import _template from 'lodash/template'; import _orderBy from 'lodash/orderBy'; import { runInAction, computed, reaction, action } from 'mobx'; import { observable } from 'mobx'; import moment from 'moment'; import config from 'src/config'; import i18n from '../i18n'; impo...
<filename>src/actions/TableActions.ts import { sortDirection } from "../assets/icons/Icon"; import { stat } from "fs"; interface Pagination { currentPage: number; rowSize: number; totalPages: number; inputtedPage: number; } interface Row { isOpen: boolean } interface State { rows: Array<Row>,...
import { Emitter, Event } from "../common/emitter"; import { Config, RenderTarget } from "./config"; import { Log } from "../common/logging"; import { Runtime, RuntimeEmitEvent, RuntimeInvalidateEvent } from "./runtime"; import { ModuleCompiler, ModuleCompilerDeleteEvent } from "./module-compiler"; import { Disposable,...
import Command from "@cmd/Command"; import { emojis } from "@config"; import EmbedBuilder from "@util/EmbedBuilder"; import EventsASecondHandler from "@handlers/EventsASecondHandler"; import db from "@db"; import { Strings } from "@uwu-codes/utils"; import Timer from "@util/Timer"; const Redis = db.r; export default n...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /* eslint-disable @typescript-eslint/no-unused-vars */ import { type as osType } from 'o...
import { NotionResponse } from '..' import { NotionObject, Emoji, Color } from './global' interface BlockBase extends NotionObject { object: 'block' /** Type of block. */ type: string /** Whether or not the block has children blocks nested within it. */ has_children: boolean } interface ChildlessBa...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as IconButton from '../../ui/components/icon_button/icon_button.js'; import * as UI from '../../ui/legacy/legacy.js'; import type * as ElementsCo...
<filename>packages/virtual-list/src/VariableSizeList.ts import { CallbackFunction, ListManager, ScrollAlignment } from "./List.types"; import { getAlignedOffset } from "./ListStrategy"; type ItemMetadata = [offset: number, size: number]; export function findNearestItemBinarySearch( getItemOffset: (index: number) =>...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* eslint-disable react-native/no-inline-styles */ import React, { useMemo, useEffect, useState } from 'react'; import { StyleProp, ViewStyle, StyleSheet, Dimensions, Modal, } from 'react-native'; import { TouchableWithoutFeedback } from 'react-native-gesture-handler'; import Animated, { Easing, Value, ...
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-nocheck // This file is entry point for PLV8 procedure for Postgresql Ecmascript engine // This entry point should never be executed in NodeJS or browser environment // See more documentation here https://plv8.github.io/ import { splitNestedPath } fro...
import * as React from 'react'; import { Announced } from 'office-ui-fabric-react/lib/Announced'; import { DetailsList, DetailsListLayoutMode, Selection, IColumn, IDetailsList, IDetailsRowProps, DetailsRow } from 'office-ui-fabric-react/lib/DetailsList'; import { MarqueeSelection } from 'office-ui-fabric-...
import { getTokenIdFromTx, getValidatorEthAccount, factoryCallAny, Fixture, } from "../setup"; import { ValidatorRawData } from "../ethdkg/setup"; import { ethers } from "hardhat"; import { BigNumber, ContractTransaction } from "ethers"; interface Contract { StakeNFT: number; ValNFT: number; MAD: number;...
import { Button, Select, Tooltip, message } from 'antd'; import React, { useEffect, useRef, useState } from 'react'; import intl from 'react-intl-universal'; import { observer } from 'mobx-react-lite'; import { trackEvent, trackPageView } from '@app/utils/stat'; import { useStore } from '@app/stores'; import Instructio...
/** * 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 applicable law or agreed to...
<filename>node_modules/ng5-slider/slider.component.d.ts import { OnInit, AfterViewInit, OnChanges, OnDestroy, ElementRef, Renderer2, EventEmitter, TemplateRef, ChangeDetectorRef, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { Options } from './options'; import { Ch...
import { CharacteristicCard } from "../../chat/characteristicCard"; import { RqgActor } from "../rqgActor"; import { Characteristic, Characteristics } from "../../data-model/actor-data/characteristics"; import { activateChatTab, getDomDataset, getGame, getGameUser, localize, localizeCharacteristic, requir...
import * as datatypes from "./datatypes"; import { LocalFileWithPreview, PipelineData, PipelineDataAggregatorID, PipelineDataKey, PipelineDataLoaderID, PipelineName } from "./datatypes"; import {ReactNode} from "react"; import {ModuleID} from "./uitypes"; import {Parameter, ParameterKey} from "....
import { Knex } from 'knex'; import { TimeStampUnit, TransactionKindString, TransactionStatus, TransferTransaction, } from '~/utils/types'; import databaseNames from '~/constants/databaseNames.json'; import { knex } from '~/database/knex'; import { chunkArray, partition } from '~/utils/basicHelpers'; im...
import { Injectable } from '@angular/core'; import { RequestService } from '@shared/request/request.service'; import { map } from 'rxjs/operators'; import { Observable, of } from 'rxjs'; import { UtilsService } from '@services/utils.service'; import { PusherService } from '@shared/pusher/pusher.service'; import { envir...
#!/usr/bin/env node /** * "Local Turk" server for running Mechanical Turk-like tasks locally. * * Usage: * * localturk [--options] template.html tasks.csv outputs.csv */ import * as bodyParser from 'body-parser'; import * as errorhandler from 'errorhandler'; import * as express from 'express'; import * as fs ...
/// <reference path="../external/typings.d.ts" /> import * as React from 'react'; import setData from '../GRN.json' import {ANTLRErrorListener, ANTLRInputStream, CommonTokenStream, RuleContext} from "antlr4ts"; import {mtgLexer} from "../generated/mtgLexer"; import {CardContext, mtgParser} from "../generated/mtgParser"...
export interface Task { dueDate: Date; } import {bindable, inject} from 'aurelia-framework'; import * as Moment from 'moment'; @inject() export class Edit { @bindable picker; @bindable selectCamping; @bindable selectCondiment; @bindable selectStyledCondiment; @bindable selectPicnic; @bindable tag; tas...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { BasicHighChart, calculateBoxPlotDataFromErrorCohort, defaultModelAssessmentContext, ErrorCohort, JointDataset, ModelAssessmentContext } from "@responsible-ai/core-ui"; import { localization } from "@responsible-ai/localizat...
<reponame>stronghold-financial/stronghold<filename>stronghold/src/network/messageRouters/rpc.ts /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { createRo...
import itemsPlanningModalPage, { ListObject, } from './ItemsGroupPlanningModal.page'; import { PageWithNavbarPage } from '../PageWithNavbar.page'; import { generateRandmString, getRandomInt, selectDateOnDatePicker, } from '../../Helpers/helper-functions'; import itemsGroupPlanningModalPage from './ItemsGroupPla...
<reponame>onset/digame /* The functions here take a matrix that has already been mapped and validated and shown to the user, and do the actual import. */ import { FieldDefinition } from "../../model/field/FieldDefinition"; import { Session } from "../../model/Project/Session/Session"; import { Field } from "../....
<reponame>Wellenline/waveline-server import { AlbumModel } from "@src/models/album"; import { ArtistModel } from "@src/models/artist"; import { GenreModel } from "@src/models/genre"; import { Scan, ScanModel } from "@src/models/scan"; import { Track, TrackModel } from "@src/models/track"; import { watch as dirWatch } f...
<reponame>ycabon/wildfire-viz-app import { createSlice, createSelector } from '@reduxjs/toolkit'; import { RootState, StoreDispatch, StoreGetState } from '../configureStore'; export enum WildfireFeatureFields { OBJECTID = 'OBJECTID', IrwinID = 'IrwinID', GlobalID = 'GlobalID', Uni...
<filename>packages/core/src/metadata/MetadataInfo.ts<gh_stars>0 //TODO: Replace with SDR import * as _ from 'lodash'; import * as path from 'path'; import * as fs from 'fs-extra'; export const SOURCE_EXTENSION_REGEX = /\.[a-zA-Z]+-meta\.xml/; const SPLITED_TYPES = { CustomField: { suffix: 'field', ...
<filename>src/Iterable.ts import { Merger, Predicate, Reducer, Option, Transform, Dict } from './constants' import hash, { combineHashes, murmurHash } from './util/hash' import reduce from './iterableHelpers/reduce' import filter from './iterableHelpers/filter' import { find, findEntry, findKey } from './i...
import React, { createContext, useContext, useState, useEffect, useCallback, } from 'react'; import { isToday, differenceInMinutes } from 'date-fns'; import api from '../services/apiClient'; export interface Coordinates { lat: number; lon: number; } interface PlacesContextData { myCity: ShortCityWeat...
<filename>src/system/tsxBuilder.ts<gh_stars>0 import { StatePath, StatePathBase, StateSpy } from './state'; import { Action2Base } from './actions'; export type ValueAttributes = { [name: string]: string | number | boolean }; export interface ElementInstance { setAttributes(attributes: ValueAttributes): void; ...
import { readdirSync, statSync } from "fs"; import { join } from "path"; import { addEndSlash, getAbsolutePathForURL } from "../utils/fileUtils"; import { getFileIcon, ICONS } from "../utils/Icons"; interface ListElement { icon: string href: string name: string size: string lastModified: string } const units = [...
import React from "react"; import styled, { withTheme } from "styled-components"; import { IconProp } from "@fortawesome/fontawesome-svg-core"; import { colourPalette, IColourPalette } from "../../../brandColours"; import Icon from "../Icon/Icon"; import { buttonStyles, ButtonStyle } from "./buttonStyles"; export type...
import { createStore, Commit } from 'vuex' import axios, { AxiosRequestConfig } from 'axios' import { arrToObj, objToArr } from '@/utils/helper' export interface ResponseType<T > { code: number msg: string data: T } export interface ImageProps { _id?: string url?: string createdAt?: string fitUrl?: stri...
/** * Copyright © 2021 Johnson & Johnson * * 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...
<reponame>deflaux/workbench import { DataAccessLevel, FileDetail, ResearchPurposeReviewRequest, ShareWorkspaceRequest, UserRole, Workspace, WorkspaceAccessLevel, WorkspaceListResponse, WorkspaceResponseListResponse, WorkspacesApi, WorkspaceUserRolesResponse } from 'generated/fetch'; import * as fp from '...
import { readMarkdownFile } from 'src/base/node/io'; import * as fs from 'fs'; import * as Path from 'path'; import { EVENT_EMITTER } from 'src/base/common/event'; import { NoteBookManager } from 'src/code/common/model/notebookManager'; import { File } from 'src/base/common/file/file'; import { getBuiltInIconClass } f...
import * as Result from "./Result"; import * as AsyncData from "./AsyncData"; export { // Types Maybe, T, // Constructors Just, Nothing, // Typeguards isJust, isNothing, // Conversions fromResult, fromAsyncData, fromNullable, fromPromise, fromPredicate, fromFalsy, toNullable, toResu...
import React from 'react' import { useDispatch, useSelector } from 'react-redux' import { Stack, Flex, Heading, Text, Button, Box } from '@intouchg/components' import { Color, BorderWidth, Font, FontSize, LineHeight, LetterSpacing, Radius, Shadow } from '../../ThemeValues' import { ModalBackground } from '../../ModalBa...
<gh_stars>0 import { hideElement, showElement } from '../helpers/elemHelper'; import { addChangeReminder } from '../helpers/buttonHelper'; import { addSelector, clearSelectors } from '../helpers/selectHelper'; import { setImportStatus } from '../helpers/importStatusHelper'; import { ImportStatus } from 'types/enums/imp...
import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { Paper, Button, HeadingLevelTwo, Radio, Input, Select, } from 'components/common'; import styles from './styles.module.scss'; import history from 'browserhistory'; import { getData, sendMessages, saveMessages ...
import EsriMap from "esri/Map"; import MapView from "esri/views/MapView"; import FeatureLayer from "esri/layers/FeatureLayer"; import LayerList from "esri/widgets/LayerList"; import Compass from "esri/widgets/Compass"; import ScaleRangeSlider from "esri/widgets/ScaleRangeSlider"; import Search from "esri/widgets/Search...
<reponame>Siglud/TeamsFx // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { assembleError, err, FxError, Inputs, ok, Platform, Result } from "@microsoft/teamsfx-api"; import AdmZip from "adm-zip"; import axios, { AxiosResponse } from "axios"; import * as fs from "fs-extra"; import { glo...
import chalk from "chalk"; import stripColor from "strip-ansi"; import { config } from "./config"; import { MakfyError, RunError } from "./errors"; import * as execRuntime from "./execRuntime"; import { ParsedArgDefinition } from "./parser/commandArg"; import { parseCommands } from "./parser/commands"; import { parseOp...
<filename>src/targets/browser/frames.ts // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import Cdp from '../../cdp/api'; import { URL } from 'url'; import * as path from 'path'; import { EventEmitter } from '../../common/events'; export class FrameModel { private _mainFrame?: Frame; pri...
<reponame>wolfejw86/sourced-repo-dynamodb import { Entity } from 'sourced'; import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; import { DynamoDBDocumentClient, TransactWriteCommand, TransactWriteCommandInput, QueryCommand, PutCommand, } from '@aws-sdk/lib-dynamodb'; interface TEntityType<TEntity exte...
/* * Copyright 2020 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 * * Unless required by applicable ...
import {Page} from 'puppeteer' import {shorter} from '../util' import {ToHaveOptions, ExtractAs, ToHaveAttribute} from './types' import {compareText, compareWithMultiplicity} from './toHaveUtil' export class ToHave { constructor(protected context: jest.MatcherUtils) {} async toHave(page: Page, options: ToHaveOpti...
<gh_stars>0 import $ from 'jquery'; import { Item } from "./dto/item"; const BASE_API = 'http://localhost:8080/pos'; const ITEMS_SERVICE_API = `${BASE_API}/items`; const PAGE_SIZE = 6; let items: Array<Item> = []; let totalItems = 0; loadAllItems(); function loadAllItems(): void { const http = new XMLHttpRequ...
import { CalendarHeader } from './CalendarHeader'; import { PresentDateMixin, DisplayedDateMixin, DateSelectionMixin } from './mixins'; import { mixins } from 'vue-class-component'; import { MonthPicker, YearPicker, DayPicker } from './Pickers'; import { Props as DateSelectionProps } from './mixins/DateSelection'; impo...
import { Component, OnInit } from '@angular/core'; import { NgForm } from '@angular/forms'; import * as _ from 'lodash' import { Subject } from 'rxjs'; import { debounceTime } from 'rxjs/operators'; import { FilterPipe } from 'ngx-filter-pipe'; import * as jsPDF from 'jspdf' import autoTable from 'jspdf-autotable' in...
<reponame>decentro-gmbh/pm2-rpc-api import * as bodyParser from 'body-parser'; import * as express from 'express'; import { Server } from 'http'; import * as morgan from 'morgan'; import * as nconf from 'nconf'; import { Writable } from 'stream'; import { generateAuthMiddleware } from './authentication'; import { HTTP,...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Backend buckets allow you to use Google Cloud Storage b...
import { AfterViewInit, ChangeDetectorRef, Component, Input, OnInit } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { Router } from '@angular/router'; import { XmAlertService } from '@xm-ngx/alert'; import { XmEventManager } from '@xm-ngx/core'; import { JsfAttributes } from '@x...
<gh_stars>10-100 import { gql } from "apollo-server"; import { ID, HasID, Map, mapsQuery, SenseObject, objectsQuery, Card, cardsQuery, Box, boxesQuery, Edge, edgesQuery } from "./sql"; import * as T from "./transaction"; import * as A from "./oauth"; export type MapFilter = { id?: ID; }; typ...
<reponame>kant/platform-services-registry<gh_stars>0 // // Copyright © 2020 Province of British Columbia // // 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/licens...
import React, { useMemo, useState } from 'react'; import { useColorScheme, StyleSheet, Text, View, TextInput, Keyboard, Modal, TouchableWithoutFeedback, KeyboardAvoidingView, Platform, TouchableOpacity } from 'react-native'; import { MaterialIcons } from '@expo/vector-icons'; import { t } from 'i1...
<gh_stars>0 import { Component, Input } from '@angular/core'; import { TreeNode, TREE_ACTIONS, KEYS, IActionMapping } from 'angular2-tree-component'; const actionMapping:IActionMapping = { mouse: { dblClick: (tree, node, $event) => { if (node.hasChildren) TREE_ACTIONS.TOGGLE_EXPANDED(tree, node, $event); ...
<gh_stars>1-10 import { NetworkManager, Page, Protocol } from "puppeteer"; import { sleep } from "../utils/basics"; import { logger } from "../utils/logger"; import { isPageClosed } from "./error-management"; const util = require('util') // type CDPRequest = Protocol.Network.RequestWillBeSentEvent | // ...
import { loader_mgr } from "../loader/loader_mgr"; import { gen_handler } from "../util"; const EVENT_PARTICLE_ASSET_LOADED = "EVENT_PARTICLE_ASSET_LOADED"; const BasePathForParticle = (path:string) => { return `particles/${path}`; }; export class ParticleFactory { private static _inst:ParticleFactory; pr...
<filename>src/scheduler/scheduler.ts import { createWorker, Worker } from '../worker'; import { Request, Response, isResponse, createRequest, ErrorResponse, isErrorResponse, isRequest } from '../Procedures/procedure'; import { UniqueID } from '../Procedures/uniqueId'; import { elapsedTimeMsFrom } from '../timer'; cons...
/* * Copyright 2018 Uncharted Software Inc. */ /// <reference path="../types/PowerBI-Visuals-2.6.0.d.ts" /> import DataView = powerbi.DataView; import IVisualHost = powerbi.extensibility.IVisualHost; import * as utils from './utils'; import * as moment from 'moment'; import { HTML_WHITELIST_SUMMARY, HTML_WHITELIST...
// MIT License // // Copyright (c) 2016-2018 GenesisKernel // // 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...
<reponame>civinomics/civ-sandbox import * as functions from 'firebase-functions'; import { Event } from 'firebase-functions'; import * as admin from 'firebase-admin'; import { DeltaSnapshot } from 'firebase-functions/lib/providers/database'; import { getEmailTransport, initializeAdminApp } from './_internal'; import { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import utils from './utils' //#region Options /** Global default options */ export interface Options { classPrefix?: string // Is stroke default isStroke?: boolean isOriginalDefault?: boolean /** 16px, defined in css */ defaultWidth?: string defaultHeight?: string } //#endregion Options ex...
import * as vscode from 'vscode'; import { CheckManager } from './check_manager'; import { TfsecIssueProvider } from './explorer/issues_treeview'; import { TfsecTreeItem, TfsecTreeItemType } from './explorer/tfsec_treeitem'; let timeout: NodeJS.Timer | undefined = undefined; let activeEditor = vscode.window.activeText...
import {createParserStateMachine, ParsedTransaction, PdfParse, ParsedOutput} from './base-parser'; import {DEBUG} from '../config'; import {dateFromSlashFormat, dateWithinRange} from '../util/date'; import {flatten2dArray} from '../util/array'; import {parsePageItems} from 'pdf-text-reader'; import {Overwrite} from '.....
<reponame>FutureCityProjects/fcp-webclient import Cookie from "js-cookie" import Router from "next/router" import { all, call, delay, put, select, takeEvery, takeLatest } from "redux-saga/effects" import apiClient from "api/client" import { AuthActionTypes, ILoginAction, ILogoutAction, loginSuccessfulAction, ...
import { Button, Container, DropdownItem, DropdownMenu, DropdownToggle, Input, InputGroup, InputGroupAddon, InputGroupButtonDropdown, InputGroupText, Table } from 'reactstrap'; import { useSelector } from 'react-redux'; import format from 'date-fns/format'; import { useState } from 'react'; import { FiTrash2, FiEdit, F...
import { ShellModel } from '../shell/data-store'; export interface User { user_id: string; email: string; fullname: string; date_of_birth: string; gender: string; contact_no: string; address: string; marital_status: string; country: string; province: string; summary: string; job_title: string; ...
import type * as Stitches from '@stitches/react'; import { createStitches } from '@stitches/react'; const gray = { gray1: '#fcfcfc', gray2: '#f6f6f6', gray3: '#f3f3f3', gray4: '#ededed', gray5: '#e8e8e8', gray6: '#e2e2e2', gray7: '#dbdbdb', gray8: '#c7c7c7', gray9: '#737373', gray10: '#2f2f2f', g...
// Copyright 2020 Prescryptive Health, Inc. import React, { useState, useEffect, useRef } from 'react'; import renderer, { act } from 'react-test-renderer'; import { SmartpriceModal } from './smartprice-modal'; import { smartpriceModalStyles } from './smartprice-modal.styles'; import { View, Animated, Modal, ScrollVie...
import * as api from "../api/schema/objects"; import * as is from "../is"; import * as observers from "../observers"; import * as xnode from "../xnode"; const CSS = ``; export class EntityLinkFactory { private navigator: (url: string) => void; private contextMenuEntity: observers.ObservableClass<api.EntityBase | un...
import { spawn, ChildProcess } from 'child_process' import pidusage from 'pidusage' import { EventEmitter } from 'events' import chalk from 'chalk' // const LOAD_MEASUREMENTS_INTERVAL = 60 * 1e3 // every minute const LOAD_MEASUREMENTS_INTERVAL = 1e3 // every 10 seconds let cnt = 0 export default class ProcessManager ...
<reponame>ssonder/aliyun-image<gh_stars>0 import _ from 'lodash' import { sprintf } from 'sprintf-js' import Session from '../common/session' import { LabelTypes } from '../common/types' import { State } from '../functional/types' import { Size2D } from '../math/size2d' import { Vector2D } from '../math/vector2d' impor...
/** * The MIT License * * Copyright (c) 2018 Google 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, m...
import styles from "../Whitepaper.module.scss"; import th from "assets/image/treasurehunt.png"; import gq from "assets/image/ghostquest.png"; import mj from "assets/image/mahjong.png"; import zr from "assets/image/zodiacracing.png"; import md from "assets/image/quiz.jpg"; import fh from "assets/image/fishhunt.jpg"; co...
import { Component, OnInit, HostBinding, Input } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Spec, Path, Schema, Parameter } from 'swagger-schema-official'; import { FormGroup, FormBuilder, FormArray } from '@angular/forms'; import { TryAPIService } from '../services/tryapi.service...
<filename>src/commands/corona.ts<gh_stars>1-10 import * as CommandSystem from 'cumsystem'; import * as Discord from 'discord.js'; import * as util from '../lib/util'; import { NovelCovid } from 'novelcovid'; const track = new NovelCovid(); async function getStats(content: string) { let stats; if (content) { stat...
import { Trip, TripStatus } from "./trip"; import { v4 as uuid } from 'uuid'; import { EventRecord, EventType } from "./records"; import { Iot, IotData, Firehose } from "aws-sdk"; /** * Configures the simulator to create a proper simulation */ export interface SimulatorProps { /** * Name of the Kinesis Firehos...
<reponame>auaprojects/EcoCyc import { RequestService } from './../request.service'; import { Router } from '@angular/router'; import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { AlertController, LoadingController, ToastController } from '@ioni...
import { getColorFromRGBA, IColor } from '@fluentui/react'; import { CameraConfigurationType, ChromatinRepresentation, OrbitCameraConfiguration, OrthoCameraConfiguration, SmoothCameraConfiguration } from '../../graphics'; import { DataID } from './data'; import { SelectionID } from './selections'; const blackBackgroun...
import { Buffer } from 'buffer' import { BehaviorSubject, filter, firstValueFrom, map, mapTo, Observable, Subject, Subscription, take, takeUntil, tap, timeout, } from 'rxjs' import SerialPort from 'serialport' import Stream from 'stream' import { RxSerialPort } from './Rx...
<reponame>aws-samples/aws-startup-blueprint import core = require("@aws-cdk/core"); import sc = require("@aws-cdk/aws-servicecatalog"); import s3 = require("@aws-cdk/aws-s3"); import ec2 = require("@aws-cdk/aws-ec2"); import log = require('@aws-cdk/aws-logs'); import iam = require("@aws-cdk/aws-iam"); import cfn = requ...
/* tslint:disable:no-implicit-dependencies no-any no-duplicate-string */ import * as webpack from 'webpack'; import { StaticImportWebpackPlugin } from '.'; import MemoryFS = require('memory-fs'); const fs = new MemoryFS(); async function compile(customOptions = {}) { const options = Object.assign({ contex...
<gh_stars>1-10 // import { NativeDateAdapter } from "@angular/material/core"; // import { MatPaginatorIntl } from '@angular/material/paginator'; import moment from 'moment'; export const momentDateFormat: string = 'YYYY-MM-DD'; /** * Date range */ export enum StatisticsDateRangeEnum { CurrentMonth = 1, Previ...
import { Agent } from 'http'; import { format as URLFormat, URL } from 'url'; import * as FormData from 'form-data'; import fetch, { BodyInit, Headers, HeadersInit, Request as FetchRequest, RequestInit, RequestRedirect, } from 'node-fetch'; import { AbortSignal } from 'node-fetch/externals'; import { HT...
<filename>lib/box2D.ts/dynamics/b2Body.d.ts<gh_stars>0 import { b2Sweep, b2Transform, b2Vec2, XY } from '../common/b2Math'; import { b2MassData, b2Shape } from '../collision/shapes/b2Shape'; import { b2ContactEdge } from './contacts/b2Contact'; import { b2JointEdge } from './joints/b2Joint'; import { b2Fixture, b2IFixt...
import { preferNative as matchAll } from "string-match-all"; import CarakanHelper from "../helpers/CarakanHelper"; import { SyllableBuilder } from "../helpers/SyllableBuilder"; import { CarakanConst } from "../constants/constants"; /* TYPES */ interface CarakanConfig { useAccents?: boolean; useSwara?: boolean; u...
import * as React from 'react'; import styled from 'styled-components'; import * as Draggable from 'react-draggable'; import { BaseButtonTool, IBaseButtonToolProps } from './BaseButtonTool'; const Window = styled.div` position: absolute; top: 0; left: 0; border: 1px solid #cccccc; border-radius: 3px; backg...