text
stringlengths
3.3k
33k
<filename>packages/engine/src/renderer/materials/constants/Cubes.mat.ts import { ShaderMaterial } from 'three' import { MaterialParms } from '../MaterialParms' const vertexShader = ` varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1); } ` const fra...
import { Client, SFTPWrapper } from "ssh2"; import { Stats } from "ssh2-streams"; import { readFileSync, mkdirSync, existsSync } from "fs"; import { homedir } from "os"; let conn; var connected = false; const connPromises: any[] = []; const closePromises: any[] = []; function connect(password?: string, sshKeyPath?: s...
import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { FormBuilder, FormControl, Validators, FormGroup } from '@angular/forms'; import { Camera, CameraOptions } from '@ionic-native/camera/ngx'; import { ActionSheetController, LoadingController } from '@ioni...
<filename>js/stores/helpers/boundary-utils.ts import { toCartesian, toSpherical, getNorthVector } from "../../geo-utils"; import getGrid from "../../plates-model/grid"; import { BoundaryType, IBoundaryInfo, IHotSpot } from "../../types"; import FieldStore from "../field-store"; import ModelStore from "../model-store"; ...
<reponame>danbenn/swordjs import * as types from './types'; const sax = require('sax'); const parser = sax.parser(true); // strict = true const defaultFilterOptions = { headings: true, footnotes: true, crossReferences: false, strongsNumbers: true, indentation: true, wordsOfChristInRed: false, oneVerseP...
import { h, Component, RenderableProps, Fragment } from 'preact'; import * as styles from './styles.module.css'; import * as utilStyles from '../../../utils.module.css'; import 'add-css:./styles.module.css'; import { aiPlay, analyzeGuess, getGuessesColors, getInvalidWords, } from './analyzer'; import { AIPlay...
<gh_stars>10-100 // [Smoosic](https://github.com/AaronDavidNewman/Smoosic) // Copyright (c) <NAME> 2021. import { htmlHelpers } from '../../common/htmlHelpers'; import { SmoScore } from '../../smo/data/score'; import { mxmlScore } from '../../smo/mxml/xmlScore'; import { SmoMeasure } from '../../smo/data/measure'; impo...
<gh_stars>0 import * as utils from "@iobroker/adapter-core"; import { exec } from "child_process"; import { EventEmitter } from "events"; import { applyCustomObjectSubscriptions, applyCustomStateSubscriptions } from "./lib/custom-subscriptions"; import { Global as _ } from "./lib/global"; import { extendChannel, extend...
<reponame>zackarychapple/meta-ui import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {Component} from '@angular/core'; import {By} from '@angular/platform-browser'; import {AwNameDirective} from '../../../src/core/aw-name/aw-name.directive'; import {AwNameStore} from '../../../src/core/aw-nam...
import { AtRule, Declaration, Root } from "postcss" import postcssValueParser from "postcss-value-parser" import { deprecatedTokenReplacements } from "../../deprecatedTokens" import { cantReplaceDeprecatedTokenInAtRuleMessage, cssVariableUsedWithinUnsupportedFunction, deprecatedTokenInVariableMessage, deprecate...
/* * Copyright (c) 2020, 2022, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, * as published by the Free Software Foundation. * * This program is also distributed with certain software (in...
import { useContext, useEffect, useState } from "react"; import { useRouter } from "next/router"; import Image from "next/image"; import { useMediaQuery } from "react-responsive"; import { i18nContext } from "../../../../utils/i18nContext"; import SkillPanel from "../../../../components/SkillPanel"; import PageWithSkil...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, ContentChild, Component, ElementRef, EventEmitter, Input, NgZone, OnDestroy, OnInit, Output, QueryList, Renderer2, ViewChi...
import * as React from 'react'; import {createPortal} from 'react-dom'; import * as PropTypes from 'prop-types'; import {autobind} from 'core-decorators'; import {isEqual, flatten, debounce, keyBy} from 'lodash'; import {Field} from '../List/Field'; import {FieldSet} from '../List/FieldSet'; import {ListViewProps} fro...
const get_request = (url: string) => { var request = new XMLHttpRequest(); request.open('GET', url); request.send(null); } // model parameters window.addEventListener('message', (event: MessageEvent) => { let elem = document.getElementById('viewer'); elem.style.width = `${event.data.size[0]}px`; ...
// Type definitions for Swiper 4.2 // Project: https://github.com/nolimits4web/Swiper // Definitions by: <NAME> <https://github.com/sgaliano>, <NAME> <https://github.com/lucax88x>, <NAME> <https://github.com/ematseruk> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 type C...
<filename>src/modules/course/course.service.spec.ts import { getModelToken } from '@nestjs/mongoose'; import { Test, TestingModule } from '@nestjs/testing'; import { CourseService } from './course.service'; import { createMock } from '@golevelup/nestjs-testing'; import { Model, Query } from 'mongoose'; import * as mong...
<gh_stars>1-10 import { Component, Input, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core'; import { NgForm } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { JhiAlertService } from 'ng-jhipster'; import { HttpResponse } from '@angular/common/http'; import { Sub...
import * as React from 'react'; import * as classNames from 'classnames/bind'; import {DivProps, OptionProps, SelectProps, Elements as Attr} from '../../Attributes'; const css = classNames.bind(require('./TimeInput.module.scss')); export interface TimeInputType {} export interface TimeInputAttributes { container?...
<reponame>racerxdl/qo100-dedrift<gh_stars>1-10 // Based on https://github.com/yunyu/parse-prometheus-text-format // Ported to Typescript import {ShallowObjectEquals, UnescapeHelp} from "./parsers"; import {Metric} from "./types"; const ERR_MSG = 'Invalid line: '; const SUMMARY_TYPE = 'SUMMARY'; const HISTOGRAM_TYPE =...
<reponame>nabancard/receiptline /* eslint-disable simple-import-sort/imports */ import receiptline from './receiptline'; // eslint-disable-next-line @typescript-eslint/no-unused-vars const sectionId = 'receiptline.designer'; const initialize = () => { const load = document.getElementById('load') as HTMLButtonElemen...
import invariant from "invariant"; import { BigNumber } from "bignumber.js"; import { log } from "@ledgerhq/logs"; import type { Transaction, TransactionRaw, EthereumGasLimitRequest, } from "./types"; import Common from "ethereumjs-common"; import { Transaction as EthereumTx } from "ethereumjs-tx"; import eip55 f...
import fs = require( 'fs' ); import moduleAlias = require( 'module-alias' ); import path = require( 'path' ); import Telegraf, { Context } from 'telegraf'; import * as TT from 'telegraf/typings/telegram-types'; import winston = require( 'winston' ); moduleAlias.addAliases( { src: __dirname, config: path.join( __dirn...
import { HttpErrorResponse } from '@angular/common/http'; import { Type } from '@angular/core'; import { TimeoutError } from 'rxjs'; import { HttpBase, HttpBind, HttpBindBoolean, HttpBindObject } from './ui-model/model-types'; import { ConfigMapDetailMetadata } from '../resource/resource.types'; export interface ICsMe...
<filename>abap-api-tools/src/ts/valuehelp.ts<gh_stars>10-100 // SPDX-FileCopyrightText: 2014 SAP SE <NAME> <<EMAIL>> // // SPDX-License-Identifier: Apache-2.0 import path from "path"; import { ParamType, ValueInput } from "./constants"; import { HelpsCatalogType, DescriptorsCatalogType, ParameterType, FieldTyp...
<reponame>scenario-data/scenario-database<gh_stars>1-10 import { flatten, sortBy } from "lodash"; import { QueryRunner } from "../query_runner/query_runner_api"; import { DatabaseRead } from "./read_api"; import { UniverseRestriction } from "../universe"; import { isNot, isUndefined, nevah, objectKeys } from "../../mis...
<gh_stars>0 import { Directive, Input, Output, EventEmitter, SimpleChanges, ElementRef, OnChanges, OnDestroy } from "@angular/core"; import { Observable, Subscription, of } from "rxjs"; import { Utils, Keys} from "@sinequa/core/base"; import { AppService, Expr, ExprBuilder, ExprParser, ExprValueInfo} from "@sinequa/cor...
import React, { useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react"; import styled, { ThemeContext } from "styled-components"; import { useDispatch, useSelector } from "react-redux"; import debounce from "lodash/debounce"; import useResizable from "ui/hooks/use-resizable"; import u...
<reponame>hoovercj/vscode-api-playground<filename>SettingsCycler/src/extension.ts<gh_stars>10-100 'use strict'; import { MessageOptions, ExtensionContext, workspace, WorkspaceConfiguration, window, commands as Commands, languages } from 'vscode'; import { ILogger, Logger, LogLevel } from './logger'; const deepEqual = ...
<filename>src/mono/wasm/runtime/diagnostics.ts // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. import { Module } from "./imports"; import cwraps from "./cwraps"; import type { EventPipeSessionOptions } from "./types"; import type ...
import { fs, path } from "./deps.ts"; export function commandComponents(command: string): string[] { // split components of the command with double-quotes support const splitCmdRegExp = /[^\s"]+|"([^"]*)"/gi; const components = []; let match: RegExpExecArray | null; do { //Each call to exec returns the ...
#!/usr/bin/env node /** * This file is utilized at the start of execution of the program */ import chalk from 'chalk'; import clear from 'clear'; import { Section } from 'command-line-usage'; import inquirer from 'inquirer'; import { USAGE_TEMPLATE } from './config'; import { readMainConfig, readSubConfig } from '....
import { Component, Input, OnInit, ViewChild, ElementRef, HostListener } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import 'rxjs/add/operator/filter'; import * as blockies from 'blockies'; import * as cytoscape from 'cytoscape'; function hexToArray(hex: string) { const result = /^#?([a-f\d]{2})([a...
import type { Errors, Extender, FieldValue, FormConfig, Obj, Stores, Touched, ValidationFunction, TransformFunction, Setter, ObjectSetter, PartialErrorsSetter, AssignableErrors, PrimitiveSetter, FieldsSetter, Helpers, Keyed, } from '@felte/common'; import { deepSet, setForm, _clo...
import { Injectable } from '@nestjs/common'; import { EventEmitter } from 'events'; import { AwaitableSender, Connection, ConnectionEvents, ConnectionOptions, EventContext, Receiver, ReceiverEvents, SenderEvents, Source, } from 'rhea-promise'; import { URL } from 'url'; import { getLoggerContext, Log...
<reponame>betagouv/signalement-app export interface PageDefinition { title: string; description: string; } export type PageDefinitions = typeof pageDefinitions; export const pageDefinitions = { enterprisesImport: { title: 'Base de données entreprise', description: 'Gestion de la base de données entrerpi...
<reponame>JLChnToZ/vrm-dance-viewer<gh_stars>1-10 import { fromEvent } from 'rxjs'; import { Callback, Collection, defer, forEach, getOrCreate, isArrayLike, Resolver, tryIterate, } from './helper-functions'; import { deferTrigger } from './message-queue'; const wrapperCache = new WeakMap<MessageService...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<filename>cypress/integration/mapTileCompare.spec.ts // eslint-disable-next-line @typescript-eslint/no-namespace declare namespace Cypress { interface cy { all(...commands: Cypress.Chainable[]): Cypress.Chainable // eslint-disable-next-line @typescript-eslint/no-explicit-any queue: any } interface Cha...
/** * 用户控制MarkdownEditor的编辑历史 */ export class SizedHistoryState<T = any> { private values: T[]; private size: number; private ptr: number; private listener: any[]; constructor(size: number, init?: T) { this.values = []; this.size = size; this.ptr = 0; this.listener = []; if (init) { ...
import { SpellCards } from '@/cardDb/spells'; import { Tokens, UnitCards } from '@/cardDb/units'; import { Effect } from '@/types/cards'; import { EffectType, getDefaultTargetForEffect, TargetTypes, } from '@/types/effects'; import { RESOURCE_GLOSSARY } from '@/types/resources'; const TARGET_TYPES_TO_RULES...
import { ArrowRightIcon, Box, Button, CloseIcon, color, Flex, Sans, space } from "@artsy/palette" import { Collection_collection } from "__generated__/Collection_collection.graphql" import { changedFiltersParams, filterArtworksParams, FilterOption, mapWaysToBuyTypesToFilterTypes, WaysToBuyOptions, } from "lib...
import * as React from "react"; import { LayoutRow } from "ethstats-ui/lib/layout/content/LayoutRow"; import { LayoutRowItem } from "ethstats-ui/lib/layout/content/LayoutRowItem"; import { Label } from "ethstats-ui/lib/data/Label"; import { BlockNumberBox } from "app/components/content/box/block/BlockNumberBox"; import...
<filename>packages/vite-service/src/wp2vite/index.ts import react from '@vitejs/plugin-react'; import analyzer from 'rollup-plugin-visualizer'; import * as path from 'path'; import { all } from 'deepmerge'; import { isObject } from 'lodash'; import tsChecker from 'vite-plugin-ts-types'; import { Context, ITaskConfig } ...
import * as React from 'react'; import { useEffect, useRef, useState } from 'react'; import { ScrollView, TextInput } from 'react-native-gesture-handler'; import { View, NativeSyntheticEvent, TextInputKeyPressEventData, NativeModules, StyleSheet } from 'react-native'; import chunk from 'lodash.chunk'; export type TWo...
import { Transaction } from 'ethereumjs-tx' import Common from 'ethereumjs-common' import { privateToAddress } from 'ethereumjs-util' import { EosApi } from './eos' import { ETH_CHAIN, FORK, EOS_TO_WEI_CONVERSION, DEFAULT_GAS_PRICE, DEFAULT_GAS_LIMIT, DEFAULT_CHAIN_ID, DEFAULT_VALUE, DEFAULT_SYMBOL } fr...
<filename>source/modules/MTSAbstractService/PersonalName.ta.ts /* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OPTIONAL, PrintableString, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /* START_OF_SYMBOL_DEFINITION PersonalName */ /** ...
// The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; import * as _ from 'lodash'; interface PhosphorRange { opacityIndex: number, range: vscode.Range, rangeLength: number, text: string }; let ...
<gh_stars>1-10 /// A RuntimeType is a value with a distinct type, that can be used for both runtime and compile time typechecks. /// Runtime types are as follows (along with the compile-time types RealTypeOf maps them to): /// - null -> null /// - undefined -> any /// - Boolean -> boolean /// -...
import { cloneDeep } from 'lodash'; import winston from 'winston'; import { DataModel } from '../models/data_model'; import { SPARQLEndpointDefinition } from '../observation/endpoints'; import { buildNamesFromIRIs } from '../postprocessing/hooks/names'; import { PostprocessingHookDict } from '../postprocessing/hook_typ...
import { createSlice, PayloadAction } from '@reduxjs/toolkit' import { useEffect } from 'react' import { useSelector, useDispatch } from 'react-redux' import * as store from '~/firestore/memoList' import { AppThunk } from '~/store/rootState' import { useAuth, createAuthClientSide } from '~/store/modules/authModule' imp...
'use strict' import { LoggingDebugSession, InitializedEvent, OutputEvent, Thread, TerminatedEvent } from 'vscode-debugadapter' import { DebugProtocol } from 'vscode-debugprotocol' import * as process from 'child_process' import * as awaitNotify from 'await-notify' import * as vscode from 'vscode' import * as os fro...
import {Component, OnInit, ChangeDetectionStrategy, Inject} from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { GeolocationPositionWithUser } from '../models/geolocationposition.model'; import { Post } from '../models/post.model'; import { FindJobsService } from './find-jobs.service...
import { mocked } from "ts-jest/utils"; import { RichTextEditor } from "../../src/rich-text/editor"; import * as mdp from "../../src/shared/markdown-parser"; import "../matchers"; import { normalize } from "../test-helpers"; // mock the markdown-parser for testing jest.mock("../../src/shared/markdown-parser"); // set...
const ctx: Worker = self as any; /* * Computes the discrete Fourier transform (DFT) of the given complex vector, storing the result back into the vector. * The vector can have any length. This is a wrapper function. */ function transform( real: Array<number> | Float32Array, imag: Array<number> | Float32Array )...
import React from "react"; import PropTypes from "prop-types"; import useSize from "@react-hook/size"; import { TopMenu } from "./components/TopMenu/TopMenu"; import { MenuBar } from "./components/MenuBar/MenuBar"; import { MenuDrawer } from "./components/MenuDrawer/MenuDrawer"; import { Overlay } from "../Overlay/Ove...
<reponame>SolalDR/data-gui const MathUtils = { clamp: function(value, min, max) { return Math.max(min, Math.min(max, value)) }, euclideanModulo: function(n, m) { return ((n % m) + m) % m }, lerp: function(x, y, t) { return (1 - t) * x + t * y }, } function hue2rgb(p, q, t) { if (t < 0) t +=...
<filename>src/compress/lubanforgitee.ts<gh_stars>0 import imagemin, { buffer } from 'imagemin' import mozjpeg from 'imagemin-mozjpeg' import { CompressOptions, ImgInfo } from '../utils/interfaces' import { getImageBuffer } from '../utils/getImage' import imageminGifsicle from 'imagemin-gifsicle' var images = require('...
<filename>resources/src/app/order-contact.component.ts import {Component, OnInit, OnDestroy, Input, Output, EventEmitter} from "@angular/core"; import {ActivatedRoute} from "@angular/router"; import {ECommService} from "./ecomm.service"; import {ModelECommContact, ModelContactAddressValue} from "./models/auth"; @Com...
import { isLocatable } from '@darkforest_eth/gamelogic'; import { AttribType, Biome, Planet, UniformType } from '@darkforest_eth/types'; import { glsl } from '../EngineUtils'; import { ShaderMixins } from '../WebGL/ShaderMixins'; const a = { position: 'a_position', color: 'a_color', color2: 'a_color2', color3:...
<reponame>RedGoldBelt/jsb-js import Chord from './chord.js'; import Config from './config.js'; import Event, { EventType } from './event.js'; import Group from './group.js'; import { Inversion } from './inversions.js'; import Symbol from './symbol.js'; import Parts, { Part } from './parts.js'; import Permutation from '...
<gh_stars>0 import generator, { Entity, FilterContext, NotificationType } from 'megalodon' import { Module, MutationTree, ActionTree, GetterTree } from 'vuex' import { RootState } from '@/store' import { LocalMarker } from '~/src/types/localMarker' import { MyWindow } from '~/src/types/global' import { LoadingCard } fr...
<reponame>cowboyd/nativescript-dev-webpack<gh_stars>0 // inspired by: // https://github.com/angular/angular-cli/blob/d202480a1707be6575b2c8cf0383cfe6db44413c/packages/schematics/angular/utility/ast-utils.ts // https://github.com/angular/angular-cli/blob/d202480a1707be6575b2c8cf0383cfe6db44413c/packages/schematics/angul...
<gh_stars>1-10 import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { PlaygroundError, AI, getShareableYaml, environment, getGistUrl, } from '../helpers'; import { Strings, getDisplayLanguage } from '../strings'; import { GitHubService } from '../services'; import {...
import { IHolidayExtractorConfiguration, BaseHolidayParserConfiguration, BaseHolidayParser } from "../baseHoliday" import { RegExpUtility, ExtractResult, Match, IExtractor, IParser, StringUtility, ChineseIntegerExtractor, AgnosticNumberParserFactory, AgnosticNumberParserType, ChineseNumberParserConfiguration } from "re...
import { Unit, Fun, Prod, Sum, unit, absurd, fst, snd, defun, fun, inl, inr, apply, apply_pair, id, constant, curry, uncurry, lazy, swap_prod, swap_sum, compose_pair } from "ts-bccc" // import { mk_coroutine, Coroutine, suspend, co_unit, co_run, co_error } from "ts-bccc" // import * as Co from "ts-bccc" import { Stm...
<filename>src/commands/tools.ts import { Command } from '../imports/types.js' import { execSync } from 'child_process' import moment from 'moment' import { host, testPilots } from '../config.js' import { runInNewContext } from 'vm' import { inspect } from 'util' import { getIdFromMention, getInsult } from '../imports/t...
import * as React from "react"; import {useRef, useEffect} from "react" import {GameState, KeyCode, Point} from "./models"; export interface GameProps { onGameOver() : void; onScoreUpdate() : void; } const Game = React.memo((props : GameProps) => { let state : GameState; let canvas: HTMLCanvasElement;...
<filename>src/framework/theme/components/stepper/stepper.component.ts<gh_stars>1-10 /** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { Component, ContentChildren, EventEmitter, HostBinding, Inpu...
// MIT License // Copyright (c) 2019 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
import React, { useContext } from 'react'; import { randomString, listToMap, } from '@togglecorp/fujs'; import { EntriesAsList, PartialForm, Error, useFormArray, getErrorObject, } from '@togglecorp/toggle-form'; import Button from '#components/Button'; import Container from '#components/Container'; impor...
import { IHolidayExtractorConfiguration, BaseHolidayParserConfiguration } from "../baseHoliday"; import { RegExpUtility } from "@microsoft/recognizers-text"; import { DateUtils } from "../utilities"; import { EnglishDateTime } from "../../resources/englishDateTime"; export class EnglishHolidayExtractorConfiguration im...
<reponame>Membaer/Picturepark.SDK.Samples class ScrollPosition { element: HTMLElement; posY: number; posX: number; constructor(data?: any) { this.element = document.getElementsByClassName("header-top-row")[0] as HTMLElement, this.posY = window.scrollY, this.posX = data....
import { useRef, useMemo, useState } from "react"; import { useTheme, createStyles, makeStyles } from "@material-ui/core/styles"; import Editor, { useMonaco } from "@monaco-editor/react"; import { useFiretableContext } from "contexts/FiretableContext"; import { FieldType } from "constants/fields"; const useStyles = ma...
<reponame>AliJawadSabir/demo // import * as nodemailer from 'nodemailer'; // import { Promise } from 'bluebird'; import { BaseModel } from '../../base/models/base.model'; import { Product } from '../index'; import { ErrorHandler } from '../../base/conf'; import { Promise } from 'bluebird'; import { CategoryModel } from...
<gh_stars>1-10 import { Injectable, Inject } from '@angular/core'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { Observable, BehaviorSubject, throwError } from 'rxjs'; import { map, tap, catchError } from 'rxjs/operators'; import { API_URL_TOKEN } from 'src/app/services/api-url/api-url....
<gh_stars>1-10 // Copyright 2020-2021 OnFinality Limited authors & contributors // SPDX-License-Identifier: Apache-2.0 import path from 'path'; import { Inject, Injectable, OnModuleInit } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; import { ApiPromise, Keyring } from '@polkadot/api'; ...
import React, { memo, useRef, useEffect } from "react"; import { CSSTransition } from "react-transition-group"; import animations from "create-keyframe-animation"; import { getName, prefixStyle, formatPlayTime, playMode, } from "../../../../utils/utils"; import { MyIcon } from "../../../../utils/request"; impor...
import React, { PureComponent } from 'react' import Web3 from 'web3' import { Ocean, Account } from '@oceanprotocol/squid' import OPWallet from 'op-web3-wallet' import { User } from '.' // import { provideOcean, requestFromFaucet, FaucetResponse, airdropOceanTokens } from '../ocean' // import { requestAccessTo3box } fr...
import * as React from "react"; import Button from "@mui/material/Button"; import { NeedReason, NeedType, RequestStatus } from "./RequestAPI"; import SaveIcon from "@mui/icons-material/Save"; import CloseIcon from "@mui/icons-material/Close"; import EditIcon from "@mui/icons-material/Edit"; import DialogTitle from "@mu...
<gh_stars>1-10 import { flattenDeep, isString, uniq } from 'lodash' import * as wordwrap from 'wordwrap' import { DOT } from './DOT' import { IEdge, IGraph, INode, NodeId } from './interfaces' const DEFAULT_SHAPE = 'box' const typeShapeMap: any = { actor: 'egg', component: 'component', container: 'box3d', ...
<reponame>TimeTac/js-client-library import { AbsenceDaysEndpoint } from './absenceDays'; import { AbsencesEndpoint } from './absences'; import { AbsenceTypesEndpoint } from './absenceTypes'; import { AuthenticationEndpoint } from './authentication'; import { ApiConfig, ApiState } from './baseApi'; import { ChangeTimeTr...
export interface ITaxBracket { income: number percentage: number } export const INCOME_TAX: ITaxBracket[] = [ { income: 0, percentage: 0 }, { income: 1000, percentage: 0 }, { income: 2000, percentage: 0 }, { income: 3000, percentage: 0 }, { income: 4000, percentage: 0 }, { income: 5000, percentage: 0 }...
import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonButtons, IonMenuButton, IonGrid, IonList, IonItem, IonAvatar, IonText, IonLabel, IonRow, IonSegment, IonSegmentButton, IonCol, IonLoading, } from "@ionic/react"; import Avatar from "boring-avatars"; import { useEffect,...
/* * Copyright (C) 2017-2021 blocktree. * SPDX-License-Identifier: Apache-2.0 * * 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 * * Unl...
<gh_stars>0 // Copyright PrimeObjects Software Inc. and other contributors <https://www.primeobjects.com/> // // This source code is licensed under the MIT license. // The detail information can be found in the LICENSE file in the root directory of this source tree. import { useEffect, useState } from 'react'; im...
import { Component, OnInit, OnChanges, SimpleChange, ViewChild, ElementRef } from '@angular/core'; import { UserService } from '../../services/user.service'; import { FormGroup, Validators, FormBuilder } from "@angular/forms"; import { ChatService } from './chat.service'; import { ActivatedRoute } from '@angular/router...
import { Component, OnInit, OnDestroy, AfterViewChecked, ElementRef, ViewChild } from '@angular/core'; import { ChatService } from '../chat.service'; import { Router } from '@angular/router'; import { Subject} from 'rxjs/Subject'; import 'rxjs/add/operator/takeUntil'; import 'rxjs/add/observable/interval' import * as i...
import * as YAML from "js-yaml"; import { CultureEnum, LanguageEnum, NotificationEnum } from "ov-language-server-types"; import { createConnection, IConnection, InitializeParams, InitializeResult, MessageReader, MessageWriter, ServerCapabilities, TextDocuments } from "vscode-languageserver"; impor...
/* eslint-disable react/jsx-no-bind */ import React, { useState } from 'react' import some from 'lodash/some' import Button from '@mui/material/Button' import TextField from '@mui/material/TextField' import Grid from '@mui/material/Grid' import MenuItem from '@mui/material/MenuItem' import Box from '@mui/material/Box' ...
import { BillModel, ItemModel, UserModel } from "../controllers/Models"; import { Bill } from "../resources/js/Models/bill"; import { Item } from "../resources/js/Models/item"; import { User } from "../resources/js/Models/user"; enum PaymentMethod { cod, momo, vnpay, zalopay, } enum Status { waiting, shipping, ...
import { memoize } from "interstelar"; import intersection = require("lodash/intersection"); import isString = require("lodash/isString"); import union = require("lodash/union"); import { IFact, IFactFields, IValue } from "./Fact"; import { IIdentifier, IPrimitive } from "./Identifier"; import { AccumulatorCondition } ...
import { Point, Rectangle, Dimension } from './geometry'; import { Editor, Event, Node, NodeProperty } from './editor' import { State } from './states'; export interface StyleDimension { unit: number; headerHeight: number; roundRadius: number; collapseArrowSize: number; connectorRadius: number; ...
<reponame>JosephusPaye/lookup import { SourceAdapter } from '../adapters'; import { Lookup } from '../types'; function attribution() { return 'Definitions from WordWeb Online'; } export function url(word: string, language: string, type: Lookup.Type) { // WordWeb Online expects the word with no spaces or non-alpha...
import { findLargestTokenAccountForOwner, getMultipleAccounts, IDS, MangoClient, MangoGroup, MarginAccount, nativeToUi, NUM_MARKETS, NUM_TOKENS, parseTokenAccount, parseTokenAccountData, tokenToDecimals, uiToNative, } from '@blockworks-foundation/mango-client'; import { Account, Connection, PublicKe...
import { Box, Flex, VStack, Image, Button, LinkBox } from "@chakra-ui/react"; import React, { useState } from "react"; import GridContent from "../src/components/GridContent"; import { HiPlus, HiMinus } from 'react-icons/hi' import NextLink from 'next/link' import { TacoProps } from "../src/components/TacoLayout"; exp...
import { getIfExists, Input, Output } from "./io"; import { Data } from "./data"; import { SetOperations } from "./utils"; declare global { interface Set<T> { filter(element: (element: T) => boolean): Set<T>; } } Set.prototype.filter = function filter(f) { const res = new Set(); for (const v o...
import React, { useState } from 'react' import dateTime from 'date-time' import _ from 'lodash' import { Order } from '@sdk/fragments/types/Order' import Card from '@material-ui/core/Card' import Divider from '@material-ui/core/Divider' import { OrderStatus } from '@temp/types/globalTypes' import { makeStyles } from '...
import { CollectionName, FlowAddress } from "./types" const blocktoWallet: BlocktoWallet = { testnet: { accessNode: "https://access-testnet.onflow.org", wallet: "https://flow-wallet-testnet.blocto.app/authn", }, mainnet: { accessNode: "https://flow-access-mainnet.portto.io", wallet: "https://flow-wallet.blo...
<gh_stars>0 import { isBRPlaceholder } from './br'; import { Paper } from './paper'; type Selection = [number, number]; // Get the range (a tuple of indexes) for this view from the browser selection export function getSelection(root: HTMLElement, paper: Paper, range?: Range): Selection | null { if (!root.ownerDocu...