text
stringlengths
3.3k
33k
import { Injectable, EventEmitter } from "@angular/core"; import { HttpClient, HttpHeaders, HttpParams } from "@angular/common/http"; import { LocalStorageService } from "../core/local-storage.service"; import { AppConfig } from "../app.config"; import { IOrganizationResponse, IResponse } from "../models/response.model...
import { browser, $ } from "protractor"; import { welcomePagePO } from "../pages/welcomePagePO"; import { loginPagePO } from "../pages/loginPagePO"; import { calAppPagePO } from '../pages/calAppPagePO'; import { addEdibleRecordPO } from '../pages/addEdibleRecordPO'; import { WaitForElement } from '../helpers/waitForEle...
<reponame>TNishimoto/GraphTableSVG<filename>src/interfaces/svg_textbox.ts<gh_stars>0 import { Size, Rectangle, round100 } from "../common/vline"; import * as CommonFunctions from "../common/common_functions"; import * as HTMLFunctions from "../html/html_functions"; import { HorizontalAnchor, VerticalAnchor } from "../...
import * as Viewer from '../viewer'; import { BasicRenderer } from './scenes'; import ArrayBufferSlice from '../ArrayBufferSlice'; import { readString, assert, assertExists } from '../util'; import { mat4, quat } from 'gl-matrix'; import * as RARC from './rarc'; import { BMDModelInstance, BMDModel } from './render';...
import React, { memo, useCallback, useMemo, useState } from 'react' import styled from 'styled-components' import { formatSpecifier as parseFormat, FormatSpecifier } from 'd3-format' // @ts-ignore import { components } from 'react-select' import { Control } from './Control' import { PropertyHeader } from './PropertyHea...
import Corpus from "../../../backend/model/Corpus"; import {ofType} from "redux-observable"; import {filter, map, mergeMap, switchMap} from "rxjs/operators"; import {createAction} from "@reduxjs/toolkit"; import {fromFetch} from "rxjs/fetch"; import {HttpMethod, OffsetLimitParam, RequestBuilder, SimpleQueryParam} from...
<filename>src/proxy.ts import { AWSError } from 'aws-sdk'; import Aws from 'aws-sdk/clients/all'; import { NextToken } from 'aws-sdk/clients/cloudformation'; import { CredentialsOptions } from 'aws-sdk/lib/credentials'; import { PromiseResult } from 'aws-sdk/lib/request'; import { Service, ServiceConfigurationOptions }...
<filename>src/geodata/lang/FI.ts import type { Lang } from "../.internal/Lang"; // FINNISH const lang: Lang = { "AD": "Andorra", "AE": "Arabiemiirikunnat", "AF": "Afganistan", "AG": "Antigua ja Barbuda", "AI": "Anguilla", "AL": "Albania", "AM": "Armenia", "AO": "Angola", "AQ": "Antarktis", "AR": "Argentiina"...
import Vue from "vue"; import ImportView from "./components/Import.vue"; import CommonComponents from "./components/common/index"; import { loadI18nMessages } from "./store/i18n"; import { Encryption } from "./models/encryption"; import { EntryStorage } from "./models/storage"; import * as CryptoJS from "crypto-js"; i...
<reponame>notanengineercom/wotan import * as ts from 'typescript'; import { resolveCachedResult, hasSupportedExtension, mapDefined } from './utils'; import * as path from 'path'; import { ProcessorLoader } from './services/processor-loader'; import { FileKind, CachedFileSystem } from './services/cached-file-system'; im...
import { Languages } from "../Languages"; function lang(key,a?,b?,c?,d?,e?) { return Languages.get("StoneUtil", key)(a,b,c,d,e); } // import {BatchCommandHandler} from "../logic/BatchCommandHandler"; import {INTENTS} from "../native/libInterface/Constants"; import {LOGe} from "../logging/Log"; import {Scheduler} fr...
import { apiExecuteDelete, apiExecuteGetHandled, apiExecutePost, apiExecutePut, } from '@/services/api'; import EndpointType from '@/types/enum/EndpointType'; import EndpointAuthorisationType from '@/types/enum/EndpointAuthorisationType'; import { Idea, IdeaImage } from '@/types/api/Idea'; import { OrderGroup...
<reponame>gavar/google-front-end-web-developer import {Geocoder, GeocoderAddressComponent, LatLngBounds, Map as GoogleMap} from "$google/maps"; import { PhotoOptions, PlaceDetailsRequest, PlaceResult, PlaceSearchPagination, PlaceSearchRequest, PlacesService, PlacesServiceStatus, } from "$goo...
/** * Created by nghinv on Wed Jun 23 2021 * Copyright (c) 2021 <EMAIL> */ import React, { useContext } from 'react'; import { View, StyleSheet, useWindowDimensions, LayoutChangeEvent, Platform, TouchableOpacity } from 'react-native'; import equals from 'react-fast-compare'; import { Svg, Defs, Rect, Circle, Mask }...
<reponame>bartholomej/node-csfd-api import { HTMLElement, parse } from 'node-html-parser'; import { getColor } from '../src/helpers/global.helper'; import { getBoxMovies, getColorRating, getDescriptions, getDuration, getGenres, getGroup, getId, getOrigins, getPoster, getPremieres, getRating, get...
/* * @Author: Whzcorcd * @Date: 2020-08-20 10:01:49 * @LastEditors: Whzcorcd * @LastEditTime: 2020-10-27 18:21:08 * @Description: file content */ import { IROP, Qos } from './types' import EventEmitter from './event' import Paho from 'paho-mqtt' class ROP extends EventEmitter { public ROP_FLASH_SITE: string ...
import PlanetPlugin from "server/src/classes/Plugins/Universe/Planet"; import { AtmosphericComposition, planetTypes, PlanetTypes, Zone, } from "server/src/spawners/planetTypes"; import {DataContext} from "server/src/utils/DataContext"; import {pubsub} from "server/src/utils/pubsub"; import {randomFromList} from...
import { Coordinate, CoordXY, CoordXYM, CoordXYZM } from './geom/coordinate'; import { ShpPointType, ShpPoint } from './geom/point'; import { ShpMultiPointType, ShpMultiPoint } from './geom/multiPoint'; import { LinerarRing, ShpPolygonType, ShpPolygon, ShpPolygonPart } from './geom/polygon'; import { ShpNullGeom } from...
import { ComponentFactoryResolver, Inject, Injectable, Injector, NgModuleFactory, NgZone, OnDestroy, Optional, PLATFORM_ID } from '@angular/core'; import { from, Observable, of, Subscription } from 'rxjs'; import { filter, groupBy, map, mergeMap, observeOn, pairwise, startWith, switchMap, tap, withLat...
import { yjsShareGlobalProjects, yjsShareProjectRevision, Project, ProjectRevision, PROJECT_ROOM, XsdOperation, XsdOperationType, } from '@ips/shared-js'; import schema, { AttributeTypes, ElementTypes } from '@ips/shared-js/schema-tree'; import yLeveldb = require('@ips/y-leveldb'); import * ...
import type { Client } from '../client/mod.ts' import type { ChannelPayload, ChannelTypes, ModifyChannelOption, ModifyChannelPayload, Overwrite, OverwritePayload, OverwriteAsArg } from '../types/channel.ts' import { OverrideType } from '../types/channel.ts' import { CHANNEL } from '../types/endpoint.ts' i...
/** * 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...
<reponame>khilan2goel/vsts-tasks import * as tl from 'vsts-task-lib/task'; import * as tr from 'vsts-task-lib/toolrunner'; import * as toolLib from 'vsts-task-tool-lib/tool'; import * as restm from 'typed-rest-client/RestClient'; import * as os from 'os'; import * as path from 'path'; import * as ci from './cieventlogg...
<gh_stars>1-10 import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { NGXLogger } from 'ngx-logger'; import { AbstractControl, FormControl, FormGroup, ValidationErrors, Validators } from '@angular/forms'; import { Storage } from '@ionic/storage'; import { Subscription } ...
/* * Copyright 2018-2020 Unbounded Systems, 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 l...
<filename>src/lib/src/parse.ts import { Color } from '@alyle/ui/color'; const LINE_FEED_REGEX = () => /(\n?[^\n]+\n?)/g; const AMPERSAND_REGEX = () => /&/g; const STYLE_TEMPLATE_REGEX = () => /__LY_EXPRESSION__\[[\w]+\]/g; let id: number = 0; /** * Transform a lyl style block to CSS * * Allowed blocks: * * // Si...
/** (DEPRECATED) old color variables */ const legacyColors = { red: '#e53935', green: '#00c853', yellow: '#ffc400', softKataBlue: '#d8ebff', lightKataBlue: '#7fbcff', kataBlue: '#006fe6', darkKataBlue: '#0056b3', lightCobalt: '#6386c7', semiCobalt: '#2662cf', cobalt: '#2053af', darkCobalt: '#19428...
/** * * Copyright © 2019-present Enappd. All rights reserved. * * This source code is licensed as per the terms found in the * LICENSE.md file in the root directory of this source tree. */ import { Component } from '@angular/core'; import { MenuController} from '@ionic/angular'; declare let Phaser; let that; let gam...
import { useState, useEffect, FC, useContext } from 'react'; import { useForm, FormProvider } from 'react-hook-form'; import { useRouter } from 'next/router'; import { zodResolver } from '@hookform/resolvers/zod'; import { DropzoneOptions } from 'react-dropzone'; import { userUpdateSchema } from 'lib-server/validation'...
import { mat4 } from 'gl-matrix'; import { inject, injectable, named } from 'inversify'; import { Entity, IModel } from '../../..'; import { ComponentManager } from '../../../ComponentManager'; import { IDENTIFIER } from '../../../identifier'; import { FrameGraphHandle } from '../../framegraph/FrameGraphHandle'; import...
<gh_stars>0 declare type RtcStatsVersion = { date: Date; }; export declare const version: RtcStatsVersion; export declare enum StatsType { codec = "codec", inboundRtp = "inbound-rtp", outboundRtp = "outbound-rtp", remoteInboundRtp = "remote-inbound-rtp", remoteOutboundRtp = "remote-outbound-rtp"...
<filename>src/app/routes/avaluos/avaluos.component.ts import { Component, OnInit, ChangeDetectionStrategy, Input, ViewChild, AfterViewInit, OnDestroy} from '@angular/core'; import { FormGroup, Validators, FormBuilder } from '@angular/forms'; import { MtxDialog } from '@ng-matero/extensions/dialog'; import { MatDialog ...
import axios from 'axios'; import { useEffect, useState } from 'react'; import { Addon, Markup } from '@antv/x6'; import { ReactShape } from '@antv/x6-react-shape'; import { getTable, getTableColumn } from '../../api/table'; import IconFont from '@/font'; import data from './data'; import BaseComponent from './operator...
import { DAOContext } from './dao.mock' import { Scalars } from './models.mock' import { Coordinates, LocalizedString } from '@twinlogix/typetta' import { knexJsAdapters, identityAdapter, SortDirection } from '@twinlogix/typetta' import BigNumber from 'bignumber.js' import knex, { Knex } from 'knex' import sha256 from ...
import * as vscode from 'vscode'; import * as ply from 'ply-ct'; import { PlyRoots, Info } from '../plyRoots'; import { Result } from './result'; import { ResultDiffs, ResultDecorator } from './decorator'; /** * Write-through cached diff state. * TODO: see lucky #13 */ export class DiffState { _state: any; ...
<filename>server/typeDefs/thorium.ts import App from "../app"; import {gql, withFilter} from "apollo-server-express"; import {pubsub} from "../helpers/subscriptionManager"; import GraphQLClient from "../helpers/graphqlClient"; import request from "request"; import fetch from "node-fetch"; import uuid from "uuid"; impor...
<filename>src/styles/getTheme.ts<gh_stars>0 import * as tinycolor from "tinycolor2"; import setSegoeMDL2AssetsFonts from "./fonts/segoe-mdl2-assets"; import IS_NODE_ENV from "../common/nodeJS/IS_NODE_ENV"; import prefixAll from "../common/prefixAll"; import generateAcrylicTexture from "./generateAcrylicTexture"; if (!...
import { EOL } from 'os' import { IProgramConfig, ProgramConfiguration } from './config/program-config' import { SettingStore } from './settings' import { RuntimeError } from './errors/runtime-error' import { Command, CommandCollection } from './config/command-config' import { OptionCollection } from './config/option-c...
<reponame>rhorber/typescript-eslint<filename>packages/ast-spec/tests/fixtures.test.ts import fs from 'fs'; import glob from 'glob'; import makeDir from 'make-dir'; import path from 'path'; import { parseBabel } from './util/parsers/babel'; import { Fixture, ParserResponse, ParserResponseError, ParserResponseSuc...
import * as DateFns from 'date-fns'; import { Nullable } from '~lib/types'; import yup, { validateStringAsNonNegativeNumber } from '~lib/validering'; import { Formuegrenser, FormueVilkår } from '~types/grunnlagsdataOgVilkårsvurderinger/formue/Formuevilkår'; import { FormuegrunnlagFormue, FormuegrunnlagVerdier } from '...
<filename>packages/rangy-textrange/src/index.ts import { createRange, dom, Selection, util, WrappedRange, WrappedSelection, } from '@notjosh/rangy-core'; import { CHARACTER, CharacterOptions, defaultCaretCharacterOptions, defaultCharacterOptions, defaultExpandOptions, defaultFindOptions, defau...
import AsyncStorage from '@react-native-community/async-storage'; import moment from 'moment'; import _ from 'lodash'; import AsyncLock from 'async-lock'; import Geohash from 'latlon-geohash'; import { UserClusteredLocationsDatabase, UserLocationsDatabase } from '../database/Database'; import { onError } from './ErrorS...
import React, { useEffect, useState } from 'react'; import { ModalForm } from '@ant-design/pro-form'; import { Button, Checkbox, Form, Input, message, Select, Table, Tabs, Upload } from 'antd'; import { get } from 'lodash'; import type { FC, ReactNode } from 'react'; import styles from './index.less'; import { Checkbo...
<reponame>n-naresh/herd-ui<gh_stars>0 /* * Copyright 2018 herd-ui contributors * * 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 re...
import { suite } from 'uvu'; import * as assert from 'uvu/assert'; import { Vector, Line } from '../index'; const vectorLineClass = suite('vector line class'); const l1 = new Line(new Vector(2, 4, 6), new Vector(1, 3, -2)); const l1v2 = new Line(new Vector(1, 2, 3, { coeff: 2 }), new Vector(1, 3, -2)); const v1 = new...
<reponame>rebeccalarner/mprove import { RabbitMQModule } from '@golevelup/nestjs-rabbitmq'; import { MailerModule } from '@nestjs-modules/mailer'; import { Module, OnModuleInit } from '@nestjs/common'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { JwtModule } from '@nestjs/jwt'; import { Passpo...
<gh_stars>1-10 import { spawn } from 'child_process' import Graphcool from 'graphcool-lib' import { Endpoints, log, } from './config' import { ApolloClient, NormalizedCacheObject, makeApolloClient, } from './apollo' export interface ServerFixtures { ENDPO...
<gh_stars>1-10 type RandomProducer = () => number; type CharReplacer = ( input: string ) => string; type AcceptableChar = ( input: string ) => boolean; const NON_PRINTABLE_ASCI_START = 0; const NON_PRINTABLE_ASCI_END = 31; const NON_PRINTABLE_ISO_START = 127; const NON_PRINTABLE_ISO_END = 159; const FIRST_PRINTABLE...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { Actions } from '@ngrx/effects'; import { provideMockActions } ...
<gh_stars>0 import { Component, ViewChild, OnInit, Input } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; /*i...
import { uuid } from "uuidv4"; import { CategoryEntry, CauseEntry, PetitionEntry, PetitionTable, RunEntry, RunTable, SignatureEntry, SiteTable, UserData, UserEntry, UserTable } from "./schema"; import {browser} from "webextension-polyfill-ts"; import {petitions, runs, sites, users} from "./d...
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable-next-line @typescript-eslint/triple-slash-reference */ /// <reference path="./node_modules/@types/p5/global.d.ts" /> class Point { private _x: number private _y: number constructor (x: number, y: number) { this._x = x this._y = y ...
<reponame>iquipsys-positron/iqs-clients-zoneconfig-angular import { LocationParams, ZoomParams } from '../../../common'; declare var google; interface ILocationEditPanelBindings { [key: string]: any; onLocationSave: any; onLocationCancel: any; onZoomChange: any; nameCollection: any; zoom: any...
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { MenuItem, MessageService } from 'primeng/api'; import { AlandaSimplePhase } from '../../api/models/simplePhase'; import { AlandaProject } from '../../api/models/project'; import { AlandaProjectApiService } from '../../api/projectApi.servic...
/* * Copyright 2015-2016 Imply Data, Inc. * Copyright 2017-2018 Allegro.pl * * 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...
<filename>src/configuration.ts /** * Copyright (c) 2019-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 *...
<reponame>ApuntaLaPlacaTeam/BackendAPI<filename>src/controllers/api_hack.ts<gh_stars>0 import axios from "axios"; import { default as Infraccion, IInfraccion, IUbicacion, IInfraccionModel } from "../models/Infraccion"; import { Response, Request, NextFunction } from "express"; export class InfraccionClass implements ...
import {Inject} from 'typescript-ioc'; import {Namespace} from './namespace.api'; import {NamespaceOptionsModel} from './namespace-options.model'; import {CreateServiceAccount} from '../create-service-account'; import { AbstractKubeNamespace, KubeConfigMap, KubeNamespace, KubePod, KubeRole, KubeRoleBinding...
<reponame>iexela/angular-wform import { AbstractControl, ValidationErrors } from '@angular/forms'; import { WValidatorNode } from 'angular-wform'; import { wValidator } from 'projects/core/src/lib/validators'; export enum Gender { Male = 'male', Female = 'female', } export enum Race { Human = 'human', ...
<filename>packages/actors-node/src/Cluster.ts import type { IOEnv } from '@principia/base/IOEnv' import type { _A } from '@principia/base/util/types' import { ActorProxy } from '@principia/actors/Actor' import { ActorRefRemote } from '@principia/actors/ActorRef' import * as AS from '@principia/actors/ActorSystem' impo...
// ---------------------------------------------------------------------------- // Copyright (c) 2018,2019 OAX Foundation. // https://www.oax.org/ // See LICENSE file for license details. // ---------------------------------------------------------------------------- import { Address, Amount, ApprovalId, Asset...
import AsyncStorage from '@react-native-community/async-storage' import _ from 'lodash' import moment from 'moment-timezone' import 'moment/locale/th' import { useCallback, useEffect, useReducer, useRef } from 'react' import I18n from '../../i18n/i18n' import { getQRData, getTagData } from '../api' type StatusCode = '...
/* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ import React, { useMemo } from 'react' import ResizeObserver from 'resize-observer-polyfill' import { Button, SHAPE as BUTTON_SHAPES, SIZE as BUTTON_SIZE...
import React, {useEffect, useRef, useState} from 'react'; import {Button, message, Popconfirm, Tooltip, Typography } from 'antd'; import ProCard, {StatisticCard} from '@ant-design/pro-card'; // import {useModel} from "@@/plugin-model/useModel"; import { startStock, pauseStock, restartStock, stockDetail, updat...
import { Injectable } from '@angular/core'; import { Title, Meta } from '@angular/platform-browser'; import { ProfileLite } from '@lamnhan/schemata'; import { SettingService } from '../setting/setting.service'; import { ResourceAlike } from '../storage/storage.service'; export interface MetaOptions { suffixSeparato...
<reponame>mark-archer/hostlang import { clone, isExpr, isJS, isList, isNvp, isSym, INvp, promiseAll, tick, unquote, untick, without } from "./common"; import { parseHost } from "./parse"; import { ParseInfoOptions } from "./parseInfo"; import { Fn, IParamInfo, isFn, isMeta, validate } from "./typeInfo"; import { copy }...
import React from 'react'; import { TextScreen, Paragraph, Header } from '../../components'; const PrivacyScreen = () => { return ( <TextScreen> <Header>Privacy Policy</Header> <Paragraph> Our Privacy Policy was last updated and posted on August 16, 2021. It governs the privacy terms ...
import React, { CSSProperties } from 'react' import { Transition } from 'react-transition-group'; import Button from '@reboot-ui/ui-button'; import ButtonGroup from '@reboot-ui/ui-button-group'; import Nav from '@reboot-ui/ui-nav'; import Popper, { IPopperOptions, FixupPopoverModifierConfig } from '@reboot-ui/icompone...
/* * Copyright © 2019 Atomist, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
<reponame>petro-kushchak/homebridge-ch-ac-eve<filename>src/lib/deviceFactory.ts import * as dgram from 'dgram'; import { Logging } from 'homebridge'; import { Commands } from './commands'; import { EncryptionService } from './encryptionService'; export interface DeviceInfo { bound: boolean; props: any; id:...
import { closestElementCrossShadowBoundary } from "./dom"; import { FunctionalComponent, h } from "@stencil/core"; /** * Exported for testing purposes. */ export const hiddenFormInputSlotName = "hidden-form-input"; /** * Defines interface for form-associated components. * * Along with the interface, use the matc...
import {CategoryLogger} from "../src/logging/log/category/CategoryLogger"; import {LogLevel, LoggerType} from "../src/logging/log/LoggerOptions"; import {CategoryDelegateLoggerImpl} from "../src/logging/log/category/CategoryDelegateLoggerImpl"; import {CategoryMessageBufferLoggerImpl} from "../src/logging/log/category/...
/* Could simply use eval function, but it can lead to script injections. Here only logical and arithmetic operations are processed. This module is converting the rule string into prefix notation to evaluate. Anything put within single quotes is considered as string. No need of escape sign for code k...
<filename>modules/jsdom/src/polyfills/modules/require.ts<gh_stars>10-100 // Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.ap...
/** * @license * Copyright (c) 2019 Google Inc. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io...
<reponame>gabliam/gabliam<gh_stars>1-10 /* eslint-disable no-await-in-loop */ import { ExpressionParser } from '@gabliam/expression'; import d from 'debug'; import _ from 'lodash'; import { callInstance, toPromise } from './common'; import { APP_CONFIG, CORE_CONFIG, TYPE, VALUE_EXTRACTOR } from './constants'; import { ...
import React, { FC, Fragment, memo, useMemo } from "react"; import BigNumber from "bignumber.js"; import classNames from "clsx"; import Identicon from "app/atoms/Identicon"; import Money from "app/atoms/Money"; import { ReactComponent as ClipboardIcon } from "app/icons/clipboard.svg"; import HashChip from "app/templa...
/* eslint-disable import/extensions */ // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore // eslint-disable-next-line import/no-unresolved import { MapBrowserEvent } from 'ol.js' import Attribution from 'ol/control/Attribution' import Control from 'ol/control/Control' import BaseEvent from 'ol/...
import { Component, OnInit, Input, ViewChild, ElementRef, ViewEncapsulation, AfterViewInit, AfterContentInit } from '@angular/core'; import { Document } from '../document'; import { ActivatedRoute } from '@angular/router'; import { Location } from '@angular/common'; import { DocumentService } from '../document.service'...
import React, { useState, useCallback, useRef, useMemo, useContext, } from 'react'; import { useStore, Form, Item, FoldCard, horizontal, Col, Select, Decision, useDataGrid, } from 'teaness'; import { PlusOutlined, EditOutlined, DeleteOutlined, UnorderedListOutlined, } from '@ant-desi...
<filename>packages/engine/src/scene/functions/SceneLoading.ts import { AmbientLight, AnimationClip, AnimationMixer, CameraHelper, DirectionalLight, HemisphereLight, LoopRepeat, PointLight, SpotLight, Vector2, Vector3 } from 'three' import { isClient } from '../../common/functions/isClient' import ...
import React, { useEffect, useState, useRef } from "react"; import { Table, Form, Icon, Button, Segment, Header } from "semantic-ui-react"; import { observer } from "mobx-react"; import { v4 as uuid } from "uuid"; import { patch } from "jsondiffpatch"; import style from "./SubmissionsPage.module.less"; import api fro...
import {database} from 'firebase/app'; import {TextOperation} from '../operations/text'; import {assert, makeEventEmitter} from '../utils'; import {Cursor} from '../managers/cursor'; import {EventEmitter} from '../constants'; // Save a checkpoint every 100 edits. const CHECKPOINT_FREQUENCY = 100; // Based off ideas f...
/* * Copyright (c) 2022 Ewsgit * All rights reserved. * Licensed under the MIT License - https://ewsgit.github.io/devdash/copyright */ import { NextRouter, withRouter } from "next/router"; import React, { useState } from "react"; import * as localforage from "localforage"; import CommandPallet from "./Command...
<reponame>pinglue/pg-repo import type {Object} from "../types"; import {Msg} from "../message.js"; /** * Deep cloning anything * @param val * @returns */ export function _clone<T>(val: T): T { if (typeof val === "undefined") return; if (_isPrimitive(val)) return val; if (Array.isArray(val)) ...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { ReactWidget } from '@jupyterlab/apputils'; import { ITranslator, nullTranslator, TranslationBundle } from '@jupyterlab/translation'; import { caretDownEmptyThinIcon, caretUpEmptyThinIcon, caseSen...
/* Copyright 2021-2022 Picovoice Inc. You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" file accompanying this source. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS I...
import * as React from "react"; import { ScrollView, StyleSheet, Text, View, Image, SectionList, TouchableOpacity, ActivityIndicator, Dimensions, } from "react-native"; import PageScrollView from "../components/PageScrollView"; import { Header, Nav, Footer, BookList } from "../components"; import { Moment, to...
import Phaser from "phaser"; import * as EventCenter from "~/events/EventCenter"; import AnimationKeys from "~/consts/AnimationKeys"; import TextureKeys from "~/consts/TextureKeys"; import Chest from "~/items/Chest"; import Events from "~/consts/events"; declare global { namespace Phaser.GameObjects { interface ...
import * as _ from 'underscore'; import { DestinyVendorSaleItemComponent } from 'bungie-api-ts/destiny2'; import { D2Item } from '../inventory/item-types'; import { D2RatingData, D2ItemFetchResponse, WorkingD2Rating, D2ItemUserReview, D2ItemReviewResponse } from '../item-review/d2-dtr-api-types'; import { translateToDt...
import chroma from 'chroma-js'; import Logger from '../../Logger'; import deviceInfo from '../../deviceInfo'; const logger = new Logger('AudioAnalyzer'); // @ts-ignore const AudioContext = window.AudioContext || window.webkitAudioContext || false; const supportedBrowsers = { 'windows' : { 'microsoft edge' : '>18'...
<reponame>etalab/sill-web import { symToStr } from "tsafe/symToStr"; import memoize from "memoizee"; import { assert } from "tsafe/assert"; import type { Equals } from "tsafe"; import { arrDiff } from "evt/tools/reducers/diff"; import * as JSONC from "comment-json"; import { getEnv } from "./env"; import type { KcLangu...
<reponame>nirbar/mongosh<gh_stars>0 import completer from '@mongosh/autocomplete'; import { MongoshCommandFailed, MongoshInternalError, MongoshWarning } from '@mongosh/errors'; import { changeHistory } from '@mongosh/history'; import i18n from '@mongosh/i18n'; import type { ServiceProvider } from '@mongosh/service-prov...
import { EventHandler } from '../libs/events/EventHandler'; import { EventTarget } from '../libs/events/EventTarget'; import { getFiles, getWorkerUrl } from '../SubtitleEngineLoader'; import { CustomEvent } from './CustomEvent'; export interface IVideoRect { width: number; height: number; x: number; y: number;...
import { useMemo, useRef, useState } from 'react'; import { PureComponent } from 'react'; import { connect } from 'react-redux'; import { flatMap, flatten, sortBy, toPairs, values } from 'lodash'; import { DragDropContext, Droppable, OnDragEndResponder } from 'react-beautiful-dnd'; import classnames from 'classnames'; ...
import * as path from 'path'; import { google } from 'googleapis'; const healthcare = google.healthcare('v1'); import needle from 'needle'; import search from 'approx-string-match'; import { ClinicalDataExtraction } from '../interfaces/clinical.nlp.types'; import { IClinicalNLPProvider } from '../interfaces/clinical.n...
import * as _ from "lodash"; import path from "path"; import bcrypt from "bcrypt"; import DataLoader from "dataloader"; import moment from "moment"; import { FindOptions, Sequelize, Op, WhereAttributeHash, RDBMSManager, RDBMSManagerOptions, Transaction } from "../../../lib/rdbms"; import { IDPAdapter, IDPAdapterProps }...
import without from 'lodash/without'; import isEqual from 'lodash/isEqual'; import type { Action } from 'types/Action'; interface BaseResource { id: string; } const FETCH_START = 'FETCH_START'; const FETCH_SUCCESS = 'FETCH_SUCCESS'; const FETCH_SUCCESS_IGNORE = 'FETCH_SUCCESS_IGNORE'; // clears loading ids for unch...
<gh_stars>0 import { validateIdNumber as validate, idNumberDetails, gender, male, female } from "./index"; const data: id[] = [ { id: "4006300395087", dob: "1940-06-29T22:00:00.000Z", m: false, sa: true }, { id: "4709020184083", dob: "1947-09-01T22:00:00.000Z", m: false, sa: true }, { id: "4...
import { nanoid } from "nanoid"; import React, { memo, useEffect, useState } from "react" import { BehaviorSubject, filter, first, map, Observable, Subscription } from "rxjs"; import BrowserView, { spawnBrowserView } from "../../common/components/BrowserView"; import { FileBrowserInstanceState } from "../files/FileBr...