text stringlengths 3.08k 15.5k |
|---|
import React, { ChangeEvent, Suspense } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faTimes } from "@fortawesome/free-solid-svg-icons";
import Axios from "axios";
import qs from "querystring";
import Layout from "../components/layout/Layout";
import SEO from "../components/... |
<reponame>GRarer/tanktread<gh_stars>0
import { BattlefieldRegion } from './BattlefieldRegion';
import { Skill } from './Skill';
import { Status } from './Status';
import { Targetable } from '../interfaces/Targetable';
import { Arrays } from '../util/Arrays';
import { ResourceDrop, resourceDropToAmount, ResourceInventor... |
import './style.scss';
import * as React from 'react';
import { loadCss, loadModules } from 'esri-loader';
import { MapConfig } from './config';
import { PolarRegion, IRecordDate } from '../../types';
import IMapView from 'esri/views/MapView';
import IWebMap from 'esri/WebMap';
import IFeatureLayer from 'esri/layers... |
import { DNode } from '@dojo/framework/widget-core/interfaces';
import { v, w } from '@dojo/framework/widget-core/d';
import { WidgetBase } from '@dojo/framework/widget-core/WidgetBase';
import ComboBox from '../../combobox/index';
const data = [
{ value: 'Maine' },
{ value: 'New Hampshire' },
{ value: 'Vermont' },... |
<reponame>bennypowers/lion
import { LitElement, nothing, TemplateResult, CSSResultArray } from '@lion/core';
import { SlotsMap, SlotHost } from '@lion/core/types/SlotMixinTypes';
import { Constructor } from '@open-wc/dedupe-mixin';
import { DisabledHost } from '@lion/core/types/DisabledMixinTypes';
import { LionValida... |
import React, {useState} from 'react'
import './ImportLabelPopup.scss'
import {LabelType} from '../../../data/enums/LabelType';
import {PopupActions} from '../../../logic/actions/PopupActions';
import GenericLabelTypePopup from '../GenericLabelTypePopup/GenericLabelTypePopup';
import {ImportFormatData} from '../../../d... |
import { Union, of } from 'ts-union';
export enum Scalar {
U8 = 'U8',
U16 = 'U16',
U32 = 'U32',
I32 = 'I32',
USIZE = 'USIZE',
F32 = 'F32',
F64 = 'F64',
Str = 'Str',
Bool = 'Bool'
}
export type EnumVariants = {
variants: string[];
};
export type StructMembers = {
[prop: string]: Type;
};
export... |
import { graphql, Link } from 'gatsby'
import React, { FC } from 'react'
import styled from 'styled-components'
import Layout from '../components/Layout'
import PostMetaInfo from '../components/PostMetaInfo'
import ScrollSyncToc from '../components/ScrollSyncToc'
import SEO from '../components/Seo'
import { color, mixi... |
import {
Message,
Message_Two,
Message_VStruct,
NType,
Container,
Figure,
Color,
Vec3,
NewtypeAlias,
NormalStruct,
MyTuple,
MyEnum
} from './simple.g';
import {
write_u32,
write_f32,
opt_writer,
write_bool,
write_str,
seq_writer,
write_u8,
nullable_writer,
Sink,
Serializer,
... |
import { moveItemInArray } from '@angular/cdk/drag-drop';
import { Component, EventEmitter, Input, OnInit, Output, TemplateRef, OnDestroy } from '@angular/core';
import { FormArray, FormControl, FormGroup, Validators } from '@angular/forms';
import { AngularEditorConfig } from '@kolkov/angular-editor';
import { NbDialo... |
import React, { useState } from "react";
import { useDispatch } from "react-redux";
import {
AppBar, Toolbar, Typography, ListItemProps,
} from "@material-ui/core";
import { Link, NavLink } from "react-router-dom";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import Li... |
/* global $ */
import { _, AppInit, CommandManager, Menus, FileSystem, ProjectManager } from "./brackets-modules";
import ExpectedError from "./ExpectedError";
import * as Events from "./Events";
import EventEmitter from "./EventEmitter";
import * as Strings from "strings";
import * as ErrorHandler from "./ErrorHandle... |
import { DataStatus, DataIsLoading, DataIsReady, AirnodeRef, PersistentState } from './types';
import { Storage } from './Storage';
import { noMenu } from "../fixtures/menu";
import { MenuItem } from '../components/Menu';
import { MenuPanelProps } from '../components/MenuPanel';
import { parseBalance } from './Balance'... |
import noop from '@tinkoff/utils/function/noop';
import hoistStatics from 'hoist-non-react-statics';
import invariant from 'invariant';
import type { FunctionComponent } from 'react';
import { useContext } from 'react';
import { useCallback } from 'react';
import React, { useMemo, useRef } from 'react';
import { isVali... |
<gh_stars>0
import { decorators, resource, ComponentChanged, OBSERVER_TYPE } from '@eva/eva.js';
import { Renderer, RendererManager, ContainerManager, RendererSystem } from '@eva/plugin-renderer';
import { Sprite as SpriteEngine, Graphics } from '@eva/renderer-adapter';
import MaskComponent from './component';
const r... |
<reponame>bhaskarvilles/cactus<gh_stars>100-1000
import test, { Test } from "tape-promise/tape";
import { v4 as uuidv4 } from "uuid";
import { generateKeyPair, exportSPKI, SignJWT } from "jose";
import type { Options as ExpressJwtOptions } from "express-jwt";
import type { AuthorizeOptions as SocketIoJwtOptions } from ... |
<gh_stars>1-10
import { Node } from '../models/node';
import { Cursor } from '../models/node-pos';
import { NodeType } from '../models/node-type';
import * as chars from '../util/chars';
const OP_CHARS = [
'+', // add
'-', // sub
'*', // mul
'/', // div
'%', // mod
'<', // less than
'>', // greater than
... |
/* eslint-disable react/jsx-one-expression-per-line */
import React, { useRef, useEffect, useReducer } from 'react';
import Link from '../components/MyLink';
import * as utils from '../components/utils';
import { Row, Col, Icon, Menu, Button, Popover, Dropdown, Affix, Badge } from 'antd';
import { useSiteContext } from... |
import {BaseMemory} from "../disassembler/basememory";
import {Opcode, Opcodes} from "../disassembler/opcode";
import {Format} from "../disassembler/format";
import {Disassembler} from "../disassembler/disasm";
import {Utility} from './utility';
import {Settings} from '../settings';
import {Z80Registers} from "../remot... |
/**
* 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
*
* Unless required by applicable law or agr... |
import * as React from 'react';
import clsx from 'clsx';
import { makeStyles, useTheme, Theme, createStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@mate... |
import { JSX, createEffect, splitProps, createSignal, Accessor, Setter, children } from "solid-js";
export function assert(cond: boolean, msg?: string): asserts cond {
if (!cond) {
throw new Error(msg ?? "Assertion was false");
}
}
// Returning more complex things --------------------------
const renderable_... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Visual Studio Code Toolbox
/// @file src/extension.ts
/// @author <NAME> <<EMAIL>>
/// @license MIT
//////////////////////... |
<gh_stars>0
import * as Router from 'koa-router'
import * as _ from 'lodash'
import * as through from 'through'
import * as API from '../api'
import * as flickr from '../helpers/flickr'
import { debug } from '../helpers/log'
const router = new Router()
const debugGetPhotos = debug('/routes/photosets.js... |
/**
* @packageDocumentation
* @module avalanche-core
*/
import {
HttpProvider,
WSProvider,
Messenger,
Provider,
RPCMethod,
ShardingItem,
} from 'avalanche-js-network';
import * as crypto from 'avalanche-js-crypto';
import * as utils from 'avalanche-js-utils';
import { Transaction, TransactionFactory }... |
import 'leaflet';
import 'leaflet/dist/leaflet.css';
import { useKeycloak } from '@react-keycloak/web';
import { render } from '@testing-library/react';
import * as API from 'constants/API';
import {
AddressTypes,
PropertyAreaUnitTypes,
PropertyClassificationTypes,
PropertyDataSourceTypes,
PropertyStatusType... |
<reponame>FedorLap2006/interaction-kit
/* eslint-disable no-await-in-loop */
import type { FastifyRequest, FastifyReply } from "fastify";
import dotenv from "dotenv";
import SlashCommand from "./commands/slash-command";
import ContextMenu from "./commands/context-menu";
import Config from "./api/config";
import {
In... |
import _ from "lodash";
import * as util from "../../../util/util";
import * as test from "../../../util/test";
import chalk from "chalk";
import { log, logSolution, trace } from "../../../util/log";
import { performance } from "perf_hooks";
const YEAR = 2021;
const DAY = 3;
// solution path: C:\Users\trgau.NORTHAMER... |
<reponame>TheDrone7/descord
import {
AttachmentData, InteractionType,
MessageActivityData,
MessageActivityType,
MessageData, MessageInteractionData,
MessageReactionData, MessageReferenceData, MessageType
} from '../types/index.ts';
import Client from '../client.ts';
import { Application, Channel, Emoj... |
<reponame>aniftyco/next-saas
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable @typescript-eslint/no-var-requires */
import * as log from 'next/dist/build/output/log';
import arg from 'next/dist/compiled/arg/index.js';
import { sync as findUp } from 'next/dist/compiled/find-up';
import { NON_STANDA... |
import "https://deno.land/std@0.134.0/dotenv/load.ts";
import * as hex from "https://deno.land/std@0.134.0/encoding/hex.ts";
// @deno-types="https://cdn.esm.sh/v57/firebase@9.4.1/app/dist/app/index.d.ts"
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.4.1/firebase-app.js";
//import { initializeApp ... |
import { Message, MessageEmbed } from "discord.js";
import { Command, handlerLoadOptionsInterface } from "../../../handler";
import { promptMessage } from "../../../utils";
const chooseArr = ["1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣"];
import { Kitsu as KitsuInterface } from "kitsu.js";
const Kitsu = require("kitsu.js");
const... |
<gh_stars>0
import XEUtils from './xe-utils'
// core
export * from './xe-utils'
// object
export * from './object/assign'
export * from './object/extend'
export * from './object/objectEach'
export * from './object/lastObjectEach'
export * from './object/objectMap'
// array
export * from './array/map'
export * from '... |
<filename>app/js/components/service_status.ts
import * as Chart from 'chart.js';
import { ChartTooltipItem } from 'chart.js';
import * as $ from 'jquery';
import 'chartjs-plugin-datalabels';
interface StatesDictionary {
[key: string]: string;
}
interface LegendJson {
label: string;
color: string;
}
interface S... |
import Box from '@mui/material/Box';
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 TablePagination from '@mui/material/TablePagination';
import TableRow from '@m... |
import { CellRenderer, CellEditor, CellTransformer } from "@/grid/cell";
import { JSXInternal } from "preact/src/jsx";
import Grid from "./grid";
export type Unsubscribe = () => void;
export interface MenuItem {
// is it a dividing line
separator?: boolean;
// disabled menu items
disabled?: boolean;
... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as React from 'react'
import { connect } from 'react-redux'
import { State } from '../../../types'
import { AppBase, AppDefinition } from '@conversationlearner/models'
import FormattedMessageId from '../..... |
<reponame>h-matsuo/madoop
declare var MADOOP_MODE_DEBUG: any;
declare var MADOOP_SERVER_ENDPOINT_URL: string;
declare var MADOOP_PING_INTERVAL: number;
// `Module` declared in js generated by Emscripten
declare var Module: any;
// Called by map/reduce in C++
let execEmit: Function = () => {
throw new Error('[Madoop... |
<gh_stars>1-10
import { InputError } from './errors.ts'
import { parse_unit, parse_percentage } from './parsers/unit.ts'
import { parse_duration } from './parsers/duration.ts'
import { AbstractClipMap } from './parsers/template.ts'
import type { ClipID } from './template_input.ts'
import type * as template_parsed from ... |
<gh_stars>0
import { Dialog } from "../Dialog";
import mx from "@mxgraph-app/mx";
const {
mxEventObject,
mxEvent,
mxResources,
mxDivResizer,
mxUtils,
mxClient,
} = mx;
interface ISize {
width: number;
height: number;
}
interface IPos {
top: number;
left: number;
}
/**
* Class used to initialize ... |
import { execJSONExpression } from "..";
const ctx = { data: {}, context: {} };
interface IData {
name: string;
nested: {
data: {
age: number;
};
};
}
describe("JSON Logic Test cases::", () => {
it("Negation operation : !", () => {
expect(execJSONExpression(["!", 2], ctx)).toBe(false);
expect(execJSONE... |
export type ClientObjectProps = {
url?: undefined | string;
token?: undefined | string;
edgeUrl?: undefined | string;
readFromEdge?: boolean;
extraOptions?: undefined | any;
};
export type EdgeCacheType = null | 'miss' | 'hit';
export type ReturnType = {
data: string | number | [] | any;
error: string |... |
type ThemeVariables = {
bg_page1: string;
bg_page2: string;
bg_element1: string;
bg_element2: string;
bg_element3: string;
bg_element4: string;
bg_element5: string;
bg_element6: string;
bg_element7: string;
bg_element8: string;
bg_invert: string;
bg_inline_code: string;
bg_tag: string;
text1... |
import React, { useState, useEffect } from "react";
import { Component } from "@ui_types";
import { Client } from "@core/types";
import { HomeContainer } from "./home_container";
import * as styles from "@styles";
import { wait } from "@core/lib/utils/wait";
import { SmallLoader } from "@images";
import { Link } from "... |
type Route<T = Function> = {
params: string[];
callback: T
path: PathLike;
};
export type RouteTree<T = Function> = {
[key in HTTPMethod]?: Route<T>;
} & {
paths: {
[key: string]: RouteTree<T>;
};
":"?: RouteTree<T>;
"*"?: RouteTree<T>;
"middleware"?: Function[];
};
type Pa... |
<filename>packages/web/app/test-e2e/issuer/eto/nominee/SigningISHAStep.spec.e2e.ts
import {
assertEtoDocuments,
checkField,
closeModal,
confirmAccessModal,
dropDocumentToFieldWithTid,
fillForm,
goToNomineeDashboard,
loginFixtureAccount,
TFormFixture,
uploadDocumentToFieldWithTid,
} from "../../../ut... |
<reponame>ivantse/vscode-react-native
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
import * as Q from "q";
import * as path from "path";
import {ChildProcess} from "child_process";
import {ILogger} from "../extension/l... |
// LoginContext --------------------------------------------------------------
// React Context containing information about the currently logged in user,
// if there is one. If there is not, the LOGIN_CONTEXT global variable will be
// null, and the loggedIn context method will return false.
// External Modules ---... |
import * as functions from 'firebase-functions';
import {ApiDeck, ApiDeckAttributes} from '../../model/api/api.deck';
import {ApiSlide} from '../../model/api/api.slide';
import {Deck} from '../../model/data/deck';
import {Slide, SlideAttributes, SlideTemplate} from '../../model/data/slide';
import {Template} from '../.... |
import { addSeconds, formatISO, isAfter, parseISO } from 'date-fns'
import jwtDecode from 'jwt-decode'
import { lookup } from 'mime-types'
import { nanoid } from 'nanoid'
import wretch, { Wretcher } from 'wretch'
import { AppError, DestinationError, ErrorHandler } from '../components/ErrorBoundary'
import type { Image... |
import { MinecraftFolder, MinecraftLocation } from "@xmcl/core";
import { Task } from "@xmcl/task";
import { CachedZipFile, open } from "@xmcl/unzip";
import { Agent as HttpsAgent } from "https";
import { basename, join } from "path";
import { DownloaderOption } from "./minecraft";
import { batchedTask, downloadFileTas... |
import { E } from 'js-vextensions';
import { Button, CheckBox, Column, DropDown, DropDownContent, DropDownTrigger, Row } from 'react-vcomponents';
import { BaseComponentPlus } from 'react-vextensions';
import { ShowMessageBox } from 'react-vmessagebox';
import { ScrollView } from 'react-vscrollview';
import { Layer } f... |
import React, { Fragment, useEffect, useState } from "react";
import { RootState } from "../../../../app/store";
import { Form as FinalForm, Field as FinalField } from "react-final-form";
import { Button, Form, Modal } from "semantic-ui-react";
import { TextInput } from "../../../../app/common/form/TextInput";
import {... |
<filename>website/src/main/website/src/app/services/auth.service.ts
// Licensed to the Apache Software Foundation (ASF) under one or more contributor
// license agreements; and to You under the Apache License, Version 2.0.
import { Injectable } from '@angular/core';
import { tokenNotExpired } from 'angular2-... |
import { Box, Button, Container, Grid, Stack } from "@mui/material";
import * as _ from "lodash";
import type { NextPage } from "next";
import * as React from "react";
import { useState } from "react";
import toast, { Toaster } from "react-hot-toast";
import { Dice, DiceProps } from "../components/dice";
import { Face ... |
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OPTIONAL,
PrintableString,
TeletexString,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/* START_OF_SYMBOL_DEFINITION UnformattedPostalAddress */
/**
* @summary UnformattedPostalAdd... |
<reponame>liuxiran/apisix-dashboard
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Vers... |
<reponame>joshua-leyshon-canva/buildkite-graph
import ow from 'ow';
import { KeyValue, KeyValueImpl } from '../key_value';
import {
Plugin,
Plugins,
PluginsImpl,
transformPlugins,
} from './command/plugins';
import {
ExitStatus,
exitStatusPredicate,
LabeledStep,
mapToObject,
} from '../b... |
var NO_DATA_URL = "https://storage.googleapis.com/bkper-public/addons/notada-280x172.png";
var DEV_MODE = false;
$(function() {
SidebarView.init();
RecordTabView.init();
FetchTabView.init();
SidebarActivity.init();
RecordTabActivity.init();
FetchTabActivity.init();
});
namespace SidebarView {
var selectedT... |
<reponame>SteveLau-GameDeveloper/engine
/*
Copyright (c) 2020 <NAME> Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and... |
/*
* @copyright EveryWorkflow. All rights reserved.
*/
import React, { forwardRef, useCallback, useContext, useEffect, useState } from 'react';
import Row from 'antd/lib/row';
import Col from 'antd/lib/col';
import Form from 'antd/lib/form';
import Button from 'antd/lib/button';
import Tooltip from 'antd/lib/tooltip... |
import fs from 'fs'
import path from 'path'
import * as api from '../../lib/api'
import config from '../../config'
import logger from '../../lib/logger'
import random from 'random-number-csprng'
import per from '../permission/permission'
try {
fs.mkdirSync(path.join(api.Data, './probability'))
} catch (err... |
<filename>src/2018/day-07/day-seven.ts
import { Advent } from '../advent'
import { input } from './input'
export class DaySeven extends Advent {
constructor() {
super()
this.DayNumber = 'Day Seven'
this.Input = input
let graph = this.parseInput(this.Input.split('\n'))
let ... |
import React, { Component } from 'react';
import { getTree } from '@/server/workObject';
import styles from './index.module.less';
import { DownOutlined } from '@ant-design/icons';
import { Tree, Input, Spin } from 'antd';
import Icons from './icons';
import lodash from 'lodash';
import { getTreeRoot } from '@/framewor... |
import { Mutex } from "async-mutex";
import io from "socket.io-client";
import { Observable, Observer } from "../Chat/ChatGlobalState";
export class PresenceState {
private socket: SocketIOClient.Socket | undefined;
private mutex: Mutex = new Mutex();
async begin(token: string): Promise<void> {
co... |
<gh_stars>1-10
import * as firebase from 'firebase';
import 'firebase/messaging';
import * as React from 'react';
export interface Notification {
body: string;
click_action: string;
icon: string;
image: string;
title: string;
}
export default class Index<
Props extends {},
State extends {}
> extends Rea... |
import { Construction, CheckBox, CheckBoxOutlineBlank } from "@mui/icons-material";
import { Box, Button, Container, List, ListItemButton, Paper, Typography } from "@mui/material";
import React, { useState } from "react";
import { Augmentation } from "../../../Augmentation/Augmentation";
import { Augmentations } from "... |
/*
based on: https://github.com/rzeigler/waveguide/blob/master/src/queue.ts
credits to original author
*/
import { either as E, function as F, option as O, pipeable as P } from "fp-ts";
import { Deferred, makeDeferred } from "./deferred";
import { makeRef, Ref } from "./ref";
import { natNumber } from "./sanity";... |
<gh_stars>1-10
import {app, ipcMain} from 'electron'
import nodemailer from 'nodemailer'
import {sleep} from '../utils/async'
import {Email, EmailSettings, EmailError} from '../native_types'
import {CustomError} from '../utils/exceptions'
interface SmtpSettings {
host:string
port:number
user:string
... |
<filename>lib/swaggerValidator/ajv.ts
import { Ajv, CompilationContext } from "ajv";
import { JsonLoader } from "../swagger/jsonLoader";
import { Schema } from "../swagger/swaggerTypes";
import { xmsAzureResource, xmsMutability, xmsSecret } from "../util/constants";
import { ajvEnableDiscriminatorMap } from "./ajvDiscr... |
import { OvaleClass, MSG_PREFIX } from "./Ovale";
import aceEvent, { AceEvent } from "@wowts/ace_event-3.0";
import aceSerializer, { AceSerializer } from "@wowts/ace_serializer-3.0";
import { pairs, type, LuaObj, LuaArray } from "@wowts/lua";
import { IsInGroup, SendAddonMessage, LE_PARTY_CATEGORY_INSTANCE, GetTime, Un... |
import { User, Friend, ChatMessage } from '../stores';
import { Friend as Friendpb, Empty, User as Userpb, FriendsList, FriendRequest } from '../_proto/friends_pb';
import { FriendsClient, ServiceError } from '../_proto/friends_pb_service';
import { BrowserHeaders } from 'browser-headers';
import { PresenceClient, Res... |
<reponame>digitalpacman/connect
import {
mapGetRatesRequest,
mapRatePackage,
} from '../../../src/mapping/functions';
import {
AddressResidentialIndicator,
ConfirmationTypes,
DimensionUnit,
InsuranceProviders,
Package,
WeightUnit,
} from '@shipengine/connect-carrier-api/lib/models';
import {
GetRatesRequest,
}... |
// 产品目录名字和service名字匹配即 lb_private(目录名) => lbPrivate(service)
import { FildDescriptorType } from '../_base/types';
import { instanceQueryParamsBaseParse } from '../../common/utils';
const namespace = 'QCE/CDN_LOG_DATA';
// 组件名称。这里名字要和index.ts中的SERVICES对应,后面会根据SERVICES中service字段拼接这个query组件名称
const queryEditorName = 'cd... |
<reponame>OSkliarenko/analytics-react-native<gh_stars>0
import {
createStore,
registerBridgeStore,
Store,
} from '@segment/sovran-react-native';
import type {
SegmentAPIIntegrations,
IntegrationSettings,
SegmentEvent,
DeepPartial,
Context,
UserInfoState,
} from '..';
import { getUUID } from '../uuid';... |
import yargs from 'yargs';
import got from 'got/dist/source';
import { Retrier } from '@jsier/retrier';
const { spawn } = require('child_process');
import { ConfigService } from '../../services/config/config.service';
import { Logger } from '../../services/logger/logger.service';
import { cleanExit } from '../clean-ex... |
import Vue, { WatchOptions, ComponentOptions as _ComponentOptions } from 'vue'
import { BG0, BM0, BA0 } from '../core/base'
import { Module, ModuleImpl } from '../core/module'
import { Store, StoreImpl, Subscriber } from '../core/store'
import { devtoolPlugin } from '../adapters/devtool-plugin'
import { assert } from '... |
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react'
import styled from '@emotion/styled'
import { useTimeout } from '@liinkiing/react-hooks'
import { motion } from 'framer-motion'
import { FC, ReactNode, useEffect, useMemo, useRef, useState } from 'react'
import { FiAlertCircle, FiCheckCirc... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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... |
<reponame>maorleger/autorest.typescript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
Project,
SourceFile,
Scope,
ExportDeclarationStructure,
InterfaceDeclaration
} from "ts-morph";
import { normalizeName, NameType } from "../utils/nameUtils";
import { ClientDetails } fr... |
/** @jsx jsx */
import { jsx } from "theme-ui";
import { Styled } from "theme-ui";
import { Flex, Container, Box } from "@theme-ui/components";
import Textfield from "../Textfield";
import Button from "../Button";
import HeroVideo from "./Video";
import { Text } from "@theme-ui/components";
import PhoneSvg from "./Phon... |
/*
* Copyright 2021 Collate
* 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,... |
import {NgModule,Component,Input,Output,EventEmitter,OnInit,ViewContainerRef,ContentChild,TemplateRef,Inject,forwardRef,Host} from '@angular/core';
import {CommonModule} from '@angular/common';
import {TreeNode} from '../common/api';
@Component({
selector: 'p-treeNodeTemplateLoader',
template: ``
})
export cla... |
<filename>packages/fx-post/src/bloom.ts<gh_stars>1-10
import {
BlendState,
Color,
createShaderEffect,
CullState,
DepthState,
Device,
StencilState,
Texture,
ShaderEffect,
createShaderEffectSync,
} from '@gglib/graphics'
import { POST_BLOOM } from './bloom.program'
import { getOption } from '@gglib/ut... |
import React, { useState } from 'react';
import { css } from 'emotion';
import { uniqBy } from 'lodash';
// Types
import { RichHistoryQuery, ExploreId } from 'app/types/explore';
// Utils
import { stylesFactory, useTheme } from '@grafana/ui';
import { GrafanaTheme, SelectableValue } from '@grafana/data';
import { So... |
import {
FC,
cloneElement,
Fragment,
useRef,
useState,
useCallback,
} from "react";
import Grid, { GridProps } from "@material-ui/core/Grid";
import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
import CardHeader from "@material-ui/core/CardHeader";
import Icon... |
<reponame>Doridian/jsip
import { IInterface } from "../../../../interface/index.js";
import { IPAddr } from "../../address.js";
import { sendPacketTo } from "../../send.js";
import { UDPPkt } from "../index.js";
import { udpListen } from "../stack.js";
import { DNSAnswer } from "./answer.js";
import { DNS_CLASS, ... |
<reponame>AelasticS/aelastics-types<gh_stars>10-100
/*
* Copyright (c) AelasticS 2019.
*
*/
import {
appendPath,
Error,
Errors,
failure,
failures,
isFailure,
Path,
success,
validationError,
Result
} from 'aelastics-result'
import { ComplexTypeC } from './ComplexType'
import {
Any,
ToDtoConte... |
<reponame>opossum-tool/OpossumUI<gh_stars>10-100
// SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
// SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
//
// SPDX-License-Identifier: Apache-2.0
import * as csv from 'fast-csv';
import { CsvFormatterStream } from 'fast-csv... |
import fromPairs from 'lodash/fromPairs';
import toPairs from 'lodash/toPairs';
import uniqueId from 'lodash/uniqueId';
import zip from 'lodash/zip';
import { CallOperation, isCallArgumentArray, isCallArgumentMap } from '../../operations/call';
import {
GraphNode,
isGraphNode,
NodeDefinition,
StatelessGraphNode... |
import * as Chart from 'chart.js'
import * as $ from 'jquery'
// @ts-ignore
import * as NGL from 'ngl'
import * as React from 'react';
import './App.css';
interface IMetricsProbs {
setPdbData: any;
}
class Metrics extends React.Component<IMetricsProbs, any> {
// @ts-ignore
private setPdbData : any;
... |
<filename>packages/solutions/module-tools/src/features/build/utils.ts<gh_stars>0
import * as path from 'path';
import * as os from 'os';
import { Import, chalk } from '@modern-js/utils';
import type { PluginAPI } from '@modern-js/core';
import type {
IBuildConfig,
IPackageModeValue,
JsSyntaxType,
ITaskMapper,
... |
<reponame>alexisbg/pdfium-lib-bindings
import FFI from 'ffi';
import Path from 'path';
import Ref, { Type } from 'ref';
import StructType from 'ref-struct';
import { PdfImageObjectMetadata, StructTypeWithRef } from './interfaces';
import { PdfiumFfiFuncs } from './pdfium-ffi-interface';
/* eslint-disable @typescript-... |
/* eslint-disable jsx-a11y/anchor-is-valid */
import React, { useState } from 'react'
import { Switch, Route, Redirect, RouteComponentProps, useLocation } from 'react-router-dom'
import { inject, observer } from 'mobx-react'
import { Avatar, Menu, Dropdown } from 'antd'
import { UserOutlined, MenuFoldOutlined, MenuUnfo... |
import * as React from "react";
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";
import Checkbox from "@material-ui/core/Checkbox";
import Typography from "@material-ui/core/Typography";
import ApiSingleton from "../../api/ApiSingleton";
import {CreateTaskViewModel} fr... |
// import signalhub from 'signalhub'
import Peer from "simple-peer";
import { SignalClient } from "./signal";
import { Dispatch } from "redux";
type Listener = (id: string, payload: Uint8Array) => void;
export enum Events {
PEER_SERVER_START = "[peer-base] PEER_SERVER_START",
PEER_SERVER_CONNECT = "[peer-base] PE... |
import nearley from 'nearley';
import grammar from './lang/info.js';
/**
* Parses the infolang syntax into an abstract syntax tree.
*
* @param {string} code Code as string to parse.
* @return {*} Returns a object representing the AST.
* @throws No parse found error
*/
const parse = (code: string): any => {
con... |
import { BrowserWindow } from 'electron';
import { EventEmitter } from 'events';
import { Extensions } from '.';
import { isBackgroundPage } from '../utils/web-contents';
import { WINDOW_ID_CURRENT } from '../constants';
import { sendToExtensionPages } from './background-pages';
import { HandlerFactory } from './handle... |
import Vue from "vue";
import {
setTemplateEngine,
getTemplateEngine,
getUniqueID,
createElement,
detach,
extend,
getValue,
} from "@syncfusion/ej2-base";
import { aVue, allVue, gh } from "./component-base";
// tslint:disable:no-any
let stringCompiler: (
template: string,
helper?: object
) => (data:... |
import {
iso3166_1,
iso3166_1Reserved,
iso3166_2,
iso3166_3,
iso3166_1Alpha2ToAlpha3,
iso3166_1Alpha2ToNumeric,
iso3166_1Alpha3ToAlpha2,
iso3166_1NumericToAlpha2,
Iso3166_3,
Iso3166_2,
Iso3166_1Reserved,
Iso3166_1Assigned,
} from './index'
import each from 'jest-each'
import 'jest-extended'
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.