text stringlengths 3.08k 15.5k |
|---|
<filename>src/webhook/webhook.service.ts
import { Injectable, Logger } from '@nestjs/common';
import * as request from 'request'
import * as line from '@line/bot-sdk';
import { ConfigService } from 'nestjs-config';
import { order } from '../message/orderFood';
import { orderConfirm } from '../message/orderConfirm';
imp... |
import { logger } from '@rester/logger';
import { URLSearchParams } from 'url';
import { Part } from '../../interfaces';
export class BodyParser {
private static keymap = {
CR: 0x0d,
LF: 0x0a,
DASH: 0x2d,
};
private static regmap = {
key: /([^\s]*): ([^\s]*)/,
contentDisposition: /Content-D... |
import { useCallback, useState, FC, ChangeEvent } from 'react';
import { useLocation } from 'react-router-dom';
import { Loader, CodeBlock, Button, LongNumber } from 'franklin-sites';
import cn from 'classnames';
import ColumnSelect from '../column-select/ColumnSelect';
import useLocalStorage from '../../hooks/useLoc... |
import { Component, DebugElement } from '@angular/core';
import { TestBed, ComponentFixture, fakeAsync, tick } from '@angular/core/testing';
import { BrowserModule, By } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { slice } from 'lodash-es';
import { TreeviewItemComponent } fr... |
<reponame>bitonality/sharapi
import "./frida"
import { Symbols } from "./Symbols"
import { Base } from "./Base"
import { Vector } from "./Radmath"
import { RoadSegment } from "./RoadSegment"
import { InstDynaPhysDSG } from "./InstDynaPhysDSG"
import { WorldRenderLayerLock, WorldPhysicsLock, ContextUpdateLock } from "./... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Import React and Amplify packages
import React from 'react';
import { I18n } from 'aws-amplify';
import { ForgotPassword } from 'aws-amplify-react';
// Import React Bootstrap components
import Navbar from '... |
import isEmpty from 'lodash/isEmpty';
import { PublicAddress } from '@fioprotocol/fiosdk/src/entities/PublicAddress';
import apis from '../api/index';
import { sleep, isDomain } from '../utils';
import { FREE_ADDRESS_REGISTER_ERROR, ERROR_TYPES } from '../constants/errors';
import { RegisterAddressError } from '../util... |
<filename>src/Modules/Worker/WorkerController.ts<gh_stars>1-10
// src/Modules/Worker/WorkerController.ts
import { promises as fs } from 'fs';
import { resolve as resolvePath } from 'path';
import { spawnWorker } from '@k-foss/ts-worker';
import { TestFile, TestFileStatus } from '../TestFiles/TestFileModel';
import { fi... |
<reponame>mark-gu/devops-dashboard-server
import _ from 'lodash';
import * as Model from '../model';
import { RequestHelper } from '../utils/HttpHelpers';
const _baseUrl: string = process.env.BAMBOO_URI || '';
const _apiUrl: string = `${_baseUrl}/rest/api/latest`;
const _auth = `Basic ${process.env.BAMBOO_AUTH_TOKEN}`... |
<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------... |
/*
* Copyright (C) 2017-2019 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
import { assert } from "@here/harp-utils";
import { TextElement } from "./TextElement";
import { TextElementGroup } from "./TextElementGroup";
import { TextElementFilter, ... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { Node, Range, Text } from '@ephox/dom-globals';
import { Opti... |
<gh_stars>0
import * as moment from 'moment';
import { HttpException, HttpStatus, Injectable, Param } from '@nestjs/common';
import CreateWalletDto from '../dto/wallet/createWalletDto';
import { InjectRepository } from '@nestjs/typeorm';
import Wallet from '../entities/wallet.entity';
import { getConnection, Repos... |
import { core, flags, SfdxCommand } from "@salesforce/command";
import { AnyJson } from "@salesforce/ts-types";
// Initialize Messages with the current plugin directory
core.Messages.importMessagesDirectory(__dirname);
//import excelUtil = require("../../../scripts/createFile");
// Load the specific messages for this... |
/* eslint-disable react/require-default-props */
import * as React from 'react';
import {
Menu,
MenuItem,
// Tooltip,
ListItemText,
Avatar,
ButtonBase,
Typography,
ListItemIcon,
useMediaQuery,
IconButton,
Button,
DialogContent,
} from '@material-ui/core';
import ArrowDrop... |
<reponame>Komal-SG/peoplemath<gh_stars>0
// Copyright 2019 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 re... |
export function getSaiban(input: string, option: number){
// option 1(filename), 2(東京地+支+判)
let bunkenshubetsu : any = input.match(/【文献種別】[ \t]*(?<keishiki>(?:判|決|中間判))[決定]/(?<court>.+[^方等])[方等]?裁判所(?:(?<shibu>.+支)部)?/);
var shibuname = bunkenshubetsu.groups.shibu;
var honbuname = bunkenshubetsu.groups.court;
if... |
// (C) 2020 GoodData Corporation
import { DataViewFacade } from "@gooddata/sdk-ui";
import {
IMeasureDescriptor,
IMeasureGroupDescriptor,
IResultAttributeHeader,
} from "@gooddata/sdk-backend-spi";
import { IUnwrappedAttributeHeadersWithItems } from "../../typings/mess";
import { getLighterColor, IColorStra... |
import saml from '@boxyhq/saml20';
import xml2js from 'xml2js';
import thumbprint from 'thumbprint';
import xmlcrypto from 'xml-crypto';
import * as rambda from 'rambda';
import xmlbuilder from 'xmlbuilder';
import crypto from 'crypto';
import claims from './claims';
import { SAMLProfile, SAMLReq } from '../typings';
... |
<reponame>BanupriyaSelvaraj/ej2-samples
import { loadCultureFiles } from '../common/culture-loader';
import { Slider, SliderChangeEventArgs } from '@syncfusion/ej2-inputs';
import { Button, CheckBox } from '@syncfusion/ej2-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
import { Dialog } from '@syncfusio... |
import * as fs from 'fs';
import promiseStream, { PromiseStream } from 'promise-stream-reader';
import parseNameTable, { NameTable } from './tables/name';
import parseLtagTable from './tables/ltag';
import parseOS2Table, { OS2Table } from './tables/os2';
import parseHeadTable, { HeadTable } from './tables/head';
impor... |
import React, { createContext, useContext, useEffect, useState, FC } from 'react';
import { keyframes, css } from 'styled-components';
import * as animations from 'react-animations';
import { Transition } from 'react-transition-group';
import { FocusOn } from 'react-focus-on';
import Portal from '../Portal';
import { F... |
<gh_stars>0
import express, { Application, Request, Response, NextFunction } from "express";
import bodyParser from "body-parser";
import { GraphQLClient } from "graphql-request";
import { getEnv } from "./env.js";
import { DbExpansion } from "./packages/db/db.js";
import * as ampcs from "@nasa-jpl/aerie-ampcs";
impor... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import React, { Suspense, useRef, useMemo, useEffect, useState } from "react";
import * as THREE from "three";
import { useFrame, useThree } from "react-three-fiber";
import { useMatcapTexture, Octahedron, HTML } from "@react-three/drei";
import Loader from "../Loader";
// import Slerp from "../Slerp";
import Mirrors... |
import { useState } from 'react';
import ReactList from 'react-list';
import { createProvider } from 'tg.fixtures/createProvider';
import { useApiQuery } from 'tg.service/http/useQueryApi';
import { container } from 'tsyringe';
import { ProjectPreferencesService } from 'tg.service/ProjectPreferencesService';
import { ... |
import {
ExtractVisageComponentProps,
markAsVisageComponent,
} from '@byteclaw/visage-core';
import React, {
createContext,
cloneElement,
ReactElement,
ReactNode,
useCallback,
useContext,
useRef,
useState,
KeyboardEventHandler,
forwardRef,
MouseEventHandler,
Ref,
} from 'react';
import { cre... |
<filename>frontend/src/utils/mathGeo.utils.ts
export const TO_RADIANS = Math.PI / 180;
export const TO_DEGREES = 180 / Math.PI;
// Helper function: cross product of two vectors v0&v1
export const cross = function (v0, v1) {
return [v0[1] * v1[2] - v0[2] * v1[1], v0[2] * v1[0] - v0[0] * v1[2], v0[0] * v1[1] - v0[1] * ... |
import DropdownDivider from './DropdownDivider';
import DropdownItem, { DropdownItemProps, StyledDropdownItem } from './DropdownItem';
import DropdownMenu, { StyledDropdownMenu } from './DropdownMenu';
import DropdownText, { StyledDropdownText } from './DropdownText';
import EventListener from '../../addons/EventListen... |
import { Beneficiary } from './beneficiary';
import { ArrayInputField } from './custom-models/array-input-field';
import { CustomModel } from './custom-models/custom-model';
import { DateModelField } from './custom-models/date-model-field';
import { MultipleObjectsModelField } from './custom-models/multiple-object-mode... |
<reponame>doersino/urpflanze<gh_stars>1-10
import { toRadians, toDegrees } from 'src/Utilites'
import DrawerCanvas from '@services/drawers/drawer-canvas/DrawerCanvas'
import SceneChildPropsData, {
ISceneChildPropData,
TSceneChildPropsDataKeys,
} from '@services/scene-utilities/SceneChildPropsData'
import { IShapeLoo... |
<filename>src/app/utilities/constants.ts
export const mapboxAccessToken = '<KEY>';
export const changingStations = 'cps_inspection_stations'
// * copies the variables from the scss variables.scss file. Must be maintained manually for now
export const S4_RED_LIGHT = '#f7908d';
export const S4_RED_DARK = '#BF1F2F';
expo... |
import React, { KeyboardEvent } from 'react';
import { Grid, TextField, MenuItem, InputAdornment, FormControlLabel } from '@material-ui/core';
import { TFunction } from 'i18next';
import { YellowCheckbox } from '../../../../styles/YellowCheckbox';
import { MathRelation } from '../../../../model/MathRelation';
import { ... |
<filename>test/playwright.fixtures.ts
/**
* Copyright Microsoft Corporation. All rights reserved.
*
* 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... |
<filename>src/singpass/__tests__/ndi-singpass-helper.spec.ts
import { JWTPayload } from "jose";
import { NDITokenResponse } from "..";
import { NdiOidcHelperConstructor, NdiOidcHelper } from "../ndi-singpass-helper";
const mockTokenUrl = "https://mocksingpass.sg/token";
const mockClientId = "CLIENT-ID";
const mockRedi... |
import React, { useContext, useEffect, useState } from 'react';
import styled from 'styled-components';
import { Records } from '@polkadot/pages/components';
import { PolkadotAccountsContext } from '@polkadot/pages/components/PolkadotAccountsProvider';
import { PlatonAccountsContext } from '@polkadot/pages/components/P... |
/// <reference path="../../../typings/index.d.ts" />
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { IndexLink, Link } from 'react-router';
import { AuthActionTypes, ProviderTypes, EditorActionTypes } from '../actions/types';
import * as AuthActions from '../actions/authActions';
import... |
<reponame>stephenkopylov/react-stores<filename>src/Store.ts
declare const __VERSION__: string;
declare const __IS_DEV__: boolean;
import { StorePersistentDriver } from './StorePersistentDriver';
import { StorePersistentLocalStorageDriver } from './StorePersistentLocalStorageDriver';
import { StoreEventManager } from '... |
import * as fs from "fs";
import * as path from 'path';
import { v4 } from 'uuid';
import commands from '../../commands';
import GlobalOptions from '../../../../GlobalOptions';
import Command, {
CommandOption,
CommandValidate,
CommandAction,
CommandError
} from '../../../../Command';
import Utils from '../../..... |
import * as regression from 'regression';
import {
Section,
Type,
LineOptions,
BasicOptions,
CalculationOptions,
CopyOptionsEx
} from './types';
import { MetaDataSet } from './MetaData';
const defaultConfig: BasicOptions = {
type: 'linear',
calculation: {
precision: 2,
order: 2
},
line: {
... |
<reponame>LukeChannings/afix-range-slider-element
import { template } from './Component.template'
import {
bindAttributes,
assert,
minmax,
getFractionDigits,
} from './Component.utils'
export interface AfixRangeSliderChange {
value: string
rawValue: number
}
interface State {
width: number
height: num... |
<reponame>VwVofficial/csillagkoziinvazio
import { Canvas } from './canvas';
import './style.css';
import { distance_sq } from './utils';
const appCanvas = <HTMLCanvasElement>document.getElementById('app');
const start_dialog = document.getElementById('start');
const win_dialog = document.getElementById('win');
const l... |
<reponame>Asha20/simple-recipe
import { chain, map, right } from "fp-ts/lib/Either";
import { pipe } from "fp-ts/lib/pipeable";
import { decodeItem, decodeItems, decodeTag, decodeTags, isItem, isItems, isTag, isTags } from "../parts";
import { encodeGroup, hasKeys, isObject, leftErr, PEither, seqT, traverse } from "../... |
import React, { Fragment, useEffect, useState } from "react";
import { Menu, Transition } from '@headlessui/react'
import { ChevronDownIcon } from '@heroicons/react/solid'
import { useRouter } from "next/router";
import Link from "next/link";
import { akOperatorClasses } from "../../constants/classes";
import CoreCont... |
/**
* Copyright 2018 Google Inc. All Rights Reserved.
*
* 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 appli... |
/** @jsx jsx */
import { css, jsx } from "@emotion/core";
import styled from "@emotion/styled";
import React from "react";
import ResponsiveImage from "../../../ui/images/ResponsiveImage";
import { BRAND, SHADES } from "../../../ui/variables";
import { DETAILS_PAGE } from "../../../analytics/details-page/events";
impor... |
import React, { useEffect, useState } from "react";
import WalletIcon from "images/wallet/wallet.svg";
import { FormattedMessage } from "react-intl";
import { Input, isMobile, Label, Modal, TextDesc, Title } from "styles/styles";
import styled from "styled-components";
import { Box, CircularProgress, IconButton, Outlin... |
/**********************************************************************
* Copyright (C) 2022 Red Hat, 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/l... |
require('dotenv').config();
import { router as auth_endpoints } from './auth';
import { router as extract_endpoints } from './extract';
import { router as notification_endpoints } from './notification';
import { router as record_endpoints } from './record';
import { router as search_endpoints } from './search';
import... |
/*
* @forgerock/javascript-sdk
*
* index.ts
*
* Copyright (c) 2020 ForgeRock. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import {
browserProps,
configurableCategories,
delay,
devicePlatforms,
displayP... |
<gh_stars>0
import { TerrainGenerator } from '@game/map/map-generation/TerrainVer/TerrainGenerator.js';
import { PositionGenerator } from '@game/map/map-generation/TerrainVer/PositionGenerator.js';
import * as hxGeom from '@game/map/map-generation/hxGeomAlgo/hxGeomAlgo.js';
import * as marchingsquares from '@game/ma... |
<reponame>alvis/store<gh_stars>0
/*
* *** MIT LICENSE ***
* -------------------------------------------------------------------------
* This code may be modified and distributed under the MIT license.
* See the LICENSE file for details.
* -------------------------------------------------... |
<reponame>HackGT/hackgt-auth
import * as crypto from "crypto";
import * as http from "http";
import * as https from "https";
import { Request, Response, NextFunction } from "express";
import { config, IConfig } from "../../common";
import { createNew, IUser, Model, User } from "../../schema";
import { sendVerification... |
<reponame>nclavaud/mon-entreprise<gh_stars>0
import Engine, { EvaluationFunction } from '.'
import {
ASTNode,
ConstantNode,
Evaluation,
EvaluatedNode,
NodeKind,
} from './AST/types'
import { warning } from './error'
import { convertNodeToUnit, simplifyNodeUnit } from './nodeUnits'
import parse from './parse'
impor... |
import React, { useState, useEffect, useRef } from "react";
import {
Wrapper,
Search,
Marker,
Results,
Column,
Group,
Scroll,
Attribution,
} from "./GifPicker.style";
import { PlaceholderMessage, placeholderMessages } from "./PlaceholderMessage";
import { IGif } from "@giphy/js-types";
import { Gif, Gif... |
<reponame>metered/libhoney-js
import { SuperAgentRequest } from "superagent";
export interface TransmissionResponse {
status_code?: number
metadata: unknown | null
duration?: number
error?: Error
}
export type TransmissionResponseHook = (responses: TransmissionResponse[]) => void
export interface Transmissio... |
import classNames from 'classnames';
import React, { ChangeEvent, FC, memo, MouseEvent, useMemo, useRef } from 'react';
import axios from 'axios';
import { UploadFile, UploadStatus } from './interface';
import FileList from './fileList/FileList';
import { getBase64, getUid, verifyMIME } from './utils';
import useStateF... |
<reponame>microsoft/vscode-docs-authoring<gh_stars>10-100
import { existsSync } from 'fs';
import * as moment from 'moment';
import * as os from 'os';
import { basename, dirname, join, relative } from 'path';
import { TextDocumentContentProvider, Uri, window, workspace } from 'vscode';
import { getBreadCrumbPath, parse... |
<filename>src/index.ts
import crypto from 'crypto';
import execa from 'execa';
import { Express, NextFunction, Request, Response } from 'express';
import fs from 'fs-extra';
import path from 'path';
interface Config {
skipNpmInstall?: boolean;
skipBuildPhase?: boolean;
showConsoleLog?: boolean;
githubUsername?... |
import { approx } from './c';
import { NonExpression, InternalError } from './Error';
import { AbstractVariable, Variable } from "./Variable";
import HashTable from "./HashTable";
import HashSet from "./HashSet";
import SimplexSolver from './SimplexSolver';
const checkNumber = (value: any, otherwise: any) => {
retu... |
import * as React from 'react';
import * as R from 'ramda';
import { ComponentProps, useCallback, useMemo } from 'react';
import { Tree } from 'antd';
import { FiFolder } from 'react-icons/fi';
import { observer } from 'mobx-react';
import { componentsStore, selectStore, SelectType, sharedStore } from 'states';
import ... |
import { inject, bindable, bindingMode, containerless, customElement, TaskQueue } from 'aurelia-framework';
import { getLogger, Logger } from 'aurelia-logging';
import { MDCMenu, Corner } from '@material/menu';
import * as util from '../util';
export interface IMdcMenuSelectedEvent extends CustomEvent {
detail: {
... |
/* LineChart.tsx
* ================
*
* A standard line chart.
*
*/
import * as React from 'react'
import { last, guid } from './Util'
import { computed, action, observable } from 'mobx'
import { observer } from 'mobx-react'
import { select } from 'd3-selection'
import { easeLinear } from 'd3-ease'
import ChartC... |
import React, { useEffect, useRef, useState } from 'react'
import { Box, Heading, HStack, Icon, IconButton, NativeBaseProvider, View, VStack } from 'native-base'
import WebView from 'react-native-webview'
import { ActivityIndicator, NativeModules, Platform } from 'react-native'
import * as Linking from 'expo-linking'
i... |
import React, { FunctionComponent, useState, ReactNode } from 'react';
import { Form, Row, Col } from 'react-bootstrap';
import styles from './Form.module.scss';
import { PrimaryButton, BUTTON_TYPES } from '../button/Button';
import { APIRequester, REQUEST_METHODS } from '../../helpers/apiRequester';
import store from ... |
<filename>src/components/Charts/utils.ts
import _ from 'lodash';
import { range } from 'lodash';
import moment from 'moment';
import { scaleUtc } from '@vx/scale';
import { LevelInfoMap, Level, LevelInfo } from 'common/level';
export const last = (list: any[]) => list[list.length - 1];
export const roundAxisLimits = ... |
<reponame>bakduo/sscom
import { Model, Connection } from 'mongoose';
import { IMongoConnect } from '../datastore';
import { IPasswordDTO, IUserDTO } from '../dto';
import { loggerApp, appconfig } from '../init';
import { errorGenericType, IKeyValue, NoUserRemote, TDeletedMongo } from '../interfaces';
import { SchemaUse... |
import {
GL_TYPE_GETTER,
GL_TYPE_SETTER,
GL_TYPE_SIZE,
GLDataTypes,
GLDataTypesInfo,
glDataTypesInfo,
} from '../renderer/Renderable';
import {App, VertexBuffer} from 'picogl';
export const kDataMappingFlatten = Symbol('graffer:data::mapping::flatten::key');
const kDataEntryNeedsFlatten = Symbo... |
<filename>wtfunction.ts
import * as ts from 'typescript';
import * as R from 'ramda';
declare var console: Console;
function strToNode(str: string) {
return ts.createSourceFile(/*fileName*/ 'bar.ts', /*sourceText*/ str, /*languageVersion*/ ts.ScriptTarget.ESNext);
}
const unknownExpr: ts.Expression = <ts.Expressio... |
#!/usr/bin/env ts-node-script
import './polyfills';
import readline from 'readline';
import { Command } from 'commander';
const command = new Command();
import * as inquirer from 'inquirer';
import chalk from 'chalk'
import storage from 'node-persist'
import { db } from './persistence/db'
import { setup... |
import { writeFile } from "fs";
import merge from "lodash/merge";
import flow from "lodash/flow";
import set from "lodash/set";
import chokidar from "chokidar";
type VariableMap = { [key: string]: string | VariableMap };
const NAME: string = "scss-variable";
export interface Option {
src: string;
dest: string;
... |
<reponame>jczaplew/DefinitelyTyped
// test for qiniu.conf
function testConf() {
qiniu.conf.ACCESS_KEY = 'Access_Key';
qiniu.conf.SECRET_KEY = 'Secret_Key';
}
// test for qiniu.auth
function testAuth() {
// test for auth.Mac
const mac = new qiniu.auth.Mac(qiniu.conf.ACCESS_KEY, qiniu.conf.SECRET_KEY);
}... |
import { UUID } from "../logion-chain/UUID";
export class WsProvider {
constructor(socket: string) {
}
}
interface ApiPromiseArgs {
provider: WsProvider,
types: any,
rpc: any,
}
let apiCallbacks: Record<string, () => void> = {};
export let isReadyResolve: (() => void) | null = null;
export let ... |
import { defineComponent } from 'vue';
import {
defaultPropValue,
colorVariantClass,
sizePropValidator
} from '@inkline/inkline/mixins';
import { breakpointKeys, breakpoints } from '@inkline/inkline/constants';
import { debounce } from '@inkline/inkline/helpers';
import { Classes } from '@inkline/inkline/ty... |
<filename>src/features/themes.ts
import { normalizePath, Notice } from "obsidian";
import ThePlugin from "../main";
import { GenericFuzzySuggester, SuggesterItem } from "../ui/GenericFuzzySuggester";
import { updateBetaThemeLastUpdateDate } from "../ui/settings";
import { grabCommmunityThemeObsidianCss, grabCommmunityT... |
import * as _ from 'lodash';
import { Component, ViewChild } from '@angular/core';
import {
composeWithUi,
ControlElement,
Generate,
JsonFormsState,
JsonSchema,
RankedTester,
rankWith,
resolveSchema,
toDataPath,
UISchemaElement,
uiTypeIs,
} from '@jsonforms/core';
import { JsonFormsControl } from ... |
<gh_stars>0
import { ensureArray, getIndexOne, parsePubKeyArray } from './helpers';
import { AttestationType, UserVerificationType } from './interfaces';
function parseWebAuthnRegisterText(text: string): PublicKeyCredentialCreationOptions {
const txtEncoder = new TextEncoder();
// e.g. `attestation: "none"`
con... |
<filename>src/expressions/boolean_not/parse.ts<gh_stars>0
import { RenderContext } from "../../context";
import {
InternalSyntaxError,
InternalTypeError,
LiquidSyntaxError,
} from "../../errors";
import {
Expression,
BooleanExpression,
InfixExpression,
isLiquidTruthy,
} from "../../expression";
import {
... |
import { SystemVerilogIndexer } from '../indexer';
import { CompletionItemProvider, CompletionItem, TextDocument, Position, CancellationToken, CompletionContext, commands, CompletionItemKind } from 'vscode';
import { SystemVerilogSymbol } from '../symbol';
// See test/SymbolKind_icons.png for an overview of the icons... |
<reponame>berse-io/bridge
import { Web3Wrapper } from "@0x/web3-wrapper";
import { Web3ProviderEngine, RPCSubprovider } from "0x.js";
import { SolCompilerArtifactAdapter } from '@0x/sol-trace';
export interface MultichainInfo {
pe: Web3ProviderEngine;
web3: Web3Wrapper;
snapshotId: number;
config: any;
... |
<filename>src/store/modules/settings.ts
import Vue from 'vue';
import { ethers } from 'ethers';
import store from '@/store';
import provider from '@/helpers/provider';
import {
getExchangeRatesFromCoinGecko,
getPotions,
getAllowances,
revitalisePotion,
withdrawPotion
} from '@/helpers/utils';
import assets fr... |
import { ChainId } from "./chain";
import { Context, ContextValue } from "./context";
import { EarningsInterface } from "./interfaces/earnings";
import { FeesInterface } from "./interfaces/fees";
import { IronBankInterface } from "./interfaces/ironbank";
import { SimulationInterface } from "./interfaces/simulation";
im... |
import React, { useState } from "react";
import Modal from "components/Modal";
import Button from "components/buttons/Button";
// @ts-ignore
import Checkbox from "components/forms/fields/Checkbox";
// @ts-ignore
import InputField from "components/forms/fields/InputField";
import { IWebhookSoftwareVulnerabilities } fr... |
// FlakyTestTable Component
/**
* Component that renders flaky test data
* @packageDocumentation
*/
import React, { useEffect, useState } from 'react';
import {
AutoSizer,
Grid,
GridCellRenderer,
ScrollSync,
Index,
ColumnProps,
} from 'react-virtualized';
import { makeStyles, createStyles } ... |
<gh_stars>0
/*
* Lumeer: Modern Data Definition and Processing Platform
*
* Copyright (C) since 2017 Lumeer.io, s.r.o. 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 as published by
* the Free Software Foundat... |
import { Injectable, enableProdMode } from '@angular/core';
import { tokenNotExpired } from 'angular2-jwt';
import { myConfig } from './auth.config';
import { User } from './user/common/user';
import { UserService } from './user/common/user.service';
import 'rxjs/add/operator/switchMap';
import { environmen... |
<gh_stars>1-10
import {VNode} from './VNode';
import {Callbacks, createRemoveCallback} from './Callbacks';
import {ElementCreator} from './ElementCreator';
import * as api from './api/dom';
import {
isDef,
isUndef,
sameVNode,
pluck,
createKeyToOldIdx} from './util/index';
const pluckPrepatch = pluck('hook',... |
<reponame>briwa/isoisoiso<filename>src/app/sprites/human.ts
// NOTE: This class is to separate human side effects (phaserjs-related) from the logics (chars/human)
// TODO:
// - consider cleaning up signals on destroy?
import Phaser from 'phaser-ce';
import Human from 'src/app/chars/base/human';
import Npc from 'src/ap... |
import { assign, createMachine, Sender } from 'xstate';
import { createModel } from 'xstate/lib/model';
type AcquisitionMethod = 'BOM' | 'GFx';
type CIOGSupported = 'Yes'; // TODO: needs confirmation in writing
type Group = 'CP';
type InCPScope = 'Y' | 'N';
type Program = 'Leidos OGS' | 'CP Transformation'; // not sur... |
<gh_stars>1-10
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {useCallback, useEffect, useState} from 'react'
import {useDispatch} from 'react-redux'
import {FINISHED, TourCategoriesMapToSteps, TOUR_ORDER} from '../onboardingTour'
import ... |
<gh_stars>0
/** @module timeline-window */
import { Direction, EventTimeline } from './models/event-timeline';
import { MatrixClient } from "./client";
import { EventTimelineSet } from "./models/event-timeline-set";
import { MatrixEvent } from "./models/event";
interface IOpts {
windowLimit?: number;
}
export decla... |
'use strict';
const tabwrap = (rootElement : HTMLElement) : void => {
let activeElement : HTMLElement | null = null;
let tabKeyDetected : boolean = false;
let shiftKeyDetected : boolean = false;
let documentListenersSetUp : boolean = false;
let documentFocusInListener : EventListenerOrEventListene... |
import React from "react";
import {
Alert,
FlatList,
ListRenderItem,
StyleProp,
View,
ViewStyle,
} from "react-native";
import { useAuth } from "../../context/AuthContext";
import { useReviews } from "../../context/ReviewContext";
import {
Solution,
SolutionStar,
useCreateReportMutation,
useDeleteIm... |
import { FormEvent, useState } from "react";
import { useHistory } from "react-router-dom";
import { toast } from "react-toastify";
import Header from "../../components/Header";
import { Question } from "../../helpers/Quiz";
import api from "../../services/api";
import './styles.scss';
const Home = () => {
const his... |
<reponame>patrick-huber/oven-cam-client
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, ModalController, Platform, ActionSheetController, AlertController } from 'ionic-angular';
import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument } from 'angularfire2... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Observable, of, Subscription } from 'rxjs';
import { map, catchError, concatAll, shareReplay } from 'rxjs/operators';
import { urls } from '@biosimulations/config/common';
import { SimulationService ... |
import React from 'react';
import { TouchableOpacity, ActivityIndicator, StatusBar } from 'react-native';
import { Constants, LinearGradient } from 'expo';
import styled from 'styled-components/native';
import HeaderImageScrollView, {
TriggeringView
} from 'react-native-image-header-scroll-view';
// types
import { Ca... |
import { PDFPage, PDFPagesFills } from 'pdf2json';
import { groupBy, sortBy, flattenDeep } from 'lodash';
import { LINE_TYPE, MENU_REGEXP } from './constants';
import {
prettyTexts, splitText, parseText,
parseDate, setDateTime, getNearCell,
} from './utils';
import {
MenuCell, MenuDate, MenuMeal, MenuCorner,
M... |
<reponame>cucdengjunli/egjs-view360<filename>src/YawPitchControl/input/lib/webvr-polyfill/complementary-filter.ts
/*
* Copyright 2015 Google Inc. All Rights Reserved.
* 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... |
<filename>src/id.ts
import { debug, error } from '@/utils/logger'
import {
Address,
addressToBytes,
bytesToAddress,
bytesToHex,
hexToBytes,
} from '@comoc-im/message'
export interface ComocID {
publicKey: CryptoKey
privateKey: CryptoKey
}
interface ComocIdCache {
publicKey: JsonWebKey
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.