text stringlengths 3.08k 15.5k |
|---|
import React from 'react';
import classnames from 'classnames';
// 本文件全是工具方法
export default {
get,
set,
takeRight,
last,
orderBy,
range,
remove,
clone,
getFirstDefined,
sum,
makeTemplateComponent,
groupBy,
isArray,
splitProps,
compactObject,
isSortingDesc,
normalizeComponent,
asPx,... |
import model from "./models";
import "dotenv-defaults/config";
import redis from "./redis";
interface LooseObject {
[key: string]: any;
}
let unique = 0;
const idList =
"0123456789abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ-";
const idListLength = idList.length;
const idLength = 5;
const initData = asy... |
// Copyright (c) 2016-2017 <NAME>
// MIT License, see LICENSE file for full terms.
import * as chai from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as mobx from 'mobx';
import { Observable, Observer } from '@reactivex/rxjs';
import {
Presenter, Presentation, PresentationOutputNode, WidgetEv... |
import {AssignmentMap} from './util';
export const REPLACEMENT_SYMBOL = '.';
export class Formula {
name: string;
args: Formula[] | null;
isPredicate = false;
/**
* Constructs a new `Formula`, which is represented by a predicate and its
* arguments.
* @param name the function symbol in the formula or the v... |
/* eslint-disable @typescript-eslint/camelcase */
import { ErrorResponse, isErrorResponse, transformErrorResponse } from './Error'
import Pagination from './Pagination'
import { Nullable } from './helpers'
export default interface Client {
id?: string
fName?: Nullable<string>
lName?: Nullable<string>
organization?... |
/*
* 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 "Software"), to deal in the Software
* without restriction, including without limitatio... |
import { StateMachine, tFrom } from "./fsm";
import { BLEUART } from "./ble-uart";
export class SSIDItem {
ssid: string;
rssi: number;
authmode: number;
constructor(line: string) {
const item = line.split(/,/, 3);
this.authmode = parseInt(item[0], 10);
this.rssi = parseInt(item[1], 10);
this.s... |
<reponame>atomist-skills/skill
/*
* Copyright © 2021 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 requi... |
/* Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" fi... |
<filename>src/index.ts
export { Avatar, Button, Switch, Menu, MenuItem, Input } from 'honorable'
// Icons
export { default as ArrowTopRightIcon } from './components/icons/ArrowTopRightIcon'
export { default as BotIcon } from './components/icons/BotIcon'
export { default as BrowserIcon } from './components/icons/Browse... |
import Button from '@mui/material/Button'
import Fade from '@mui/material/Fade'
import Modal from '@mui/material/Modal'
import Table from '@mui/material/Table'
import TableBody from '@mui/material/TableBody'
import TableCell from '@mui/material/TableCell'
import TableContainer from '@mui/material/TableContainer'
import... |
<reponame>sketchpunk/oito
//#region IMPORTS
import type { TVec3, TVec4 } from '@oito/types';
import { Vec3, Quat, Transform } from '@oito/core';
import type Armature from './Armature.js';
import type Bone from './Bone.js';
import type { Pose as GLPose, PoseJoint as GLPoseJoi... |
import { tag, WeElement, h, extractClass } from 'omi'
import * as css from './index.scss'
interface Props {
data?: any[]
padding: number
}
@tag('o-tree')
export default class Tree extends WeElement<Props> {
static css = css.default ? css.default : css
static defaultProps = {
padding: 10
}
static pro... |
/// <reference path="./components/surveyItemsView.ts" />
var Button = React.createFactory(SharedComponents.Button);
var surveyItemsViewComponent = React.createFactory(SurveyPage.SurveyItemsView);
var topBar = React.createFactory(SharedComponents.TopBar);
var classNameResolver = new Utils.ResolveClassNames();
module S... |
/** @jsx jsx */
import { CSSProperties, FC, useContext, useState } from 'react'
import { DocsContext } from '@storybook/addon-docs/blocks'
import { ActionBar, Placeholder } from '@storybook/components'
import { jsx, styled } from '@storybook/theming'
import { Figma as FigmaInternal } from './register/components/Figma'... |
import events from 'events';
import fs from 'fs';
import os from 'os';
import path from 'path';
import child_process, {ChildProcessWithoutNullStreams} from 'child_process';
import {Writable, Readable} from 'stream';
export interface Stdio {
stdout: string;
stderr: string;
status: number | null;
}
/**
* A wrapp... |
<reponame>pmndrs/detect-gpu
/* eslint-disable @typescript-eslint/no-explicit-any */
// Vendor
import puppeteer from 'puppeteer';
import fs from 'fs';
// Application
import { BLOCKLISTED_GPUS } from '../src/internal/blocklistedGPUS';
import { getGPUVersion } from '../src/internal/getGPUVersion';
import { internalBench... |
import classNames from 'classnames';
import React, { useCallback } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { clone } from 'lodash';
import { getMessageById } from '../../../../data/data';
import { MessageRenderingProps } from '../../../../models/messageType';
import {
PropsForAtta... |
import { Utils as ExtraUtils } from "./utils.service";
import { Gameloop } from "./gameloop.service";
import { throttle, debounce } from "@ribajs/utils/src/control";
export interface AutoscrollOptions {
angle?: "vertical" | "horizontal";
direction?: 1 | -1;
velocity?: number;
width?: string;
pauseOnHover?: b... |
<gh_stars>0
import { Observable, Subject, Subscription } from 'rxjs';
import { ISearchExpression, ISearchExpressionFlags } from '../interfaces/interface.ipc';
import { getMarkerRegExp, getSearchRegExp } from '../../../../../common/functionlity/functions.search.requests';
import ChartControllers, { AChart, IOption, IOpt... |
import classNames from 'classnames';
import * as React from 'react';
import {connect} from 'react-redux';
import * as _ from 'underscore';
import {IReactVaporState} from '../../ReactVaporState';
import {IDispatch} from '../../utils/ReduxUtils';
import {Content, IContentProps} from '../content/Content';
import ... |
import { SearchOutlined } from "@ant-design/icons";
import { LocationName } from "@valaxor/kh2fm-randomizer/dist/types/LocationName";
import { RewardLocationType } from "@valaxor/kh2fm-randomizer/dist/types/RewardLocation";
import { Button, Input, Space, Table } from "antd";
import {
ColumnFilterItem,
FilterDropdownP... |
<filename>src/process_definition_repository.ts
import * as bcrypt from 'bcryptjs';
import {Logger} from 'loggerhythm';
import {DestroyOptions, FindOptions} from 'sequelize';
import {Sequelize, SequelizeOptions} from 'sequelize-typescript';
import {IDisposable} from '@essential-projects/bootstrapper_contracts';
import... |
<gh_stars>10-100
import { join } from "path";
import { existsSync } from "fs";
import { commands, ExtensionContext, ProgressLocation, Uri, window, workspace } from "vscode";
import { Constants } from "./constants";
import { execAsync } from "./utils";
import { LocalStorageService } from "./configuration/storage";
/**
... |
import { Component, OnInit } from '@angular/core';
import { Market } from 'app/components/arbitrage/market';
import { ArbitrageResult } from 'app/components/arbitrage/arbitrage-result';
import { Observable } from 'rxjs/Rx';
var ccxt = require('ccxt');
@Component({
selector: 'arbitrage',
templateUrl: 'arbitrage.compo... |
import React, { useEffect, useState } from "react";
import {
useWindowDimensions,
TouchableOpacity,
RefreshControl,
Alert,
} from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import {
Avatar,
Box,
Flex,
Heading,
Image,
ScrollView,
Text,
HStack,... |
import { NormalModule } from 'next/dist/compiled/webpack/webpack'
import { Span } from '../../../trace'
import type webpack from 'webpack'
const pluginName = 'ProfilingPlugin'
export const spans = new WeakMap<webpack.Compilation | webpack.Compiler, Span>()
const moduleSpansByCompilation = new WeakMap<
webpack.Compil... |
import {
getTsType,
isAscending,
getDefineParam,
getParamString,
getJsdoc,
toPascalCase,
getSchemaName,
isMatchWholeWord,
} from "./utils";
import { ApiAST, Config, TypeAST } from "./types";
import { HOOKS_BEGINNING, DEPRECATED_WARM_MESSAGE } from "./strings";
function generateHook(
apis: ApiAST[],
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
"use strict";
import AdmZip from "adm-zip";
import fs from "fs-extra";
import path from "path";
import { Argv, Options } from "yargs";
import {
FxError,
err,
ok,
Result,
Question,
LogLevel,
Stage,
OptionItem,
} from "@microsof... |
<reponame>osohq/nextra<gh_stars>0
import type { LoaderOptions } from './types'
import path from 'path'
import grayMatter from 'gray-matter'
import slash from 'slash'
import { LoaderContext } from 'webpack'
import { Repository } from '@napi-rs/simple-git'
import { addPage } from './content-dump'
import { getLocaleFrom... |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Licensed under GNU General Public License version 2 or later or a commercial license or MIT;
* For GPL see LICENSE-GPL.txt in the project root for license information.
* For MIT see LICENSE-MIT.txt in the project root for license information.
* For commercial licens... |
<filename>awp/ennuicastr-awp.ts
/*
* Copyright (c) 2018-2021 Yahweasel
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROV... |
<filename>src/app/neural-network/engine/models/base.ts
import * as iter from "../iter";
import * as matrix from "../matrix";
import {ILayer, IOptimizer} from "../base";
import {buildOptimizer, OptimizerT} from "../optimizers";
export type NeuralNetworkSnapshot = { weights: matrix.Matrix2D[], biases: matrix.Matrix1D[]... |
// internal storage for locale config files
import { Locale, LocaleData } from './locale.class';
import { baseConfig } from './locale.defaults';
import { hasOwnProp, isArray, isObject, isString, isUndefined, toInt } from '../utils/type-checks';
import { compareArrays } from '../utils/compare-arrays';
import { initWeek... |
import fs from 'fs';
import path from 'path';
import prettier from 'prettier';
import {
getNewDataLocation,
getNewPageLocation,
productPathnames,
markdown,
} from './restructureUtils';
const workspaceRoot = path.resolve(__dirname, '../../');
const prettierConfigPath = path.join(workspaceRoot, 'prettier.config.... |
// Wall
const snakeThroughWall = () => {
const ReachedLeftWall = snake[0].x < 0;
const ReachedRightWall = snake[0].x > snakeboard.width - 10;
const ReachedTopWall = snake[0].y < 0;
const ReachedBottomWall = snake[0].y > snakeboard.height - -10;
if (ReachedRightWall) {
let head = { x: -10, y: snake[0].y };... |
// This file is part of the Corinthia project (http://corinthia.io).
//
// See the COPYRIGHT.txt file distributed with this work for
// information regarding copyright ownership.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
import * as core from "@actions/core";
import * as io from "@actions/io";
import * as apt from "./package_manager/apt";
import * as pip from "./package_manager/pip";
import * as utils from "./utils";
import * as path from "path";
import fs from "fs";
// Open Robotics APT Repository public GPG key, as retrieved by
//... |
import * as fs from "fs";
import * as wcp11 from "node-webcrypto-p11";
import { CryptoKey } from "node-webcrypto-p11";
import { Convert } from "pvtsutils";
import * as core from "webcrypto-core";
import { WebCryptoLocalError } from "../../error";
import { OpenSSLCrypto } from "./crypto";
interface IJsonOpenSSLKeyStora... |
#!/usr/bin/env node
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
import { ACTION_KB_TYPED, ACTION_MODE_TOGGLE, ACTION_VARIATION_TOGGLE } from '../actions'
import KeyboardConfig from '../types/kb-config'
import KeyboardKey from '../types/kb-key'
import KeyboardState from '../types/kb-state'
import { h } from '../utils/create-element'
import isTouchDevice from '../utils/is-touch'
le... |
<reponame>pigulla/json-strictify
/**
* json-strictify
*
* @version 7.0.1
* @author <NAME> <<EMAIL>>
* @license MIT
*/
import * as util from 'util'
import CircularReferenceError from './CircularReferenceError'
import InvalidValueError from './InvalidValueError'
type Ancestors = Set<object|any[]>;
type ReplacerF... |
// Make sure the Acorn Parser (used by Webpack) can parse ES-Stage3 code
// This must be at the top BEFORE webpack is loaded so that we can extend
// and replace the parser before webpack uses it
// Based on the issue: https://github.com/webpack/webpack/issues/10216
import stage3 from 'acorn-stage3';
// we use require... |
<reponame>favouredddd/TSW<gh_stars>0
/* !
* Tencent is pleased to support the open source community by making Tencent Server Web available.
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance wi... |
import {
APIErrorCode,
APIResponseError,
Client,
Logger,
LogLevel,
} from '@notionhq/client';
import {
CreatePageParameters,
CreatePageResponse,
GetDatabaseResponse,
UpdatePageResponse,
} from '@notionhq/client/build/src/api-endpoints';
import 'core-js/stable/object/from-entries';
import NoteroItem fr... |
import { CommandStore, KlasaMessage, KlasaUser } from 'klasa';
import { Bank, Monsters } from 'oldschooljs';
import { Activity, Time } from '../../lib/constants';
import fightCavesSupplies from '../../lib/minions/data/fightCavesSupplies';
import { minionNotBusy, requiresMinion } from '../../lib/minions/decorators';
im... |
import ts from 'typescript';
import { Types } from '../../../constants';
import { ScriptBuilder } from '../../../sb';
import { VisitOptions } from '../../../types';
import { TypedHelper, TypedHelperOptions } from '../TypedHelper';
export interface ToStringHelperOptions extends TypedHelperOptions {
readonly initial?:... |
const NESTED_PROPERTY_REGEX = /^(.+?)\.(.+)$/;
export function isDirective(data: any): boolean {
return Boolean(data.$version);
}
export function isCompleteObject(obj: object): boolean {
for (const key of Object.keys(obj)) {
if (operations[key]) {
return false;
}
}
return true;
}
function isTrueObject(val... |
import fs from 'fs'
import path from 'path'
import crypto from 'crypto'
import { promises } from 'fs'
import { ElectronPlugin } from '../NativeWrapper'
import rawlog from 'electron-log'
import { BeeCursor, TableColumn, TableFilter, TableOrView } from '../db/models'
import { DBConnection } from '../db/client'
import { E... |
import * as React from "react";
import classnames from "classnames";
import arrayMove from "array-move";
import {
DragEndMeta,
DropLineRendererInjectedProps,
GhostRendererMeta,
Item,
List,
PlaceholderRendererInjectedProps,
PlaceholderRendererMeta,
StackedGroupRendererInjectedProps,
StackedGroupRender... |
import { Expect } from "alsatian";
import { Observable } from "apollo-link";
import { gql } from "apollo-server";
import { basename } from "path";
import * as url from "url";
import { FanoutGraphqlSubscriptionQueries } from "../_lib/FanoutGraphqlApolloConfig";
import { IApolloServerUrlInfo } from "../_lib/FanoutGraphql... |
/*
* Copyright 2020 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
<reponame>ashwanth-07/Exam-Scheduling-Management-System
/**
* @license
* Copyright 2017 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... |
import { Core, Router } from "../deps.ts";
import { contentTypeFilter, jsonParse } from "./util.ts";
import { accounts } from "./user.ts";
import { sendGame } from "./ws.ts";
import { errors, ServerError } from "./error.ts";
import { kkmm } from "../server.ts";
import { aiList } from "./parts/ai-list.ts";
import { no... |
<reponame>Blackbaud-KevinEnns/skyux
import { Component, NgModule } from '@angular/core';
import {
ComponentFixture,
TestBed,
fakeAsync,
tick,
} from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import {
SkyModalInstance,
SkyModalModule,
SkyModalService,
} from '@... |
<gh_stars>10-100
import { Vector3 } from './matrix';
const SH3ylmBasisConstants = [
Math.sqrt(1 / (4 * Math.PI)),
-Math.sqrt(3 / (4 * Math.PI)),
Math.sqrt(3 / (4 * Math.PI)),
-Math.sqrt(3 / (4 * Math.PI)),
Math.sqrt(15 / (4 * Math.PI)),
-Math.sqrt(15 / (4 * Math.PI)),
Math.sqrt... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { ChatClient, ChatClientOptions } from '@azure/communication-chat';
import { _getApplicationId } from '@internal/acs-ui-common';
import { ChatContext } from './ChatContext';
import { ChatClientState } from './ChatClientState';
import { E... |
<gh_stars>0
import { createShader } from "./createShader.js";
import { mat4, vec3 } from "./gl-matrix/index.js";
import { SceneObject } from "./Scene";
import { vs, fs } from "./phong.glsl.js"
type VertNormSequence = {
vertices: number[]
normals: number[]
}
// Служебный конструктор для VertNormSeque... |
<reponame>MatthiasKunnen/decoverto
import test from 'ava';
import {array, Decoverto, model, property} from '../../src';
import {getDiagnostic} from '../../src/diagnostics';
import {Everything} from '../utils/everything';
const decoverto = new Decoverto();
test('quoted builtins should parse', t => {
t.is(decovert... |
import {
dateDifferenceInDays,
extractDate,
getMaxDate,
getMaxDateFunc,
getMaxDateInCollection,
minusOneDay
} from './dateUtils';
function parseJsonDates(dateString1: string | null, dateString2?: string | null): DateObject[] {
const json = `{"date1": ${getJsonString(dateString1)}, "date2": ... |
import { DashboardPack, FlattenedGuild, OauthFlattenedUser } from '#config/types/ApiData';
import { Selfmod } from '#config/types/ConfigurableData';
import Router from 'next/router';
import { BASE_API_URL, FetchMethods, LocalStorageKeys } from './constants';
import isBrowser from './isBrowser';
import { Time } from './... |
import { StyleSheet, Platform, Dimensions, StatusBar } from 'react-native';
export const colors = {
black: '#23292E',
gray: '#d5d5d5',
lightGreen: '#55ad7a',
paleBlue: '#1e5d88',
darkerBlue: '#334d5c'
};
function wp(percentage: number) {
const value = (percentage * viewportWidth) / 100;
return Math.roun... |
/**
* 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 { Arr, Fun, Future, Futures, Obj, Result, Results } from '@eph... |
import React, { useState, useCallback, useEffect, ChangeEvent, useRef } from 'react';
import { useHistory } from 'react-router-dom';
import { FaArrowRight } from 'react-icons/fa';
import { FormHandles } from '@unform/core';
import { Form } from '@unform/web';
import * as yup from 'yup';
import api from '../../services/... |
<gh_stars>0
import { useState, useCallback, useRef, useContext, useLayoutEffect } from 'react'
import { BasePathContext, PathContext } from './context'
import { useMountedLayout } from './hooks'
import { getSsrPath, isNode } from './node'
import { shouldCancelNavigation } from './intercept'
import { isFunction } from ... |
/**
* Copyright 2018 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/* tslint:disable:max-classes-per-file */
import { Channel, ChannelPeer, TransactionId, User } from 'fabric-client';
import Client = require('fabric-client');
//-------------------------------------------
// Main fabric net... |
import React, { useState, useEffect, useRef } from 'react'
import { ChangedClusterName, DataPoint } from '../../Data'
import { PropsForSidebar } from '../../SidebarOverview'
import ClusterMenu from './ClusterMenu'
import Comment from './Comment'
import { makeStyles, Typography } from '@material-ui/core'
import _ from '... |
import path from 'path';
import {
fs,
createDebugger,
findExists,
normalizeToPosixPath,
} from '@modern-js/utils';
import { makeLegalIdentifier } from '@rollup/pluginutils';
import type { Entrypoint, Route } from '@modern-js/types';
import {
FILE_SYSTEM_ROUTES_COMPONENTS_DIR,
FILE_SYSTEM_ROUTES_DYNAMIC_REGE... |
import React, { Component } from 'react'
import classnames from 'classnames'
import copy from 'copy-to-clipboard'
import { I18NProps } from '@/i18n/context'
import Button from '@material-ui/core/Button'
import TextField from '@material-ui/core/TextField'
import SnackbarContent from '@material-ui/core/SnackbarContent'
i... |
/*
* Copyright 2015 Palantir Technologies, 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 req... |
import assert from 'node:assert/strict';
// recursive addition of elements of an array
const sum = ([h, ...t]: number[]): number => h === undefined ? 0 : h + sum(t);
assert.equal(sum([1, 2, 3]), 6);
assert.equal(sum([5]), 5); // array with 1 element
assert.equal(sum([]), 0); // empty array
// recursive multiplicatio... |
<filename>js/anreact/test/03-jsample.mocha.ts
import { assert } from 'chai'
import { AnsonMsg, DatasetReq, AnDatasetResp } from '../../semantier/protocol'
import { parseMenus } from '../src/react/sys'
const dsTestResp = {
"type": "io.odysz.semantic.jprotocol.test.AnsonMsg",
"code": "ok", "opts": null,
"port": "data... |
import { css, SerializedStyles } from '@emotion/react';
import {
FieldHeight,
Spacing,
BORDER_RADIUS
} from '@tablecheck/tablekit-theme';
import { getThemeValue, ifRtl, variant } from '@tablecheck/tablekit-utils';
import type { ThemeOnlyProps } from '@tablecheck/tablekit-utils';
import { inputClassicTheme, input... |
<gh_stars>10-100
import * as nanoid from 'nanoid/non-secure';
import type { IpcBusProcess, IpcConnectOptions } from './IpcBusClient';
export const IPC_BUS_TIMEOUT = 2000;// 20000;
const win32prefix1 = '\\\\.\\pipe';
const win32prefix2 = '\\\\?\\pipe';
/** @internal */
export function CreateProcessID(ipcPr... |
<filename>source/types/params.ts
import { App, AppX, Fun, KeysOfType } from 'dependent-type';
import { Observable, Subscriber, Subscription } from 'rxjs';
import { defined, GlobalRef, LocalRef, Ref, TVCDADepConstaint, TVCDA_CIM } from './basic';
import { AnyModelDefinition, EModelsDefinition } from './store/definition'... |
import * as ghCore from "@actions/core";
import * as ghExec from "@actions/exec";
import * as semver from "semver";
import { Inputs, Outputs } from "./generated/inputs-outputs";
import {
ClientFile, ClientsToInstall, InstallableClient, InstallSuccessResult,
} from "./util/types";
import { findMatchingClient } from... |
<reponame>sahwar/opticss
import { AttributeValueParser } from "@opticss/attr-analysis-dsl";
import { Attribute, AttributeNS, FlattenedAttributeValue, isAbsent, isConstant, isEndsWith, isFlattenedSet, isStartsAndEndsWith, isStartsWith, isUnknown, isUnknownIdentifier } from "@opticss/element-analysis";
import { TemplateA... |
<reponame>BruceHaley/BotFramework-Composer<gh_stars>100-1000
/* eslint-disable react-hooks/rules-of-hooks */
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import formatMessage from 'format-message';
import { CallbackInterface, useRecoilCallback } from 'recoil';
import {
decodeToken,
us... |
import Batcher from './Batcher'
export type AtomStoreListener = (newValue: any, key: any) => void
export type AtomPromiseFallbackType =
| ((status: string, error?: Error) => any)
| any
export type AtomValueOption = {
fallback?: AtomPromiseFallbackType
isAsync?: boolean
}
export type AtomPromiseStatus = 'loa... |
/*
(The MIT License)
Copyright (c) 2013 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, ... |
<gh_stars>10-100
import _ from 'lodash'
import {
GraphQLEnumType,
GraphQLFieldConfig,
GraphQLFieldConfigMap,
GraphQLList,
GraphQLNonNull,
GraphQLObjectType,
GraphQLUnionType
} from 'graphql'
import StringHelper from '../utils/StringHelper'
import toGraphQLInputFieldConfigMap from './toGraphQLInputFieldCo... |
import { Button, Col, Row, Select } from 'antd';
import { ButtonType } from 'antd/lib/button';
import * as React from 'react';
import { useDispatch } from 'react-redux';
import './VisualProperties.scss';
import { Color, ColorPicker } from '@app/core';
import {
changeItemsAppearance,
DiagramItem,
getDiagr... |
import {t} from '@lingui/macro'
import {Plural, Trans} from '@lingui/react'
import {DataLink} from 'components/ui/DbLink'
import {ActionKey} from 'data/ACTIONS'
import {dependency} from 'parser/core/Injectable'
import {AllowedGcdsOnlyEvaluator, AllowedGcdsOnlyOptions, BuffWindow, calculateExpectedGcdsForTime, Evaluated... |
<reponame>Bistard/nota
import { Disposable } from 'src/base/common/dispose';
import { Emitter, Register } from 'src/base/common/event';
import { DataBuffer } from 'src/base/common/file/buffer';
import { URI } from 'src/base/common/file/uri';
import { IConfigChange, IConfigChangeEvent, IConfigModel, IConfigType } from '... |
import {ContentBlock, ContentState, DraftStyleMap, EditorState} from 'draft-js';
declare namespace RichText{
/**
* 富文本基础属性
*/
interface baseOption{
/**
* 编辑器实例
*/
editorRef:any,
/**
* 编辑器实例状态
*/
editorState:EditorState,
/**
... |
import generator from '@babel/generator';
import { parse } from '@babel/parser';
import traverse from '@babel/traverse';
import { File, stringLiteral } from '@babel/types';
import makeDir from 'make-dir';
import { dirname, relative } from 'path';
import slash from 'slash';
import {
CompilerOptions,
convertCompilerO... |
<filename>publish/samplesite/scripts/controls/ribbon/ribbonButtons.ts<gh_stars>0
import renderInsertLinkDialog from './renderInsertLinkDialog';
import renderTableOptions from './renderTableOptions';
import RibbonButtonType from './RibbonButtonType';
import { Alignment, Direction, Indentation } from 'roosterjs-editor-ty... |
"use strict";
import { Channel, Client } from "castv2";
import { sendMessage } from "../../lib/nativeMessaging";
import { ReceiverDevice } from "../../types";
import { ReceiverApplication, ReceiverMessage, SenderMessage } from "./types";
export const NS_CONNECTION = "urn:x-cast:com.google.cast.tp.connection";
expo... |
<gh_stars>100-1000
import getStringMatchScore from 'js-levenshtein'
import {
ParsedGraphQLQuery,
parseGraphQLRequest,
} from '../internal/parseGraphQLRequest'
import { getPublicUrlFromRequest } from './getPublicUrlFromRequest'
import { isStringEqual } from '../internal/isStringEqual'
import { RestHandler } from '..... |
import {INativeAudioMetadata, IOptions, IAudioMetadata, ParserType} from "./type";
import {ITokenizer} from "strtok3/lib/type";
import * as fileType from "file-type";
import * as MimeType from "media-typer";
import * as _debug from "debug";
import {INativeMetadataCollector, MetadataCollector} from "./common/MetadataCo... |
<gh_stars>0
/**
* @license
* Copyright 2017 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
// import { BANK } from '../constants/index'
// import { TransactionResponse } from '@ethersproject/providers'
import { useEffect, useState } from 'react'
import { stringify } from 'flatted'
import { useActiveWeb3React, useDefaultWeb3React } from '.'
import { useMerkleDistributorContracts } from './useMerkleDistributor... |
import * as React from "react";
import ReactDOM from "react-dom";
import extend from "lodash/extend";
import { throttle, forOwn } from "lodash";
import loadScript from "load-script";
const defaultConfig = {
toolbar: [
"font",
"fontSize",
"bold",
"italic",
"underline",
"-",
"numberedList",
"bulletedLis... |
import * as React from 'react';
import { useId, useBoolean } from '@fluentui/react-hooks';
import {
getTheme,
mergeStyleSets,
FontWeights,
ContextualMenu,
Toggle,
Modal,
IDragOptions,
IIconProps,
} from '@fluentui/react';
import { DefaultButton, IconButton } from '@fluentui/react/lib/compat/Button';
co... |
import type { AlertType } from '../alert-types';
import { useNamespace } from '../../../shared/hooks/use-namespace';
const ns = useNamespace('alert');
const AlertTypeIcon = (props: { type: AlertType }): unknown => (
<svg
width="16px"
height="16px"
viewBox="0 0 16 16"
version="1.1"
xmlns="http://w... |
import { Logger } from '@nestjs/common';
import { MailReceiveConfig } from 'src/entity-interface/MailReceiveConfig';
import { decypt } from 'src/util/cropt-js';
import { ReceiveJob } from './receive-job';
import { TypeOrmService } from 'src/typeorm/typeorm.service';
import { StorageService } from 'src/storage/storage.s... |
import React, { FC, ReactElement, useRef, useEffect, useLayoutEffect, useState } from 'react';
import { MenuItem, IMenuItemProps } from './MenuItem';
import { usePortal } from '../Utils/PortalHook';
const getScrollbarWidth = () => window.innerWidth - document.documentElement.clientWidth;
function nextItem(list: Node... |
<gh_stars>0
import { Editor, Element, Node, Operation, Path, Text } from 'slate';
import * as Y from 'yjs';
import { Delta } from '../model/types';
import { deltaInsertToSlateNode } from '../utils/convert';
import {
getSlateNodeYLength,
getSlatePath,
yOffsetToSlateOffsets,
} from '../utils/location';
import { dee... |
/**
* Functions for processing data from the station API.
*/
import { Attachment } from '../../shared/models/attachment.model';
import { LogRecord } from '../../shared/models/log-record.model';
import { Measurement, MeasurementStatus } from '../../shared/models/measurement.model';
import { Phase, PhaseStatus } from ... |
<gh_stars>0
import _ = require("lodash");
import { METADATA_TYPE } from ".";
import { getObjectServiceName, getOriginalObject, refreshObject } from "./objects";
export type SObject = {
name: string,
[x: string]: any
}
export type MetadataObject = {
nodeID: [string],
service: {
name: string,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.