text stringlengths 3.08k 15.5k |
|---|
<reponame>tttclz/cool-admin-vue<gh_stars>0
import prettier from "prettier";
import { isEmpty, last } from "lodash";
import { createDir, firstUpperCase, readFile, toCamel } from "../../utils";
import { createWriteStream } from "fs";
import { join } from "path";
// 临时目录路径
const tempPath = join(__dirname, "../../temp");
... |
<reponame>sdwlig/material-components-web-components<filename>packages/menu/src/mwc-menu.ts
/**
@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 a... |
import {
FHIRQuestionnaire,
FHIRQuestionnaireResponse,
FHIRQuestionnaireItem,
FHIRResponseItem,
FHIRValueSet,
FHIRAnswerValue,
FHIREnableCondition,
} from './types';
const indexArrayBy = (array: any[], keyField: string) =>
array.reduce((obj: any, item: any) => {
obj[item[keyField]] = item;
retu... |
'use strict';
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as luxon from 'luxon';
export function activate(context: vscode.ExtensionContext) {
const config = new ExtensionConfiguration();
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(e => {
config.onDidCh... |
import * as React from 'react'
import { useId } from '../../hooks/use-id'
import { useIsInitialRender } from '../../hooks/use-is-initial-render'
import { useIsMounted } from '../../hooks/use-is-mounted'
import { useIsoMorphicEffect } from '../../hooks/use-iso-morphic-effect'
import { match } from '../../utils/match'
... |
/**
* @license
* Copyright (C) 2016 The Android Open Source Project
*
* 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 require... |
import { v4 } from 'uuid';
import { Logger } from '../../../../cli';
import {
CommandError,
CommandOption
} from '../../../../Command';
import config from '../../../../config';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import Utils from '../../../../Utils';
im... |
import { LoadedPlugin, RuntimePlugin, FabConfig, ProtoFab, BuildFn } from '@fab/core'
import { Compiler } from './Compiler'
import { Generator } from './Generator'
import { Typecheck } from './Typecheck'
import {
_log,
BuildFailedError,
InvalidConfigError,
isRelative,
relativeToConfig,
} from '@fab/cli'
impor... |
import * as React from 'react';
import * as Moment from 'moment';
import { Button, Card, Label, Rating } from 'semantic-ui-react';
import Meal from '../State/Meal/Meal';
import UrlProvider from '../Services/UrlProvider';
import CeraonDispatcher from '../Store/CeraonDispatcher';
import * as Actions from '../Actions/Ind... |
import { Injectable } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { Store } from '@ngrx/store';
import { Actions, Effect, ofType } from '@ngrx/effects';
import { interval as observableInterval, of as observableOf, Observable } from 'rxjs';
import { catchError, mergeMap, map, f... |
/*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2017-2019 THL A29 Limited, a Tencent company.
* 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.
... |
import {
BlockImage,
OEmbedBase,
TumblrEmbed,
TweetEmbed,
} from "./custom-nodes/ssr";
import { NodeType, parse } from "node-html-parser";
import type {
HTMLElement as ParserHTMLElement,
Node as ParserNode,
} from "node-html-parser";
import type { DeltaOperation } from "quill";
import { QuillDeltaToHtmlCon... |
import * as React from 'react';
import clsx from 'clsx';
import styled from '../styled';
import { createSvgIcon } from '../utils';
// Recreation of MUI's internal RadioButton component, but
// with our icons(bit larger at 22x22, no empty border space)
const CheckboxIconRoot = styled('span')(
({ theme: { palette, tr... |
import Head from "../components/Head"
import { GetServerSideProps, NextPage } from "next"
import loki from "lokijs"
import {
Table,
Button,
Row,
Modal,
useToasts,
useModal,
Input,
Divider,
Tag,
} from "@geist-ui/react"
import { useRouter } from "next/router"
import APIKey from "../models/APIKey"
impor... |
import unfetch from 'isomorphic-unfetch'
import { toRegexPattern } from './dict'
import { kan2num } from './kan2num'
import { currentConfig } from '../config'
import LRU from 'lru-cache'
type PrefectureList = { [key: string]: string[] }
interface SingleTown {
town: string
koaza: string
lat: string
lng: string
... |
import EditorPlayer from './Editor';
import Timer from '../ProgressTimer';
import FSManager from '../filesystem/FSManager';
import { commands, Disposable, TextEditorSelectionChangeEvent, window } from 'vscode';
import AudioHandler from '../audio/Audio';
import Subtitles from './Subtitles';
import Environment from '../e... |
/*********************************************************************
* Copyright (c) Intel Corporation 2019
* SPDX-License-Identifier: Apache-2.0
* Description: Handler to execute a power action on amt device
**********************************************************************/
import { Response, Request } from 'e... |
<gh_stars>0
import { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import {filter, mergeMap, withLatestFrom} from 'rxjs/operators';
import {dataPointsLoaded, filesAdded, generateSheet, generateSheetComplete, generateSheetStatus} from "./app.actions";
import {AppState,... |
import { css, ThemeProvider } from '@emotion/react';
import { visuallyHidden } from '@guardian/src-foundations/accessibility';
import { Pillars } from '@root/src/web/components/Pillars';
import { GuardianRoundel } from '@root/src/web/components/GuardianRoundel';
import { space } from '@guardian/src-foundations';
impor... |
import { H160, H256, PlatformAddress, U64 } from "codechain-primitives/lib";
import { SDK } from "codechain-sdk";
import { AssetScheme } from "codechain-sdk/lib/core/classes";
import { KeyStore } from "codechain-sdk/lib/key/KeyStore";
import { createSlack } from "./Slack";
export const SERVER: string = (() => {
co... |
import * as React from 'react';
import Modal, { ActionType } from '../models/Modal';
import classNames from 'classnames';
import {isNullOrUndefined} from 'rewire-common';
import {
Observe,
disposeOnUnmount,
watch } from 'rewire-core';
import Typograph... |
import { useRouter } from 'next/router'
import cx from 'classnames'
import { useState, useEffect, SyntheticEvent } from 'react'
import { ChevronDownIcon } from '@primer/octicons-react'
import { Link } from 'components/Link'
import { ProductTreeNode, useMainContext } from 'components/context/MainContext'
import { AllPr... |
<filename>packages/keystone/src/lib/core/queries/resolvers.ts
import {
FindManyArgsValue,
ItemRootValue,
KeystoneContext,
OrderDirection,
} from '@keystone-next/types';
import { GraphQLResolveInfo } from 'graphql';
import { validateNonCreateListAccessControl } from '../access-control';
import {
PrismaFilter,
... |
/**
* User: Bc. <NAME>
* Date: 24/08/2021
* Time: 19:12
*/
import {Service} from "../service";
import * as Moment from "moment";
import * as Main from "../main";
import * as Messenger from "../libs/Messenger";
import * as Channels from "../libs/Channels";
import {GuildEmoji, GuildMember, Message, TextChannel} from ... |
import { getPeerId, sanitizeParseMode } from "../Utils";
import { Api } from "../tl";
import type { EntityLike } from "../define";
import type { TelegramClient } from "./TelegramClient";
import { utils } from "../index";
import { _EntityType, _entityType, isArrayLike } from "../Helpers";
import bigInt from "big-integer... |
import React, { useContext, useReducer, useEffect } from "react";
import RX from "reactxp";
import Video from "react-native-video";
import Icon from "react-native-vector-icons/MaterialCommunityIcons";
import MusicControl from "react-native-music-control";
import { Command } from "react-native-music-control/lib/types"... |
<filename>src/subscriptionstate/SubscriptionState.ts
import { useEffect, useMemo, useState } from 'react'
export type ISubscribeOptions<THIS_T> = {
deps?: (state: THIS_T) => any
onUnsubscribed?: () => any
}
type IUpdateStateFunc = (...args: any) => any
export interface ISubscribedEntry extends ISubscribeOptions<... |
<reponame>zbeyens/slate-plugins-next
import { PluginOptions } from '@babel/core';
import {
createPlateEditor,
CreatePlateEditorOptions,
createPluginFactory,
Decorate,
DecorateEntry,
DOMHandler,
EDescendant,
EElement,
EElementEntry,
EElementOrText,
ELEMENT_BLOCKQUOTE,
ELEMENT_H1,
ELEMENT_IMAGE,... |
import BarsOutlined from '@ant-design/icons-vue/BarsOutlined';
import RightOutlined from '@ant-design/icons-vue/RightOutlined';
import LeftOutlined from '@ant-design/icons-vue/LeftOutlined';
import classNames from '../_util/classNames';
import { inject, provide, PropType, defineComponent, nextTick } from 'vue';
import... |
<gh_stars>0
import * as PropTypes from 'prop-types';
import {
CollectionKey,
ElementModel
} from 'props-cms.connector-common';
import * as React from 'react';
import * as SOCKET from 'socket.io-client';
import { debounce } from 'throttle-debounce';
export const CmsConnectorChannel ... |
<filename>src/frontend/js/pages/page-order.ts
import feather from "feather-icons";
import { off, on } from "../utils/wrapped-events";
let initialPageTitle: string;
window.addEventListener("load", () => {
// Only activate event listeners if explicitly enabled
if (!document.querySelector("[data-activate-page-order]... |
import React, { useMemo, useCallback, useEffect } from 'react';
import { useAsync } from 'react-use';
import { QueryEditorProps, PanelData } from '@grafana/data';
// Hack for issue: https://github.com/grafana/grafana/issues/26512
import {} from '@emotion/core';
import { AdxDataSource } from './datasource';
import { Kus... |
import ArtistContract from '@DataContracts/Artist/ArtistContract';
import ReleaseEventContract from '@DataContracts/ReleaseEvents/ReleaseEventContract';
import TagBaseContract from '@DataContracts/Tag/TagBaseContract';
import AlbumForUserForApiContract, {
MediaType,
} from '@DataContracts/User/AlbumForUserForApiC... |
<reponame>junseld/typescript-building-blocks
import * as mobxTypes from 'mobx';
import { MobxSpyEvent } from './MobxSpyEvent';
import {
ConsoleText,
styled,
renderConsoleText,
normalText,
formatName,
} from './ConsoleText';
import { formatValue } from './formatValue';
export interface MobxConsoleLoggerOptions {
... |
import { Component, NO_ERRORS_SCHEMA } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { By } from "@angular/platform-browser";
import { RouterTestingModule } from "@angular/router/testing";
import { List } from "immutable";
import { BehaviorSubject, of } from "rxjs";
im... |
import Event from './event';
import axios, {AxiosRequestConfig} from 'axios';
import 'rxjs/Rx';
import * as _ from 'lodash';
export class ModelMetaService {
allTypes: Array<IRawModelType>;
typeHierarchyLoaded = false;
currentModelMetaHost: string;
hostChanged: Event<string> = new Event<string>();
detailsCh... |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
<reponame>ProbablePrime/cheos-bot<gh_stars>0
import { createSignal } from 'strong-events';
import { CloudModuleManager } from './CloudModuleManager';
import { NeosUserCredentials } from './NeosUserCredentials';
import { SignalEvent } from './types/Events';
import {
MessageType,
NeosCreditTransfer,
NeosMessage,
Neo... |
import * as React from "react";
import { IconNames } from "@blueprintjs/icons";
import { Button, Intent, Tooltip, Position } from "@blueprintjs/core";
import { useMutation } from "react-apollo";
import ExecutionStartButton from "../execute/ExecutionStartButton";
import { PipelineRunStatus } from "../types/globalTypes";... |
<gh_stars>10-100
import * as fs from 'fs';
import * as path from 'path';
import {Config} from "../../config";
import {ReportRepository} from "../report.repo";
import {Project, ProjectInfo} from "@maxxton/microdocs-core/domain";
const mkdir = require('mkdir-p');
import * as fsHelper from '../../helpers/file.helper';
im... |
import { getPreciseDistance } from 'geolib';
import { CenterOfBiomassSum } from 'models/shared';
import OSRM from 'osrm';
import pg from 'pg';
import { getElevation } from './elevation';
import { Pixel, PixelVariablesClass } from './models/pixel';
import { TreatedCluster } from './models/treatedcluster';
import {
con... |
import { Component, Host, h, Prop, Event, EventEmitter, Listen, State, Watch } from '@stencil/core';
import '@esri/calcite-components';
import { searchGroupContent } from "@esri/arcgis-rest-portal";
interface HubTree {[field: string]: any};
@Component({
tag: 'hub-filter-category',
styleUrl: 'hub-filter-category.c... |
<filename>app/scenario4/controller.ts
import * as pbi from 'powerbi-client';
import * as angularPbi from 'angular-powerbi';
interface IFiltersNode {
name: string;
filterable: any;
filters: pbi.models.IFilter[];
nodes: IFiltersNode[];
}
export default class Controller {
static predefinedFilter1 = n... |
<gh_stars>100-1000
import { platform } from '../../Environment';
import { RenderBatch, ArrayRange, ArrayBuilderSegment, RenderTreeDiff, RenderTreeEdit, RenderTreeFrame, ArrayValues, EditType, FrameType, RenderTreeFrameReader } from './RenderBatch';
import { Pointer, System_Array, System_Object } from '../../Platform/Pl... |
import Component from 'vue-class-component';
import Libraries from '../../Libraries';
import Exception from '../../Utils/Exception';
import { Contents, IContentArgs, IContentOrderedArgs } from '../Bases/IContent';
import { TabEvents } from '../Bases/TabBase';
import ViewBase from '../Bases/ViewBase';
import { TabEvents... |
<reponame>jay/CoronaTab<gh_stars>0
import { Place } from '../models/place'
import { LocaleTranslations, Types } from '@coronatab/shared'
import type { Polygon, MultiPolygon, Geometry } from 'geojson'
import { SeededCountries } from './places/countries/seeds'
import { SeededRegions } from './places/regions/seeds'
... |
<gh_stars>0
import {Component, Input, Output, EventEmitter, ContentChild, TemplateRef, ViewContainerRef} from 'angular2/core'
import {CORE_DIRECTIVES} from 'angular2/common'
import {Subscription} from 'rxjs';
import {PaginationService} from "./pagination-service";
export interface IPage {
label: string;
value:... |
import React, {
Fragment,
InputHTMLAttributes,
useRef,
useState,
useEffect,
} from 'react';
import { v4 as uuidv4 } from 'uuid';
import {
Divider,
Input,
InputAdornment,
List,
ListItem,
ListItemIcon,
ListItemText,
} from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles'... |
<gh_stars>0
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable class-methods-use-this */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { AppConfig, ModCollection, ModData, ValidChannel, PathParams, PathType } from 'model';
interface ElectronInterface {
platform: string;
log: {
in... |
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecr from '@aws-cdk/aws-ecr';
import * as ecs from '@aws-cdk/aws-ecs';
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
import * as logs from '@aws-cdk/aws-logs';
import * as cdk from '@aws-cdk/core';
import { NetworkConfig, StageConfig } from './main';
i... |
/*
Copyright <NAME>
Licensed under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
*/
import FS from 'fs';
import Path from 'path';
import Playwright from 'playwright';
import Got from 'got';
import {CookieJar} from 'tough-cookie';
import FFmpeg from 'fluent-ffmpeg';
import ffmpegPath fr... |
/* eslint-disable @endo/no-polymorphic-call, import/no-extraneous-dependencies, no-restricted-globals, no-underscore-dangle, prettier/prettier */
import { expectType } from 'tsd';
import type { Assert } from 'ses';
/// <reference types="ses"/>
// Lockdown
lockdown();
lockdown({});
lockdown({ errorTaming: 'unsafe' })... |
import { Observable, from, NextObserver, empty, of, defer } from 'rxjs';
import { catchError, map, concatAll, filter, takeWhile } from 'rxjs/operators';
import { BasicModel, isFieldSetModel } from './models';
import { finalizeWithLast } from './finalize-with-last';
import { isNil } from './utils';
export const ASYNC_V... |
// Copyright 2019 Espressif Systems (Shanghai) CO LTD
//
// 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 applica... |
<filename>api/src/services/AppointmentRequestsService.ts
import AppointmentRequests from '../models/AppointmentRequests';
import { Op } from 'sequelize';
import DoctorAt from '../models/DoctorAt';
import Users, { usersSelect } from '../models/Users';
import AppointmentTypes from '../models/AppointmentTypes';
import Pri... |
<filename>day18.ts<gh_stars>0
import * as fs from 'fs'
import * as _ from 'lodash'
import { StringStream, times } from './eoltools'
const dataset = fs.readFileSync('in.txt', 'utf-8').split('\n')
class RegularNumber {
public type: 'regular' = 'regular'
public value: number = undefined
public parent!: SnailfishNu... |
<filename>clients/client-rekognition/src/commands/DetectCustomLabelsCommand.ts
// smithy-typescript generated code
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-... |
<filename>src/data/history/OpHeader.ts<gh_stars>100-1000
import { HashedMap } from 'data/model/HashedMap';
import { HashedSet } from 'data/model/HashedSet';
import { HashReference } from 'data/model/HashReference';
import { MutationOp } from 'data/model/MutationOp';
import { Hash, Hashing } from '../model/Hashing';
ty... |
<reponame>logico-philosophical/m42-math
let parser: ParserType, evalParser: EvalParserType;
if (process.env.__webpack__) {
parser = require('../build_tmp/parser');
evalParser = require('../build_tmp/evalParser');
} else {
let fs = require('fs');
let path = require('path');
let pegjs = require('pegjs');
let gram... |
import { useEffect, useState } from "react";
import useSWR from "swr";
import useSWRInfinite from "swr/infinite";
import { useCollection } from "@lemasc/swr-firestore";
import {
Course,
CourseWork,
Material,
Submission,
Topic,
Announcement,
Teacher,
} from "../types";
import { Set, Map } from "immutable";... |
import { graphql } from 'https://cdn.pika.dev/graphql@15.0.0';
import { renderPlaygroundPage } from 'https://deno.land/x/oak_graphql@0.6.2/graphql-playground-html/render-playground-html.ts';
import { makeExecutableSchema } from 'https://deno.land/x/oak_graphql@0.6.2/graphql-tools/schema/makeExecutableSchema.ts';
import... |
import { log } from '../log';
import * as tf from '../../dist/tfjs.esm.js';
const NUM_LANDMARKS = 6;
function generateAnchors(inputSize) {
const spec = { strides: [inputSize / 16, inputSize / 8], anchors: [2, 6] };
const anchors: Array<[number, number]> = [];
for (let i = 0; i < spec.strides.length; i++) {
... |
// (C) 2007-2018 GoodData Corporation
import * as classNames from 'classnames';
import { clamp } from 'lodash';
import { string } from '@gooddata/js-utils';
import { getHiddenRowsOffset } from './row';
import { getFooterHeight } from './footer';
import { DEFAULT_ROW_HEIGHT, DEFAULT_HEADER_HEIGHT } from '../TableVisual... |
// Example plugin for typescript code generation. Only key things will be documented.
import { TYPES, Settings, toast, Generic, varify } from "../core/langs";
import { convert, ESCAPE_END, ESCAPE_SEPARATOR, ESCAPE_START, ESCAPE_TERMINATE, InEntry, OutEntry } from "../core/converter";
import { CLASS_CODES } from "../co... |
<filename>elements/lisk-p2p/src/utils/validate.ts
/*
* Copyright © 2019 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including... |
<filename>projects/ngx-rxdb/src/lib/ngx-rxdb.service.ts<gh_stars>1-10
// tslint:disable:array-type member-access no-console no-string-literal interface-over-type-literal
import { isDevMode, Injectable, OnDestroy } from '@angular/core';
import * as PouchdbAdapterIdb from 'pouchdb-adapter-idb';
import { RxCollection, RxD... |
<gh_stars>1-10
import mqtt from "mqtt";
import pino from "pino";
import * as Sentry from "@sentry/node";
import { Entity } from "../types";
import { State, IStore } from "../store";
import { AGENT } from "../version";
export type IntegrationOptions = {
id: string;
debug?: boolean;
mqttHost?: string;
store: I... |
import * as React from "react";
import Table from "../table/table";
import { OnHorizontallyScrollProps } from "../virtualizer";
import { TableInteractionsAction, updateHiddenColumns, updateRowHeight, updateCellWidth, updateColumnsCursor } from "./actions";
import TableInteractionsManagerReducer, { ITableInteractionMan... |
import React from 'react';
import { useCallback, useState } from 'react';
import { getDocumentHeadings, IDocumentHeading } from '../../../lib';
import { IContent } from '../../../lib/types/content';
import { ISite } from '../../../lib/types/site';
import ActionLink from '../../Internal/ActionLink';
export interface IO... |
import { Buffer } from "buffer"
import sqlite3 from "sqlite3"
import { BlankNode, Literal, NamedNode, xsd } from "n3.ts"
import { APG, ns } from "apg"
import { isRelationalSchema } from "apg/lib/models/relational.js"
import { validateURI } from "./validateURI.js"
export async function exportInstance(
db: sqlite3.... |
<reponame>vadim-ch/draft-hooks
import {
DraftBlockType,
DraftEntityMutability,
DraftEntityType,
DraftInlineStyle,
DraftInlineStyleType,
EditorState,
EntityInstance,
Modifier,
RichUtils,
} from 'draft-js';
import { useCallback, useMemo } from 'react';
import {
getExistEntityByType,
getSelectedEntit... |
<reponame>thinhnnd/uit-ctf-time
import { Injectable, UnprocessableEntityException, NotFoundException, Logger } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { Iteam } from './interfaces/team.interface';
import { TeamInfoDTO } from './dto/team.dto';
impor... |
import React, { SFC, useEffect, useRef, useState } from "react"
import styled from "styled-components"
import { color, media, space } from "../../helpers"
import { CloseIcon } from "../../svgs"
import { ArtsyLogoBlackIcon } from "../../svgs/ArtsyLogoBlackIcon"
import { Box } from "../Box"
import { Flex } from "../Flex"... |
import { useEffect, useState } from "react";
import { useForm, Controller, SubmitHandler, useFieldArray } from "react-hook-form";
import AsyncCreatableSelect from 'react-select/async-creatable';
import api from '../api';
import { Recipe, RIngredient, Tag } from "./recipe.interface";
import { IFormInput } from "./recip... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
<reponame>Ran-snow/IIS.WebManager
import { Component, OnInit, OnChanges, OnDestroy, SimpleChange, Input, Output, EventEmitter, ViewChildren, QueryList, ElementRef } from '@angular/core';
import { Subscription } from 'rxjs';
import { DiffUtil } from '../../utils/diff';
import { ComponentUtil } from '../../utils/componen... |
import fs from "fs";
import { compiler as ClosureCompiler } from "google-closure-compiler";
import { dirname } from "path";
import * as tempy from "tempy";
import { WarningsWhitelistItem } from "./entryconfig";
import { logger } from "./logger";
import { CompileErrorItem } from "./report";
export interface CompilerOpt... |
import { JSONSchemaType } from "ajv";
import {
AvailablePackageDetail,
InstalledPackageDetail,
InstalledPackageReference,
InstalledPackageSummary,
} from "gen/kubeappsapis/core/packages/v1alpha1/packages";
import { ThunkAction } from "redux-thunk";
import Chart from "shared/Chart";
import {
CreateError,
Del... |
import 'reflect-metadata';
import '../polyfills';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientM... |
<reponame>jibcli/codegen
import * as fs from 'fs';
import * as path from 'path';
import * as Yeoman from 'yeoman-generator';
import { resolveDir } from './workspace';
/**
* static name for generator and template directories
*/
export const [GENERATOR_DIR_NAME, TEMPLATE_DIR_NAME] = ['generators', 'templates'];
/**
... |
<filename>app/src/lib/databases/pull-request-database.ts
import Dexie from 'dexie'
import { BaseDatabase } from './base-database'
import { GitHubRepository } from '../../models/github-repository'
export interface IPullRequestRef {
/**
* The database ID of the GitHub repository in which this ref lives. It could
... |
import { GitgraphUserApi, BranchUserApi, GitgraphCore, GitgraphBranchOptions } from '@gitgraph/core';
import { ImportMock, MockManager } from 'ts-mock-imports';
import * as gitPrimitivesModule from './GitPrimitives';
import FakeGitPrimitives from './tests/FakeGitPrimitives';
import { GitCommitInfo } from './GitPrimitiv... |
<gh_stars>0
import {
html,
render as litRender,
} from 'lit-html'
import {
createObjectStore
} from 'reduxular'
import {
formatTwoDigits,
millisToHourMinSec,
hourMinSecToMillis
} from '../ts/utils';
type State = Readonly<{
hourInput: number;
minuteInput: number;
secondInput: numbe... |
<reponame>thashimoto1998/api<gh_stars>1-10
// Copyright 2017-2020 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { TypeDef, TypeDefInfo } from '../../create/types';
import { assert, isNumber, isUndefined } from '@polkadot/util';
const stringIdentity = <T extends { toString: () =... |
import React, { Component } from 'react'
import { EventEmitter } from 'events'
import { isFirefox } from '../utils/browser'
/**
* List of hostnames to apply service worker fix to.
*
* Chrome extensions can't intercept SWs yet so we need to
* remove any service workers and then reload the page.
*/
const swFixOrigi... |
import {TwingCompiler} from "./compiler";
const var_export = require('locutus/php/var/var_export');
export enum TwingNodeType {
AUTO_ESCAPE = 'auto_escape',
BLOCK = 'block',
BLOCK_REFERENCE = 'block_reference',
BODY = 'body',
COMMENT = 'comment',
DEPRECATED = 'deprecated',
DO = 'do',
E... |
import './EditUserPage.scss';
import { Label } from 'components/common/Label';
import TooltipWrapper from 'components/common/TooltipWrapper';
import * as API from 'constants/API';
import { AUTHORIZATION_URL } from 'constants/strings';
import { Field, Formik } from 'formik';
import useLookupCodeHelpers from 'hooks/useL... |
<reponame>fchavant/lisk-sdk
/*
* LiskHQ/lisk-commander
* Copyright © 2019 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, includ... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Bot Auth Github:
// https://github.com/mattdot/BotAuth
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of t... |
import React from 'react';
import { render, fireEvent, configure } from '@testing-library/react';
import {
toContainElement,
toHaveTextContent,
} from '@testing-library/jest-dom/matchers';
import {
PhoneType,
phoneTypes,
} from '@ringcentral-integration/commons/enums/phoneTypes';
import { ContactModel } from '@... |
import * as functions from "firebase-functions";
import * as admin from "firebase-admin";
import {
CharacterStory,
Story,
STORY_COLLECTION,
STORY_SUMMARY_COLLECTION,
InfoState,
} from "./Schema/Story";
import {
GAME_COLLECTION,
PopulateInfoRequest,
POPULATE_INFO_REQUESTS,
GameState,
PLAYERVIEW_COLLE... |
<filename>src/framework/i18n/en/misc.ts
import {ADJ,ADV,EXP,INF,PR,SI,PA,PL,AC,VB,NN,LN,MD,CP} from '../../lexicon/tagset';
/* TODO what is NOT "rule" might go elsewhere OR RENAME */
export const notWords: any = {'not':1};
export const ofWords: any = {'of':1};
// nouns that also signal the title of an unknown organi... |
import * as React from 'react';
import {decorate, action, observable, computed} from 'mobx';
import {
FormikErrors,
FormikState,
} from '../types';
import {
isFunction,
isPromise,
getActiveElement,
} from '../utils';
import { FormikReducer } from './Reducer';
import { FormikBagValidate } from './BagValidate';... |
import { createSelector, OutputParametricSelector, Selector } from 'reselect'
import { dateToString } from '../../lib/utils'
import { LogContentState } from '../reducers/log-content'
import CONST from '../../lib/constant'
import { extensionSelectorFactory, IState } from 'views/utils/selectors'
import { SearchRule } f... |
/* eslint-disable arrow-body-style */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import * as React from 'react';
import { apiClient } from '@liskhq/lisk-client';
import { validateBase32Address, getAddressFromBase32Address } from '@... |
import { Component, ViewChild, OnInit } from '@angular/core';
import { SelectionModel } from '@angular/cdk/collections';
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { ResizeEvent } from... |
/**
* Copyright (c) 2021 GraphQL Contributors.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { GraphQLWorker } from './GraphQLWorker';
import type { LanguageServiceAPI } from './api';
import type {
Uri,
Position,
T... |
import React, { useState, useContext, useEffect } from 'react';
import { Image, StyleSheet, Text, View, Dimensions, Keyboard, TouchableOpacity } from 'react-native';
import { getUniqueId } from 'react-native-device-info';
import AuthService from '../services/AuthService';
import { AppContext } from '../services/Context... |
import { BrowserWindow, ipcMain, IpcMainInvokeEvent } from 'electron';
// import { createProtocol, installVueDevtools } from 'vue-cli-plugin-electron-builder/lib';
import { clipboardService } from './services/clipboard';
import { GoogleOAuth2Service } from './services/google-auth';
import { GoogleDriveService } from '.... |
// Utils
import { computed, effectScope, nextTick, onScopeDispose, ref, watch } from 'vue'
import { getCurrentInstance, IN_BROWSER, SUPPORT_TOUCH, propsFactory, SUPPORT_FOCUS_VISIBLE } from '../../utils'
// Composables
import { makeDelayProps, useDelay } from '../delay'
// Types
import type { ComponentPublicInstance,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.