text stringlengths 3.08k 15.5k |
|---|
import * as React from 'react'
import * as Kb from '../../common-adapters'
import * as Styles from '../../styles'
import * as Constants from '../../constants/settings'
import UpdatePassword from '../password'
export type Props = {
checkPasswordIsCorrect?: boolean
hasRandomPW?: boolean
onBootstrap: () => void
o... |
import * as React from 'react';
import { RouteChildrenProps, withRouter } from 'react-router';
import { createTheme } from '@material-ui/core';
import { makeStyles } from '@material-ui/styles';
import {
AltinnReceipt,
AltinnContentLoader,
AltinnContentIconReceipt,
AltinnButton,
AltinnLoader,
} from 'altinn-sh... |
<gh_stars>1-10
import { LocaleNetRegex } from '../../../resources/translations';
import NetRegexes from '../../../resources/netregexes';
import { Lang } from '../../../resources/languages';
import { CactbotBaseRegExp, CactbotRegExpExecArray, TriggerTypes } from '../../../types/net_trigger';
// Disable no-explicit... |
import { UpgradeSpendTier } from '@destinyitemmanager/dim-api-types';
import { D2ManifestDefinitions } from 'app/destiny2/d2-definitions';
import { knownModPlugCategoryHashes } from 'app/loadout/known-values';
import { armor2PlugCategoryHashesByName } from 'app/search/d2-known-values';
import { DestinyEnergyType } from... |
<gh_stars>0
/**
Copyright 2019 Forestry.io 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 wri... |
<reponame>amadeus711/tdesign-react
import raf from 'raf';
import isString from 'lodash/isString';
import { easeInOutCubic, EasingFunction } from './easing';
import { ScrollContainer, ScrollContainerElement } from '../common';
// 用于判断是否可使用dom
export const canUseDocument = !!(typeof window !== 'undefined' && window.docu... |
import { FilesUploaderTypeFile } from '../enums/enums';
export const createLoader = (text: string): Element => {
const loader = document.createElement('div');
loader.classList.add('FilesUploaderLoader');
const textEl = document.createElement('div');
textEl.classList.add('FilesUploaderLoader-Text');
textEl.in... |
// test utils used in e2e tests
// this can be directly imported in any e2e tests as 'testUtils', e.g.
// `import { getColor } from 'testUtils'`
import fs from 'fs';
import path from 'path';
import colors from 'css-color-names';
import { ElementHandle } from 'playwright-core';
export const isBuild = !!process.env.VITE... |
import {reactive} from './variable.js'
import {Element} from './LumeElement.js'
import {_attribute} from './attribute.js'
import type {Constructor} from 'lowclass'
import type {AttributeHandler} from './attribute.js'
type PossibleStatics = {
observedAttributes?: string[] | Record<string, AttributeHandler>
reactiveP... |
import React, { useEffect } from 'react'
import { useValues, BindLogic, useActions } from 'kea'
import '../../../scenes/actions/Actions.scss'
import { PropertyGroupFilter, FilterLogicalOperator, PropertyGroupFilterValue, FilterType } from '~/types'
import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilte... |
import { createContext } from 'react';
import { PDFPageProxy, PDFDocumentProxy } from 'pdfjs-dist/types/display/api';
import { Token, Label } from '../api';
import { TokenId, Annotation } from './AnnotationStore';
import config from '../config';
export type Optional<T> = T | undefined;
export interface Bounds {
... |
import React, { useLayoutEffect, useMemo, useState } from 'react';
import { createUseStyles } from 'react-jss';
import { Panel, Spinner, SwitchChain, Text } from '../../../components';
import { useApi, useCurrentAccount, useOraclePrice, useSyntheticPoolInfo } from '../../../hooks';
import useApp from '../../../store/us... |
<gh_stars>0
import * as async from 'async';
import * as _ from 'lodash';
import 'source-map-support/register';
import logger from '../lib/logger';
import { BlockChainExplorer } from './blockchainexplorer';
import { Lock } from './lock';
import { MessageBroker } from './messagebroker';
import { Notification } from './m... |
/* eslint-disable import/first */
import { act, render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { ApolloProvider, gql } from "@apollo/client";
import { PropsWithChildren } from "react";
import "@testing-library/jest-dom/extend-expect";
import { proces... |
import { Workspace, Window } from "../types/internal";
import GoldenLayout from "@glue42/golden-layout";
import { idAsString } from "../utils";
class WorkspaceStore {
private readonly _idToLayout: { [k: string]: Workspace } = {};
private _workspaceLayout: GoldenLayout;
public get layouts() {
... |
<gh_stars>10-100
import * as _dbg from 'debug';
import { wait } from '../utils/wait';
import { SqlConnectionPoolDatabase } from './SqlConnectionPoolDatabase';
import { SQL_OPEN_CREATE, SQL_OPEN_DEFAULT, SqlDatabase } from './SqlDatabase';
import { SqlDatabaseSettings } from './SqlDatabaseSettings';
const debug = _dbg... |
<reponame>houmingjie/playwright<gh_stars>1-10
/**
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
import {
Box,
ButtonWIP,
ColorsWIP,
IconWIP,
MenuLink,
MenuWIP,
Popover,
Table,
TagWIP,
Tooltip,
} from '@dagster-io/ui';
import * as React from 'react';
import {Link} from 'react-router-dom';
import {TickTag} from '../instigation/InstigationTick';
import {InstigatedRunStatus} from '../instigation/... |
<gh_stars>0
/**
* 判断是否 十六进制颜色值.
* 输入形式可为 #fff000 #f00
*
* @param String color 十六进制颜色值
* @return Boolean
*/
export function isHexColor(color: string) {
const reg = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/;
return reg.test(color);
}
/**
* RGB 颜色值转换为 十六进制颜色值.
* r, g, 和 b 需要在 [0, 255] 范围内
*
... |
<filename>examples/app/app.component.ts
/* tslint:disable:component-selector */
import {
Component,
OnInit,
AfterViewInit,
ViewChild
} from '@angular/core';
import {
AbstractControl,
FormGroup,
FormControl,
Validators
} from '@angular/forms';
import {
Orange,
OrangeService
} fro... |
import path from "path";
import { EmitterWebhookEvent as WebhookEvent } from "@octokit/webhooks";
import merge from "deepmerge";
import type { Logger } from "pino";
import { ProbotOctokit } from "./octokit/probot-octokit";
import { aliasLog } from "./helpers/alias-log";
import { DeprecatedLogger } from "./types";
im... |
import { RequestTypes } from 'detritus-client-rest';
import { Timers } from 'detritus-utils';
import { ShardClient } from '../client';
import { ClusterClient } from '../clusterclient';
import { ClusterProcessChild } from '../cluster/processchild';
import { CommandClient, CommandReply } from '../commandclient';
import... |
import crypto from "crypto-js";
export const base64Url = (string: crypto.lib.WordArray | String) => {
return string
.toString(crypto.enc.Base64)
.replace(/\+/g, "-")
.replace(/\//g, "_")
.replace(/=/g, "");
};
export const createRandomString = (num: number) => {
return [...Array(num)].map(() => Ma... |
import { Connection, ConnectionsResponse } from '@meeco/vault-api-sdk';
import { AuthData } from '../models/auth-data';
import { ConnectionCreateData } from '../models/connection-create-data';
import { EncryptionKey } from '../models/encryption-key';
import { Environment } from '../models/environment';
import cryppo fr... |
import React, { useState, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import styled from '@emotion/styled';
import { postData } from '../api';
import { loadSubscription } from '../actions';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSpinner, faEnvelopeSquare } ... |
import React, { FC, useState, useEffect, useRef, forwardRef, useMemo } from 'react';
import { CurrencyInputProps } from './CurrencyInputProps';
import {
isNumber,
cleanValue,
fixedDecimalValue,
formatValue,
getLocaleConfig,
padTrimValue,
CleanValueOptions,
getSuffix,
} from './utils';
export const Curr... |
<filename>packages/utils/odsp-doclib-utils/src/odspDrives.ts<gh_stars>1-10
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { IOdspAuthRequestInfo } from "./odspAuth";
import { throwOdspNetworkError } from "./odspErrorUtils";
import { getAsync, putAsync } f... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import chalk from 'chalk';
import fs from 'fs-extra';
import {execSync} from 'child_process';
import inquirer from 'inquirer';
imp... |
type Constructor<T> = new (...args: any[]) => T;
type ICtor<T> = { new(...args: any[]): T; };
type Diff<T extends string | number | symbol, U extends string | number | symbol> = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
type PickKeysOfType<T, KT> = ({ [P in keyof T]: T[P] extends KT ? P : nev... |
import { createApp, App } from 'vue';
import Keymaster from 'keymaster';
import { omit } from 'lodash-es';
import { $, EngineInterface, isServer, NodeInterface } from '@aomao/engine';
import Collapse from '../../components/collapse/collapse.vue';
import { CollapseGroupProps } from '../../types';
export type Options = ... |
import React, { useState, useEffect, FormEvent, ChangeEvent } from 'react'
import { FiPlus } from 'react-icons/fi'
import { Map, Marker, TileLayer } from 'react-leaflet'
import { useHistory } from 'react-router-dom'
import { Backdrop, CircularProgress, Typography } from '@material-ui/core'
import { LeafletMouseEvent }... |
<reponame>delan/charming
import "core-js/stable";
import "regenerator-runtime/runtime";
import GraphemeSplitter from "grapheme-splitter"; // FIXME Unicode 10.0.0
import {
Data,
getNameExceptNr2,
getString,
hasAnyNameExceptNr2,
hasAnyUhdef,
} from "./data";
import { stringToPoint } from "./encoding";
import ... |
import React, { Component, isValidElement } from 'react';
import classnames from 'classnames';
import { BaseCalendarMonthProps } from './PropsType';
import DateTool from '../utils/date';
export interface CalendarMonthProps extends BaseCalendarMonthProps {
prefixCls?: string;
}
export interface CalendarMonthState {
... |
<filename>Frontend/gis/src/app/util/ts-canvas-layer.ts
/*
Code taken from https://github.com/anxorl/ts-leaflet-canvas-layer/blob/master/src/leaflet-canvas-layer.ts
1.0.1 (downloaded from https://github.com/Sumbera/gLayers.Leaflet/releases/tag/v1.0.1)
Generic Canvas Layer for leaflet 0.7 and 1.0-rc,
copyright ... |
<reponame>Kaixiang-AWS/deck<filename>app/scripts/modules/core/src/navigation/state.provider.ts
import { IServiceProvider, module } from 'angular';
import { isEqual, isPlainObject } from 'lodash';
import {
Ng1StateDeclaration,
Ng1ViewDeclaration,
ParamDeclaration,
UrlRouterProvider,
UrlService,
} from '@uirout... |
<filename>src/biota.ts
import * as fauna from 'faunadb';
import * as framework from '~/framework';
import { FactoryContextDefinition } from '~/types/factory/factory.context';
import { Fauna, FaunaId, FaunaRef, FaunaString } from '~/types/fauna';
import { FrameworkCollectionApi } from '~/types/framework/framework.collec... |
<reponame>aws-samples/aws-serverless-for-machine-learning-inference
import * as cdk from "@aws-cdk/core";
import * as path from "path";
import api = require("@aws-cdk/aws-apigateway");
import cwlogs = require("@aws-cdk/aws-logs");
import iam = require("@aws-cdk/aws-iam");
import event_sources = require("@aws-cdk/aws-la... |
<reponame>argifood/agrialerts
import * as React from 'react';
declare class JqxTreeGrid extends React.PureComponent<ITreeGridProps, IState> {
protected static getDerivedStateFromProps(props: ITreeGridProps, state: IState): null | IState;
private _jqx;
private _id;
private _componentSelector;
constru... |
<filename>src/hooks/use-log/index.ts
import { useState, useEffect } from "react";
import isString from "lodash.isstring";
import isObject from "lodash.isobject";
import isNumber from "lodash.isnumber";
import isBoolean from "lodash.isboolean";
const styles = `
body {
margin: 20px;
font-family: mono... |
import {HasProps} from "core/has_props"
import {DOMView} from "core/dom_view"
import {logger} from "core/logging"
import * as p from "core/properties"
import {div, canvas, append} from "core/dom"
import {OutputBackend} from "core/enums"
import {BBox} from "core/util/bbox"
import {Context2d, fixup_ctx} from "core/util/c... |
import React from 'react'
import classNames from 'classnames'
import { range, isEqual } from 'lodash'
import AlertCircleIcon from 'mdi-react/AlertCircleIcon'
import VisibilitySensor from 'react-visibility-sensor'
import { of, combineLatest, Observable, Subject, Subscription, BehaviorSubject, NEVER } from 'rxjs'
import... |
import { Loader } from '@gnosis.pm/safe-react-components'
import queryString from 'query-string'
import React, { useEffect, useState } from 'react'
import ReactGA from 'react-ga'
import { useDispatch, useSelector } from 'react-redux'
import Opening from 'src/routes/opening'
import Layout from 'src/routes/open/component... |
import { RenderResult } from '@dojo/framework/core/interfaces';
import focus from '@dojo/framework/core/middleware/focus';
import { createICacheMiddleware } from '@dojo/framework/core/middleware/icache';
import theme from '@dojo/framework/core/middleware/theme';
import { create, tsx } from '@dojo/framework/core/vdom';
... |
import { merge, has, forEach, head, tail, contains, isEmpty, is, keys } from "ramda"
import * as WebSocket from "ws"
import validate from "./validate"
import logger from "./plugins/logger"
import image from "./plugins/image"
import benchmark from "./plugins/benchmark"
import stateResponses from "./plugins/state-respons... |
import R from 'ramda';
import chalk from 'chalk';
import Command from '../../command';
import { status } from '../../../api/consumer';
import { StatusResult } from '../../../api/consumer/lib/status';
import Component from '../../../consumer/component';
import { immutableUnshift, isString } from '../../../utils';
import... |
import { Component, OnInit, EventEmitter, Output, Inject } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { LobbyService } from "../../services/lobby.service";
import { LobbyDetails } from "../../models/LobbyDetails";
import { Player } from "../../models/Player";
import { MatSnac... |
<filename>src/plugins/tcp/pluginTcp_serverside.ts
var net = require("net");
import * as events from "events";
export var serversMem: any = {};
export function init(app: any, db: any, eventHub: events.EventEmitter) {
console.log("init tcp plugin");
app.get("/api/v3/tcp/ports", (req: any, res: any) => {
db.pl... |
// Copyright 2017-2018 @polkadot/app-transfer authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { I18nProps } from '@polkadot/ui-app/types';
import { RxBalance, RxFees } from '@polkadot/api-observable/types';
i... |
import { Method } from 'axios'
import { URL } from 'url'
import { size, toNumber, isObject, merge, isPlainObject, isArray } from 'lodash'
import { IncomingMessage } from 'http'
import queryString from 'query-string'
import { Request, RequestRequest } from '#/request'
export async function parseMessage (request: Incomi... |
import _ from "lodash";
import { Evidence, getEvidencesFrom } from "../../../../domain/entities/Evidence";
import { FragmentResult, Fragments, getFragments } from "../../../../domain/entities/Fragment2";
import { SubtrackDefinition } from "../../../../domain/entities/TrackDefinition";
import { throwError } from "../../... |
import * as React from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { useK8sWatchResource } from '@console/internal/components/utils/k8s-watch-hook';
import { useK8sGet } from '@console/internal/components/utils/k8s-get-hook';
import { ListKind, k8sKill, PersistentVolumeClaimKind } from '@con... |
<gh_stars>1-10
import { ISPFxAdaptiveCard, BaseAdaptiveCardView, IActionArguments } from '@microsoft/sp-adaptive-card-extension-base';
import * as strings from 'CompanyNewsAdaptiveCardExtensionStrings';
import { ICompanyNewsAdaptiveCardExtensionProps, ICompanyNewsAdaptiveCardExtensionState } from '../CompanyNewsAdaptiv... |
/**
* Wechaty Open Source Software - https://github.com/wechaty
*
* @copyright 2016 <NAME> (李卓桓) <https://github.com/huan>, and
* Wechaty Contributors <https://github.com/wechaty>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... |
<gh_stars>0
import merge from "./util/merge.ts";
import isByteLength from "./isByteLength.ts";
import isFQDN from "./isFQDN.ts";
import isIP from "./isIP.ts";
import {IsEmailOptions} from "../interface/isEmailOptions.ts";
/*
Options
allow_display_name - set to true, the validator will also match Display Name <email-... |
import React, { useCallback, useEffect, useMemo, useReducer } from 'react';
import { useDidUpdate } from '../../hooks';
import { typedMemo } from '../../utils';
import { Box } from '../Box';
import { PillTabItem, PillTabs, PillTabsProps } from '../PillTabs';
import { Search } from '../Search';
import { Table, TableCol... |
import * as React from 'react';
import * as FilterHelper from '../../components/FilterList/FilterHelper';
import { RenderContent } from '../../components/Nav/Page';
import * as ServiceListFilters from './FiltersAndSorts';
import * as FilterComponent from '../../components/FilterList/FilterComponent';
import { ServiceLi... |
import { Dictionary } from './Dictionary';
const en: Dictionary = {
header: {
title: 'Taiwan VTuber Data',
chooseLanguage: 'Choose language:',
home: 'Home',
eventCalendar: 'Event Calendar',
eventCalendarDetail: '(Provided By Discord Server <b>DD Refuge</b>)',
allVTubers: 'All VTubers',
gr... |
<reponame>PeculiarVentures/graphene-cli
import * as graphene from "graphene-pk11";
import { data } from "../../data";
import { Handle, pad, print_bool, print_caption, rpad } from "../../helper";
export function get_session() {
if (!data.session) {
throw new Error("Session is not opened");
}
return... |
/**
* @file Hive account type definitions.
* @author <NAME> <<EMAIL>>
* @license
* Copyright (c) 2017 <NAME>. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistribution of sourc... |
<reponame>juanmendes/vmware-cloud-director-ui-components
/*!
* Copyright 2019 VMware, Inc.
* SPDX-License-Identifier: BSD-2-Clause
*/
import { Inject, InjectionToken } from '@angular/core';
import sdk from '@stackblitz/sdk';
import { OpenOptions, Project } from '@stackblitz/sdk/typings/interfaces';
import { Compodo... |
<reponame>r0hack/WavesGUI
import { readJSONSync, readdirSync } from 'fs-extra';
import { parallel, series, task } from 'gulp';
import { basename, extname, join, resolve, sep } from 'path';
import { options } from 'yargs';
import { createBabelTask } from './scripts/babelTask';
import { createCleanTask } from './scripts/... |
import * as React from 'react';
import { DetailsList, DetailsListLayoutMode, IColumn, IGroup } from '@fluentui/react/lib/DetailsList';
import { SelectionMode } from '@fluentui/react/lib/Selection';
import { ITheme } from '@fluentui/react/lib/Styling';
import { styled, classNamesFunction, IStyleFunctionOrObject } from '... |
import { Button, Col, DatePicker, Form, Icon, Input, Row, Select } from 'antd';
import React, { Component, Fragment } from 'react';
import { FormComponentProps } from 'antd/es/form';
import { SorterResult } from 'antd/es/table';
// import { connect } from 'dva';
import StandardTable, { StandardTableColumnProps } from ... |
/*
* Copyright 2018 Hitachi America, Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
import { openSync, read, readFileSync, readSync, statSync } from "fs";
import level from "level";
import * as path from "path";
import { format } from "util";
import { BCVerifierError, BCVerifierNotImplemented, Block } from "../c... |
<reponame>MikeHopcroft/Einstein
const base32 = require('base32') as IBase32;
import { v3 } from 'murmurhash';
import * as uuid from 'uuid';
import { AnyDescription, Kind, BenchmarkDescription } from '../laboratory';
// base32 package doesn't have a .d.ts file or an @types/base32
// Define type for package here.
// ts... |
import React, { useRef, useEffect } from 'react';
import { useTheme2, ReactMonacoEditor, Monaco, monacoTypes } from '@grafana/ui';
import { GrafanaTheme2 } from '@grafana/data';
import { css } from '@emotion/css';
import { useLatest } from 'react-use';
import { promLanguageDefinition } from 'monaco-promql';
import { se... |
import React, {Component} from "react";
import {Link} from "react-router-dom";
import isEqual from "react-fast-compare";
import {History} from "history";
import moment from "moment";
import numeral from "numeral";
import {Proposal} from "../../api/hive";
import {Global} from "../../store/global/types";
import {Ac... |
<filename>src/component.ts
import { Component, GameObject, resource, RESOURCE_TYPE } from '@eva/eva.js'
import type { UpdateParams } from '@eva/eva.js'
import { Event, HIT_AREA_TYPE } from '@eva/plugin-renderer-event';
import { Img } from '@eva/plugin-renderer-img';
export enum JOYSTICK_EVENT {
Begin = 'Begin',
Dr... |
<filename>source/index.ts<gh_stars>0
import {Bot} from 'grammy'
import {generateUpdateMiddleware} from 'telegraf-middleware-console-time'
import {InlineKeyboardButton} from '@grammyjs/types'
import {TelegrafWikibase} from 'telegraf-wikibase'
import {CATEGORIES} from './categories.js'
import {Context} from './context.j... |
import { Component, Ref, createRef, ComponentChildren, h, RefObject } from '../vdom'
import ComponentContext, { ComponentContextType } from '../component/ComponentContext'
import { setRef } from '../vdom-util'
import { isPropsEqual } from '../util/object'
export interface RenderHookProps<HookProps> {
name: string
... |
import classNames from 'classnames'
import { noop } from 'lodash'
import * as Monaco from 'monaco-editor'
import React, { useCallback, useEffect, useMemo } from 'react'
import { of } from 'rxjs'
import { delay, startWith } from 'rxjs/operators'
import { pluralize } from '@sourcegraph/common'
import { createQueryExampl... |
<reponame>millerds/Office-Addin-Scripts<filename>packages/office-addin-sso/src/commands.ts<gh_stars>10-100
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as chalk from "chalk";
import { parseNumber } from "office-addin-cli";
import { ManifestInfo, OfficeAddinMa... |
import {AfterViewInit, Component, ElementRef, HostListener, Input, OnChanges, SimpleChanges, ViewChild} from '@angular/core';
import {MemoryProfileProtoOrNull} from 'org_xprof/frontend/app/common/interfaces/data_table';
import {MemoryProfileSnapshot} from 'org_xprof/frontend/app/common/interfaces/data_table';
const M... |
<filename>packages/eas-json/src/migrate.ts<gh_stars>0
import { Android, Ios } from '@expo/eas-build-job';
import fs from 'fs-extra';
import path from 'path';
import { AndroidBuildProfile, IosBuildProfile } from './DeprecatedConfig.types';
import { EasJson as DeprecatedEasJson, EasJsonReader } from './DeprecatedEasJson... |
import React, { useState } from "react";
import styled from "@emotion/styled";
import DefaultBtn from "../common/defaultBtn/DefaultBtn";
import axios from "axios";
import ToastError from "@src/utils/function/errorMessage";
import instance from "@src/utils/axios";
import router from "next/router";
type Information = {
... |
<filename>packages/opensea-nft-marketplace/src/state/state.tsx
import NFTT from '@fluuuid/nft-contracts/build/contracts/NFTT.json'
import create from 'zustand'
import { BigNumber, Contract, utils, Event } from 'ethers'
import { TokenProps } from '../components/Token'
import { ContractPropsDetails, UserProps } from '..... |
<gh_stars>0
import type { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js"
import { SystemProgram } from "@solana/web3.js"
import { MintLayout, Token, TOKEN_PROGRAM_ID } from "@solana/spl-token"
import { BN } from "@project-serum/anchor"
import {
DataV2,
Collection,
Creator,
CreateMetadataV2,
... |
import { ReactElement, useState } from "react";
import { Redirect } from "react-router";
import { Card } from "../../commonComponents/Card/Card";
import { CardBackground } from "../../commonComponents/CardBackground/CardBackground";
import Button from "../../commonComponents/Button/Button";
import { showNotification }... |
<filename>apps/gauzy/src/app/pages/settings/email-history/email-history.component.ts
import { Component, OnInit, OnDestroy } from '@angular/core';
import { NbDialogService, NbToastrService } from '@nebular/theme';
import { Subject } from 'rxjs';
import { EmailService } from '../../../@core/services/email.service';
impo... |
<reponame>HGV/cxml
import { ArrayType, concatArray } from '../Buffer';
import { InternalToken } from '../parser/InternalToken';
class Node {
constructor(
public token: InternalToken | null,
public buf: ArrayType,
public len: number,
public first?: Node,
public second?: Node
) {}
clone(): Node {
const o... |
import { diff } from 'deep-object-diff'
import {
FieldTypes,
FormControl,
InputType,
FormChanges,
ValidationEvent,
InputEvent,
DynamicForm,
FormFields,
FormOptions,
} from '/@/core/models'
import {
computed,
ComputedRef,
nextTick,
onMounted,
ref,
Ref,
toRaw,
} from 'vue'
import { deepClo... |
<filename>src/locales/languages.ts<gh_stars>0
import { NativeModules, Platform } from "react-native"
import env from "react-native-config"
import i18next, { ResourceLanguage } from "i18next"
import { useTranslation, initReactI18next } from "react-i18next"
import dayjs from "dayjs"
import "./dayjs-locales"
import * as ... |
<reponame>ppeetteerrs/FoodieStalker
import * as bb from 'bluebird';
import * as fs from 'fs';
import * as moment from 'moment';
import { Browser } from 'puppeteer';
import { DBConnector } from '../db/dbConnector';
import { UserData } from '../interfaces/userData';
import { UserSetting } from '../tools/cliSettings';
imp... |
import { Injectable } from "@nestjs/common";
import { DatabaseService } from "../database.service";
import { Order } from "sequelize";
import { IDBModelSensorData } from "../../database/models-ts";
import { MQTTUtilsService, ICsvSensorData } from "../mqtt/utils.service";
import { SensorsManagerService } from "./manager... |
import { mixed, string, object, boolean, array, number, ObjectSchema, Schema, ValidationError } from 'yup';
import { CanaryConfig, CanaryMetricConfig, CanaryMetricSetQueryConfig } from '../domain/Kayenta';
import { ValidationResultsWrapper } from '../domain/Referee';
import { metricSourceIntegrations, metricSourceTypes... |
import { type NodeInput } from "gatsby";
import {
type PHPID,
type SID,
type SectionID,
type FeedRecordSection,
} from "../../downloader/types";
import { slugify } from "../../node-creation/slugify";
import { type NodeModel } from "../../node-model";
import { BnfNode, type BnfNodeType } from "../../node-types";
i... |
<filename>src/module/actorCreator.ts
import { Convert, DholesHouseExportData, Characteristics, PersonalDetails, Cash, Backstory } from "./dataParser.js";
import itemCreator from "./itemCreator.js";
// import ItemCreator from "./ItemCreator";
class ActorCreator {
private static _instance: ActorCreator;
priv... |
import { buildAbsoluteURL } from 'url-toolkit';
import { logger } from '../utils/logger';
import LevelKey from './level-key';
import { PlaylistLevelType } from '../types/loader';
export enum ElementaryStreamTypes {
AUDIO = 'audio',
VIDEO = 'video',
}
export default class Fragment {
private _url: string | null ... |
/*
Command-lne app to convert Rimu source to HTML.
*/
import { existsSync, path, readAll } from "./deps.ts";
import { resources } from "./resources.ts";
import * as rimu from "./rimu.ts";
const VERSION = "11.1.14";
const STDIN = "/dev/stdin";
const HOME_DIR = Deno.env.get(
Deno.build.os === "windows" ? "USERPROFI... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<gh_stars>0
import { GanttDate, differenceInDays, GanttDateUtil } from '../utils/date';
import { GanttDatePoint } from '../class/date-point';
import { BehaviorSubject } from 'rxjs';
import { defaultConfig, GanttDateFormat } from '../gantt.config';
export const primaryDatePointTop = 18;
export const secondaryDatePoint... |
import type { BlockCodec } from "multiformats/codecs/interface";
import type { MultibaseCodec } from "multiformats/bases/interface";
import type { MultihashHasher } from "multiformats/hashes/interface";
/* eslint-disable @typescript-eslint/no-unused-vars */
import { API as BitswapAPI } from "ipfs-core-types/src/bitswap... |
<reponame>bryan-at-looker/embed-sdk-join-demo<filename>server_utils/auth_utils.ts
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... |
<filename>lib/rules/no-raw-text.ts
/**
* @author <NAME> (a.k.a. kazupon)
*/
import { parse, AST as VAST } from 'vue-eslint-parser'
import { defineTemplateBodyVisitor } from '../utils/index'
import type {
JSXText,
RuleContext,
Variable,
RuleListener,
SourceLocation
} from '../types'
type AnyValue = VAST.ESL... |
import { ProviderValues, Rna, Siren, Siret , Association, Etablissement } from "@api-subventions-asso/dto";
import axios from "axios";
import { ProviderEnum } from '../../../@enums/ProviderEnum';
import { AssociationIdentifiers } from "../../../@types";
import { API_ASSO_URL } from "../../../configurations/apis.conf";
... |
<reponame>Gaggun-Chaggar/gas-html
type Maybe<T> = T | undefined | null;
type PartialRecord<K extends keyof any, T> = {
[P in K]?: T;
};
export type GasElement = HTMLElement & { _gasListeners?: EventMap };
export type Class = Maybe<string> | Maybe<string>[] | Record<string, any>;
export type Style = PartialRecord<key... |
<filename>src/index.ts
import bind from "bind-decorator";
import NumericOperator from "./Interfaces/NumericOperator";
import AnimationResolution from "./Interfaces/AnimationResolution";
import Renderer from "./Interfaces/Renderer";
import { ResolveFunction, RejectFunction, PromiseFunctions } from "./Interfaces/Promises... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { traceError } from '../../logging';
import { createDeferred, Deferred } from './async';
interface IWorker {
/**
* Start processing of items.
* @method stop
*/
start(): void;
/**
* St... |
import * as std from "../../index";
type P = std.Pair<number, number>
export function test_swaps(): void
{
//----
// REGULAR CONTAINERS
//----
// LINEARS
_Test_container_swap(new std.Vector<P>(), new std.Vector<P>());
_Test_container_swap(new std.Deque<P>(), new std.Deque<P>());
_Test_cont... |
<reponame>Moln/data-source
import Schema, { DEFAULT_SCHEMA } from './Schema';
import { IModel, IModelT } from './interfaces';
import { observable, runInAction, toJS } from 'mobx';
import { guid } from './utils';
import { deepObserve, deepIntercept } from './mobx/utils';
export const PROPERTIES = Symbol('dataSource.mod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.