text stringlengths 3.08k 15.5k |
|---|
<gh_stars>0
import { Fiber } from './ZzeactFiber'
import { StackCursor } from './ZzeactFiberStack'
import { isFiberMounted } from '@/zzeact-reconciler/reflection'
import { ClassComponent, HostRoot } from '@/shared/ZzeactWorkTags'
import getComponentName from '@/shared/getComponentName'
import invariant from '@/s... |
<reponame>Serpin3/SerpineBot<gh_stars>0
import { load } from 'cheerio';
import { fetch } from '../services/fetch';
import { BlogCategories, DealCategories } from '../types/categories';
import * as UrlUtil from '../utils/url';
export const search = async (title: string) => {
const data = await fetch<string>(`https://g... |
interface boardInfo {
[key: string]: string;
};
export class Translater {
numberToCharactor(num: number | null): string {
const numberCharactor = [
"〇",
"一",
"二",
"三",
"四",
"五",
"六",
"七",
"八",
... |
import React, { useContext, useEffect, useState } from 'react';
import { useSelector } from 'react-redux';
import { toast } from 'react-toastify';
import { CargoType, LoanStatus, Ship } from '../../Api/types';
import { RootState } from '../../store';
import { WorkerContext } from '../../WorkerContext';
const Worth = (... |
import React, { useState, useEffect } from 'react';
import {
BrowserRouter as Router,
Switch,
Route,
useHistory,
useParams,
} from 'react-router-dom';
import 'semantic-ui-css/semantic.min.css';
import queryString from 'query-string';
import './App.css';
import {
MapParams,
ObjectItem,
ObjectComment,
E... |
import { createAction, ActionType, getType } from 'typesafe-actions'
import {
BlockId,
PhotoId,
SharedImage,
ThreadId,
ThreadName
} from '../Models/TextileTypes'
import { RootState } from './Types'
const actions = {
chooseProfilePhotoRequest: createAction('CHOOSE_PROFILE_PHOTO_REQUEST'),
chooseProfilePho... |
/* eslint-disable quotes */
import { mockDate, unMockDate } from "../../../jest/testUtils";
const hasPermission = jest.fn();
const requestPermission = jest.fn();
const onTokenRefresh = jest.fn();
const getToken = jest.fn();
const onNotification = jest.fn();
const createChannel = jest.fn();
const getInitialNotification... |
<reponame>gsbelarus/gdmn-orm
import {Attribute} from "../model/Attribute";
import {EntityLink} from "./EntityLink";
export interface IEntityQueryWhereInspector {
not?: IEntityQueryWhereInspector;
or?: IEntityQueryWhereInspector;
and?: IEntityQueryWhereInspector;
isNull?: IEntityLinkAlias<string>;
equals?: I... |
import React from "react";
import {
Alert,
Dimensions,
LayoutAnimation,
LayoutChangeEvent,
StyleSheet,
Text,
TouchableNativeFeedback,
View,
ViewStyle
} from "react-native";
import { IconButton, Menu } from "react-native-paper";
import { StatusBar } from "expo-status-bar";
import { Vaccert } from "../... |
// How my recipes are going to be stored in the database
export class RecipeItem {
$key: string;
name: string;
recipeText: string;
recipeDifficulty: string;
recipeTime: number;
ingredientsForm: IngredientsDic;
imgsCount: number;
videoUrl: string;
collections: string;
allergies: string[];
desiredFo... |
import pug from 'pug';
export type Casing = 'camel' | 'kebab' | 'pascal' | 'raw';
export type ClassType = 'B' | 'BE' | 'BEM' | 'BM' | 'E' | 'EM';
export interface LoaderO {
casingB?: Casing;
casingE?: Casing;
casingM?: Casing;
data?: Record<string, unknown>;
separatorE?: string;
separatorM?: string;
}
ex... |
import { useState, useEffect } from 'react';
import { message, Tabs, Form, Select, Input, PageHeader, Divider } from 'antd';
import ProCard from '@ant-design/pro-card';
import ParamTable from './components/ParamTable';
import { QuestionOutlined } from '@ant-design/icons';
import { queryRoute } from '@/services/RoutesCe... |
/*
MIT License
Copyright (c) <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, publish, di... |
<reponame>shadowspawn/forest-arborist
import * as fs from "fs";
import * as fsX from "fs-extra";
import * as path from "path";
import * as tmp from "tmp";
// Mine
import * as core from "./core";
import * as dvcsUrl from "./dvcs-url";
import * as repo from "./repo";
import * as util from "./util";
export function clon... |
import React from "react";
import classNames from "classnames";
import { listOfferGroups } from "../utils/api";
import { IOfferGroup, IOffer } from "../utils/api.interfaces";
import "./OfferGroupTable.scss";
export interface IProps {
endpoint: string;
}
export interface IState {
isLoading: boolean;
group... |
import BasePlatform from "./base";
import {
IPlatformName,
DevicePropertyName,
NetworkMonitorHandle,
NETWORK_DISCONNECTED,
NETWORK_CONNECTED,
} from "./IPlatform";
import { IKeyMapping } from "./IKeymapping";
import SwrveLogger from "../SwrveLogger";
const tizenMapping = {
38: "Up",
40: "Do... |
import { EventEmitter } from 'events'
import { CommandParser } from 'atem-connection/dist/lib/atemCommandParser'
import exitHook = require('exit-hook')
import { VersionCommand, ISerializableCommand, IDeserializedCommand } from 'atem-connection/dist/commands'
import { DEFAULT_PORT } from 'atem-connection/dist/atem'
exp... |
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
AttributeDescription,
_decode_AttributeDescription,
_encode_AttributeDescription,... |
<gh_stars>1-10
import { JSONContent } from '@tiptap/core';
import { FIGURE_NODE_NAME } from 'new-components/redactor/tools/extensions/figure';
import { TOPIC_SUMMARY_NODE_NAME } from 'new-components/redactor/tools/extensions/topicSummary';
import { TOPIC_TITLE_NODE_NAME } from 'new-components/redactor/tools/extensions/... |
import * as _ from 'underscore'
import * as Knex from 'knex';
import * as Promise from 'bluebird';
import * as bcrypt from 'bcrypt';
import * as shortid from 'shortid';
export const AuthenticationErrors = {
EMAIL_IN_USE: 'EMAIL_IN_USE',
EXPIRED_RESET_KEY: 'EXPIRED_RESET_KEY',
MAX_FAILED_ATTEMPTS_DELAY: 'MA... |
import { APITOKEN_SCHEMA_UPDATE } from "../lib/validatorLib";
import { ICiUserEntity } from "../types/db/CiUser.Entity";
import esholId from "../util/esholId";
import WLOGGER from "../wlogger";
import * as id from "../id";
import dbp from "../db";
import { IApiTokenEntity, IApiTokenEntityNew, IApiTokenEntityUpdate } fr... |
<reponame>tweetz0r/jup<gh_stars>0
import inquirer from 'inquirer';
import chalk from 'chalk';
import { ReplaceInFileConfig, replaceInFile } from 'replace-in-file';
import fs from 'fs';
import Path, { resolve } from 'path';
import { spawn } from 'child_process';
enum ProjectType {
'Server' = 'Server',
'Cronjob' = '... |
<reponame>KonnosPB/vsc-al-translation
import { TextDecoder } from 'util';
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
//import * as ls from 'LanguageService';
import { LanguageService } from './languageService';
import { kill } from 'process';
function getWebviewOptions(ex... |
<filename>meteor/server/api/rest/rest.ts
import { ServerResponse, IncomingMessage } from 'http'
import { Router, Params } from 'meteor/meteorhacks:picker'
import * as _ from 'underscore'
import { Meteor } from 'meteor/meteor'
import { MeteorMethodSignatures } from '../../methods'
import { PubSub } from '../../../lib/ap... |
import { createMuiTheme, makeStyles, ThemeProvider } from '@material-ui/core'
import AppBar from '@material-ui/core/AppBar'
import Box from '@material-ui/core/Box'
import CircularProgress from '@material-ui/core/CircularProgress'
import { yellow } from '@material-ui/core/colors'
import Dialog from '@material-ui/core/Di... |
<reponame>skyc0w0r/sKyDisBot<filename>src/Service/AudioConverter.ts<gh_stars>0
import { spawn, spawnSync } from 'child_process';
import Logger from 'log4js';
import { PassThrough, Readable } from 'stream';
import { BaseService } from '../Interface/ServiceManagerInterface.js';
import AudioConvertionInfo from '../Model/A... |
/*
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 applicable law or agreed to in writing, software
dis... |
<filename>server/src/grammar.ts<gh_stars>0
import * as fs from 'fs';
import { Range, Diagnostic, DiagnosticSeverity, TextDocument, Position} from 'vscode-languageserver';
import { removeAll, takeWhile, last } from './functions';
import { vscode_root } from './tatsuServer';
function sleep(ms: any) {
return new Prom... |
import {DomUtil} from '../util/dom_util'
import {KeyboardManager} from '../util/keyboard_manager'
import {Wnd} from './wnd'
import {WndEvent} from './types'
import fscreen from 'fscreen'
const BASE_PRIORITY = 100
function setWindowZIndex(wnd: Wnd, i: number, n: number): void {
wnd.getRootNode().style.zIndex = Stri... |
<filename>src/index.ts
import path from 'path'
import {StringDecoder} from 'string_decoder'
import remarkFrontmatter from 'remark-frontmatter'
import {remarkMdxFrontmatter} from 'remark-mdx-frontmatter'
import matter from 'gray-matter'
import * as esbuild from 'esbuild'
import type {Plugin, BuildOptions, Loader} from '... |
<filename>src/browser/api/browser_view.ts
import { BrowserView, Rectangle, AutoResizeOptions } from 'electron';
import { Identity } from '../api_protocol/transport_strategy/api_transport_base';
import {
addBrowserView, getBrowserViewByIdentity, getWindowByUuidName, OfView, removeBrowserView,
updateViewTarget, g... |
<filename>packages/cli/src/models/local/LocalController.ts
'use strict';
import every from 'lodash.every';
import map from 'lodash.map';
import {
Contracts,
Loggy,
FileSystem as fs,
getBuildArtifacts,
BuildArtifacts,
validate as validateContract,
validationPasses,
TxParams,
} from 'zos-lib';
import Se... |
<gh_stars>0
import { RangeNavigator, AreaSeries, DateTime, IChangedEventArgs } from '../../../src/range-navigator/index';
import { createElement, remove } from '@syncfusion/ej2-base';
import { DataManager, Query } from '@syncfusion/ej2-data';
import {profile , inMB, getMemoryProfile} from '../../common.spec';
RangeNav... |
<reponame>ValentinH/next-test-api-route-handler
// ! WARNING: don't run this in the real repo dir, but in a duplicate temp dir !
import { name as pkgName, version as pkgVersion } from 'package';
import { Octokit } from '@octokit/rest';
import { MongoClient } from 'mongodb';
import { satisfies as satisfiesRange, validRa... |
import { Plugins } from '@capacitor/core';
import {
IonAvatar,
IonContent,
IonHeader,
IonItem,
IonLabel,
IonList,
IonListHeader,
IonMenu,
IonMenuToggle,
IonTitle,
IonToolbar,
isPlatform,
} from '@ionic/react';
import React, { memo, useContext, useState } from 'react';
import { RouteComponentProp... |
import { Vue, Component, Prop, Watch } from 'vue-property-decorator'
import { IPanelProps, IPanelStyles, PanelType, IPanelStyleProps } from './Panel.types'
import BaseComponent from '../BaseComponent'
import { Layer } from '../Layer'
import { Overlay } from '../Overlay'
import { IconButton } from '../Button'
import { c... |
import { join } from 'path';
import SDKDriver from '../../../lib/sdkdriver/src';
import BrowserDriver from '../../../lib/sdkdriver/src/testdriver/browser';
import WSServerTransport from '../../../lib/sdkdriver/src/transport/websocket/server';
import LocalDataTrackDriver from './localdatatrack';
import LocalMediaTrackDr... |
const uuid = require('uuid/v1');
import { AzureSession, AadApplication } from '../model/models';
import { generateRandomPassword, executeFunctionWithRetry } from './commonHelper';
import { Messages } from '../resources/messages';
import { RestClient } from '../clients/restClient';
import { TokenCredentials } from '@azu... |
import React, { useEffect, useState } from 'react';
import {
Card,
CardHeader,
CardContent,
CardActions,
Button
} from '@material-ui/core';
import { AutoComplete, Input, Form, Table } from 'antd';
import swal from 'sweetalert';
import CustomerService from '../../services/customer';
import { Customer } from '.... |
<gh_stars>10-100
import * as path from 'path'
import * as vscode from 'vscode'
import {promises as fs, constants as fsconstants} from 'fs'
import {parse} from 'groq-js'
import {Config, loadConfig} from './config/findConfig'
import {GroqContentProvider} from './providers/content-provider'
import {GROQCodeLensProvider} f... |
<filename>packages/core/src/types.ts
export type JsonValue =
| boolean
| number
| string
| null
| JsonList
| JsonMap
| undefined;
export interface JsonMap {
[key: string]: JsonValue;
[index: number]: JsonValue;
}
export interface JsonList extends Array<JsonValue> {}
export type SegmentEvent =
| Tra... |
import { Emitter, CompositeDisposable } from 'atom'
import { WebviewTag, shell } from 'electron'
import fileUriToPath = require('file-uri-to-path')
import { handlePromise, atomConfig } from '../util'
import { RequestReplyMap, ChannelMap } from '../../src-client/ipc'
import { getPreviewStyles } from './util'
export ty... |
import EventEmitter from 'eventemitter3'
import WebSocket from 'ws'
import Queue from 'p-queue'
import { stringify } from 'qs'
import { Commands, Capabilities, BaseMessage } from '../twitch'
import createLogger, { Logger } from '../utils/logger'
import * as constants from './constants'
import baseParser from './uti... |
<reponame>surajteggi/vscode<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------... |
<reponame>lukewalczak/snack
import mapValues from 'lodash/mapValues';
import {
isModulePreloaded,
SnackFiles,
SnackMissingDependencies,
getDeprecatedModule,
} from 'snack-sdk';
import {
SDKVersion,
SnackCodeFile,
SnackDependencies,
Annotation,
AnnotationAction,
} from '../types';
import type { FileDe... |
<reponame>fossabot/next-test-api-route-handler<gh_stars>100-1000
/* eslint-disable jest/no-conditional-expect */
import debugFactory from 'debug';
import { name as pkgName, version as pkgVersion, main as pkgMain } from 'package';
import {
run,
mockFixtureFactory,
dummyNpmPackageFixture,
npmCopySelfFixture,
... |
import {
ChainId,
CHAIN_ID_SOLANA,
CHAIN_ID_TERRA,
createWrappedOnEth,
createWrappedOnSolana,
createWrappedOnTerra,
updateWrappedOnEth,
updateWrappedOnTerra,
updateWrappedOnSolana,
postVaaSolanaWithRetry,
isEVMChain,
} from "@certusone/wormhole-sdk";
import { WalletContextState } from "@solana/wal... |
/**
* 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 { Element, HTMLAnchorElement } from '@ephox/dom-globals';
impo... |
import React from "react";
import classnames from "classnames";
import { Checkbox } from "../../Checkbox";
import { TableContext } from "../TableContextProvider";
import { TableHeaderCell, TableHeaderCellProps } from "./TableHeaderCell";
import { TableCell, TableCellProps } from "./TableCell";
import { randomId } from ... |
export const ACCORDION_GROUP_NAME: string = 'm-accordion-group';
export const ACCORDION_NAME: string = 'm-accordion';
export const ACCORDION_TRANSITION_NAME: string = 'm-accordion-transition';
export const BUTTON_NAME: string = 'm-button';
export const BUTTON_GROUP_NAME: string = 'm-button-group';
export const CALENDAR... |
import { useService } from "@xstate/react";
import React, { useEffect } from "react";
import Modal from "react-bootstrap/Modal";
import classnames from "classnames";
import closeIcon from "../../images/ui/close.png";
import tree from "../../images/decorations/tree.png";
import stump from "../../images/decorations/stum... |
<filename>src/presenter/ContextMenuPresenter.ts
'use strict';
import Point from '../utils/Point';
import ContextMenuItem from '../model/ContextMenuItem';
import ContextMenuViewHolder from '../view/ContextMenuView';
import Rect from '../utils/Rect';
import Logger from '../utils/Logger';
import Utils from '../utils/Util... |
<gh_stars>0
import {ComponentRef, Inject, Injectable, InjectionToken, Type} from "@angular/core";
import {Router} from "./Router";
import {NavigationEnd, NavigationStart} from "./RouteEvents";
import {IReusableRouterComponent, ReuseRouteStrategy, Route} from "./Config";
import {LocationStrategy} from "@angular/common";... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import Live2DModel from '@/core/live2d/Live2DModel';
import Ticker from '@/core/mka/Ticker';
import { log } from '@/core/utils/log';
import { clamp } from '@/core/utils/math';
import Live2DTransform from '@/module/live2d/Live2DTransform';
import { Renderer, Texture } from '@pixi/core';
import { Container } from '@pixi/... |
import {ShaderModule} from '../../types';
const fp32shader = `\
#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND
// All these functions are for substituting tan() function from Intel GPU only
const float TWO_PI = 6.2831854820251465;
const float PI_2 = 1.5707963705062866;
const float PI_16 = 0.1963495463132858;
const float ... |
import * as React from "react"
import { notEquals } from "../../../Data/Eq"
import { fmap } from "../../../Data/Functor"
import { List, mapAccumL, notNull, toArray } from "../../../Data/List"
import { bindF, ensure, fromMaybe, Just, Maybe, maybe, Nothing } from "../../../Data/Maybe"
import { lookupF, OrderedMap } from ... |
/**
* @license
* 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 a... |
import { describe, before, after, test } from 'mocha'
import * as GQL from '../../../shared/src/graphql/schema'
import { Driver } from '../../../shared/src/testing/driver'
import { GraphQLClient } from './util/GraphQlClient'
import { getTestTools } from './util/init'
import { getConfig } from '../../../shared/src/testi... |
<filename>rmf_demos_panel/rmf_demos_panel/static/src/_metronic/assets/ts/components/_PasswordMeterComponent.ts
/* eslint-disable array-callback-return */
/* eslint-disable no-useless-escape */
import {DataUtil} from '../_utils/index'
export interface IPasswordMeterOptions {
minLength: number
checkUppercase: ... |
<reponame>gaudes/create-adapter<gh_stars>1-10
import { blue, green, red } from "ansi-colors";
import { execSync, ExecSyncOptions } from "child_process";
import * as fs from "fs-extra";
import * as path from "path";
import { createAdapter } from "../src";
import { writeFiles } from "../src/lib/createAdapter";
import { A... |
import { bySport, PHASE } from "../../common";
import { idb } from "../db";
import { g } from "../util";
import type { UpdateEvents, PlayoffSeriesTeam } from "../../common/types";
const addAbbrev = (
award: any,
teams: {
tid: number;
abbrev: string;
seasonAttrs: {
abbrev: string;
season: number;
}[];
... |
<filename>integration-tests/tests/src/tests/sync/mixed.ts
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2020 Realm 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 obta... |
<filename>Tasks/DockerComposeV0/Tests/L0Linux.ts
import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import path = require('path');
const DefaultWorkingDirectory: string = "/a/w";
let taskPath = path.join(__dirname, '..', 'dockercompose.js');
let tr: tmrm.TaskMockRunner =... |
<reponame>grommett/carbon-web-components<gh_stars>0
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { classMap } from 'lit-html/directives/class-map';
import { html, p... |
import { Form, Link, redirect, useActionData, useTransition } from 'remix';
import { useState } from 'react';
import type { ActionFunction } from 'remix';
import { badRequest, internalServerError } from '~/data/responses.server';
import { buildCreateUserData, createUserSession, registerUserAsync, validateRegisterUserFo... |
<reponame>raklut/ras-game
import Phaser from "phaser";
import Graphics from "../assets/Graphics";
import FOVLayer from "../entities/FOVLayer";
import Player from "../entities/Player";
import Slime from "../entities/Slime";
import Map from "../entities/Map";
import eventsCenter from "../entities/EventsCenter"
import Bul... |
/**
* @license
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { VirtualScrollToFn } from '@idux/cdk/scroll'
import type { IxInnerProp... |
import { pascalCase } from 'change-case';
import { NameNode, Kind, TypeNode, NamedTypeNode, isNonNullType, GraphQLObjectType, GraphQLNonNull, GraphQLList, isListType, GraphQLOutputType, GraphQLNamedType, isScalarType, GraphQLSchema, GraphQLScalarType, StringValueNode } from 'graphql';
import { ScalarsMap } from './type... |
import * as React from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { TFunction } from 'i18next';
import { Alert, Button, Stack, StackItem, Checkbox } from '@patternfly/react-core';
import {
withHandlePromise,
HandlePromiseProps,
LoadingBox,
} from '@console/internal/components/utils';
i... |
/* eslint-disable @typescript-eslint/no-shadow */
import React, { useState } from 'react';
import { components } from 'site-mobile-demo';
import { Cell } from '../..';
import Calendar, { CalendarDayItem, CalendarType } from '..';
const DEFAULT_PROPS = {
id: '',
type: 'single',
round: true,
color: undefined,
... |
import { expect, settings, fail, count, incomplete, thrownAt } from "code";
expect(10).to.be.above(5);
expect("abc").to.be.a.string();
expect([1, 2]).to.be.an.array();
expect(20).to.be.at.least(20);
expect("abc").to.have.length(3);
expect("abc").to.be.a.string().and.contain(["a", "b"]);
expect(6).to.be.in.range(5, 6);... |
<reponame>IncantaGames/vscode-plasticscm
import * as path from "path";
import { ChangeType, IChangeInfo } from "./models";
import {
Command,
FileDecoration,
SourceControlResourceDecorations,
SourceControlResourceState,
ThemeColor,
Uri,
} from "vscode";
import { GetFile } from "./cm/commands";
import { memoi... |
<reponame>rajaperu/graphiql
/**
* Copyright (c) 2021 GraphQL Contributors
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import {
Outline,
TextToken,
TokenKind,
IPosition,
} from "graphql-language-... |
<gh_stars>0
// Implements the standalone test runner (see also: /standalone/index.html).
import { DefaultTestFileLoader } from '../framework/file_loader.js';
import { Logger } from '../framework/logging/logger.js';
import { parseQuery } from '../framework/query/parseQuery.js';
import { TestQueryLevel } from '../framew... |
import axios, {AxiosError, AxiosInstance} from "axios";
import { ErrorHandler } from "./ErrorHandler";
import {Callback, ClientOptions, FilteringParameters} from "./models";
const packageJson = require("../../package.json");
const CLIENT_VERSION = packageJson.version;
/**
* Base client class from which client class... |
import React, { useEffect, useRef, useState } from 'react'
import styled from 'styled-components'
import { Helmet } from 'react-helmet'
import { useTranslation } from 'react-i18next'
import { Header } from 'blocks/Header/Header'
import { Footer } from 'blocks/Footer'
import { languages } from 'i18n/languages'
import {... |
import React, { FC } from 'react';
import styled from '@emotion/styled';
import { Popover, Spin, Tooltip } from 'antd';
import { FiExternalLink } from 'react-icons/fi';
// Lib
import { endpoints } from 'lib/api';
// Constants
import { BREAKPOINTS } from 'lib/constants/theme';
// Hooks
import { useEvents } from 'lib/... |
import type { ApplicationCommandOptionType } from 'discord-api-types/v9';
import { z } from 'zod';
import type { AutocompleteContext } from './contexts/AutocompleteContext';
import { Locale, LocaleString } from '../util/common';
import { Logger } from '../util/logger/Logger';
import { commandAndOptionNameRegexp } from ... |
<reponame>steffenvv/rnx-kit
import {
FileModuleRef,
getMangledPackageName,
PackageModuleRef,
} from "@rnx-kit/tools-node";
import path from "path";
import ts from "typescript";
import { ExtensionsTypeScript } from "./extension";
import { findModuleFile } from "./module";
import { ResolverContext } from "./types"... |
import {
Year,
ISODate,
RegName,
PlainText,
HTMLText,
LawChapterSlug,
MinistrySlug,
RegulationType,
} from './types'
// Years
export type RegulationYears = ReadonlyArray<Year>
// ---------------------------------------------------------------------------
export type RegulationLawChapter = {
/** Nam... |
import { Board, Pin } from "johnny-five"
enum TransferType {
Command = 0x00,
Data = 0x40
}
enum Command {
SET_COLUMN_START_ADDRESS = 0x15,
SET_COLUMN_END_ADDRESS = 0x15,
SET_ROW_START_ADDRESS = 0x75 ,
SET_ROW_END_ADDRESS = 0x75,
SET_CONTRAST_COLOR_A = 0x81,
SET_CONTRAST_COLOR_B = 0x82... |
import { /* CHAINLINK_ORACLE_ADDRESS,*/ Currency, KASHI_ADDRESS } from '@mistswapdex/sdk'
import React, { useCallback } from 'react'
import { useCreateActionHandlers, useCreateState, useDerivedCreateInfo } from '../../../state/create/hook'
import { AddressZero } from '@ethersproject/constants'
import Button from '../.... |
import {
ColumnDefinition,
dateCell,
DateView,
KeyValueTable,
ListPageLayout,
useFieldLabels,
useQuery,
withResponse
} from "common-ui";
import { KitsuResource } from "kitsu";
import { get, pick, startCase } from "lodash";
import Link from "next/link";
import { useRouter } from "next/router";
import { F... |
import {clamp, findLast, last} from 'lodash'
import {Selectors} from 'src/core/roam/selectors'
import {assumeExists} from 'src/core/common/assert'
import {BlockElement, BlockId, RoamBlock} from 'src/core/features/vim-mode/roam/roam-block'
import {relativeItem} from 'src/core/common/array'
type BlockNavigationState = ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/* eslint-disable indent */ // Allowing for some custom intent under svDetailsGrid 2D layout.
import { autorun, computed, IObservableValue, observable } from 'mobx';
import { observer } from 'mobx-react';
import * as React... |
import {tempEditor} from "./temp-editor"
import {StateField, EditorSelection} from "@codemirror/next/state"
import {EditorView, Decoration, DecorationSet, WidgetType} from "@codemirror/next/view"
import ist from "ist"
function cur(head: number) { return EditorSelection.cursor(head) }
class OWidget extends WidgetType ... |
<reponame>cnydw/jupyterlab
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/**
* @packageDocumentation
* @module inspector-extension
*/
import {
ILabShell,
ILayoutRestorer,
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import ... |
import { startsWithCapital } from "../../utils";
import { addMessageToHistory, conversation, exitConversation, isInConversation, moreThanOneInConversation, prevMessage, prevMessageTimers, sentMessage } from "../chatHistory";
const emojiRegex = require('emoji-regex');
const emoji = require("emoji-dictionary");
module.e... |
import { createComponentStyles } from '@ui5/webcomponents-react-base/lib/createComponentStyles';
import { useI18nText, usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/lib/hooks';
import { StyleClassHelper } from '@ui5/webcomponents-react-base/lib/StyleClassHelper';
import { enrichEventWithDetails } from '... |
<reponame>essarn/iles
import type { App, ComponentPublicInstance } from 'vue'
import { reactive, computed } from 'vue'
import type { InspectorNodeTag, DevtoolsPluginApi } from '@vue/devtools-api'
import { setupDevtoolsPlugin } from '@vue/devtools-api'
import { usePage } from 'iles'
import type { AppClientConfig, PageDa... |
import { Size } from 'electron';
export enum apiCmds {
isOnline = 'is-online',
getVersionInfo = 'get-version-info',
registerLogger = 'register-logger',
setBadgeCount = 'set-badge-count',
badgeDataUrl = 'badge-data-url',
activate = 'activate',
registerBoundsChange = 'register-bounds-change',
registerPro... |
/**
* @file Checkboxes
* @description 多选输入框
* @author fex
*/
import React from 'react';
import {uncontrollable} from 'uncontrollable';
import Checkbox from './Checkbox';
import chunk from 'lodash/chunk';
import {ClassNamesFn, themeable, ThemeProps} from '../theme';
import {Option, value2array, Options} from './Sel... |
<gh_stars>0
import Koa from 'koa';
import ILogger from './ILogger';
import IProcessManagerOptions from './IProcessManagerOptions';
import IProcessManagerService from './IProcessManagerService';
import IProcessStatus, { combineServiceStates } from './IProcessStatus';
import IProcessHealth, { combineServiceHealths } fro... |
/**
* 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 { Attachment, Docking, Focusing } from '@ephox/alloy';
... |
<reponame>nreese/loaders.gl
/* eslint-disable camelcase, max-statements, no-restricted-globals */
import type {LoaderContext} from '@loaders.gl/loader-utils';
import {BasisLoader, selectSupportedBasisFormat} from '@loaders.gl/textures';
import type {GLTFLoaderOptions} from '../../gltf-loader';
import type {GLB} from '.... |
import * as THREE from 'three';
import * as rawCanvas from 'canvas';
//@ts-ignore
import { createCanvas, loadImage } from 'node-canvas-webgl';
import type { BlockModel, BlockSides, Element, Face, Renderer } from './utils/types';
import type { Minecraft } from './minecraft';
import { distance, invert, mul, size } from ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
<filename>src/app/shared/user-field.component.ts
import {
ChangeDetectionStrategy, Component, ElementRef, Host, Injector,
Input, OnDestroy, OnInit, Optional, SkipSelf, ViewChild
} from '@angular/core';
import { ControlContainer, NG_VALUE_ACCESSOR } from '@angular/forms';
import { PrincipalType, User, UserQueryFilte... |
import { AppState, AppStateStatus, Linking, NativeModules } from "react-native"
import { Action, action, Thunk, thunk } from "easy-peasy";
import { NavigationContainerRef } from "@react-navigation/native";
import { getNavigator } from "../utils/navigation";
import { IStoreModel } from "./index";
import { waitUntilTrue... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.