text stringlengths 3.08k 15.5k |
|---|
import {Component, h} from 'preact';
import {Link} from 'preact-router/match';
import {Loading} from '../components/loading';
import {Page} from './page';
import {createStagingLink} from '../utils/links';
import {prettyDate} from '../utils/formatters';
import {rpc} from '../utils/rpc';
interface BuildPageProps {
ma... |
import { RuleCategory, Day } from '../../lib/types.d';
import { h, included, weekEnd } from '../../lib/helpers';
import { Rule, stationRules } from '../../lib/rule';
import Edge from '../../lib/edge';
const coutDirectUnitaire = 1.7045567852248;
enum LineDensity {
VERY_HIGH = 'Très élevé',
HIGH = 'Élevé',
MEDIUM... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
<reponame>Dante-101/janan
import { RequiredKeys } from '../../common/types'
import { isPlainObject } from '../../common/validation'
export interface IdObj { id: string }
export type Id<T extends object> = T & IdObj
export type OptId<T extends object> = T & Partial<IdObj> //optional ID
export type IdMap<T extends I... |
import {
OpenSheetMusicDisplay,
GraphicalMeasure,
GraphicalStaffEntry,
GraphicalVoiceEntry,
GraphicalNote,
VerticalGraphicalStaffEntryContainer,
} from "opensheetmusicdisplay";
export type MusicSystemData = {
index: number;
x: number;
y: number;
};
export type NoteData = {
index: number;
x: numb... |
declare var jStat: any;
abstract class Random {
seed: number;
called: number;
constructor(seed) {
this.seed = seed;
this.called = 0;
}
abstract random(): number;
randRange(min: number, max: number) {
return (max - min) * this.random() + min;
}
uniform = this.r... |
import {
INVALID_SIGNATURE,
MISSING_SIGNATURE,
MISSING_TOKEN,
} from "@staart/errors";
import { constructWebhookEvent } from "@staart/payments";
import {
NextFunction,
RateLimit,
RawRequest,
Request,
Response,
slowDown,
} from "@staart/server";
import { ms } from "@staart/text";
import { joiValidate, ... |
import {
FilledTextFieldProps,
FormControl,
FormHelperText,
Grid,
IconButton,
Input,
InputAdornment,
InputLabel,
makeStyles,
StandardTextFieldProps,
TextField,
} from '@material-ui/core';
import Icons from '../icons/Icons';
import { ReactElement } from 'react';
import {
IAdornmentConfig,
IIcon... |
<reponame>cinerino/domain
// tslint:disable:no-implicit-dependencies no-console
import { chevre } from '../../../lib/index';
import * as csv from 'csvtojson';
import * as fs from 'fs';
import * as json2csv from 'json2csv';
import * as moment from 'moment';
import * as mongoose from 'mongoose';
const csvFilePath ... |
<reponame>adaptedbee/ng-gxselect<gh_stars>0
import {
AfterContentChecked, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren,
EventEmitter, forwardRef, Input, OnChanges, OnDestroy, OnInit, Output, QueryList, SimpleChanges, ViewChild
} from '@angular/core';
import { ViewState } fro... |
import { dynamicMarker, ZenTemplate } from './zen-template';
import { render } from './render';
/**
* A cache of nested templates.
*/
export const templateCache = new WeakMap<Node, DynamicNode>();
export class DynamicNode {
values: DynamicValue[] = [];
renderables: RenderableArea[] = [];
constructor (no... |
<filename>src/cli/commands/public-cmds/merge-cmd.ts
import chalk from 'chalk';
import { merge } from '../../../api/consumer';
import { WILDCARD_HELP } from '../../../constants';
import {
ApplyVersionResult,
ApplyVersionResults,
FileStatus,
getMergeStrategy,
} from '../../../consumer/versions-ops/merge-version'... |
import * as React from 'react';
import { RouteComponentProps } from 'react-router';
import { Link } from 'react-router-dom';
import {
AggregateStatusNotification,
AggregateStatusNotifications,
Breadcrumb,
Card,
CardBody,
CardGrid,
CardTitle,
Col,
Icon,
Row
} from 'patternfly-react';
import { AxiosEr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import React, { Dispatch } from 'react';
import { connect } from 'react-redux';
import { Coordinates2D, Caste, Figure, CasteSwapStep, TilePlayStep, TileMoveStep, GameStep } from '../../types/GameTypes';
import './BoardTileComponent.scss';
import { AppAction } from '../../actions';
import { openDialog } from '../../acti... |
/*
* Copyright (C) 2018 DANS - Data Archiving and Networked Services (<EMAIL>)
*
* 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
*
* Unle... |
import * as React from "react"
import {v4 as uuid} from 'uuid'
import { WidgetDef } from "../widgets/widgets";
import { DataSource } from "mwater-expressions";
import WidgetDesigner from "./WidgetDesigner";
import produce from "immer";
import * as _ from "lodash";
import { BlockPaletteEntry } from "./blockPaletteEntrie... |
import * as d3 from 'd3'
import { D3ZoomEvent, EnterElement, SimulationLinkDatum, SimulationNodeDatum } from 'd3'
import * as Vue from 'vue/types/umd'
import { CombinedVueInstance } from 'vue/types/vue'
import { Constituent } from './cuents/Constituent.js'
import { RecipeLink } from './recipes/RecipeLink.js'
import { G... |
import inquirer = require('inquirer')
import chalk from 'chalk';
import { exec, spawn } from 'child_process';
import { rmdir, stat, Stats, unlink } from 'fs';
import { bindNodeCallback, EMPTY, from, fromEvent, Observable, of, throwError } from 'rxjs';
import { buffer, catchError, filter, map, mergeMap, switchMap, take... |
import {
EditorState,
Entity,
Modifier,
RichUtils,
SelectionState,
CompositeDecorator,
} from 'draft-js';
import Link from './LinkControls/Link';
import linkStrategy from './LinkControls/linkStrategy';
import getSelectionEntities from './getSelectionEntities';
export const getEntitySelectionState = (
ed... |
import { Utils } from '../utils';
import { SolveResult } from '../solve/result';
export abstract class XGrid {
public static AsPlain(
grid: PlainGrid | DenseGrid | { x: number; y: number } | ImageData
): PlainGrid {
const g = grid as any;
const retVal =
grid instanceof ImageData
? XGrid.F... |
import { ApplicationContext, Component, Model, POINT, Style } from '@hatiolab/things-scene'
import { Table, TableCell } from '.'
export type WHERE = 'all' | 'in' | 'out' | 'left' | 'right' | 'center' | 'middle' | 'top' | 'bottom' | 'clear'
export const SIDES: {[key: string]: string[]} = {
all: ['top', 'left', 'bott... |
<reponame>Macil/rcon-ts
import * as net from 'net';
import { Buffer } from 'buffer';
import { ClientPacketType, ServerPacketType } from './protocol';
export class ExtendableError extends Error {
constructor(message: string = '', public readonly innerException?: Error) {
super(message);
this.message = message... |
/**
* A class used to manage a collection of `YTooltip` instances.
*/
class YTooltips {
private fig: mpld3.Figure;
private ax: mpld3.Axes;
private tooltips: Record<string, YTooltip>;
/**
* Create a `YTooltips` instance.
* @param fig the associated mpld3 Figure.
* @param ax the associated mpld3 Axes.
* @p... |
<reponame>WaiSiuKei/fin<gh_stars>1-10
import { ITextModel } from '../model/model';
import { IViewModel } from '../viewModel/viewModel';
import { ICommand, IConfiguration } from '../common';
import { ISelection, Selection } from '../core/selection';
import { Range } from '../core/range';
import { Position } from '../cor... |
<reponame>wachunga/ui-demo
import _ from 'lodash';
import { areFragmentsEquivalent, getFragment, getUrlPath, isUrlPathCurrent } from './urlUtils';
import { Spinner } from './loadingSpinner';
import {
awaitMessage,
handleMessages,
sendMessage,
MessagePayloads_EXTERNAL_NAVIGATION,
MessagePayloads_INTER_APP_NAV... |
<filename>src/depackVolume.ts
/**
* depacks Volumes sorted by Librarys
*/
/**
* TODO
* - implement first Version
* - check samples
*/
import * as fs from "fs-extra";
// parse commandline, check print help
import * as yargs from "yargs";
let argv = yargs
.usage("Usage: $0 [options]")
.example("$0 --src .... |
// MIT License
//
// Copyright (c) 2016-2018 GenesisKernel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... |
import Cesium, { Entity as CesiumEntity, CorridorGraphics } from "cesium";
import createCesiumComponent, { EventkeyMap } from "./core/CesiumComponent";
import EventManager, { EventProps } from "./core/EventManager";
import { BillboardGraphicsCesiumProps } from "./BillboardGraphics";
import { BoxGraphicsCesiumProps } f... |
<reponame>ioaNikas/blockframes
import { Organization } from "@blockframes/organization";
import { Material } from "@blockframes/material";
import { Stakeholder } from "../../stakeholder/+state";
import { DateRange } from "@blockframes/utils";
export interface MovieSale {
operatorName: string;
showOperatorName: boo... |
<reponame>syfxlin/tiptap-starter-kit
import {
Image as TImage,
ImageOptions as TImageOptions,
} from "@tiptap/extension-image";
import { NodeMarkdownStorage } from "../extensions/markdown/Markdown";
import { Plugin, PluginKey } from "prosemirror-state";
import FloatMenuView from "../extensions/float-menu/FloatMenuV... |
import React, { useState } from 'react';
import DatePicker from 'react-datepicker';
import Select from 'react-select';
import { NotificationManager } from 'react-notifications';
import { DollarSign } from 'react-feather';
import { useRouter } from 'next/router';
import Link from 'next/link';
import { InitialFormSchedu... |
<reponame>contember/engine<filename>packages/database/src/builders/ConditionBuilder.ts
import { Value } from '../types'
import { Literal } from '../Literal'
import { QueryBuilder } from './QueryBuilder'
import { SelectBuilder } from './SelectBuilder'
import { toFqnWrap } from './formatUtils'
import { Compiler } from '.... |
<filename>src/lib/auth/index.ts
import { Express, Response } from 'express';
import pug from 'pug';
import { join } from 'path';
import { UploadedFile } from 'express-fileupload';
import { google } from 'googleapis';
import { Credentials as GoogleAccessToken } from 'google-auth-library';
import Storage from '../storage... |
import React from 'react'
import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";
import {Icon, Layout, Menu, PageHeader} from 'antd';
import { Provider } from "react-redux";
import { withRouter } from "react-router";
import { connect } from "react-redux";
import store from "./redux/store";
im... |
<reponame>ljhljh235/AutoRest<filename>src/autorest-core/lib/autorest-core.ts
import { Stringify } from './ref/yaml';
import { RunPipeline } from './pipeline/pipeline';
import { SmartPosition, Position } from './ref/source-map';
import { DataStore, Metadata } from './data-store/data-store';
import { IEnumerable, From } ... |
import * as React from "react"
import styled from "styled-components"
interface IProps {
path: string
title: string
dateYYYYMMDD: string
className?: string
}
const Component: React.FC<IProps> = ({
className,
path,
title,
dateYYYYMMDD,
}) => (
<div className={className}>
{/* TODO: ここをcolとして直指定すると... |
// noinspection JSUnusedGlobalSymbols
import 'reflect-metadata';
import { EndpointDef } from '../types';
import _util, { ifdev, yes } from '../common/util';
import { Request } from 'express';
import { store } from '../common/util/store';
import { _def, _defId, _method, _path } from '../common/defs';
const KEY_DECOR_D... |
import { recycle } from 'actions/recycle';
import { TaskManager } from 'TaskManager';
import { sortByRange } from 'utils/sort';
import { BodySettings, CreepBase } from './CreepBase';
interface HaulerTask extends CreepTask {
type: 'withdraw' | 'transfer' | 'pickup';
target: Id<Resource | StructureContainer | Struct... |
<reponame>Friktion-Labs/entropy-client
import fetch from 'node-fetch'
export type DataPoint = {
UnixTime: number,
Value: number,
};
export type UserActionDataPoint = {
Amount: number,
Decimal: number,
GlobalID: string,
Hash: string,
UnixTime: number,
UserAction: string,
};
export t... |
import React, { useContext } from 'react';
import styled, { ThemeContext } from 'styled-components';
import { Link } from 'react-router-dom';
interface MonetaryCardHeaderProps {
color: string;
icon: string;
title: string;
description: string;
}
export const MonetaryCardHeader: React.FC<MonetaryCardHeaderProps... |
<filename>node_modules/polymer-cli/src/build/optimize-streams.ts
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://pol... |
import {App, Editor, FileSystemAdapter, MarkdownView, normalizePath} from "obsidian";
import {PlatformId} from "./settings/ShellCommandsPluginSettings";
import {platform} from "os";
import * as path from "path";
import {debugLog} from "./Debug";
import ShellCommandsPlugin from "./main";
// @ts-ignore
import {shell} fro... |
import { isDark } from './utils';
import ColorTheme, {
ColorsTemplate, ColorOpacity, TBaseColors, Level,
monoPalettes, colorOpacity
} from './type';
import {
getPaletteColor, getPaletteMonoColor, getCommonPaletteItem
} from './palette/selector';
import { findStep } from '../../../array';
import { alpha } ... |
import { parse } from 'querystring';
import { VuexAction, VuexModule, VuexMutation, VuexStore } from '../../utils/vuex';
import { Api } from '../../_common/api/api.service';
import { Game } from '../../_common/game/game.model';
import { GamePackageCardModel } from '../../_common/game/package/card/card.model';
impo... |
<gh_stars>10-100
import { Injectable } from '@angular/core';
import ReconnectingWebSocket, { ErrorEvent } from 'reconnecting-websocket';
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
import { ObjectChangeDto, ObjectChangeInitDto, ObjectChangeRegistrationDto, ObjectChangeType, ObjectScope, RegistrationA... |
<reponame>hdevalke/vscode-lldb<filename>extension/adapter.ts
import * as cp from 'child_process';
import * as path from 'path';
import { Readable } from 'stream';
import * as util from './util';
import { Dict } from './common';
import { statAsync } from './async';
import { Environment } from './util';
export async fun... |
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { NodeProperties, Red } from 'node-red';
import { Node, registerNodeType, messageHandlerNode } from '@dolittle/node-red';
import fetch from 'node-fetch';
import {... |
import { html } from 'htm/preact'
import { useState, useEffect } from 'preact/hooks'
import { useRoute } from 'wouter-preact'
import { formatDate, formatNumber } from '../utils/utils'
interface Info {
avatar_url: string,
created_at: string,
followers: number,
following: number,
html_url: string,
login: st... |
/*
* 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 './shader.scss';
import React from 'react';
import { WGLProgram } from '../../services/webglobjects/wglProgram';
import { WGLShader } from '../../services/webglobjects/wglShader';
import MonacoEditor from 'react-monaco-editor';
import * as monaco from 'monaco-editor';
import * as monacoEditor from 'monaco-editor... |
// tslint:disable no-console
import { Configuration } from '@neo-one/cli-common';
import { createDefaultConfigurationJavaScript, createDefaultConfigurationTypeScript } from '@neo-one/cli-common-node';
import { COMPILER_OPTIONS } from '@neo-one/smart-contract-compiler';
import { normalizePath } from '@neo-one/utils';
im... |
export const instructions = [
["add", 0xA0],
["add_i", 0xC5],
["astype", 0x86, "multiname"],
["astypelate", 0x87],
["bitand", 0xA8],
["bitnot", 0x97],
["bitor", 0xA9],
["bitxor", 0xAA],
["call", 0x41, "u30"],
["callmethod", 0x43, "method", "u30"],
["callproperty", 0x46, "mult... |
import { ApolloServer } from 'apollo-server-express'
import { Request } from 'express'
import { authModes, roleAccess } from 'common/utils'
import {
ArticleService,
AtomService,
CommentService,
DraftService,
knex,
NotificationService,
OAuthService,
PaymentService,
SystemService,
TagService,
UserS... |
<reponame>IsaacTimothyLyne/api.js
// Copyright 2020-2021 Centrality Investments Limited
//
// 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.... |
<reponame>lawwu/nni<filename>src/nni_manager/training_service/test/hdfsClientUtility.test.ts
/**
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the... |
import { getUID } from '@/core/utils'
import { getJsonWithCredentials } from '@/core/ajax'
import { formatCount, formatDuration } from '@/core/utils/formatters'
import { watchlaterList } from '@/components/video/watchlater'
import { getData, registerData } from '@/plugins/data'
import { descendingStringSort } from '@/c... |
import "./plot-container.css";
import { throttle } from "lodash";
import {
createRef,
forwardRef,
useCallback,
useEffect,
useImperativeHandle,
useMemo,
useRef,
useState,
} from "react";
import { THROTTLE_INTERVAL } from "../../constants";
import { Core } from "../../core";
import { asyncSnapshot } fro... |
import domBackedDocumentWriter from './documentWriter/domBackedDocumentWriter';
import IDocumentWriter from './documentWriter/IDocumentWriter';
import ISimpleNodesFactory from './nodesFactory/ISimpleNodesFactory';
import parseExpression from './parsing/parseExpression';
import { Language, Options } from './types/Option... |
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT License.
import * as child_process from "child_process";
import * as path from "path";
import * as vscode from "vscode";
import * as xmlrpc from "xmlrpc";
import * as extension from "../../extension";
import * as telemetry from "../../telemetry-h... |
import * as React from 'react';
import Board from './board';
import { CellPlayer } from './cell_player';
class Game extends React.Component<any, any> {
readonly numRows = 6;
readonly numCols = 7;
constructor(props: any) {
super(props);
this.state = {cells: this.getInitialCells(), isRedTur... |
import fs from 'fs';
import * as path from 'path';
import * as semver from 'semver';
import * as util from 'util';
import truncate from 'lodash.truncate';
import * as context from './context';
import * as github from './github';
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as t... |
import { Camera, Scene, WebGLRenderer, Mesh, Matrix4, Vector3, AmbientLight, HemisphereLight, DirectionalLight } from "three"
import { Map, CustomLayerInterface, LngLatLike, LngLat } from "mapbox-gl"
import mapboxgl from "mapbox-gl"
import { ISlippyCoords, coordsToSlippy, slippyToCoords } from "./util"
import { createM... |
import {
Box,
createStyles,
CssBaseline,
Divider,
makeStyles,
Paper,
Table,
TableCell,
TableContainer,
TableRow,
Theme,
Typography,
TypographyVariant,
} from '@material-ui/core'
import LinkIcon from '@material-ui/icons/Link'
import { ThemeProvider } from '@material-ui/styles'
import { MDXProvi... |
/**
* Dialog
*/
import { Dialog } from '../../src/dialog/dialog';
import { createElement } from '@syncfusion/ej2-base'
let dialogObj: Dialog = new Dialog({
header: 'Drag Me!!!',
content: "This is a dialog with draggable support.",
showCloseIcon: true,
buttons: [{ buttonModel: { isPrimary: true, conte... |
import React, { MouseEvent, useState } from 'react';
import axios from "axios";
import { useDropzone } from 'react-dropzone';
import Button from '@material-ui/core/Button';
import Container from '@material-ui/core/Container';
import LinearProgress from '@material-ui/core/LinearProgress';
import Table from '@material-ui... |
import { Request, Response, Router, IRouterMatcher, Application } from "express";
import {
PiServiceOptions, PiExceptionHandlerParams,
PiSecurityDef, PiSecurityDefItem, PiSecurity
} from "./types";
import { PiTypeDescriptor, PiRestError, PiDescriptor } from '@pomgui/rest-lib';
import { PiDatabasePool } from '@p... |
/* eslint-disable react-hooks/exhaustive-deps */
import { Dispatch, SetStateAction, useEffect, useState } from 'react';
import { useForm } from 'react-hook-form';
import Web3 from 'web3';
import { Contract } from 'web3-eth-contract';
import { ContentState, InputValuesCreateForm, Text } from '../../../../types';
import ... |
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { TriggerSet } from '../../../../../types/trigger';
export type Dat... |
import * as React from "react";
import {
Dimensions,
GestureResponderEvent,
LayoutChangeEvent,
PanResponder,
PanResponderGestureState,
PanResponderInstance,
View,
} from "react-native";
import { Menu } from "../../components";
import { DEFAULT_OPTIONS, OPEN_DIRECTIONS } from "../../constants";
const {
... |
import { DarkMode, LightMode, Link as LinkIcon } from '@mui/icons-material';
import { Masonry } from '@mui/lab';
import { Button, IconButton } from '@mui/material';
import type { GetStaticProps, NextPage } from 'next';
import Image from 'next/image';
import Link from 'next/link';
import { Trans, useTranslation } from '... |
// Copyright 2020 UBIO Limited
//
// 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 in... |
<filename>packages/gamut-system/src/types/properties.ts
import * as CSS from 'csstype';
export interface Properties {
/** Backgrounds */
backgroundImage: {
defaultScale: CSS.Properties['backgroundImage'];
};
backgroundSize: {
defaultScale: CSS.Properties['backgroundSize'];
};
backgroundRepeat: {
... |
import { Command, Option, UsageError } from "clipanion";
import * as t from "typanion";
import fsExtra from "fs-extra";
import { posix as path } from "path";
import * as swc from "@swc/core";
import prettier from "prettier";
import { fileURLToPath } from "url";
import slash from "slash";
import { Config, FromOptions, ... |
import {
IKeyValueMap, EnumDirections, pixiEngineInstance,
ITransition, TransitionSlide, TransitionFadeOut, TransitionFadeIn
} from "lightweight-pixijs-engine";
let resourcePaths: IKeyValueMap<string, string>[];
const SLIDE_DIRECTIONS: EnumDirections[] = [
EnumDirections.NONE,
EnumDirections.UP,
... |
import { useState } from 'react'
import { escapeRegExp } from 'utils'
import { Text, Button, Input, Flex, Box } from '@pancakeswap/uikit'
import { useTranslation } from 'contexts/Localization'
import { useUserSlippageTolerance, useUserTransactionTTL } from 'state/user/hooks'
import QuestionHelper from '../../QuestionHe... |
import { DestinationConfig } from '@./lib/services/destinations';
import * as React from 'react';
import { ReactNode } from 'react';
import { Col, Form, Input, Radio, Row, Select } from 'antd';
import { LabelWithTooltip } from '@./lib/components/components';
import { Option } from 'antd/es/mentions';
import EyeTwoTone ... |
<reponame>medblocks/auth<gh_stars>0
import { Request, Response, NextFunction } from 'express'
import {
AdminApi,
Configuration,
ConsentRequestSession,
} from '@oryd/hydra-client'
import config from '../config'
const hydraAdmin = new AdminApi(
new Configuration({
basePath: config.hydra.admin,
})
)
const... |
import { defaultDecorateStory, combineParameters } from '@storybook/client-api';
import addons, { mockChannel } from '@storybook/addons';
import type { Meta, StoryContext, ReactFramework } from '@storybook/react';
import { isExportStory } from '@storybook/csf'
import type { GlobalConfig, StoriesWithPartialProps, Story... |
<reponame>Alenygam/Orsetto2
import Discord from 'discord.js'
import sendMessage from '../sendMessage';
import {
AudioPlayerStatus,
getVoiceConnection,
joinVoiceChannel,
AudioPlayer,
createAudioPlayer,
createAudioResource,
VoiceConnectionStatus,
VoiceConnection
} from '@discordjs/voice'
i... |
<gh_stars>1-10
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {createSelector} from 'reselect';
import {getCurrentChannelId} from 'mattermost-redux/selectors/entities/common';
import {
getMySystemPermissions,
getMySystemRoles,
getPerm... |
export interface TestConfig {
/** Use a stub transport so no email is actually sent. Default: false */
noEmail: boolean;
/** Displays debug information in the oauth dialogs. Default: false */
oauthDebug: boolean;
/** Logs out-going emails to the console. Default: false */
debugEmail: boolean;
}
export inte... |
/**
* @license MIT
* Copyright (c) 2022 <NAME>, <NAME>, <NAME>, <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
* ... |
<reponame>matdurand/smart-diff
import { diff, Diff, DiffEdit, DiffNew, DiffDeleted } from "deep-diff";
export interface Differences {
[field: string]: {
left: unknown;
right: unknown;
};
}
export type PathFilter = (pathElements: string[]) => boolean;
export type TransformValueFunction = (value... |
import React, { useCallback, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { useRouter } from 'next/router';
import { getScenarioEditSlice } from 'store/slices/scenarios/edit';
import { AnimatePresence, motion } from 'framer-motion';
import { usePlausible } from 'next-plau... |
import React from 'react';
import ReactRouter from 'react-router';
import Hammer from 'hammerjs';
import { connect } from 'react-redux';
import styles from './ServiceDetails.scss';
import DetailBiPanel from 'common/components/DetailBiPanel';
import { requestConfig, responseConfig } from './ServiceTabStripConfig';
impo... |
import {
StackState,
ExecutionStackState,
range,
ScriptReductionTraceChildNode,
ScriptReductionTraceEvaluationNode,
ScriptReductionTraceContainerNode,
FlattenedTraceSample,
Range
} from 'bitcoin-ts';
import {
EvaluationViewerSpacer,
EvaluationViewerLine,
Evaluation,
IDESupportedProgramState
} fr... |
<gh_stars>1-10
import { Message, Role } from "discord.js"
import Client from "../../../structures/Client"
import { ICommand, RunCallback } from "../../../structures/Interfaces"
import Roles from "../../../data/calm/roles.json";
import Database from "../../../utils/database/Database";
import Challenges from "../../../da... |
import type { Player } from "../room-activity";
import { ScriptedGame } from "../room-game-scripted";
import type { GameCommandDefinitions, IGameFile } from "../types/games";
const MIN_GUESS = 1;
const MAX_GUESS = 6;
const BASE_POINTS = 12;
const GUESS_COMMAND = "guess";
class FalinksFormations extends ScriptedGame {... |
<gh_stars>0
import {
DownloaderBase,
DownloadOptions,
DownloadEventData,
StatusCode,
ProgressEventData,
generateId
} from './downloader.common';
import * as fs from 'tns-core-modules/file-system';
const main_queue = dispatch_get_current_queue();
declare const AFURLSessionManager, NSURLSessionConfiguration, ... |
<gh_stars>0
/**
* Created by Cooper on 2019/08/31.
*/
import fs from 'fs';
import os from 'os';
import _ from 'lodash';
import path from 'path';
import net, { Socket } from 'net';
import * as internal from './internal';
import { decode, encode, localIp, reform, request } from './helper';
import { Middleware, compose... |
<gh_stars>0
/********************************************************************************
* Copyright (c) 2022 STMicroelectronics.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-... |
import { Request, Response } from 'express'
import db from '../database/connection';
import convertHourToMinutes from '../utils/convertHourToMinutes';
interface ScheduleItem {
week_day: number;
from: string;
to: string;
}
export default class ClassesController {
async classLength(request: Request, response: ... |
import {RoleAttributes} from '../../models/interfaces/role';
import {PermissionAttributes} from '../../models/interfaces/permission';
export const DEFAULT_USERS_PAGINATION_LIMIT = 10;
export const DEFAULT_USERS_PAGINATION_OFFSET = 0;
export const DEFAULT_POSTS_PAGINATION_LIMIT = 10;
export const DEFAULT_POSTS_PAGINATI... |
import {DynamoDB} from "aws-sdk";
import generatorToArray from "./generator-to-array";
import getEntityKey from "./get-entity-key";
import {ITableConfig} from "./table-config.interface";
import {ISearchInput} from "./search-input.interface";
import {ICountInput} from "./count-input.interface";
import DocumentClient = ... |
<gh_stars>1-10
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable @typescript-eslint/dot-notation */
import Model from '../Model/Model';
import View from '../View/View';
import Presenter, { IProps } from './Presenter';
let parent: HTMLElement;
let presenter: Presenter;
let model: Model | ... |
import { compileTemplate } from "./template-compiler";
import { ElementView, HTMLView, SyntheticView } from "./view";
import { DOM } from "./dom";
import { Behavior, BehaviorFactory } from "./directives/behavior";
import { Directive } from "./directives/directive";
import { BindingDirective } from "./directives/binding... |
<filename>deployment/onchain/swap-mainnet.ts
import { Allowlist } from "../../build/typechain/Allowlist"
import AllowlistArtifact from "../../build/artifacts/contracts/Allowlist.sol/Allowlist.json"
import { BigNumber } from "@ethersproject/bignumber"
import { MathUtils } from "../../build/typechain/MathUtils"
import Ma... |
<reponame>ankk1107/study
export default {}
type Diff<T, U> = T extends U ? never : T
type Filtter<T, U> = T extends U ? T : never
type t1 = 'a' | 'b' | 'c' | 'd'
type t2 = 'a' | 'c' | 'f'
type c1 = Diff<t1, t2> // 'b' | 'd'
type c2 = Filtter<t1, t2> // 'a' | 'c'
// 1.CapitalizeString
type CapitalizeString<T> ... |
import { Injectable } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { BaseViewModel } from '../../site/base/base-view-model';
import { FileExportService } from './file-export.service';
import { MeetingSettingsService } from './meeting-settings.service';
/**
* Defines a csv col... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.